Files
aaPanel/BTPanel/static/vite/js/vendor-charts.js
T
2026-07-24 16:25:43 +08:00

78 lines
764 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
;(() => {
const hrefs = []
const stylesheetSelector = "link[rel=stylesheet]"
const loaded = new Set(Array.from(document.querySelectorAll(stylesheetSelector)).map(link => link.href))
const version = "1784873523001"
const findLoadedLink = href => Array.from(document.querySelectorAll(stylesheetSelector)).find(link => link.href === href)
const removeAfterLoad = (freshLink, staleLink) => {
const remove = () => staleLink.remove()
if (freshLink.sheet) {
requestAnimationFrame(remove)
return
}
freshLink.addEventListener("load", remove, { once: true })
}
for (const link of Array.from(document.querySelectorAll(stylesheetSelector))) {
const url = new URL(link.href, location.href)
if (url.origin !== location.origin || url.searchParams.get("v") === version) continue
url.searchParams.set("v", version)
if (loaded.has(url.href)) {
const freshLink = findLoadedLink(url.href)
if (freshLink && freshLink !== link) removeAfterLoad(freshLink, link)
continue
}
const freshLink = document.createElement("link")
freshLink.rel = "stylesheet"
freshLink.href = url.href
link.parentNode?.insertBefore(freshLink, link.nextSibling)
loaded.add(url.href)
removeAfterLoad(freshLink, link)
}
for (const href of hrefs) {
const url = new URL(href, import.meta.url).href
if (loaded.has(url)) continue
const link = document.createElement("link")
link.rel = "stylesheet"
link.href = url
document.head.appendChild(link)
loaded.add(url)
}
})();
import{r as e}from"./rolldown-runtime.js?v=1784873523001";import{l as t}from"./vendor.js?v=1784873523001";var n=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),r=new(function(){function e(){this.browser=new n,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(r.wxa=!0,r.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?r.worker=!0:!r.hasGlobalWindow||`Deno`in window?(r.node=!0,r.svgSupported=!0):i(navigator.userAgent,r);function i(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var a=`12px sans-serif`,o=20,s=100,c=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function l(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-o)/s}return t}var u=l(c),d={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=d.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n=n||``,r=r||`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=u[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function f(e){for(var t in d)e[t]&&(d[t]=e[t])}var p=e({HashMap:()=>Oe,RADIAN_TO_DEGREE:()=>Ne,assert:()=>be,bind:()=>R,clone:()=>O,concatArray:()=>ke,createCanvas:()=>ee,createHashMap:()=>G,createObject:()=>Ae,curry:()=>z,defaults:()=>M,disableUserSelect:()=>je,each:()=>F,eqNaN:()=>he,extend:()=>j,filter:()=>ie,find:()=>ae,guid:()=>E,hasOwn:()=>K,indexOf:()=>N,inherits:()=>te,isArray:()=>B,isArrayLike:()=>P,isBuiltInObject:()=>le,isDom:()=>de,isFunction:()=>V,isGradientObject:()=>fe,isImagePatternObject:()=>pe,isNumber:()=>ce,isObject:()=>U,isPrimitive:()=>we,isRegExp:()=>me,isString:()=>H,isStringSafe:()=>se,isTypedArray:()=>ue,keys:()=>L,logError:()=>D,map:()=>I,merge:()=>k,mergeAll:()=>A,mixin:()=>ne,noop:()=>Me,normalizeCssArray:()=>ye,reduce:()=>re,retrieve:()=>ge,retrieve2:()=>W,retrieve3:()=>_e,setAsPrimitive:()=>Ce,slice:()=>ve,trim:()=>xe}),m=re([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),h=re([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),g=Object.prototype.toString,_=Array.prototype,v=_.forEach,y=_.filter,b=_.slice,x=_.map,S=function(){}.constructor,C=S?S.prototype:null,w=`__proto__`,T=2311;function E(){return T++}function D(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function O(e){if(typeof e!=`object`||!e)return e;var t=e,n=g.call(e);if(n===`[object Array]`){if(!we(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=O(e[r])}}else if(h[n]){if(!we(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!m[n]&&!we(e)&&!de(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==w&&(t[o]=O(e[o]));return t}function k(e,t,n){if(!U(t)||!U(e))return n?O(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==w){var i=e[r],a=t[r];U(a)&&U(i)&&!B(a)&&!B(i)&&!de(a)&&!de(i)&&!le(a)&&!le(i)&&!we(a)&&!we(i)?k(i,a,n):(n||!(r in e))&&(e[r]=O(t[r]))}return e}function A(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=k(n,e[r],t);return n}function j(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==w&&(e[n]=t[n]);return e}function M(e,t,n){for(var r=L(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}var ee=d.createCanvas;function N(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function te(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function ne(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else M(e,t,n)}function P(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function F(e,t,n){if(e&&t)if(e.forEach&&e.forEach===v)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function I(e,t,n){if(!e)return[];if(!t)return ve(e);if(e.map&&e.map===x)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function re(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function ie(e,t,n){if(!e)return[];if(!t)return ve(e);if(e.filter&&e.filter===y)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ae(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function L(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function oe(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(b.call(arguments)))}}var R=C&&V(C.bind)?C.call.bind(C.bind):oe;function z(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(b.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):g.call(e)===`[object Array]`}function V(e){return typeof e==`function`}function H(e){return typeof e==`string`}function se(e){return g.call(e)===`[object String]`}function ce(e){return typeof e==`number`}function U(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function le(e){return!!m[g.call(e)]}function ue(e){return!!h[g.call(e)]}function de(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function fe(e){return e.colorStops!=null}function pe(e){return e.image!=null}function me(e){return g.call(e)===`[object RegExp]`}function he(e){return e!==e}function ge(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function W(e,t){return e==null?t:e}function _e(e,t,n){return e==null?t==null?n:t:e}function ve(e){var t=[...arguments].slice(1);return b.apply(e,t)}function ye(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function be(e,t){if(!e)throw Error(t)}function xe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Se=`__ec_primitive__`;function Ce(e){e[Se]=!0}function we(e){return e[Se]}var Te=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return L(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ee=typeof Map==`function`;function De(){return Ee?new Map:new Te}var Oe=function(){function e(t){var n=B(t);this.data=De();var r=this;t instanceof e?t.each(i):t&&F(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Ee?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function G(e){return new Oe(e)}function ke(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Ae(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&j(n,t),n}function je(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function K(e,t){return e.hasOwnProperty(t)}function Me(){}var Ne=180/Math.PI,Pe=e({add:()=>ze,applyTransform:()=>rt,clone:()=>Le,copy:()=>Ie,create:()=>Fe,dist:()=>Qe,distSquare:()=>et,distance:()=>Ze,distanceSquare:()=>$e,div:()=>qe,dot:()=>Je,len:()=>He,lenSquare:()=>We,length:()=>Ue,lengthSquare:()=>Ge,lerp:()=>nt,max:()=>at,min:()=>it,mul:()=>Ke,negate:()=>tt,normalize:()=>Xe,scale:()=>Ye,scaleAndAdd:()=>Be,set:()=>Re,sub:()=>Ve});function Fe(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ie(e,t){return e[0]=t[0],e[1]=t[1],e}function Le(e){return[e[0],e[1]]}function Re(e,t,n){return e[0]=t,e[1]=n,e}function ze(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Be(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ve(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function He(e){return Math.sqrt(We(e))}var Ue=He;function We(e){return e[0]*e[0]+e[1]*e[1]}var Ge=We;function Ke(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function qe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function Je(e,t){return e[0]*t[0]+e[1]*t[1]}function Ye(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Xe(e,t){var n=He(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ze(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Qe=Ze;function $e(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var et=$e;function tt(e,t){return e[0]=-t[0],e[1]=-t[1],e}function nt(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function rt(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function it(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function at(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var ot=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),st=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new ot(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new ot(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new ot(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new ot(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ot(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new ot(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),ct=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),lt=Math.log(2);function ut(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/lt);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*ut(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function dt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=ut(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ut(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var ft=`___zrEVENTSAVED`,pt=[];function mt(e,t,n,r,i){return ht(pt,t,r,i,!0)&&ht(e,n,pt[0],pt[1])}function ht(e,t,n,i,a){if(t.getBoundingClientRect&&r.domSupported&&!vt(t)){var o=t[ft]||(t[ft]={}),s=_t(gt(t,o),o,a);if(s)return s(e,n,i),!0}return!1}function gt(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return n}function _t(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?dt(s,o):dt(o,s))}function vt(e){return e.nodeName.toUpperCase()===`CANVAS`}var yt=/([&<>"'])/g,bt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function xt(e){return e==null?``:(e+``).replace(yt,function(e,t){return bt[t]})}var St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ct=[],wt=r.browser.firefox&&+r.browser.version.split(`.`)[0]<39;function Tt(e,t,n,r){return n=n||{},r?Et(e,t,n):wt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Et(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Et(e,t,n){if(r.domSupported&&e.getBoundingClientRect){var i=t.clientX,a=t.clientY;if(vt(e)){var o=e.getBoundingClientRect();n.zrX=i-o.left,n.zrY=a-o.top;return}else if(ht(Ct,e,i,a)){n.zrX=Ct[0],n.zrY=Ct[1];return}}n.zrX=n.zrY=0}function Dt(e){return e||window.event}function Ot(e,t,n){if(t=Dt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Tt(e,i,t,n)}else{Tt(e,t,t,n);var a=kt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&St.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function kt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function At(e,t,n,r){e.addEventListener(t,n,r)}function jt(e,t,n,r){e.removeEventListener(t,n,r)}var Mt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Nt(e){return e.which===2||e.which===3}var Pt=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Tt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Lt)if(Lt.hasOwnProperty(t)){var n=Lt[t](this._track,e);if(n)return n}},e}();function Ft(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function It(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Lt={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Ft(r)/Ft(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=It(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},Rt=e({clone:()=>qt,copy:()=>Vt,create:()=>zt,identity:()=>Bt,invert:()=>Kt,mul:()=>Ht,rotate:()=>Wt,scale:()=>Gt,translate:()=>Ut});function zt(){return[1,0,0,1,0,0]}function Bt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Vt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ht(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Ut(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Wt(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Gt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Kt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function qt(e){var t=zt();return Vt(t,e),t}var q=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Jt=Math.min,Yt=Math.max,Xt=new q,Zt=new q,Qt=new q,$t=new q,en=new q,tn=new q,J=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=Jt(e.x,this.x),n=Jt(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Yt(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Yt(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=zt();return Ut(i,i,[-t.x,-t.y]),Gt(i,i,[n,r]),Ut(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,c=t.x,l=t.x+t.width,u=t.y,d=t.y+t.height,f=!(a<c||l<i||s<u||d<o);if(n){var p=1/0,m=0,h=Math.abs(a-c),g=Math.abs(l-i),_=Math.abs(s-u),v=Math.abs(d-o),y=Math.min(h,g),b=Math.min(_,v);a<c||l<i?y>m&&(m=y,h<g?q.set(tn,-h,0):q.set(tn,g,0)):y<p&&(p=y,h<g?q.set(en,h,0):q.set(en,-g,0)),s<u||d<o?b>m&&(m=b,_<v?q.set(tn,0,-_):q.set(tn,0,v)):y<p&&(p=y,_<v?q.set(en,0,_):q.set(en,0,-v))}return n&&q.copy(n,f?en:tn),f},e.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Xt.x=Qt.x=n.x,Xt.y=$t.y=n.y,Zt.x=$t.x=n.x+n.width,Zt.y=Qt.y=n.y+n.height,Xt.transform(r),$t.transform(r),Zt.transform(r),Qt.transform(r),t.x=Jt(Xt.x,Zt.x,Qt.x,$t.x),t.y=Jt(Xt.y,Zt.y,Qt.y,$t.y);var c=Yt(Xt.x,Zt.x,Qt.x,$t.x),l=Yt(Xt.y,Zt.y,Qt.y,$t.y);t.width=c-t.x,t.height=l-t.y},e}(),nn=`silent`;function rn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:an}}function an(){Mt(this.event)}var on=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return n.prototype.dispose=function(){},n.prototype.setCursor=function(){},n}(ct),sn=function(){function e(e,t){this.x=e,this.y=t}return e}(),cn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],ln=new J(0,0,0,0),un=function(e){t(n,e);function n(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new sn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r=r||new on,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new st(o),o}return n.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(F(cn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},n.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=pn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new sn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},n.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},n.prototype.resize=function(){this._hovered=new sn(0,0)},n.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},n.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},n.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},n.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=rn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},n.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new sn(e,t);if(fn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new J(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(ln.copy(u.getBoundingRect()),u.transform&&ln.applyTransform(u.transform),ln.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(fn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},n.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new Pt);var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new sn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},n}(ct);F([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){un.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=pn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Qe(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function dn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0),r=r.__hostTarget||r.parent}return!i||nn}return!1}function fn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=dn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==nn)){t.target=o;break}}}function pn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var mn=32,hn=7;function gn(e){for(var t=0;e>=mn;)t|=e&1,e>>=1;return e+t}function _n(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;vn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function vn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function yn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function bn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function xn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Sn(e,t){var n=hn,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=xn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=bn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=xn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=bn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=hn||m>=hn);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-xn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-bn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=hn||g>=hn);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Cn(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var a=0;if(i<mn){a=_n(e,n,r,t),yn(e,n,r,n+a,t);return}var o=Sn(e,t),s=gn(i);do{if(a=_n(e,n,r,t),a<s){var c=i;c>s&&(c=s),yn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var wn=!1;function Tn(){wn||(wn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function En(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Dn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=En}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Cn(n,En)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,a=e;i;)i.parent=a,i.updateTransform(),t.push(i),a=i,i=i.getClipPath()}if(e.childrenRef){for(var o=e.childrenRef(),s=0;s<o.length;s++){var c=o[s];e.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,t,n)}e.__dirty=0}else{var l=e;t&&t.length?l.__clipPaths=t:l.__clipPaths&&l.__clipPaths.length>0&&(l.__clipPaths=[]),isNaN(l.z)&&(Tn(),l.z=0),isNaN(l.z2)&&(Tn(),l.z2=0),isNaN(l.zlevel)&&(Tn(),l.zlevel=0),this._displayList[this._displayListLen++]=l}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=N(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),On=r.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},kn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-kn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?kn.bounceIn(e*2)*.5:kn.bounceOut(e*2-1)*.5+.5}},An=Math.pow,jn=Math.sqrt,Mn=1e-8,Nn=1e-4,Pn=jn(3),Fn=1/3,In=Fe(),Ln=Fe(),Rn=Fe();function zn(e){return e>-Mn&&e<Mn}function Bn(e){return e>Mn||e<-Mn}function Vn(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Hn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Un(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(zn(u)&&zn(d))if(zn(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(zn(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=jn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-An(-y,Fn):An(y,Fn),b=b<0?-An(-b,Fn):An(b,Fn);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*jn(u*u*u)),S=Math.acos(x)/3,C=jn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Pn*Math.sin(S)))/(3*o),T=(-s+C*(w-Pn*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Wn(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(zn(o)){if(Bn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(zn(u))i[0]=-a/(2*o);else if(u>0){var d=jn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Gn(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Kn(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;In[0]=c,In[1]=l;for(var v=0;v<1;v+=.05)Ln[0]=Vn(e,n,i,o,v),Ln[1]=Vn(t,r,a,s,v),g=et(In,Ln),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Nn);y++)m=d-f,h=d+f,Ln[0]=Vn(e,n,i,o,m),Ln[1]=Vn(t,r,a,s,m),g=et(Ln,In),m>=0&&g<p?(d=m,p=g):(Rn[0]=Vn(e,n,i,o,h),Rn[1]=Vn(t,r,a,s,h),_=et(Rn,In),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Vn(e,n,i,o,d),u[1]=Vn(t,r,a,s,d)),jn(p)}function qn(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Vn(e,n,i,o,m),g=Vn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Jn(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Yn(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Xn(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(zn(a)){if(Bn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(zn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=jn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Zn(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Qn(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function $n(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;In[0]=o,In[1]=s;for(var f=0;f<1;f+=.05){Ln[0]=Jn(e,n,i,f),Ln[1]=Jn(t,r,a,f);var p=et(In,Ln);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Nn);m++){var h=l-u,g=l+u;Ln[0]=Jn(e,n,i,h),Ln[1]=Jn(t,r,a,h);var p=et(Ln,In);if(h>=0&&p<d)l=h,d=p;else{Rn[0]=Jn(e,n,i,g),Rn[1]=Jn(t,r,a,g);var _=et(Rn,In);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Jn(e,n,i,l),c[1]=Jn(t,r,a,l)),jn(d)}function er(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Jn(e,n,i,f),m=Jn(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var tr=/cubic-bezier\(([0-9,\.e ]+)\)/;function nr(e){var t=e&&tr.exec(e);if(t){var n=t[1].split(`,`),r=+xe(n[0]),i=+xe(n[1]),a=+xe(n[2]),o=+xe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Un(0,r,a,1,e,s)&&Vn(0,i,o,1,s[0])}}}var rr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Me,this.ondestroy=e.ondestroy||Me,this.onrestart=e.onrestart||Me,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=V(e)?e:kn[e]||nr(e)},e}(),ir=function(){function e(e){this.value=e}return e}(),ar=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ir(e);return this.insertEntry(t),t},e.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++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),or=function(){function e(e){this._list=new ar,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new ir(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),sr=e({fastLerp:()=>Er,fastMapToColor:()=>Dr,lerp:()=>Or,lift:()=>wr,liftColor:()=>Ir,lum:()=>Nr,mapToColor:()=>kr,modifyAlpha:()=>jr,modifyHSL:()=>Ar,parse:()=>xr,random:()=>Pr,stringify:()=>Mr,toHex:()=>Tr}),cr={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 lr(e){return e=Math.round(e),e<0?0:e>255?255:e}function ur(e){return e=Math.round(e),e<0?0:e>360?360:e}function dr(e){return e<0?0:e>1?1:e}function fr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?lr(parseFloat(t)/100*255):lr(parseInt(t,10))}function pr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?dr(parseFloat(t)/100):dr(parseFloat(t))}function mr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function hr(e,t,n){return e+(t-e)*n}function gr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function _r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vr=new or(20),yr=null;function br(e,t){yr&&_r(yr,t),yr=vr.put(e,yr||t.slice())}function xr(e,t){if(e){t=t||[];var n=vr.get(e);if(n)return _r(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in cr)return _r(t,cr[r]),br(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){gr(t,0,0,0,1);return}return gr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),br(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){gr(t,0,0,0,1);return}return gr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),br(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?gr(t,+l[0],+l[1],+l[2],1):gr(t,0,0,0,1);u=pr(l.pop());case`rgb`:if(l.length>=3)return gr(t,fr(l[0]),fr(l[1]),fr(l[2]),l.length===3?u:pr(l[3])),br(e,t),t;gr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){gr(t,0,0,0,1);return}return l[3]=pr(l[3]),Sr(l,t),br(e,t),t;case`hsl`:if(l.length!==3){gr(t,0,0,0,1);return}return Sr(l,t),br(e,t),t;default:return}}gr(t,0,0,0,1)}}function Sr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=pr(e[1]),i=pr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t=t||[],gr(t,lr(mr(o,a,n+1/3)*255),lr(mr(o,a,n)*255),lr(mr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Cr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function wr(e,t){var n=xr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Mr(n,n.length===4?`rgba`:`rgb`)}}function Tr(e){var t=xr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Er(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=lr(hr(o[0],s[0],c)),n[1]=lr(hr(o[1],s[1],c)),n[2]=lr(hr(o[2],s[2],c)),n[3]=dr(hr(o[3],s[3],c)),n}}var Dr=Er;function Or(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=xr(t[i]),s=xr(t[a]),c=r-i,l=Mr([lr(hr(o[0],s[0],c)),lr(hr(o[1],s[1],c)),lr(hr(o[2],s[2],c)),dr(hr(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}var kr=Or;function Ar(e,t,n,r){var i=xr(e);if(e)return i=Cr(i),t!=null&&(i[0]=ur(t)),n!=null&&(i[1]=pr(n)),r!=null&&(i[2]=pr(r)),Mr(Sr(i),`rgba`)}function jr(e,t){var n=xr(e);if(n&&t!=null)return n[3]=dr(t),Mr(n,`rgba`)}function Mr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Nr(e,t){var n=xr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function Pr(){return Mr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}var Fr=new or(100);function Ir(e){if(H(e)){var t=Fr.get(e);return t||(t=wr(e,-.1),Fr.put(e,t)),t}else if(fe(e)){var n=j({},e);return n.colorStops=I(e.colorStops,function(e){return{offset:e.offset,color:wr(e.color,-.1)}}),n}return e}function Lr(e){return e.type===`linear`}function Rr(e){return e.type===`radial`}(function(){return r.hasGlobalWindow&&V(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})();var zr=Array.prototype.slice;function Br(e,t,n){return(t-e)*n+e}function Vr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Br(t[a],n[a],r);return e}function Hr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Br(t[o][s],n[o][s],r)}return e}function Ur(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Wr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function Gr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Kr(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o)if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:zr.call(i[s]));for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function qr(e){if(P(e)){var t=e.length;if(P(e[0])){for(var n=[],r=0;r<t;r++)n.push(zr.call(e[r]));return n}return zr.call(e)}return e}function Jr(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Yr(e){return P(e&&e[0])?2:1}var Xr=0,Zr=1,Qr=2,$r=3,ei=4,ti=5,ni=6;function ri(e){return e===ei||e===ti}function ii(e){return e===Zr||e===Qr}var ai=[0,0,0,0],oi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=ni,s=t;if(P(t)){var c=Yr(t);o=c,(c===1&&!ce(t[0])||c===2&&!ce(t[0][0]))&&(a=!0)}else if(ce(t)&&!he(t))o=Xr;else if(H(t))if(!isNaN(+t))o=Xr;else{var l=xr(t);l&&(s=l,o=$r)}else if(fe(t)){var u=j({},s);u.colorStops=I(t.colorStops,function(e){return{offset:e.offset,color:xr(e.color)}}),Lr(t)?o=ei:Rr(t)&&(o=ti),s=u}i===0?this.valType=o:(o!==this.valType||o===ni)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=V(n)?n:kn[n]||nr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=ii(r),c=ri(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Kr(d,f,r):c&&Gr(d.colorStops,f.colorStops))}if(!o&&r!==ti&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===Xr?n[l].additiveValue=n[l].value-p:r===$r?n[l].additiveValue=Ur([],n[l].value,p,-1):ii(r)&&(n[l].additiveValue=r===Zr?Ur([],n[l].value,p,-1):Wr([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===$r,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?ai:e[s];if((ii(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(ii(i))i===Zr?Vr(g,f[r],p[r],h):Hr(g,f[r],p[r],h);else if(ri(i)){var _=f[r],v=p[r],y=i===ei;e[s]={type:y?`linear`:`radial`,x:Br(_.x,v.x,h),y:Br(_.y,v.y,h),colorStops:I(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Br(e.offset,n.offset,h),color:Jr(Vr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Br(_.x2,v.x2,h),e[s].y2=Br(_.y2,v.y2,h)):e[s].r=Br(_.r,v.r,h)}else if(c)Vr(g,f[r],p[r],h),n||(e[s]=Jr(g));else{var b=Br(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Xr?e[n]=e[n]+r:t===$r?(xr(e[n],ai),Ur(ai,ai,r,1),e[n]=Jr(ai)):t===Zr?Ur(e[n],e[n],r,1):t===Qr&&Wr(e[n],e[n],r,1)},e}(),si=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){D(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,L(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new oi(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===$r&&c&&(c=Jr(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,qr(c),r),this._trackKeys.push(o)}s.addKeyframe(e,qr(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate())if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}if(n.length||this._force){var d=new rr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return I(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=qr(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||L(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function ci(){return new Date().getTime()}var li=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return n.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},n.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},n.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},n.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},n.prototype.update=function(e){for(var t=ci()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},n.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(On(t),!e._paused&&e.update())}On(t)},n.prototype.start=function(){this._running||(this._time=ci(),this._pausedTime=0,this._startLoop())},n.prototype.stop=function(){this._running=!1},n.prototype.pause=function(){this._paused||(this._pauseStart=ci(),this._paused=!0)},n.prototype.resume=function(){this._paused&&(this._pausedTime+=ci()-this._pauseStart,this._paused=!1)},n.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},n.prototype.isFinished=function(){return this._head==null},n.prototype.animate=function(e,t){t=t||{},this.start();var n=new si(e,t.loop);return this.addAnimator(n),n},n}(ct),ui=300,di=r.domSupported,fi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:I(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),pi={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},mi=!1;function hi(e){var t=e.pointerType;return t===`pen`||t===`touch`}function gi(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function _i(e){e&&(e.zrByTouch=!0)}function vi(e,t){return Ot(e.dom,new bi(e,t),!0)}function yi(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var bi=function(){function e(e,t){this.stopPropagation=Me,this.stopImmediatePropagation=Me,this.preventDefault=Me,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),xi={mousedown:function(e){e=Ot(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Ot(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=Ot(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Ot(this.dom,e);var t=e.toElement||e.relatedTarget;yi(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){mi=!0,e=Ot(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){mi||(e=Ot(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Ot(this.dom,e),_i(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),xi.mousemove.call(this,e),xi.mousedown.call(this,e)},touchmove:function(e){e=Ot(this.dom,e),_i(e),this.handler.processGesture(e,`change`),xi.mousemove.call(this,e)},touchend:function(e){e=Ot(this.dom,e),_i(e),this.handler.processGesture(e,`end`),xi.mouseup.call(this,e),new Date-+this.__lastTouchMoment<ui&&xi.click.call(this,e)},pointerdown:function(e){xi.mousedown.call(this,e)},pointermove:function(e){hi(e)||xi.mousemove.call(this,e)},pointerup:function(e){xi.mouseup.call(this,e)},pointerout:function(e){hi(e)||xi.mouseout.call(this,e)}};F([`click`,`dblclick`,`contextmenu`],function(e){xi[e]=function(t){t=Ot(this.dom,t),this.trigger(e,t)}});var Si={pointermove:function(e){hi(e)||Si.mousemove.call(this,e)},pointerup:function(e){Si.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Ci(e,t){var n=t.domHandlers;r.pointerEventsSupported?F(fi.pointer,function(r){Ti(t,r,function(t){n[r].call(e,t)})}):(r.touchEventsSupported&&F(fi.touch,function(r){Ti(t,r,function(i){n[r].call(e,i),gi(t)})}),F(fi.mouse,function(r){Ti(t,r,function(i){i=Dt(i),t.touching||n[r].call(e,i)})}))}function wi(e,t){r.pointerEventsSupported?F(pi.pointer,n):r.touchEventsSupported||F(pi.mouse,n);function n(n){function r(r){r=Dt(r),yi(e,r.target)||(r=vi(e,r),t.domHandlers[n].call(e,r))}Ti(t,n,r,{capture:!0})}}function Ti(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,At(e.domTarget,t,n,r)}function Ei(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&jt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Di=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Oi=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Di(t,xi),di&&(r._globalHandlerScope=new Di(document,Si)),Ci(r,r._localHandlerScope),r}return n.prototype.dispose=function(){Ei(this._localHandlerScope),di&&Ei(this._globalHandlerScope)},n.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},n.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,di&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?wi(this,t):Ei(t)}},n}(ct),ki=1;r.hasGlobalWindow&&(ki=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ai=ki,ji=.4,Mi=`#333`,Ni=`#ccc`,Pi=`#eee`,Fi=Bt,Ii=5e-5;function Li(e){return e>Ii||e<-Ii}var Ri=[],zi=[],Bi=zt(),Vi=Math.abs,Hi=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Li(this.rotation)||Li(this.x)||Li(this.y)||Li(this.scaleX-1)||Li(this.scaleY-1)||Li(this.skewX)||Li(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Fi(n),this.invTransform=null);return}n=n||zt(),t?this.getLocalTransform(n):Fi(n),e&&(t?Ht(n,e,n):Vt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ri);var n=Ri[0]<0?-1:1,r=Ri[1]<0?-1:1,i=((Ri[0]-n)*t+n)/Ri[0]||0,a=((Ri[1]-r)*t+r)/Ri[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||zt(),Kt(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||zt(),Ht(zi,e.invTransform,t),t=zi);var n=this.originX,r=this.originY;(n||r)&&(Bi[4]=n,Bi[5]=r,Ht(zi,t,Bi),zi[4]-=n,zi[5]-=r,t=zi),this.setLocalTransform(t)}},e.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)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&rt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&rt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Vi(e[0]-1)>1e-10&&Vi(e[3]-1)>1e-10?Math.sqrt(Vi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Wi(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Wt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Ui=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Wi(e,t){for(var n=0;n<Ui.length;n++){var r=Ui[n];e[r]=t[r]}}var Gi={};function Ki(e,t){t=t||`12px sans-serif`;var n=Gi[t];n||(n=Gi[t]=new or(500));var r=n.get(e);return r==null&&(r=d.measureText(e,t).width,n.put(e,r)),r}function qi(e,t,n,r){var i=Ki(e,t),a=Zi(t);return new J(Yi(0,i,n),Xi(0,a,r),i,a)}function Ji(e,t,n,r){var i=((e||``)+``).split(`
`);if(i.length===1)return qi(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=qi(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Yi(e,t,n){return n===`right`?e-=t:n===`center`&&(e-=t/2),e}function Xi(e,t,n){return n===`middle`?e-=t/2:n===`bottom`&&(e-=t),e}function Zi(e){return Ki(`国`,e)}function Qi(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function $i(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Qi(r[0],n.width),l+=Qi(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e=e||{},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var ea=`__zr_normal__`,ta=Ui.concat([`ignore`]),na=re(Ui,function(e,t){return e[t]=!0,e},{ignore:!1}),ra={},ia=new J(0,0,0,0),aa=function(){function e(e){this.id=E(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;if(i.copyTransform(t),n.position!=null){var l=ia;n.layoutRect?l.copy(n.layoutRect):l.copy(this.getBoundingRect()),r||l.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ra,n,l):$i(ra,n,l),i.x=ra.x,i.y=ra.y,a=ra.align,o=ra.verticalAlign;var u=n.origin;if(u&&n.rotation!=null){var d=void 0,f=void 0;u===`center`?(d=l.width*.5,f=l.height*.5):(d=Qi(u[0],l.width),f=Qi(u[1],l.height)),c=!0,i.originX=-i.x+d+(r?0:l.x),i.originY=-i.y+f+(r?0:l.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],c||(i.originX=-p[0],i.originY=-p[1]));var m=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,h=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,_=void 0,v=void 0;m&&this.canBeInsideText()?(g=n.insideFill,_=n.insideStroke,(g==null||g===`auto`)&&(g=this.getInsideTextFill()),(_==null||_===`auto`)&&(_=this.getInsideTextStroke(g),v=!0)):(g=n.outsideFill,_=n.outsideStroke,(g==null||g===`auto`)&&(g=this.getOutsideFill()),(_==null||_===`auto`)&&(_=this.getOutsideStroke(g),v=!0)),g=g||`#000`,(g!==h.fill||_!==h.stroke||v!==h.autoStroke||a!==h.align||o!==h.verticalAlign)&&(s=!0,h.fill=g,h.stroke=_,h.autoStroke=v,h.align=a,h.verticalAlign=o,t.setDefaultTextStyle(h)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ni:Mi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&xr(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Mr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.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||{},j(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(U(e))for(var n=L(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ta)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(ea,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ea;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(N(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),!s&&!i){D(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||(l=this.states[c]),l&&r.push(l)}var u=r[a-1],d=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=N(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=N(r,e),a=N(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];j(t,i),i.textConfig&&(n=n||{},j(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=j({},r?this.textConfig:n.textConfig),j(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ta.length;l++){var u=ta[l],d=i&&na[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)},e.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Hi,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),j(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new si(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=N(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){oa(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){oa(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=oa(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();ne(aa,ct),ne(aa,Hi);function oa(e,t,n,r,i){n=n||{};var a=[];fa(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function sa(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function ca(e){return P(e[0])}function la(e,t,n){if(P(t[n]))if(P(e[n])||(e[n]=[]),ue(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),sa(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(ca(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?sa(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else sa(a,i,o);a.length=i.length}else e[n]=t[n]}function ua(e,t){return e===t||P(e)&&P(t)&&da(e,t)}function da(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function fa(e,t,n,r,i,a,o,s){for(var c=L(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!U(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(U(v)&&!P(v)&&!fe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}fa(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=N(m,x);m.splice(S,1)}}if(i.force||(h=ie(h,function(e){return!ua(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=qr(n[_]),la(n,r,_)}}var x=new si(n,!1,!1,d?ie(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l==null?500:l,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var Y=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return n.prototype.childrenRef=function(){return this._children},n.prototype.children=function(){return this._children.slice()},n.prototype.childAt=function(e){return this._children[e]},n.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},n.prototype.childCount=function(){return this._children.length},n.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},n.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},n.prototype.replace=function(e,t){var n=N(this._children,e);return n>=0&&this.replaceAt(t,n),this},n.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},n.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},n.prototype.remove=function(e){var t=this.__zr,n=this._children,r=N(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},n.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},n.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},n.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},n.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},n.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},n.prototype.getBoundingRect=function(e){for(var t=new J(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(J.applyTransform(t,s,c),i=i||t.clone(),i.union(t)):(i=i||s.clone(),i.union(s))}}return i||t},n}(aa);Y.prototype.type=`group`;var pa=e({dispose:()=>ba,disposeAll:()=>xa,getElementSSRData:()=>Ta,getInstance:()=>Sa,init:()=>ya,registerPainter:()=>Ca,registerSSRDataGetter:()=>Ea,version:()=>Da}),ma={},ha={};function ga(e){delete ha[e]}function _a(e){if(!e)return!1;if(typeof e==`string`)return Nr(e,1)<ji;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Nr(t[i].color,1);return n/=r,n<ji}return!1}var va=function(){function e(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new Dn,o=n.renderer||`canvas`;ma[o]||(o=L(ma)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var s=new ma[o](t,a,n,e),c=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!r.node&&!r.worker&&!c?new Oi(s.getViewportRoot(),s.root):null,u=n.useCoarsePointer,d=u==null||u===`auto`?r.touchEventsSupported:!!u,f=44,p;d&&(p=W(n.pointerSize,f)),this.handler=new un(a,s,l,s.root,p),this.animation=new li({stage:{update:c?null:function(){return i._flush(!0)}}}),c||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=_a(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=ci();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=ci();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Y&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,ga(this.id))},e}();function ya(e,t){var n=new va(E(),e,t);return ha[n.id]=n,n}function ba(e){e.dispose()}function xa(){for(var e in ha)ha.hasOwnProperty(e)&&ha[e].dispose();ha={}}function Sa(e){return ha[e]}function Ca(e,t){ma[e]=t}var wa;function Ta(e){if(typeof wa==`function`)return wa(e)}function Ea(e){wa=e}var Da=`5.6.1`,Oa=1e-4,ka=20;function Aa(e){return e.replace(/^\s+|\s+$/g,``)}function ja(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}function X(e,t){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`;break}return H(e)?Aa(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ma(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),ka),e=(+e).toFixed(t),n?e:+e}function Na(e){return e.sort(function(e,t){return e-t}),e}function Pa(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Fa(e)}function Fa(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function Ia(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function La(e,t,n){return e[t]&&Ra(e,n)[t]||0}function Ra(e,t){var n=re(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=I(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=I(i,function(e){return Math.floor(e)}),s=re(o,function(e,t){return e+t},0),c=I(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return I(o,function(e){return e/r})}function za(e,t){var n=Math.max(Pa(e),Pa(t)),r=e+t;return n>ka?r:Ma(r,n)}var Ba=9007199254740991;function Va(e){var t=Math.PI*2;return(e%t+t)%t}function Ha(e){return e>-Oa&&e<Oa}var Ua=/^(?:(\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 Wa(e){if(e instanceof Date)return e;if(H(e)){var t=Ua.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Ga(e){return 10**Ka(e)}function Ka(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function qa(e,t){var n=Ka(e),r=10**n,i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Ja(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function Ya(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function Xa(e){var t=parseFloat(e);return t==e&&(t!==0||!H(e)||e.indexOf(`x`)<=0)?t:NaN}function Za(e){return!isNaN(Xa(e))}function Qa(){return Math.round(Math.random()*9)}function $a(e,t){return t===0?e:$a(t,e%t)}function eo(e,t){return e==null?t:t==null?e:e*t/$a(e,t)}function to(e){throw Error(e)}function no(e,t,n){return(t-e)*n+e}var ro=`series\0`,io=`\0_ec_\0`;function ao(e){return e instanceof Array?e:e==null?[]:[e]}function oo(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var so=`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`.split(`.`);function co(e){return U(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function lo(e){return U(e)&&!(e instanceof Array)}function uo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e=e||[],t=(t||[]).slice();var o=G();F(t,function(e,n){if(!U(e)){t[n]=null;return}});var s=fo(e,o,n);return(r||i)&&po(s,e,o,t),r&&mo(s,t),r||i?ho(s,t,i):a&&go(s,t),_o(s),s}function fo(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||So(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function po(e,t,n,r){F(r,function(i,a){if(!(!i||i.id==null)){var o=yo(i.id),s=n.get(o);if(s!=null){var c=e[s];be(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function mo(e,t){F(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!So(n)&&!So(a)&&vo(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function ho(e,t,n){F(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||So(r.existing)||r.existing&&t.id!=null&&!vo(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function go(e,t){F(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function _o(e){var t=G();F(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),F(e,function(e){var n=e.newOption;be(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),F(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(U(i)){if(a.name=i.name==null?r?r.name:ro+n:yo(i.name),r)a.id=yo(r.id);else if(i.id!=null)a.id=yo(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function vo(e,t,n){var r=bo(t[e],null),i=bo(n[e],null);return r!=null&&i!=null&&r===i}function yo(e){return bo(e,``)}function bo(e,t){return e==null?t:H(e)?e:ce(e)||se(e)?e+``:t}function xo(e){var t=e.name;return!!(t&&t.indexOf(ro))}function So(e){return e&&e.id!=null&&yo(e.id).indexOf(io)===0}function Co(e){return io+e}function wo(e,t,n){F(e,function(e){var r=e.newOption;U(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=To(t,r,e.existing,n))})}function To(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Eo(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=bo(e[r].seriesId,null);if(a==null)return;for(var o=ao(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function Do(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?I(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?I(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Oo(){var e=`__ec_inner_`+ko++;return function(t){return t[e]||(t[e]={})}}var ko=Qa();function Ao(e,t,n){var r=jo(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Po(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function jo(e,t){var n;if(H(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=G(),a={},o=!1;return F(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&N(t.includeMainTypes,s)<0)){o=o||!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Mo={useDefault:!0,enableAll:!1,enableNone:!1},No={useDefault:!1,enableAll:!0,enableNone:!0};function Po(e,t,n,r){r=r||Mo;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}return i===`none`||i===!1?(be(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i===`all`&&(be(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function Fo(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Io(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Lo(e){return e===`auto`?r.domSupported?`html`:`richText`:e||`html`}function Ro(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(ce(r)){var o=no(n||0,r,i);return Ma(o,a?Math.max(Pa(n||0),Pa(r)):t)}else if(H(r))return i<1?n:r;else{for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=no(p,m,i);s[d]=Ma(o,a?Math.max(Pa(p),Pa(m)):t)}}return s}}var zo=`.`,Bo=`___EC__COMPONENT__CONTAINER___`,Vo=`___EC__EXTENDED_CLASS___`;function Ho(e){var t={main:``,sub:``};if(e){var n=e.split(zo);t.main=n[0]||``,t.sub=n[1]||``}return t}function Uo(e){be(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Wo(e){return!!(e&&e[Vo])}function Go(e,n){e.$constructor=e,e.extend=function(e){var n=this,r;return Ko(n)?r=function(e){t(n,e);function n(){return e.apply(this,arguments)||this}return n}(n):(r=function(){(e.$constructor||n).apply(this,arguments)},te(r,this)),j(r.prototype,e),r[Vo]=!0,r.extend=this.extend,r.superCall=Xo,r.superApply=Zo,r.superClass=n,r}}function Ko(e){return V(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function qo(e,t){e.extend=t.extend}var Jo=Math.round(Math.random()*10);function Yo(e){var t=[`__\0is_clz`,Jo++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Xo(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function Zo(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Qo(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Uo(r),e.prototype.type=r;var i=Ho(r);if(!i.sub)t[i.main]=e;else if(i.sub!==Bo){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Bo]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Ho(e),r=[],i=t[n.main];return i&&i[Bo]?F(i,function(e,t){t!==Bo&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ho(e).main]},e.getAllClassMainTypes=function(){var e=[];return F(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ho(e).main];return n&&n[Bo]};function n(e){var n=t[e.main];return(!n||!n[Bo])&&(n=t[e.main]={},n[Bo]=!0),n}}function $o(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&N(r,s)>=0||i&&N(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var es=$o([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),ts=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return es(this,e,t)},e}(),ns=new or(50);function rs(e){if(typeof e==`string`){var t=ns.get(e);return t&&t.image}else return e}function is(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=ns.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!os(t)&&a.pending.push(o)):(t=d.loadImage(e,as,as),t.__zrImageSrc=e,ns.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e}function as(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function os(e){return e&&e.width&&e.height}var ss=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function cs(e,t,n,r,i){var a={};return ls(a,e,t,n,r,i),a.text}function ls(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
`);a=us(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)ds(c,o[l],a),o[l]=c.textLine,s=s||c.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function us(e,t,n,r){r=r||{};var i=j({},r);i.font=t,n=W(n,`...`),i.maxIterations=W(r.maxIterations,2);var a=i.minChar=W(r.minChar,0);i.cnCharWidth=Ki(`国`,t);var o=i.ascCharWidth=Ki(`a`,t);i.placeholder=W(r.placeholder,``);for(var s=e=Math.max(0,e-1),c=0;c<a&&s>=o;c++)s-=o;var l=Ki(n,t);return l>s&&(n=``,l=0),s=e-l,i.ellipsis=n,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=e,i}function ds(e,t,n){var r=n.containerWidth,i=n.font,a=n.contentWidth;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Ki(t,i);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?fs(t,a,n.ascCharWidth,n.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,c),o=Ki(t,i)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function fs(e,t,n,r){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function ps(e,t){e!=null&&(e+=``);var n=t.overflow,r=t.padding,i=t.font,a=n===`truncate`,o=Zi(i),s=W(t.lineHeight,o),c=!!t.backgroundColor,l=t.lineOverflow===`truncate`,u=!1,d=t.width,f=d!=null&&(n===`break`||n===`breakAll`)?e?Ss(e,t.font,d,n===`breakAll`,0).lines:[]:e?e.split(`
`):[],p=f.length*s,m=W(t.height,p);if(p>m&&l){var h=Math.floor(m/s);u=u||f.length>h,f=f.slice(0,h)}if(e&&a&&d!=null)for(var g=us(d,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),_={},v=0;v<f.length;v++)ds(_,f[v],g),f[v]=_.textLine,u=u||_.isTruncated;for(var y=m,b=0,v=0;v<f.length;v++)b=Math.max(Ki(f[v],i),b);d==null&&(d=b);var x=b;return r&&(y+=r[0]+r[2],x+=r[1]+r[3],d+=r[1]+r[3]),c&&(x=d),{lines:f,height:m,outerWidth:x,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:p,width:d,isTruncated:u}}var ms=function(){function e(){}return e}(),hs=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),gs=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function _s(e,t){var n=new gs;if(e!=null&&(e+=``),!e)return n;for(var r=t.width,i=t.height,a=t.overflow,o=(a===`break`||a===`breakAll`)&&r!=null?{width:r,accumWidth:0,breakAll:a===`breakAll`}:null,s=ss.lastIndex=0,c;(c=ss.exec(e))!=null;){var l=c.index;l>s&&vs(n,e.substring(s,l),t,o),vs(n,c[2],t,o,c[1]),s=ss.lastIndex}s<e.length&&vs(n,e.substring(s,e.length),t,o);var u=[],d=0,f=0,p=t.padding,m=a===`truncate`,h=t.lineOverflow===`truncate`,g={};function _(e,t,n){e.width=t,e.lineHeight=n,d+=n,f=Math.max(f,t)}outer:for(var v=0;v<n.lines.length;v++){for(var y=n.lines[v],b=0,x=0,S=0;S<y.tokens.length;S++){var C=y.tokens[S],w=C.styleName&&t.rich[C.styleName]||{},T=C.textPadding=w.padding,E=T?T[1]+T[3]:0,D=C.font=w.font||t.font;C.contentHeight=Zi(D);var O=W(w.height,C.contentHeight);if(C.innerHeight=O,T&&(O+=T[0]+T[2]),C.height=O,C.lineHeight=_e(w.lineHeight,t.lineHeight,O),C.align=w&&w.align||t.align,C.verticalAlign=w&&w.verticalAlign||`middle`,h&&i!=null&&d+C.lineHeight>i){var k=n.lines.length;S>0?(y.tokens=y.tokens.slice(0,S),_(y,x,b),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v),n.isTruncated=n.isTruncated||n.lines.length<k;break outer}var A=w.width,j=A==null||A===`auto`;if(typeof A==`string`&&A.charAt(A.length-1)===`%`)C.percentWidth=A,u.push(C),C.contentWidth=Ki(C.text,D);else{if(j){var M=w.backgroundColor,ee=M&&M.image;ee&&(ee=rs(ee),os(ee)&&(C.width=Math.max(C.width,ee.width*O/ee.height)))}var N=m&&r!=null?r-x:null;N!=null&&N<C.width?!j||N<E?(C.text=``,C.width=C.contentWidth=0):(ls(g,C.text,N-E,D,t.ellipsis,{minChar:t.truncateMinChar}),C.text=g.text,n.isTruncated=n.isTruncated||g.isTruncated,C.width=C.contentWidth=Ki(C.text,D)):C.contentWidth=Ki(C.text,D)}C.width+=E,x+=C.width,w&&(b=Math.max(b,C.lineHeight))}_(y,x,b)}n.outerWidth=n.width=W(r,f),n.outerHeight=n.height=W(i,d),n.contentHeight=d,n.contentWidth=f,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var v=0;v<u.length;v++){var C=u[v],te=C.percentWidth;C.width=parseInt(te,10)/100*n.width}return n}function vs(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=Qi(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
`),l=!0),r.accumWidth=m}else{var h=Ss(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}else u=t.split(`
`);for(var g=0;g<u.length;g++){var _=u[g],v=new ms;if(v.styleName=i,v.text=_,v.isLineHolder=!_&&!a,typeof o.width==`number`?v.width=o.width:v.width=d?d[g]:Ki(_,c),!g&&!l){var y=(s[s.length-1]||(s[0]=new hs)).tokens,b=y.length;b===1&&y[0].isLineHolder?y[0]=v:(_||!b||a)&&y.push(v)}else s.push(new hs([v]))}}function ys(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var bs=re(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function xs(e){return!ys(e)||!!bs[e]}function Ss(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=0;d<e.length;d++){var f=e.charAt(d);if(f===`
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var p=Ki(f,t),m=!r&&!xs(f);if(a.length?u+p>n:i+u+p>n){u?(s||c)&&(m?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=f,l+=p,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=f,u=p)):m?(a.push(c),o.push(l),c=f,l=p):(a.push(f),o.push(p));continue}u+=p,m?(c+=f,l+=p):(c&&(s+=c,c=``,l=0),s+=f)}return!a.length&&!s&&(s=e,c=``,l=0),c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}var Cs=`__zr_style_`+Math.round(Math.random()*10),ws={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ts={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ws[Cs]=!0;var Es=[`z`,`z2`,`invisible`],Ds=[`invisible`],Os=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype._init=function(t){for(var n=L(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},n.prototype.beforeBrush=function(){},n.prototype.afterBrush=function(){},n.prototype.innerBeforeBrush=function(){},n.prototype.innerAfterBrush=function(){},n.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&js(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},n.prototype.contain=function(e,t){return this.rectContain(e,t)},n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},n.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new J(0,0,0,0)),t?J.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},n.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},n.prototype.getPrevPaintRect=function(){return this._prevPaintRect},n.prototype.animateStyle=function(e){return this.animate(`style`,e)},n.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},n.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:j(this.style,e),this.dirtyStyle(),this},n.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},n.prototype.dirty=function(){this.dirtyStyle()},n.prototype.styleChanged=function(){return!!(this.__dirty&2)},n.prototype.styleUpdated=function(){this.__dirty&=-3},n.prototype.createStyle=function(e){return Ae(ws,e)},n.prototype.useStyle=function(e){e[Cs]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},n.prototype.isStyleObject=function(e){return e[Cs]},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Es)},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=L(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=L(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Ds:Es,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},n.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},n.prototype._mergeStyle=function(e,t){return j(e,t),e},n.prototype.getAnimationStyleProps=function(){return Ts},n.initDefaultProps=(function(){var e=n.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),n}(aa),ks=new J(0,0,0,0),As=new J(0,0,0,0);function js(e,t,n){return ks.copy(e.getBoundingRect()),e.transform&&ks.applyTransform(e.transform),As.width=t,As.height=n,!ks.intersect(As)}var Ms=Math.min,Ns=Math.max,Ps=Math.sin,Fs=Math.cos,Is=Math.PI*2,Ls=Fe(),Rs=Fe(),zs=Fe();function Bs(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=Ms(i,r[0]),a=Ns(a,r[0]),o=Ms(o,r[1]),s=Ns(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function Vs(e,t,n,r,i,a){i[0]=Ms(e,n),i[1]=Ms(t,r),a[0]=Ns(e,n),a[1]=Ns(t,r)}var Hs=[],Us=[];function Ws(e,t,n,r,i,a,o,s,c,l){var u=Wn,d=Vn,f=u(e,n,i,o,Hs);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Hs[p]);c[0]=Ms(m,c[0]),l[0]=Ns(m,l[0])}f=u(t,r,a,s,Us);for(var p=0;p<f;p++){var h=d(t,r,a,s,Us[p]);c[1]=Ms(h,c[1]),l[1]=Ns(h,l[1])}c[0]=Ms(e,c[0]),l[0]=Ns(e,l[0]),c[0]=Ms(o,c[0]),l[0]=Ns(o,l[0]),c[1]=Ms(t,c[1]),l[1]=Ns(t,l[1]),c[1]=Ms(s,c[1]),l[1]=Ns(s,l[1])}function Gs(e,t,n,r,i,a,o,s){var c=Zn,l=Jn,u=Ns(Ms(c(e,n,i),1),0),d=Ns(Ms(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Ms(e,i,f),o[1]=Ms(t,a,p),s[0]=Ns(e,i,f),s[1]=Ns(t,a,p)}function Ks(e,t,n,r,i,a,o,s,c){var l=it,u=at,d=Math.abs(i-a);if(d%Is<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Ls[0]=Fs(i)*n+e,Ls[1]=Ps(i)*r+t,Rs[0]=Fs(a)*n+e,Rs[1]=Ps(a)*r+t,l(s,Ls,Rs),u(c,Ls,Rs),i%=Is,i<0&&(i+=Is),a%=Is,a<0&&(a+=Is),i>a&&!o?a+=Is:i<a&&o&&(i+=Is),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(zs[0]=Fs(p)*n+e,zs[1]=Ps(p)*r+t,l(s,zs,s),u(c,zs,c))}var qs={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Js=[],Ys=[],Xs=[],Zs=[],Qs=[],$s=[],ec=Math.min,tc=Math.max,nc=Math.cos,rc=Math.sin,ic=Math.abs,ac=Math.PI,oc=ac*2,sc=typeof Float32Array<`u`,cc=[];function lc(e){return Math.round(e/ac*1e8)/1e8%2*ac}function uc(e,t){var n=lc(e[0]);n<0&&(n+=oc);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=oc?i=n+oc:t&&n-i>=oc?i=n-oc:!t&&n>i?i=n+(oc-lc(n-i)):t&&n<i&&(i=n-(oc-lc(i-n))),e[0]=n,e[1]=i}var dc=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n=n||0,n>0&&(this._ux=ic(n/Ai/e)||0,this._uy=ic(n/Ai/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(qs.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=ic(e-this._xi),r=ic(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(qs.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(qs.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(qs.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),cc[0]=r,cc[1]=i,uc(cc,a),r=cc[0],i=cc[1];var o=i-r;return this.addData(qs.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=nc(i)*n+e,this._yi=rc(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(qs.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(qs.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&sc&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();sc&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(var i=0;i<t;i++)for(var a=e[i].data,o=0;o<a.length;o++)this.data[r++]=a[o];this._len=r},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.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}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sc&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Xs[0]=Xs[1]=Qs[0]=Qs[1]=Number.MAX_VALUE,Zs[0]=Zs[1]=$s[0]=$s[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case qs.M:t=r=e[a++],n=i=e[a++],Qs[0]=r,Qs[1]=i,$s[0]=r,$s[1]=i;break;case qs.L:Vs(t,n,e[a],e[a+1],Qs,$s),t=e[a++],n=e[a++];break;case qs.C:Ws(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Qs,$s),t=e[a++],n=e[a++];break;case qs.Q:Gs(t,n,e[a++],e[a++],e[a],e[a+1],Qs,$s),t=e[a++],n=e[a++];break;case qs.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=nc(f)*u+c,i=rc(f)*d+l),Ks(c,l,u,d,f,p,m,Qs,$s),t=nc(p)*u+c,n=rc(p)*d+l;break;case qs.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Vs(r,i,r+h,i+g,Qs,$s);break;case qs.Z:t=r,n=i;break}it(Xs,Xs,Qs),at(Zs,Zs,$s)}return a===0&&(Xs[0]=Xs[1]=Zs[0]=Zs[1]=0),new J(Xs[0],Xs[1],Zs[0]-Xs[0],Zs[1]-Xs[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case qs.M:i=o=e[d++],a=s=e[d++];break;case qs.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(ic(_)>n||ic(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case qs.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=qn(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case qs.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=er(i,a,y,b,h,g,10),i=h,a=g;break;case qs.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=nc(D)*T+C,s=rc(D)*E+w),m=tc(T,E)*ec(oc,Math.abs(O)),i=nc(k)*T+C,a=rc(k)*E+w;break;case qs.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case qs.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==qs.L&&v>0&&(e.lineTo(y,b),v=0),S){case qs.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case qs.L:u=n[x++],d=n[x++];var w=ic(u-c),T=ic(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case qs.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],ee=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Gn(c,k,j,ee,D,Js),Gn(l,A,M,N,D,Ys),e.bezierCurveTo(Js[1],Ys[1],Js[2],Ys[2],Js[3],Ys[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,ee,N),c=ee,l=N;break;case qs.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Qn(c,k,j,D,Js),Qn(l,A,M,D,Ys),e.quadraticCurveTo(Js[1],Ys[1],Js[2],Ys[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case qs.A:var te=n[x++],ne=n[x++],P=n[x++],F=n[x++],I=n[x++],re=n[x++],ie=n[x++],ae=!n[x++],L=P>F?P:F,oe=ic(P-F)>.001,R=I+re,z=!1;if(f){var E=p[g++];h+E>_&&(R=I+re*(_-h)/E,z=!0),h+=E}if(oe&&e.ellipse?e.ellipse(te,ne,P,F,ie,I,R,ae):e.arc(te,ne,L,I,R,ae),z)break lo;C&&(o=nc(I)*P+te,s=rc(I)*F+ne),c=nc(R)*P+te,l=rc(R)*F+ne;break;case qs.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var B=n[x++],V=n[x++];if(f){var E=p[g++];if(h+E>_){var H=_-h;e.moveTo(u,d),e.lineTo(u+ec(H,B),d),H-=B,H>0&&e.lineTo(u+B,d+ec(H,V)),H-=V,H>0&&e.lineTo(u+tc(B-H,0),d+V),H-=B,H>0&&e.lineTo(u,d+tc(V-H,0));break lo}h+=E}e.rect(u,d,B,V);break;case qs.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=qs,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function fc(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function pc(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Kn(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function mc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:$n(e,t,n,r,i,a,s,c,null)<=l/2}var hc=Math.PI*2;function gc(e){return e%=hc,e<0&&(e+=hc),e}var _c=Math.PI*2;function vc(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%_c<1e-4)return!0;if(a){var d=r;r=gc(i),i=gc(d)}else r=gc(r),i=gc(i);r>i&&(i+=_c);var f=Math.atan2(c,s);return f<0&&(f+=_c),f>=r&&f<=i||f+_c>=r&&f+_c<=i}function yc(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var bc=dc.CMD,xc=Math.PI*2,Sc=1e-4;function Cc(e,t){return Math.abs(e-t)<Sc}var wc=[-1,-1,-1],Tc=[-1,-1];function Ec(){var e=Tc[0];Tc[0]=Tc[1],Tc[1]=e}function Dc(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Un(t,r,a,s,l,wc);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=wc[h],_=g===0||g===1?.5:1;Vn(e,n,i,o,g)<c||(f<0&&(f=Wn(t,r,a,s,Tc),Tc[1]<Tc[0]&&f>1&&Ec(),p=Vn(t,r,a,s,Tc[0]),f>1&&(m=Vn(t,r,a,s,Tc[1]))),f===2?g<Tc[0]?d+=p<t?_:-_:g<Tc[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Tc[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Oc(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Xn(t,r,a,s,wc);if(c===0)return 0;var l=Zn(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Jn(t,r,a,l),f=0;f<c;f++){var p=wc[f]===0||wc[f]===1?.5:1,m=Jn(e,n,i,wc[f]);m<o||(wc[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=wc[0]===0||wc[0]===1?.5:1,m=Jn(e,n,i,wc[0]);return m<o?0:a<t?p:-p}}function kc(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);wc[0]=-c,wc[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=xc-1e-4){r=0,i=xc;var u=a?1:-1;return o>=wc[0]+e&&o<=wc[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=xc,i+=xc);for(var f=0,p=0;p<2;p++){var m=wc[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=xc+h),(h>=r&&h<=i||h+xc>=r&&h+xc<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Ac(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===bc.M&&m>1&&(n||(s+=yc(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case bc.M:u=a[m++],d=a[m++],c=u,l=d;break;case bc.L:if(n){if(fc(c,l,a[m],a[m+1],t,r,i))return!0}else s+=yc(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case bc.C:if(n){if(pc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Dc(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case bc.Q:if(n){if(mc(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Oc(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case bc.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=yc(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(vc(_,v,b,x,x+S,C,t,w,i))return!0}else s+=kc(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case bc.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(fc(u,d,f,d,t,r,i)||fc(f,d,f,p,t,r,i)||fc(f,p,u,p,t,r,i)||fc(u,p,u,d,t,r,i))return!0}else s+=yc(f,d,f,p,r,i),s+=yc(u,p,u,d,r,i);break;case bc.Z:if(n){if(fc(c,l,u,d,t,r,i))return!0}else s+=yc(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Cc(l,d)&&(s+=yc(c,l,u,d,r,i)||0),s!==0}function jc(e,t,n){return Ac(e,0,!1,t,n)}function Mc(e,t,n,r){return Ac(e,t,!0,n,r)}var Nc=M({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ws),Pc={style:M({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ts.style)},Fc=Ui.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Z=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.update=function(){var t=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new n;i.buildPath===n.prototype.buildPath&&(i.buildPath=function(e){t.buildPath(e,t.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Fc.length;++s)i[Fc[s]]=this[Fc[s]];i.__dirty|=1}else this._decalEl&&(this._decalEl=null)},n.prototype.getDecalElement=function(){return this._decalEl},n.prototype._init=function(t){var n=L(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?j(this.style,o):this.useStyle(o):a===`shape`?j(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},n.prototype.getDefaultStyle=function(){return null},n.prototype.getDefaultShape=function(){return{}},n.prototype.canBeInsideText=function(){return this.hasFill()},n.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(H(e)){var t=Nr(e,0);return t>.5?Mi:t>.2?Pi:Ni}else if(e)return Ni}return Mi},n.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Nr(e,0)<.4)return t}},n.prototype.buildPath=function(e,t,n){},n.prototype.pathUpdated=function(){this.__dirty&=-5},n.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},n.prototype.createPathProxy=function(){this.path=new dc(!1)},n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},n.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},n.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c==null?4:c)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},n.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Mc(a,o/s,e,t)))return!0}if(this.hasFill())return jc(a,e,t)}return!1},n.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},n.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},n.prototype.animateShape=function(e){return this.animate(`shape`,e)},n.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},n.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},n.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),typeof e==`string`?n[e]=t:j(n,e),this.dirtyShape(),this},n.prototype.shapeChanged=function(){return!!(this.__dirty&4)},n.prototype.createStyle=function(e){return Ae(Nc,e)},n.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=j({},this.shape))},n.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=j({},r.shape),j(c,n.shape)):(c=j({},i?this.shape:r.shape),j(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=j({},this.shape);for(var l={},u=L(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()},n.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r=r||{},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},n.prototype.getAnimationStyleProps=function(){return Pc},n.prototype.isZeroArea=function(){return!1},n.extend=function(e){var r=function(n){t(r,n);function r(t){var r=n.call(this,t)||this;return e.init&&e.init.call(r,t),r}return r.prototype.getDefaultStyle=function(){return O(e.style)},r.prototype.getDefaultShape=function(){return O(e.shape)},r}(n);for(var i in e)typeof e[i]==`function`&&(r.prototype[i]=e[i]);return r},n.initDefaultProps=(function(){var e=n.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),n}(Os),Ic=M({strokeFirst:!0,font:a,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Nc),Lc=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0},n.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},n.prototype.createStyle=function(e){return Ae(Ic,e)},n.prototype.setBoundingRect=function(e){this._rect=e},n.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;t==null?t=``:t+=``;var n=Ji(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},n.initDefaultProps=(function(){var e=n.prototype;e.dirtyRectTolerance=10})(),n}(Os);Lc.prototype.type=`tspan`;var Rc=M({x:0,y:0},ws),zc={style:M({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ts.style)};function Bc(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Vc=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.createStyle=function(e){return Ae(Rc,e)},n.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Bc(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},n.prototype.getWidth=function(){return this._getSize(`width`)},n.prototype.getHeight=function(){return this._getSize(`height`)},n.prototype.getAnimationStyleProps=function(){return zc},n.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},n}(Os);Vc.prototype.type=`image`;function Hc(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Uc=Math.round;function Wc(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Uc(r*2)===Uc(i*2)&&(e.x1=e.x2=Kc(r,s,!0)),Uc(a*2)===Uc(o*2)&&(e.y1=e.y2=Kc(a,s,!0)),e):e}}function Gc(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Kc(r,s,!0),e.y=Kc(i,s,!0),e.width=Math.max(Kc(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Kc(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Kc(e,t,n){if(!t)return e;var r=Uc(e*2);return(r+Uc(t))%2==0?r/2:(r+(n?1:-1))/2}var qc=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Jc={},Yc=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultShape=function(){return new qc},n.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Gc(Jc,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Hc(e,t):e.rect(n,r,i,a)},n.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},n}(Z);Yc.prototype.type=`rect`;var Xc={fill:`#000`},Zc=2,Qc={style:M({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},Ts.style)},$c=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Xc,n.attr(t),n}return n.prototype.childrenRef=function(){return this._children},n.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},n.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},n.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},n.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},n.prototype._updateSubTexts=function(){this._childCursor=0,ol(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},n.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},n.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},n.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r=r||e.clone(),r.union(e)):(r=r||o.clone(),r.union(o))}this._rect=r||e}return this._rect},n.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Xc},n.prototype.setTextContent=function(e){},n.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return j(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},n.prototype._mergeRich=function(e,t){for(var n=L(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},j(e[i],t[i])}},n.prototype.getAnimationStyleProps=function(){return Qc},n.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},n.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=ps(dl(e),e),i=fl(e),a=!!e.backgroundColor,o=r.outerHeight,s=r.outerWidth,c=r.contentWidth,l=r.lines,u=r.lineHeight,d=this._defaultStyle;this.isTruncated=!!r.isTruncated;var f=e.x||0,p=e.y||0,m=e.align||d.align||`left`,h=e.verticalAlign||d.verticalAlign||`top`,g=f,_=Xi(p,r.contentHeight,h);if(i||n){var v=Yi(f,s,m),y=Xi(p,o,h);i&&this._renderBackground(e,e,v,y,s,o)}_+=u/2,n&&(g=ul(f,m,n),h===`top`?_+=n[0]:h===`bottom`&&(_-=n[2]));for(var b=0,x=!1,S=ll(`fill`in e?e.fill:(x=!0,d.fill)),C=cl(`stroke`in e?e.stroke:!a&&(!d.autoStroke||x)?(b=Zc,d.stroke):null),w=e.textShadowBlur>0,T=e.width!=null&&(e.overflow===`truncate`||e.overflow===`break`||e.overflow===`breakAll`),E=r.calculatedLineHeight,D=0;D<l.length;D++){var O=this._getOrCreateChild(Lc),k=O.createStyle();O.useStyle(k),k.text=l[D],k.x=g,k.y=_,m&&(k.textAlign=m),k.textBaseline=`middle`,k.opacity=e.opacity,k.strokeFirst=!0,w&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||`transparent`,k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=C,k.fill=S,C&&(k.lineWidth=e.lineWidth||b,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=t,il(k,e),_+=u,T&&O.setBoundingRect(new J(Yi(k.x,c,k.textAlign),Xi(k.y,E,k.textBaseline),c,E))}},n.prototype._updateRichTexts=function(){var e=this.style,t=_s(dl(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,a=e.padding,o=e.x||0,s=e.y||0,c=this._defaultStyle,l=e.align||c.align,u=e.verticalAlign||c.verticalAlign;this.isTruncated=!!t.isTruncated;var d=Yi(o,r,l),f=Xi(s,i,u),p=d,m=f;a&&(p+=a[3],m+=a[0]);var h=p+n;fl(e)&&this._renderBackground(e,e,d,f,r,i);for(var g=!!e.backgroundColor,_=0;_<t.lines.length;_++){for(var v=t.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(n-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},n.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&fl(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=ul(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Lc),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=ll(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),v=cl(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Zc,m.stroke):null),y=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,y&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=_e(s.opacity,t.opacity,1),il(p,s),v&&(p.lineWidth=_e(s.lineWidth,t.lineWidth,g),p.lineDash=W(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=v),_&&(p.fill=_);var b=e.contentWidth,x=e.contentHeight;f.setBoundingRect(new J(Yi(p.x,b,p.textAlign),Xi(p.y,x,p.textBaseline),b,x))},n.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Yc),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=W(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Vc),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=W(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=_e(e.opacity,t.opacity,1)},n.makeFont=function(e){var t=``;return al(e)&&(t=[e.fontStyle,e.fontWeight,rl(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&xe(t)||e.textFont||e.font},n}(Os),el={left:!0,right:1,center:1},tl={top:1,bottom:1,middle:1},nl=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function rl(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function il(e,t){for(var n=0;n<nl.length;n++){var r=nl[n],i=t[r];i!=null&&(e[r]=i)}}function al(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function ol(e){return sl(e),F(e.rich,sl),e}function sl(e){if(e){e.font=$c.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||el[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||tl[n]?n:`top`,e.padding&&(e.padding=ye(e.padding))}}function cl(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function ll(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function ul(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function dl(e){var t=e.text;return t!=null&&(t+=``),t}function fl(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Q=Oo(),pl=function(e,t,n,r){if(r){var i=Q(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Q(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},ml=1,hl={},gl=Oo(),_l=Oo(),vl=[`emphasis`,`blur`,`select`],yl=[`normal`,`emphasis`,`blur`,`select`],bl=`highlight`,xl=`downplay`,Sl=`select`,Cl=`unselect`,wl=`toggleSelect`;function Tl(e){return e!=null&&e!==`none`}function El(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Dl(e){El(e,`emphasis`,2)}function Ol(e){e.hoverState===2&&El(e,`normal`,0)}function kl(e){El(e,`blur`,1)}function Al(e){e.hoverState===1&&El(e,`normal`,0)}function jl(e){e.selected=!0}function Ml(e){e.selected=!1}function Nl(e,t,n){t(e,n)}function Pl(e,t,n){Nl(e,t,n),e.isGroup&&e.traverse(function(e){Nl(e,t,n)})}function Fl(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Il(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],c=i[s];a[s]=c==null?r&&r[s]:c}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(n)<0&&l.targetName===`style`&&l.saveTo(a,t)}return a}function Ll(e,t,n,r){var i=n&&N(n,`select`)>=0,a=!1;if(e instanceof Z){var o=gl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Tl(s)||Tl(c)){r=r||{};var l=r.style||{};l.fill===`inherit`?(a=!0,r=j({},r),l=j({},l),l.fill=s):!Tl(l.fill)&&Tl(s)?(a=!0,r=j({},r),l=j({},l),l.fill=Ir(s)):!Tl(l.stroke)&&Tl(c)&&(a||(r=j({},r),l=j({},l)),l.stroke=Ir(c)),r.style=l}}if(r&&r.z2==null){a||(r=j({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u==null?10:u)}return r}function Rl(e,t,n){if(n&&n.z2==null){n=j({},n);var r=e.z2SelectLift;n.z2=e.z2+(r==null?9:r)}return n}function zl(e,t,n){var r=N(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Il(e,[`opacity`],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=j({},n),o=j({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Bl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Ll(this,e,t,n);if(e===`blur`)return zl(this,e,n);if(e===`select`)return Rl(this,e,n)}return n}function Vl(e){e.stateProxy=Bl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Bl),n&&(n.stateProxy=Bl)}function Hl(e,t){!Xl(e,t)&&!e.__highByOuter&&Pl(e,Dl)}function Ul(e,t){!Xl(e,t)&&!e.__highByOuter&&Pl(e,Ol)}function Wl(e,t){e.__highByOuter|=1<<(t||0),Pl(e,Dl)}function Gl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Pl(e,Ol)}function Kl(e){Pl(e,kl)}function ql(e){Pl(e,Al)}function Jl(e){Pl(e,jl)}function Yl(e){Pl(e,Ml)}function Xl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Zl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=_l(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){Al(e)}),o&&n.push(i)),a.isBlured=!1}),F(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Ql(e,t,n,r){var i=r.getModel();n=n||`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&ql(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||kl(e)}),P(t))a(e.getData(),t);else if(U(t))for(var u=L(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),_l(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function $l(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){_l(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){kl(e)})}}}function eu(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Do(i,t);a=(B(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Q(o);Ql(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Ql(r,u,d,n)}}}function tu(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(Q(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function nu(e,t,n){var r=Q(e),i=tu(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&$l(r.componentMainType,r.componentIndex,n),F(a,function(e){return Hl(e,t)})):(Ql(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&$l(r.componentMainType,r.componentIndex,n),Hl(e,t))}function ru(e,t,n){Zl(n);var r=Q(e),i=tu(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?F(i,function(e){return Ul(e,t)}):Ul(e,t)}function iu(e,t,n){if(vu(t)){var r=t.dataType,i=Do(e.getData(r),t);B(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function au(e){F(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Jl(t):Yl(t)})})}function ou(e){var t=[];return e.eachSeries(function(e){F(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function su(e,t,n){mu(e,!0),Pl(e,Vl),uu(e,t,n)}function cu(e){mu(e,!1)}function lu(e,t,n,r){r?cu(e):su(e,t,n)}function uu(e,t,n){var r=Q(e);t==null?r.focus&&(r.focus=null):(r.focus=t,r.blurScope=n)}var du=[`emphasis`,`blur`,`select`],fu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function pu(e,t,n,r){n=n||`itemStyle`;for(var i=0;i<du.length;i++){var a=du[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[fu[n]]()}}function mu(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function hu(e){return!!(e&&e.__highDownDispatcher)}function gu(e,t,n){var r=Q(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function _u(e){var t=hl[e];return t==null&&ml<=32&&(t=hl[e]=ml++),t}function vu(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function yu(e){var t=e.type;return t===`highlight`||t===`downplay`}function bu(e){var t=gl(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var xu=dc.CMD,Su=[[],[],[]],Cu=Math.sqrt,wu=Math.atan2;function Tu(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=xu.M,d=xu.C,f=xu.L,p=xu.R,m=xu.A,h=xu.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Cu(t[0]*t[0]+t[1]*t[1]),y=Cu(t[2]*t[2]+t[3]*t[3]),b=wu(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],rt(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],rt(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Su[c];x[0]=n[o++],x[1]=n[o++],rt(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Eu=Math.sqrt,Du=Math.sin,Ou=Math.cos,ku=Math.PI;function Au(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ju(e,t){return(e[0]*t[0]+e[1]*t[1])/(Au(e)*Au(t))}function Mu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ju(e,t))}function Nu(e,t,n,r,i,a,o,s,c,l,u){var d=ku/180*c,f=Ou(d)*(e-n)/2+Du(d)*(t-r)/2,p=-1*Du(d)*(e-n)/2+Ou(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Eu(m),s*=Eu(m));var h=(i===a?-1:1)*Eu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Ou(d)*g-Du(d)*_,y=(t+r)/2+Du(d)*g+Ou(d)*_,b=Mu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Mu(x,S);if(ju(x,S)<=-1&&(C=ku),ju(x,S)>=1&&(C=0),C<0){var w=Math.round(C/ku*1e6)/1e6;C=ku*2+w%2*ku}u.addData(l,v,y,o,s,b,C,d,a)}var Pu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Fu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Iu(e){var t=new dc;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=dc.CMD,c=e.match(Pu);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Fu)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Nu(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Nu(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Lu=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.applyTransform=function(e){},n}(Z);function Ru(e){return e.setData!=null}function zu(e,t){var n=Iu(e),r=j({},t);return r.buildPath=function(e){if(Ru(e)){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){Tu(n,e),this.dirtyShape()},r}function Bu(e,t){return new Lu(zu(e,t))}function Vu(e,n){var r=zu(e,n);return function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.applyTransform=r.applyTransform,n.buildPath=r.buildPath,n}return n}(Lu)}function Hu(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Z(t);return o.createPathProxy(),o.buildPath=function(e){if(Ru(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function Uu(e,t){t=t||{};var n=new Z;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Tu(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Wu=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Gu=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultShape=function(){return new Wu},n.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},n}(Z);Gu.prototype.type=`circle`;var Ku=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),qu=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultShape=function(){return new Ku},n.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},n}(Z);qu.prototype.type=`ellipse`;var Ju=Math.PI,Yu=Ju*2,Xu=Math.sin,Zu=Math.cos,Qu=Math.acos,$u=Math.atan2,ed=Math.abs,td=Math.sqrt,nd=Math.max,rd=Math.min,id=1e-4;function ad(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<id))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function od(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/td(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*td(nd(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function sd(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function cd(e,t){var n,r=nd(t.r,0),i=nd(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=ed(c-s),p=f>Yu&&f%Yu;if(p>id&&(f=p),!(r>id))e.moveTo(l,u);else if(f>Yu-id)e.moveTo(l+r*Zu(s),u+r*Xu(s)),e.arc(l,u,r,s,c,!d),i>id&&(e.moveTo(l+i*Zu(c),u+i*Xu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Zu(s),j=r*Xu(s),M=i*Zu(c),ee=i*Xu(c),N=f>id;if(N){var te=t.cornerRadius;te&&(n=sd(te),m=n[0],h=n[1],g=n[2],_=n[3]);var ne=ed(r-i)/2;if(v=rd(ne,g),y=rd(ne,_),b=rd(ne,m),x=rd(ne,h),w=S=nd(v,y),T=C=nd(b,x),(S>id||C>id)&&(E=r*Zu(c),D=r*Xu(c),O=i*Zu(s),k=i*Xu(s),f<Ju)){var P=ad(A,j,O,k,E,D,M,ee);if(P){var F=A-P[0],I=j-P[1],re=E-P[0],ie=D-P[1],ae=1/Xu(Qu((F*re+I*ie)/(td(F*F+I*I)*td(re*re+ie*ie)))/2),L=td(P[0]*P[0]+P[1]*P[1]);w=rd(S,(r-L)/(ae+1)),T=rd(C,(i-L)/(ae-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>id){var oe=rd(g,w),R=rd(_,w),z=od(O,k,A,j,r,oe,d),B=od(E,D,M,ee,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w<S&&oe===R?e.arc(l+z.cx,u+z.cy,w,$u(z.y0,z.x0),$u(B.y0,B.x0),!d):(oe>0&&e.arc(l+z.cx,u+z.cy,oe,$u(z.y0,z.x0),$u(z.y1,z.x1),!d),e.arc(l,u,r,$u(z.cy+z.y1,z.cx+z.x1),$u(B.cy+B.y1,B.cx+B.x1),!d),R>0&&e.arc(l+B.cx,u+B.cy,R,$u(B.y1,B.x1),$u(B.y0,B.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>id)||!N)e.lineTo(l+M,u+ee);else if(T>id){var oe=rd(m,T),R=rd(h,T),z=od(M,ee,E,D,i,-R,d),B=od(A,j,O,k,i,-oe,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T<C&&oe===R?e.arc(l+z.cx,u+z.cy,T,$u(z.y0,z.x0),$u(B.y0,B.x0),!d):(R>0&&e.arc(l+z.cx,u+z.cy,R,$u(z.y0,z.x0),$u(z.y1,z.x1),!d),e.arc(l,u,i,$u(z.cy+z.y1,z.cx+z.x1),$u(B.cy+B.y1,B.cx+B.x1),d),oe>0&&e.arc(l+B.cx,u+B.cy,oe,$u(B.y1,B.x1),$u(B.y0,B.x0),!d))}else e.lineTo(l+M,u+ee),e.arc(l,u,i,c,s,d)}e.closePath()}}}var ld=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),ud=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultShape=function(){return new ld},n.prototype.buildPath=function(e,t){cd(e,t)},n.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},n}(Z);ud.prototype.type=`sector`;var dd=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),fd=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultShape=function(){return new dd},n.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},n}(Z);fd.prototype.type=`ring`;function pd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)it(u,u,e[f]),at(d,d,e[f]);it(u,u,r[0]),at(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Le(e[f]));continue}else c=e[f-1],l=e[f+1];Ve(a,l,c),Ye(a,a,t);var h=Ze(m,c),g=Ze(m,l),_=h+g;_!==0&&(h/=_,g/=_),Ye(o,a,-h),Ye(s,a,g);var v=ze([],m,o),y=ze([],m,s);r&&(at(v,v,u),it(v,v,d),at(y,y,u),it(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function md(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=pd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var hd=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),gd=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultShape=function(){return new hd},n.prototype.buildPath=function(e,t){md(e,t,!0)},n}(Z);gd.prototype.type=`polygon`;var _d=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),vd=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},n.prototype.getDefaultShape=function(){return new _d},n.prototype.buildPath=function(e,t){md(e,t,!1)},n}(Z);vd.prototype.type=`polyline`;var yd={},bd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),xd=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},n.prototype.getDefaultShape=function(){return new bd},n.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Wc(yd,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},n.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},n}(Z);xd.prototype.type=`line`;var Sd=[],Cd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function wd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Hn:Vn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Hn:Vn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Yn:Jn)(e.x1,e.cpx1,e.x2,t),(n?Yn:Jn)(e.y1,e.cpy1,e.y2,t)]}var Td=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},n.prototype.getDefaultShape=function(){return new Cd},n.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Qn(n,o,i,u,Sd),o=Sd[1],i=Sd[2],Qn(r,s,a,u,Sd),s=Sd[1],a=Sd[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(Gn(n,o,c,i,u,Sd),o=Sd[1],c=Sd[2],i=Sd[3],Gn(r,s,l,a,u,Sd),s=Sd[1],l=Sd[2],a=Sd[3]),e.bezierCurveTo(o,s,c,l,i,a)))},n.prototype.pointAt=function(e){return wd(this.shape,e,!1)},n.prototype.tangentAt=function(e){var t=wd(this.shape,e,!0);return Xe(t,t)},n}(Z);Td.prototype.type=`bezier-curve`;var Ed=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Dd=function(e){t(n,e);function n(t){return e.call(this,t)||this}return n.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},n.prototype.getDefaultShape=function(){return new Ed},n.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},n}(Z);Dd.prototype.type=`arc`;var Od=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return n.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},n.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},n.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},n.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},n.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Z.prototype.getBoundingRect.call(this)},n}(Z),kd=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Ad=function(e){t(n,e);function n(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t==null?0:t,s.y=n==null?0:n,s.x2=r==null?1:r,s.y2=i==null?0:i,s.type=`linear`,s.global=o||!1,s}return n}(kd),jd=function(e){t(n,e);function n(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t==null?.5:t,o.y=n==null?.5:n,o.r=r==null?.5:r,o.type=`radial`,o.global=a||!1,o}return n}(kd),Md=[0,0],Nd=[0,0],Pd=new q,Fd=new q,Id=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new q;for(var n=0;n<2;n++)this._axes[n]=new q;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);q.sub(r[0],n[1],n[0]),q.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Pd.set(1/0,1/0),Fd.set(0,0),!this._intersectCheckOneSide(this,e,Pd,Fd,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(e,this,Pd,Fd,r,-1)&&(n=!1,r)||r||q.copy(t,n?Pd:Fd),n},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,a){for(var o=!0,s=0;s<2;s++){var c=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Md),this._getProjMinMaxOnAxis(s,t._corners,Nd),Md[1]<Nd[0]||Md[0]>Nd[1]){if(o=!1,i)return o;var l=Math.abs(Nd[0]-Md[1]),u=Math.abs(Md[0]-Nd[1]);Math.min(l,u)>r.len()&&(l<u?q.scale(r,c,-l*a):q.scale(r,c,u*a))}else if(n){var l=Math.abs(Nd[0]-Md[1]),u=Math.abs(Md[0]-Nd[1]);Math.min(l,u)<n.len()&&(l<u?q.scale(n,c,l*a):q.scale(n,c,-u*a))}}return o},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Math.min(l,o),s=Math.max(l,s)}n[0]=o,n[1]=s},e}(),Ld=[],Rd=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return n.prototype.traverse=function(e,t){e.call(t,this)},n.prototype.useStyle=function(){this.style={}},n.prototype.getCursor=function(){return this._cursor},n.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},n.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},n.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},n.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},n.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},n.prototype.getDisplayables=function(){return this._displayables},n.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},n.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},n.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},n.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Ld)),e.union(r)}this._rect=e}return this._rect},n.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},n}(Os),zd=Oo();function Bd(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=W(r.duration,200),u=W(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),V(d)&&(d=d(n,i)),V(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function Vd(e,t,n,r,i,a,o){var s=!1,c;V(i)?(o=a,a=i,i=null):U(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Bd(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Hd(e,t,n,r,i,a){Vd(`update`,e,t,n,r,i,a)}function Ud(e,t,n,r,i,a){Vd(`enter`,e,t,n,r,i,a)}function Wd(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function Gd(e,t,n,r,i,a){Wd(e)||Vd(`leave`,e,t,n,r,i,a)}function Kd(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Gd(e,{style:{opacity:0}},t,n,r)}function qd(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Kd(e,t,n,r)}):Kd(e,t,n,r)}function Jd(e){zd(e).oldStyle=e.style}function Yd(e){return zd(e).oldStyle}var Xd=e({Arc:()=>Dd,BezierCurve:()=>Td,BoundingRect:()=>J,Circle:()=>Gu,CompoundPath:()=>Od,Ellipse:()=>qu,Group:()=>Y,Image:()=>Vc,IncrementalDisplayable:()=>Rd,Line:()=>xd,LinearGradient:()=>Ad,OrientedBoundingRect:()=>Id,Path:()=>Z,Point:()=>q,Polygon:()=>gd,Polyline:()=>vd,RadialGradient:()=>jd,Rect:()=>Yc,Ring:()=>fd,Sector:()=>ud,Text:()=>$c,applyTransform:()=>hf,clipPointsByRect:()=>bf,clipRectByRect:()=>xf,createIcon:()=>Sf,extendPath:()=>nf,extendShape:()=>ef,getShapeClass:()=>af,getTransform:()=>mf,groupTransition:()=>yf,initProps:()=>Ud,isElementRemoved:()=>Wd,lineLineIntersect:()=>wf,linePolygonIntersect:()=>Cf,makeImage:()=>sf,makePath:()=>of,mergePath:()=>lf,registerShape:()=>rf,removeElement:()=>Gd,removeElementWithFadeOut:()=>qd,resizePath:()=>uf,setTooltipConfig:()=>Df,subPixelOptimize:()=>pf,subPixelOptimizeLine:()=>df,subPixelOptimizeRect:()=>ff,transformDirection:()=>gf,traverseElements:()=>kf,updateProps:()=>Hd}),Zd=Math.max,Qd=Math.min,$d={};function ef(e){return Z.extend(e)}var tf=Vu;function nf(e,t){return tf(e,t)}function rf(e,t){$d[e]=t}function af(e){if($d.hasOwnProperty(e))return $d[e]}function of(e,t,n,r){var i=Bu(e,t);return n&&(r===`center`&&(n=cf(n,i.getBoundingRect())),uf(i,n)),i}function sf(e,t,n){var r=new Vc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(cf(t,i))}}});return r}function cf(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var lf=Hu;function uf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function df(e,t){return Wc(e,e,{lineWidth:t}),e}function ff(e){return Gc(e.shape,e.shape,e.style),e}var pf=Kc;function mf(e,t){for(var n=Bt([]);e&&e!==t;)Ht(n,e.getLocalTransform(),n),e=e.parent;return n}function hf(e,t,n){return t&&!P(t)&&(t=Hi.getLocalTransform(t)),n&&(t=Kt([],t)),rt([],e,t)}function gf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=hf(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function _f(e){return!e.isGroup}function vf(e){return e.shape!=null}function yf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){_f(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return vf(e)&&(t.shape=j({},e.shape)),t}var a=r(e);t.traverse(function(e){if(_f(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Hd(e,r,n,Q(e).dataIndex)}}})}function bf(e,t){return I(e,function(e){var n=e[0];n=Zd(n,t.x),n=Qd(n,t.x+t.width);var r=e[1];return r=Zd(r,t.y),r=Qd(r,t.y+t.height),[n,r]})}function xf(e,t){var n=Zd(e.x,t.x),r=Qd(e.x+e.width,t.x+t.width),i=Zd(e.y,t.y),a=Qd(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Sf(e,t,n){var r=j({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),M(i,n),new Vc(r)):of(e.replace(`path://`,``),r,n,`center`)}function Cf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(wf(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function wf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Tf(u,d,c,l);if(Ef(f))return!1;var p=e-i,m=t-a,h=Tf(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Tf(p,m,u,d)/f;return!(g<0||g>1)}function Tf(e,t,n,r){return e*r-n*t}function Ef(e){return e<=1e-6&&e>=-1e-6}function Df(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=H(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&F(L(c),function(e){K(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Q(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:M({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Of(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function kf(e,t){if(e)if(B(e))for(var n=0;n<e.length;n++)Of(e[n],t);else Of(e,t)}rf(`circle`,Gu),rf(`ellipse`,qu),rf(`sector`,ud),rf(`ring`,fd),rf(`polygon`,gd),rf(`polyline`,vd),rf(`rect`,Yc),rf(`line`,xd),rf(`bezierCurve`,Td),rf(`arc`,Dd);var Af={};function jf(e,t){for(var n=0;n<vl.length;n++){var r=vl[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function Mf(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s==null&&(s=V(e.defaultText)?e.defaultText(i,e,n):e.defaultText);for(var c={normal:s},l=0;l<vl.length;l++){var u=vl[l],d=t[u];c[u]=W(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Nf(e,t,n,r){n=n||Af;for(var i=e instanceof $c,a=!1,o=0;o<yl.length;o++){var s=t[yl[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new $c,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Mf(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Ff(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(If(u,n,!1));for(var o=0;o<vl.length;o++){var p=vl[o],s=t[p];if(s){var m=c.ensureState(p),h=!!W(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Ff(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=If(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(Wf(c).setLabelText=function(e){var r=Mf(n,t,e);jf(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Pf(e,t){t=t||`label`;for(var n={normal:e.getModel(t)},r=0;r<vl.length;r++){var i=vl[r];n[i]=e.getModel([i,t])}return n}function Ff(e,t,n,r,i){var a={};return Lf(a,e,n,r,i),t&&j(a,t),a}function If(e,t,n){t=t||{};var r={},i,a=e.getShallow(`rotate`),o=W(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,r}function Lf(e,t,n,r,i){n=n||Af;var a=t.ecModel,o=a&&a.option.textStyle,s=Rf(t),c;if(s){for(var l in c={},s)if(s.hasOwnProperty(l)){var u=t.getModel([`rich`,l]);Hf(c[l]={},u,o,n,r,i,!1,!0)}}c&&(e.rich=c);var d=t.get(`overflow`);d&&(e.overflow=d);var f=t.get(`minMargin`);f!=null&&(e.margin=f),Hf(e,t,o,n,r,i,!0,!1)}function Rf(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Af).rich;if(n){t=t||{};for(var r=L(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var zf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Bf=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Vf=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Hf(e,t,n,r,i,a,o,s){n=!i&&n||Af;var c=r&&r.inheritColor,l=t.getShallow(`color`),u=t.getShallow(`textBorderColor`),d=W(t.getShallow(`opacity`),n.opacity);(l===`inherit`||l===`auto`)&&(l=c||null),(u===`inherit`||u===`auto`)&&(u=c||null),a||(l=l||n.color,u=u||n.textBorderColor),l!=null&&(e.fill=l),u!=null&&(e.stroke=u);var f=W(t.getShallow(`textBorderWidth`),n.textBorderWidth);f!=null&&(e.lineWidth=f);var p=W(t.getShallow(`textBorderType`),n.textBorderType);p!=null&&(e.lineDash=p);var m=W(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!i&&d==null&&!s&&(d=r&&r.defaultOpacity),d!=null&&(e.opacity=d),!i&&!a&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var h=0;h<zf.length;h++){var g=zf[h],_=W(t.getShallow(g),n[g]);_!=null&&(e[g]=_)}for(var h=0;h<Bf.length;h++){var g=Bf[h],_=t.getShallow(g);_!=null&&(e[g]=_)}if(e.verticalAlign==null){var v=t.getShallow(`baseline`);v!=null&&(e.verticalAlign=v)}if(!o||!r.disableBox){for(var h=0;h<Vf.length;h++){var g=Vf[h],_=t.getShallow(g);_!=null&&(e[g]=_)}var y=t.getShallow(`borderType`);y!=null&&(e.borderDash=y),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&c&&(e.backgroundColor=c),(e.borderColor===`auto`||e.borderColor===`inherit`)&&c&&(e.borderColor=c)}}function Uf(e,t){var n=t&&t.getModel(`textStyle`);return xe([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var Wf=Oo();function Gf(e,t,n,r){if(e){var i=Wf(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}function Kf(e,t,n,r,i){var a=Wf(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=W(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=Ro(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,jf(e,Mf({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?Ud:Hd)(e,{percent:1},r,t,null,l)}var qf=[`textStyle`,`color`],Jf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Yf=new $c,Xf=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(qf):null)},e.prototype.getFont=function(){return Uf({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Jf.length;n++)t[Jf[n]]=this.getShallow(Jf[n]);return Yf.useStyle(t),Yf.update(),Yf.getBoundingRect()},e}(),Zf=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Qf=$o(Zf),$f=function(){function e(){}return e.prototype.getLineStyle=function(e){return Qf(this,e)},e}(),ep=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],tp=$o(ep),np=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return tp(this,e,t)},e}(),rp=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){k(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(O(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!r.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Go(rp),Yo(rp),ne(rp,$f),ne(rp,np),ne(rp,ts),ne(rp,Xf);var ip=Math.round(Math.random()*10);function ap(e){return[e||``,ip++].join(`_`)}function op(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Ho(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ho(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function sp(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(F(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),F(u.successor,d?p:f)}F(c,function(){throw Error(``)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return F(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),F(c,function(e){N(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);N(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return F(e,function(e){N(t,e)>=0&&n.push(e)}),n}}function cp(e,t){return k(k({},e,!0),t,!0)}var lp={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},up={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType}`,withoutName:`第{seriesId}个系列是一个{seriesType}`,separator:{middle:``,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:``,end:``}}}},dp=`ZH`,fp=`EN`,pp=fp,mp={},hp={},gp=r.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||pp).toUpperCase().indexOf(dp)>-1?dp:pp}():pp;function _p(e,t){e=e.toUpperCase(),hp[e]=new rp(t),mp[e]=t}function vp(e){if(H(e)){var t=mp[e.toUpperCase()]||{};return e===dp||e===fp?O(t):k(O(t),O(mp[pp]),!1)}else return k(O(e),O(mp[pp]),!1)}function yp(e){return hp[e]}function bp(){return hp[pp]}_p(fp,lp),_p(dp,up);var xp=1e3,Sp=xp*60,Cp=Sp*60,wp=Cp*24,Tp=wp*365,Ep={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}`},Dp=`{yyyy}-{MM}-{dd}`,Op={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Dp,hour:Dp+` `+Ep.hour,minute:Dp+` `+Ep.minute,second:Dp+` `+Ep.second,millisecond:Ep.none},kp=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Ap=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function jp(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Mp(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Np(e){return e===Mp(e)}function Pp(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Fp(e,t,n,r){var i=Wa(e),a=i[zp(n)](),o=i[Bp(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Vp(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Hp(n)](),d=(u-1)%12+1,f=i[Up(n)](),p=i[Wp(n)](),m=i[Gp(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof rp?r:yp(r||gp)||bp()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,jp(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,jp(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,jp(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,jp(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,jp(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,jp(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,jp(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,jp(m,3)).replace(/{S}/g,m+``)}function Ip(e,t,n,r,i){var a=null;if(H(n))a=n;else if(V(n))a=n(e.value,t,{level:e.level});else{var o=j({},Ep);if(e.level>0)for(var s=0;s<kp.length;++s)o[kp[s]]=`{primary|`+o[kp[s]]+`}`;var c=n?n.inherit===!1?n:M(n,o):o,l=Lp(e.value,i);if(c[l])a=c[l];else if(c.inherit){for(var s=Ap.indexOf(l)-1;s>=0;--s)if(c[l]){a=c[l];break}a=a||o.none}if(B(a)){var u=e.level==null?0:e.level>=0?e.level:a.length+e.level;u=Math.min(u,a.length-1),a=a[u]}}return Fp(new Date(e.value),a,i,r)}function Lp(e,t){var n=Wa(e),r=n[Bp(t)]()+1,i=n[Vp(t)](),a=n[Hp(t)](),o=n[Up(t)](),s=n[Wp(t)](),c=n[Gp(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Rp(e,t,n){var r=ce(e)?Wa(e):e;switch(t=t||Lp(e,n),t){case`year`:return r[zp(n)]();case`half-year`:return+(r[Bp(n)]()>=6);case`quarter`:return Math.floor((r[Bp(n)]()+1)/4);case`month`:return r[Bp(n)]();case`day`:return r[Vp(n)]();case`half-day`:return r[Hp(n)]()/24;case`hour`:return r[Hp(n)]();case`minute`:return r[Up(n)]();case`second`:return r[Wp(n)]();case`millisecond`:return r[Gp(n)]()}}function zp(e){return e?`getUTCFullYear`:`getFullYear`}function Bp(e){return e?`getUTCMonth`:`getMonth`}function Vp(e){return e?`getUTCDate`:`getDate`}function Hp(e){return e?`getUTCHours`:`getHours`}function Up(e){return e?`getUTCMinutes`:`getMinutes`}function Wp(e){return e?`getUTCSeconds`:`getSeconds`}function Gp(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Kp(e){return e?`setUTCFullYear`:`setFullYear`}function qp(e){return e?`setUTCMonth`:`setMonth`}function Jp(e){return e?`setUTCDate`:`setDate`}function Yp(e){return e?`setUTCHours`:`setHours`}function Xp(e){return e?`setUTCMinutes`:`setMinutes`}function Zp(e){return e?`setUTCSeconds`:`setSeconds`}function Qp(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function $p(e,t,n,r,i,a,o,s){return new $c({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function em(e){if(!Za(e))return H(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function tm(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var nm=ye;function rm(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&xe(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Wa(e):e;if(!isNaN(+c))return Fp(c,r,n);if(s)return`-`}if(t===`ordinal`)return se(e)?i(e):ce(e)&&a(e)?e+``:`-`;var l=Xa(e);return a(l)?em(l):se(e)?i(e):typeof e==`boolean`?e+``:`-`}var im=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],am=function(e,t){return`{`+e+(t==null?``:t)+`}`};function om(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=im[a];e=e.replace(am(o),am(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(am(im[c],s),n?xt(l):l)}return e}function sm(e,t){var n=H(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?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:`+xt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+xt(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function cm(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
yyyy`);var r=Wa(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,jp(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,jp(a%100+``,2)).replace(`dd`,jp(s,2)).replace(`d`,s).replace(`hh`,jp(c,2)).replace(`h`,c).replace(`mm`,jp(l,2)).replace(`m`,l).replace(`ss`,jp(u,2)).replace(`s`,u).replace(`SSS`,jp(d,3)),e}function lm(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function um(e,t){return t=t||`transparent`,H(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function dm(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var fm=F,pm=[`left`,`right`,`top`,`bottom`,`width`,`height`],mm=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function hm(e,t,n,r,i){var a=0,o=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var gm=hm;z(hm,`vertical`),z(hm,`horizontal`);function _m(e,t,n){n=nm(n||0);var r=t.width,i=t.height,a=X(e.left,r),o=X(e.top,i),s=X(e.right,r),c=X(e.bottom,i),l=X(e.width,r),u=X(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}a=a||0,o=o||0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new J(a+n[3],o+n[0],l,u);return m.margin=n,m}function vm(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new J(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=_m(M({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function ym(e){var t=e.layoutMode||e.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function bm(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(mm[0],0),a=o(mm[1],1);l(mm[0],e,i),l(mm[1],e,a);function o(n,i){var a={},o=0,l={},u=0,d=2;if(fm(n,function(t){l[t]=e[t]}),fm(n,function(e){s(t,e)&&(a[e]=l[e]=t[e]),c(a,e)&&o++,c(l,e)&&u++}),r[i])return c(t,n[1])?l[n[2]]=null:c(t,n[2])&&(l[n[1]]=null),l;if(u===d||!o)return l;if(o>=d)return a;for(var f=0;f<n.length;f++){var p=n[f];if(!s(a,p)&&s(e,p)){a[p]=e[p];break}}return a}function s(e,t){return e.hasOwnProperty(t)}function c(e,t){return e[t]!=null&&e[t]!==`auto`}function l(e,t,n){fm(e,function(e){t[e]=n[e]})}}function xm(e){return Sm({},e)}function Sm(e,t){return t&&e&&fm(pm,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Cm=Oo(),$=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=ap(`ec_cpt_model`),i}return n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=ym(this),r=n?xm(e):{};k(e,t.getTheme().get(this.mainType)),k(e,this.getDefaultOption()),n&&bm(e,r,n)},n.prototype.mergeOption=function(e,t){k(this.option,e,!0);var n=ym(this);n&&bm(this.option,e,n)},n.prototype.optionUpdated=function(e,t){},n.prototype.getDefaultOption=function(){var e=this.constructor;if(!Wo(e))return e.defaultOption;var t=Cm(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=k(a,n[o],!0);t.defaultOption=a}return t.defaultOption},n.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Po(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},n.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get(`left`),top:e.get(`top`),right:e.get(`right`),bottom:e.get(`bottom`),width:e.get(`width`),height:e.get(`height`)}},n.prototype.getZLevelKey=function(){return``},n.prototype.setZLevel=function(e){this.option.zlevel=e},n.protoInitialize=function(){var e=n.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),n}(rp);qo($,rp),Qo($),op($),sp($,wm);function wm(e){var t=[];return F($.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=I(t,function(e){return Ho(e).main}),e!==`dataset`&&N(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Tm=``;typeof navigator<`u`&&(Tm=navigator.platform||``);var Em=`rgba(0, 0, 0, 0.2)`,Dm={darkMode:`auto`,colorBy:`series`,color:[`#5470c6`,`#91cc75`,`#fac858`,`#ee6666`,`#73c0de`,`#3ba272`,`#fc8452`,`#9a60b4`,`#ea7ccc`],gradientColor:[`#f6efa6`,`#d88273`,`#bf444c`],aria:{decal:{decals:[{color:Em,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Em,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Em,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Em,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Em,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Em,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Tm.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},Om=G([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),km=`original`,Am=`arrayRows`,jm=`objectRows`,Mm=`keyedColumns`,Nm=`typedArray`,Pm=`unknown`,Fm=`column`,Im={Must:1,Might:2,Not:3},Lm=Oo();function Rm(e){Lm(e).datasetMap=G()}function zm(e,t,n){var r={},i=Vm(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Lm(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),F(e,function(t,n){var i=U(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});F(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Bm(e,t,n){var r={};if(!Vm(e))return r;var i=t.sourceFormat,a=t.dimensionsDefine,o;(i===`objectRows`||i===`keyedColumns`)&&F(a,function(e,t){(U(e)?e.name:e)===`name`&&(o=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=Wm(t.data,i,t.seriesLayoutBy,a,t.startIndex,c);s.push(u);var d=u===Im.Not;if(d&&e.v==null&&c!==o&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===Im.Not)&&(e.n=c),f(e)&&s[e.n]!==Im.Not)return e;d||(u===Im.Might&&r.v==null&&c!==o&&(r.v=c),(r.n==null||r.n===r.v)&&(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=o==null?s.n:o;r.itemName=[c],r.seriesName=[c]}return r}function Vm(e){if(!e.get(`data`,!0))return Po(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Mo).models[0]}function Hm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Po(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Mo).models}function Um(e,t){return Wm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Wm(e,t,n,r,i,a){var o,s=5;if(ue(e))return Im.Not;var c,l;if(r){var u=r[a];U(u)?(c=u.name,l=u.type):H(u)&&(c=u)}if(l!=null)return l===`ordinal`?Im.Must:Im.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Im.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Im.Not;var f=_[c];if(!f||ue(f))return Im.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=co(g);if(!B(y))return Im.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=H(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?Im.Might:Im.Not;if(t&&e!==`-`)return Im.Must}return Im.Not}var Gm=G();function Km(e,t){be(Gm.get(e)==null&&t),Gm.set(e,t)}function qm(e,t,n){var r=Gm.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var Jm=Oo();Oo();var Ym=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ao(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Zm(this,Jm,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Qm(this,Jm)},e}();function Xm(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Zm(e,t,n,r,i,a,o){a=a||e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Xm(r,o);if(u=u||n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Qm(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var $m,eh,th,nh=`\0_ec_inner`,rh=1,ih=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.init=function(e,t,n,r,i,a){r=r||{},this.option=null,this._theme=new rp(r),this._locale=new rp(i),this._optionManager=a},n.prototype.setOption=function(e,t,n){var r=lh(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},n.prototype.resetOption=function(e,t){return this._resetOption(e,lh(t))},n.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?th(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&F(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},n.prototype.mergeOption=function(e){this._mergeOption(e,null)},n.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=G(),s=t&&t.replaceMergeMainTypeMap;Rm(this),F(e,function(e,t){e!=null&&($.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?O(e):k(n[t],e,!0))}),s&&s.each(function(e,t){$.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),$.topologicalTravel(a,$.getAllClassMainTypes(),c,this);function c(t){var a=qm(this,t,ao(e[t])),o=r.get(t),c=uo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);wo(c,t,$),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;F(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=$.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=j({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),j(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&$m(this)}this._seriesIndices||$m(this)},n.prototype.getOption=function(){var e=O(this.option);return F(e,function(t,n){if($.hasClass(n)){for(var r=ao(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!So(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[nh],e},n.prototype.getTheme=function(){return this._theme},n.prototype.getLocaleModel=function(){return this._locale},n.prototype.setUpdatePayload=function(e){this._payload=e},n.prototype.getUpdatePayload=function(){return this._payload},n.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},n.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?ie(a,function(e){return!!e}):sh(`name`,i,a):sh(`id`,r,a):(o=[],F(ao(n),function(e){a[e]&&o.push(a[e])})),ch(o,e)},n.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(ch(r?this.queryComponents(r):ie(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?ie(t,e.filter):t}},n.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(V(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=H(e)?r.get(e):U(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},n.prototype.getSeriesByName=function(e){var t=bo(e,null);return ie(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},n.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},n.prototype.getSeriesByType=function(e){return ie(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},n.prototype.getSeries=function(){return ie(this._componentsMap.get(`series`),function(e){return!!e})},n.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},n.prototype.eachSeries=function(e,t){eh(this),F(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},n.prototype.eachRawSeries=function(e,t){F(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},n.prototype.eachSeriesByType=function(e,t,n){eh(this),F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},n.prototype.eachRawSeriesByType=function(e,t,n){return F(this.getSeriesByType(e),t,n)},n.prototype.isSeriesFiltered=function(e){return eh(this),this._seriesIndicesMap.get(e.componentIndex)==null},n.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},n.prototype.filterSeries=function(e,t){eh(this);var n=[];F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=G(n)},n.prototype.restoreData=function(e){$m(this);var t=this._componentsMap,n=[];t.each(function(e,t){$.hasClass(t)&&n.push(t)}),$.topologicalTravel(n,$.getAllClassMainTypes(),function(n){F(t.get(n),function(t){t&&(n!==`series`||!ah(t,e))&&t.restoreData()})})},n.internalField=function(){$m=function(e){var t=e._seriesIndices=[];F(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=G(t)},eh=function(e){},th=function(e,t){e.option={},e.option[nh]=rh,e._componentsMap=G({series:[]}),e._componentsCount=G();var n=t.aria;U(n)&&n.enabled==null&&(n.enabled=!0),oh(t,e._theme.option),k(t,Dm,!1),e._mergeOption(t,null)}}(),n}(rp);function ah(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function oh(e,t){var n=e.color&&!e.colorLayer;F(t,function(t,r){r===`colorLayer`&&n||$.hasClass(r)||(typeof t==`object`?e[r]=e[r]?k(e[r],t,!1):O(t):e[r]==null&&(e[r]=t))})}function sh(e,t,n){if(B(t)){var r=G();return F(t,function(e){e!=null&&bo(e,null)!=null&&r.set(e,!0)}),ie(n,function(t){return t&&r.get(t[e])})}else{var i=bo(t,null);return ie(n,function(t){return t&&i!=null&&t[e]===i})}}function ch(e,t){return t.hasOwnProperty(`subType`)?ie(e,function(e){return e&&e.subType===t.subType}):e}function lh(e){var t=G();return e&&F(ao(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ne(ih,Ym);var uh=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],dh=function(){function e(e){F(uh,function(t){this[t]=R(e[t],e)},this)}return e}(),fh={},ph=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];F(fh,function(r,i){var a=r.create(e,t);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(e,t){F(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){fh[e]=t},e.get=function(e){return fh[e]},e}(),mh=/^(min|max)?(.+)$/,hh=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(F(ao(e.series),function(e){e&&e.data&&ue(e.data)&&Ce(e.data)}),F(ao(e.dataset),function(e){e&&e.source&&ue(e.source)&&Ce(e.source)})),e=O(e);var r=this._optionBackup,i=gh(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],O(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=O(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)_h(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!yh(a,this._currentMediaIndices)&&(o=I(a,function(e){return O(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function gh(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&B(l)&&F(l,function(e){e&&e.option&&(e.query?r.push(e):i||(i=e))}),f(a),F(c,function(e){return f(e)}),F(r,function(e){return f(e.option)});function f(e){F(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function _h(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return F(e,function(e,t){var n=t.match(mh);if(!(!n||!n[1]||!n[2])){var a=n[1];vh(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function vh(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function yh(e,t){return e.join(`,`)===t.join(`,`)}var bh=F,xh=U,Sh=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function Ch(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Sh.length;n<r;n++){var i=Sh[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?k(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?k(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function wh(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,M(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Th(e){wh(e,`itemStyle`),wh(e,`lineStyle`),wh(e,`areaStyle`),wh(e,`label`),wh(e,`labelLine`),wh(e,`upperLabel`),wh(e,`edgeLabel`)}function Eh(e,t){var n=xh(e)&&e[t],r=xh(n)&&n.textStyle;if(r)for(var i=0,a=so.length;i<a;i++){var o=so[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Dh(e){e&&(Th(e),Eh(e,`label`),e.emphasis&&Eh(e.emphasis,`label`))}function Oh(e){if(xh(e)){Ch(e),Th(e),Eh(e,`label`),Eh(e,`upperLabel`),Eh(e,`edgeLabel`),e.emphasis&&(Eh(e.emphasis,`label`),Eh(e.emphasis,`upperLabel`),Eh(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(Ch(t),Dh(t));var n=e.markLine;n&&(Ch(n),Dh(n));var r=e.markArea;r&&Dh(r);var i=e.data;if(e.type===`graph`){i=i||e.nodes;var a=e.links||e.edges;if(a&&!ue(a))for(var o=0;o<a.length;o++)Dh(a[o]);F(e.categories,function(e){Th(e)})}if(i&&!ue(i))for(var o=0;o<i.length;o++)Dh(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Dh(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)B(c[o])?(Dh(c[o][0]),Dh(c[o][1])):Dh(c[o]);e.type===`gauge`?(Eh(e,`axisLabel`),Eh(e,`title`),Eh(e,`detail`)):e.type===`treemap`?(wh(e.breadcrumb,`itemStyle`),F(e.levels,function(e){Th(e)})):e.type===`tree`&&Th(e.leaves)}}function kh(e){return B(e)?e:e?[e]:[]}function Ah(e){return(B(e)?e[0]:e)||{}}function jh(e,t){bh(kh(e.series),function(e){xh(e)&&Oh(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),bh(n,function(t){bh(kh(e[t]),function(e){e&&(Eh(e,`axisLabel`),Eh(e.axisPointer,`label`))})}),bh(kh(e.parallel),function(e){var t=e&&e.parallelAxisDefault;Eh(t,`axisLabel`),Eh(t&&t.axisPointer,`label`)}),bh(kh(e.calendar),function(e){wh(e,`itemStyle`),Eh(e,`dayLabel`),Eh(e,`monthLabel`),Eh(e,`yearLabel`)}),bh(kh(e.radar),function(e){Eh(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),bh(kh(e.geo),function(e){xh(e)&&(Dh(e),bh(kh(e.regions),function(e){Dh(e)}))}),bh(kh(e.timeline),function(e){Dh(e),wh(e,`label`),wh(e,`itemStyle`),wh(e,`controlStyle`,!0);var t=e.data;B(t)&&F(t,function(e){U(e)&&(wh(e,`label`),wh(e,`itemStyle`))})}),bh(kh(e.toolbox),function(e){wh(e,`iconStyle`),bh(e.feature,function(e){wh(e,`iconStyle`)})}),Eh(Ah(e.axisPointer),`label`),Eh(Ah(e.tooltip).axisPointer,`label`)}function Mh(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function Nh(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function Ph(e){e&&F(Fh,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Fh=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Ih=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Lh=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Rh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Lh.length;n++){var r=Lh[n][1],i=Lh[n][0];t[r]!=null&&(t[i]=t[r])}}function zh(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Bh(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Vh(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus=`adjacency`))}function Hh(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Hh(e[n].children,t)}function Uh(e,t){jh(e,t),e.series=ao(e.series),F(e.series,function(e){if(U(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),zh(e.label);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)zh(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Mh(e,`pointer.color`);i!=null&&Nh(e,`itemStyle.color`,i)}else if(t===`bar`){Rh(e),Rh(e.backgroundStyle),Rh(e.emphasis);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Rh(n[r]),Rh(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Bh(e),Hh(e.data,Bh)}else t===`graph`||t===`sankey`?Vh(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&M(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Ph(e)}}),e.dataRange&&(e.visualMap=e.dataRange),F(Ih,function(t){var n=e[t];n&&(B(n)||(n=[n]),F(n,function(e){Ph(e)}))})}function Wh(e){var t=G();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.length&&i.setCalculationInfo(`stackedOnSeries`,r[r.length-1].seriesModel),r.push(a)}}),t.each(Gh)}function Gh(e){F(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=za(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Kh=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Um(this,n)===Im.Must&&(r.type=`ordinal`)}}return e}();function qh(e){return e instanceof Kh}function Jh(e,t,n){n=n||Zh(e);var r=t.seriesLayoutBy,i=Qh(e,n,r,t.sourceHeader,t.dimensions);return new Kh({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:O(t)})}function Yh(e){return new Kh({data:e,sourceFormat:ue(e)?Nm:km})}function Xh(e){return new Kh({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:O(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Zh(e){var t=Pm;if(ue(e))t=Nm;else if(B(e)){e.length===0&&(t=Am);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(B(i)||ue(i)){t=Am;break}else if(U(i)){t=jm;break}}}}else if(U(e)){for(var a in e)if(K(e,a)&&P(e[a])){t=Mm;break}}return t}function Qh(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:eg(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?tg(function(e){e!=null&&e!==`-`&&(H(e)?o==null&&(o=1):o=0)},n,s,10):o=ce(r)?r:+!!r,!i&&o===1&&(i=[],tg(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||(i=$h(e));else if(t===`keyedColumns`)i||(i=[],F(e,function(e,t){i.push(t)}));else if(t===`original`){var c=co(e[0]);a=B(c)&&c.length||1}return{startIndex:o,dimensionsDefine:eg(i),dimensionsDetectedCount:a}}function $h(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return L(n)}function eg(e){if(e){var t=G();return I(e,function(e,n){e=U(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName==null&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function tg(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function ng(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var rg,ig,ag,og,sg,cg=function(){function e(e,t){var n=qh(e)?e:Yh(e);this._source=n;var r=this._data=n.data;n.sourceFormat===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),sg(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;sg=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=og[vg(o,s)];j(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=R(dg(o,s),null,i,c,l),e.count=R(mg(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};og=(e={},e[Am+`_`+Fm]={pure:!0,appendData:i},e[Am+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[jm]={pure:!0,appendData:i},e[Mm]={pure:!0,appendData:function(e){var t=this._data;F(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[km]={appendData:i},e[Nm]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),lg=function(e,t,n,r){return e[r]},ug=(rg={},rg[Am+`_`+Fm]=function(e,t,n,r){return e[r+t]},rg[Am+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},rg[jm]=lg,rg[Mm]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=e[n[o].name];a[o]=s?s[r]:null}return a},rg[km]=lg,rg);function dg(e,t){return ug[vg(e,t)]}var fg=function(e,t,n){return e.length},pg=(ig={},ig[Am+`_`+Fm]=function(e,t,n){return Math.max(0,e.length-t)},ig[Am+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},ig[jm]=fg,ig[Mm]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},ig[km]=fg,ig);function mg(e,t){return pg[vg(e,t)]}var hg=function(e,t,n){return e[t]},gg=(ag={},ag[Am]=hg,ag[jm]=function(e,t,n){return e[n]},ag[Mm]=hg,ag[km]=function(e,t,n){var r=co(e);return r instanceof Array?r[t]:r},ag[Nm]=hg,ag);function _g(e){return gg[e]}function vg(e,t){return e===`arrayRows`?e+`_`+t:e}function yg(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return _g(a)(r,o,s)}else{var c=r;return a===`original`&&(c=co(r)),c}}}}var bg=/\{@(.+?)\}/g,xg=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t=t||`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||(i=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`])),V(i))return s.status=t,s.dimensionIndex=r,i(s);if(H(i))return om(i,s).replace(bg,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=yg(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return yg(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Sg(e){var t,n;return U(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Cg(e){return new wg(e)}var wg=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(B(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Tg.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Tg.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),B(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Tg=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function Eg(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!ce(e)&&e!=null&&e!==`-`&&(e=+Wa(e)),e==null||e===``?NaN:Number(e))}var Dg=G({number:function(e){return parseFloat(e)},time:function(e){return+Wa(e)},trim:function(e){return H(e)?xe(e):e}});function Og(e){return Dg.get(e)}var kg={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Ag=function(){function e(e,t){ce(t)||to(``),this._opFn=kg[e],this._rvalFloat=Xa(t)}return e.prototype.evaluate=function(e){return ce(e)?this._opFn(e,this._rvalFloat):this._opFn(Xa(e),this._rvalFloat)},e}(),jg=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t==null&&(t=n?`min`:`max`),this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ce(e)?e:Xa(e),r=ce(t)?t:Xa(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=H(e),s=H(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),Mg=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Xa(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Xa(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Ng(e,t){return e===`eq`||e===`ne`?new Mg(e===`eq`,t):K(kg,e)?new Ag(e,t):null}var Pg=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Eg(e,t)},e}();function Fg(e,t){var n=new Pg,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&to(``);var o=[],s={},c=e.dimensionsDefine;if(c)F(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(K(s,n)&&to(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=dg(i,Fm);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=R(Ig,null,e)),n.cloneRawData=R(Lg,null,e),n.count=R(mg(i,Fm),null,r,a,o);var d=_g(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=R(Rg,null,o,s),n.cloneAllDimensionInfo=R(zg,null,o),n}function Ig(e){var t=e.sourceFormat;return Wg(t)||to(``),e.data}function Lg(e){var t=e.sourceFormat,n=e.data;if(Wg(t)||to(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(j({},n[i]));return r}}function Rg(e,t,n){if(n!=null){if(ce(n)||!isNaN(n)&&!K(t,n))return e[n];if(K(t,n))return t[n]}}function zg(e){return O(e)}var Bg=G();function Vg(e){e=O(e);var t=e.type,n=``;t||to(n);var r=t.split(`:`);r.length!==2&&to(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Bg.set(t,e)}function Hg(e,t,n){var r=ao(e),i=r.length;i||to(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=Ug(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function Ug(e,t,n,r){var i=``;t.length||to(i),U(e)||to(i);var a=e.type,o=Bg.get(a);o||to(i);var s=I(t,function(e){return Fg(e,o)});return I(ao(o.transform({upstream:s[0],upstreamList:s,config:O(e.config)})),function(e,n){var r=``;U(e)||to(r),e.data||to(r),Wg(Zh(e.data))||to(r);var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Fm,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Fm,sourceHeader:0,dimensions:e.dimensions};return Jh(e.data,i,null)})}function Wg(e){return e===`arrayRows`||e===`objectRows`}var Gg=`undefined`,Kg=typeof Uint32Array===Gg?Array:Uint32Array,qg=typeof Uint16Array===Gg?Array:Uint16Array,Jg=typeof Int32Array===Gg?Array:Int32Array,Yg=typeof Float64Array===Gg?Array:Float64Array,Xg={float:Yg,int:Jg,ordinal:Array,number:Array,time:Yg},Zg;function Qg(e){return e>65535?Kg:qg}function $g(){return[1/0,-1/0]}function e_(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function t_(e,t,n,r,i){var a=Xg[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var n_=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Zg[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],ng(r),this._dimensions=I(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Xg[t||`float`](this._rawCount),this._rawExtent[i]=$g(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=$g());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];t_(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Zg.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=I(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=$g()),t_(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;n==null&&(n=1/0);for(var a=1/0,o=-1,s=0,c=0,l=this.count();c<l;c++){var u=t-r[this.getRawIndex(c)],d=Math.abs(u);d<=n&&((d<a||d===a&&u>=0&&o<0)&&(a=d,o=u,s=0),u===o&&(i[s++]=c))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Qg(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Qg(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=L(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Qg(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=$g();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Qg(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Qg(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=$g(),d=new(Qg(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=$g();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&re(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?e_(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=O(this._extent),e._rawExtent=O(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Eg(e[r],this._dimensions[r])}Zg={arrayRows:e,objectRows:function(e,t,n,r){return Eg(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Eg(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),r_=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(a_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ue(o)?Nm:km,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=W(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=W(u.sourceHeader,d.sourceHeader),m=W(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Jh(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Jh(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&o_(``);var i,a=[],o=[];return F(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&o_(``),a.push(t),o.push(e._getVersionSign())}),n?i=Hg(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Xh(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||(a=i[r]={});var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];a_(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new n_,o.initData(new cg(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(a_(e)){var t=Vm(e);return t?[t.getSourceManager()]:[]}else return I(Hm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(a_(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function i_(e){e.option.transform&&Ce(e.option.transform)}function a_(e){return e.mainType===`series`}function o_(e){throw Error(e)}var s_=`line-height:1`;function c_(e){var t=e.lineHeight;return t==null?s_:`line-height:`+xt(t+``)+`px`}function l_(e,t){var n=e.color||`#6e7079`,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||`#464646`,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+xt(r+``)+`px;color:`+xt(n)+`;font-weight:`+xt(i+``),valueStyle:`font-size:`+xt(o+``)+`px;color:`+xt(a)+`;font-weight:`+xt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var u_=[0,10,20,30],d_=[``,`
`,`
`,`
`];function f_(e,t){return t.type=e,t}function p_(e){return e.type===`section`}function m_(e){return p_(e)?g_:__}function h_(e){if(p_(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(e){var n=h_(e);n>=t&&(t=n+ +(r&&(!n||p_(e)&&!e.noHeader)))}),t}return 0}function g_(e,t,n,r){var i=t.noHeader,a=y_(h_(t)),o=[],s=t.blocks||[];be(!s||B(s)),s=s||[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(K(l,c)){var u=new jg(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}F(s,function(n,i){var s=t.valueFormatter,c=m_(n)(s?j(j({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):b_(r,o.join(``),i?n:a.html);if(i)return d;var f=rm(t.header,`ordinal`,e.useUTC),p=l_(r,e.renderMode).nameStyle,m=c_(r);return e.renderMode===`richText`?C_(e,f,p)+a.richText+d:b_(r,`<div style="`+p+`;`+m+`;">`+xt(f)+`</div>`+d,n)}function __(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],I(e,function(e,t){return rm(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||`#333`,i),f=a?``:rm(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=l_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:C_(e,f,v))+(o?``:w_(e,m,h,g,y)):b_(r,(s?``:d)+(a?``:x_(f,!s,v))+(o?``:S_(m,h,g,y)),n)}}function v_(e,t,n,r,i,a){if(e)return m_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function y_(e){return{html:u_[e],richText:d_[e]}}function b_(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=c_(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function x_(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+xt(e)+`</span>`}function S_(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],`<span style="`+i+`;`+r+`">`+I(e,function(e){return xt(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function C_(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function w_(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function T_(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return um(n)}function E_(e,t){var n=e.get(`padding`);return n==null?t===`richText`?[8,10]:10:n}var D_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Qa()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=sm({color:t,type:e,renderMode:n,markerId:r});return H(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?F(t,function(e){return j(n,e)}):j(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function O_(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=T_(t,n),u,d,f,p;if(o>1||c&&!o){var m=k_(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=yg(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=xo(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return f_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[f_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!xe(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function k_(e,t,n,r,i){var a=t.getData(),o=re(e,function(e,t,n){var r=a.getDimensionInfo(n);return e=e||r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?F(r,function(e){u(yg(a,n,e),e)}):F(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(f_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var A_=Oo();function j_(e,t){return e.getName(t)||e.getId(t)}var M_=`__universalTransitionEnabled`,N_=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return n.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Cg({count:I_,reset:L_}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(A_(this).sourceManager=new r_(this)).prepareSource();var r=this.getInitialData(e,n);z_(r,this),this.dataTask.context.data=r,A_(this).dataBeforeProcessed=r,P_(this),this._initSelectedMapFromData(r)},n.prototype.mergeDefaultAndTheme=function(e,t){var n=ym(this),r=n?xm(e):{},i=this.subType;$.hasClass(i)&&(i+=`Series`),k(e,t.getTheme().get(this.subType)),k(e,this.getDefaultOption()),oo(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&bm(e,r,n)},n.prototype.mergeOption=function(e,t){e=k(this.option,e,!0),this.fillDataTextStyle(e.data);var n=ym(this);n&&bm(this.option,e,n);var r=A_(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);z_(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,A_(this).dataBeforeProcessed=i,P_(this),this._initSelectedMapFromData(i)},n.prototype.fillDataTextStyle=function(e){if(e&&!ue(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&oo(e[n],`label`,t)},n.prototype.getInitialData=function(e,t){},n.prototype.appendData=function(e){this.getRawData().appendData(e.data)},n.prototype.getData=function(e){var t=V_(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return A_(this).data},n.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},n.prototype.setData=function(e){var t=V_(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}A_(this).data=e},n.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return G(e)},n.prototype.getSourceManager=function(){return A_(this).sourceManager},n.prototype.getSource=function(){return this.getSourceManager().getSource()},n.prototype.getRawData=function(){return A_(this).dataBeforeProcessed},n.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},n.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},n.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},n.prototype.formatTooltip=function(e,t,n){return O_({series:this,dataIndex:e,multipleSeries:t})},n.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(r.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},n.prototype.restoreData=function(){this.dataTask.dirty()},n.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Ym.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},n.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},n.prototype.getProgressive=function(){return this.get(`progressive`)},n.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},n.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},n.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=j_(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},n.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},n.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=L(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},n.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[j_(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},n.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},n.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){U(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=j_(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=j_(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},n.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},n.registerClass=function(e){return $.registerClass(e)},n.protoInitialize=function(){var e=n.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),n}($);ne(N_,xg),ne(N_,Ym),qo(N_,$);function P_(e){var t=e.name;xo(e)||(e.name=F_(e)||t)}function F_(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return F(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function I_(e){return e.model.getRawData().count()}function L_(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),R_}function R_(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function z_(e,t){F(ke(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,z(B_,t))})}function B_(e,t){var n=V_(e);return n&&n.setOutputEnd((t||this).count()),t}function V_(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var H_=function(){function e(){this.group=new Y,this.uid=ap(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Go(H_),Qo(H_);function U_(){var e=Oo();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var W_=Oo(),G_=U_(),K_=function(){function e(){this.group=new Y,this.uid=ap(`viewChart`),this.renderTask=Cg({plan:Y_,reset:X_}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&J_(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&J_(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){kf(this.group,e)},e.markUpdateMethod=function(e,t){W_(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function q_(e,t,n){e&&hu(e)&&(t===`emphasis`?Wl:Gl)(e,n)}function J_(e,t,n){var r=Do(e,t),i=t&&t.highlightKey!=null?_u(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){q_(e,n,i)}):F(ao(r),function(t){q_(e.getItemGraphicEl(t),n,i)})}Go(K_,[`dispose`]),Qo(K_);function Y_(e){return G_(e.model)}function X_(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&W_(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Z_[c]}var Z_={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Q_=`\0__throttleOriginMethod`,$_=`\0__throttleRate`,ev=`\0__throttleType`;function tv(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t=t||0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(e){u=e},f}function nv(e,t,n,r){var i=e[t];if(i){var a=i[Q_]||i,o=i[ev];if(i[$_]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=tv(a,n,r===`debounce`),i[Q_]=a,i[ev]=r,i[$_]=n}return i}}function rv(e,t){var n=e[t];n&&n[Q_]&&(n.clear&&n.clear(),e[t]=n[Q_])}var iv=Oo(),av={itemStyle:$o(ep,!0),lineStyle:$o(Zf,!0)},ov={lineStyle:`stroke`,itemStyle:`fill`};function sv(e,t){return e.visualStyleMapper||av[t]||(console.warn(`Unknown style type '`+t+`'.`),av.itemStyle)}function cv(e,t){return e.visualDrawType||ov[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var lv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=sv(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=cv(e,r),c=a[s],l=V(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||V(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||V(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=j({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},uv=new rp,dv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=sv(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){uv.option=n[r];var o=i(uv);j(e.ensureUniqueItemVisual(t,`style`),o),uv.option.decal&&(e.setItemVisual(t,`decal`,uv.option.decal),uv.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},fv={performRawSeries:!0,overallReset:function(e){var t=G();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),iv(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=iv(t).scope,o=cv(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}},pv=Math.PI;function mv(e,t){t=t||{},M(t,{text:`loading`,textColor:`#000`,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255, 255, 255, 0.8)`,showSpinner:!0,color:`#5470c6`,spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Y,r=new Yc({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new $c({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Yc({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Dd({shape:{startAngle:-pv/2,endAngle:-pv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:pv*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:pv*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var hv=function(){function e(e,t,n,r){this._stageTaskMap=G(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=G();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;F(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});be(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,a=this;F(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.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)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=G(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||Cg({plan:bv,reset:xv,count:wv}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||Cg({reset:gv});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=G(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;be(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,F(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,Cg({reset:_v,onDirty:yv})));n.context={model:e,overallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return V(e)&&(e={overallReset:e,seriesType:Tv(e)}),e.uid=ap(`stageHandler`),t&&(e.visualType=t),e},e}();function gv(e){e.overallReset(e.ecModel,e.api,e.payload)}function _v(e){return e.overallProgress&&vv}function vv(){this.agent.dirty(),this.getDownstream().dirty()}function yv(){this.agent&&this.agent.dirty()}function bv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function xv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ao(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?I(t,function(e,t){return Cv(t)}):Sv}var Sv=Cv(0);function Cv(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function wv(e){return e.data.count()}function Tv(e){Ov=null;try{e(Ev,Dv)}catch(e){}return Ov}var Ev={},Dv={},Ov;kv(Ev,ih),kv(Dv,dh),Ev.eachSeriesByType=Ev.eachRawSeriesByType=function(e){Ov=e},Ev.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Ov=e.subType)};function kv(e,t){for(var n in t.prototype)e[n]=Me}var Av=[`#37A2DA`,`#32C5E9`,`#67E0E3`,`#9FE6B8`,`#FFDB5C`,`#ff9f7f`,`#fb7293`,`#E062AE`,`#E690D1`,`#e7bcf3`,`#9d96f5`,`#8378EA`,`#96BFFF`],jv={color:Av,colorLayer:[[`#37A2DA`,`#ffd85c`,`#fd7b5f`],[`#37A2DA`,`#67E0E3`,`#FFDB5C`,`#ff9f7f`,`#E062AE`,`#9d96f5`],[`#37A2DA`,`#32C5E9`,`#9FE6B8`,`#FFDB5C`,`#ff9f7f`,`#fb7293`,`#e7bcf3`,`#8378EA`,`#96BFFF`],Av]},Mv=`#B9B8CE`,Nv=`#100C2A`,Pv=function(){return{axisLine:{lineStyle:{color:Mv}},splitLine:{lineStyle:{color:`#484753`}},splitArea:{areaStyle:{color:[`rgba(255,255,255,0.02)`,`rgba(255,255,255,0.05)`]}},minorSplitLine:{lineStyle:{color:`#20203B`}}}},Fv=[`#4992ff`,`#7cffb2`,`#fddd60`,`#ff6e76`,`#58d9f9`,`#05c091`,`#ff8a45`,`#8d48e3`,`#dd79ff`],Iv={darkMode:!0,color:Fv,backgroundColor:Nv,axisPointer:{lineStyle:{color:`#817f91`},crossStyle:{color:`#817f91`},label:{color:`#fff`}},legend:{textStyle:{color:Mv},pageTextStyle:{color:Mv}},textStyle:{color:Mv},title:{textStyle:{color:`#EEF1FA`},subtextStyle:{color:`#B9B8CE`}},toolbox:{iconStyle:{borderColor:Mv}},dataZoom:{borderColor:`#71708A`,textStyle:{color:Mv},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:Mv}},timeline:{lineStyle:{color:Mv},label:{color:Mv},controlStyle:{color:Mv,borderColor:Mv}},calendar:{itemStyle:{color:Nv},dayLabel:{color:Mv},monthLabel:{color:Mv},yearLabel:{color:Mv}},timeAxis:Pv(),logAxis:Pv(),valueAxis:Pv(),categoryAxis:Pv(),line:{symbol:`circle`},graph:{color:Fv},gauge:{title:{color:Mv},axisLine:{lineStyle:{color:[[1,`rgba(207,212,219,0.2)`]]}},axisLabel:{color:Mv},detail:{color:`#EEF1FA`}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}}};Iv.categoryAxis.splitLine.show=!1;var Lv=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(H(e)){var i=Ho(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};F(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Rv=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],zv=Rv.concat([`symbolKeepAspect`]),Bv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<Rv.length;o++){var s=Rv[o],c=e.get(s);V(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(j({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=L(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},Vv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<zv.length;r++){var i=zv[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Hv(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:}}function Uv(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:}}function Wv(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}function Gv(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}F([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=j({},t),i.dispatchAction(j(t,{type:e[1],seriesIndex:n(r,t)}))})})}function Kv(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Do(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:B(l)?c.getName(l[0]):c.getName(l),selected:H(r)?r:j({},r)})}})}function qv(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Kv(`map`,`selectchanged`,t,r,e),Kv(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Kv(`map`,`selected`,t,r,e),Kv(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Kv(`map`,`unselected`,t,r,e),Kv(`pie`,`unselected`,t,r,e))})}function Jv(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Yv=Math.round(Math.random()*9),Xv=typeof Object.defineProperty==`function`,Zv=function(){function e(){this._id=`__ec_inner_`+Yv++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Xv?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),Qv=Z.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),$v={line:xd,rect:Yc,roundRect:Yc,square:Yc,circle:Gu,diamond:Z.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Z.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Z.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:Qv},ey={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},ty={};F($v,function(e,t){ty[t]=new e});var ny=Z.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=$i(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=ty[r];i||(r=`rect`,i=ty[r]),ey[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function ry(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||`#fff`,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function iy(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?sf(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?of(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new ny({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=ry,a&&c.setColor(a),c}function ay(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function oy(e,t){if(e!=null)return B(e)||(e=[e,e]),[X(e[0],t[0])||0,X(W(e[1],e[0]),t[1])||0]}function sy(e){return isFinite(e)}function cy(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=sy(r)?r:0,i=sy(i)?i:1,a=sy(a)?a:0,o=sy(o)?o:0,e.createLinearGradient(r,a,i,o)}function ly(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=sy(o)?o:.5,s=sy(s)?s:.5,c=c>=0&&sy(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function uy(e,t,n){for(var r=t.type===`radial`?ly(e,t,n):cy(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function dy(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function fy(e){return parseInt(e,10)}function py(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||fy(s[r])||fy(e.style[r]))-(fy(s[a])||0)-(fy(s[o])||0)|0}function my(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ce(e)?[e]:B(e)?e:null}function hy(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&my(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=I(n,function(e){return e/i}),r/=i)}return[n,r]}var gy=new dc(!0);function _y(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function vy(e){return typeof e==`string`&&e!==`none`}function yy(e){var t=e.fill;return t!=null&&t!==`none`}function by(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function xy(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Sy(e,t,n){var r=is(t.image,t.__image,n);if(os(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ne),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Cy(e,t,n,r){var i,a=_y(n),o=yy(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||gy,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?uy(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?uy(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?Sy(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?Sy(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=hy(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&xy(e,n),o&&by(e,n)):(o&&by(e,n),a&&xy(e,n))),w&&e.setLineDash([])}function wy(e,t,n){var r=t.__image=is(n.image,t.__image,t,t.onload);if(!(!r||!os(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function Ty(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=hy(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(_y(n)&&e.strokeText(i,n.x,n.y),yy(n)&&e.fillText(i,n.x,n.y)):(yy(n)&&e.fillText(i,n.x,n.y),_y(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Ey=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Dy=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Oy(e,t,n,r,i){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){zy(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ws.opacity:o}(r||t.blend!==n.blend)&&(a||(zy(e,i),a=!0),e.globalCompositeOperation=t.blend||ws.blend);for(var s=0;s<Ey.length;s++){var c=Ey[s];(r||t[c]!==n[c])&&(a||(zy(e,i),a=!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||(zy(e,i),a=!0),e.shadowColor=t.shadowColor||ws.shadowColor),a}function ky(e,t,n,r,i){var a=By(t,i.inHover),o=r?null:n&&By(n,i.inHover)||{};if(a===o)return!1;var s=Oy(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(zy(e,i),s=!0),vy(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(zy(e,i),s=!0),vy(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(zy(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(zy(e,i),s=!0),e.lineWidth=c)}for(var l=0;l<Dy.length;l++){var u=Dy[l],d=u[0];(r||a[d]!==o[d])&&(s||(zy(e,i),s=!0),e[d]=a[d]||u[1])}return s}function Ay(e,t,n,r,i){return Oy(e,By(t,i.inHover),n&&By(n,i.inHover),r,i)}function jy(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function My(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r=r||a.isZeroArea(),jy(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Ny(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Py=1,Fy=2,Iy=3,Ly=4;function Ry(e){var t=yy(e),n=_y(e);return!(e.lineDash||!(t^+n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function zy(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function By(e,t){return t&&e.__hoverStyle||e.style}function Vy(e,t){Hy(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hy(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||dy(a,o))&&(o&&o.length&&(zy(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(zy(e,n),e.save(),My(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Z&&t.autoBatch&&Ry(t.style);s||Ny(i,l.transform)?(zy(e,n),jy(e,t)):u||zy(e,n);var d=By(t,n.inHover);t instanceof Z?(n.lastDrawType!==Py&&(c=!0,n.lastDrawType=Py),ky(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Cy(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof Lc?(n.lastDrawType!==Iy&&(c=!0,n.lastDrawType=Iy),ky(e,t,l,c,n),Ty(e,t,d)):t instanceof Vc?(n.lastDrawType!==Fy&&(c=!0,n.lastDrawType=Fy),Ay(e,t,l,c,n),wy(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==Ly&&(c=!0,n.lastDrawType=Ly),Uy(e,t,n)),u&&r&&zy(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Uy(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Hy(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Hy(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Wy=new Zv,Gy=new or(100),Ky=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function qy(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Wy.delete(e);var a=Wy.get(e);if(a)return a;var o=M(e,{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 c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Wy.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Ky.length;++s){var c=o[Ky[s]];if(c!=null&&!B(c)&&!H(c)&&!ce(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Gy.get(l);u&&(i?e.svgElement=u:e.image=u)}var f=Yy(o.dashArrayX),p=Xy(o.dashArrayY),m=Jy(o.symbol),h=Zy(f),g=Qy(p),_=!i&&d.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&Gy.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=eo(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=eo(r,m[t].length);e*=r;var i=g*h.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,d=0,h=0,x=0;d<y.width*2;){for(var S=0,t=0;t<f[l].length;++t)S+=f[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=d+f[l][h]*C,T=a+p[s]*C,E=f[l][h]*o.symbolSize,D=p[s]*o.symbolSize,O=x/2%m[u].length;k(w,T,E,D,m[u][O])}d+=f[l][h],++x,++h,h===f[l].length&&(h=0)}++l,l===f.length&&(l=0)}a+=p[s],++c,++s,s===p.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=iy(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else Vy(b,u)}}}}function Jy(e){if(!e||e.length===0)return[[`rect`]];if(H(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!H(e[n])){t=!1;break}if(t)return Jy([e]);for(var r=[],n=0;n<e.length;++n)H(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Yy(e){if(!e||e.length===0)return[[0,0]];if(ce(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ce(e[r])){n=!1;break}if(n)return Yy([e]);for(var i=[],r=0;r<e.length;++r)if(ce(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=I(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Xy(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ce(e)){var t=Math.ceil(e);return[t,t]}var n=I(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Zy(e){return I(e,function(e){return Qy(e)})}function Qy(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}function $y(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=qy(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=qy(i,t)}}})}var eb=new ct,tb={};function nb(e,t){tb[e]=t}function rb(e){return tb[e]}var ib=`5.6.0`,ab={zrender:`5.6.1`},ob=1,sb=800,cb=900,lb=1e3,ub=2e3,db=5e3,fb=1e3,pb=1100,mb=2e3,hb=3e3,gb=4e3,_b=4500,vb=4600,yb=5e3,bb=6e3,xb=7e3,Sb={PROCESSOR:{FILTER:lb,SERIES_FILTER:sb,STATISTIC:db},VISUAL:{LAYOUT:fb,PROGRESSIVE_LAYOUT:pb,GLOBAL:mb,CHART:hb,POST_CHART_LAYOUT:vb,COMPONENT:gb,BRUSH:yb,CHART_ITEM:_b,ARIA:bb,DECAL:xb}},Cb=`__flagInMainProcess`,wb=`__pendingUpdate`,Tb=`__needsUpdateStatus`,Eb=/^[a-zA-Z0-9_]+$/,Db=`__connectUpdateStatus`,Ob=0,kb=1,Ab=2;function jb(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return Nb(this,e,t)}}function Mb(e){return function(){var t=[...arguments];return Nb(this,e,t)}}function Nb(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ct.prototype[t].apply(e,n)}var Pb=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(ct),Fb=Pb.prototype;Fb.on=Mb(`on`),Fb.off=Mb(`off`);var Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex=function(e){t(n,e);function n(t,n,r){var i=e.call(this,new Lv)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},H(n)&&(n=cx[n]),i._dom=t;var a=`canvas`,o=`auto`,s=!1;r.ssr&&Ea(function(e){var t=Q(e),n=t.dataIndex;if(n!=null){var r=G();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=ya(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:W(r.useDirtyRect,s),useCoarsePointer:W(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=tv(R(c.flush,c),17),n=O(n),n&&Uh(n,!0),i._theme=n,i._locale=vp(r.locale||gp),i._coordSysMgr=new ph;var l=i._api=Xb(i);function u(e,t){return e.__prio-t.__prio}return Cn(sx,u),Cn(ax,u),i._scheduler=new hv(i,l,ax,sx),i._messageCenter=new Pb,i._initEvents(),i.resize=R(i.resize,i),c.animation.on(`frame`,i._onframe,i),Gb(c,i),Kb(c,i),Ce(i),i}return n.prototype._onframe=function(){if(!this._disposed){$b(this);var e=this._scheduler;if(this[wb]){var t=this[wb].silent;this[Cb]=!0;try{Ib(this),zb.update.call(this,null,this[wb].updateParams)}catch(e){throw this[Cb]=!1,this[wb]=null,e}this._zr.flush(),this[Cb]=!1,this[wb]=null,Ub.call(this,t),Wb.call(this,t)}else if(e.unfinished){var n=ob,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),Vb(this,r),e.performVisualTasks(r),Yb(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},n.prototype.getDom=function(){return this._dom},n.prototype.getId=function(){return this.id},n.prototype.getZr=function(){return this._zr},n.prototype.isSSR=function(){return this._ssr},n.prototype.setOption=function(e,t,n){if(!this[Cb]){if(this._disposed){this.id;return}var r,i,a;if(U(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Cb]=!0,!this._model||t){var o=new hh(this._api),s=this._theme,c=this._model=new ih;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},ox);var l={seriesTransition:a,optionChanged:!0};if(n)this[wb]={silent:r,updateParams:l},this[Cb]=!1,this.getZr().wakeUp();else{try{Ib(this),zb.update.call(this,null,l)}catch(e){throw this[wb]=null,this[Cb]=!1,e}this._ssr||this._zr.flush(),this[wb]=null,this[Cb]=!1,Ub.call(this,r),Wb.call(this,r)}}},n.prototype.setTheme=function(){},n.prototype.getModel=function(){return this._model},n.prototype.getOption=function(){return this._model&&this._model.getOption()},n.prototype.getWidth=function(){return this._zr.getWidth()},n.prototype.getHeight=function(){return this._zr.getHeight()},n.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||r.hasGlobalWindow&&window.devicePixelRatio||1},n.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},n.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},n.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},n.prototype.getSvgDataURL=function(){if(r.svgSupported){var e=this._zr;return F(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()}},n.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;F(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return F(r,function(e){e.group.ignore=!1}),a},n.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(dx[n]){var o=a,s=a,c=-a,l=-a,u=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();F(ux,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(O(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=f,s*=f,c*=f,l*=f;var p=c-o,m=l-s,h=d.createCanvas(),g=ya(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:p,height:m}),t){var _=``;return F(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Yc({shape:{x:0,y:0,width:p,height:m},style:{fill:e.connectedBackgroundColor}})),F(u,function(e){var t=new Vc({style:{x:e.left*f-o,y:e.top*f-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},n.prototype.convertToPixel=function(e,t){return Bb(this,`convertToPixel`,e,t)},n.prototype.convertFromPixel=function(e,t){return Bb(this,`convertFromPixel`,e,t)},n.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return F(Ao(n,e),function(e,n){n.indexOf(`Models`)>=0&&F(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r=r||!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r=r||a.containPoint(t,e))}},this)},this),!!r},n.prototype.getVisual=function(e,t){var n=this._model,r=Ao(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?Uv(i,t):Hv(i,a,t)},n.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},n.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},n.prototype._initEvents=function(){var e=this;F(nx,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&Jv(i,function(e){var t=Q(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}else if(t.eventData)return a=j({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)}),F(ix,function(t,n){e._messageCenter.on(n,function(e){this.trigger(n,e)},e)}),F([`selectchanged`],function(t){e._messageCenter.on(t,function(e){this.trigger(t,e)},e)}),qv(this._messageCenter,this,this._api)},n.prototype.isDisposed=function(){return this._disposed},n.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},n.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Fo(this.getDom(),mx,``);var e=this,t=e._api,n=e._model;F(e._componentsViews,function(e){e.dispose(n,t)}),F(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete ux[e.id]},n.prototype.resize=function(e){if(!this[Cb]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[wb]&&(r==null&&(r=this[wb].silent),n=!0,this[wb]=null),this[Cb]=!0;try{n&&Ib(this),zb.update.call(this,{type:`resize`,animation:j({duration:0},e&&e.animation)})}catch(e){throw this[Cb]=!1,e}this[Cb]=!1,Ub.call(this,r),Wb.call(this,r)}}},n.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(U(e)&&(t=e,e=``),e=e||`default`,this.hideLoading(),lx[e]){var n=lx[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},n.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},n.prototype.makeActionFromEvent=function(e){var t=j({},e);return t.type=ix[e.type],t},n.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(U(t)||(t={silent:!!t}),rx[e.type]&&this._model){if(this[Cb]){this._pendingActions.push(e);return}var n=t.silent;Hb.call(this,e,n);var i=t.flush;i?this._zr.flush():i!==!1&&r.browser.weChat&&this._throttledZrFlush(),Ub.call(this,n),Wb.call(this,n)}},n.prototype.updateLabelLayout=function(){eb.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},n.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},n.internalField=function(){Ib=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Lb(e,!0),Lb(e,!1),t.plan()},Lb=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Ho(e.type);u=new(t?H_.getClass(d.main,d.sub):K_.getClass(d.sub)),u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},Rb=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){F([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=G(),F(ao(c),function(e){var t=bo(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(yu(n))if(t instanceof N_)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&eu(t,n,e._api);else{var r=tu(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&$l(t.mainType,t.componentIndex,e._api),a&&F(a,function(e){n.type===`highlight`?Wl(e):Gl(e)})}else vu(n)&&t instanceof N_&&(iu(t,n,e._api),au(t),Qb(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},zb={prepareAndUpdate:function(e){Ib(this),zb.update.call(this,e,{optionChanged:e.newOption!=null})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,t),Vb(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t),qb(this,r,i,t,n);var c=r.get(`backgroundColor`)||`transparent`,l=r.get(`darkMode`);a.setBackgroundColor(c),l!=null&&l!==`auto`&&a.setDarkMode(l),eb.trigger(`afterupdate`,r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var a=[];r.eachComponent(function(e,o){if(e!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,t);c&&c.update&&a.push(s)}else a.push(s)}});var o=G();r.eachSeries(function(e){var a=n._chartsMap[e.__viewId];if(a.updateTransform){var s=a.updateTransform(e,r,i,t);s&&s.update&&o.set(e.uid,1)}else o.set(e.uid,1)}),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:o}),Yb(this,r,i,t,{},o),eb.trigger(`afterupdate`,r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),K_.markUpdateMethod(t,`updateView`),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),qb(this,n,this._api,t,{}),eb.trigger(`afterupdate`,n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),K_.markUpdateMethod(t,`updateVisual`),e(r),this._scheduler.performVisualTasks(r,t,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(e,i){if(e!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),eb.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){zb.update.call(this,e)}},Bb=function(e,t,n,r){if(e._disposed){e.id;return}for(var i=e._model,a=e._coordSysMgr.getCoordinateSystems(),o,s=Ao(i,n),c=0;c<a.length;c++){var l=a[c];if(l[t]&&(o=l[t](i,s,r))!=null)return o}},Vb=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},Hb=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=rx[i],s=o.actionInfo,c=(s.update||`update`).split(`:`),l=c.pop(),u=c[0]!=null&&Ho(c[0]);this[Cb]=!0;var d=[e],f=!1;e.batch&&(f=!0,d=I(e.batch,function(t){return t=M(j({},t),e),t.batch=null,t}));var p=[],m,h=vu(e),g=yu(e);if(g&&Zl(this._api),F(d,function(t){if(m=o.action(t,n._model,n._api),m=m||j({},t),m.type=s.event||m.type,p.push(m),g){var r=jo(e),i=r.queryOptionMap,a=r.mainTypeSpecified?i.keys()[0]:`series`;Rb(n,l,t,a),Qb(n)}else h?(Rb(n,l,t,`series`),Qb(n)):u&&Rb(n,l,t,u.main,u.sub)}),l!==`none`&&!g&&!h&&!u)try{this[wb]?(Ib(this),zb.update.call(this,e),this[wb]=null):zb[l].call(this,e)}catch(e){throw this[Cb]=!1,e}if(m=f?{type:s.event||i,escapeConnect:a,batch:p}:p[0],this[Cb]=!1,!t){var _=this._messageCenter;if(_.trigger(m.type,m),h){var v={type:`selectchanged`,escapeConnect:a,selected:ou(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};_.trigger(v.type,v)}}},Ub=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Hb.call(this,n,e)}},Wb=function(e){!e&&this.trigger(`updated`)},Gb=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[wb]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},Kb=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Jv(n,hu);r&&(nu(r,e,t._api),Qb(t))}).on(`mouseout`,function(e){var n=e.target,r=Jv(n,hu);r&&(ru(r,e,t._api),Qb(t))}).on(`click`,function(e){var n=e.target,r=Jv(n,function(e){return Q(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Q(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r=r||!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;Cn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),F(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&(r===a&&r++,o=``),a=r,n.setZLevel(r)})}}qb=function(e,t,r,i,a){n(t),Jb(e,t,r,i,a),F(e._chartsViews,function(e){e.__alive=!1}),Yb(e,t,r,i,a),F(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},Jb=function(e,t,n,r,i,a){F(a||e._componentsViews,function(e){var i=e.__model;l(i,e),e.render(i,t,n,r),s(i,e),u(i,e)})},Yb=function(e,t,n,r,i,c){var d=e._scheduler;i=j(i||{},{updatedSeries:t.getSeries()}),eb.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),l(t,n),c&&c.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),o(t,n),au(t)}),d.unfinished=f||d.unfinished,eb.trigger(`series:layoutlabels`,t,n,i),eb.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];s(t,n),u(t,n)}),a(e,t),eb.trigger(`series:afterupdate`,t,n,i)},Qb=function(e){e[Tb]=!0,e.getZr().wakeUp()},$b=function(e){e[Tb]&&(e.getZr().storage.traverse(function(e){Wd(e)||i(e)}),e[Tb]=!1)};function i(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function a(e,t){var n=e._zr.storage,i=0;n.traverse(function(e){e.isGroup||i++}),i>t.get(`hoverLayerThreshold`)&&!r.node&&!r.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function o(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function s(e,t){if(!e.preventAutoZ){var n=e.get(`z`)||0,r=e.get(`zlevel`)||0;t.eachRendered(function(e){return c(e,n,r,-1/0),!0})}}function c(e,t,n,r){var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=Math.max(c(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Math.max(e.z2,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(l&&l.showAbove?1:-1))}return r}function l(e,t){t.eachRendered(function(e){if(!Wd(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}})}function u(e,t){var n=e.getModel(`stateAnimation`),r=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Wd(e))return;if(e instanceof Z&&bu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&i(e)}})}Xb=function(e){return new(function(n){t(r,n);function r(){return n!==null&&n.apply(this,arguments)||this}return r.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},r.prototype.enterEmphasis=function(t,n){Wl(t,n),Qb(e)},r.prototype.leaveEmphasis=function(t,n){Gl(t,n),Qb(e)},r.prototype.enterBlur=function(t){Kl(t),Qb(e)},r.prototype.leaveBlur=function(t){ql(t),Qb(e)},r.prototype.enterSelect=function(t){Jl(t),Qb(e)},r.prototype.leaveSelect=function(t){Yl(t),Qb(e)},r.prototype.getModel=function(){return e.getModel()},r.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},r.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},r}(dh))(e)},Zb=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[Db]=t}}F(ix,function(n,r){e._messageCenter.on(r,function(n){if(dx[e.group]&&e[Db]!==Ob){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];F(ux,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,Ob),F(i,function(e){e[Db]!==kb&&e.dispatchAction(r)}),t(i,Ab)}})})}}(),n}(ct),tx=ex.prototype;tx.on=jb(`on`),tx.off=jb(`off`),tx.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var nx=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],rx={},ix={},ax=[],ox=[],sx=[],cx={},lx={},ux={},dx={},fx=new Date-0,px=new Date-0,mx=`_echarts_instance_`;function hx(e,t,n){var r=!(n&&n.ssr);if(r){var i=bx(e);if(i)return i}var a=new ex(e,t,n);return a.id=`ec_`+fx++,ux[a.id]=a,r&&Fo(e,mx,a.id),Zb(a),eb.trigger(`afterinit`,a),a}function gx(e){if(B(e)){var t=e;e=null,F(t,function(t){t.group!=null&&(e=t.group)}),e=e||`g_`+px++,F(t,function(t){t.group=e})}return dx[e]=!0,e}function _x(e){dx[e]=!1}var vx=_x;function yx(e){H(e)?e=ux[e]:e instanceof ex||(e=bx(e)),e instanceof ex&&!e.isDisposed()&&e.dispose()}function bx(e){return ux[Io(e,mx)]}function xx(e){return ux[e]}function Sx(e,t){cx[e]=t}function Cx(e){N(ox,e)<0&&ox.push(e)}function Tx(e,t){Fx(ax,e,t,ub)}function Ex(e){Ox(`afterinit`,e)}function Dx(e){Ox(`afterupdate`,e)}function Ox(e,t){eb.on(e,t)}function kx(e,t,n){V(t)&&(n=t,t=``);var r=U(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!ix[t]&&(be(Eb.test(r)&&Eb.test(t)),rx[r]||(rx[r]={action:n,actionInfo:e}),ix[t]=r)}function Ax(e,t){ph.register(e,t)}function jx(e){var t=ph.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Mx(e,t){Fx(sx,e,t,fb,`layout`)}function Nx(e,t){Fx(sx,e,t,hb,`visual`)}var Px=[];function Fx(e,t,n,r,i){if((V(t)||U(t))&&(n=t,t=r),!(N(Px,n)>=0)){Px.push(n);var a=hv.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function Ix(e,t){lx[e]=t}function Lx(e){f({createCanvas:e})}function Rx(e,t,n){var r=rb(`registerMap`);r&&r(e,t,n)}function zx(e){var t=rb(`getMap`);return t&&t(e)}var Bx=Vg;Nx(mb,lv),Nx(_b,dv),Nx(_b,fv),Nx(mb,Bv),Nx(_b,Vv),Nx(xb,$y),Cx(Uh),Tx(cb,Wh),Ix(`default`,mv),kx({type:bl,event:bl,update:bl},Me),kx({type:xl,event:xl,update:xl},Me),kx({type:Sl,event:Sl,update:Sl},Me),kx({type:Cl,event:Cl,update:Cl},Me),kx({type:wl,event:wl,update:wl},Me),Sx(`light`,jv),Sx(`dark`,Iv);var Vx={};function Hx(e){return e==null?0:e.length||1}function Ux(e){return e}var Wx=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Ux,this._newKeyGetter=r||Ux,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=Hx(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=Hx(c),d=Hx(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=Hx(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=Hx(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),Gx=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Kx(e,t){var n={},r=n.encode={},i=G(),a=[],o=[],s={};F(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;qx(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),Yx(n.type)&&(a[0]=t),qx(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Om.each(function(e,t){var i=qx(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=I(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new Gx(s,t),n}function qx(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Jx(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function Yx(e){return!(e===`ordinal`||e===`time`)}var Xx=function(){function e(e){this.otherDims={},e!=null&&j(this,e)}return e}(),Zx=Oo(),Qx={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},$x=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=nS(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return W(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=ng(this.source),n=!rS(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=Qx[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function eS(e){return e instanceof $x}function tS(e){for(var t=G(),n=0;n<(e||[]).length;n++){var r=e[n],i=U(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function nS(e){var t=Zx(e);return t.dimNameMap||(t.dimNameMap=tS(e.dimensionsDefine))}function rS(e){return e>30}var iS=U,aS=I,oS=typeof Int32Array>`u`?Array:Int32Array,sS=`e\0\0`,cS=-1,lS=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],uS=[`_approximateExtent`],dS,fS,pS,mS,hS,gS,_S,vS=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;eS(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=H(u)?new Xx({name:u}):u instanceof Xx?u:new Xx(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),p.itemName===0&&(this._nameDimIdx=l),p.itemId===0&&(this._idDimIdx=l),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=G();F(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(ce(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof n_&&(i=e),!i){var a=this.dimensions,o=qh(e)||P(e)?new cg(e,a.length):e;i=new n_;var s=aS(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Kx(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&_S(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&lo(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=bo(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=bo(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)_S(this,o);dS(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){iS(e)?j(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=pS(this,this._nameDimIdx,t)),n==null&&(n=``),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return fS(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return B(e)?r.getValues(aS(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?cS:r},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){V(e)&&(n=t,t=e,e=[]);var r=n||this,i=aS(mS(e),this._getStoreDimIndex,this);this._store.each(i,r?R(t,r):t)},e.prototype.filterSelf=function(e,t,n){V(e)&&(n=t,t=e,e=[]);var r=n||this,i=aS(mS(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?R(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=L(e),i=[];return F(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){V(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=aS(mS(e),this._getStoreDimIndex,this),o=gS(this);return o._store=this._store.map(a,i?R(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=aS(mS(e),this._getStoreDimIndex,this);this._store.modify(a,i?R(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=gS(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=gS(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=gS(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new rp(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Wx(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return fS(e,t)},function(e){return fS(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},iS(e)?j(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return r==null?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return i==null&&(i=this.getVisual(t),B(i)?i=i.slice():iS(i)&&(i=j({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,iS(t)?j(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){iS(e)?j(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?j(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){pl(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){F(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:aS(this.dimensions,this._getDimInfo,this),this.hostModel)),hS(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];V(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ve(arguments)))})},e.internalField=function(){dS=function(e){var t=e._invertedIndicesMap;F(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new oS(a.categories.length);for(var s=0;s<n.length;s++)n[s]=cS;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},pS=function(e,t,n){return bo(e._getCategory(t,n),null)},fS=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=pS(e,e._idDimIdx,t)),n==null&&(n=sS+t),n},mS=function(e){return B(e)||(e=e==null?[]:[e]),e},gS=function(t){var n=new e(t._schema?t._schema:aS(t.dimensions,t._getDimInfo,t),t.hostModel);return hS(n,t),n},hS=function(e,t){F(lS.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,F(uS,function(n){e[n]=O(t[n])}),e._calculationInfo=j({},t._calculationInfo)},_S=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=pS(e,i,t)),s==null&&a!=null&&(r[t]=s=pS(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function yS(e,t){return bS(e,t).dimensions}function bS(e,t){qh(e)||(e=Yh(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=G(),a=[],o=SS(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&rS(o),c=r===e.dimensionsDefine,l=c?nS(e):tS(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=G(u),f=new Jg(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=U(n)?n:{name:n},o=new Xx,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=ao(e).slice();if(n.length===1&&!H(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);F(n,function(e,n){var i=H(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;F(n,function(e){var t,n,r,i;if(H(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=j({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=ao(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}F(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(M(o,i),t,a),o.name==null&&n){var s=n[a];!U(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&M(o.otherDims,r)})}});function g(e,t,n){Om.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name==null&&(e.name=e.coordDim)}if(s)F(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim==null&&(C.coordDim=CS(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Um(e,S)===Im.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return xS(a),new $x({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function xS(e){for(var t=G(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function SS(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(e){var t;U(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function CS(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var wS=function(){function e(e){this.coordSysDims=[],this.axisMap=G(),this.categoryAxisMap=G(),this.coordSysName=e}return e}();function TS(e){var t=e.get(`coordinateSystem`),n=new wS(t),r=ES[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var ES={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Mo).models[0],a=e.getReferringComponents(`yAxis`,Mo).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),DS(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),DS(a)&&(r.set(`y`,a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Mo).models[0];t.coordSysDims=[`single`],n.set(`single`,i),DS(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Mo).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),DS(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),DS(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();F(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),DS(s)&&(r.set(c,s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=a))})}};function DS(e){return e.get(`type`)===`category`}function OS(e,t,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;kS(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(F(a,function(e,t){H(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,m=u.type,h=0;F(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function kS(e){return!eS(e.schema)}function AS(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function jS(e,t){return AS(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function MS(e,t){var n=e.get(`coordinateSystem`),r=ph.get(n),i;return t&&t.coordSysDims&&(i=I(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=Jx(r.get(`type`))),n})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`]),i}function NS(e,t,n){var r,i;return n&&F(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r==null&&(r=a),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function PS(e,t,n){n=n||{};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Yh(e)):(i=r.getSource(),a=i.sourceFormat===km);var o=TS(t),s=MS(t,o),c=n.useEncodeDefaulter,l=V(c)?c:c?z(zm,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=bS(i,u),f=NS(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=OS(t,{schema:d,store:p}),h=new vS(d,t);h.setCalculationInfo(m);var g=f!=null&&FS(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function FS(e){if(e.sourceFormat===`original`)return!B(co(IS(e.data||[])))}function IS(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var LS=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Qo(LS);var RS=0,zS=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++RS}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&I(r,BS);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!H(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return t=r.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=G(this.categories))},e}();function BS(e){return U(e)&&e.value!=null?e.value:e+``}function VS(e){return e.type===`interval`||e.type===`log`}function HS(e,t,n,r){var i={},a=i.interval=qa((e[1]-e[0])/t,!0);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var o=i.intervalPrecision=WS(a);return KS(i.niceTickExtent=[Ma(Math.ceil(e[0]/a)*a,o),Ma(Math.floor(e[1]/a)*a,o)],e),i}function US(e){var t=10**Ka(e),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Ma(n*t)}function WS(e){return Pa(e)+2}function GS(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function KS(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),GS(e,0,t),GS(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function qS(e,t){return e>=t[0]&&e<=t[1]}function JS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function YS(e,t){return e*(t[1]-t[0])+t[0]}var XS=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||(r=new zS({})),B(r)&&(r=new zS({categories:I(r,function(e){return U(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return n.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},n.prototype.contain=function(e){return e=this.parse(e),qS(e,this._extent)&&this._ordinalMeta.categories[e]!=null},n.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),JS(e,this._extent)},n.prototype.scale=function(e){return e=Math.round(YS(e,this._extent)),this.getRawOrdinalNumber(e)},n.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},n.prototype.getMinorTicks=function(e){},n.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n.push(c),r[c]=i}},n.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},n.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},n.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},n.prototype.count=function(){return this._extent[1]-this._extent[0]+1},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},n.prototype.getOrdinalMeta=function(){return this._ordinalMeta},n.prototype.calcNiceTicks=function(){},n.prototype.calcNiceExtent=function(){},n.type=`ordinal`,n}(LS);LS.registerClass(XS);var ZS=Ma,QS=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return n.prototype.parse=function(e){return e},n.prototype.contain=function(e){return qS(e,this._extent)},n.prototype.normalize=function(e){return JS(e,this._extent)},n.prototype.scale=function(e){return YS(e,this._extent)},n.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},n.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},n.prototype.getInterval=function(){return this._interval},n.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=WS(e)},n.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;var o=1e4;n[0]<r[0]&&(e?a.push({value:ZS(r[0]-t,i)}):a.push({value:n[0]}));for(var s=r[0];s<=r[1]&&(a.push({value:s}),s=ZS(s+t,i),s!==a[a.length-1].value);)if(a.length>o)return[];var c=a.length?a[a.length-1].value:r[1];return n[1]>c&&(e?a.push({value:ZS(c+t,i)}):a.push({value:n[1]})),a},n.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var a=t[i],o=t[i-1],s=0,c=[],l=(a.value-o.value)/e;s<e-1;){var u=ZS(o.value+(s+1)*l);u>r[0]&&u<r[1]&&c.push(u),s++}n.push(c)}return n},n.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Pa(e.value)||0:n===`auto`&&(n=this._intervalPrecision),em(ZS(e.value,n,!0))},n.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var a=HS(r,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},n.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(t[0]!==0){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=ZS(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=ZS(Math.ceil(t[1]/i)*i))},n.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},n.type=`interval`,n}(LS);LS.registerClass(QS);var $S=typeof Float32Array<`u`,eC=$S?Float32Array:Array;function tC(e){return B(e)?$S?new Float32Array(e):e:new eC(e)}var nC=`__ec_stack_`;function rC(e){return e.get(`stack`)||nC+e.seriesIndex}function iC(e){return e.dim+e.index}function aC(e,t){var n=[];return t.eachSeriesByType(e,function(e){fC(e)&&n.push(e)}),n}function oC(e){var t={};F(e,function(e){var n=e.coordinateSystem.getBaseAxis();if(!(n.type!==`time`&&n.type!==`value`))for(var r=e.getData(),i=n.dim+`_`+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function sC(e){var t=oC(e),n=[];return F(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=X(e.get(`barWidth`),a),f=X(e.get(`barMaxWidth`),a),p=X(e.get(`barMinWidth`)||(pC(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,axisKey:iC(r),stackId:rC(e)})}),cC(n)}function cC(e){var t={};F(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:`20%`,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return F(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=L(r).length;a=Math.max(35-o*4,15)+`%`}var s=X(a,i),c=X(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),F(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;F(r,function(e,t){e.width||(e.width=d),p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;F(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function lC(e,t,n){if(e&&t){var r=e[iC(t)];return r!=null&&n!=null?r[rC(n)]:r}}function uC(e,t){var n=aC(e,t),r=sC(n);F(n,function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=rC(e),a=r[iC(n)][i],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})})}function dC(e){return{seriesType:e,plan:U_(),reset:function(e){if(fC(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=AS(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=mC(r,i),p=pC(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&tC(r*3),c=p&&s&&tC(r*3),l=p&&tC(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);if(u){var M=n.dataToPoint([E,w]);T=M[0]}D=T,O=j[1]+_,k=j[0]-T,A=g,Math.abs(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);if(u){var M=n.dataToPoint([w,E]);T=M[1]}D=j[0]+_,O=T,k=g,A=j[1]-T,Math.abs(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function fC(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function pC(e){return e.pipelineContext&&e.pipelineContext.large}function mC(e,t){var n=t.model.get(`startValue`);return n||(n=0),t.toGlobalCoord(t.dataToCoord(t.type===`log`?n>0?n:1:n))}var hC=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},gC=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.type=`time`,n}return n.prototype.getLabel=function(e){var t=this.getSetting(`useUTC`);return Fp(e.value,Op[Pp(Mp(this._minLevelUnit))]||Op.second,t,this.getSetting(`locale`))},n.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return Ip(e,t,n,this.getSetting(`locale`),r)},n.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting(`useUTC`),i=TC(this._minLevelUnit,this._approxInterval,r,t);return n=n.concat(i),n.push({value:t[1],level:0}),n},n.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=wp,t[1]+=wp),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-wp}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},n.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,t!=null&&this._approxInterval<t&&(this._approxInterval=t),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var a=_C.length,o=Math.min(hC(_C,this._approxInterval,0,a),a-1);this._interval=_C[o][1],this._minLevelUnit=_C[Math.max(o-1,0)][0]},n.prototype.parse=function(e){return ce(e)?e:+Wa(e)},n.prototype.contain=function(e){return qS(this.parse(e),this._extent)},n.prototype.normalize=function(e){return JS(this.parse(e),this._extent)},n.prototype.scale=function(e){return YS(e,this._extent)},n.type=`time`,n}(QS),_C=[[`second`,xp],[`minute`,Sp],[`hour`,Cp],[`quarter-day`,Cp*6],[`half-day`,Cp*12],[`day`,wp*1.2],[`half-week`,wp*3.5],[`week`,wp*7],[`month`,wp*31],[`quarter`,wp*95],[`half-year`,Tp/2],[`year`,Tp]];function vC(e,t,n,r){var i=Wa(t),a=Wa(n),o=function(e){return Rp(i,e,r)===Rp(a,e,r)},s=function(){return o(`year`)},c=function(){return s()&&o(`month`)},l=function(){return c()&&o(`day`)},u=function(){return l()&&o(`hour`)},d=function(){return u()&&o(`minute`)},f=function(){return d()&&o(`second`)},p=function(){return f()&&o(`millisecond`)};switch(e){case`year`:return s();case`month`:return c();case`day`:return l();case`hour`:return u();case`minute`:return d();case`second`:return f();case`millisecond`:return p()}}function yC(e,t){return e/=wp,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function bC(e){var t=30*wp;return e/=t,e>6?6:e>3?3:e>2?2:1}function xC(e){return e/=Cp,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function SC(e,t){return e/=t?Sp:xp,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function CC(e){return qa(e,!0)}function wC(e,t,n){var r=new Date(e);switch(Mp(t)){case`year`:case`month`:r[qp(n)](0);case`day`:r[Jp(n)](1);case`hour`:r[Yp(n)](0);case`minute`:r[Xp(n)](0);case`second`:r[Zp(n)](0),r[Qp(n)](0)}return r.getTime()}function TC(e,t,n,r){var i=1e4,a=Ap,o=0;function s(e,t,n,i,a,o,s){for(var c=new Date(t),l=t,u=c[i]();l<n&&l<=r[1];)s.push({value:l}),u+=e,c[a](u),l=c.getTime();s.push({value:l,notAdd:!0})}function c(e,i,a){var o=[],c=!i.length;if(!vC(Mp(e),r[0],r[1],n)){c&&(i=[{value:wC(new Date(r[0]),e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/wp/365)),p=zp(n),m=Kp(n);break;case`half-year`:case`quarter`:case`month`:f=bC(t),p=Bp(n),m=qp(n);break;case`week`:case`half-week`:case`day`:f=yC(t,31),p=Vp(n),m=Jp(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=xC(t),p=Hp(n),m=Yp(n);break;case`minute`:f=SC(t,!0),p=Up(n),m=Xp(n);break;case`second`:f=SC(t,!1),p=Wp(n),m=Zp(n);break;case`millisecond`:f=CC(t),p=Gp(n),m=Qp(n);break}s(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l]);return o}}for(var l=[],u=[],d=0,f=0,p=0;p<a.length&&o++<i;++p){var m=Mp(a[p]);if(Np(a[p])&&(c(a[p],l[l.length-1]||[],u),m!==(a[p+1]?Mp(a[p+1]):null))){if(u.length){f=d,u.sort(function(e,t){return e.value-t.value});for(var h=[],g=0;g<u.length;++g){var _=u[g].value;(g===0||u[g-1].value!==_)&&(h.push(u[g]),_>=r[0]&&_<=r[1]&&d++)}var v=(r[1]-r[0])/t;if(d>v*1.5&&f>v/1.5||(l.push(h),d>v||e===a[p]))break}u=[]}}for(var y=ie(I(l,function(e){return ie(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),b=[],x=y.length-1,p=0;p<y.length;++p)for(var S=y[p],C=0;C<S.length;++C)b.push({value:S[C].value,level:x-p});b.sort(function(e,t){return e.value-t.value});for(var w=[],p=0;p<b.length;++p)(p===0||b[p].value!==b[p-1].value)&&w.push(b[p]);return w}LS.registerClass(gC);var EC=LS.prototype,DC=QS.prototype,OC=Ma,kC=Math.floor,AC=Math.ceil,jC=Math.pow,MC=Math.log,NC=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new QS,t._interval=0,t}return n.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent();return I(DC.getTicks.call(this,e),function(e){var t=e.value,i=Ma(jC(this.base,t));return i=t===n[0]&&this._fixMin?FC(i,r[0]):i,i=t===n[1]&&this._fixMax?FC(i,r[1]):i,{value:i}},this)},n.prototype.setExtent=function(e,t){var n=MC(this.base);e=MC(Math.max(0,e))/n,t=MC(Math.max(0,t))/n,DC.setExtent.call(this,e,t)},n.prototype.getExtent=function(){var e=this.base,t=EC.getExtent.call(this);t[0]=jC(e,t[0]),t[1]=jC(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=FC(t[0],n[0])),this._fixMax&&(t[1]=FC(t[1],n[1])),t},n.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=MC(e[0])/MC(t),e[1]=MC(e[1])/MC(t),EC.unionExtent.call(this,e)},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=Ga(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[Ma(AC(t[0]/r)*r),Ma(kC(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},n.prototype.calcNiceExtent=function(e){DC.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},n.prototype.parse=function(e){return e},n.prototype.contain=function(e){return e=MC(e)/MC(this.base),qS(e,this._extent)},n.prototype.normalize=function(e){return e=MC(e)/MC(this.base),JS(e,this._extent)},n.prototype.scale=function(e){return e=YS(e,this._extent),jC(this.base,e)},n.type=`log`,n}(LS),PC=NC.prototype;PC.getMinorTicks=DC.getMinorTicks,PC.getLabel=DC.getLabel;function FC(e,t){return OC(e,Pa(t))}LS.registerClass(NC);var IC=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal=e.type===`ordinal`;this._needCrossZero=e.type===`interval`&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get(`min`,!0);i==null&&(i=t.get(`startValue`,!0));var a=this._modelMinRaw=i;V(a)?this._modelMinNum=BC(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=BC(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(V(o)?this._modelMaxNum=BC(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=BC(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=B(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Qi(c[0],1),Qi(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o=this._modelMinRaw===`dataMin`?t:this._modelMinNum,s=this._modelMaxRaw===`dataMax`?n:this._modelMaxNum,c=o!=null,l=s!=null;o==null&&(o=e?r?0:NaN:t-i[0]*a),s==null&&(s=e?r?r-1:NaN:n+i[1]*a),(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var u=he(o)||he(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[RC[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=LC[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),LC={min:`_determinedMin`,max:`_determinedMax`},RC={min:`_dataMin`,max:`_dataMax`};function zC(e,t,n){var r=e.rawExtentInfo;return r||(r=new IC(e,t,n),e.rawExtentInfo=r,r)}function BC(e,t){return t==null?null:he(t)?NaN:e.parse(t)}function VC(e,t){var n=e.type,r=zC(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=aC(`bar`,o),c=!1;if(F(s,function(e){c=c||e.getBaseAxis()===t.axis}),c){var l=sC(s),u=HC(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function HC(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=lC(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;F(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;F(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=c/l*d,e-=s/l*d,{min:e,max:t}}function UC(e,t){var n=t,r=VC(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof NC&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function WC(e,t){if(t=t||e.get(`type`),t)switch(t){case`category`:return new XS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new gC({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((LS.getClass(t))||QS)}}function GC(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function KC(e){var t=e.getLabelModel().get(`formatter`),n=e.type===`category`?e.scale.getExtent()[0]:null;return e.scale.type===`time`?function(t){return function(n,r){return e.scale.getFormattedLabel(n,r,t)}}(t):H(t)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r==null?``:r)}}(t):V(t)?function(t){return function(r,i){return n!=null&&(i=r.value-n),t(qC(e,r),i,r.level==null?null:{level:r.level})}}(t):function(t){return e.scale.getLabel(t)}}function qC(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function JC(e){var t=e.model,n=e.scale;if(!(!t.get([`axisLabel`,`show`])||n.isBlank())){var r,i,a=n.getExtent();n instanceof XS?i=n.count():(r=n.getTicks(),i=r.length);var o=e.getLabelModel(),s=KC(e),c,l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u<i;u+=l){var d=s(r?r[u]:{value:a[0]+u},u),f=YC(o.getTextRect(d),o.get(`rotate`)||0);c?c.union(f):c=f}return c}}function YC(e,t){var n=t*Math.PI/180,r=e.width,i=e.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n));return new J(e.x,e.y,a,o)}function XC(e){var t=e.get(`interval`);return t==null?`auto`:t}function ZC(e){return e.type===`category`&&XC(e.getLabelModel())===0}function QC(e,t){var n={};return F(e.mapDimensionsAll(t),function(t){n[jS(e,t)]=!0}),L(n)}function $C(e,t,n){t&&F(QC(t,n),function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])})}var ew=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),tw=e({createDimensions:()=>yS,createList:()=>nw,createScale:()=>iw,createSymbol:()=>iy,createTextStyle:()=>ow,dataStack:()=>rw,enableHoverEmphasis:()=>su,getECData:()=>Q,getLayoutRect:()=>_m,mixinAxisModelCommonMethods:()=>aw});function nw(e){return PS(null,e)}var rw={isDimensionStacked:AS,enableDataStack:OS,getStackedDimension:jS};function iw(e,t){var n=t;t instanceof rp||(n=new rp(t));var r=WC(n);return r.setExtent(e[0],e[1]),UC(r,n),r}function aw(e){ne(e,ew)}function ow(e,t){return t=t||{},Ff(e,null,null,t.state!==`normal`)}var sw=[],cw={registerPreprocessor:Cx,registerProcessor:Tx,registerPostInit:Ex,registerPostUpdate:Dx,registerUpdateLifecycle:Ox,registerAction:kx,registerCoordinateSystem:Ax,registerLayout:Mx,registerVisual:Nx,registerTransform:Bx,registerLoading:Ix,registerMap:Rx,registerImpl:nb,PRIORITY:Sb,ComponentModel:$,ComponentView:H_,SeriesModel:N_,ChartView:K_,registerComponentModel:function(e){$.registerClass(e)},registerComponentView:function(e){H_.registerClass(e)},registerSeriesModel:function(e){N_.registerClass(e)},registerChartView:function(e){K_.registerClass(e)},registerSubTypeDefaulter:function(e,t){$.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ca(e,t)}};function lw(e){if(B(e)){F(e,function(e){lw(e)});return}N(sw,e)>=0||(sw.push(e),V(e)&&(e={install:e}),e.install(cw))}var uw=1e-8;function dw(e,t){return Math.abs(e-t)<uw}function fw(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=yc(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!dw(i[0],s[0])||!dw(i[1],s[1]))&&(r+=yc(i[0],i[1],s[0],s[1],t,n)),r!==0}var pw=[];function mw(e,t){for(var n=0;n<e.length;n++)rt(e[n],e[n],t)}function hw(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(it(t,t,a),at(n,n,a))}}function gw(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var _w=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),vw=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),yw=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),bw=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return n.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return gw(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},n.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return F(i,function(t){t.type===`polygon`?hw(t.exterior,n,r,e):F(t.points,function(t){hw(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},n.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if(fw(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(fw(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},n.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||(r=n/a):n=a*r;for(var o=new J(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(mw(u.exterior,s),F(u.interiors,function(e){mw(e,s)})):F(u.points,function(e){mw(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},n.prototype.cloneShallow=function(e){e==null&&(e=this.name);var t=new n(e,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},n}(_w),xw=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return n.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Bt(pw),i=e;i&&!i.isGeoSVGGraphicRoot;)Ht(r,i.getLocalTransform(),r),i=i.parent;return Kt(r,r),rt(n,n,r),n},n}(_w);function Sw(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return F(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=ww(i,r,n);break;case`Polygon`:Cw(i,r,n);break;case`MultiLineString`:Cw(i,r,n);break;case`MultiPolygon`:F(i,function(e,t){return Cw(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function Cw(e,t,n){for(var r=0;r<e.length;r++)e[r]=ww(e[r],t[r],n)}function ww(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function Tw(e,t){return e=Sw(e),I(ie(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new vw(a[0],a.slice(1)));break;case`MultiPolygon`:F(r.coordinates,function(e){e[0]&&i.push(new vw(e[0],e.slice(1)))});break;case`LineString`:i.push(new yw([r.coordinates]));break;case`MultiLineString`:i.push(new yw(r.coordinates))}var o=new bw(n[t||`name`],i,n.cp);return o.properties=n,o})}var Ew=e({MAX_SAFE_INTEGER:()=>Ba,asc:()=>Na,getPercentWithPrecision:()=>La,getPixelPrecision:()=>Ia,getPrecision:()=>Pa,getPrecisionSafe:()=>Fa,isNumeric:()=>Za,isRadianAroundZero:()=>Ha,linearMap:()=>ja,nice:()=>qa,numericToNumber:()=>Xa,parseDate:()=>Wa,quantile:()=>Ja,quantity:()=>Ga,quantityExponent:()=>Ka,reformIntervals:()=>Ya,remRadian:()=>Va,round:()=>Ma}),Dw=e({format:()=>Fp,parse:()=>Wa}),Ow=e({Arc:()=>Dd,BezierCurve:()=>Td,BoundingRect:()=>J,Circle:()=>Gu,CompoundPath:()=>Od,Ellipse:()=>qu,Group:()=>Y,Image:()=>Vc,IncrementalDisplayable:()=>Rd,Line:()=>xd,LinearGradient:()=>Ad,Polygon:()=>gd,Polyline:()=>vd,RadialGradient:()=>jd,Rect:()=>Yc,Ring:()=>fd,Sector:()=>ud,Text:()=>$c,clipPointsByRect:()=>bf,clipRectByRect:()=>xf,createIcon:()=>Sf,extendPath:()=>nf,extendShape:()=>ef,getShapeClass:()=>af,getTransform:()=>mf,initProps:()=>Ud,makeImage:()=>sf,makePath:()=>of,mergePath:()=>lf,registerShape:()=>rf,resizePath:()=>uf,updateProps:()=>Hd}),kw=e({addCommas:()=>em,capitalFirst:()=>lm,encodeHTML:()=>xt,formatTime:()=>cm,formatTpl:()=>om,getTextRect:()=>$p,getTooltipMarker:()=>sm,normalizeCssArray:()=>nm,toCamelCase:()=>tm,truncateText:()=>cs}),Aw=e({bind:()=>R,clone:()=>O,curry:()=>z,defaults:()=>M,each:()=>F,extend:()=>j,filter:()=>ie,indexOf:()=>N,inherits:()=>te,isArray:()=>B,isFunction:()=>V,isObject:()=>U,isString:()=>H,map:()=>I,merge:()=>k,reduce:()=>re}),jw=Oo();function Mw(e,t){var n=I(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function Nw(e){var t=e.getLabelModel().get(`customValues`);if(t){var n=KC(e),r=e.scale.getExtent();return{labels:I(ie(Mw(e,t),function(e){return e>=r[0]&&e<=r[1]}),function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}})}}return e.type===`category`?Fw(e):Rw(e)}function Pw(e,t){var n=e.getTickModel().get(`customValues`);if(n){var r=e.scale.getExtent();return{ticks:ie(Mw(e,n),function(e){return e>=r[0]&&e<=r[1]})}}return e.type===`category`?Lw(e,t):{ticks:I(e.scale.getTicks(),function(e){return e.value})}}function Fw(e){var t=e.getLabelModel(),n=Iw(e,t);return!t.get(`show`)||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Iw(e,t){var n=zw(e,`labels`),r=XC(t),i=Bw(n,r);if(i)return i;var a,o;return V(r)?a=Kw(e,r):(o=r===`auto`?Hw(e):r,a=Gw(e,o)),Vw(n,r,{labels:a,labelCategoryInterval:o})}function Lw(e,t){var n=zw(e,`ticks`),r=XC(t),i=Bw(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),V(r))a=Kw(e,r,!0);else if(r===`auto`){var s=Iw(e,e.getLabelModel());o=s.labelCategoryInterval,a=I(s.labels,function(e){return e.tickValue})}else o=r,a=Gw(e,o,!0);return Vw(n,r,{ticks:a,tickCategoryInterval:o})}function Rw(e){var t=e.scale.getTicks(),n=KC(e);return{labels:I(t,function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}})}}function zw(e,t){return jw(e)[t]||(jw(e)[t]=[])}function Bw(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Vw(e,t,n){return e.push({key:t,value:n}),n}function Hw(e){var t=jw(e).autoInterval;return t==null?jw(e).autoInterval=e.calculateCategoryInterval():t}function Uw(e){var t=Ww(e),n=KC(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var c=a[0],l=e.dataToCoord(c+1)-e.dataToCoord(c),u=Math.abs(l*Math.cos(r)),d=Math.abs(l*Math.sin(r)),f=0,p=0;c<=a[1];c+=s){var m=0,h=0,g=Ji(n({value:c}),t.font,`center`,`top`);m=g.width*1.3,h=g.height*1.3,f=Math.max(f,m,7),p=Math.max(p,h,7)}var _=f/u,v=p/d;isNaN(_)&&(_=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(_,v))),b=jw(e.model),x=e.getExtent(),S=b.lastAutoInterval,C=b.lastTickCount;return S!=null&&C!=null&&Math.abs(S-y)<=1&&Math.abs(C-o)<=1&&S>y&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?y=S:(b.lastTickCount=o,b.lastAutoInterval=y,b.axisExtent0=x[0],b.axisExtent1=x[1]),y}function Ww(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function Gw(e,t,n){var r=KC(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=ZC(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return s}function Kw(e,t,n){var r=e.scale,i=KC(e),a=[];return F(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s})}),a}var qw=[0,1],Jw=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Ia(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&r.type===`ordinal`&&(n=n.slice(),Yw(n,r.count())),ja(e,qw,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),Yw(n,r.count()));var i=ja(e,n,qw,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=Pw(this,t).ticks,r=I(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return Xw(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),I(this.scale.getMinorTicks(e),function(e){return I(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(){return Nw(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+ +!!this.onBand;n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return Uw(this)},e}();function Yw(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function Xw(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;F(t,function(e){e.coord-=l/2});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0]}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1]});function f(e,t){return e=Ma(e),t=Ma(t),d?e>t:e<t}}function Zw(e){var t=$.extend(e);return $.registerClass(t),t}function Qw(e){var t=H_.extend(e);return H_.registerClass(t),t}function $w(e){var t=N_.extend(e);return N_.registerClass(t),t}function eT(e){var t=K_.extend(e);return K_.registerClass(t),t}var tT=Math.PI*2,nT=dc.CMD,rT=[`top`,`right`,`bottom`,`left`];function iT(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function aT(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%tT<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=gc(i),i=gc(f)}else r=gc(r),i=gc(i);r>i&&(i+=tT);var p=Math.atan2(s,o);if(p<0&&(p+=tT),p>=r&&p<=i||p+tT>=r&&p+tT<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function oT(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function sT(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}var cT=[];function lT(e,t,n){var r=sT(t.x,t.y,t.width,t.height,e.x,e.y,cT);return n.set(cT[0],cT[1]),r}function uT(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case nT.M:a=u[p++],o=u[p++],r=a,i=o;break;case nT.L:h=oT(r,i,u[p],u[p+1],d,f,cT,!0),r=u[p++],i=u[p++];break;case nT.C:h=Kn(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,cT),r=u[p++],i=u[p++];break;case nT.Q:h=$n(r,i,u[p++],u[p++],u[p],u[p+1],d,f,cT),r=u[p++],i=u[p++];break;case nT.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=aT(g,_,y,b,b+x,S,C,f,cT),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case nT.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=sT(a,o,w,T,d,f,cT);break;case nT.Z:h=oT(r,i,a,o,d,f,cT,!0),r=a,i=o;break}h<l&&(l=h,n.set(cT[0],cT[1]))}return l}var dT=new q,fT=new q,pT=new q,mT=new q,hT=new q;function gT(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||rT,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&Kt([],u),f=t.get(`length2`)||0;l&&pT.copy(l);for(var p=0;p<o.length;p++){var m=o[p];iT(m,0,s,dT,mT),q.scaleAndAdd(fT,dT,mT,f),fT.transform(d);var h=e.getBoundingRect(),g=l?l.distance(fT):e instanceof Z?uT(fT,e.path,pT):lT(fT,h,pT);g<c&&(c=g,fT.transform(u),pT.transform(u),pT.toArray(a[0]),fT.toArray(a[1]),dT.toArray(a[2]))}yT(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}var _T=[],vT=new q;function yT(e,t){if(t<=180&&t>0){t=t/180*Math.PI,dT.fromArray(e[0]),fT.fromArray(e[1]),pT.fromArray(e[2]),q.sub(mT,dT,fT),q.sub(hT,pT,fT);var n=mT.len(),r=hT.len();if(!(n<.001||r<.001)){mT.scale(1/n),hT.scale(1/r);var i=mT.dot(hT);if(Math.cos(t)<i){var a=oT(fT.x,fT.y,pT.x,pT.y,dT.x,dT.y,_T,!1);vT.fromArray(_T),vT.scaleAndAdd(hT,a/Math.tan(Math.PI-t));var o=pT.x===fT.x?(vT.y-fT.y)/(pT.y-fT.y):(vT.x-fT.x)/(pT.x-fT.x);if(isNaN(o))return;o<0?q.copy(vT,fT):o>1&&q.copy(vT,pT),vT.toArray(e[1])}}}}function bT(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,dT.fromArray(e[0]),fT.fromArray(e[1]),pT.fromArray(e[2]),q.sub(mT,fT,dT),q.sub(hT,pT,fT);var r=mT.len(),i=hT.len();if(!(r<.001||i<.001)&&(mT.scale(1/r),hT.scale(1/i),mT.dot(t)<Math.cos(n))){var a=oT(fT.x,fT.y,pT.x,pT.y,dT.x,dT.y,_T,!1);vT.fromArray(_T);var o=Math.PI/2,s=o+Math.acos(hT.dot(t))-n;if(s>=o)q.copy(vT,pT);else{vT.scaleAndAdd(hT,a/Math.tan(Math.PI/2-s));var c=pT.x===fT.x?(vT.y-fT.y)/(pT.y-fT.y):(vT.x-fT.x)/(pT.x-fT.x);if(isNaN(c))return;c<0?q.copy(vT,fT):c>1&&q.copy(vT,pT)}vT.toArray(e[1])}}}function xT(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function ST(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Qe(r[0],r[1]),a=Qe(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=nt([],r[1],r[0],o/i),c=nt([],r[1],r[2],o/a),l=nt([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function CT(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<yl.length;c++){var l=yl[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:W(i.states[l]&&i.states[l].ignore,s))||!W(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&xT(r,!0,l,u);continue}r||(r=new vd,e.setTextGuideLine(r),!d&&(s||!o)&&xT(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),xT(r,!1,l,u)}}if(r){M(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=ST}}function wT(e,t){t=t||`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<vl.length;r++){var i=vl[r];n[i]=e.getModel([i,t])}return n}function TT(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,c=i.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=c/2,l.y-=c/2,l.width+=c,l.height+=c;var u=s?new Id(o,a):null;t.push({label:i,labelLine:r.labelLine,rect:l,localRect:o,obb:u,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return t}function ET(e,t,n,r,i,a){var o=e.length;if(o<2)return;e.sort(function(e,n){return e.rect[t]-n.rect[t]});for(var s=0,c,l=!1,u=[],d=0,f=0;f<o;f++){var p=e[f],m=p.rect;c=m[t]-s,c<0&&(m[t]-=c,p.label[t]-=c,l=!0);var h=Math.max(-c,0);u.push(h),d+=h,s=m[t]+m[n]}d>0&&a&&S(-d/o,0,o);var g=e[0],_=e[o-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[t]-r,y=i-_.rect[t]-_.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,o);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(n,r,i){n!==0&&(l=!0);for(var a=r;a<i;a++){var o=e[a],s=o.rect;s[t]+=n,o.label[t]+=n}}function C(r,i){for(var a=[],s=0,c=1;c<o;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[t]-l[t]-l[n],0);a.push(u),s+=u}if(s){var d=Math.min(Math.abs(r)/s,i);if(r>0)for(var c=0;c<o-1;c++){var f=a[c]*d;S(f,0,c+1)}else for(var c=o-1;c>0;c--){var f=a[c-1]*d;S(-f,c,o)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r<o-1;r++)if(t>0?S(n,0,r+1):S(-n,o-r-1,o),e-=n,e<=0)return}return l}function DT(e,t,n,r){return ET(e,`x`,`width`,t,n,r)}function OT(e,t,n,r){return ET(e,`y`,`height`,t,n,r)}function kT(e){var t=[];e.sort(function(e,t){return t.priority-e.priority});var n=new J(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore==null&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,c=a.transform,l=a.label,u=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var d=a.obb,f=!1,p=0;p<t.length;p++){var m=t[p];if(n.intersect(m.rect)){if(o&&m.axisAligned){f=!0;break}if(m.obb||(m.obb=new Id(m.localRect,m.transform)),d||(d=new Id(s,c)),d.intersect(m.obb)){f=!0;break}}}f?(r(l),u&&r(u)):(l.attr(`ignore`,a.defaultAttr.ignore),u&&u.attr(`ignore`,a.defaultAttr.labelGuideIgnore),t.push(a))}}function AT(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function jT(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:AT(r&&r.shape.points)}}var MT=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],NT=new Hi,PT=Oo(),FT=Oo();function IT(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var LT=[`x`,`y`,`rotation`],RT=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();J.applyTransform(c,c,s),s?NT.setLocalTransform(s):(NT.x=NT.y=NT.rotation=NT.originX=NT.originY=0,NT.scaleX=NT.scaleY=1),NT.rotation=gc(NT.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();J.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:NT.x,y:NT.y,scaleX:NT.scaleX,scaleY:NT.scaleY,rotation:NT.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(V(r)||L(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Q(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){gT(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=V(a.layoutOption)?a.layoutOption(jT(a,s)):a.layoutOption,l=l||{},a.computedLayoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=X(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=X(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=PT(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<MT.length;m++){var h=MT[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=TT(this._labelList),i=ie(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=ie(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});DT(i,0,t),OT(a,0,n),kT(ie(r,function(e){return e.layoutOption.hideOverlap}))},e.prototype.processLabelsOverall=function(){var e=this;F(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=PT(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Q(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);CT(e,wT(o),s),gT(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Wd(e))){var i=PT(n),a=i.oldLayout,o=Q(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(N(u,`select`)>=0&&n.attr(i.oldLayoutSelect),N(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),Hd(n,c,t,s)}else if(n.attr(c),!Wf(n).valueAnimation){var d=W(n.style.opacity,1);n.style.opacity=0,Ud(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};IT(f,c,LT),IT(f,n.states.select,LT)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};IT(p,c,LT),IT(p,n.states.emphasis,LT)}Kf(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=FT(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),Hd(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,Ud(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),zT=Oo();function BT(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=zT(t).labelManager;r||(r=zT(t).labelManager=new RT),r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=zT(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var VT=e({Axis:()=>Jw,ChartView:()=>K_,ComponentModel:()=>$,ComponentView:()=>H_,List:()=>vS,Model:()=>rp,PRIORITY:()=>Sb,SeriesModel:()=>N_,color:()=>sr,connect:()=>gx,dataTool:()=>Vx,dependencies:()=>ab,disConnect:()=>vx,disconnect:()=>_x,dispose:()=>yx,env:()=>r,extendChartView:()=>eT,extendComponentModel:()=>Zw,extendComponentView:()=>Qw,extendSeriesModel:()=>$w,format:()=>kw,getCoordinateSystemDimensions:()=>jx,getInstanceByDom:()=>bx,getInstanceById:()=>xx,getMap:()=>zx,graphic:()=>Ow,helper:()=>tw,init:()=>hx,innerDrawElementOnCanvas:()=>Vy,matrix:()=>Rt,number:()=>Ew,parseGeoJSON:()=>Tw,parseGeoJson:()=>Tw,registerAction:()=>kx,registerCoordinateSystem:()=>Ax,registerLayout:()=>Mx,registerLoading:()=>Ix,registerLocale:()=>_p,registerMap:()=>Rx,registerPostInit:()=>Ex,registerPostUpdate:()=>Dx,registerPreprocessor:()=>Cx,registerProcessor:()=>Tx,registerTheme:()=>Sx,registerTransform:()=>Bx,registerUpdateLifecycle:()=>Ox,registerVisual:()=>Nx,setCanvasCreator:()=>Lx,setPlatformAPI:()=>f,throttle:()=>tv,time:()=>Dw,use:()=>lw,util:()=>Aw,vector:()=>Pe,version:()=>ib,zrUtil:()=>p,zrender:()=>pa}),HT=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.hasSymbolVisual=!0,t}return n.prototype.getInitialData=function(e){return PS(null,this,{useEncodeDefaulter:!0})},n.prototype.getLegendIcon=function(e){var t=new Y,n=iy(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=iy(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=`#fff`,s.style.lineWidth=2),t},n.type=`series.line`,n.dependencies=[`grid`,`polar`],n.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1},n}(N_);function UT(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=yg(e,t,n[0]);return i==null?null:i+``}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(yg(e,t,n[o]));return a.join(` `)}}function WT(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!B(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var GT=function(e){t(n,e);function n(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return n.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var a=iy(e,-1,-1,2,2,null,i);a.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),a.drift=KT,this._symbolType=e,this.add(a)},n.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},n.prototype.getSymbolType=function(){return this._symbolType},n.prototype.getSymbolPath=function(){return this.childAt(0)},n.prototype.highlight=function(){Wl(this.childAt(0))},n.prototype.downplay=function(){Gl(this.childAt(0))},n.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},n.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},n.prototype.updateData=function(e,t,r,i){this.silent=!1;var a=e.getItemVisual(t,`symbol`)||`circle`,o=e.hostModel,s=n.getSymbolSize(e,t),c=a!==this._symbolType,l=i&&i.disableAnimation;if(c){var u=e.getItemVisual(t,`symbolKeepAspect`);this._createSymbol(a,e,t,s,u)}else{var d=this.childAt(0);d.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};l?d.attr(f):Hd(d,f,o,t),Jd(d)}if(this._updateCommon(e,t,s,r,i),c){var d=this.childAt(0);if(!l){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Ud(d,f,o,t)}}l&&this.childAt(0).stopAnimation(`leave`)},n.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=Pf(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=oy(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof Vc){var S=a.style;a.useStyle(j({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(j({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w==null&&(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Nf(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):UT(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),lu(this,u,d,f)},n.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},n.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Q(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Gd(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Gd(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},n.getSymbolSize=function(e,t){return ay(e.getItemVisual(t,`symbolSize`))},n}(Y);function KT(e,t){this.parent.drift(e,t)}function qT(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function JT(e){return e!=null&&!U(e)&&(e={isIgnore:e}),e||{}}function YT(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:Pf(t),cursorStyle:t.get(`cursor`)}}var XT=function(){function e(e){this.group=new Y,this._SymbolCtor=e||GT}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=JT(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=YT(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);if(qT(e,i,r,t)){var o=new a(e,r,s,c);o.setPosition(i),e.setItemGraphicEl(r,o),n.add(o)}}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!qT(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Hd(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=YT(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=JT(n);function r(e){e.isGroup||(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=t.getItemLayout(i);if(qT(t,a,i,n)){var o=new this._SymbolCtor(t,i,this._seriesScope);o.traverse(r),o.setPosition(a),this.group.add(o),t.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.eachRendered=function(e){kf(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function ZT(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=QT(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=I(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return AS(t,d[0])&&(f=!0,d[0]=p),AS(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function QT(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:ce(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function $T(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function eE(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function tE(e,t,n,r,i,a,o,s){for(var c=eE(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=ZT(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=$T(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var M=l.length,ee=tC(M),N=tC(M),te=tC(M),ne=tC(M),P=[],y=0;y<m.length;y++){var F=m[y],I=y*2,re=F*2;ee[I]=l[re],ee[I+1]=l[re+1],N[I]=u[re],N[I+1]=u[re+1],te[I]=d[re],te[I+1]=d[re+1],ne[I]=f[re],ne[I+1]=f[re+1],P[y]=p[F]}return{current:ee,next:N,stackedOnCurrent:te,stackedOnNext:ne,status:P}}var nE=Math.min,rE=Math.max;function iE(e,t){return isNaN(e)||isNaN(t)}function aE(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(iE(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;iE(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||iE(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,ee=C-v,N=void 0,te=void 0;if(s===`x`){N=Math.abs(A),te=Math.abs(j);var ne=E>0?1:-1;p=_-ne*N*o,m=v,O=_+ne*te*o,k=v}else if(s===`y`){N=Math.abs(M),te=Math.abs(ee);var P=D>0?1:-1;p=_,m=v-P*N*o,O=_,k=v+P*te*o}else N=Math.sqrt(A*A+M*M),te=Math.sqrt(j*j+ee*ee),T=te/(te+N),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=nE(O,rE(S,_)),k=nE(k,rE(C,v)),O=rE(O,nE(S,_)),k=rE(k,nE(C,v)),E=O-_,D=k-v,p=_-E*N/te,m=v-D*N/te,p=nE(p,rE(l,_)),m=nE(m,rE(u,v)),p=rE(p,nE(l,_)),m=rE(m,nE(u,v)),E=_-p,D=v-m,O=_+E*te/N,k=v+D*te/N}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var oE=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),sE=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return n.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},n.prototype.getDefaultShape=function(){return new oE},n.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&iE(n[i*2-2],n[i*2-1]);i--);for(;r<i&&iE(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=aE(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},n.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=dc.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?Un(i,u,f,m,e,s):Un(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?Vn(a,d,p,h,b):Vn(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h;break}}},n}(Z),cE=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(oE),lE=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return n.prototype.getDefaultShape=function(){return new cE},n.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&iE(n[a*2-2],n[a*2-1]);a--);for(;i<a&&iE(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=aE(e,n,i,a,a,1,t.smooth,o,t.connectNulls);aE(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},n}(Z);function uE(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Yc({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=V(i)?function(e){i(e,d)}:null;Ud(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function dE(e,t,n){var r=e.getArea(),i=Ma(r.r0,1),a=Ma(r.r,1),o=new ud({shape:{cx:Ma(e.cx,1),cy:Ma(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,Ud(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function fE(e,t,n,r,i){return e?e.type===`polar`?dE(e,t,n):e.type===`cartesian2d`?uE(e,t,n,r,i):null:null}function pE(e,t){return e.type===t}function mE(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function hE(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function gE(e,t){var n=hE(e),r=n[0],i=n[1],a=hE(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function _E(e){return ce(e)?e:e?.5:0}function vE(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=tC(r*2),a=0;a<r;a++){var o=$T(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function yE(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;!isNaN(p[c])&&!isNaN(p[c+1])&&f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function bE(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Or((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&(n.push(o(i,c,0)),i=null),n.push(c),a=c}return n}function xE(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=I(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=bE(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;F(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Ad(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}}function SE(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&CE(a,t))){var o=t.mapDimension(a.dim),s={};return F(a.getViewLabels(),function(e){var t=a.scale.getRawOrdinalNumber(e.tickValue);s[t]=1}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function CE(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(GT.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function wE(e,t){return isNaN(e)||isNaN(t)}function TE(e){for(var t=e.length/2;t>0&&wE(e[t*2-2],e[t*2-1]);t--);return t-1}function EE(e,t){return[e[t*2],e[t*2+1]]}function DE(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!(isNaN(o)||isNaN(e[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function OE(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<vl.length;t++)if(e.get([vl[t],`endLabel`,`show`]))return!0;return!1}function kE(e,t,n,r){if(pE(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=OE(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=uE(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}else return dE(t,n,r)}function AE(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var jE=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.init=function(){var e=new Y,t=new XT;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=R(this._changePolyState,this)},n.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=ZT(r,a,_),y=g&&vE(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&SE(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=xE(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&(y=yE(y,c,r,w,x)),c=yE(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,um(E)),m.setClipPath(kE(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,um(E));var D=m.getClipPath();D?Ud(D,{shape:kE(this,r,!1,e).shape},e):m.setClipPath(kE(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!mE(this._stackedOnPoints,y)||!mE(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&(y=yE(y,c,r,w,x)),c=yE(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(M(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),pu(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}Q(f).seriesIndex=e.seriesIndex,lu(f,k,A,j);var N=_E(e.get(`smooth`)),te=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:te,connectNulls:x}),p){var ne=a.getCalculationInfo(`stackedOnSeries`),P=0;p.useStyle(M(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),ne&&(P=_E(ne.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:P,smoothMonotone:te,connectNulls:x}),pu(p,e,`areaStyle`),Q(p).seriesIndex=e.seriesIndex,lu(p,k,A,j)}var F=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=F)}),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_,e.get(`triggerLineEvent`)&&(this.packEventData(e,f),p&&this.packEventData(e,p))},n.prototype.packEventData=function(e,t){Q(t).eventData={componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`}},n.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Do(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(isNaN(c)||isNaN(l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new GT(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else K_.prototype.highlight.call(this,e,t,n,r)},n.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Do(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else K_.prototype.downplay.call(this,e,t,n,r)},n.prototype._changePolyState=function(e){var t=this._polygon;Fl(this._polyline,e),t&&Fl(t,e)},n.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new sE({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},n.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new lE({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},n.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);V(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=V(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n)if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=V(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},n.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(OE(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new $c({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=TE(o);c>=0&&(Nf(a,Pf(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?UT(i,e):WT(i,n)},enableTextSetter:!0},AE(r,t)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},n.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=DE(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=EE(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=Ro(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=EE(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=Wf(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},n.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=tE(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=yE(u.stackedOnCurrent,u.current,n,i,o),d=yE(u.current,null,n,i,o),m=yE(u.stackedOnNext,u.next,n,i,o),p=yE(u.next,null,n,i,o)),gE(d,p)>3e3||c&&gE(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Hd(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Hd(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},n.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},n.type=`line`,n}(K_);function ME(e,t){return{seriesType:e,plan:U_(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=I(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);AS(n,o[0])&&(o[0]=c),AS(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&tC(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&t.setLayout(`points`,i)}}}}}}var NE={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},PE=function(e){return Math.round(e.length/2)};function FE(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;H(i)?p=NE[i]:V(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,PE))}}}}}function IE(e){e.registerChartView(jE),e.registerSeriesModel(HT),e.registerLayout(ME(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,FE(`line`))}var LE=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.getInitialData=function(e,t){return PS(null,this,{useEncodeDefaulter:!0})},n.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)F(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}else if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u==null&&(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},n.type=`series.__base_bar__`,n.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`},n}(N_);N_.registerClass(LE);var RE=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.getInitialData=function(){return PS(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},n.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},n.prototype.getProgressiveThreshold=function(){var e=this.get(`progressiveThreshold`),t=this.get(`largeThreshold`);return t>e&&(e=t),e},n.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},n.type=`series.bar`,n.dependencies=[`grid`,`polar`],n.defaultOption=cp(LE.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}),n}(LE),zE=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),BE=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return n.prototype.getDefaultShape=function(){return new zE},n.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},n}(Z);function VE(e,t){t=t||{};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return $i(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+UE(m,s+_,!1),x=u+p*y(m)+WE(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+UE(m,-s+_,!1),x=u+p*y(m)+WE(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+UE(h,s+_,!0),x=u+p*y(h)+WE(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+UE(h,-s+_,!0),x=u+p*y(h)+WE(h,-s+_,!0),S=`right`,C=`middle`;break;default:return $i(t,r,i)}return t=t||{},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function HE(e,t,n,r){if(ce(r)){e.setTextConfig({rotation:r});return}else if(B(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function UE(e,t,n){return t*Math.sin(e)*(n?-1:1)}function WE(e,t,n){return t*Math.cos(e)*(n?1:-1)}function GE(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;B(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:I(r,function(e){return Qi(e,i)})}}var KE=Math.max,qE=Math.min;function JE(e,t){var n=e.getArea&&e.getArea();if(pE(e,`cartesian2d`)){var r=e.getBaseAxis();if(r.type!==`category`||!r.onBand){var i=t.getLayout(`bandWidth`);r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var YE=function(e){t(n,e);function n(){var t=e.call(this)||this;return t.type=n.type,t._isFirstFrame=!0,t}return n.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);(i===`cartesian2d`||i===`polar`)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},n.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},n.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},n.prototype.eachRendered=function(e){kf(this._progressiveEls||this.group,e)},n.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},n.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=QE(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=JE(s,a);i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=iD[s.type](a,e),n=hD(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=iD[s.type](a,t,n);if(h&&S(t),!(!a.hasValue(t)||!rD[s.type](r))){var o=!1;f&&(o=XE[s.type](p,r));var g=ZE[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),sD(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?$E(d,u,g,r,t,l,!1,!1):Ud(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=iD[s.type](a,t,r);if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=iD[s.type](a,t),E=mD(l,T,s);Hd(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!rD[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=XE[s.type](p,C),O&&i.remove(D)),D?Jd(D):D=ZE[s.type](e,a,t,C,l,u,c.model,!!D,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=Wf(k);A.prevValue!=null&&(A.prevValue=A.value)}}else sD(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?$E(d,u,D,C,t,l,!0,x):Hd(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}).remove(function(t){var n=o.getItemGraphicEl(t);n&&qd(n,e,t)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Y);C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},n.prototype._renderLarge=function(e,t,n){this._clear(),dD(e,this.group),this._updateLargeClip(e)},n.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),dD(t,this.group,this._progressiveEls,!0)},n.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&fE(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},n.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},n.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i=i==null?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:I(r,function(e){return e.ordinalNumber})}},n.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},n.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},n.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},n.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},n.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},n.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},n.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off(`rendered`,this._onRendered),this._onRendered=null)},n.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){qd(t,e,Q(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},n.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},n.type=`bar`,n}(K_),XE={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=KE(t.x,e.x),s=qE(t.x+t.width,i),c=KE(t.y,e.y),l=qE(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=qE(t.r,e.r),a=KE(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},ZE={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Yc({shape:j({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?BE:ud,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=VE(oD(i),{isRoundCap:l===BE}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Hd:Ud)(u,{shape:p},a)}return u}};function QE(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function $E(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Hd:Ud)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Hd:Ud)(n,{shape:l},u,i)}function eD(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var tD=[`x`,`y`,`width`,`height`],nD=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],rD={cartesian2d:function(e){return!eD(e,tD)},polar:function(e){return!eD(e,nD)}},iD={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?cD(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function aD(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function oD(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function sD(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;j(u,GE(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?i.height>=0?`bottom`:`top`:i.width>=0?`right`:`left`,p=Pf(r);Nf(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:UT(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,HE(e,h===`outside`?f:h,oD(o),r.get([`label`,`rotate`]))}Gf(m,p,a.getRawValue(n),function(e){return WT(t,e)});var g=r.getModel([`emphasis`]);lu(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),pu(e,r),aD(i)&&(e.style.fill=`none`,e.style.stroke=`none`,F(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function cD(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var lD=function(){function e(){}return e}(),uD=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return n.prototype.getDefaultShape=function(){return new lD},n.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},n}(Z);function dD(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`);if(l){var u=new uD({shape:{points:l},incremental:!!r,silent:!0,z2:0});u.baseDimIdx=a,u.largeDataIndices=o,u.barWidth=s,u.useStyle(c.getItemStyle()),t.add(u),n&&n.push(u)}var d=new uD({shape:{points:i.getLayout(`largePoints`)},incremental:!!r,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,t.add(d),d.useStyle(i.getVisual(`style`)),d.style.stroke=null,Q(d).seriesIndex=e.seriesIndex,e.get(`silent`)||(d.on(`mousedown`,fD),d.on(`mousemove`,fD)),n&&n.push(d)}var fD=tv(function(e){var t=this,n=pD(t,e.offsetX,e.offsetY);Q(t).dataIndex=n>=0?n:null},30,!1);function pD(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function mD(e,t,n){if(pE(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}else{var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function hD(e,t,n){return new(e.type===`polar`?ud:Yc)({shape:mD(t,n,e),silent:!0,z2:0})}function gD(e){e.registerChartView(YE),e.registerSeriesModel(RE),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,z(uC,`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,dC(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,FE(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})}var _D=Math.PI*2,vD=Math.PI/180;function yD(e,t){return _m(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function bD(e,t){var n=yD(e,t),r=e.get(`center`),i=e.get(`radius`);B(i)||(i=[0,i]);var a=X(n.width,t.getWidth()),o=X(n.height,t.getHeight()),s=Math.min(a,o),c=X(i[0],s/2),l=X(i[1],s/2),u,d,f=e.coordinateSystem;if(f){var p=f.dataToPoint(r);u=p[0]||0,d=p[1]||0}else B(r)||(r=[r,r]),u=X(r[0],a)+n.x,d=X(r[1],o)+n.y;return{cx:u,cy:d,r0:c,r:l}}function xD(e,t,n){t.eachSeriesByType(e,function(e){var t=e.getData(),r=t.mapDimension(`value`),i=yD(e,n),a=bD(e,n),o=a.cx,s=a.cy,c=a.r,l=a.r0,u=-e.get(`startAngle`)*vD,d=e.get(`endAngle`),f=e.get(`padAngle`)*vD;d=d===`auto`?u-_D:-d*vD;var p=e.get(`minAngle`)*vD+f,m=0;t.each(r,function(e){!isNaN(e)&&m++});var h=t.getSum(r),g=Math.PI/(h||m)*2,_=e.get(`clockwise`),v=e.get(`roseType`),y=e.get(`stillShowZeroSum`),b=t.getDataExtent(r);b[0]=0;var x=_?1:-1,S=[u,d],C=x*f/2;uc(S,!_),u=S[0],d=S[1];var w=SD(e);w.startAngle=u,w.endAngle=d,w.clockwise=_;var T=Math.abs(d-u),E=T,D=0,O=u;if(t.setLayout({viewRect:i,r:c}),t.each(r,function(e,n){var r;if(isNaN(e)){t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:l,r:v?NaN:c});return}r=v===`area`?T/m:h===0&&y?g:e*g,r<p?(r=p,E-=p):D+=e;var i=O+x*r,a=0,u=0;f>r?(a=O+x*r/2,u=a):(a=O+C,u=i-C),t.setItemLayout(n,{angle:r,startAngle:a,endAngle:u,clockwise:_,cx:o,cy:s,r0:l,r:v?ja(e,b,[l,c]):c}),O=i}),E<_D&&m)if(E<=.001){var k=T/m;t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=k;var i=0,a=0;k<f?(i=u+x*(n+1/2)*k,a=i):(i=u+x*n*k+C,a=u+x*(n+1)*k-C),r.startAngle=i,r.endAngle=a}})}else g=E/D,O=u,t.each(r,function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===p?p:e*g,a=0,o=0;i<f?(a=O+x*i/2,o=a):(a=O+C,o=O+x*i-C),r.startAngle=a,r.endAngle=o,O+=x*i}})})}var SD=Oo();function CD(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(!(!n||!n.length)){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}}var wD=Math.PI/180;function TD(e,t,n,r,i,a,o,s,c,l){if(e.length<2)return;function u(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;DD(c,c.targetTextWidth-p*i,!0),c.label.x=f}}function d(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,d=Math.abs(c.label.y-n);if(d>=l.maxY){var f=c.label.x-t-c.len2*i,p=r+c.len;l.rB=Math.abs(f)<p?Math.sqrt(d*d/(1-f*f/p/p)):p,l.maxY=d}l.list.push(c)}u(a),u(o)}for(var f=e.length,p=0;p<f;p++)if(e[p].position===`outer`&&e[p].labelAlignTo===`labelLine`){var m=e[p].label.x-l;e[p].linePoints[1][0]+=m,e[p].label.x=l}OT(e,c,c+o)&&d(e)}function ED(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;OD(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(var f=0;f<e.length;f++){var m=e[f];if(!OD(m)&&m.linePoints){if(m.labelStyleWidth!=null)continue;var p=m.label,h=m.linePoints,g=void 0;g=m.labelAlignTo===`edge`?p.x<t?h[2][0]-m.labelDistance-o-m.edgeDistance:o+i-m.edgeDistance-h[2][0]-m.labelDistance:m.labelAlignTo===`labelLine`?p.x<t?u-o-m.bleedMargin:o+i-d-m.bleedMargin:p.x<t?p.x-o-m.bleedMargin:o+i-p.x-m.bleedMargin,m.targetTextWidth=g,DD(m,g)}}TD(l,t,n,r,1,i,a,o,s,d),TD(c,t,n,r,-1,i,a,o,s,u);for(var f=0;f<e.length;f++){var m=e[f];if(!OD(m)&&m.linePoints){var p=m.label,h=m.linePoints,_=m.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=m.rect.width+b,S=h[1][0]-h[2][0];_?p.x<t?h[2][0]=o+m.edgeDistance+x+m.labelDistance:h[2][0]=o+i-m.edgeDistance-x-m.labelDistance:(p.x<t?h[2][0]=p.x+m.labelDistance:h[2][0]=p.x-m.labelDistance,h[1][0]=h[2][0]+S),h[1][1]=h[2][1]=p.y}}}function DD(e,t,n){if(n===void 0&&(n=!1),e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){var d=a.height;if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var f=r.getBoundingRect();r.setStyle(`width`,Math.ceil(f.width)),r.setStyle(`backgroundColor`,o)}else{var p=t-c,m=t<u?p:n?p>e.unconstrainedWidth?null:p:null;r.setStyle(`width`,m)}var h=r.getBoundingRect();a.width=h.width;var g=(r.style.margin||0)+2.1;a.height=h.height+g,a.y-=(a.height-d)/2}}}function OD(e){return e.position===`center`}function kD(e){var t=e.getData(),n=[],r,i,a=!1,o=(e.get(`minShowLabelAngle`)||0)*wD,s=t.getLayout(`viewRect`),c=t.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}function m(e){if(!e.ignore)return!0;for(var t in e.states)if(e.states[t].ignore===!1)return!0;return!1}t.each(function(e){var s=t.getItemGraphicEl(e),d=s.shape,f=s.getTextContent(),h=s.getTextGuideLine(),g=t.getItemModel(e),_=g.getModel(`label`),v=_.get(`position`)||g.get([`emphasis`,`label`,`position`]),y=_.get(`distanceToLabelLine`),b=_.get(`alignTo`),x=X(_.get(`edgeDistance`),l),S=_.get(`bleedMargin`),C=g.getModel(`labelLine`),w=C.get(`length`);w=X(w,l);var T=C.get(`length2`);if(T=X(T,l),Math.abs(d.endAngle-d.startAngle)<o){F(f.states,p),f.ignore=!0,h&&(F(h.states,p),h.ignore=!0);return}if(m(f)){var E=(d.startAngle+d.endAngle)/2,D=Math.cos(E),O=Math.sin(E),k,A,j,M;r=d.cx,i=d.cy;var ee=v===`inside`||v===`inner`;if(v===`center`)k=d.cx,A=d.cy,M=`center`;else{var N=(ee?(d.r+d.r0)/2*D:d.r*D)+r,te=(ee?(d.r+d.r0)/2*O:d.r*O)+i;if(k=N+D*3,A=te+O*3,!ee){var ne=N+D*(w+c-d.r),P=te+O*(w+c-d.r),I=ne+(D<0?-1:1)*T,re=P;k=b===`edge`?D<0?u+x:u+l-x:I+(D<0?-y:y),A=re,j=[[N,te],[ne,P],[I,re]]}M=ee?`center`:b===`edge`?D>0?`right`:`left`:D>0?`left`:`right`}var ie=Math.PI,ae=0,L=_.get(`rotate`);if(ce(L))ae=ie/180*L;else if(v===`center`)ae=0;else if(L===`radial`||L===!0)ae=D<0?-E+ie:-E;else if(L===`tangential`&&v!==`outside`&&v!==`outer`){var oe=Math.atan2(D,O);oe<0&&(oe=ie*2+oe),O>0&&(oe=ie+oe),ae=oe-ie}if(a=!!ae,f.x=k,f.y=A,f.rotation=ae,f.setStyle({verticalAlign:`middle`}),ee){f.setStyle({align:M});var R=f.states.select;R&&(R.x+=f.x,R.y+=f.y)}else{var z=f.getBoundingRect().clone();z.applyTransform(f.getComputedTransform());var B=(f.style.margin||0)+2.1;z.y-=B/2,z.height+=B,n.push({label:f,labelLine:h,position:v,len:w,len2:T,minTurnAngle:C.get(`minTurnAngle`),maxSurfaceAngle:C.get(`maxSurfaceAngle`),surfaceNormal:new q(D,O),linePoints:j,textAlign:M,labelDistance:y,labelAlignTo:b,edgeDistance:x,bleedMargin:S,rect:z,unconstrainedWidth:z.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:ee})}}),!a&&e.get(`avoidLabelOverlap`)&&ED(n,r,i,c,l,f,u,d);for(var h=0;h<n.length;h++){var g=n[h],_=g.label,v=g.labelLine,y=isNaN(_.x)||isNaN(_.y);if(_){_.setStyle({align:g.textAlign}),y&&(F(_.states,p),_.ignore=!0);var b=_.states.select;b&&(b.x+=_.x,b.y+=_.y)}if(v){var x=g.linePoints;y||!x?(F(v.states,p),v.ignore=!0):(yT(x,g.minTurnAngle),bT(x,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:x}),_.__hostTarget.textGuideLineConfig={anchor:new q(x[0][0],x[0][1])})}}}var AD=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new $c;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return n.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=j(GE(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle)){i.setShape(l);return}if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?(Ud(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,Ud(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,Hd(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),Ud(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else Jd(i),Hd(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),pu(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=j({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},GE(s.getModel(`itemStyle`),c)),j(i.ensureState(`select`),{x:p,y:m,shape:GE(o.getModel([`select`,`itemStyle`]),c)}),j(i.ensureState(`blur`),{shape:GE(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&j(g.ensureState(`select`),{x:p,y:m}),j(_.ensureState(`select`),{x:p,y:m}),lu(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))},n.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;Nf(r,Pf(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=e.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new vd,this.setTextGuideLine(d)),CT(this,wT(i),{stroke:s,opacity:_e(a.get([`lineStyle`,`opacity`]),c,1)})}},n}(ud),jD=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return n.prototype.render=function(e,t,n,r){var i=e.getData(),a=this._data,o=this.group,s;if(!a&&i.count()>0){for(var c=i.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<i.count();++l)c=i.getItemLayout(l);c&&(s=c.startAngle)}if(this._emptyCircleSector&&o.remove(this._emptyCircleSector),i.count()===0&&e.get(`showEmptyCircle`)){var u=SD(e),d=new ud({shape:j(bD(e,n),u)});d.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=d,o.add(d)}i.diff(a).add(function(e){var t=new AD(i,e,s);i.setItemGraphicEl(e,t),o.add(t)}).update(function(e,t){var n=a.getItemGraphicEl(t);n.updateData(i,e,s),n.off(`click`),o.add(n),i.setItemGraphicEl(e,n)}).remove(function(t){qd(a.getItemGraphicEl(t),e,t)}).execute(),kD(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=i)},n.prototype.dispose=function(){},n.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},n.type=`pie`,n}(K_);function MD(e,t,n){t=B(t)&&{coordDimensions:t}||j({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=bS(r,t).dimensions,a=new vS(i,e);return a.initData(r,n),a}var ND=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),PD=Oo(),FD=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new ND(R(this.getData,this),R(this.getRawData,this)),this._defaultLabelLine(t)},n.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},n.prototype.getInitialData=function(){return MD(this,{coordDimensions:[`value`],encodeDefaulter:z(Bm,this)})},n.prototype.getDataParams=function(t){var n=this.getData(),r=PD(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=Ra(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},n.prototype._defaultLabelLine=function(e){oo(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},n.type=`series.pie`,n.defaultOption={z:2,legendHoverLink:!0,colorBy:`data`,center:[`50%`,`50%`],radius:[0,`75%`],clockwise:!0,startAngle:90,endAngle:`auto`,padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:`truncate`,position:`outer`,alignTo:`none`,edgeDistance:`25%`,bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:`solid`}},itemStyle:{borderWidth:1,borderJoin:`round`},showEmptyCircle:!0,emptyCircleStyle:{color:`lightgray`,opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:`expansion`,animationDuration:1e3,animationTypeUpdate:`transition`,animationEasingUpdate:`cubicInOut`,animationDurationUpdate:500,animationEasing:`cubicInOut`},n}(N_);function ID(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(ce(r)&&!isNaN(r)&&r<0)})}}}function LD(e){e.registerChartView(jD),e.registerSeriesModel(FD),Gv(`pie`,e.registerAction),e.registerLayout(z(xD,`pie`)),e.registerProcessor(CD(`pie`)),e.registerProcessor(ID(`pie`))}var RD=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.type=`grid`,n.dependencies=[`xAxis`,`yAxis`],n.layoutMode=`box`,n.defaultOption={show:!1,z:0,left:`10%`,top:60,right:`10%`,bottom:70,containLabel:!1,backgroundColor:`rgba(0,0,0,0)`,borderWidth:1,borderColor:`#ccc`},n}($),zD=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Mo).models[0]},n.type=`cartesian2dAxis`,n}($);ne(zD,ew);var BD={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:`#6E7079`,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:[`#E0E6F1`],width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[`rgba(250,250,250,0.2)`,`rgba(210,219,238,0.2)`]}}},VD=k({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`},axisLabel:{interval:`auto`}},BD),HD=k({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}}},BD),UD={category:VD,value:HD,time:k({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},HD),log:M({logBase:10},HD)},WD={value:1,category:1,time:1,log:1};function GD(e,n,r,i){F(WD,function(a,o){var s=k(k({},UD[o],!0),i,!0),c=function(e){t(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n+`Axis.`+o,t}return r.prototype.mergeDefaultAndTheme=function(e,t){var n=ym(this),r=n?xm(e):{};k(e,t.getTheme().get(o+`Axis`)),k(e,this.getDefaultOption()),e.type=KD(e),n&&bm(e,r,n)},r.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=zS.createByAxisModel(this))},r.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},r.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},r.type=n+`Axis.`+o,r.defaultOption=s,r}(r);e.registerComponentModel(c)}),e.registerSubTypeDefaulter(n+`Axis`,KD)}function KD(e){return e.type||(e.data?`category`:`value`)}var qD=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return I(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ie(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),JD=[`x`,`y`];function YD(e){return e.type===`interval`||e.type===`time`}var XD=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`cartesian2d`,t.dimensions=JD,t}return n.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!YD(e)||!YD(t))){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Kt([],f)}}},n.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},n.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},n.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},n.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},n.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return rt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},n.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},n.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return rt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},n.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},n.prototype.getArea=function(e){e=e||0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new J(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},n}(qD),ZD=function(e){t(n,e);function n(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return n.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},n.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},n.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},n.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},n}(Jw);function QD(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,c=o?`onZero`:s,l=i.dim,u=r.getRect(),d=[u.x,u.x+u.width,u.y,u.y+u.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get(`offset`)||0,m=l===`x`?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(o){var h=o.toGlobalCoord(o.dataToCoord(0));m[f.onZero]=Math.max(Math.min(h,m[1]),m[0])}a.position=[l===`y`?m[f[c]]:d[0],l===`x`?m[f[c]]:d[3]],a.rotation=Math.PI/2*(l===`x`?0:1),a.labelDirection=a.tickDirection=a.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],a.labelOffset=o?m[f[s]]-m[f.onZero]:0,t.get([`axisTick`,`inside`])&&(a.tickDirection=-a.tickDirection),ge(n.labelInside,t.get([`axisLabel`,`inside`]))&&(a.labelDirection=-a.labelDirection);var g=t.get([`axisLabel`,`rotate`]);return a.labelRotate=c===`top`?-g:g,a.z2=1,a}function $D(e){return e.get(`coordinateSystem`)===`cartesian2d`}function eO(e){var t={xAxisModel:null,yAxisModel:null};return F(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,Mo).models[0]}),t}var tO=Math.log;function nO(e,t,n){var r=QS.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),c=VC(e,t),l=c.extent,u=c.fixMin,d=c.fixMax;if(e.type===`log`){var f=tO(e.base);l=[tO(l[0])/f,tO(l[1])/f]}e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:u,fixMax:d});var p=r.getExtent.call(e);u&&(l[0]=p[0]),d&&(l[1]=p[1]);var m=r.getInterval.call(e),h=l[0],g=l[1];if(u&&d)m=(g-h)/o;else if(u)for(g=l[0]+m*o;g<l[1]&&isFinite(g)&&isFinite(l[1]);)m=US(m),g=l[0]+m*o;else if(d)for(h=l[1]-m*o;h>l[0]&&isFinite(h)&&isFinite(l[0]);)m=US(m),h=l[1]-m*o;else{e.getTicks().length-1>o&&(m=US(m));var _=m*o;g=Math.ceil(l[1]/m)*m,h=Ma(g-_),h<0&&l[0]>=0?(h=0,g=Ma(_)):g>0&&l[1]<=0&&(g=0,h=-Ma(_))}var v=(i[0].value-a[0].value)/s,y=(i[o].value-a[o].value)/s;r.setExtent.call(e,h+m*v,g+m*y),r.setInterval.call(e,m),(v||y)&&r.setNiceExtent.call(e,h+m,g-m)}var rO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=JD,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function r(e){var t,n=L(e),r=n.length;if(r){for(var i=[],a=r-1;a>=0;a--){var o=e[+n[a]],s=o.model,c=o.scale;VS(c)&&s.get(`alignTicks`)&&s.get(`interval`)==null?i.push(o):(UC(c,s),VS(c)&&(t=o))}i.length&&(t||(t=i.pop(),UC(t.scale,t.model)),F(i,function(e){nO(e.scale,e.model,t.scale)}))}}r(n.x),r(n.y);var i={};F(n.x,function(e){aO(n,`y`,e,i)}),F(n.y,function(e){aO(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get(`containLabel`),a=_m(r,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var o=this._axesList;s(),i&&(F(o,function(e){if(!e.model.get([`axisLabel`,`inside`])){var t=JC(e);if(t){var n=e.isHorizontal()?`height`:`width`,r=e.model.get([`axisLabel`,`margin`]);a[n]-=t[n]+r,e.position===`top`?a.y+=t.height+r:e.position===`left`&&(a.x+=t.width+r)}}}),s()),F(this._coordsList,function(e){e.calcAffineTransform()});function s(){F(o,function(e){var t=e.isHorizontal(),n=t?[0,a.width]:[0,a.height],r=+!!e.inverse;e.setExtent(n[r],n[1-r]),sO(e,t?a.x:a.y)})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,Mo).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,Mo).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,N(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,F(o.x,function(t,n){F(o.y,function(i,a){var o=`x`+n+`y`+a,s=new XD(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})});function c(t){return function(n,r){if(iO(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=new ZD(t,WC(n),[0,0],n.get(`type`),c);l.onBand=l.type===`category`&&n.get(`boundaryGap`),l.inverse=n.get(`inverse`),n.axis=l,l.model=n,l.grid=i,l.index=r,i._axesList.push(l),o[t][r]=l,s[t]++}}}},e.prototype._updateScale=function(e,t){F(this._axesList,function(e){if(e.scale.setExtent(1/0,-1/0),e.type===`category`){var t=e.model.get(`categorySortInfo`);e.scale.setSortInfo(t)}}),e.eachSeries(function(e){if($D(e)){var r=eO(e),i=r.xAxisModel,a=r.yAxisModel;if(!iO(i,t)||!iO(a,t))return;var o=this.getCartesian(i.componentIndex,a.componentIndex),s=e.getData(),c=o.getAxis(`x`),l=o.getAxis(`y`);n(s,c),n(s,l)}},this);function n(e,t){F(QC(e,t.dim),function(n){t.scale.unionExtentFromData(e,n)})}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return F(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);N(t,i)<0&&t.push(i),N(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),t.eachSeries(function(e){if($D(e)){var t=eO(e),n=t.xAxisModel,r=t.yAxisModel;e.coordinateSystem=n.getCoordSysModel().coordinateSystem.getCartesian(n.componentIndex,r.componentIndex)}}),r},e.dimensions=JD,e}();function iO(e,t){return e.getCoordSysModel()===t}function aO(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)oO(i[c])&&(a=i[c]);else for(var l in i)if(i.hasOwnProperty(l)&&oO(i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function oO(e){return e&&e.type!==`category`&&e.type!==`time`&&GC(e)}function sO(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}var cO=Math.PI,lO=function(){function e(e,t){this.group=new Y,this.opt=t,this.axisModel=e,M(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Y({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!uO[e]},e.prototype.add=function(e){uO[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r=Va(t-e),i,a;return Ha(r)?(a=n>0?`top`:`bottom`,i=`center`):Ha(r-cO)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<cO?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),uO={axisLine:function(e,t,n,r){var i=t.get([`axisLine`,`show`]);if(i===`auto`&&e.handleAutoShown&&(i=e.handleAutoShown(`axisLine`)),i){var a=t.axis.getExtent(),o=r.transform,s=[a[0],0],c=[a[1],0],l=s[0]>c[0];o&&(rt(s,s,o),rt(c,c,o));var u=j({lineCap:`round`},t.getModel([`axisLine`,`lineStyle`]).getLineStyle()),d=new xd({shape:{x1:s[0],y1:s[1],x2:c[0],y2:c[1]},style:u,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});df(d.shape,d.style.lineWidth),d.anid=`line`,n.add(d);var f=t.get([`axisLine`,`symbol`]);if(f!=null){var p=t.get([`axisLine`,`symbolSize`]);H(f)&&(f=[f,f]),(H(p)||ce(p))&&(p=[p,p]);var m=oy(t.get([`axisLine`,`symbolOffset`])||0,p),h=p[0],g=p[1];F([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((s[0]-c[0])*(s[0]-c[0])+(s[1]-c[1])*(s[1]-c[1]))}],function(t,r){if(f[r]!==`none`&&f[r]!=null){var i=iy(f[r],-h/2,-g/2,h,g,u.stroke,!0),a=t.r+t.offset,o=l?c:s;i.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}})}}},axisTickLabel:function(e,t,n,r){var i=_O(n,r,t,e),a=yO(n,r,t,e);fO(t,a,i),vO(n,r,t,e.tickDirection),t.get([`axisLabel`,`hideOverlap`])&&kT(TT(I(a,function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})))},axisName:function(e,t,n,r){var i=ge(e.axisName,t.get(`name`));if(i){var a=t.get(`nameLocation`),o=e.nameDirection,s=t.getModel(`nameTextStyle`),c=t.get(`nameGap`)||0,l=t.axis.getExtent(),u=l[0]>l[1]?-1:1,d=[a===`start`?l[0]-u*c:a===`end`?l[1]+u*c:(l[0]+l[1])/2,hO(a)?e.labelOffset+o*c:0],f,p=t.get(`nameRotate`);p!=null&&(p=p*cO/180);var m;hO(a)?f=lO.innerTextLayout(e.rotation,p==null?e.rotation:p,o):(f=dO(e.rotation,a,p||0,l),m=e.axisNameAvailableWidth,m!=null&&(m=Math.abs(m/Math.sin(f.rotation)),!isFinite(m)&&(m=null)));var h=s.getFont(),g=t.get(`nameTruncate`,!0)||{},_=g.ellipsis,v=ge(e.nameTruncateMaxWidth,g.maxWidth,m),y=new $c({x:d[0],y:d[1],rotation:f.rotation,silent:lO.isLabelSilent(t),style:Ff(s,{text:i,font:h,overflow:`truncate`,width:v,ellipsis:_,fill:s.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),align:s.get(`align`)||f.textAlign,verticalAlign:s.get(`verticalAlign`)||f.textVerticalAlign}),z2:1});if(Df({el:y,componentModel:t,itemName:i}),y.__fullText=i,y.anid=`name`,t.get(`triggerEvent`)){var b=lO.makeAxisEventDataBase(t);b.targetType=`axisName`,b.name=i,Q(y).eventData=b}r.add(y),y.updateTransform(),n.add(y),y.decomposeTransform()}}};function dO(e,t,n,r){var i=Va(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Ha(i-cO/2)?(o=c?`bottom`:`top`,a=`center`):Ha(i-cO*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<cO*1.5&&i>cO/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function fO(e,t,n){if(!ZC(e.axis)){var r=e.get([`axisLabel`,`showMinLabel`]),i=e.get([`axisLabel`,`showMaxLabel`]);t=t||[],n=n||[];var a=t[0],o=t[1],s=t[t.length-1],c=t[t.length-2],l=n[0],u=n[1],d=n[n.length-1],f=n[n.length-2];r===!1?(pO(a),pO(l)):mO(a,o)&&(r?(pO(o),pO(u)):(pO(a),pO(l))),i===!1?(pO(s),pO(d)):mO(c,s)&&(i?(pO(c),pO(f)):(pO(s),pO(d)))}}function pO(e){e&&(e.ignore=!0)}function mO(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var i=Bt([]);return Wt(i,i,-e.rotation),n.applyTransform(Ht([],i,e.getLocalTransform())),r.applyTransform(Ht([],i,t.getLocalTransform())),n.intersect(r)}}function hO(e){return e===`middle`||e===`center`}function gO(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(rt(o,o,t),rt(s,s,t));var u=new xd({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});df(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u)}return a}function _O(e,t,n,r){var i=n.axis,a=n.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&r.handleAutoShown&&(o=r.handleAutoShown(`axisTick`)),!(!o||i.scale.isBlank())){for(var s=a.getModel(`lineStyle`),c=r.tickDirection*a.get(`length`),l=gO(i.getTicksCoords(),t.transform,c,M(s.getLineStyle(),{stroke:n.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)e.add(l[u]);return l}}function vO(e,t,n,r){var i=n.axis,a=n.getModel(`minorTick`);if(!(!a.get(`show`)||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel(`lineStyle`),c=r*a.get(`length`),l=M(s.getLineStyle(),M(n.getModel(`axisTick`).getLineStyle(),{stroke:n.get([`axisLine`,`lineStyle`,`color`])})),u=0;u<o.length;u++)for(var d=gO(o[u],t.transform,c,l,`minorticks_`+u),f=0;f<d.length;f++)e.add(d[f])}}function yO(e,t,n,r){var i=n.axis;if(!(!ge(r.axisLabelShow,n.get([`axisLabel`,`show`]))||i.scale.isBlank())){var a=n.getModel(`axisLabel`),o=a.get(`margin`),s=i.getViewLabels(),c=(ge(r.labelRotate,a.get(`rotate`))||0)*cO/180,l=lO.innerTextLayout(r.rotation,c,r.labelDirection),u=n.getCategories&&n.getCategories(!0),d=[],f=lO.isLabelSilent(n),p=n.get(`triggerEvent`);return F(s,function(c,m){var h=i.scale.type===`ordinal`?i.scale.getRawOrdinalNumber(c.tickValue):c.tickValue,g=c.formattedLabel,_=c.rawLabel,v=a;if(u&&u[h]){var y=u[h];U(y)&&y.textStyle&&(v=new rp(y.textStyle,a,n.ecModel))}var b=v.getTextColor()||n.get([`axisLine`,`lineStyle`,`color`]),x=i.dataToCoord(h),S=v.getShallow(`align`,!0)||l.textAlign,C=W(v.getShallow(`alignMinLabel`,!0),S),w=W(v.getShallow(`alignMaxLabel`,!0),S),T=v.getShallow(`verticalAlign`,!0)||v.getShallow(`baseline`,!0)||l.textVerticalAlign,E=W(v.getShallow(`verticalAlignMinLabel`,!0),T),D=W(v.getShallow(`verticalAlignMaxLabel`,!0),T),O=new $c({x,y:r.labelOffset+r.labelDirection*o,rotation:l.rotation,silent:f,z2:10+(c.level||0),style:Ff(v,{text:g,align:m===0?C:m===s.length-1?w:S,verticalAlign:m===0?E:m===s.length-1?D:T,fill:V(b)?b(i.type===`category`?_:i.type===`value`?h+``:h,m):b})});if(O.anid=`label_`+h,Df({el:O,componentModel:n,itemName:g,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:_,tickIndex:m}}),p){var k=lO.makeAxisEventDataBase(n);k.targetType=`axisLabel`,k.value=_,k.tickIndex=m,i.type===`category`&&(k.dataIndex=h),Q(O).eventData=k}t.add(O),O.updateTransform(),d.push(O),e.add(O),O.decomposeTransform()}),d}}function bO(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return xO(n,e,t),n.seriesInvolved&&CO(n,e),n}function xO(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];F(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=AO(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(F(n.getAxes(),z(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&F(f.baseAxes,z(p,!d||`cross`,u)),d&&F(f.otherAxes,z(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!kO(d))){s==null&&(s=d.get(`triggerTooltip`)),d=r?SO(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=AO(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:kO(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=wO(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function SO(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};F(s,function(e){c[e]=O(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||(c.label={});if(l.show==null&&(l.show=!1),i===`cross`){var u=o.get([`label`,`show`]);if(l.show=u==null||u,!a){var d=c.lineStyle=o.get(`crossStyle`);d&&M(l,d.textStyle)}}return e.model.getModel(`axisPointer`,new rp(c,n,r))}function CO(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||F(e.coordSysAxesInfo[AO(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount==null&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())})})}function wO(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(TO(a[r+`AxisId`],n.id)||TO(a[r+`AxisIndex`],n.componentIndex)||TO(a[r+`AxisName`],n.name))return i}}function TO(e,t){return e===`all`||B(e)&&N(e,t)>=0||e===t}function EO(e){var t=DO(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=kO(n);a==null&&(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function DO(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[AO(e)]}function OO(e){var t=DO(e);return t&&t.axisPointerModel}function kO(e){return!!e.get([`handle`,`show`])}function AO(e){return e.type+`||`+e.id}var jO={},MO=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.render=function(t,n,r,i){this.axisPointerClass&&EO(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},n.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},n.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},n.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},n.prototype._doUpdateAxisPointerClass=function(e,t,r){var i=n.getAxisPointerClass(this.axisPointerClass);if(i){var a=OO(e);a?(this._axisPointer||(this._axisPointer=new i)).render(e,a,t,r):this._disposeAxisPointer(t)}},n.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},n.registerAxisPointerClass=function(e,t){jO[e]=t},n.getAxisPointerClass=function(e){return e&&jO[e]},n.type=`axis`,n}(H_),NO=Oo();function PO(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0});if(l.length){var u=s.length,d=NO(e).splitAreaColors,f=G(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=B(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Yc({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:M({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}NO(e).splitAreaColors=f}}}function FO(e){NO(e).splitAreaColors=null}var IO=[`axisLine`,`axisTickLabel`,`axisName`],LO=[`splitArea`,`splitLine`,`minorSplitLine`],RO=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.axisPointerClass=`CartesianAxisPointer`,t}return n.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Y,this.group.add(this._axisGroup),t.get(`show`)){var o=t.getCoordSysModel(),s=new lO(t,j({handleAutoShown:function(e){for(var n=o.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(VS(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},QD(o,t)));F(IO,s.add,s),this._axisGroup.add(s.getGroup()),F(LO,function(e){t.get([e,`show`])&&zO[e](this,this._axisGroup,t,o)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||yf(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},n.prototype.remove=function(){FO(this)},n.type=`cartesianAxis`,n}(MO),zO={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitLine`),o=a.getModel(`lineStyle`),s=o.get(`color`),c=a.get(`showMinLine`)!==!1,l=a.get(`showMaxLine`)!==!1;s=B(s)?s:[s];for(var u=r.coordinateSystem.getRect(),d=i.isHorizontal(),f=0,p=i.getTicksCoords({tickModel:a}),m=[],h=[],g=o.getLineStyle(),_=0;_<p.length;_++){var v=i.toGlobalCoord(p[_].coord);if(!(_===0&&!c||_===p.length-1&&!l)){var y=p[_].tickValue;d?(m[0]=v,m[1]=u.y,h[0]=v,h[1]=u.y+u.height):(m[0]=u.x,m[1]=v,h[0]=u.x+u.width,h[1]=v);var b=f++%s.length,x=new xd({anid:y==null?null:`line_`+y,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:h[0],y2:h[1]},style:M({stroke:s[b]},g),silent:!0});df(x.shape,g.lineWidth),t.add(x)}}}},minorSplitLine:function(e,t,n,r){var i=n.axis,a=n.getModel(`minorSplitLine`).getModel(`lineStyle`),o=r.coordinateSystem.getRect(),s=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var l=[],u=[],d=a.getLineStyle(),f=0;f<c.length;f++)for(var p=0;p<c[f].length;p++){var m=i.toGlobalCoord(c[f][p].coord);s?(l[0]=m,l[1]=o.y,u[0]=m,u[1]=o.y+o.height):(l[0]=o.x,l[1]=m,u[0]=o.x+o.width,u[1]=m);var h=new xd({anid:`minor_line_`+c[f][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:d,silent:!0});df(h.shape,d.lineWidth),t.add(h)}},splitArea:function(e,t,n,r){PO(e,t,n,r)}},BO=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`xAxis`,n}(RO),VO=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=BO.type,t}return n.type=`yAxis`,n}(RO),HO=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return n.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Yc({shape:e.coordinateSystem.getRect(),style:M({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},n.type=`grid`,n}(H_),UO={offset:0};function WO(e){e.registerComponentView(HO),e.registerComponentModel(RD),e.registerCoordinateSystem(`cartesian2d`,rO),GD(e,`x`,zD,UO),GD(e,`y`,zD,UO),e.registerComponentView(BO),e.registerComponentView(VO),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var GO=`\0_ec_interaction_mutex`;function KO(e,t,n){var r=YO(e);r[t]=n}function qO(e,t,n){var r=YO(e);r[t]===n&&(r[t]=null)}function JO(e,t){return!!YO(e)[t]}function YO(e){return e[GO]||(e[GO]={})}kx({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Me);var XO=function(e){t(n,e);function n(t){var n=e.call(this)||this;n._zr=t;var r=R(n._mousedownHandler,n),i=R(n._mousemoveHandler,n),a=R(n._mouseupHandler,n),o=R(n._mousewheelHandler,n),s=R(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=M(O(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e==null&&(e=!0),(e===!0||e===`move`||e===`pan`)&&(t.on(`mousedown`,r),t.on(`mousemove`,i),t.on(`mouseup`,a)),(e===!0||e===`scale`||e===`zoom`)&&(t.on(`mousewheel`,o),t.on(`pinch`,s))},n.disable=function(){t.off(`mousedown`,r),t.off(`mousemove`,i),t.off(`mouseup`,a),t.off(`mousewheel`,o),t.off(`pinch`,s)},n}return n.prototype.isDragging=function(){return this._dragging},n.prototype.isPinching=function(){return this._pinching},n.prototype.setPointerChecker=function(e){this.pointerChecker=e},n.prototype.dispose=function(){this.disable()},n.prototype._mousedownHandler=function(e){if(!Nt(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},n.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!$O(`moveOnMouseMove`,e,this._opt)||e.gestureEvent===`pinch`||JO(this._zr,`globalPan`))){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,a=t-r,o=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&Mt(e.event),QO(this,`pan`,`moveOnMouseMove`,e,{dx:a,dy:o,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},n.prototype._mouseupHandler=function(e){Nt(e)||(this._dragging=!1)},n.prototype._mousewheelHandler=function(e){var t=$O(`zoomOnMouseWheel`,e,this._opt),n=$O(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;ZO(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);ZO(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}},n.prototype._pinchHandler=function(e){if(!JO(this._zr,`globalPan`)){var t=e.pinchScale>1?1.1:1/1.1;ZO(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},n}(ct);function ZO(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(Mt(r.event),QO(e,t,n,r,i))}function QO(e,t,n,r,i){i.isAvailableBehavior=R($O,null,n,r),e.trigger(t,i)}function $O(e,t,n){var r=n[e];return!e||r&&(!H(r)||t.event[r+`Key`])}function ek(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function tk(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,c=a.max||1/0;o=Math.max(Math.min(c,o),s)}var l=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(l-1),i.y-=(r-i.y)*(l-1),i.scaleX*=l,i.scaleY*=l,i.dirty()}var nk={axisPointer:1,tooltip:1,brush:1};function rk(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!nk.hasOwnProperty(r.mainType)&&i&&i.model!==n}function ik(e){H(e)&&(e=new DOMParser().parseFromString(e,`text/xml`));var t=e;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!==`svg`||t.nodeType!==1;)t=t.nextSibling;return t}var ak,ok={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`},sk=L(ok),ck={"alignment-baseline":`textBaseline`,"stop-color":`stopColor`},lk=L(ck),uk=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=ik(e);this._defsUsePending=[];var r=new Y;this._root=r;var i=[],a=n.getAttribute(`viewBox`)||``,o=parseFloat(n.getAttribute(`width`)||t.width),s=parseFloat(n.getAttribute(`height`)||t.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),gk(n,r,null,!0,!1);for(var c=n.firstChild;c;)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;bk(this._defs,this._defsUsePending),this._defsUsePending=[];var l,u;if(a){var d=Sk(a);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&o!=null&&s!=null&&(u=kk(l,{x:0,y:0,width:o,height:s}),!t.ignoreViewBox)){var f=r;r=new Y,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return!t.ignoreRootClip&&o!=null&&s!=null&&r.setClipPath(new Yc({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,a){var o=e.nodeName.toLowerCase(),s,c=r;if(o===`defs`&&(i=!0),o===`text`&&(a=!0),o===`defs`||o===`switch`)s=t;else{if(!i){var l=ak[o];if(l&&K(ak,o)){s=l.call(this,e,t);var u=e.getAttribute(`name`);if(u){var d={name:u,namedFrom:null,svgNodeTagLower:o,el:s};n.push(d),o===`g`&&(c=d)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:o,el:s});t.add(s)}}var f=dk[o];if(f&&K(dk,o)){var p=f.call(this,e),m=e.getAttribute(`id`);m&&(this._defs[m]=p)}}if(s&&s.isGroup)for(var h=e.firstChild;h;)h.nodeType===1?this._parseNode(h,s,n,c,i,a):h.nodeType===3&&a&&this._parseText(h,s),h=h.nextSibling},e.prototype._parseText=function(e,t){var n=new Lc({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});mk(t,n),gk(e,n,this._defsUsePending,!1,!1),_k(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9),r.font=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+`px`,r.fontFamily||`sans-serif`].join(` `);var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=(function(){ak={g:function(e,t){var n=new Y;return mk(t,n),gk(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Yc;return mk(t,n),gk(e,n,this._defsUsePending,!1,!1),n.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`)}),n.silent=!0,n},circle:function(e,t){var n=new Gu;return mk(t,n),gk(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute(`cx`)||`0`),cy:parseFloat(e.getAttribute(`cy`)||`0`),r:parseFloat(e.getAttribute(`r`)||`0`)}),n.silent=!0,n},line:function(e,t){var n=new xd;return mk(t,n),gk(e,n,this._defsUsePending,!1,!1),n.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`)}),n.silent=!0,n},ellipse:function(e,t){var n=new qu;return mk(t,n),gk(e,n,this._defsUsePending,!1,!1),n.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`)}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=hk(n));var i=new gd({shape:{points:r||[]},silent:!0});return mk(t,i),gk(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute(`points`),r;n&&(r=hk(n));var i=new vd({shape:{points:r||[]},silent:!0});return mk(t,i),gk(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new Vc;return mk(t,n),gk(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute(`xlink:href`)||e.getAttribute(`href`),x:+e.getAttribute(`x`),y:+e.getAttribute(`y`),width:+e.getAttribute(`width`),height:+e.getAttribute(`height`)}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute(`x`)||`0`,r=e.getAttribute(`y`)||`0`,i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`;this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new Y;return mk(t,o),gk(e,o,this._defsUsePending,!1,!0),o},tspan:function(e,t){var n=e.getAttribute(`x`),r=e.getAttribute(`y`);n!=null&&(this._textX=parseFloat(n)),r!=null&&(this._textY=parseFloat(r));var i=e.getAttribute(`dx`)||`0`,a=e.getAttribute(`dy`)||`0`,o=new Y;return mk(t,o),gk(e,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(e,t){var n=Bu(e.getAttribute(`d`)||``);return mk(t,n),gk(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),e}(),dk={lineargradient:function(e){var t=new Ad(parseInt(e.getAttribute(`x1`)||`0`,10),parseInt(e.getAttribute(`y1`)||`0`,10),parseInt(e.getAttribute(`x2`)||`10`,10),parseInt(e.getAttribute(`y2`)||`0`,10));return fk(e,t),pk(e,t),t},radialgradient:function(e){var t=new jd(parseInt(e.getAttribute(`cx`)||`0`,10),parseInt(e.getAttribute(`cy`)||`0`,10),parseInt(e.getAttribute(`r`)||`0`,10));return fk(e,t),pk(e,t),t}};function fk(e,t){e.getAttribute(`gradientUnits`)===`userSpaceOnUse`&&(t.global=!0)}function pk(e,t){for(var n=e.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()===`stop`){var r=n.getAttribute(`offset`),i=void 0;i=r&&r.indexOf(`%`)>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};Dk(n,a,a);var o=a.stopColor||n.getAttribute(`stop-color`)||`#000000`;t.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function mk(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),M(t.__inheritedStyle,e.__inheritedStyle))}function hk(e){for(var t=Sk(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),a=parseFloat(t[r+1]);n.push([i,a])}return n}function gk(e,t,n,r,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(Tk(e,t),Dk(e,o,s),r||Ok(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=yk(a,`fill`,o.fill,n)),o.stroke!=null&&(a.style.stroke=yk(a,`stroke`,o.stroke,n)),F([`lineWidth`,`opacity`,`fillOpacity`,`strokeOpacity`,`miterLimit`,`fontSize`],function(e){o[e]!=null&&(a.style[e]=parseFloat(o[e]))}),F([`lineDashOffset`,`lineCap`,`lineJoin`,`fontWeight`,`fontFamily`,`fontStyle`,`textAlign`],function(e){o[e]!=null&&(a.style[e]=o[e])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=I(Sk(o.lineDash),function(e){return parseFloat(e)})),(o.visibility===`hidden`||o.visibility===`collapse`)&&(a.invisible=!0),o.display===`none`&&(a.ignore=!0)}function _k(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r===`auto`||r===`baseline`?i=`alphabetic`:r===`before-edge`||r===`text-before-edge`?i=`top`:r===`after-edge`||r===`text-after-edge`?i=`bottom`:(r===`central`||r===`mathematical`)&&(i=`middle`),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o===`middle`&&(s=`center`),e.style.textAlign=s)}}var vk=/^url\(\s*#(.*?)\)/;function yk(e,t,n,r){var i=n&&n.match(vk);if(i){var a=xe(i[1]);r.push([e,t,a]);return}return n===`none`&&(n=null),n}function bk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var xk=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Sk(e){return e.match(xk)||[]}var Ck=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,wk=Math.PI/180;function Tk(e,t){var n=e.getAttribute(`transform`);if(n){n=n.replace(/,/g,` `);var r=[],i=null;n.replace(Ck,function(e,t,n){return r.push(t,n),``});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],c=Sk(o);switch(i=i||zt(),s){case`translate`:Ut(i,i,[parseFloat(c[0]),parseFloat(c[1]||`0`)]);break;case`scale`:Gt(i,i,[parseFloat(c[0]),parseFloat(c[1]||c[0])]);break;case`rotate`:Wt(i,i,-parseFloat(c[0])*wk,[parseFloat(c[1]||`0`),parseFloat(c[2]||`0`)]);break;case`skewX`:var l=Math.tan(parseFloat(c[0])*wk);Ht(i,[1,0,l,1,0,0],i);break;case`skewY`:var u=Math.tan(parseFloat(c[0])*wk);Ht(i,[1,u,0,1,0,0],i);break;case`matrix`:i[0]=parseFloat(c[0]),i[1]=parseFloat(c[1]),i[2]=parseFloat(c[2]),i[3]=parseFloat(c[3]),i[4]=parseFloat(c[4]),i[5]=parseFloat(c[5]);break}}t.setLocalTransform(i)}}var Ek=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Dk(e,t,n){var r=e.getAttribute(`style`);if(r){Ek.lastIndex=0;for(var i;(i=Ek.exec(r))!=null;){var a=i[1],o=K(ok,a)?ok[a]:null;o&&(t[o]=i[2]);var s=K(ck,a)?ck[a]:null;s&&(n[s]=i[2])}}}function Ok(e,t,n){for(var r=0;r<sk.length;r++){var i=sk[r],a=e.getAttribute(i);a!=null&&(t[ok[i]]=a)}for(var r=0;r<lk.length;r++){var i=lk[r],a=e.getAttribute(i);a!=null&&(n[ck[i]]=a)}}function kk(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function Ak(e,t){return new uk().parse(e,t)}var jk=G([`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`,`text`,`tspan`,`g`]),Mk=function(){function e(e,t){this.type=`geoSVG`,this._usedGraphicMap=G(),this._freedGraphics=[],this._mapName=e,this._parsedXML=ik(t)}return e.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=Pk(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n;try{t=e&&Ak(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,be(n!=null)}catch(e){throw Error(`Invalid svg format
`+e.message)}var r=new Y;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=t.width,a=t.height,o=t.viewBoxRect,s=this._boundingRect;if(!s){var c=void 0,l=void 0,u=void 0,d=void 0;if(i==null?o&&(c=o.x,u=o.width):(c=0,u=i),a==null?o&&(l=o.y,d=o.height):(l=0,d=a),c==null||l==null){var f=n.getBoundingRect();c==null&&(c=f.x,u=f.width),l==null&&(l=f.y,d=f.height)}s=this._boundingRect=new J(c,l,u,d)}if(o){var p=kk(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new Yc({shape:s.plain()}));var m=[];return F(t.named,function(e){jk.get(e.svgNodeTagLower)!=null&&(m.push(e),Nk(e.el))}),{root:r,boundingRect:s,named:m}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();function Nk(e){e.silent=!1,e.isGroup&&e.traverse(function(e){e.silent=!1})}function Pk(e){var t=[],n=G();return F(e,function(e){if(e.namedFrom==null){var r=new xw(e.name,e.el);t.push(r),n.set(e.name,r)}}),{regions:t,regionsMap:n}}for(var Fk=[126,25],Ik=`南海诸岛`,Lk=[[[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]]],Rk=0;Rk<Lk.length;Rk++)for(var zk=0;zk<Lk[Rk].length;zk++)Lk[Rk][zk][0]/=10.5,Lk[Rk][zk][1]/=-10.5/.75,Lk[Rk][zk][0]+=Fk[0],Lk[Rk][zk][1]+=Fk[1];function Bk(e,t){if(e===`china`){for(var n=0;n<t.length;n++)if(t[n].name===Ik)return;t.push(new bw(Ik,I(Lk,function(e){return{type:`polygon`,exterior:e}}),Fk))}}var Vk={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Hk(e,t){if(e===`china`){var n=Vk[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),t.setCenter(r)}}}var Uk=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Wk(e,t){e===`china`&&t.name===`台湾`&&t.geometries.push({type:`polygon`,exterior:Uk[0]})}var Gk=`name`,Kk=function(){function e(e,t,n){this.type=`geoJSON`,this._parsedMap=G(),this._mapName=e,this._specialAreas=n,this._geoJSON=Jk(t)}return e.prototype.load=function(e,t){t=t||Gk;var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:qk(r)})}var i=G(),a=[];return F(n.regions,function(t){var n=t.name;e&&K(e,n)&&(t=t.cloneShallow(n=e[n])),a.push(t),i.set(n,t)}),{regions:a,boundingRect:n.boundingRect||new J(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,r;try{r=n?Tw(n,e):[]}catch(e){throw Error(`Invalid geoJson format
`+e.message)}return Bk(t,r),F(r,function(e){var n=e.name;Hk(t,e),Wk(t,e);var r=this._specialAreas&&this._specialAreas[n];r&&e.transformTo(r.left,r.top,r.width,r.height)},this),r},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function qk(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}function Jk(e){return H(e)?typeof JSON<`u`&&JSON.parse?JSON.parse(e):Function(`return (`+e+`);`)():e}var Yk=G(),Xk={registerMap:function(e,t,n){if(t.svg){var r=new Mk(e,t.svg);Yk.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;var r=new Kk(e,i,n);Yk.set(e,r)}},getGeoResource:function(e){return Yk.get(e)},getMapForUser:function(e){var t=Yk.get(e);return t&&t.type===`geoJSON`&&t.getMapForUser()},load:function(e,t,n){var r=Yk.get(e);if(r)return r.load(t,n)}},Zk=[`rect`,`circle`,`line`,`ellipse`,`polygon`,`polyline`,`path`],Qk=G(Zk),$k=G(Zk.concat([`g`])),eA=G(Zk.concat([`g`])),tA=Oo();function nA(e){var t=e.getItemStyle(),n=e.get(`areaColor`);return n!=null&&(t.fill=n),t}function rA(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var iA=function(){function e(e){var t=new Y;this.uid=ap(`ec_map_draw`),this._controller=new XO(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Y),t.add(this._svgGroup=new Y)}return e.prototype.draw=function(e,t,n,r,i){var a=e.mainType===`geo`,o=e.getData&&e.getData();a&&t.eachComponent({mainType:`series`,subType:`map`},function(t){!o&&t.getHostGeoModel()===e&&(o=t.getData())});var s=e.coordinateSystem,c=this._regionsGroup,l=this.group,u=s.getTransformInfo(),d=u.raw,f=u.roam;!c.childAt(0)||i?(l.x=f.x,l.y=f.y,l.scaleX=f.scaleX,l.scaleY=f.scaleY,l.dirty()):Hd(l,f,e);var p=o&&o.getVisual(`visualMeta`)&&o.getVisual(`visualMeta`).length>0,m={api:n,geo:s,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:p,isGeo:a,transformInfoRaw:d};s.resourceType===`geoJSON`?this._buildGeoJSON(m):s.resourceType===`geoSVG`&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,c,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=G(),n=G(),r=this._regionsGroup,i=e.transformInfoRaw,a=e.mapOrGeoModel,o=e.data,s=e.geo.projection,c=s&&s.stream;function l(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function u(e){for(var t=[],n=!c&&s&&s.project,r=0;r<e.length;++r){var i=l(e[r],n);i&&t.push(i)}return t}function d(e){return{shape:{points:u(e)}}}r.removeAll(),F(e.geo.regions,function(i){var u=i.name,f=t.get(u),p=n.get(u)||{},m=p.dataIdx,h=p.regionModel;if(!f){f=t.set(u,new Y),r.add(f),m=o?o.indexOfName(u):null,h=e.isGeo?a.getRegionModel(u):o?o.getItemModel(m):null;var g=h.get(`silent`,!0);g!=null&&(f.silent=g),n.set(u,{dataIdx:m,regionModel:h})}var _=[],v=[];F(i.geometries,function(e){if(e.type===`polygon`){var t=[e.exterior].concat(e.interiors||[]);c&&(t=uA(t,c)),F(t,function(e){_.push(new gd(d(e)))})}else{var n=e.points;c&&(n=uA(n,c,!0)),F(n,function(e){v.push(new vd(d(e)))})}});var y=l(i.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new Od({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});f.add(r),aA(e,r,m,h),oA(e,r,u,h,a,m,y),n&&(rA(r),F(r.states,rA))}}b(_),b(v,!0)}),t.each(function(t,r){var i=n.get(r),o=i.dataIdx,s=i.regionModel;sA(e,t,r,s,a,o),cA(e,t,r,s,a),lA(e,t,r,s,a)},this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=G(),i=!1;F(this._svgGraphicRecord.named,function(t){var n=t.name,a=e.mapOrGeoModel,o=e.data,s=t.svgNodeTagLower,c=t.el,l=o?o.indexOfName(n):null,u=a.getRegionModel(n);Qk.get(s)!=null&&c instanceof Os&&aA(e,c,l,u),c instanceof Os&&(c.culling=!0);var d=u.get(`silent`,!0);d!=null&&(c.silent=d),c.z2EmphasisLift=0,t.namedFrom||(eA.get(s)!=null&&oA(e,c,n,u,a,l,null),sA(e,c,n,u,a,l),cA(e,c,n,u,a),$k.get(s)!=null&&(lA(e,c,n,u,a)===`self`&&(i=!0),(r.get(n)||r.set(n,[])).push(c)))},this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel([`blur`,`itemStyle`]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(e){if(!e.isGroup){Vl(e);var t=e.ensureState(`blur`).style||{};t.opacity==null&&n!=null&&(t.opacity=n),e.ensureState(`emphasis`)}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType===`geoJSON`){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if(n.resourceType===`geoSVG`)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=Xk.getGeoResource(e);if(t&&t.type===`geoSVG`){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Xk.getGeoResource(e);t&&t.type===`geoSVG`&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,a=this._controllerHost;a.zoomLimit=e.get(`scaleLimit`),a.zoom=r.getZoom(),i.enable(e.get(`roam`)||!1);var o=e.mainType;function s(){var t={type:`geoRoam`,componentType:o};return t[o+`Id`]=e.id,t}i.off(`pan`).on(`pan`,function(e){this._mouseDownFlag=!1,ek(a,e.dx,e.dy),n.dispatchAction(j(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))},this),i.off(`zoom`).on(`zoom`,function(e){this._mouseDownFlag=!1,tk(a,e.scale,e.originX,e.originY),n.dispatchAction(j(s(),{totalZoom:a.zoom,zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(t,i,a){return r.containPoint([i,a])&&!rk(t,n,e)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=tA(t).ignore)})},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off(`mousedown`),t.off(`click`),e.get(`selectedMode`)&&(t.on(`mousedown`,function(){i._mouseDownFlag=!0}),t.on(`click`,function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},e}();function aA(e,t,n,r){var i=r.getModel(`itemStyle`),a=r.getModel([`emphasis`,`itemStyle`]),o=r.getModel([`blur`,`itemStyle`]),s=r.getModel([`select`,`itemStyle`]),c=nA(i),l=nA(a),u=nA(s),d=nA(o),f=e.data;if(f){var p=f.getItemVisual(n,`style`),m=f.getItemVisual(n,`decal`);e.isVisualEncodedByVisualMap&&p.fill&&(c.fill=p.fill),m&&(c.decal=qy(m,e.api))}t.setStyle(c),t.style.strokeNoScale=!0,t.ensureState(`emphasis`).style=l,t.ensureState(`select`).style=u,t.ensureState(`blur`).style=d,Vl(t)}function oA(e,t,n,r,i,a,o){var s=e.data,c=e.isGeo,l=s&&isNaN(s.get(s.mapDimension(`value`),a)),u=s&&s.getItemLayout(a);if(c||l||u&&u.showLabel){var d=c?n:a,f=void 0;(!s||a>=0)&&(f=i);var p=o?{normal:{align:`center`,verticalAlign:`middle`}}:null;Nf(t,Pf(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},p);var m=t.getTextContent();if(m&&(tA(m).ignore=m.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+`%`,(o[1]-h.y)/h.height*100+`%`]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function sA(e,t,n,r,i,a){e.data?e.data.setItemGraphicEl(a,t):Q(t).eventData={componentType:`geo`,componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function cA(e,t,n,r,i){e.data||Df({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get(`tooltip`)})}function lA(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get(`selectedMode`);var a=r.getModel(`emphasis`),o=a.get(`focus`);return lu(t,o,a.get(`blurScope`),a.get(`disabled`)),e.isGeo&&gu(t,i,n),o}function uA(e,t,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),F(e,function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var dA=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.render=function(e,t,n,r){if(!(r&&r.type===`mapToggleSelect`&&r.from===this.uid)){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&r.type===`geoRoam`&&this._mapDraw.resetForLabelLayout(),r&&r.type===`geoRoam`&&r.componentType===`series`&&r.seriesId===e.id){var a=this._mapDraw;a&&i.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new iA(n);i.add(a.group),a.draw(e,t,n,this,r),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get(`showLegendSymbol`)&&t.getComponent(`legend`)&&this._renderSymbols(e,t,n)}}},n.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},n.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},n.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension(`value`),function(t,n){if(!isNaN(t)){var a=r.getItemLayout(n);if(!(!a||!a.point)){var o=a.point,s=a.offset,c=new Gu({style:{fill:e.getData().getVisual(`style`).fill},shape:{cx:o[0]+s*9,cy:o[1],r:3},silent:!0,z2:8+(s?0:11)});if(!s){var l=e.mainSeries.getData(),u=r.getName(n),d=l.indexOfName(u),f=r.getItemModel(n),p=f.getModel(`label`),m=l.getItemGraphicEl(d);Nf(c,Pf(f),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(d,n)}},defaultText:u}),c.disableLabelAnimation=!0,p.get(`position`)||c.setTextConfig({position:`bottom`}),m.onHoverStateChange=function(e){Fl(c,e)}}i.add(c)}}})},n.type=`map`,n}(K_),fA=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(e){if(e!=null){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},t}return n.prototype.getInitialData=function(e){for(var t=MD(this,{coordDimensions:[`value`],encodeDefaulter:z(Bm,this)}),n=G(),r=[],i=0,a=t.count();i<a;i++){var o=t.getName(i);n.set(o,i)}return F(Xk.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(e){var i=e.name,a=n.get(i),o=e.properties&&e.properties.echartsStyle,s;a==null?(s={name:i},r.push(s)):s=t.getRawDataItem(a),o&&k(s,o)}),t.appendData(r),t},n.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e==null?null:this.ecModel.getComponent(`geo`,e)},n.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},n.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension(`value`),e)},n.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},n.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),a=r.getName(e),o=this.seriesGroup,s=[],c=0;c<o.length;c++){var l=o[c].originalData.indexOfName(a),u=r.mapDimension(`value`);isNaN(o[c].originalData.get(u,l))||s.push(o[c].name)}return f_(`section`,{header:s.join(`, `),noHeader:!s.length,blocks:[f_(`nameValue`,{name:a,value:i})]})},n.prototype.setZoom=function(e){this.option.zoom=e},n.prototype.setCenter=function(e){this.option.center=e},n.prototype.getLegendIcon=function(e){var t=e.icon||`roundRect`,n=iy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke=`none`,t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=`#fff`,n.style.lineWidth=2),n},n.type=`series.map`,n.dependencies=[`geo`],n.layoutMode=`box`,n.defaultOption={z:2,coordinateSystem:`geo`,map:``,left:`center`,top:`center`,aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:`#000`},itemStyle:{borderWidth:.5,borderColor:`#444`,areaColor:`#eee`},emphasis:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{areaColor:`rgba(255,215,0,0.8)`}},select:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{color:`rgba(255,215,0,0.8)`}},nameProperty:`name`},n}(N_);function pA(e,t){var n={};return F(e,function(e){e.each(e.mapDimension(`value`),function(t,r){var i=`ec-`+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)})}),e[0].map(e[0].mapDimension(`value`),function(r,i){for(var a=`ec-`+e[0].getName(i),o=0,s=1/0,c=-1/0,l=n[a].length,u=0;u<l;u++)s=Math.min(s,n[a][u]),c=Math.max(c,n[a][u]),o+=n[a][u];var d=t===`min`?s:t===`max`?c:t===`average`?o/l:o;return l===0?NaN:d})}function mA(e){var t={};e.eachSeriesByType(`map`,function(e){var n=e.getHostGeoModel(),r=n?`o`+n.id:`i`+e.getMapType();(t[r]=t[r]||[]).push(e)}),F(t,function(e,t){for(var n=pA(I(e,function(e){return e.getData()}),e[0].get(`mapValueCalculation`)),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(var r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=r===0&&!e[r].getHostGeoModel(),e[r].setData(n.cloneShallow()),e[r].mainSeries=e[0]})}function hA(e){var t={};e.eachSeriesByType(`map`,function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var i={};F(n.seriesGroup,function(t){var n=t.coordinateSystem,r=t.originalData;t.get(`showLegendSymbol`)&&e.getComponent(`legend`)&&r.each(r.mapDimension(`value`),function(e,t){var a=r.getName(t),o=n.getRegion(a);if(!(!o||isNaN(e))){var s=i[a]||0,c=n.dataToPoint(o.getCenter());i[a]=s+1,r.setItemLayout(t,{point:c,offset:s})}})});var a=n.getData();a.each(function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!i[t],a.setItemLayout(e,n)}),t[r]=!0}})}var gA=rt,_A=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.type=`view`,n.dimensions=[`x`,`y`],n._roamTransformable=new Hi,n._rawTransformable=new Hi,n.name=t,n}return n.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new J(e,t,n,r),this._rect},n.prototype.getBoundingRect=function(){return this._rect},n.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new J(e,t,n,r)},n.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._rawTransformable;a.transform=i.calculateTransform(new J(e,t,n,r));var o=a.parent;a.parent=null,a.decomposeTransform(),a.parent=o,this._updateTransform()},n.prototype.setCenter=function(e,t){e&&(this._center=[X(e[0],t.getWidth()),X(e[1],t.getHeight())],this._updateCenterAndZoom())},n.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(t.max!=null&&(e=Math.min(t.max,e)),t.min!=null&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},n.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},n.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},n.prototype.getZoom=function(){return this._zoom||1},n.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},n.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=rt([],r,e),n=rt([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},n.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),Vt(this.transform||(this.transform=[]),t.transform||zt()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],Kt(this.invTransform,this.transform),this.decomposeTransform()},n.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Hi;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},n.prototype.getViewRect=function(){return this._viewRect},n.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},n.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?gA(n,e,r):Ie(n,e)},n.prototype.pointToData=function(e){var t=this.invTransform;return t?gA([],e,t):[e[0],e[1]]},n.prototype.convertToPixel=function(e,t,n){var r=vA(t);return r===this?r.dataToPoint(n):null},n.prototype.convertFromPixel=function(e,t,n){var r=vA(t);return r===this?r.pointToData(n):null},n.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},n.dimensions=[`x`,`y`],n}(Hi);function vA(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var yA={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},bA=[`lng`,`lat`],xA=function(e){t(n,e);function n(t,n,r){var i=e.call(this,t)||this;i.dimensions=bA,i.type=`geo`,i._nameCoordMap=G(),i.map=n;var a=r.projection,o=Xk.load(n,r.nameMap,r.nameProperty),s=Xk.getGeoResource(n);i.resourceType=s?s.type:null;var c=i.regions=o.regions,l=yA[s.type];i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a;var u;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);u=u||f.clone(),u.union(f)}else u=o.boundingRect;return i.setBoundingRect(u.x,u.y,u.width,u.height),i.aspectScale=a?1:W(r.aspectScale,l.aspectScale),i._invertLongitute=!a&&l.invertLongitute,i}return n.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=this._invertLongitute;i=i.clone(),a&&(i.y=-i.y-i.height);var o=this._rawTransformable;o.transform=i.calculateTransform(new J(e,t,n,r));var s=o.parent;o.parent=null,o.decomposeTransform(),o.parent=s,a&&(o.scaleY=-o.scaleY),this._updateTransform()},n.prototype.getRegion=function(e){return this._regionsMap.get(e)},n.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if(r.type===`geoJSON`&&r.contain(e))return t[n]}},n.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},n.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},n.prototype.dataToPoint=function(e,t,n){if(H(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},n.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},n.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},n.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},n.prototype.convertToPixel=function(e,t,n){var r=SA(t);return r===this?r.dataToPoint(n):null},n.prototype.convertFromPixel=function(e,t,n){var r=SA(t);return r===this?r.pointToData(n):null},n}(_A);ne(xA,_A);function SA(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents(`geo`,Mo).models[0]||{}).coordinateSystem:null}function CA(e,t){var n=e.get(`boundingCoords`);if(n!=null){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=r[0],s=r[1],c=i[0],l=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var u=function(e,t,n,o){for(var s=n-e,c=o-t,l=0;l<=100;l++){var u=l/100,d=a.project([e+s*u,t+c*u]);it(r,r,d),at(i,i,d)}};u(o,s,c,s),u(c,s,c,l),u(c,l,o,l),u(o,l,c,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var d=this.getBoundingRect(),f=e.get(`layoutCenter`),p=e.get(`layoutSize`),m=t.getWidth(),h=t.getHeight(),g=d.width/d.height*this.aspectScale,_=!1,v,y;f&&p&&(v=[X(f[0],m),X(f[1],h)],y=X(p,Math.min(m,h)),!isNaN(v[0])&&!isNaN(v[1])&&!isNaN(y)&&(_=!0));var b;if(_)b={},g>1?(b.width=y,b.height=y/g):(b.height=y,b.width=y*g),b.y=v[1]-b.height/2,b.x=v[0]-b.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,b=_m(x,{width:m,height:h})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(e.get(`center`),t),this.setZoom(e.get(`zoom`))}function wA(e,t){F(t.get(`geoCoord`),function(t,n){e.addGeoCoord(n,t)})}var TA=new(function(){function e(){this.dimensions=bA}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get(`nameProperty`),aspectScale:e.get(`aspectScale`),projection:e.get(`projection`)}}e.eachComponent(`geo`,function(e,i){var a=e.get(`map`),o=new xA(a+i,a,j({nameMap:e.get(`nameMap`)},r(e)));o.zoomLimit=e.get(`scaleLimit`),n.push(o),e.coordinateSystem=o,o.model=e,o.resize=CA,o.resize(e,t)}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`geo`&&(e.coordinateSystem=n[e.get(`geoIndex`)||0])});var i={};return e.eachSeriesByType(`map`,function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}}),F(i,function(e,i){var a=new xA(i,i,j({nameMap:A(I(e,function(e){return e.get(`nameMap`)}))},r(e[0])));a.zoomLimit=ge.apply(null,I(e,function(e){return e.get(`scaleLimit`)})),n.push(a),a.resize=CA,a.resize(e[0],t),F(e,function(e){e.coordinateSystem=a,wA(a,e)})}),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),a=G(),o=0;o<i.length;o++)a.set(i[o].name,i[o]);return F(Xk.load(t,n,r).regions,function(e){var t=e.name,n=a.get(t),r=e.properties&&e.properties.echartsStyle;n||(n={name:t},i.push(n)),r&&k(n,r)}),i},e}()),EA=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.init=function(e,t,n){var r=Xk.getGeoResource(e.map);if(r&&r.type===`geoJSON`){var i=e.itemStyle=e.itemStyle||{};`color`in i||(i.color=`#eee`)}this.mergeDefaultAndTheme(e,n),oo(e,`label`,[`show`])},n.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=TA.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=re(t.regions||[],function(t,r){var i=r.name;return i&&(t.set(i,new rp(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t},G()),t.selectedMap||(t.selectedMap=n)},n.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new rp(null,this,this.ecModel)},n.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r=t===`normal`?n.get([`label`,`formatter`]):n.get([`emphasis`,`label`,`formatter`]),i={name:e};if(V(r))return i.status=t,r(i);if(H(r))return r.replace(`{a}`,e==null?``:e)},n.prototype.setZoom=function(e){this.option.zoom=e},n.prototype.setCenter=function(e){this.option.center=e},n.prototype.select=function(e){var t=this.option,n=t.selectedMode;if(n){n!==`multiple`&&(t.selectedMap=null);var r=t.selectedMap||(t.selectedMap={});r[e]=!0}},n.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},n.prototype.toggleSelected=function(e){this[this.isSelected(e)?`unSelect`:`select`](e)},n.prototype.isSelected=function(e){var t=this.option.selectedMap;return!!(t&&t[e])},n.type=`geo`,n.layoutMode=`box`,n.defaultOption={z:0,show:!0,left:`center`,top:`center`,aspectScale:null,silent:!1,map:``,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:`#000`},itemStyle:{borderWidth:.5,borderColor:`#444`},emphasis:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{color:`rgba(255,215,0,0.8)`}},select:{label:{show:!0,color:`rgb(100,0,0)`},itemStyle:{color:`rgba(255,215,0,0.8)`}},regions:[]},n}($);function DA(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function OA(e,t,n,r){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(DA(e,s),r)),o!=null){if(n){var c=n.min||0,l=n.max||1/0;o=Math.max(Math.min(i*o,l),c)/i}e.scaleX*=o,e.scaleY*=o;var u=(t.originX-e.x)*(o-1),d=(t.originY-e.y)*(o-1);e.x-=u,e.y-=d,e.updateTransform(),e.setCenter(DA(e,s),r),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var kA=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.focusBlurEnabled=!0,t}return n.prototype.init=function(e,t){this._api=t},n.prototype.render=function(e,t,n,r){if(this._model=e,!e.get(`show`)){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new iA(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on(`click`,this._handleRegionClick,this),i.group.silent=e.get(`silent`),this.group.add(i.group),this.updateSelectStatus(e,t,n)},n.prototype._handleRegionClick=function(e){var t;Jv(e.target,function(e){return(t=Q(e).eventData)!=null},!0),t&&this._api.dispatchAction({type:`geoToggleSelect`,geoId:this._model.id,name:t.name})},n.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse(function(e){var t=Q(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0})},n.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},n.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},n.type=`geo`,n}(H_);function AA(e,t,n){Xk.registerMap(e,t,n)}function jA(e){e.registerCoordinateSystem(`geo`,TA),e.registerComponentModel(EA),e.registerComponentView(kA),e.registerImpl(`registerMap`,AA),e.registerImpl(`getMap`,function(e){return Xk.getMapForUser(e)});function t(t,n){n.update=`geo:updateSelectStatus`,e.registerAction(n,function(e,n){var r={},i=[];return n.eachComponent({mainType:`geo`,query:e},function(n){n[t](e.name);var a=n.coordinateSystem;F(a.regions,function(e){r[e.name]=n.isSelected(e.name)||!1});var o=[];F(r,function(e,t){r[t]&&o.push(t)}),i.push({geoIndex:n.componentIndex,name:o})}),{selected:r,allSelected:i,name:e.name}})}t(`toggleSelected`,{type:`geoToggleSelect`,event:`geoselectchanged`}),t(`select`,{type:`geoSelect`,event:`geoselected`}),t(`unSelect`,{type:`geoUnSelect`,event:`geounselected`}),e.registerAction({type:`geoRoam`,event:`geoRoam`,update:`updateTransform`},function(e,t,n){var r=e.componentType||`series`;t.eachComponent({mainType:r,query:e},function(t){var i=t.coordinateSystem;if(i.type===`geo`){var a=OA(i,e,t.get(`scaleLimit`),n);t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom),r===`series`&&F(t.seriesGroup,function(e){e.setCenter(a.center),e.setZoom(a.zoom)})}})})}function MA(e){lw(jA),e.registerChartView(dA),e.registerSeriesModel(fA),e.registerLayout(hA),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,mA),Gv(`map`,e.registerAction)}var NA=Oo();function PA(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,VA(t,n,e),F(n,function(n){F(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,z(FA,e))})}),t.wrapMethod(`cloneShallow`,z(LA,e)),F(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,z(IA,e))}),be(n[t.dataType]===t)}function FA(e,t){if(BA(this)){var n=j({},NA(this).datas);n[this.dataType]=t,VA(t,n,e)}else HA(t,this.dataType,NA(this).mainData,e);return t}function IA(e,t){return e.struct&&e.struct.update(),t}function LA(e,t){return F(NA(t).datas,function(n,r){n!==t&&HA(n.cloneShallow(),r,t,e)}),t}function RA(e){var t=NA(this).mainData;return e==null||t==null?t:NA(t).datas[e]}function zA(){var e=NA(this).mainData;return e==null?[{data:e}]:I(L(NA(e).datas),function(t){return{type:t,data:NA(e).datas[t]}})}function BA(e){return NA(e).mainData===e}function VA(e,t,n){NA(e).datas={},F(t,function(t,r){HA(t,r,e,n)})}function HA(e,t,n,r){NA(n).datas[t]=e,NA(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=RA,e.getLinkedDataAll=zA}var UA=F,WA=U,GA=-1,KA=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=O(t);this.type=r,this.mappingMethod=n,this._normalizeData=ij[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(YA(i),qA(i)):n===`category`?i.categories?JA(i):YA(i,!0):(be(n!==`linear`||i.dataExtent),YA(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return R(this._normalizeData,this)},e.listVisualTypes=function(){return L(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){U(e)?F(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=B(t)?[]:U(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&UA(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(WA(e)){var t=[];UA(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||H(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(aj(u[1],e,l[1]))return a}else if(l[1]===1/0){if(aj(u[0],l[0],e))return a}else if(aj(u[0],l[0],e)&&aj(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:QA(`color`),getColorMapper:function(){var e=this.option;return R(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),$A.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Er(t,e.parsedVisual,r),i?r:Mr(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return Mr(Er(e,this.option.parsedVisual),`rgba`)},category:$A,piecewise:function(e,t){var n=nj.call(this,t);return n==null&&(n=Mr(Er(e,this.option.parsedVisual),`rgba`)),n},fixed:ej}},colorHue:XA(function(e,t){return Ar(e,t)}),colorSaturation:XA(function(e,t){return Ar(e,null,t)}),colorLightness:XA(function(e,t){return Ar(e,null,null,t)}),colorAlpha:XA(function(e,t){return jr(e,t)}),decal:{applyVisual:QA(`decal`),_normalizedToVisual:{linear:null,category:$A,piecewise:null,fixed:null}},opacity:{applyVisual:QA(`opacity`),_normalizedToVisual:tj([0,1])},liftZ:{applyVisual:QA(`liftZ`),_normalizedToVisual:{linear:ej,category:ej,piecewise:ej,fixed:ej}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:ZA,category:$A,piecewise:function(e,t){var n=nj.call(this,t);return n==null&&(n=ZA.call(this,e)),n},fixed:ej}},symbolSize:{applyVisual:QA(`symbolSize`),_normalizedToVisual:tj([0,1])}},e}();function qA(e){var t=e.pieceList;e.hasSpecialVisual=!1,F(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function JA(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(UA(t,function(e,t){n[e]=t}),!B(r)){var i=[];U(r)?UA(r,function(e,t){var r=n[t];i[r==null?GA:r]=e}):i[GA]=r,r=rj(e,i)}for(var a=t.length-1;a>=0;a--)r[a]==null&&(delete n[t[a]],t.pop())}function YA(e,t){var n=e.visual,r=[];U(n)?UA(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),rj(e,r)}function XA(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:tj([0,1])}}function ZA(e){var t=this.option.visual;return t[Math.round(ja(e,[0,1],[0,t.length-1],!0))]||{}}function QA(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function $A(e){var t=this.option.visual;return t[this.option.loop&&e!==GA?e%t.length:e]}function ej(){return this.option.visual[0]}function tj(e){return{linear:function(t){return ja(t,e,this.option.visual,!0)},category:$A,piecewise:function(t,n){var r=nj.call(this,n);return r==null&&(r=ja(t,e,this.option.visual,!0)),r},fixed:ej}}function nj(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[KA.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function rj(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=I(t,function(e){return xr(e)||[0,0,0,1]})),t}var ij={linear:function(e){return ja(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=KA.findPieceIndex(e,t,!0);if(n!=null)return ja(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t==null?GA:t},fixed:Me};function aj(e,t,n){return e?t<=n:t<n}var oj=xd.prototype,sj=Td.prototype,cj=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n})(cj);function lj(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var uj=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.type=`ec-line`,n}return n.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},n.prototype.getDefaultShape=function(){return new cj},n.prototype.buildPath=function(e,t){lj(t)?oj.buildPath.call(this,e,t):sj.buildPath.call(this,e,t)},n.prototype.pointAt=function(e){return lj(this.shape)?oj.pointAt.call(this,e):sj.pointAt.call(this,e)},n.prototype.tangentAt=function(e){var t=this.shape,n=lj(t)?[t.x2-t.x1,t.y2-t.y1]:sj.tangentAt.call(this,e);return Xe(n,n)},n}(Z),dj=[`fromSymbol`,`toSymbol`];function fj(e){return`_`+e+`Type`}function pj(e,t,n){var r=t.getItemVisual(n,e);if(!r||r===`none`)return r;var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=ay(i),l=oy(o||0,c);return r+c+l+(a||``)+(s||``)}function mj(e,t,n){var r=t.getItemVisual(n,e);if(!(!r||r===`none`)){var i=t.getItemVisual(n,e+`Size`),a=t.getItemVisual(n,e+`Rotate`),o=t.getItemVisual(n,e+`Offset`),s=t.getItemVisual(n,e+`KeepAspect`),c=ay(i),l=oy(o||0,c),u=iy(r,-c[0]/2+l[0],-c[1]/2+l[1],c[0],c[1],null,s);return u.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,u.name=e,u}}function hj(e){var t=new uj({name:`line`,subPixelOptimize:!0});return gj(t.shape,e),t}function gj(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var _j=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return n.prototype._createLine=function(e,t,n){var r=e.hostModel,i=hj(e.getItemLayout(t));i.shape.percent=0,Ud(i,{shape:{percent:1}},r,t),this.add(i),F(dj,function(n){var r=mj(n,e,t);this.add(r),this[fj(n)]=pj(n,e,t)},this),this._updateCommonStl(e,t,n)},n.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=e.getItemLayout(t),o={shape:{}};gj(o.shape,a),Hd(i,o,r,t),F(dj,function(n){var r=pj(n,e,t),i=fj(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=mj(n,e,t);this.add(a)}this[i]=r},this),this._updateCommonStl(e,t,n)},n.prototype.getLinePath=function(){return this.childAt(0)},n.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName(`line`),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,c=n&&n.labelStatesModels,l=n&&n.emphasisDisabled,u=n&&n.focus,d=n&&n.blurScope;if(!n||e.hasItemOption){var f=e.getItemModel(t),p=f.getModel(`emphasis`);a=p.getModel(`lineStyle`).getLineStyle(),o=f.getModel([`blur`,`lineStyle`]).getLineStyle(),s=f.getModel([`select`,`lineStyle`]).getLineStyle(),l=p.get(`disabled`),u=p.get(`focus`),d=p.get(`blurScope`),c=Pf(f)}var m=e.getItemVisual(t,`style`),h=m.stroke;i.useStyle(m),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState(`emphasis`).style=a,i.ensureState(`blur`).style=o,i.ensureState(`select`).style=s,F(dj,function(e){var t=this.childOfName(e);if(t){t.setColor(h),t.style.opacity=m.opacity;for(var n=0;n<vl.length;n++){var r=vl[n],a=i.getState(r);if(a){var o=a.style||{},s=t.ensureState(r),c=s.style||(s.style={});o.stroke!=null&&(c[t.__isEmptyBrush?`stroke`:`fill`]=o.stroke),o.opacity!=null&&(c.opacity=o.opacity)}}t.markRedraw()}},this);var g=r.getRawValue(t);Nf(this,c,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:h||`#000`,defaultOpacity:m.opacity,defaultText:(g==null?e.getName(t):isFinite(g)?Ma(g):g)+``});var _=this.getTextContent();if(_){var v=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=v.get(`position`)||`middle`;var y=v.get(`distance`);B(y)||(y=[y,y]),_.__labelDistance=y}this.setTextConfig({position:null,local:!0,inside:!1}),lu(this,u,d,l)},n.prototype.highlight=function(){Wl(this)},n.prototype.downplay=function(){Gl(this)},n.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},n.prototype.setLinePoints=function(e){var t=this.childOfName(`line`);gj(t.shape,e),t.dirty()},n.prototype.beforeUpdate=function(){var e=this,t=e.childOfName(`fromSymbol`),n=e.childOfName(`toSymbol`),r=e.getTextContent();if(!t&&!n&&(!r||r.ignore))return;for(var i=1,a=this.parent;a;)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=e.childOfName(`line`);if(!this.__dirty&&!o.__dirty)return;var s=o.shape.percent,c=o.pointAt(0),l=o.pointAt(s),u=Ve([],l,c);Xe(u,u);function d(e,t){var n=e.__specifiedRotation;if(n==null){var r=o.tangentAt(t);e.attr(`rotation`,(t===1?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr(`rotation`,n)}if(t&&(t.setPosition(c),d(t,0),t.scaleX=t.scaleY=i*s,t.markRedraw()),n&&(n.setPosition(l),d(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,p=void 0,m=r.__labelDistance,h=m[0]*i,g=m[1]*i,_=s/2,v=o.tangentAt(_),y=[v[1],-v[0]],b=o.pointAt(_);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0]<c[0]&&(S=Math.PI+S),r.rotation=S}var C=void 0;switch(r.__position){case`insideStartTop`:case`insideMiddleTop`:case`insideEndTop`:case`middle`:C=-g,p=`bottom`;break;case`insideStartBottom`:case`insideMiddleBottom`:case`insideEndBottom`:C=g,p=`top`;break;default:C=0,p=`middle`}switch(r.__position){case`end`:r.x=u[0]*h+l[0],r.y=u[1]*g+l[1],f=u[0]>.8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},n}(Y),vj=function(){function e(e){this.group=new Y,this._LineCtor=e||_j}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=bj(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bj(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(e){!e.isGroup&&!yj(e)&&(e.incremental=!0,e.ensureState(`emphasis`).hoverLayer=!0)}for(var r=e.start;r<e.end;r++)if(Sj(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){kf(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(Sj(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var a=e.getItemGraphicEl(n);if(!Sj(t.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(t,r,i):a=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,a),this.group.add(a)},e}();function yj(e){return e.animators&&e.animators.length>0}function bj(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:Pf(t)}}function xj(e){return isNaN(e[0])||isNaN(e[1])}function Sj(e){return e&&!xj(e[0])&&!xj(e[1])}function Cj(e){return`_EC_`+e}var wj=function(){function e(e){this.type=`graph`,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=e==null?``+t:``+e;var n=this._nodesMap;if(!n[Cj(e)]){var r=new Tj(e,t);return r.hostGraph=this,this.nodes.push(r),n[Cj(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[Cj(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(ce(e)&&(e=this.nodes[e]),ce(t)&&(t=this.nodes[t]),e instanceof Tj||(e=r[Cj(e)]),t instanceof Tj||(t=r[Cj(t)]),!(!e||!t)){var a=e.id+`-`+t.id,o=new Ej(e,t,n);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),i[a]=o,o}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof Tj&&(e=e.id),t instanceof Tj&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+`-`+t]:n[e+`-`+t]||n[t+`-`+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof Tj||(t=this._nodesMap[Cj(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(r,t,null))for(var o=[t];o.length;)for(var s=o.shift(),c=s[i],a=0;a<c.length;a++){var l=c[a],u=l.node1===s?l.node2:l.node1;if(!u.__visited){if(e.call(r,u,s))return;o.push(u),u.__visited=!0}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(var i=0,a=t.count();i<a;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var a=r[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),Tj=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?``:e,this.dataIndex=t==null?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e.prototype.getTrajectoryDataIndices=function(){for(var e=G(),t=G(),n=0;n<this.edges.length;n++){var r=this.edges[n];if(!(r.dataIndex<0)){e.set(r.dataIndex,!0);for(var i=[r.node1],a=[r.node2],o=0;o<i.length;){var s=i[o];o++,t.set(s.dataIndex,!0);for(var c=0;c<s.inEdges.length;c++)e.set(s.inEdges[c].dataIndex,!0),i.push(s.inEdges[c].node1)}for(o=0;o<a.length;){var l=a[o];o++,t.set(l.dataIndex,!0);for(var c=0;c<l.outEdges.length;c++)e.set(l.outEdges[c].dataIndex,!0),a.push(l.outEdges[c].node2)}}}return{edge:e.keys(),node:t.keys()}},e}(),Ej=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n==null?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=G(),t=G();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i<n.length;){var a=n[i];i++,t.set(a.dataIndex,!0);for(var o=0;o<a.inEdges.length;o++)e.set(a.inEdges[o].dataIndex,!0),n.push(a.inEdges[o].node1)}for(i=0;i<r.length;){var s=r[i];i++,t.set(s.dataIndex,!0);for(var o=0;o<s.outEdges.length;o++)e.set(s.outEdges[o].dataIndex,!0),r.push(s.outEdges[o].node2)}return{edge:e.keys(),node:t.keys()}},e}();function Dj(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}ne(Tj,Dj(`hostGraph`,`data`)),ne(Ej,Dj(`hostGraph`,`edgeData`));function Oj(e,t,n,r,i,a){e=e||0;var o=n[1]-n[0];if(i!=null&&(i=Aj(i,[0,o])),a!=null&&(a=Math.max(a,i==null?0:i)),r===`all`){var s=Math.abs(t[1]-t[0]);s=Aj(s,[0,o]),i=a=Aj(s,[i,a]),r=0}t[0]=Aj(t[0],n),t[1]=Aj(t[1],n);var c=kj(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=Aj(t[r],u);var d=kj(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=kj(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function kj(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function Aj(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var jj=!0,Mj=Math.min,Nj=Math.max,Pj=Math.pow,Fj=1e4,Ij=6,Lj=6,Rj=`globalPan`,zj={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Bj={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},Vj={brushStyle:{lineWidth:2,stroke:`rgba(210,219,238,0.3)`,fill:`#D2DBEE`},transformable:!0,brushMode:`single`,removeOnClick:!1},Hj=0,Uj=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new Y,n._uid=`brushController_`+Hj++,F(xM,function(e,t){this._handlers[t]=R(e,this)},n),n}return n.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},n.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||KO(t,Rj,this._uid),F(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=k(O(Vj),e,!0)},n.prototype._doDisableBrush=function(){var e=this._zr;qO(e,Rj,this._uid),F(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},n.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};F(e,function(e){t[e.panelId]=O(e)})}else this._panels=null;return this},n.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},n.prototype.updateCovers=function(e){e=I(e,function(e){return k(O(Vj),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new Wx(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:Jj(i,r[t]=o==null?Gj(i,Wj(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},n.prototype.unmount=function(){return this.enableBrush(!1),Qj(this),this._zr.remove(this.group),this},n.prototype.dispose=function(){this.unmount(),this.off()},n}(ct);function Wj(e,t){var n=wM[t.brushType].createCover(e,t);return n.__brushOption=t,qj(n,t),e.group.add(n),n}function Gj(e,t){var n=Yj(t);return n.endCreating&&(n.endCreating(e,t),qj(t,t.__brushOption)),t}function Kj(e,t){var n=t.__brushOption;Yj(t).updateCoverShape(e,t,n.range,n)}function qj(e,t){var n=t.z;n==null&&(n=Fj),e.traverse(function(e){e.z=n,e.z2=n})}function Jj(e,t){Yj(t).updateCommon(e,t),Kj(e,t)}function Yj(e){return wM[e.__brushOption.brushType]}function Xj(e,t,n){var r=e._panels;if(!r)return jj;var i,a=e._transform;return F(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function Zj(e,t){var n=e._panels;if(!n)return jj;var r=t.__brushOption.panelId;return r==null?jj:n[r]}function Qj(e){var t=e._covers,n=t.length;return F(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function $j(e,t){var n=I(e._covers,function(e){var t=e.__brushOption,n=O(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function eM(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return Pj(i*i+a*a,.5)>Ij}function tM(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function nM(e,t,n,r){var i=new Y;return i.add(new Yc({name:`main`,style:oM(n),silent:!0,draggable:!0,cursor:`move`,drift:z(dM,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:z($j,t,{isEnd:!0})})),F(r,function(n){i.add(new Yc({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:z(dM,e,t,i,n),ondragend:z($j,t,{isEnd:!0})}))}),i}function rM(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=Nj(i,Lj),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;aM(e,t,`main`,o,s,m,h),r.transformable&&(aM(e,t,`w`,c,l,a,_),aM(e,t,`e`,f,l,a,_),aM(e,t,`n`,c,l,g,a),aM(e,t,`s`,c,p,g,a),aM(e,t,`nw`,c,l,a,a),aM(e,t,`ne`,f,l,a,a),aM(e,t,`sw`,c,p,a,a),aM(e,t,`se`,f,p,a,a))}function iM(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(oM(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),F([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?lM(e,n[0]):uM(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?Bj[a]+`-resize`:null})})}function aM(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(hM(mM(e,t,[[r,i],[r+a,i+o]])))}function oM(e){return M({strokeNoScale:!0},e.brushStyle)}function sM(e,t,n,r){var i=[Mj(e,n),Mj(t,r)],a=[Nj(e,n),Nj(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function cM(e){return mf(e.group)}function lM(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[gf({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],cM(e))]}function uM(e,t){var n=[lM(e,t[0]),lM(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function dM(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=pM(t,i,a);F(r,function(e){var t=zj[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(sM(s[0][0],s[1][0],s[0][1],s[1][1])),Jj(t,n),$j(t,{isEnd:!1})}function fM(e,t,n,r){var i=t.__brushOption.range,a=pM(e,n,r);F(i,function(e){e[0]+=a[0],e[1]+=a[1]}),Jj(e,t),$j(e,{isEnd:!1})}function pM(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function mM(e,t,n){var r=Zj(e,t);return r&&r!==jj?r.clipPath(n,e._transform):O(n)}function hM(e){var t=Mj(e[0][0],e[1][0]),n=Mj(e[0][1],e[1][1]),r=Nj(e[0][0],e[1][0]),i=Nj(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function gM(e,t,n){if(!(!e._brushType||CM(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=Xj(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===jj||s.panelId===a.panelId)&&wM[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function _M(e){var t=e.event;t.preventDefault&&t.preventDefault()}function vM(e,t,n){return e.childOfName(`main`).contain(t,n)}function yM(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),eM(e)||i){if(a&&!i){o.brushMode===`single`&&Qj(e);var c=O(o);c.brushType=bM(c.brushType,a),c.panelId=a===jj?null:a.panelId,i=e._creatingCover=Wj(e,c),e._covers.push(i)}if(i){var l=wM[bM(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(mM(e,i,e._track)),r&&(Gj(e,i),l.updateCommon(e,i)),Kj(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&Xj(e,t,n)&&Qj(e)&&(s={isEnd:r,removeOnClick:!0});return s}function bM(e,t){return e===`auto`?t.defaultBrushType:e}var xM={mousedown:function(e){if(this._dragging)SM(this,e);else if(!e.target||!e.target.draggable){_M(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=Xj(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(gM(this,e,r),this._dragging){_M(e);var i=yM(this,e,r,!1);i&&$j(this,i)}},mouseup:function(e){SM(this,e)}};function SM(e,t){if(e._dragging){_M(t);var n=t.offsetX,r=t.offsetY,i=yM(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&$j(e,i)}}function CM(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var wM={lineX:TM(0),lineY:TM(1),rect:{createCover:function(e,t){function n(e){return e}return nM({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=tM(e);return sM(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){rM(e,t,n,r)},updateCommon:iM,contain:vM},polygon:{createCover:function(e,t){var n=new Y;return n.add(new vd({name:`main`,style:oM(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new gd({name:`main`,draggable:!0,drift:z(fM,e,t),ondragend:z($j,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:mM(e,t,n)})},updateCommon:iM,contain:vM}};function TM(e){return{createCover:function(t,n){return nM({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=tM(t);return[Mj(n[0][e],n[1][e]),Nj(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=Zj(t,n);if(o!==jj&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),rM(t,n,c,i)},updateCommon:iM,contain:vM}}function EM(e){return e=kM(e),function(t){return bf(t,e)}}function DM(e,t){return e=kM(e),function(n){var r=t==null?n:t,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function OM(e,t,n){var r=kM(e);return function(e,i){return r.contain(i[0],i[1])&&!rk(e,t,n)}}function kM(e){return J.create(e)}function AM(e,t){var n=t.rippleEffectColor||t.color;e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType===`stroke`?n:null,fill:t.brushType===`fill`?n:null}})})}var jM=function(e){t(n,e);function n(t,n){var r=e.call(this)||this,i=new GT(t,n),a=new Y;return r.add(i),r.add(a),r.updateData(t,n),r}return n.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},n.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=iy(t,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*e.period+e.effectOffset;o.animate(``,!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(o)}AM(i,e)},n.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=[`symbolType`,`period`,`rippleScale`,`rippleNumber`],i=0;i<r.length;i++){var a=r[i];if(t[a]!==e[a]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}AM(n,e)},n.prototype.highlight=function(){Wl(this)},n.prototype.downplay=function(){Gl(this)},n.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},n.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),a=e.getItemModel(t),o=e.getItemVisual(t,`symbol`),s=ay(e.getItemVisual(t,`symbolSize`)),c=e.getItemVisual(t,`style`),l=c&&c.fill,u=a.getModel(`emphasis`);i.setScale(s),i.traverse(function(e){e.setStyle(`fill`,l)});var d=oy(e.getItemVisual(t,`symbolOffset`),s);d&&(i.x=d[0],i.y=d[1]),i.rotation=(e.getItemVisual(t,`symbolRotate`)||0)*Math.PI/180||0;var f={};f.showEffectOn=r.get(`showEffectOn`),f.rippleScale=a.get([`rippleEffect`,`scale`]),f.brushType=a.get([`rippleEffect`,`brushType`]),f.period=a.get([`rippleEffect`,`period`])*1e3,f.effectOffset=t/e.count(),f.z=r.getShallow(`z`)||0,f.zlevel=r.getShallow(`zlevel`)||0,f.symbolType=o,f.color=l,f.rippleEffectColor=a.get([`rippleEffect`,`color`]),f.rippleNumber=a.get([`rippleEffect`,`number`]),f.showEffectOn===`render`?(this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){e===`emphasis`?f.showEffectOn!==`render`&&n.startEffectAnimation(f):e===`normal`&&f.showEffectOn!==`render`&&n.stopEffectAnimation()}),this._effectCfg=f,lu(this,u.get(`focus`),u.get(`blurScope`),u.get(`disabled`))},n.prototype.fadeOut=function(e){e&&e()},n}(Y),MM=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.init=function(){this._symbolDraw=new XT(jM)},n.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},n.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get(`clip`,!0)?n:null},n.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=ME(``).reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},n.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=qt(t.getRoamTransform()),this.group.decomposeTransform())},n.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},n.type=`effectScatter`,n}(K_),NM=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.hasSymbolVisual=!0,t}return n.prototype.getInitialData=function(e,t){return PS(null,this,{useEncodeDefaulter:!0})},n.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},n.type=`series.effectScatter`,n.dependencies=[`grid`,`polar`],n.defaultOption={coordinateSystem:`cartesian2d`,z:2,legendHoverLink:!0,effectType:`ripple`,progressive:0,showEffectOn:`render`,clip:!0,rippleEffect:{period:4,scale:2.5,brushType:`fill`,number:3},universalTransition:{divideShape:`clone`},symbolSize:10},n}(N_);function PM(e){e.registerChartView(MM),e.registerSeriesModel(NM),e.registerLayout(ME(`effectScatter`))}var FM=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return n.prototype.createLine=function(e,t,n){return new _j(e,t,n)},n.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel(`effect`),r=n.get(`symbolSize`),i=n.get(`symbol`);B(r)||(r=[r,r]);var a=e.getItemVisual(t,`style`),o=n.get(`color`)||a&&a.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),s=iy(i,-.5,-.5,1,1,o),s.z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle(`shadowColor`,o),s.setStyle(n.getItemStyle([`color`])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(o),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},n.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),a=t.get(`period`)*1e3,o=t.get(`loop`),s=t.get(`roundTrip`),c=t.get(`constantSpeed`),l=ge(t.get(`delay`),function(t){return t/e.count()*a/3});if(r.ignore=!0,this._updateAnimationPoints(r,i),c>0&&(a=this._getLineLength(r)/c*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var u=void 0;u=V(l)?l(n):l,r.__t>0&&(u=-a*r.__t),this._animateSymbol(r,a,u,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},n.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var a=this,o=e.animate(``,r).when(i?t*2:t,{__t:i?2:1}).delay(n).during(function(){a._updateSymbolPosition(e)});r||o.done(function(){a.remove(e)}),o.start()}},n.prototype._getLineLength=function(e){return Qe(e.__p1,e.__cp1)+Qe(e.__cp1,e.__p2)},n.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},n.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},n.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,a=[e.x,e.y],o=a.slice(),s=Jn,c=Yn;a[0]=s(t[0],r[0],n[0],i),a[1]=s(t[1],r[1],n[1],i);var l=e.__t<1?c(t[0],r[0],n[0],i):c(n[0],r[0],t[0],1-i),u=e.__t<1?c(t[1],r[1],n[1],i):c(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(u,l)-Math.PI/2,(this._symbolType===`line`||this._symbolType===`rect`||this._symbolType===`roundRect`)&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=Qe(o,a)*1.05,i===1&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):e.__lastT===1?e.scaleY=2*Qe(t,a):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=a[0],e.y=a[1]},n.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel(`effect`);this._updateEffectAnimation(e,n,t)},n}(Y),IM=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return n.prototype._createPolyline=function(e,t,n){var r=new vd({shape:{points:e.getItemLayout(t)}});this.add(r),this._updateCommonStl(e,t,n)},n.prototype.updateData=function(e,t,n){var r=e.hostModel;Hd(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},n.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,c=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var l=i.getModel(`emphasis`);a=l.getModel(`lineStyle`).getLineStyle(),c=l.get(`disabled`),o=l.get(`focus`),s=l.get(`blurScope`)}r.useStyle(e.getItemVisual(t,`style`)),r.style.fill=null,r.style.strokeNoScale=!0;var u=r.ensureState(`emphasis`);u.style=a,lu(this,o,s,c)},n.prototype.updateLayout=function(e,t){this.childAt(0).setShape(`points`,e.getItemLayout(t))},n}(Y),LM=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return n.prototype.createLine=function(e,t,n){return new IM(e,t,n)},n.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var a=t[i-1],o=t[i];r+=Qe(a,o),n.push(r)}if(r===0){this._length=0;return}for(var i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r},n.prototype._getLineLength=function(){return this._length},n.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a=this._lastFrame,o;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),c=n[o],l=n[o+1];e.x=c[0]*(1-s)+s*l[0],e.y=c[1]*(1-s)+s*l[1];var u=e.__t<1?l[0]-c[0]:c[0]-l[0],d=e.__t<1?l[1]-c[1]:c[1]-l[1];e.rotation=-Math.atan2(d,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},n}(FM),RM=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),zM=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return n.prototype.reset=function(){this.notClear=!1,this._off=0},n.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},n.prototype.getDefaultShape=function(){return new RM},n.prototype.buildPath=function(e,t){var n=t.segs,r=t.curveness,i;if(t.polyline)for(i=this._off;i<n.length;){var a=n[i++];if(a>0){e.moveTo(n[i++],n[i++]);for(var o=1;o<a;o++)e.lineTo(n[i++],n[i++])}}else for(i=this._off;i<n.length;){var s=n[i++],c=n[i++],l=n[i++],u=n[i++];if(e.moveTo(s,c),r>0){var d=(s+l)/2-(c-u)*r,f=(c+u)/2-(l-s)*r;e.quadraticCurveTo(d,f,l,u)}else e.lineTo(l,u)}this.incremental&&(this._off=i,this.notClear=!0)},n.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var c=r[s++];if(c>0)for(var l=r[s++],u=r[s++],d=1;d<c;d++){var f=r[s++],p=r[s++];if(fc(l,u,f,p,a,e,t))return o}o++}else for(var o=0,s=0;s<r.length;){var l=r[s++],u=r[s++],f=r[s++],p=r[s++];if(i>0){if(mc(l,u,(l+f)/2-(u-p)*i,(u+p)/2-(f-l)*i,f,p,a,e,t))return o}else if(fc(l,u,f,p,a,e,t))return o;o++}return-1},n.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},n.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],c=t[o++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(c,r),a=Math.max(c,a)}e=this._rect=new J(n,r,i,a)}return e},n}(Z),BM=function(){function e(){this.group=new Y}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout(`linesPoints`)}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout(`linesPoints`),i=n&&n.shape.segs;if(i&&i.length<2e4){var a=i.length,o=new Float32Array(a+r.length);o.set(i),o.set(r,a),n.setShape({segs:o})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new zM({cursor:`default`,ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get(`polyline`),curveness:r.get([`lineStyle`,`curveness`])}),e.useStyle(r.getModel(`lineStyle`).getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual(`style`);i&&i.stroke&&e.setStyle(`stroke`,i.stroke),e.setStyle(`fill`,null);var a=Q(e);a.seriesIndex=r.seriesIndex,e.on(`mousemove`,function(t){a.dataIndex=null;var n=e.hoverDataIdx;n>0&&(a.dataIndex=n+e.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),VM={seriesType:`lines`,plan:U_(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get(`polyline`),r=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,c=i.end-i.start;if(n){for(var l=0,u=i.start;u<i.end;u++)l+=e.getLineCoordsCount(u);s=new Float32Array(c+l*2)}else s=new Float32Array(c*4);for(var d=0,f=[],u=i.start;u<i.end;u++){var p=e.getLineCoords(u,o);n&&(s[d++]=p);for(var m=0;m<p;m++)f=t.dataToPoint(o[m],!1,f),s[d++]=f[0],s[d++]=f[1]}a.setLayout(`linesPoints`,s)}else for(var u=i.start;u<i.end;u++){var h=a.getItemModel(u),p=e.getLineCoords(u,o),g=[];if(n)for(var _=0;_<p;_++)g.push(t.dataToPoint(o[_]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var v=h.get([`lineStyle`,`curveness`]);+v&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*v,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*v])}a.setItemLayout(u,g)}}}}}},HM=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),a=e.get(`zlevel`),o=e.get([`effect`,`trailLength`]),s=n.getZr(),c=s.painter.getType()===`svg`;c||s.painter.getLayer(a).clear(!0),this._lastZlevel!=null&&!c&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o>0&&(c||s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),i.updateData(r);var l=e.get(`clip`,!0)&&fE(e.coordinateSystem,!1,e);l?this.group.setClipPath(l):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},n.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},n.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},n.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},n.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var a=VM.reset(e,t,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},n.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get(`polyline`),a=t.pipelineContext.large;return(!n||r!==this._hasEffet||i!==this._isPolyline||a!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=a?new BM:new vj(i?r?LM:IM:r?FM:_j),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},n.prototype._showEffect=function(e){return!!e.get([`effect`,`show`])},n.prototype._clearLayer=function(e){var t=e.getZr();t.painter.getType()!==`svg`&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},n.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},n.prototype.dispose=function(e,t){this.remove(e,t)},n.type=`lines`,n}(K_),UM=typeof Uint32Array>`u`?Array:Uint32Array,WM=typeof Float64Array>`u`?Array:Float64Array;function GM(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=I(t,function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),A([t,e[0],e[1]])}))}var KM=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.visualStyleAccessPath=`lineStyle`,t.visualDrawType=`stroke`,t}return n.prototype.init=function(t){t.data=t.data||[],GM(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},n.prototype.mergeOption=function(t){if(GM(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},n.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=ke(this._flatCoords,t.flatCoords),this._flatCoordsOffset=ke(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},n.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow(`coords`)},n.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},n.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],r=this._flatCoordsOffset[e*2+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+i*2],t[i][1]=this._flatCoords[n+i*2+1];return r}else{for(var a=this._getCoordsFromItemModel(e),i=0;i<a.length;i++)t[i]=t[i]||[],t[i][0]=a[i][0],t[i][1]=a[i][1];return a.length}},n.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),ce(e[0])){for(var n=e.length,r=new UM(n),i=new WM(n),a=0,o=0,s=0,c=0;c<n;){s++;var l=e[c++];r[o++]=a+t,r[o++]=l;for(var u=0;u<l;u++){var d=e[c++],f=e[c++];i[a++]=d,i[a++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},n.prototype.getInitialData=function(e,t){var n=new vS([`value`],this);return n.hasItemOption=!1,n.initData(e.data,[],function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var a=e.value;if(a!=null)return a instanceof Array?a[i]:a}),n},n.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get(`name`);if(i)return i;var a=r.get(`fromName`),o=r.get(`toName`),s=[];return a!=null&&s.push(a),o!=null&&s.push(o),f_(`nameValue`,{name:s.join(` > `)})},n.prototype.preventIncremental=function(){return!!this.get([`effect`,`show`])},n.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?1e4:this.get(`progressive`):e},n.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?2e4:this.get(`progressiveThreshold`):e},n.prototype.getZLevelKey=function(){var e=this.getModel(`effect`),t=e.get(`trailLength`);return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get(`show`)&&t>0?t+``:``},n.type=`series.lines`,n.dependencies=[`grid`,`polar`,`geo`,`calendar`],n.defaultOption={coordinateSystem:`geo`,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:[`none`,`none`],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:`circle`,symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:`end`},lineStyle:{opacity:.5}},n}(N_);function qM(e){return e instanceof Array||(e=[e,e]),e}var JM={seriesType:`lines`,reset:function(e){var t=qM(e.get(`symbol`)),n=qM(e.get(`symbolSize`)),r=e.getData();r.setVisual(`fromSymbol`,t&&t[0]),r.setVisual(`toSymbol`,t&&t[1]),r.setVisual(`fromSymbolSize`,n&&n[0]),r.setVisual(`toSymbolSize`,n&&n[1]);function i(e,t){var n=e.getItemModel(t),r=qM(n.getShallow(`symbol`,!0)),i=qM(n.getShallow(`symbolSize`,!0));r[0]&&e.setItemVisual(t,`fromSymbol`,r[0]),r[1]&&e.setItemVisual(t,`toSymbol`,r[1]),i[0]&&e.setItemVisual(t,`fromSymbolSize`,i[0]),i[1]&&e.setItemVisual(t,`toSymbolSize`,i[1])}return{dataEach:r.hasItemOption?i:null}}};function YM(e){e.registerChartView(HM),e.registerSeriesModel(KM),e.registerLayout(VM),e.registerVisual(JM)}function XM(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!==`tspan`&&(t===`text`||K(e,`text`)))}function ZM(e,t,n){var r=e,i,a,o;if(t===`text`)o=r;else{o={},K(r,`text`)&&(o.text=r.text),K(r,`rich`)&&(o.rich=r.rich),K(r,`textFill`)&&(o.fill=r.textFill),K(r,`textStroke`)&&(o.stroke=r.textStroke),K(r,`fontFamily`)&&(o.fontFamily=r.fontFamily),K(r,`fontSize`)&&(o.fontSize=r.fontSize),K(r,`fontStyle`)&&(o.fontStyle=r.fontStyle),K(r,`fontWeight`)&&(o.fontWeight=r.fontWeight),a={type:`text`,style:o,silent:!0},i={};var s=K(r,`textPosition`);n?i.position=s?r.textPosition:`inside`:s&&(i.position=r.textPosition),K(r,`textPosition`)&&(i.position=r.textPosition),K(r,`textOffset`)&&(i.offset=r.textOffset),K(r,`textRotation`)&&(i.rotation=r.textRotation),K(r,`textDistance`)&&(i.distance=r.textDistance)}return QM(o,e),F(o.rich,function(e){QM(e,e)}),{textConfig:i,textContent:a}}function QM(e,t){t&&(t.font=t.textFont||t.font,K(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),K(t,`textAlign`)&&(e.align=t.textAlign),K(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),K(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),K(t,`textWidth`)&&(e.width=t.textWidth),K(t,`textHeight`)&&(e.height=t.textHeight),K(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),K(t,`textPadding`)&&(e.padding=t.textPadding),K(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),K(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),K(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),K(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),K(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),K(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),K(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}var $M={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},eN=L($M);re(Ui,function(e,t){return e[t]=1,e},{}),Ui.join(`, `);var tN=[``,`style`,`shape`,`extra`],nN=Oo();function rN(e,t,n,r,i){var a=e+`Animation`,o=Bd(e,r,i)||{},s=nN(t).userDuring;return o.duration>0&&(o.during=s?R(pN,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),j(o,n[a]),o}function iN(e,t,n,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=nN(e),l=t.style;c.userDuring=t.during;var u={},d={};if(_N(e,t,d),hN(`shape`,t,d),hN(`extra`,t,d),!a&&s&&(gN(e,t,u),mN(`shape`,e,t,u),mN(`extra`,e,t,u),vN(e,t,l,u)),d.style=l,cN(e,d,o),uN(e,t),s)if(a){var f={};F(tN,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(f[e]=f[e]||{}),j(e?f[e]:f,n.enterFrom))});var p=rN(`enter`,e,t,n,i);p.duration>0&&e.animateFrom(f,p)}else lN(e,t,i||0,n,u);aN(e,t),l?e.dirty():e.markRedraw()}function aN(e,t){for(var n=nN(e).leaveToProps,r=0;r<tN.length;r++){var i=tN[r],a=i?t[i]:t;a&&a.leaveTo&&(n||(n=nN(e).leaveToProps={}),i&&(n[i]=n[i]||{}),j(i?n[i]:n,a.leaveTo))}}function oN(e,t,n,r){if(e){var i=e.parent,a=nN(e).leaveToProps;if(a){var o=rN(`update`,e,t,n,0);o.done=function(){i.remove(e),r&&r()},e.animateTo(a,o)}else i.remove(e),r&&r()}}function sN(e){return e===`all`}function cN(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}function lN(e,t,n,r,i){if(i){var a=rN(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}function uN(e,t){K(t,`silent`)&&(e.silent=t.silent),K(t,`ignore`)&&(e.ignore=t.ignore),e instanceof Os&&K(t,`invisible`)&&(e.invisible=t.invisible),e instanceof Z&&K(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}var dN={},fN={setTransform:function(e,t){return dN.el[e]=t,this},getTransform:function(e){return dN.el[e]},setShape:function(e,t){var n=dN.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=dN.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=dN.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=dN.el.style;if(t)return t[e]},setExtra:function(e,t){var n=dN.el.extra||(dN.el.extra={});return n[e]=t,this},getExtra:function(e){var t=dN.el.extra;if(t)return t[e]}};function pN(){var e=this,t=e.el;if(t){var n=nN(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}dN.el=t,r(fN)}}function mN(e,t,n,r){var i=n[e];if(i){var a=t[e],o;if(a){var s=n.transition,c=i.transition;if(c)if(!o&&(o=r[e]={}),sN(c))j(o,a);else for(var l=ao(c),u=0;u<l.length;u++){var d=l[u],f=a[d];o[d]=f}else if(sN(s)||N(s,e)>=0){!o&&(o=r[e]={});for(var p=L(a),u=0;u<p.length;u++){var d=p[u],f=a[d];yN(i[d],f)&&(o[d]=f)}}}}}function hN(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=L(r),o=0;o<a.length;o++){var s=a[o];i[s]=qr(r[s])}}function gN(e,t,n){for(var r=t.transition,i=sN(r)?Ui:ao(r||[]),a=0;a<i.length;a++){var o=i[a];o===`style`||o===`shape`||o===`extra`||(n[o]=e[o])}}function _N(e,t,n){for(var r=0;r<eN.length;r++){var i=eN[r],a=$M[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<Ui.length;r++){var s=Ui[r];t[s]!=null&&(n[s]=t[s])}}function vN(e,t,n,r){if(n){var i=e.style,a;if(i){var o=n.transition,s=t.transition;if(o&&!sN(o)){var c=ao(o);!a&&(a=r.style={});for(var l=0;l<c.length;l++){var u=c[l],d=i[u];a[u]=d}}else if(e.getAnimationStyleProps&&(sN(s)||sN(o)||N(s,`style`)>=0)){var f=e.getAnimationStyleProps(),p=f?f.style:null;if(p){!a&&(a=r.style={});for(var m=L(n),l=0;l<m.length;l++){var u=m[l];if(p[u]){var d=i[u];a[u]=d}}}}}}}function yN(e,t){return P(e)?e!==t:e!=null&&isFinite(e)}var bN=Oo(),xN=[`percent`,`easing`,`shape`,`style`,`extra`];function SN(e){e.stopAnimation(`keyframe`),e.attr(bN(e))}function CN(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(B(t)){F(t,function(t){CN(e,t,n)});return}var r=t.keyframes,i=t.duration;if(n&&i==null){var a=Bd(`enter`,n,0);i=a&&a.duration}if(!(!r||!i)){var o=bN(e);F(tN,function(n){if(!(n&&!e[n])){var a;r.sort(function(e,t){return e.percent-t.percent}),F(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=L(c);if(n||(l=ie(l,function(e){return N(xN,e)<0})),l.length){a||(a=e.animate(n,t.loop,!0),a.scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;F(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing)}})}}}var wN=Oo(),TN=O,EN=R,DN=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Y,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=z(ON,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}MN(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&r.getBandWidth()>o)return!0;if(a){var s=DO(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=wN(e).pointerEl=new Xd[i.type](TN(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=wN(e).labelEl=new $c(TN(t.label));e.add(i),AN(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=wN(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=wN(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),AN(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Sf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Mt(e.event)},onmousedown:EN(this._onHandleDragMove,this,0,0),drift:EN(this._onHandleDragMove,this),ondragend:EN(this._onHandleDragEnd,this)}),n.add(r)),MN(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,nv(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){ON(this._axisPointerModel,!t&&this._moveAnimation,this._handle,jN(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(jN(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(jN(r)),wN(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),rv(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function ON(e,t,n,r){kN(wN(n).lastProp,r)||(wN(n).lastProp=r,t?Hd(n,r,e):(n.stopAnimation(),n.attr(r)))}function kN(e,t){if(U(e)&&U(t)){var n=!0;return F(t,function(t,r){n=n&&kN(e[r],t)}),!!n}else return e===t}function AN(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function jN(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function MN(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function NN(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function PN(e,t,n,r,i){var a=IN(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=nm(o.get(`padding`)||0),c=o.getFont(),l=Ji(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),FN(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:Ff(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function FN(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function IN(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:qC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};F(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),H(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function LN(e,t,n){var r=zt();return Wt(r,r,n.rotation),Ut(r,r,n.position),hf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function RN(e,t,n,r,i,a){var o=lO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),PN(t,r,i,a,{position:LN(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zN(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function BN(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function VN(e,t,n,r,i,a){return{cx:e,cy:t,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var HN=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=UN(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=NN(r),d=WN[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}RN(t,e,QD(o.model,n),n,r,i)},n.prototype.getHandleTransform=function(e,t,n){var r=QD(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=LN(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},n.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=UN(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},n}(DN);function UN(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var WN={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:zN([t,n[0]],[t,n[1]],GN(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:BN([t-r/2,n[0]],[r,i],GN(e))}}};function GN(e){return e.dim===`x`?0:1}var KN=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`axisPointer`,n.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:`#B9BEC9`,width:1,type:`dashed`},shadowStyle:{color:`rgba(210,219,238,0.2)`},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:`#fff`,padding:[5,7,5,7],backgroundColor:`auto`,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:`#333`,shadowBlur:3,shadowColor:`#aaa`,shadowOffsetX:0,shadowOffsetY:2,throttle:40}},n}($),qN=Oo(),JN=F;function YN(e,t,n){if(!r.node){var i=t.getZr();qN(i).records||(qN(i).records={}),XN(i,t);var a=qN(i).records[e]||(qN(i).records[e]={});a.handler=n}}function XN(e,t){if(qN(e).initialized)return;qN(e).initialized=!0,n(`click`,z($N,`click`)),n(`mousemove`,z($N,`mousemove`)),n(`globalout`,QN);function n(n,r){e.on(n,function(n){var i=eP(t);JN(qN(e).records,function(e){e&&r(e,n,i.dispatchAction)}),ZN(i.pendings,t)})}}function ZN(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function QN(e,t,n){e.handler(`leave`,null,n)}function $N(e,t,n,r){t.handler(e,n,r)}function eP(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function tP(e,t){if(!r.node){var n=t.getZr();(qN(n).records||{})[e]&&(qN(n).records[e]=null)}}var nP=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click`;YN(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},n.prototype.remove=function(e,t){tP(`axisPointer`,t)},n.prototype.dispose=function(e,t){tP(`axisPointer`,t)},n.type=`axisPointer`,n}(H_);function rP(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Do(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(I(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var iP=Oo();function aP(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||R(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){hP(i)&&(i=rP({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=hP(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||hP(i),f={},p={},m={list:[],map:{}},h={showPointer:z(cP,p),showTooltip:z(lP,m)};F(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);F(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=pP(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&oP(e,o,h,!1,f)}})});var g={};return F(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&F(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,mP(t),mP(e)))),g[e.key]=a}})}),F(g,function(e,t){oP(u[t],e,h,!0,f)}),uP(p,u,f),dP(m,i,e,o),fP(u,o,n),f}}function oP(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=sP(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&j(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function sP(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return F(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.getData().indicesOfNearest(l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(!(u==null||!isFinite(u))){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),F(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function cP(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function lP(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=AO(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function uP(e,t,n){var r=n.axesInfo=[];F(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function dP(e,t,n,r){if(hP(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function fP(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=iP(r)[i]||{},o=iP(r)[i]={};F(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&F(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];F(a,function(e,t){!o[t]&&c.push(e)}),F(o,function(e,t){!a[t]&&s.push(e)}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function pP(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function mP(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function hP(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gP(e){MO.registerAxisPointerClass(`CartesianAxisPointer`,HN),e.registerComponentModel(KN),e.registerComponentView(nP),e.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])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=bO(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},aP)}function _P(e){lw(WO),lw(gP)}var vP=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis;a.dim===`angle`&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=o.getOtherAxis(a).getExtent(),c=a.dataToCoord(t),l=r.get(`type`);if(l&&l!==`none`){var u=NN(r),d=bP[l](a,o,c,s);d.style=u,e.graphicKey=d.type,e.pointer=d}PN(e,n,r,i,yP(t,n,r,o,r.get([`label`,`margin`])))},n}(DN);function yP(e,t,n,r,i){var a=t.axis,o=a.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var c=r.getRadiusAxis().getExtent(),l,u,d;if(a.dim===`radius`){var f=zt();Wt(f,f,s),Ut(f,f,[r.cx,r.cy]),l=hf([o,-i],f);var p=t.getModel(`axisLabel`).get(`rotate`)||0,m=lO.innerTextLayout(s,p*Math.PI/180,-1);u=m.textAlign,d=m.textVerticalAlign}else{var h=c[1];l=r.coordToPoint([h+i,o]);var g=r.cx,_=r.cy;u=Math.abs(l[0]-g)/h<.3?`center`:l[0]>g?`left`:`right`,d=Math.abs(l[1]-_)/h<.3?`middle`:l[1]>_?`top`:`bottom`}return{position:l,align:u,verticalAlign:d}}var bP={line:function(e,t,n,r){return e.dim===`angle`?{type:`Line`,shape:zN(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:`Circle`,shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim===`angle`?{type:`Sector`,shape:VN(t.cx,t.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:`Sector`,shape:VN(t.cx,t.cy,n-i/2,n+i/2,0,Math.PI*2)}}},xP=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,function(e){e.getCoordSysModel()===this&&(t=e)},this),t},n.type=`polar`,n.dependencies=[`radiusAxis`,`angleAxis`],n.defaultOption={z:0,center:[`50%`,`50%`],radius:`80%`},n}($),SP=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getCoordSysModel=function(){return this.getReferringComponents(`polar`,Mo).models[0]},n.type=`polarAxis`,n}($);ne(SP,ew);var CP=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`angleAxis`,n}(SP),wP=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`radiusAxis`,n}(SP),TP=function(e){t(n,e);function n(t,n){return e.call(this,`radius`,t,n)||this}return n.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},n}(Jw);TP.prototype.dataToRadius=Jw.prototype.dataToCoord,TP.prototype.radiusToData=Jw.prototype.coordToData;var EP=Oo(),DP=function(e){t(n,e);function n(t,n){return e.call(this,`angle`,t,n||[0,360])||this}return n.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)[this.dim===`radius`?0:1]},n.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=e.dataToCoord(a+1)-e.dataToCoord(a),s=Math.abs(o),c=Ji(a==null?``:a+``,t.getFont(),`center`,`top`),l=Math.max(c.height,7)/s;isNaN(l)&&(l=1/0);var u=Math.max(0,Math.floor(l)),d=EP(e.model),f=d.lastAutoInterval,p=d.lastTickCount;return f!=null&&p!=null&&Math.abs(f-u)<=1&&Math.abs(p-i)<=1&&f>u?u=f:(d.lastTickCount=i,d.lastAutoInterval=u),u},n}(Jw);DP.prototype.dataToAngle=Jw.prototype.dataToCoord,DP.prototype.angleToData=Jw.prototype.coordToData;var OP=[`radius`,`angle`],kP=function(){function e(e){this.dimensions=OP,this.type=`polar`,this.cx=0,this.cy=0,this._radiusAxis=new TP,this._angleAxis=new DP,this.axisPointerEnabled=!0,this.name=e||``,this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t=`_`+e+`Axis`;return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=e!=null&&e!==`auto`?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var c=Math.atan2(-n,t)/Math.PI*180,l=c<a?1:-1;c<a||c>o;)c+=l*360;return[s,c]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180,i=1e-4;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,a=n*n+r*r,o=this.r,s=this.r0;return o!==s&&a-i<=o*o&&a+i>=s*s}}},e.prototype.convertToPixel=function(e,t,n){return AP(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return AP(t)===this?this.pointToData(n):null},e}();function AP(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function jP(e,t,n){var r=t.get(`center`),i=n.getWidth(),a=n.getHeight();e.cx=X(r[0],i),e.cy=X(r[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,c=t.get(`radius`);c==null?c=[0,`100%`]:B(c)||(c=[0,c]);var l=[X(c[0],s),X(c[1],s)];o.inverse?o.setExtent(l[1],l[0]):o.setExtent(l[0],l[1])}function MP(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(e){if(e.coordinateSystem===n){var t=e.getData();F(QC(t,`radius`),function(e){i.scale.unionExtentFromData(t,e)}),F(QC(t,`angle`),function(e){r.scale.unionExtentFromData(t,e)})}}),UC(r.scale,r.model),UC(i.scale,i.model),r.type===`category`&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function NP(e){return e.mainType===`angleAxis`}function PP(e,t){var n;if(e.type=t.get(`type`),e.scale=WC(t),e.onBand=t.get(`boundaryGap`)&&e.type===`category`,e.inverse=t.get(`inverse`),NP(t)){e.inverse=e.inverse!==t.get(`clockwise`);var r=t.get(`startAngle`),i=(n=t.get(`endAngle`))==null?r+(e.inverse?-360:360):n;e.setExtent(r,i)}t.axis=e,e.model=t}var FP={dimensions:OP,create:function(e,t){var n=[];return e.eachComponent(`polar`,function(e,r){var i=new kP(r+``);i.update=MP;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=e.findAxisModel(`radiusAxis`),c=e.findAxisModel(`angleAxis`);PP(a,s),PP(o,c),jP(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e}),e.eachSeries(function(e){e.get(`coordinateSystem`)===`polar`&&(e.coordinateSystem=e.getReferringComponents(`polar`,Mo).models[0].coordinateSystem)}),n}},IP=[`axisLine`,`axisLabel`,`axisTick`,`minorTick`,`splitLine`,`minorSplitLine`,`splitArea`];function LP(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function RP(e){return+!e.getRadiusAxis().inverse}function zP(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var BP=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.axisPointerClass=`PolarAxisPointer`,t}return n.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords(),o=n.getMinorTicksCoords(),s=I(n.getViewLabels(),function(e){e=O(e);var t=n.scale,r=t.type===`ordinal`?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e});zP(s),zP(a),F(IP,function(t){e.get([t,`show`])&&(!n.scale.isBlank()||t===`axisLine`)&&VP[t](this.group,e,r,a,o,i,s)},this)}},n.type=`angleAxis`,n}(MO),VP={axisLine:function(e,t,n,r,i,a){var o=t.getModel([`axisLine`,`lineStyle`]),s=n.getAngleAxis(),c=Math.PI/180,l=s.getExtent(),u=RP(n),d=+!u,f,p=Math.abs(l[1]-l[0])===360?`Circle`:`Arc`;f=a[d]===0?new Xd[p]({shape:{cx:n.cx,cy:n.cy,r:a[u],startAngle:-l[0]*c,endAngle:-l[1]*c,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new fd({shape:{cx:n.cx,cy:n.cy,r:a[u],r0:a[d]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,n,r,i,a){var o=t.getModel(`axisTick`),s=(o.get(`inside`)?-1:1)*o.get(`length`),c=a[RP(n)],l=I(r,function(e){return new xd({shape:LP(n,[c,c+s],e.coord)})});e.add(lf(l,{style:M(o.getModel(`lineStyle`).getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])})}))},minorTick:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`axisTick`),s=t.getModel(`minorTick`),c=(o.get(`inside`)?-1:1)*s.get(`length`),l=a[RP(n)],u=[],d=0;d<i.length;d++)for(var f=0;f<i[d].length;f++)u.push(new xd({shape:LP(n,[l,l+c],i[d][f].coord)}));e.add(lf(u,{style:M(s.getModel(`lineStyle`).getLineStyle(),M(o.getLineStyle(),{stroke:t.get([`axisLine`,`lineStyle`,`color`])}))}))}},axisLabel:function(e,t,n,r,i,a,o){var s=t.getCategories(!0),c=t.getModel(`axisLabel`),l=c.get(`margin`),u=t.get(`triggerEvent`);F(o,function(r,i){var o=c,d=r.tickValue,f=a[RP(n)],p=n.coordToPoint([f+l,r.coord]),m=n.cx,h=n.cy,g=Math.abs(p[0]-m)/f<.3?`center`:p[0]>m?`left`:`right`,_=Math.abs(p[1]-h)/f<.3?`middle`:p[1]>h?`top`:`bottom`;if(s&&s[d]){var v=s[d];U(v)&&v.textStyle&&(o=new rp(v.textStyle,c,c.ecModel))}var y=new $c({silent:lO.isLabelSilent(t),style:Ff(o,{x:p[0],y:p[1],fill:o.getTextColor()||t.get([`axisLine`,`lineStyle`,`color`]),text:r.formattedLabel,align:g,verticalAlign:_})});if(e.add(y),u){var b=lO.makeAxisEventDataBase(t);b.targetType=`axisLabel`,b.value=r.rawLabel,Q(y).eventData=b}},this)},splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=0;u<r.length;u++){var d=c++%s.length;l[d]=l[d]||[],l[d].push(new xd({shape:LP(n,a,r[u].coord)}))}for(var u=0;u<l.length;u++)e.add(lf(l[u],{style:M({stroke:s[u%s.length]},o.getLineStyle()),silent:!0,z:t.get(`z`)}))},minorSplitLine:function(e,t,n,r,i,a){if(i.length){for(var o=t.getModel(`minorSplitLine`).getModel(`lineStyle`),s=[],c=0;c<i.length;c++)for(var l=0;l<i[c].length;l++)s.push(new xd({shape:LP(n,a,i[c][l].coord)}));e.add(lf(s,{style:o.getLineStyle(),silent:!0,z:t.get(`z`)}))}},splitArea:function(e,t,n,r,i,a){if(r.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=Math.PI/180,d=-r[0].coord*u,f=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),m=t.get(`clockwise`),h=1,g=r.length;h<=g;h++){var _=h===g?r[0].coord:r[h].coord,v=c++%s.length;l[v]=l[v]||[],l[v].push(new ud({shape:{cx:n.cx,cy:n.cy,r0:f,r:p,startAngle:d,endAngle:-_*u,clockwise:m},silent:!0})),d=-_*u}for(var h=0;h<l.length;h++)e.add(lf(l[h],{style:M({fill:s[h%s.length]},o.getAreaStyle()),silent:!0}))}}},HP=[`axisLine`,`axisTickLabel`,`axisName`],UP=[`splitLine`,`splitArea`,`minorSplitLine`],WP=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.axisPointerClass=`PolarAxisPointer`,t}return n.prototype.render=function(e,t){if(this.group.removeAll(),e.get(`show`)){var n=this._axisGroup,r=this._axisGroup=new Y;this.group.add(r);var i=e.axis,a=i.polar,o=a.getAngleAxis(),s=i.getTicksCoords(),c=i.getMinorTicksCoords(),l=o.getExtent()[0],u=i.getExtent(),d=new lO(e,KP(a,e,l));F(HP,d.add,d),r.add(d.getGroup()),yf(n,r,e),F(UP,function(t){e.get([t,`show`])&&!i.scale.isBlank()&&GP[t](this.group,e,a,l,u,s,c)},this)}},n.type=`radiusAxis`,n}(MO),GP={splitLine:function(e,t,n,r,i,a){var o=t.getModel(`splitLine`).getModel(`lineStyle`),s=o.get(`color`),c=0,l=n.getAngleAxis(),u=Math.PI/180,d=l.getExtent(),f=Math.abs(d[1]-d[0])===360?`Circle`:`Arc`;s=s instanceof Array?s:[s];for(var p=[],m=0;m<a.length;m++){var h=c++%s.length;p[h]=p[h]||[],p[h].push(new Xd[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[m].coord,0),startAngle:-d[0]*u,endAngle:-d[1]*u,clockwise:l.inverse}}))}for(var m=0;m<p.length;m++)e.add(lf(p[m],{style:M({stroke:s[m%s.length],fill:null},o.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,a,o){if(o.length){for(var s=t.getModel(`minorSplitLine`).getModel(`lineStyle`),c=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)c.push(new Gu({shape:{cx:n.cx,cy:n.cy,r:o[l][u].coord}}));e.add(lf(c,{style:M({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,a){if(a.length){var o=t.getModel(`splitArea`).getModel(`areaStyle`),s=o.get(`color`),c=0;s=s instanceof Array?s:[s];for(var l=[],u=a[0].coord,d=1;d<a.length;d++){var f=c++%s.length;l[f]=l[f]||[],l[f].push(new ud({shape:{cx:n.cx,cy:n.cy,r0:u,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),u=a[d].coord}for(var d=0;d<l.length;d++)e.add(lf(l[d],{style:M({fill:s[d%s.length]},o.getAreaStyle()),silent:!0}))}}};function KP(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel(`axisLabel`).get(`rotate`),z2:1}}function qP(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}function JP(e,t){return t.dim+e.model.componentIndex}function YP(e,t,n){var r={},i=XP(ie(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&e.coordinateSystem.type===`polar`}));t.eachSeriesByType(e,function(e){if(e.coordinateSystem.type===`polar`){var t=e.getData(),n=e.coordinateSystem,a=n.getBaseAxis(),o=JP(n,a),s=qP(e),c=i[o][s],l=c.offset,u=c.width,d=n.getOtherAxis(a),f=e.coordinateSystem.cx,p=e.coordinateSystem.cy,m=e.get(`barMinHeight`)||0,h=e.get(`barMinAngle`)||0;r[s]=r[s]||[];for(var g=t.mapDimension(d.dim),_=t.mapDimension(a.dim),v=AS(t,g),y=a.dim!==`radius`||!e.get(`roundCap`,!0),b=d.model.get(`startValue`),x=d.dataToCoord(b||0),S=0,C=t.count();S<C;S++){var w=t.get(g,S),T=t.get(_,S),E=w>=0?`p`:`n`,D=x;v&&(r[s][T]||(r[s][T]={p:x,n:x}),D=r[s][T][E]);var O=void 0,k=void 0,A=void 0,j=void 0;if(d.dim===`radius`){var M=d.dataToCoord(w)-x,ee=a.dataToCoord(T);Math.abs(M)<m&&(M=(M<0?-1:1)*m),O=D,k=D+M,A=ee-l,j=A-u,v&&(r[s][T][E]=k)}else{var N=d.dataToCoord(w,y)-x,te=a.dataToCoord(T);Math.abs(N)<h&&(N=(N<0?-1:1)*h),O=te+l,k=O+u,A=D,j=D+N,v&&(r[s][T][E]=j)}t.setItemLayout(S,{cx:f,cy:p,r0:O,r:k,startAngle:-A*Math.PI/180,endAngle:-j*Math.PI/180,clockwise:A>=j})}}})}function XP(e){var t={};F(e,function(e,n){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),o=JP(i,a),s=a.getExtent(),c=a.type===`category`?a.getBandWidth():Math.abs(s[1]-s[0])/r.count(),l=t[o]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:`20%`,gap:`30%`,stacks:{}},u=l.stacks;t[o]=l;var d=qP(e);u[d]||l.autoWidthCount++,u[d]=u[d]||{width:0,maxWidth:0};var f=X(e.get(`barWidth`),c),p=X(e.get(`barMaxWidth`),c),m=e.get(`barGap`),h=e.get(`barCategoryGap`);f&&!u[d].width&&(f=Math.min(l.remainedWidth,f),u[d].width=f,l.remainedWidth-=f),p&&(u[d].maxWidth=p),m!=null&&(l.gap=m),h!=null&&(l.categoryGap=h)});var n={};return F(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=X(e.categoryGap,i),o=X(e.gap,1),s=e.remainedWidth,c=e.autoWidthCount,l=(s-a)/(c+(c-1)*o);l=Math.max(l,0),F(r,function(e,t){var n=e.maxWidth;n&&n<l&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,c--)}),l=(s-a)/(c+(c-1)*o),l=Math.max(l,0);var u=0,d;F(r,function(e,t){e.width||(e.width=l),d=e,u+=e.width*(1+o)}),d&&(u-=d.width*o);var f=-u/2;F(r,function(e,r){n[t][r]=n[t][r]||{offset:f,width:e.width},f+=e.width*(1+o)})}),n}var ZP={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},QP={splitNumber:5},$P=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`polar`,n}(H_);function eF(e){lw(gP),MO.registerAxisPointerClass(`PolarAxisPointer`,vP),e.registerCoordinateSystem(`polar`,FP),e.registerComponentModel(xP),e.registerComponentView($P),GD(e,`angle`,CP,ZP),GD(e,`radius`,wP,QP),e.registerComponentView(BP),e.registerComponentView(WP),e.registerLayout(z(YP,`bar`))}function tF(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function nF(e,t){var n;return F(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}function rF(e,t,n){var r=j({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(k(i,r,!0),bm(i,r,{ignoreSize:!0}),Sm(n,i),oF(n,i),oF(n,i,`shape`),oF(n,i,`style`),oF(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}var iF=[`transition`,`enterFrom`,`leaveTo`],aF=iF.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function oF(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?iF:aF,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function sF(e,t){if(e&&(e.hv=t.hv=[nF(t,[`left`,`right`]),nF(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var cF=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.preventAutoZ=!0,t}return n.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},n.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=uo(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];F(o,function(e,t){var n=e.newOption;n&&(s.push(n),tF(e,n),rF(i,t,n),sF(i[t],n))},this),n.elements=ie(i,function(e){return e&&delete e.$action,e!=null})},n.prototype._flatten=function(e,t,n){F(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},n.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},n.type=`graphic`,n.defaultOption={elements:[]},n}($),lF={path:null,compoundPath:null,group:Y,image:Vc,text:$c},uF=Oo(),dF=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.init=function(){this._elMap=G()},n.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},n.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);F(t,function(t){var o=bo(t.id,null),s=o==null?null:n.get(o),c=bo(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&XM(d,u,!!p,!!f)){var m=ZM(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=gF(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=!s,b=s;y?b=pF(o,l,t.type,n):(b&&(uF(b).isNew=!1),SN(b)),b&&(iN(b,h,e,{isInit:y}),hF(b,t,i,a))}else if(v){mF(s,t,n,e);var x=pF(o,l,t.type,n);x&&(iN(x,h,e,{isInit:!0}),hF(x,t,i,a))}else g===`remove`&&(aN(s,t),mF(s,t,n,e));var S=n.get(o);if(S&&f)if(_){var C=S.getTextContent();C?C.attr(f):S.setTextContent(new $c(f))}else v&&S.setTextContent(new $c(f));if(S){var w=t.clipPath;if(w){var T=w.type,E=void 0,y=!1;if(_){var D=S.getClipPath();y=!D||uF(D).type!==T,E=y?fF(T):D}else v&&(y=!0,E=fF(T));S.setClipPath(E),iN(E,w,e,{isInit:y}),CN(E,w.keyframeAnimation,e)}var O=uF(S);S.setTextConfig(p),O.option=t,_F(S,e,t),Df({el:S,componentModel:e,itemName:S.name,itemTooltipOption:t.tooltip}),CN(S,t.keyframeAnimation,e)}})}},n.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++){var l=n[c],u=bo(l.id,null),d=u==null?null:i.get(u);if(!(!d||!d.isGroup)){var f=d.parent,p=f===r,m=uF(d),h=uF(f);m.width=X(m.option.width,p?a:h.width)||0,m.height=X(m.option.height,p?o:h.height)||0}}for(var c=n.length-1;c>=0;c--){var l=n[c],u=bo(l.id,null),d=u==null?null:i.get(u);if(d){var f=d.parent,h=uF(f),g=f===r?{width:a,height:o}:{width:h.width,height:h.height},_={},v=vm(d,l,g,null,{hv:l.hv,boundingMode:l.bounding},_);if(!uF(d).isNew&&v){for(var y=l.transition,b={},x=0;x<s.length;x++){var S=s[x],C=_[S];y&&(sN(y)||N(y,S)>=0)?b[S]=C:d[S]=C}Hd(d,b,e,0)}else d.attr(_)}}},n.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){mF(n,uF(n).option,t,e._lastGraphicModel)}),this._elMap=G()},n.prototype.dispose=function(){this._clear()},n.type=`graphic`,n}(H_);function fF(e){var t=new(K(lF,e)?lF[e]:af(e))({});return uF(t).type=e,t}function pF(e,t,n,r){var i=fF(n);return t.add(i),r.set(e,i),uF(i).id=e,uF(i).isNew=!0,i}function mF(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){mF(e,t,n,r)}),oN(e,t,r),n.removeKey(uF(e).id))}function hF(e,t,n,r){e.isGroup||F([[`cursor`,Os.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];K(t,r)?e[r]=W(t[r],n[1]):e[r]==null&&(e[r]=n[1])}),F(L(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=V(r)?r:null}}),K(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function gF(e){return e=j({},e),F([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(pm),function(t){delete e[t]}),e}function _F(e,t,n){var r=Q(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Q(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function vF(e){e.registerComponentModel(cF),e.registerComponentView(dF),e.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var yF=[`x`,`y`,`radius`,`angle`,`single`],bF=[`cartesian2d`,`polar`,`singleAxis`];function xF(e){return N(bF,e.get(`coordinateSystem`))>=0}function SF(e){return e+`Axis`}function CF(e,t){var n=G(),r=[],i=G();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function wF(e){var t=e.ecModel,n={infoList:[],infoMap:G()};return e.eachTargetAxis(function(e,r){var i=t.getComponent(SF(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}}),n}var TF=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),EF=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=[`percent`,`percent`],t}return n.prototype.init=function(e,t,n){var r=DF(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},n.prototype.mergeOption=function(e){var t=DF(e);k(this.option,e,!0),k(this.settledOption,t,!0),this._doInit(t)},n.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;F([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},n.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=G();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},n.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return F(yF,function(n){var r=this.getReferringComponents(SF(n),No);if(r.specified){t=!0;var i=new TF;F(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},n.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new TF;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,Mo).models[0];o&&F(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,Mo).models[0]&&a.add(e.componentIndex)})}}}r&&F(yF,function(t){if(r){var i=n.findComponents({mainType:SF(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new TF;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},n.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},n.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},n.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);F([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},n.prototype.noTarget=function(){return this._noTarget},n.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e==null&&(e=this.ecModel.getComponent(SF(t),n))},this),e},n.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){F(n.indexList,function(n){e.call(t,r,n)})})},n.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},n.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(SF(e),t)},n.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;F([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},n.prototype.setCalculatedRange=function(e){var t=this.option;F([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},n.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},n.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,t).getDataValueWindow()},n.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||(t=s)}return t},n.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},n.prototype.getOrient=function(){return this._orient},n.type=`dataZoom`,n.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],n.defaultOption={z:4,filterMode:`filter`,start:0,end:100},n}($);function DF(e){var t={};return F([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var OF=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`dataZoom.select`,n}(EF),kF=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},n.type=`dataZoom`,n}(H_),AF=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`dataZoom.select`,n}(kF),jF=F,MF=Na,NF=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(xF(t)){var n=SF(this._dimName),r=t.getReferringComponents(n,Mo).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return O(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),i=[0,100],a=[],o=[],s;jF([`start`,`end`],function(c,l){var u=e[c],d=e[c+`Value`];r[l]===`percent`?(u==null&&(u=i[l]),d=n.parse(ja(u,i,t))):(s=!0,d=d==null?t[l]:n.parse(d),u=ja(d,t,i)),o[l]=d==null||isNaN(d)?t[l]:d,a[l]=u==null||isNaN(u)?i[l]:u}),MF(o),MF(a);var c=this._minMaxSpan;s?l(o,a,t,i,!1):l(a,o,i,t,!0);function l(e,t,r,i,a){var o=a?`Span`:`ValueSpan`;Oj(0,e,r,`all`,c[`min`+o],c[`max`+o]);for(var s=0;s<2;s++)t[s]=ja(e[s],r,i,!0),a&&(t[s]=n.parse(t[s]))}return{valueWindow:o,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=PF(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._valueWindow;if(i===`none`)return;jF(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=I(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else jF(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});jF(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;jF([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=ja(i,[0,100],n,!0)-n[0]):i=ja(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Ia(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax(`min`,+n[0].toFixed(r)),t[1]!==100&&i.setDeterminedMinMax(`max`,+n[1].toFixed(r)),i.freeze()}},e}();function PF(e,t,n){var r=[1/0,-1/0];jF(n,function(e){$C(r,e.getData(),t)});var i=e.getAxisModel(),a=zC(i.axis.scale,i,r).calculate();return[a.min,a.max]}var FF={getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(SF(r),i),n)})})}t(function(e,t,n,r){n.__dzAxisProxy=null});var n=[];t(function(t,r,i,a){i.__dzAxisProxy||(i.__dzAxisProxy=new NF(t,r,a,e),n.push(i.__dzAxisProxy))});var r=G();return F(n,function(e){F(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){e.eachTargetAxis(function(t,n){e.getAxisProxy(t,n).reset(e)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};function IF(e){e.registerAction(`dataZoom`,function(e,t){F(CF(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var LF=!1;function RF(e){LF||(LF=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,FF),IF(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`}))}function zF(e){e.registerComponentModel(OF),e.registerComponentView(AF),RF(e)}var BF=function(){function e(){}return e}(),VF={};function HF(e,t){VF[e]=t}function UF(e){return VF[e]}var WF=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;F(this.option.feature,function(e,n){var r=UF(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),k(e,r.defaultOption))})},n.type=`toolbox`,n.layoutMode={type:`box`,ignoreSize:!0},n.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:`#ccc`,borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:`#666`,color:`none`},emphasis:{iconStyle:{borderColor:`#3E98C5`}},tooltip:{show:!1,position:`bottom`}},n}($);function GF(e,t,n){var r=t.getBoxLayoutParams(),i=t.get(`padding`),a={width:n.getWidth(),height:n.getHeight()},o=_m(r,a,i);gm(t.get(`orient`),e,t.get(`itemGap`),o.width,o.height),vm(e,r,a,i)}function KF(e,t){var n=nm(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),e=new Yc({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1}),e}var qF=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||(this._features={}),l=[];F(s,function(e,t){l.push(t)}),new Wx(this._featureNames||[],l).add(u).update(u).remove(z(u,null)).execute(),this._featureNames=l;function u(i,a){var o=l[i],u=l[a],f=s[o],p=new rp(f,e,e.ecModel),m;if(r&&r.newTitle!=null&&r.featureName===o&&(f.title=r.newTitle),o&&!u){if(JF(o))m={onclick:p.option.onclick,featureName:o};else{var h=UF(o);if(!h)return;m=new h}c[o]=m}else if(m=c[u],!m)return;m.uid=ap(`toolbox-feature`),m.model=p,m.ecModel=t,m.api=n;var g=m instanceof BF;if(!o&&u){g&&m.dispose&&m.dispose(t,n);return}if(!p.get(`show`)||g&&m.unusable){g&&m.remove&&m.remove(t,n);return}d(p,m,o),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Wl:Gl)(r[e])},m instanceof BF&&m.render&&m.render(p,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof BF&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;H(d)?(p={},p[c]=d):p=d,H(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};F(p,function(c,d){var f=Sf(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new $c({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:Uf({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),Df({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||`#000`,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Wl:Gl)(f),i.add(f),f.on(`click`,R(s.onclick,s,t,n,d)),h[d]=f})}GF(i,e,n),i.add(KF(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||(r.textConfig={}),s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!V(c)&&t){var l=c.style||(c.style={}),u=Ji(t,$c.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},n.prototype.updateView=function(e,t,n,r){F(this._features,function(e){e instanceof BF&&e.updateView&&e.updateView(e.model,t,n,r)})},n.prototype.remove=function(e,t){F(this._features,function(n){n instanceof BF&&n.remove&&n.remove(e,t)}),this.group.removeAll()},n.prototype.dispose=function(e,t){F(this._features,function(n){n instanceof BF&&n.dispose&&n.dispose(e,t)})},n.type=`toolbox`,n}(H_);function JF(e){return e.indexOf(`my`)===0}var YF=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.onclick=function(e,t){var n=this.model,i=n.get(`name`)||e.get(`title.0.text`)||`echarts`,a=t.getZr().painter.getType()===`svg`,o=a?`svg`:n.get(`type`,!0)||`png`,s=t.getConnectedDataURL({type:o,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||`#fff`,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),c=r.browser;if(typeof MouseEvent==`function`&&(c.newEdge||!c.ie&&!c.edge)){var l=document.createElement(`a`);l.download=i+`.`+o,l.target=`_blank`,l.href=s;var u=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||a){var d=s.split(`,`),f=d[0].indexOf(`base64`)>-1,p=a?decodeURIComponent(d[1]):d[1];f&&(p=window.atob(p));var m=i+`.`+o;if(window.navigator.msSaveOrOpenBlob){for(var h=p.length,g=new Uint8Array(h);h--;)g[h]=p.charCodeAt(h);var _=new Blob([g]);window.navigator.msSaveOrOpenBlob(_,m)}else{var v=document.createElement(`iframe`);document.body.appendChild(v);var y=v.contentWindow,b=y.document;b.open(`image/svg+xml`,`replace`),b.write(p),b.close(),y.focus(),b.execCommand(`SaveAs`,!0,m),document.body.removeChild(v)}}else{var x=n.get(`lang`),S=`<body style="margin:0;"><img src="`+s+`" style="max-width:100%;" title="`+(x&&x[0]||``)+`" /></body>`,C=window.open();C.document.write(S),C.document.title=i}},n.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:`#fff`,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},n}(BF),XF=`__ec_magicType_stack__`,ZF=[[`line`,`bar`],[`stack`]],QF=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return F(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},n.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},n.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if($F[n]){var a={series:[]};F(ZF,function(e){N(e,n)>=0&&F(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=$F[n](t,i,e,r);o&&(M(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,Mo).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=k({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},n}(BF),$F={line:function(e,t,n,r){if(e===`bar`)return k({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return k({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===XF;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),k({id:t,stack:i?``:XF},r.get([`option`,`stack`])||{},!0)}};kx({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var eI=Array(60).join(`-`),tI=` `;function nI(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=a.dim+`_`+a.index;t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function rI(e){var t=[];return F(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(I(e.series,function(e){return e.name})),o=[r.model.getCategories()];F(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(tI)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(tI))}t.push(s.join(`
`))}),t.join(`
`+eI+`
`)}function iI(e){return I(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+tI:``)+r.join(tI))}),n.join(`
`)}).join(`
`+eI+`
`)}function aI(e){var t=nI(e);return{value:ie([rI(t.seriesGroupByCategoryAxis),iI(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
`+eI+`
`),meta:t.meta}}function oI(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function sI(e){if(e.slice(0,e.indexOf(`
`)).indexOf(tI)>=0)return!0}var cI=RegExp(`[`+tI+`]+`,`g`);function lI(e){for(var t=e.split(/\n+/g),n=oI(t.shift()).split(cI),r=[],i=I(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=oI(t[a]).split(cI);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function uI(e){for(var t=e.split(/\n+/g),n=oI(t.shift()),r=[],i=0;i<t.length;i++){var a=oI(t[i]);if(a){var o=a.split(cI),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function dI(e,t){var n=e.split(RegExp(`
*`+eI+`
*`,`g`)),r={series:[]};return F(n,function(e,n){if(sI(e)){var i=lI(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=uI(e);r.series.push(i)}}),r}var fI=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||`#fff`;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=aI(e);if(V(l)){var f=l(t.getOption());H(f)?s.innerHTML=f:de(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}At(_,`click`,b),At(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){b();return}var e;try{e=V(u)?u(s,t.getOption()):dI(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},n.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},n.prototype.dispose=function(e,t){this.remove(e,t)},n.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:`#fff`,textColor:`#000`,textareaColor:`#fff`,textareaBorderColor:`#333`,buttonColor:`#c23531`,buttonTextColor:`#fff`}},n}(BF);function pI(e,t){return I(e,function(e,n){var r=t&&t[n];if(U(r)&&!B(r)){U(e)&&!B(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=M(e,r),i&&delete e.name,e}else return e})}kx({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];F(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(j({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:pI(e.data,i)})}}),t.mergeOption(M({series:n},e.newOption))});var mI=F,hI=Oo();function gI(e,t){var n=bI(e);mI(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function _I(e){var t=bI(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return mI(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function vI(e){hI(e).snapshots=null}function yI(e){return bI(e).length}function bI(e){var t=hI(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var xI=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.onclick=function(e,t){vI(e),t.dispatchAction({type:`restore`,from:this.uid})},n.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},n}(BF);kx({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var SI=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],CI=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=TI(t,e);F(EI,function(e,t){(!n||!n.include||N(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=kI[e.brushType](0,n,t);e.__rangeOffset={offset:jI[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){F(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&F(r.coordSyses,function(r){n(e,kI[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){F(e,function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=kI[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?jI[e.brushType](r.values,i.offset,NI(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return I(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:EM(r),isTargetByCursor:OM(r,e,n.coordSysModel),getLinearBrushOtherExtent:DM(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&N(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=TI(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<DI.length;s++)if(DI[s](r,a))return a}return!0},e}();function wI(e){return e[0]>e[1]&&e.reverse(),e}function TI(e,t){return Ao(e,t,{includeMainTypes:SI})}var EI={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=G(),o={},s={};!n&&!r&&!i||(F(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),F(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),F(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];F(i.getCartesians(),function(e,t){(N(n,e.getAxis(`x`).model)>=0||N(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:OI.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){F(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:OI.geo})})}},DI=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],OI={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(mf(e)),t}},kI={lineX:z(AI,0),lineY:z(AI,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[wI([i[0],a[0]]),wI([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:I(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function AI(e,t,n,r){var i=n.getAxis([`x`,`y`][e]),a=wI(I([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var jI={lineX:z(MI,0),lineY:z(MI,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return I(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function MI(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function NI(e,t){var n=PI(e),r=PI(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function PI(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var FI=F,II=Co(`toolbox-dataZoom_`),LI=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new Uj(n.getZr()),this._brushController.on(`brush`,R(this._onBrush,this)).mount()),VI(e,t,this,r,n),BI(e,t)},n.prototype.onclick=function(e,t,n){RI[n].call(this)},n.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},n.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},n.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new CI(zI(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=e.brushType;r===`rect`?(i(`x`,n,t[0]),i(`y`,n,t[1])):i({lineX:`x`,lineY:`y`}[r],n,t)}}),gI(r,n),this._dispatchZoomAction(n);function i(e,t,i){var o=t.getAxis(e),s=o.model,c=a(e,s,r),l=c.findRepresentativeAxisProxy(s).getMinMaxSpan();(l.minValueSpan!=null||l.maxValueSpan!=null)&&(i=Oj(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),c&&(n[c.id]={dataZoomId:c.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},n.prototype._dispatchZoomAction=function(e){var t=[];FI(e,function(e,n){t.push(O(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},n.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:`rgba(210,219,238,0.2)`}}},n}(BF),RI={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(_I(this.ecModel))}};function zI(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function BI(e,t){e.setIconStatus(`back`,yI(t)>1?`emphasis`:`normal`)}function VI(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new CI(zI(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}Km(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=Ao(e,zI(r));FI(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),FI(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:II+t+a};o[n]=a,i.push(o)}return i});function HI(e){e.registerComponentModel(WF),e.registerComponentView(qF),HF(`saveAsImage`,YF),HF(`magicType`,QF),HF(`dataView`,fI),HF(`dataZoom`,LI),HF(`restore`,xI),lw(zF)}var UI=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`tooltip`,n.dependencies=[`axisPointer`],n.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click`,alwaysShowContent:!1,displayMode:`single`,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:`#fff`,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:`#999`,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:`#666`,fontSize:14}},n}($);function WI(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function GI(e){if(r.domSupported){for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}}var KI=GI([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),qI=GI([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function JI(e,t){if(!e)return t;t=tm(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function YI(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var XI=JI(qI,`transition`),ZI=JI(KI,`transform`),QI=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(r.transform3dSupported?`will-change:transform;`:``);function $I(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function eL(e,t,n){if(!H(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=um(t);var a=$I(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=ZI+`:`,l;N([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function tL(e,t){var n=`cubic-bezier(0.23,1,0.32,1)`,i=` `+e/2+`s `+n,a=`opacity`+i+`,visibility`+i;return t||(i=` `+e+`s `+n,a+=r.transformSupported?`,`+ZI+i:`,left`+i+`,top`+i),XI+`:`+a}function nL(e,t,n){var i=e.toFixed(0)+`px`,a=t.toFixed(0)+`px`;if(!r.transformSupported)return n?`top:`+a+`;left:`+i+`;`:[[`top`,a],[`left`,i]];var o=r.transform3dSupported,s=`translate`+(o?`3d`:``)+`(`+i+`,`+a+(o?`,0`:``)+`)`;return n?`top:0;left:0;`+ZI+`:`+s+`;`:[[`top`,0],[`left`,0],[KI,s]]}function rL(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=W(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),F([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function iL(e,t,n){var r=[],i=e.get(`transitionDuration`),a=e.get(`backgroundColor`),o=e.get(`shadowBlur`),s=e.get(`shadowColor`),c=e.get(`shadowOffsetX`),l=e.get(`shadowOffsetY`),u=e.getModel(`textStyle`),d=E_(e,`html`),f=c+`px `+l+`px `+o+`px `+s;return r.push(`box-shadow:`+f),t&&i&&r.push(tL(i,n)),a&&r.push(`background-color:`+a),F([`width`,`color`,`radius`],function(t){var n=`border-`+t,i=tm(n),a=e.get(i);a!=null&&r.push(n+`:`+a+(t===`color`?``:`px`))}),r.push(rL(u)),d!=null&&r.push(`padding:`+nm(d).join(`px `)+`px`),r.join(`;`)+`;`}function aL(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&mt(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var oL=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,r.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=t.appendTo,o=a&&(H(a)?document.querySelector(a):de(a)?a:V(a)&&a(e.getDom()));aL(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!s._enterable){var t=i.handler;Ot(i.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=YI(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=QI+iL(e,!this._firstShow,this._longHide)+nL(i[0],i[1],!0)+(`border-color:`+um(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(H(i)&&n.get(`trigger`)===`item`&&!WI(n)&&(o=eL(n,r,i)),H(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s<e.length;s++)de(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(aL(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;F(nL(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility=`hidden`,t.opacity=`0`,r.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},e}(),sL=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),uL(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;U(e)&&to(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new $c({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:E_(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),F([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),F([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=lL(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;uL(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=cL(i.borderWidth||0),o=lL(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function cL(e){return Math.max(0,e)}function lL(e){var t=cL(e.shadowBlur||0),n=cL(e.shadowOffsetX||0),r=cL(e.shadowOffsetY||0);return{left:cL(t-n),right:cL(t+n),top:cL(t-r),bottom:cL(t+r)}}function uL(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var dL=new Yc({shape:{x:-1,y:-1,width:2,height:2}}),fL=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.init=function(e,t){if(!(r.node||!t.getDom())){var n=e.getComponent(`tooltip`),i=this._renderMode=Lo(n.get(`renderMode`));this._tooltipContent=i===`richText`?new sL(t):new oL(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},n.prototype.render=function(e,t,n){if(!(r.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?nv(this,`_updatePosition`,50,`fixRate`):rv(this,`_updatePosition`)}},n.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);YN(`itemTooltip`,this._api,R(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},n.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},n.prototype.manuallyShowTip=function(e,t,n,i){if(!(i.from===this.uid||r.node||!n.getDom())){var a=mL(i,n);this._ticket=``;var o=i.dataByCoordSys,s=yL(i,t,n);if(s){var c=s.el.getBoundingRect().clone();c.applyTransform(s.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:s.el,position:i.position,positionDefault:`bottom`},a)}else if(i.tooltip&&i.x!=null&&i.y!=null){var l=dL;l.x=i.x,l.y=i.y,l.update(),Q(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},a)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},a);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=rP(i,t),d=u.point[0],f=u.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:u.el,position:i.position,positionDefault:`bottom`},a)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},a))}},n.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(mL(r,n))},n.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(!(i==null||a==null||o==null)){var s=t.getSeriesByIndex(i);if(s&&pL([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},n.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Q(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;Jv(n,function(e){if(Q(e).dataIndex!=null)return i=e,!0;if(Q(e).tooltipConfig!=null)return a=e,!0},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},n.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=R(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},n.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=pL([t.tooltipOption],r),o=this._renderMode,s=[],c=f_(`section`,{blocks:[],noHeader:!0}),l=[],u=new D_;F(e,function(e){F(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=IN(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=f_(`section`,{header:a,noHeader:!xe(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),F(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=qC(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,um(m.color),o);var h=Sg(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=pL([f],r).get(`valueFormatter`);d.blocks.push(_?j({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=v_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},n.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Q(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=pL([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(!(m!=null&&m!==`item`)){var h=s.getDataParams(c,l),g=new D_;h.marker=g.makeTooltipMarker(`item`,um(h.color),d);var _=Sg(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?v_(y?j({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},n.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Q(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(H(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=O(a),a.content=xt(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=pL(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new D_;this._showOrMove(d,function(){var n=O(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},n.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o=o||e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`)).color;if(u)if(H(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Fp(m.axisValue,d,p)),d=om(d,n,!0)}else if(V(u)){var g=R(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},n.prototype._getNearestPoint=function(e,t,n,r){if(n===`axis`||B(t))return{color:r||(this._renderMode===`html`?`#fff`:`none`)};if(!B(t))return{color:r||t.color||t.borderColor}},n.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t=t||e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),V(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=X(t[0],s),r=X(t[1],c);else if(U(t)){var p=t;p.width=l[0],p.height=l[1];var m=_m(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(H(t)&&o){var h=_L(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=hL(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=vL(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=vL(d)?l[1]/2:d===`bottom`?l[1]:0),WI(e)){var h=gL(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},n.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&F(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i=i&&o.length===s.length,i&&F(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&F(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&F(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},n.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:`hideTip`,from:this.uid})},n.prototype.dispose=function(e,t){r.node||!t.getDom()||(rv(this,`_updatePosition`),this._tooltipContent.dispose(),tP(`itemTooltip`,t))},n.type=`tooltip`,n}(H_);function pL(e,t,n){var r=t.ecModel,i;n?(i=new rp(n,r,r),i=new rp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof rp&&(o=o.get(`tooltip`,!0)),H(o)&&(o={formatter:o}),o&&(i=new rp(o,i,r)))}return i}function mL(e,t){return e.dispatchAction||R(t.dispatchAction,t)}function hL(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function gL(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function _L(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function vL(e){return e===`center`||e===`middle`}function yL(e,t,n){var r=jo(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Po(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Q(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function bL(e){lw(gP),e.registerComponentModel(UI),e.registerComponentView(fL),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Me),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Me)}var xL=F;function SL(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function CL(e,t,n){var r={};return xL(t,function(t){var a=r[t]=i();xL(e[t],function(e,r){if(KA.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new KA(i),r===`opacity`&&(i=O(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new KA(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function wL(e,t,n){var r;F(n,function(e){t.hasOwnProperty(e)&&SL(t[e])&&(r=!0)}),r&&F(n,function(n){t.hasOwnProperty(n)&&SL(t[n])?e[n]=O(t[n]):delete e[n]})}function TL(e,t,n,r){var i={};return F(e,function(e){i[e]=KA.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return Hv(a,l,e)}function c(e,t){Wv(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var EL=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.layoutMode={type:`box`,ignoreSize:!0},t}return n.type=`title`,n.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:0,top:0,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:`#464646`},subtextStyle:{fontSize:12,color:`#6E7079`}},n}($),DL=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=W(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new $c({style:Ff(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new $c({style:Ff(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){dm(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){dm(p,`_`+e.get(`subtarget`))}),Q(c).eventData=Q(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=_m(g,{width:n.getWidth(),height:n.getHeight()},e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s=s||`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Yc({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},n.type=`title`,n}(H_);function OL(e){e.registerComponentModel(EL),e.registerComponentView(DL)}function kL(e,t){if(!e)return!1;for(var n=B(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function AL(e){oo(e,`label`,[`show`])}var jL=Oo(),ML=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.createdBySelf=!1,t}return n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},n.prototype.isAnimationEnabled=function(){if(r.node)return!1;var e=this.__hostSeries;return this.getShallow(`animation`)&&e&&e.isAnimationEnabled()},n.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},n.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries(function(e){var n=e.get(this.mainType,!0),a=jL(e)[i];if(!n||!n.data){jL(e)[i]=null;return}a?a._mergeOption(n,t,!0):(r&&AL(n),F(n.data,function(e){e instanceof Array?(AL(e[0]),AL(e[1])):AL(e)}),a=this.createMarkerModelFromSeries(n,this,t),j(a,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),a.__hostSeries=e),jL(e)[i]=a},this)},n.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return f_(`section`,{header:this.name,blocks:[f_(`nameValue`,{name:a,value:i,noName:!a,noValue:i==null})]})},n.prototype.getData=function(){return this._data},n.prototype.setData=function(e){this._data=e},n.prototype.getDataParams=function(e,t){var n=xg.prototype.getDataParams.call(this,e,t),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},n.getMarkerModelFromSeries=function(e,t){return jL(e)[t]},n.type=`marker`,n.dependencies=[`series`,`grid`,`polar`,`geo`],n}($);ne(ML,xg.prototype);var NL=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.createMarkerModelFromSeries=function(e,t,r){return new n(e,t,r)},n.type=`markPoint`,n.defaultOption={z:5,symbol:`pin`,symbolSize:50,tooltip:{trigger:`item`},label:{show:!0,position:`inside`},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},n}(ML);function PL(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function FL(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function IL(e,t,n,r,i,a){var o=[],s=AS(t,r)?t.getCalculationInfo(`stackResultDimension`):r,c=UL(t,s,e),l=t.indicesOfNearest(s,c)[0];o[i]=t.get(n,l),o[a]=t.get(s,l);var u=t.get(r,l),d=Pa(t.get(r,l));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,u]}var LL={min:z(IL,`min`),max:z(IL,`max`),average:z(IL,`average`),median:z(IL,`median`)};function RL(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!FL(t)&&!B(t.coord)&&B(i)){var a=zL(t,n,r,e);if(t=O(t),t.type&&LL[t.type]&&a.baseAxis&&a.valueAxis){var o=N(i,a.baseAxis.dim),s=N(i,a.valueAxis.dim),c=LL[t.type](n,a.baseDataDim,a.valueDataDim,o,s);t.coord=c[0],t.value=c[1]}else t.coord=[t.xAxis==null?t.radiusAxis:t.xAxis,t.yAxis==null?t.angleAxis:t.yAxis]}if(t.coord==null||!B(i))t.coord=[];else for(var l=t.coord,u=0;u<2;u++)LL[l[u]]&&(l[u]=UL(n,n.mapDimension(i[u]),l[u]));return t}}function zL(e,t,n,r){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex==null?e.valueDim:t.getDimension(e.valueIndex),i.valueAxis=n.getAxis(BL(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function BL(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function VL(e,t){return e&&e.containData&&t.coord&&!PL(t)?e.containData(t.coord):!0}function HL(e,t){return e?function(e,n,r,i){return Eg(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return Eg(e.value,t[i])}}function UL(e,t,n){if(n===`average`){var r=0,i=0;return e.each(t,function(e,t){isNaN(e)||(r+=e,i++)}),r/i}else if(n===`median`)return e.getMedian(t);else return e.getDataExtent(t)[+(n===`max`)]}var WL=Oo(),GL=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.init=function(){this.markerGroupMap=G()},n.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each(function(e){WL(e).keep=!1}),t.eachSeries(function(e){var i=ML.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)}),i.each(function(e){!WL(e).keep&&r.group.remove(e.group)})},n.prototype.markKeep=function(e){WL(e).keep=!0},n.prototype.toggleBlurSeries=function(e,t){var n=this;F(e,function(e){var r=ML.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl(function(e){e&&(t?Kl(e):ql(e))})})},n.type=`marker`,n}(H_);function KL(e,t,n){var r=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=X(a.get(`x`),n.getWidth()),c=X(a.get(`y`),n.getHeight());if(!isNaN(s)&&!isNaN(c))o=[s,c];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var l=e.get(r.dimensions[0],i),u=e.get(r.dimensions[1],i);o=r.dataToPoint([l,u])}isNaN(s)||(o[0]=s),isNaN(c)||(o[1]=c),e.setItemLayout(i,o)})}var qL=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.updateTransform=function(e,t,n){t.eachSeries(function(e){var t=ML.getMarkerModelFromSeries(e,`markPoint`);t&&(KL(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())},this)},n.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,a=e.id,o=e.getData(),s=this.markerGroupMap,c=s.get(a)||s.set(a,new XT),l=JL(i,e,t);t.setData(l),KL(t.getData(),e,r),l.each(function(e){var n=l.getItemModel(e),r=n.getShallow(`symbol`),i=n.getShallow(`symbolSize`),a=n.getShallow(`symbolRotate`),s=n.getShallow(`symbolOffset`),c=n.getShallow(`symbolKeepAspect`);if(V(r)||V(i)||V(a)||V(s)){var u=t.getRawValue(e),d=t.getDataParams(e);V(r)&&(r=r(u,d)),V(i)&&(i=i(u,d)),V(a)&&(a=a(u,d)),V(s)&&(s=s(u,d))}var f=n.getModel(`itemStyle`).getItemStyle(),p=Uv(o,`color`);f.fill||(f.fill=p),l.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:c,style:f})}),c.updateData(l),this.group.add(c.group),l.eachItemGraphicEl(function(e){e.traverse(function(e){Q(e).dataModel=t})}),this.markKeep(c),c.group.silent=t.get(`silent`)||e.get(`silent`)},n.type=`markPoint`,n}(GL);function JL(e,t,n){var r=e?I(e&&e.dimensions,function(e){return j(j({},t.getData().getDimensionInfo(t.getData().mapDimension(e))||{}),{name:e,ordinalMeta:null})}):[{name:`value`,type:`float`}],i=new vS(r,n),a=I(n.get(`data`),z(RL,t));e&&(a=ie(a,z(VL,e)));var o=HL(!!e,r);return i.initData(a,null,o),i}function YL(e){e.registerComponentModel(NL),e.registerComponentView(qL),e.registerPreprocessor(function(e){kL(e.series,`markPoint`)&&(e.markPoint=e.markPoint||{})})}var XL=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},ZL=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.layoutMode={type:`box`,ignoreSize:!0},t}return n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},n.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},n.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&F(t,function(e,r){H(e)&&(e={type:e}),t[r]=k(e,XL(n,e.type))})},n.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},n.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&xo(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=G(),a=I(r,function(e){return(H(e)||ce(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new rp(e,this,this.ecModel))},this);this._data=ie(a,function(e){return!!e})},n.prototype.getData=function(){return this._data},n.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;F(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},n.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},n.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},n.prototype.allSelect=function(){var e=this._data,t=this.option.selected;F(e,function(e){t[e.get(`name`,!0)]=!0})},n.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;F(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},n.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&N(this._availableNames,e)>=0},n.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},n.type=`legend.plain`,n.dependencies=[`series`],n.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,top:0,align:`auto`,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:`#ccc`,inactiveBorderColor:`#ccc`,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:`#ccc`,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:`#333`},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:`#666`,borderWidth:1,borderColor:`#666`},emphasis:{selectorLabel:{show:!0,color:`#eee`,backgroundColor:`#666`}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},n}($),QL=z,$L=F,eR=Y,tR=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.newlineDisabled=!1,t}return n.prototype.init=function(){this.group.add(this._contentGroup=new eR),this.group.add(this._selectorGroup=new eR),this._isFirstRender=!0},n.prototype.getContentGroup=function(){return this._contentGroup},n.prototype.getSelectorGroup=function(){return this._selectorGroup},n.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=e.getBoxLayoutParams(),l={width:n.getWidth(),height:n.getHeight()},u=e.get(`padding`),d=_m(c,l,u),f=this.layoutInner(e,i,d,r,o,s),p=_m(M({width:f.width,height:f.height},c),l,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KF(f,e))}},n.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=G(),l=t.get(`selectedMode`),u=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&u.push(e.id)}),$L(t.getData(),function(i,a){var o=i.get(`name`);if(!this.newlineDisabled&&(o===``||o===`
`)){var d=new eR;d.newline=!0,s.add(d);return}var f=n.getSeriesByName(o)[0];if(!c.get(o))if(f){var p=f.getData(),m=p.getVisual(`legendLineStyle`)||{},h=p.getVisual(`legendIcon`),g=p.getVisual(`style`),_=this._createItem(f,o,a,i,t,e,m,g,h,l,r);_.on(`click`,QL(iR,o,null,r,u)).on(`mouseover`,QL(oR,f.name,null,r,u)).on(`mouseout`,QL(sR,f.name,null,r,u)),n.ssr&&_.eachChild(function(e){var t=Q(e);t.seriesIndex=f.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}else n.eachRawSeries(function(s){if(!c.get(o)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(o))return;var f=d.indexOfName(o),p=d.getItemVisual(f,`style`),m=d.getItemVisual(f,`legendIcon`),h=xr(p.fill);h&&h[3]===0&&(h[3]=.2,p=j(j({},p),{fill:Mr(h,`rgba`)}));var g=this._createItem(s,o,a,i,t,e,{},p,m,l,r);g.on(`click`,QL(iR,null,o,r,u)).on(`mouseover`,QL(oR,null,o,r,u)).on(`mouseout`,QL(sR,null,o,r,u)),n.ssr&&g.eachChild(function(e){var t=Q(e);t.seriesIndex=s.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),c.set(o,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},n.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();$L(e,function(e){var r=e.type,i=new $c({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Nf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),su(i)})},n.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=nR(c,r,o,s,d,m,u),y=new eR,b=r.getModel(`textStyle`);if(V(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(rR({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;H(w)&&w?T=w.replace(`{name}`,t==null?``:t):V(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new $c({style:Ff(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Yc({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Df({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),su(y),y.__legendDataIndex=n,y},n.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();gm(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){gm(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}else return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},n.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n.type=`legend.plain`,n}(H_);function nR(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),$L(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:qy(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function rR(e){var t=e.icon||`roundRect`,n=iy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=`#fff`,n.style.lineWidth=2),n}function iR(e,t,n,r){sR(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e==null?t:e}),oR(e,t,n,r)}function aR(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,i=t.length;r<i&&!(n=t[r].states.emphasis);)r++;return n&&n.hoverLayer}function oR(e,t,n,r){aR(n)||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function sR(e,t,n,r){aR(n)||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function cR(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function lR(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),uR(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){F(i,function(t,n){e[t?`select`:`unSelect`](n)}),uR(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function uR(e,t){var n=t||{};return F(e.getData(),function(t){var r=t.get(`name`);if(!(r===`
`||r===``)){var i=e.isSelected(r);K(n,r)?n[r]=n[r]&&i:n[r]=i}}),n}function dR(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,z(lR,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,z(lR,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,z(lR,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,z(lR,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,z(lR,`unSelect`))}function fR(e){e.registerComponentModel(ZL),e.registerComponentView(tR),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,cR),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),dR(e)}var pR=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},n.prototype.init=function(t,n,r){var i=xm(t);e.prototype.init.call(this,t,n,r),mR(this,t,i)},n.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),mR(this,this.option,t)},n.type=`legend.scroll`,n.defaultOption=cp(ZL.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}),n}(ZL);function mR(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,bm(t,n,{type:`box`,ignoreSize:!!i})}var hR=Y,gR=[`width`,`height`],_R=[`x`,`y`],vR=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.newlineDisabled=!0,t._currentIndex=0,t}return n.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new hR),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hR)},n.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},n.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=B(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new $c({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=Sf(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:R(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},n.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=gR[s],l=_R[s],u=gR[1-s],d=_R[1-s];i&&gm(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=O(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},n.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;gm(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),gm(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=W(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Yc({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Hd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},n.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},n.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;F([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,H(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},n.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=gR[i],o=_R[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=h.i),++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=h.i),++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},n.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t==null?r:t},n.type=`legend.scroll`,n}(tR);function yR(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function bR(e){lw(fR),e.registerComponentModel(pR),e.registerComponentView(vR),yR(e)}function xR(e){lw(fR),lw(bR)}var SR=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`dataZoom.inside`,n.defaultOption=cp(EF.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),n}(EF),CR=Oo();function wR(e,t,n){CR(e).coordSysRecordMap.each(function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)})}function TR(e,t){for(var n=CR(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var c=t.uid;s.get(c)&&(s.removeKey(c),s.keys().length||ER(n,o))}}}function ER(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function DR(e,t){var n={model:t,containsPoint:z(kR,t),dispatchAction:z(OR,e),dataZoomInfoMap:null,controller:null},r=n.controller=new XO(e.getZr());return F([`pan`,`zoom`,`scrollMove`],function(e){r.on(e,function(t){var r=[];n.dataZoomInfoMap.each(function(i){if(t.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[e],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get(`disabled`,!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}}),r.length&&n.dispatchAction(r)})}),n}function OR(e,t){e.isDisposed()||e.dispatchAction({type:`dataZoom`,animation:{easing:`cubicOut`,duration:100},batch:t})}function kR(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function AR(e){var t,n=`type_`,r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(e){var a=e.model,o=a.get(`disabled`,!0)?!1:!a.get(`zoomLock`,!0)||`move`;r[n+o]>r[n+t]&&(t=o),i=i&&a.get(`preventDefaultMouseMove`,!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function jR(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=CR(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=G());r.each(function(e){e.dataZoomInfoMap=null}),e.eachComponent({mainType:`dataZoom`,subType:`inside`},function(e){F(wF(e).infoList,function(n){var i=n.model.uid,a=r.get(i)||r.set(i,DR(t,n.model));(a.dataZoomInfoMap||(a.dataZoomInfoMap=G())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})})}),r.each(function(e){var t=e.controller,n,i=e.dataZoomInfoMap;if(i){var a=i.keys()[0];a!=null&&(n=i.get(a))}if(!n){ER(r,e);return}var o=AR(i);t.enable(o.controlType,o.opt),t.setPointerChecker(e.containsPoint),nv(e,`dispatchAction`,n.model.get(`throttle`,!0),`fixRate`)})})}var MR=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataZoom.inside`,t}return n.prototype.render=function(t,n,r){if(e.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),wR(r,t,{pan:R(NR.pan,this),zoom:R(NR.zoom,this),scrollMove:R(NR.scrollMove,this)})},n.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){TR(this.api,this.dataZoomModel),this.range=null},n.type=`dataZoom.inside`,n}(kF),NR={zoom:function(e,t,n,r){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=FR[t](null,[r.originX,r.originY],o,n,e),c=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-c)*l+c,a[1]=(a[1]-c)*l+c;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Oj(0,a,[0,100],0,u.minSpan,u.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:PR(function(e,t,n,r,i,a){var o=FR[r]([a.oldX,a.oldY],[a.newX,a.newY],t,i,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:PR(function(e,t,n,r,i,a){return FR[r]([0,0],[a.scrollDelta,a.scrollDelta],t,i,n).signal*(e[1]-e[0])*a.scrollDelta})};function PR(e){return function(t,n,r,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s&&(Oj(e(o,s,t,n,r,i),o,[0,100],`all`),this.range=o,a[0]!==o[0]||a[1]!==o[1]))return o}}var FR={grid:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim===`x`?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),l=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),n.mainType===`radiusAxis`?(o.pixel=t[0]-e[0],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient===`horizontal`?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function IR(e){RF(e),e.registerComponentModel(SR),e.registerComponentView(MR),jR(e)}var LR=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.type=`dataZoom.slider`,n.layoutMode=`box`,n.defaultOption=cp(EF.defaultOption,{show:!0,right:`ph`,top:`ph`,width:`ph`,height:`ph`,left:null,bottom:null,borderColor:`#d2dbee`,borderRadius:3,backgroundColor:`rgba(47,69,84,0)`,dataBackground:{lineStyle:{color:`#d2dbee`,width:.5},areaStyle:{color:`#d2dbee`,opacity:.2}},selectedDataBackground:{lineStyle:{color:`#8fb0f7`,width:.5},areaStyle:{color:`#8fb0f7`,opacity:.2}},fillerColor:`rgba(135,175,274,0.2)`,handleIcon:`path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z`,handleSize:`100%`,handleStyle:{color:`#fff`,borderColor:`#ACB8D1`},moveHandleSize:7,moveHandleIcon:`path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z`,moveHandleStyle:{color:`#D2DBEE`,opacity:.7},showDetail:!0,showDataShadow:`auto`,realtime:!0,zoomLock:!1,textStyle:{color:`#6E7079`},brushSelect:!0,brushStyle:{color:`rgba(135,175,274,0.15)`},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:`#8FB0F7`},moveHandleStyle:{color:`#8FB0F7`}}}),n}(EF),RR=Yc,zR=7,BR=1,VR=30,HR=7,UR=`horizontal`,WR=`vertical`,GR=5,KR=[`line`,`bar`,`candlestick`,`scatter`],qR={easing:`cubicOut`,duration:100,delay:0},JR=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t._displayables={},t}return n.prototype.init=function(e,t){this.api=t,this._onBrush=R(this._onBrush,this),this._onBrushEnd=R(this._onBrushEnd,this)},n.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),nv(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}(!i||i.type!==`dataZoom`||i.from!==this.uid)&&this._buildView(),this._updateView()},n.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},n.prototype._clear=function(){rv(this,`_dispatchZoomAction`);var e=this.api.getZr();e.off(`mousemove`,this._onBrush),e.off(`mouseup`,this._onBrushEnd)},n.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Y;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},n.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get(`brushSelect`)?HR:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},a=this._orient===UR?{right:i.width-r.x-r.width,top:i.height-VR-zR-n,width:r.width,height:VR}:{right:zR,top:r.y,width:VR,height:r.height},o=xm(e.option);F([`right`,`top`,`width`,`height`],function(e){o[e]===`ph`&&(o[e]=a[e])});var s=_m(o,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===WR&&this._size.reverse()},n.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get(`inverse`),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n===UR&&!i?{scaleY:o?1:-1,scaleX:1}:n===UR&&i?{scaleY:o?1:-1,scaleX:-1}:n===WR&&!i?{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2});var s=e.getBoundingRect([a]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},n.prototype._getViewExtent=function(){return[0,this._size[0]]},n.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get(`brushSelect`);n.add(new RR({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get(`backgroundColor`)},z2:-40}));var i=new RR({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:`transparent`},z2:0,onclick:R(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on(`mousedown`,this._onBrushStart,this),i.cursor=`crosshair`,a.on(`mousemove`,this._onBrush),a.on(`mouseup`,this._onBrushEnd)):(a.off(`mousemove`,this._onBrush),a.off(`mouseup`,this._onBrushEnd)),n.add(i)},n.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():e.otherDim;if(o==null)return;var s=this._shadowPolygonPts,c=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var l=i.getDataExtent(o),u=(l[1]-l[0])*.3;l=[l[0]-u,l[1]+u];var d=[0,t[1]],f=[0,t[0]],p=[[t[0],0],[0,0]],m=[],h=f[1]/(i.count()-1),g=0,_=Math.round(i.count()/t[0]),v;i.each([o],function(e,t){if(_>0&&t%_){g+=h;return}var n=e==null||isNaN(e)||e===``,r=n?0:ja(e,l,d,!0);n&&!v&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&v&&(p.push([g,0]),m.push([g,0])),p.push([g,r]),m.push([g,r]),g+=h,v=n}),s=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=i,this._shadowDim=o,this._shadowSize=[t[0],t[1]];var y=this.dataZoomModel;function b(e){var t=y.getModel(e?`selectedDataBackground`:`dataBackground`),n=new Y,r=new gd({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel(`areaStyle`).getAreaStyle(),silent:!0,z2:-20}),i=new vd({shape:{points:c},segmentIgnoreThreshold:1,style:t.getModel(`lineStyle`).getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}for(var x=0;x<3;x++){var S=b(x===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},n.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get(`showDataShadow`);if(t!==!1){var n,r=this.ecModel;return e.eachTargetAxis(function(i,a){F(e.getAxisProxy(i,a).getTargetSeriesModels(),function(e){if(!n&&!(t!==!0&&N(KR,e.get(`type`))<0)){var o=r.getComponent(SF(i),a).axis,s=YR(i),c,l=e.coordinateSystem;s!=null&&l.getOtherAxis&&(c=l.getOtherAxis(o).inverse),s=e.getData().mapDimension(s),n={thisAxis:o,series:e,thisDim:i,otherDim:s,otherAxisInverse:c}}},this)},this),n}},n.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,c=o.get(`borderRadius`)||0,l=o.get(`brushSelect`),u=t.filler=new RR({silent:l,style:{fill:o.get(`fillerColor`)},textConfig:{position:`inside`}});i.add(u),i.add(new RR({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:c},style:{stroke:o.get(`dataBackgroundColor`)||o.get(`borderColor`),lineWidth:BR,fill:`rgba(0,0,0,0)`}})),F([0,1],function(t){var a=o.get(`handleIcon`);!ty[a]&&a.indexOf(`path://`)<0&&a.indexOf(`image://`)<0&&(a=`path://`+a);var s=iy(a,-1,0,2,2,null,!0);s.attr({cursor:XR(this._orient),draggable:!0,drift:R(this._onDragMove,this,t),ondragend:R(this._onDragEnd,this),onmouseover:R(this._showDataInfo,this,!0),onmouseout:R(this._showDataInfo,this,!1),z2:5});var c=s.getBoundingRect(),l=o.get(`handleSize`);this._handleHeight=X(l,this._size[1]),this._handleWidth=c.width/c.height*this._handleHeight,s.setStyle(o.getModel(`handleStyle`).getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState(`emphasis`).style=o.getModel([`emphasis`,`handleStyle`]).getItemStyle(),su(s);var u=o.get(`handleColor`);u!=null&&(s.style.fill=u),i.add(n[t]=s);var d=o.getModel(`textStyle`),f=(o.get(`handleLabel`)||{}).show||!1;e.add(r[t]=new $c({silent:!0,invisible:!f,style:Ff(d,{x:0,y:0,text:``,verticalAlign:`middle`,align:`center`,fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(l){var f=X(o.get(`moveHandleSize`),a[1]),p=t.moveHandle=new Yc({style:o.getModel(`moveHandleStyle`).getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:f}}),m=f*.8,h=t.moveHandleIcon=iy(o.get(`moveHandleIcon`),-m/2,-m/2,m,m,`#fff`,!0);h.silent=!0,h.y=a[1]+f/2-.5,p.ensureState(`emphasis`).style=o.getModel([`emphasis`,`moveHandleStyle`]).getItemStyle();var g=Math.min(a[1]/2,Math.max(f,10));d=t.moveZone=new Yc({invisible:!0,shape:{y:a[1]-g,height:f+g}}),d.on(`mouseover`,function(){s.enterEmphasis(p)}).on(`mouseout`,function(){s.leaveEmphasis(p)}),i.add(p),i.add(h),i.add(d)}d.attr({draggable:!0,cursor:XR(this._orient),drift:R(this._onDragMove,this,`all`),ondragstart:R(this._showDataInfo,this,!0),ondragend:R(this._onDragEnd,this),onmouseover:R(this._showDataInfo,this,!0),onmouseout:R(this._showDataInfo,this,!1)})},n.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[ja(e[0],[0,100],t,!0),ja(e[1],[0,100],t,!0)]},n.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];Oj(t,r,i,n.get(`zoomLock`)?`all`:e,a.minSpan==null?null:ja(a.minSpan,o,i,!0),a.maxSpan==null?null:ja(a.maxSpan,o,i,!0));var s=this._range,c=this._range=Na([ja(r[0],i,o,!0),ja(r[1],i,o,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},n.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Na(n.slice()),i=this._size;F([0,1],function(e){var r=t.handles[e],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[e]+(e?-1:1),y:i[1]/2-a/2})},this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(a),t.moveZone.setShape(a),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr(`x`,a.x+a.width/2));for(var o=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],c=0;c<o.length;c++){var l=o[c],u=l.getClipPath();u||(u=new Yc,l.setClipPath(u)),u.setShape({x:s[c],y:0,width:s[c+1]-s[c],height:i[1]})}this._updateDataInfo(e)},n.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=[``,``];if(t.get(`showDetail`)){var o=t.findRepresentativeAxisProxy();if(o){var s=o.getAxisModel().axis,c=this._range,l=e?o.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:o.getDataValueWindow();a=[this._formatLabel(l[0],s),this._formatLabel(l[1],s)]}}var u=Na(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(e){var t=mf(n.handles[e].parent,this.group),o=gf(e===0?`right`:`left`,t),s=this._handleWidth/2+GR,c=hf([u[e]+(e===0?-s:s),this._size[1]/2],t);r[e].setStyle({x:c[0],y:c[1],verticalAlign:i===UR?`middle`:o,align:i===UR?o:`center`,text:a[e]})}},n.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get(`labelFormatter`),i=n.get(`labelPrecision`);(i==null||i===`auto`)&&(i=t.getPixelPrecision());var a=e==null||isNaN(e)?``:t.type===`category`||t.type===`time`?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return V(r)?r(e,a):H(r)?r.replace(`{value}`,a):a},n.prototype._showDataInfo=function(e){var t=(this.dataZoomModel.get(`handleLabel`)||{}).show||!1,n=this.dataZoomModel.getModel([`emphasis`,`handleLabel`]).get(`show`)||!1,r=e||this._dragging?n:t,i=this._displayables,a=i.handleLabels;a[0].attr(`invisible`,!r),a[1].attr(`invisible`,!r),i.moveHandle&&this.api[r?`enterEmphasis`:`leaveEmphasis`](i.moveHandle,1)},n.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,Mt(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=hf([t,n],i,!0),o=this._updateInterval(e,a[0]),s=this.dataZoomModel.get(`realtime`);this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},n.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get(`realtime`)&&this._dispatchZoomAction(!1)},n.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval(`all`,n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},n.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new q(t,n),this._brushing=!0,this._brushStartTime=+new Date},n.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr(`ignore`,!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Na([ja(n.x,r,i,!0),ja(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},n.prototype._onBrush=function(e){this._brushing&&(Mt(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},n.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new RR({silent:!0,style:r.getModel(`brushStyle`).getItemStyle()}),n.sliderGroup.add(i)),i.attr(`ignore`,!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(e,t),c=o.transformCoordToLocal(a.x,a.y),l=this._size;s[0]=Math.max(Math.min(l[0],s[0]),0),i.setShape({x:c[0],y:0,width:s[0]-c[0],height:l[1]})},n.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:`dataZoom`,from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?qR:null,start:t[0],end:t[1]})},n.prototype._findCoordRect=function(){var e,t=wF(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:r*.2,y:i*.2,width:r*.6,height:i*.6}}return e},n.type=`dataZoom.slider`,n}(kF);function YR(e){return{x:`y`,y:`x`,radius:`angle`,angle:`radius`}[e]}function XR(e){return e===`vertical`?`ns-resize`:`ew-resize`}function ZR(e){e.registerComponentModel(LR),e.registerComponentView(JR),RF(e)}function QR(e){lw(IR),lw(ZR)}var $R={get:function(e,t,n){var r=O((ez[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},ez={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]}},tz=KA.mapVisual,nz=KA.eachVisual,rz=B,iz=F,az=Na,oz=ja,sz=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.stateList=[`inRange`,`outOfRange`],t.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],t.layoutMode={type:`box`,ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return n.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},n.prototype.optionUpdated=function(e,t){var n=this.option;!t&&wL(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},n.prototype.resetVisual=function(e){var t=this.stateList;e=R(e,this),this.controllerVisuals=CL(this.option.controller,t,e),this.targetVisuals=CL(this.option.target,t,e)},n.prototype.getItemSymbol=function(){return null},n.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return e==null||e===`all`?this.ecModel.eachSeries(function(e,n){t.push(n)}):t=ao(e),t},n.prototype.eachTargetSeries=function(e,t){F(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},n.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},n.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n=n||[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(H(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(V(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},n.prototype.resetExtent=function(){var e=this.option,t=az([e.min,e.max]);this._dataExtent=t},n.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},n.prototype.getExtent=function(){return this._dataExtent.slice()},n.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});k(r,n),k(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){rz(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},iz(r,function(e,t){if(KA.isValidType(t)){var n=$R.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;iz(this.stateList,function(o){var s=this.itemSize,c=e[o];c||(c=e[o]={color:a?r:[r]}),c.symbol==null&&(c.symbol=t&&O(t)||(a?i:[i])),c.symbolSize==null&&(c.symbolSize=n&&O(n)||(a?s[0]:[s[0],s[0]])),c.symbol=tz(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;nz(l,function(e){e>u&&(u=e)}),c.symbolSize=tz(l,function(e){return oz(e,[0,u],[0,s[0]],!0)})}},this)}},n.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},n.prototype.isCategory=function(){return!!this.option.categories},n.prototype.setSelected=function(e){},n.prototype.getSelected=function(){return null},n.prototype.getValueState=function(e){return null},n.prototype.getVisualMeta=function(e){return null},n.type=`visualMap`,n.dependencies=[`series`],n.defaultOption={show:!0,z:4,seriesIndex:`all`,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:`rgba(0,0,0,0)`,borderColor:`#ccc`,contentColor:`#5793f3`,inactiveColor:`#aaa`,borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:`#333`}},n}($),cz=[20,140],lz=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},n.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=cz[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=cz[1])},n.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},n.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),F(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},n.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},n.prototype.getSelected=function(){var e=this.getExtent(),t=Na((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},n.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},n.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},n.prototype.getVisualMeta=function(e){var t=uz(this,`outOfRange`,this.getExtent()),n=uz(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&(r.length&&i(r[r.length-1].value,`outOfRange`),l=0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},n.type=`visualMap.continuous`,n.defaultOption=cp(sz.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)`}}),n}(sz);function uz(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var dz=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return n.prototype.init=function(e,t){this.ecModel=e,this.api=t},n.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},n.prototype.renderBackground=function(e){var t=this.visualMapModel,n=nm(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Yc({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},n.prototype.getControllerVisual=function(e,t,n){n=n||{};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return F(KA.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),KA.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},n.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;vm(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},n.prototype.doRender=function(e,t,n,r){},n.type=`visualMap`,n}(H_),fz=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function pz(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=+(r.orient===`horizontal`),s=fz[o],c=[0,null,10],l={},u=0;u<3;u++)l[fz[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=_m(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function mz(e,t){return F(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var hz=ja,gz=F,_z=Math.min,vz=Math.max,yz=12,bz=6,xz=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=R(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=R(this._hideIndicator,this)},n.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},n.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},n.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new $c({style:Ff(d,{x:c[0],y:c[1],verticalAlign:u===`horizontal`?`middle`:l,align:u===`horizontal`?l:`center`,text:r})}))}},n.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=pz(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new Y;s.add(c),c.add(n.outOfRange=Sz()),c.add(n.inRange=Sz(null,a?Tz(this._orient):null,R(this._dragHandle,this,`all`,!1),R(this._dragHandle,this,`all`,!0))),c.setClipPath(new Yc({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=vz(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},n.prototype._createHandle=function(e,t,n,r,i,a){var o=R(this._dragHandle,this,n,!1),s=R(this._dragHandle,this,n,!0),c=Qi(e.get(`handleSize`),r[0]),l=iy(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=Tz(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){Mt(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),mu(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new $c({cursor:u,draggable:!0,drift:o,onmousemove:function(e){Mt(e.event)},ondragend:s,style:Ff(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},n.prototype._createIndicator=function(e,t,n,r,i){var a=Qi(e.get(`indicatorSize`),n[0]),o=iy(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof Vc){var c=o.style;o.useStyle(j({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new $c({silent:!0,invisible:!0,style:Ff(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:bz)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},n.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():wz(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},n.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[hz(t[0],n,r,!0),hz(t[1],n,r,!0)]},n.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];Oj(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[hz(r[0],i,a,!0),hz(r[1],i,a,!0)]},n.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},n.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new Ad(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},n.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},n.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},n.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Y(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},n.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);gz([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=hz(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=hf(n.handleLabelPoints[l],mf(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},n.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=hz(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=hf(c.indicatorLabelPoint,mf(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},n.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=_z(vz(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},n.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},n.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=_z(vz(i[0],e),i[1]);var o=Cz(n,a,i),s=[e-o,e+o],c=hz(e,i,a,!0),l=[hz(s[0],i,a,!0),hz(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||wz(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=Eo(u,d);this._dispatchHighDown(`downplay`,mz(f[0],n)),this._dispatchHighDown(`highlight`,mz(f[1],n))}},n.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Jv(e.target,function(e){var n=Q(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},n.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},n.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,mz(e,this.visualMapModel)),e.length=0},n.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},n.prototype._applyTransform=function(e,t,n,r){var i=mf(t,r?null:this.group);return B(e)?hf(e,i,n):gf(e,i,n)},n.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},n.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},n.type=`visualMap.continuous`,n}(dz);function Sz(e,t,n,r){return new gd({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){Mt(e.event)},ondragend:r})}function Cz(e,t,n){var r=yz/2,i=e.get(`hoverLinkDataSize`);return i&&(r=hz(i,t,n,!0)/2),r}function wz(e){var t=e.get(`hoverLinkOnHandle`);return!!(t==null?e.get(`realtime`):t)}function Tz(e){return e===`vertical`?`ns-resize`:`ew-resize`}var Ez={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},Dz=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},Oz=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(TL(t.stateList,t.targetVisuals,R(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(R(kz,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function kz(e,t,n,r){for(var i=t.targetVisuals[r],a=KA.prepareVisualTypes(i),o={color:Uv(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var Az=F;function jz(e){var t=e&&e.visualMap;B(t)||(t=t?[t]:[]),Az(t,function(e){if(e){Mz(e,`splitList`)&&!Mz(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&B(t)&&Az(t,function(e){U(e)&&(Mz(e,`start`)&&!Mz(e,`min`)&&(e.min=e.start),Mz(e,`end`)&&!Mz(e,`max`)&&(e.max=e.end))})}})}function Mz(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var Nz=!1;function Pz(e){Nz||(Nz=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(Ez,Dz),F(Oz,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(jz))}function Fz(e){e.registerComponentModel(lz),e.registerComponentView(xz),Pz(e)}var Iz=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t._pieceList=[],t}return n.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],Lz[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=O(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=I(this._pieceList,function(e){return e=O(e),t!==`inRange`&&(e.visual=null),e}))})},n.prototype.completeVisualOption=function(){var t=this.option,n={},r=KA.listVisualTypes(),i=this.isCategory();F(t.pieces,function(e){F(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),F(n,function(e,n){var r=!1;F(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&F(this.stateList,function(e){(t[e]||(t[e]={}))[n]=$R.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},n.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,F(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;F(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},n.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},n.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},n.prototype.getPieceList=function(){return this._pieceList},n.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},n.prototype.setSelected=function(e){this.option.selected=O(e)},n.prototype.getValueState=function(e){var t=KA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},n.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){KA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},n.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},n.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return F(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},n.type=`visualMap.piecewise`,n.defaultOption=cp(sz.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}),n}(sz),Lz={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Ya(e),F(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;F(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),Rz(t,e)},pieces:function(e){var t=this.option;F(t.pieces,function(t,n){U(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]==null&&(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=KA.retrieveVisuals(t),e.push(r)},this),Rz(t,e),Ya(e),F(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function Rz(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var zz=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=n.type,t}return n.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=r.getFont(),a=r.getTextColor(),o=this._getItemAlign(),s=t.itemSize,c=this._getViewData(),l=c.endsText,u=ge(t.get(`showLabel`,!0),!l),d=!t.get(`selectedMode`);l&&this._renderEndsText(e,l[0],s,u,o),F(c.viewPieceList,function(r){var c=r.piece,l=new Y;l.onclick=R(this._onItemClick,this,c),this._enableHoverLink(l,r.indexInModelPieceList);var f=t.getRepresentValue(c);if(this._createItemSymbol(l,f,[0,0,s[0],s[1]],d),u){var p=this.visualMapModel.getValueState(f);l.add(new $c({style:{x:o===`right`?-n:s[0]+n,y:s[1]/2,text:c.text,verticalAlign:`middle`,align:o,font:i,fill:a,opacity:p===`outOfRange`?.5:1},silent:d}))}e.add(l)},this),l&&this._renderEndsText(e,l[1],s,u,o),gm(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},n.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:mz(r.findTargetDataIndices(t),r)})}},n.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return pz(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},n.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Y,o=this.visualMapModel.textStyleModel;a.add(new $c({style:Ff(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},n.prototype._getViewData=function(){var e=this.visualMapModel,t=I(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},n.prototype._createItemSymbol=function(e,t,n,r){var i=iy(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},n.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=O(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,F(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},n.type=`visualMap.piecewise`,n}(dz);function Bz(e){e.registerComponentModel(Iz),e.registerComponentView(zz),Pz(e)}function Vz(e){lw(Fz),lw(Bz)}var Hz={value:`eq`,"<":`lt`,"<=":`lte`,">":`gt`,">=":`gte`,"=":`eq`,"!=":`ne`,"<>":`ne`},Uz=function(){function e(e){(this._condVal=H(e)?new RegExp(e):me(e)?e:null)==null&&to(``)}return e.prototype.evaluate=function(e){var t=typeof e;return H(t)?this._condVal.test(e):ce(t)?this._condVal.test(e+``):!1},e}(),Wz=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),Gz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),Kz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),qz=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Jz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),r=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?r:n))return!1;return!0},e}();function Yz(e,t){if(e===!0||e===!1){var n=new Wz;return n.value=e,n}return $z(e)||to(``),e.and?Xz(`and`,e,t):e.or?Xz(`or`,e,t):e.not?Zz(e,t):Qz(e,t)}function Xz(e,t,n){var r=t[e],i=``;B(r)||to(i),r.length||to(i);var a=e===`and`?new Gz:new Kz;return a.children=I(r,function(e){return Yz(e,n)}),a.children.length||to(i),a}function Zz(e,t){var n=e.not,r=``;$z(n)||to(r);var i=new qz;return i.child=Yz(n,t),i.child||to(r),i}function Qz(e,t){for(var n=``,r=t.prepareGetValue(e),i=[],a=L(e),o=e.parser,s=o?Og(o):null,c=0;c<a.length;c++){var l=a[c];if(!(l===`parser`||t.valueGetterAttrMap.get(l))){var u=K(Hz,l)?Hz[l]:l,d=e[l],f=s?s(d):d,p=Ng(u,f)||u===`reg`&&new Uz(f);p||to(n),i.push(p)}}i.length||to(n);var m=new Jz;return m.valueGetterParam=r,m.valueParser=s,m.getValue=t.getValue,m.subCondList=i,m}function $z(e){return U(e)&&!P(e)}var eB=function(){function e(e,t){this._cond=Yz(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function tB(e,t){return new eB(e,t)}var nB={type:`echarts:filter`,transform:function(e){for(var t=e.upstream,n,r=tB(e.config,{valueGetterAttrMap:G({dimension:!0}),prepareGetValue:function(e){var n=``,r=e.dimension;K(e,`dimension`)||to(n);var i=t.getDimensionInfo(r);return i||to(n),{dimIdx:i.index}},getValue:function(e){return t.retrieveValueFromItem(n,e.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)n=t.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},rB={type:`echarts:sort`,transform:function(e){var t=e.upstream,n=e.config,r=``,i=ao(n);i.length||to(r);var a=[];F(i,function(e){var n=e.dimension,i=e.order,o=e.parser,s=e.incomparable;n==null&&to(r),i!==`asc`&&i!==`desc`&&to(r),s&&s!==`min`&&s!==`max`&&to(``),i!==`asc`&&i!==`desc`&&to(``);var c=t.getDimensionInfo(n);c||to(r);var l=o?Og(o):null;o&&!l&&to(r),a.push({dimIdx:c.index,parser:l,comparator:new jg(i,s)})});var o=t.sourceFormat;o!==`arrayRows`&&o!==`objectRows`&&to(r);for(var s=[],c=0,l=t.count();c<l;c++)s.push(t.getRawDataItem(c));return s.sort(function(e,n){for(var r=0;r<a.length;r++){var i=a[r],o=t.retrieveValueFromItem(e,i.dimIdx),s=t.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var c=i.comparator.evaluate(o,s);if(c!==0)return c}return 0}),{data:s}}};function iB(e){e.registerTransform(nB),e.registerTransform(rB)}var aB=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return n.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new r_(this),i_(this)},n.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),i_(this)},n.prototype.optionUpdated=function(){this._sourceManager.dirty()},n.prototype.getSourceManager=function(){return this._sourceManager},n.type=`dataset`,n.defaultOption={seriesLayoutBy:Fm},n}($),oB=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return n.type=`dataset`,n}(H_);function sB(e){e.registerComponentModel(aB),e.registerComponentView(oB)}var cB=dc.CMD;function lB(e,t){return Math.abs(e-t)<1e-5}function uB(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){lB(e,n)&&lB(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===cB.L||_===cB.C||_===cB.Q)&&(i=[s,c])),_){case cB.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case cB.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case cB.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case cB.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case cB.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case cB.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case cB.Z:i&&u(a,o,s,c),a=s,o=c;break}}return i&&i.length>2&&r.push(i),r}function dB(e,t,n,r,i,a,o,s,c,l){if(lB(e,n)&&lB(t,r)&&lB(i,o)&&lB(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];Gn(e,n,i,o,.5,T),Gn(t,r,a,s,.5,E),dB(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),dB(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function fB(e,t){var n=uB(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];dB(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function pB(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function mB(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=pB([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function hB(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=pB([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function gB(e,t,n,r){return e*r-n*t}function _B(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=gB(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=gB(e-i,t-a,u,d)/f;return p<0||p>1?null:new q(p*c+e,p*l+t)}function vB(e,t,n){var r=new q;q.sub(r,n,t),r.normalize();var i=new q;return q.sub(i,e,t),i.dot(r)}function yB(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function bB(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=_B(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:vB(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)yB(m,e[a].slice());yB(m,p),yB(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)yB(h,e[a%r].slice());return yB(h,f),yB(h,p),[{points:m},{points:h}]}function xB(e){var t=e.points,n=[],r=[];Bs(t,n,r);var i=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new q,u=new q;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),bB(t,l,u)}function SB(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);SB(e,a[0],i,r),SB(e,a[1],n-i,r)}return r}function CB(e,t){for(var n=[],r=0;r<t;r++)n.push(Uu(e));return n}function wB(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function TB(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function EB(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:hB(r,t,n),i=Yc;break;case`sector`:mB(r,t,n),i=ud;break;case`circle`:mB({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=ud;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=I(fB(e.getUpdatedPathProxy(),o),function(e){return TB(e)}),c=s.length;if(c===0)SB(xB,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=I(s,function(e){var t=[],n=[];Bs(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(SB(xB,{points:p.poly},m,n),f-=m)}}i=gd;break}if(!i)return CB(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),wB(e,g),h.push(g)}return h}function DB(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;Gn(m,g,v,b,w,i),Gn(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function OB(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function kB(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=DB(c,l),u=n[0],d=n[1],r=u,i=d):(d=OB(i||c,c),u=c):(u=OB(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function AB(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function jB(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function MB(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function NB(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=AB(s),u=AB(c);a==null&&(a=l[2]<0!=u[2]<0);var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=MB(s));for(var _=jB(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var M=A-E,ee=j-D;T+=M*M+ee*ee}if(T<m){m=T,p=S;for(var N=0;N<h.length;N++)f[N]=h[N]}}else for(var te=0;te<g;te+=2)f[te]=c[te]-u[0],f[te+1]=c[te+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function PB(e){return e.__isCombineMorphing}var FB=`__mOriginal_`;function IB(e,t,n){var r=FB+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function LB(e,t){var n=FB+t;e[n]&&(e[t]=e[n],e[n]=null)}function RB(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function zB(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=kB(uB(n),uB(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&RB(a,s),c&&RB(o,c),IB(t,`updateTransform`,{replace:l}),t.transform=null;var u=NB(a,o,10,Math.PI),d=[];IB(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);nt(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function BB(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;zB(e,t),t.__morphT=0;function a(){LB(t,`buildPath`),LB(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},M({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function VB(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function HB(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return I(I(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:VB(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function UB(e){return EB(e.path,e.count)}function WB(){return{fromIndividuals:[],toIndividuals:[],count:0}}function GB(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];PB(n)?i(n.childrenRef()):n instanceof Z&&r.push(n)}}i(e);var a=r.length;if(!a)return WB();var o=(n.dividePath||UB)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),WB();r=HB(r),o=HB(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new Hi,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||zB(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}IB(t,`addSelfToZr`,{after:function(e){m(e)}}),IB(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,LB(t,`addSelfToZr`),LB(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?M({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;BB(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},M({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)LB(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function KB(e,t,n){var r=t.length,i=[],a=n.dividePath||UB;function o(e){for(var t=0;t<e.length;t++){var n=e[t];PB(n)?o(n.childrenRef()):n instanceof Z&&i.push(n)}}if(PB(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(Uu(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),WB()}i=HB(i),t=HB(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?M({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;BB(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function qB(e){return B(e[0])}function JB(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1)if(s)s=0;else return n;var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var YB={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=Uu(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function XB(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=Bd(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=Object.assign({setToFinal:!0},o),l,u;qB(e)&&(l=e,u=t),qB(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(PB(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?M({delay:s(r,i)},c):c;BB(f,p,m),a(f,p,f,p,m)}}else for(var h=M({dividePath:YB[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?GB(l,u,h):KB(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?M({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?JB(u,l):JB(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function ZB(e){if(!e)return[];if(B(e)){for(var t=[],n=0;n<e.length;n++)t.push(ZB(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof Z&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var QB=1e4,$B=0,eV=1,tV=2,nV=Oo();function rV(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function iV(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function aV(e,t,n,r){var i=rV(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return iV(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function oV(e){var t=[];return F(e,function(e){var n=e.data,r=e.dataGroupId;if(!(n.count()>QB))for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:aV(n,a,r,!1),childGroupId:aV(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function sV(e,t,n){e.traverse(function(e){e instanceof Z&&Ud(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function cV(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function lV(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function uV(e,t,n){var r=Bd(`update`,n,t);r&&e.traverse(function(e){if(e instanceof Os){var t=Yd(e);t&&e.animateFrom({style:t},r)}})}function dV(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function fV(e,t,n){var r=oV(e),i=oV(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?j(j({},n.style),e.style):e.style},i)}var o=!1,s=$B,c=G(),l=G();r.forEach(function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=eV;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=tV;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===eV?n.childGroupId:n.groupId:s===tV?n.childGroupId:n.groupId}}var m=dV(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&uV(u,s.dataIndex,c);return}l&&h[l.id]||u&&(lV(u),l?(lV(l),cV(l),o=!0,XB(ZB(l),ZB(u),s.divide,c,e,a)):sV(u,c,e))}new Wx(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=ie(I(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(lV(l),u.length?(F(u,function(e){lV(e),cV(e)}),o=!0,XB(ZB(u),ZB(l),n.divide,c,e,a)):sV(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=ie(I(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(F(c,function(e){return lV(e)}),s?(lV(s),cV(s),o=!0,XB(ZB(s),ZB(c),n.divide,l,e[0],a)):F(c,function(t){return sV(t,l,e[0])}))}}).updateManyToMany(function(e,t){new Wx(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&F(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=Bd(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof Z&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function pV(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function mV(e){return B(e)?e.sort().join(`,`):e}function hV(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function gV(e,t){var n=G(),r=G(),i=G();return F(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=pV(t),c=mV(s);r.set(c,{dataGroupId:a,data:o}),B(s)&&F(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})}),F(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),a=e.getData(),o=pV(e),s=mV(o),c=r.get(s);if(c)n.set(s,{oldSeries:[{dataGroupId:c.dataGroupId,divide:hV(c.data),data:c.data}],newSeries:[{dataGroupId:t,divide:hV(a),data:a}]});else if(B(o)){var l=[];F(o,function(e){var t=r.get(e);t.data&&l.push({dataGroupId:t.dataGroupId,divide:hV(t.data),data:t.data})}),l.length&&n.set(s,{oldSeries:l,newSeries:[{dataGroupId:t,data:a,divide:hV(a)}]})}else{var u=i.get(o);if(u){var d=n.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:hV(u.data)}],newSeries:[]},n.set(u.key,d)),d.newSeries.push({dataGroupId:t,data:a,divide:hV(a)})}}}}),n}function _V(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function vV(e,t,n,r){var i=[],a=[];F(ao(e.from),function(e){var n=_V(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:hV(t.oldData[n]),groupIdDim:e.dimension})}),F(ao(e.to),function(e){var r=_V(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:hV(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&fV(i,a,r)}function yV(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){F(ao(n.seriesTransition),function(e){F(ao(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][M_]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=nV(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)F(ao(i),function(e){vV(e,r,n,t)});else{var a=gV(r,n);F(a.keys(),function(e){var n=a.get(e);fV(n.oldSeries,n.newSeries,t)})}F(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[M_]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<QB&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}function bV(e,t,n){var r=d.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}var xV=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var a;r=r||Ai,typeof t==`string`?a=bV(t,n,r):U(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(je(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return n.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},n.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},n.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},n.prototype.setUnpainted=function(){this.__firstTimePaint=!0},n.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=bV(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},n.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new J(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero()))if(i.length===0){var t=new J(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new J(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}else if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new J(0,0,0,0);t.copy(e),i.push(t)}o||(o=i.length>=a)}}for(var l=this.__startIndex;l<this.__endIndex;++l){var u=e[l];if(u){var d=u.shouldBePainted(n,r,!0,!0),f=u.__isRendered&&(u.__dirty&1||!d)?u.getPrevPaintRect():null;f&&c(f);var p=d&&(u.__dirty&1||!u.__isRendered)?u.getPaintRect():null;p&&c(p)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var u=t[l],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var f=u.getPrevPaintRect();f&&c(f)}}var m;do{m=!1;for(var l=0;l<i.length;){if(i[l].isZero()){i.splice(l,1);continue}for(var h=l+1;h<i.length;)i[l].intersect(i[h])?(m=!0,i[l].union(i[h]),i.splice(h,1)):h++;l++}}while(m);return this._paintRects=i,i},n.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},n.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},n.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;fe(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||uy(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):pe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=Sy(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&F(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},n}(ct),SV=1e5,CV=314159,wV=.01,TV=.001;function EV(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function DV(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}var OV=function(){function e(e,t,n,r){this.type=`canvas`,this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`;var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;this._opts=n=j({},n||{}),this.dpr=n.devicePixelRatio||Ai,this._singleCanvas=i,this.root=e,e.style&&(je(e),e.innerHTML=``),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,c=s.width,l=s.height;n.width!=null&&(c=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,s.width=c*this.dpr,s.height=l*this.dpr,this._width=c,this._height=l;var u=new xV(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[CV]=u,u.zlevel=CV,a.push(CV),this._domRoot=e}else{this._width=py(e,0,n),this._height=py(e,1,n);var d=this._domRoot=DV(this._width,this._height);e.appendChild(d)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,a=0;a<t;a++){var o=e[a];o.__inHover&&(n||(n=this._hoverlayer=this.getLayer(SV)),i||(i=n.ctx,i.save()),Hy(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(SV)},e.prototype.paintOne=function(e,t){Vy(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;On(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(CV).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var c=this._zlevelList[s],l=this._layers[c];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var u=!0,d=!1,f=function(r){var s=a[r],c=s.ctx,l=o&&s.createRepaintRects(e,t,p._width,p._height),f=n?s.__startIndex:s.__drawIndex,m=!n&&s.incremental&&Date.now,h=m&&Date.now(),g=s.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,l);else if(f===s.__startIndex){var _=e[f];(!_.incremental||!_.notClear||n)&&s.clear(!1,g,l)}f===-1&&(console.error(`For some unknown reason. drawIndex is -1`),f=s.__startIndex);var v,y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(v=f;v<s.__endIndex;v++){var r=e[v];if(r.__inHover&&(d=!0),i._doPaintEl(r,s,o,t,n,v===s.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&c.restore()};if(l)if(l.length===0)v=s.__endIndex;else for(var b=p.dpr,x=0;x<l.length;++x){var S=l[x];c.save(),c.beginPath(),c.rect(S.x*b,S.y*b,S.width*b,S.height*b),c.clip(),y(S),c.restore()}else c.save(),y(),c.restore();s.__drawIndex=v,s.__drawIndex<s.__endIndex&&(u=!1)},p=this,m=0;m<a.length;m++)f(m);return r.wxa&&F(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:u,needsRefreshHover:d}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Hy(o,e,i,a),e.setPrevPaintRect(s))}else Hy(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=CV);var n=this._layers[e];return n||(n=new xV(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?k(n,this._layerConfig[e],!0):this._layerConfig[e-wV]&&k(n,this._layerConfig[e-wV],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&EV(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1});function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i=null,a=0,o,s;for(s=0;s<e.length;s++){var r=e[s],c=r.zlevel,l=void 0;o!==c&&(o=c,a=0),r.incremental?(l=this.getLayer(c+TV,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?wV:0),this._needsManuallyCompositing),l.__builtin__||D(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,F(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?k(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+wV){var a=this._layers[i];k(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(N(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=py(i,0,r),t=py(i,1,r),n.style.display=``,this._width!==e||t!==this._height){for(var a in n.style.width=e+`px`,n.style.height=t+`px`,this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].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(CV).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[CV].dom;var t=new xV(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer(function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Hy(n,l,a,s===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function kV(e){e.registerPainter(`canvas`,OV)}var AV=e({Axis:()=>Jw,ChartView:()=>K_,ComponentModel:()=>$,ComponentView:()=>H_,List:()=>vS,Model:()=>rp,PRIORITY:()=>Sb,SeriesModel:()=>N_,color:()=>sr,connect:()=>gx,dataTool:()=>Vx,default:()=>jV,dependencies:()=>ab,disConnect:()=>vx,disconnect:()=>_x,dispose:()=>yx,env:()=>r,extendChartView:()=>eT,extendComponentModel:()=>Zw,extendComponentView:()=>Qw,extendSeriesModel:()=>$w,format:()=>kw,getCoordinateSystemDimensions:()=>jx,getInstanceByDom:()=>bx,getInstanceById:()=>xx,getMap:()=>zx,graphic:()=>Ow,helper:()=>tw,init:()=>hx,innerDrawElementOnCanvas:()=>Vy,matrix:()=>Rt,number:()=>Ew,parseGeoJSON:()=>Tw,parseGeoJson:()=>Tw,registerAction:()=>kx,registerCoordinateSystem:()=>Ax,registerLayout:()=>Mx,registerLoading:()=>Ix,registerLocale:()=>_p,registerMap:()=>Rx,registerPostInit:()=>Ex,registerPostUpdate:()=>Dx,registerPreprocessor:()=>Cx,registerProcessor:()=>Tx,registerTheme:()=>Sx,registerTransform:()=>Bx,registerUpdateLifecycle:()=>Ox,registerVisual:()=>Nx,setCanvasCreator:()=>Lx,setPlatformAPI:()=>f,throttle:()=>tv,time:()=>Dw,use:()=>lw,util:()=>Aw,vector:()=>Pe,version:()=>ib,zrUtil:()=>p,zrender:()=>pa});lw([kV,sB]);var jV={init:function(){return hx.apply(null,arguments)}};lw(BT);var MV={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function NV(e,t){if(e===`world`){var n=MV[t.name];if(n){var r=[n[0],n[1]];t.setCenter(r)}}}var PV=PA;export{sm as $,Jw as A,I as At,jx as B,Hk as C,z as Ct,IE as D,te as Dt,gD as E,N as Et,rw as F,K_ as G,hx as H,aw as I,$ as J,H_ as K,zS as L,lw as M,re as Mt,nw as N,VT as O,B as Ot,iw as P,om as Q,yS as R,jA as S,ke as St,LD as T,F as Tt,Vy as U,zx as V,iy as W,em as X,_m as Y,cm as Z,_P as _,zt as _t,yV as a,fc as at,wj as b,rt as bt,Vz as c,Wa as ct,YL as d,si as dt,rp as et,OL as f,wr as ft,eF as g,J as gt,vF as h,On as ht,kV as i,Yc as it,Tw as j,k as jt,BT as k,U as kt,QR as l,Ma as lt,HI as m,or as mt,NV as n,Q as nt,sB as o,Fa as ot,bL as p,xr as pt,N_ as q,AV as r,$c as rt,iB as s,ja as st,PV as t,Ff as tt,xR as u,ya as ut,YM as v,Kt as vt,qD as w,M as wt,MA as x,O as xt,PM as y,xt as yt,vS as z};