import{E as Hg,az as Vo,aA as Ca,aB as Gg,a as ii,g as Vg,w as Da,aC as gc,b as Wg,aD as Ug,a8 as Yg,Q as Xg,L as $g,n as qg}from"./CVN9mXi8.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

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

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var nu=function(r,t){return nu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},nu(r,t)};function G(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Zg=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Kg=function(){function r(){this.browser=new Zg,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 r}(),X=new Kg;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(X.wxa=!0,X.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?X.worker=!0:!X.hasGlobalWindow||"Deno"in window?(X.node=!0,X.svgSupported=!0):Qg(navigator.userAgent,X);function Qg(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var rl=12,Jg="sans-serif",Fr=rl+"px "+Jg,jg=20,ty=100,ey="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ry(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-jg)/ty;t[i]=n}return t}var iy=ry(ey),wi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var n=wi.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||Fr),r.measureText(e);e=e||"",i=i||Fr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||rl,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=iy[e[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},yc=ar(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),_c=ar(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),En=Object.prototype.toString,co=Array.prototype,ny=co.forEach,ay=co.filter,il=co.slice,oy=co.map,of=(function(){}).constructor,Gn=of?of.prototype:null,nl="__proto__",sy=2311;function mc(){return sy++}function al(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function J(r){if(r==null||typeof r!="object")return r;var t=r,e=En.call(r);if(e==="[object Array]"){if(!rn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=J(r[i])}}else if(_c[e]){if(!rn(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!yc[e]&&!rn(r)&&!_n(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==nl&&(t[o]=J(r[o]))}return t}function ft(r,t,e){if(!W(t)||!W(r))return e?J(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==nl){var n=r[i],a=t[i];W(a)&&W(n)&&!N(a)&&!N(n)&&!_n(a)&&!_n(n)&&!sf(a)&&!sf(n)&&!rn(a)&&!rn(n)?ft(n,a,e):(e||!(i in r))&&(r[i]=J(t[i]))}return r}function O(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==nl&&(r[e]=t[e]);return r}function ut(r,t,e){for(var i=ht(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function it(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function uy(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ge(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else ut(r,t)}function Gt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,t,e){if(r&&t)if(r.forEach&&r.forEach===ny)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function Z(r,t,e){if(!r)return[];if(!t)return ol(r);if(r.map&&r.map===oy)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function ar(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function Ot(r,t,e){if(!r)return[];if(!t)return ol(r);if(r.filter&&r.filter===ay)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function ht(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function ly(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(il.call(arguments)))}}var nt=Gn&&j(Gn.bind)?Gn.call.bind(Gn.bind):ly;function yt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(il.call(arguments)))}}function N(r){return Array.isArray?Array.isArray(r):En.call(r)==="[object Array]"}function j(r){return typeof r=="function"}function z(r){return typeof r=="string"}function au(r){return En.call(r)==="[object String]"}function vt(r){return typeof r=="number"}function W(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function sf(r){return!!yc[En.call(r)]}function Vt(r){return!!_c[En.call(r)]}function _n(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function po(r){return r.colorStops!=null}function fy(r){return r.image!=null}function Va(r){return r!==r}function mn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function q(r,t){return r??t}function en(r,t,e){return r??t??e}function ol(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return il.apply(r,t)}function wc(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Fe(r,t){if(!r)throw new Error(t)}function Te(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Sc="__ec_primitive__";function ou(r){r[Sc]=!0}function rn(r){return r[Sc]}var hy=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return ht(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r}(),Tc=typeof Map=="function";function vy(){return Tc?new Map:new hy}var cy=function(){function r(t){var e=N(t);this.data=vy();var i=this;t instanceof r?t.each(n):t&&M(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return Tc?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function Q(r){return new cy(r)}function dy(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function go(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&O(e,t),e}function bc(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function zr(r,t){return r.hasOwnProperty(t)}function zt(){}var py=180/Math.PI;function Si(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function gy(r){return[r[0],r[1]]}function uf(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function yy(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function _y(r){return Math.sqrt(my(r))}function my(r){return r[0]*r[0]+r[1]*r[1]}function Wo(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function wy(r,t){var e=_y(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function su(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var uu=su;function Sy(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var fi=Sy;function Uo(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function xe(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function oi(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function si(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Wr=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),Ty=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Wr(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Wr(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Wr(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Wr(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Wr(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Wr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Me=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var u={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,u=0;u<s;u++){var l=n[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],u=n.length,l=0;l<u;l++){var f=n[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}(),by=Math.log(2);function lu(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/by);return r[e][u]}for(var l=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*r[e][c]*lu(r,t-1,f,l,n|d,a),v++)}return a[o]=h,h}function lf(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=lu(e,8,0,0,0,i);if(n!==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)*lu(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var ff="___zrEVENTSAVED",Yo=[];function xy(r,t,e,i,n){return fu(Yo,t,i,n,!0)&&fu(r,e,Yo[0],Yo[1])}function fu(r,t,e,i,n){if(t.getBoundingClientRect&&X.domSupported&&!xc(t)){var a=t[ff]||(t[ff]={}),o=Cy(t,a),s=Dy(o,a,n);if(s)return s(r,e,i),!0}return!1}function Cy(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=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",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function Dy(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=e?lf(s,o):lf(o,s))}function xc(r){return r.nodeName.toUpperCase()==="CANVAS"}var My=/([&<>"'])/g,Ay={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kt(r){return r==null?"":(r+"").replace(My,function(t,e){return Ay[e]})}var Ly=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xo=[],Py=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function hu(r,t,e,i){return e=e||{},i?hf(r,t,e):Py&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):hf(r,t,e),e}function hf(r,t,e){if(X.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(xc(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(fu(Xo,r,i,n)){e.zrX=Xo[0],e.zrY=Xo[1];return}}e.zrX=e.zrY=0}function sl(r){return r||window.event}function jt(r,t,e){if(t=sl(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&hu(r,o,t,e)}else{hu(r,t,t,e);var a=Iy(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Ly.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Iy(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function Ry(r,t,e,i){r.addEventListener(t,e,i)}function Ey(r,t,e,i){r.removeEventListener(t,e,i)}var Cc=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},Oy=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var u=n[o],l=hu(i,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in $o)if($o.hasOwnProperty(e)){var i=$o[e](this._track,t);if(i)return i}},r}();function vf(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function ky(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var $o={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=vf(i)/vf(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=ky(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function hi(){return[1,0,0,1,0,0]}function ul(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function By(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function vi(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function vu(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function ll(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-i[0])+f*(l-i[1])+i[0],r[5]=h*(l-i[1])-f*(o-i[0])+i[1],r}function Ny(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Dc(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*i;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-i*u,r[3]=e*u,r[4]=(i*s-o*n)*u,r[5]=(a*n-e*s)*u,r):null}var $=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}(),Vn=Math.min,Wn=Math.max,ur=new $,lr=new $,fr=new $,hr=new $,Mi=new $,Ai=new $,et=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=Vn(t.x,this.x),i=Vn(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Wn(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Wn(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=hi();return vu(a,a,[-e.x,-e.y]),Ny(a,a,[i,n]),vu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<n||s<f||h<o);if(e){var v=1/0,d=0,y=Math.abs(a-u),p=Math.abs(l-n),g=Math.abs(s-f),_=Math.abs(h-o),m=Math.min(y,p),w=Math.min(g,_);a<u||l<n?m>d&&(d=m,y<p?$.set(Ai,-y,0):$.set(Ai,p,0)):m<v&&(v=m,y<p?$.set(Mi,y,0):$.set(Mi,-p,0)),s<f||h<o?w>d&&(d=w,g<_?$.set(Ai,0,-g):$.set(Ai,0,_)):m<v&&(v=m,g<_?$.set(Mi,0,g):$.set(Mi,0,-_))}return e&&$.copy(e,c?Mi:Ai),c},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.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}ur.x=fr.x=e.x,ur.y=hr.y=e.y,lr.x=hr.x=e.x+e.width,lr.y=fr.y=e.y+e.height,ur.transform(i),hr.transform(i),lr.transform(i),fr.transform(i),t.x=Vn(ur.x,lr.x,fr.x,hr.x),t.y=Vn(ur.y,lr.y,fr.y,hr.y);var u=Wn(ur.x,lr.x,fr.x,hr.x),l=Wn(ur.y,lr.y,fr.y,hr.y);t.width=u-t.x,t.height=l-t.y},r}(),Mc="silent";function Fy(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:zy}}function zy(){Cc(this.event)}var Hy=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Me),Li=function(){function r(t,e){this.x=t,this.y=e}return r}(),Gy=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qo=new et(0,0,0,0),Ac=function(r){G(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Li(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Hy,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Ty(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(Gy,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Lc(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Li(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Li(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=Fy(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Li(e,i);if(cf(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new et(e-l,i-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(qo.copy(c.getBoundingRect()),c.transform&&qo.applyTransform(c.transform),qo.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,p=0;p<l;p+=v)for(var g=0;g<y;g+=d){var _=e+p*Math.cos(g),m=i+p*Math.sin(g);if(cf(s,o,_,m,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new Oy);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Li;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Me);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Ac.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Lc(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||uu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function Vy(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Mc:!0}return!1}function cf(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=Vy(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Mc)){t.target=o;break}}}function Lc(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Pc=32,Pi=7;function Wy(r){for(var t=0;r>=Pc;)t|=r&1,r>>=1;return r+t}function df(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;Uy(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function Uy(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function pf(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,r[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function Zo(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])>0){for(s=i-n;u<s&&a(r,t[e+n+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;u<s&&a(r,t[e+n-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function Ko(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])<0){for(s=n+1;u<s&&a(r,t[e+n-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u<s&&a(r,t[e+n+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function Yy(r,t){var e=Pi,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],y=n[v],p=i[v+1],g=n[v+1];n[v]=y+g,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var _=Ko(r[p],r,d,y,0,t);d+=_,y-=_,y!==0&&(g=Zo(r[d+y-1],r,p,g,g-1,t),g!==0&&(y<=g?h(d,y,p,g):c(d,y,p,g)))}function h(v,d,y,p){var g=0;for(g=0;g<d;g++)o[g]=r[v+g];var _=0,m=y,w=v;if(r[w++]=r[m++],--p===0){for(g=0;g<d;g++)r[w+g]=o[_+g];return}if(d===1){for(g=0;g<p;g++)r[w+g]=r[m+g];r[w+p]=o[_];return}for(var T=e,S,b,C;;){S=0,b=0,C=!1;do if(t(r[m],o[_])<0){if(r[w++]=r[m++],b++,S=0,--p===0){C=!0;break}}else if(r[w++]=o[_++],S++,b=0,--d===1){C=!0;break}while((S|b)<T);if(C)break;do{if(S=Ko(r[m],o,_,d,0,t),S!==0){for(g=0;g<S;g++)r[w+g]=o[_+g];if(w+=S,_+=S,d-=S,d<=1){C=!0;break}}if(r[w++]=r[m++],--p===0){C=!0;break}if(b=Zo(o[_],r,m,p,0,t),b!==0){for(g=0;g<b;g++)r[w+g]=r[m+g];if(w+=b,m+=b,p-=b,p===0){C=!0;break}}if(r[w++]=o[_++],--d===1){C=!0;break}T--}while(S>=Pi||b>=Pi);if(C)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),d===1){for(g=0;g<p;g++)r[w+g]=r[m+g];r[w+p]=o[_]}else{if(d===0)throw new Error;for(g=0;g<d;g++)r[w+g]=o[_+g]}}function c(v,d,y,p){var g=0;for(g=0;g<p;g++)o[g]=r[y+g];var _=v+d-1,m=p-1,w=y+p-1,T=0,S=0;if(r[w--]=r[_--],--d===0){for(T=w-(p-1),g=0;g<p;g++)r[T+g]=o[g];return}if(p===1){for(w-=d,_-=d,S=w+1,T=_+1,g=d-1;g>=0;g--)r[S+g]=r[T+g];r[w]=o[m];return}for(var b=e;;){var C=0,x=0,D=!1;do if(t(o[m],r[_])<0){if(r[w--]=r[_--],C++,x=0,--d===0){D=!0;break}}else if(r[w--]=o[m--],x++,C=0,--p===1){D=!0;break}while((C|x)<b);if(D)break;do{if(C=d-Ko(o[m],r,v,d,d-1,t),C!==0){for(w-=C,_-=C,d-=C,S=w+1,T=_+1,g=C-1;g>=0;g--)r[S+g]=r[T+g];if(d===0){D=!0;break}}if(r[w--]=o[m--],--p===1){D=!0;break}if(x=p-Zo(r[_],o,0,p,p-1,t),x!==0){for(w-=x,m-=x,p-=x,S=w+1,T=m+1,g=0;g<x;g++)r[S+g]=o[T+g];if(p<=1){D=!0;break}}if(r[w--]=r[_--],--d===0){D=!0;break}b--}while(C>=Pi||x>=Pi);if(D)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(w-=d,_-=d,S=w+1,T=_+1,g=d-1;g>=0;g--)r[S+g]=r[T+g];r[w]=o[m]}else{if(p===0)throw new Error;for(T=w-(p-1),g=0;g<p;g++)r[T+g]=o[g]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function Ma(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<Pc){a=df(r,e,i,t),pf(r,e,i,e+a,t);return}var o=Yy(r,t),s=Wy(n);do{if(a=df(r,e,i,t),a<s){var u=n;u>s&&(u=s),pf(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var $t=1,qi=2,ni=4,gf=!1;function Qo(){gf||(gf=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function yf(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var Xy=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=yf}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Ma(i,yf)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=$t),this._updateAndAddDisplayable(l,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Qo(),f.z=0),isNaN(f.z2)&&(Qo(),f.z2=0),isNaN(f.zlevel)&&(Qo(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=it(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Wa;Wa=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var nn={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-nn.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?nn.bounceIn(r*2)*.5:nn.bounceOut(r*2-1)*.5+.5}},Un=Math.pow,rr=Math.sqrt,Ua=1e-8,Ic=1e-4,_f=rr(3),Yn=1/3,we=Si(),re=Si(),ci=Si();function Je(r){return r>-Ua&&r<Ua}function Rc(r){return r>Ua||r<-Ua}function Pt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function mf(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Ec(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-n,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Je(f)&&Je(h))if(Je(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(Je(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(y>0){var _=rr(y),m=f*s+1.5*o*(-h+_),w=f*s+1.5*o*(-h-_);m<0?m=-Un(-m,Yn):m=Un(m,Yn),w<0?w=-Un(-w,Yn):w=Un(w,Yn);var d=(-s-(m+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*f*s-3*o*h)/(2*rr(f*f*f)),S=Math.acos(T)/3,b=rr(f),C=Math.cos(S),d=(-s-2*b*C)/(3*o),g=(-s+b*(C+_f*Math.sin(S)))/(3*o),x=(-s+b*(C-_f*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),x>=0&&x<=1&&(a[v++]=x)}}return v}function Oc(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,u=0;if(Je(o)){if(Rc(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(Je(f))n[0]=-a/(2*o);else if(f>0){var h=rr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function Ya(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,u=(i-e)*n+e,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function $y(r,t,e,i,n,a,o,s,u,l,f){var h,c=.005,v=1/0,d,y,p,g;we[0]=u,we[1]=l;for(var _=0;_<1;_+=.05)re[0]=Pt(r,e,n,o,_),re[1]=Pt(t,i,a,s,_),p=fi(we,re),p<v&&(h=_,v=p);v=1/0;for(var m=0;m<32&&!(c<Ic);m++)d=h-c,y=h+c,re[0]=Pt(r,e,n,o,d),re[1]=Pt(t,i,a,s,d),p=fi(re,we),d>=0&&p<v?(h=d,v=p):(ci[0]=Pt(r,e,n,o,y),ci[1]=Pt(t,i,a,s,y),g=fi(ci,we),y<=1&&g<v?(h=y,v=g):c*=.5);return rr(v)}function qy(r,t,e,i,n,a,o,s,u){for(var l=r,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,y=Pt(r,e,n,o,d),p=Pt(t,i,a,s,d),g=y-l,_=p-f;h+=Math.sqrt(g*g+_*_),l=y,f=p}return h}function Bt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function wf(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function Zy(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,u=0;if(Je(a)){if(Rc(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(Je(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=rr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function kc(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Xa(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function Ky(r,t,e,i,n,a,o,s,u){var l,f=.005,h=1/0;we[0]=o,we[1]=s;for(var c=0;c<1;c+=.05){re[0]=Bt(r,e,n,c),re[1]=Bt(t,i,a,c);var v=fi(we,re);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Ic);d++){var y=l-f,p=l+f;re[0]=Bt(r,e,n,y),re[1]=Bt(t,i,a,y);var v=fi(re,we);if(y>=0&&v<h)l=y,h=v;else{ci[0]=Bt(r,e,n,p),ci[1]=Bt(t,i,a,p);var g=fi(ci,we);p<=1&&g<h?(l=p,h=g):f*=.5}}return rr(h)}function Qy(r,t,e,i,n,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Bt(r,e,n,c),d=Bt(t,i,a,c),y=v-s,p=d-u;l+=Math.sqrt(y*y+p*p),s=v,u=d}return l}var Jy=/cubic-bezier\(([0-9,\.e ]+)\)/;function Bc(r){var t=r&&Jy.exec(r);if(t){var e=t[1].split(","),i=+Te(e[0]),n=+Te(e[1]),a=+Te(e[2]),o=+Te(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Ec(0,i,a,1,u,s)&&Pt(0,n,o,1,s[0])}}}var jy=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||zt,this.ondestroy=t.ondestroy||zt,this.onrestart=t.onrestart||zt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=n%i;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=j(t)?t:nn[t]||Bc(t)},r}(),Nc=function(){function r(t){this.value=t}return r}(),t0=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Nc(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),On=function(){function r(t){this._list=new t0,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new Nc(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Sf={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 an(r){return r=Math.round(r),r<0?0:r>255?255:r}function Tf(r){return r<0?0:r>1?1:r}function Jo(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?an(parseFloat(t)/100*255):an(parseInt(t,10))}function on(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Tf(parseFloat(t)/100):Tf(parseFloat(t))}function jo(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Jt(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function cu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Fc=new On(20),Xn=null;function Ur(r,t){Xn&&cu(Xn,t),Xn=Fc.put(r,Xn||t.slice())}function Or(r,t){if(r){t=t||[];var e=Fc.get(r);if(e)return cu(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Sf)return cu(t,Sf[i]),Ur(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Jt(t,0,0,0,1);return}return Jt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ur(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Jt(t,0,0,0,1);return}return Jt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ur(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?Jt(t,+l[0],+l[1],+l[2],1):Jt(t,0,0,0,1);f=on(l.pop());case"rgb":if(l.length>=3)return Jt(t,Jo(l[0]),Jo(l[1]),Jo(l[2]),l.length===3?f:on(l[3])),Ur(r,t),t;Jt(t,0,0,0,1);return;case"hsla":if(l.length!==4){Jt(t,0,0,0,1);return}return l[3]=on(l[3]),bf(l,t),Ur(r,t),t;case"hsl":if(l.length!==3){Jt(t,0,0,0,1);return}return bf(l,t),Ur(r,t),t;default:return}}Jt(t,0,0,0,1)}}function bf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=on(r[1]),n=on(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Jt(t,an(jo(o,a,e+1/3)*255),an(jo(o,a,e)*255),an(jo(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function xf(r,t){var e=Or(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return fl(e,e.length===4?"rgba":"rgb")}}function fl(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function $a(r,t){var e=Or(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Cf=new On(100);function Df(r){if(z(r)){var t=Cf.get(r);return t||(t=xf(r,-.1),Cf.put(r,t)),t}else if(po(r)){var e=O({},r);return e.colorStops=Z(r.colorStops,function(i){return{offset:i.offset,color:xf(i.color,-.1)}}),e}return r}function e0(r){return r.type==="linear"}function r0(r){return r.type==="radial"}(function(){return X.hasGlobalWindow&&j(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var du=Array.prototype.slice;function Oe(r,t,e){return(t-r)*e+r}function ts(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Oe(t[a],e[a],i);return r}function i0(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Oe(t[o][s],e[o][s],i)}return r}function $n(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function Mf(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function n0(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function a0(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var u=a;u<o;u++)i.push(e===1?n[u]:du.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(e===1)isNaN(i[u])&&(i[u]=n[u]);else for(var f=0;f<l;f++)isNaN(i[u][f])&&(i[u][f]=n[u][f])}}function Aa(r){if(Gt(r)){var t=r.length;if(Gt(r[0])){for(var e=[],i=0;i<t;i++)e.push(du.call(r[i]));return e}return du.call(r)}return r}function La(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function o0(r){return Gt(r&&r[0])?2:1}var qn=0,Pa=1,zc=2,Zi=3,pu=4,gu=5,Af=6;function Lf(r){return r===pu||r===gu}function Zn(r){return r===Pa||r===zc}var Ii=[0,0,0,0],s0=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Af,u=e;if(Gt(e)){var l=o0(e);s=l,(l===1&&!vt(e[0])||l===2&&!vt(e[0][0]))&&(o=!0)}else if(vt(e)&&!Va(e))s=qn;else if(z(e))if(!isNaN(+e))s=qn;else{var f=Or(e);f&&(u=f,s=Zi)}else if(po(e)){var h=O({},u);h.colorStops=Z(e.colorStops,function(v){return{offset:v.offset,color:Or(v.color)}}),e0(e)?s=pu:r0(e)&&(s=gu),u=h}a===0?this.valType=s:(s!==this.valType||s===Af)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=j(i)?i:nn[i]||Bc(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(y,p){return y.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=Zn(n),l=Lf(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?a0(c,v,n):l&&n0(c.colorStops,v.colorStops))}if(!s&&n!==gu&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===qn?i[f].additiveValue=i[f].value-d:n===Zi?i[f].additiveValue=$n([],i[f].value,d,-1):Zn(n)&&(i[f].additiveValue=n===Pa?$n([],i[f].value,d,-1):Mf([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Zi,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var y=c(h+1,s-1);for(f=y;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,g=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var _=i?this._additiveValue:l?Ii:t[u];if((Zn(a)||l)&&!_&&(_=this._additiveValue=[]),this.discrete)t[u]=g<1?v.rawValue:d.rawValue;else if(Zn(a))a===Pa?ts(_,v[n],d[n],g):i0(_,v[n],d[n],g);else if(Lf(a)){var m=v[n],w=d[n],T=a===pu;t[u]={type:T?"linear":"radial",x:Oe(m.x,w.x,g),y:Oe(m.y,w.y,g),colorStops:Z(m.colorStops,function(b,C){var x=w.colorStops[C];return{offset:Oe(b.offset,x.offset,g),color:La(ts([],b.color,x.color,g))}}),global:w.global},T?(t[u].x2=Oe(m.x2,w.x2,g),t[u].y2=Oe(m.y2,w.y2,g)):t[u].r=Oe(m.r,w.r,g)}else if(l)ts(_,v[n],d[n],g),i||(t[u]=La(_));else{var S=Oe(v[n],d[n],g);i?this._additiveValue=S:t[u]=S}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===qn?t[i]=t[i]+n:e===Zi?(Or(t[i],Ii),$n(Ii,Ii,n,1),t[i]=La(Ii)):e===Pa?$n(t[i],t[i],n,1):e===zc&&Mf(t[i],t[i],n,1)},r}(),hl=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){al("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,ht(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],u=a[s];if(!u){u=a[s]=new s0(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===Zi&&l&&(l=La(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,Aa(l),n),this._trackKeys.push(s)}u.addKeyframe(t,Aa(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(n,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new jy({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var y=!1,p=0;p<d.length;p++)if(d[p]._clip){y=!0;break}y||(e._additiveAnimators=null)}for(var p=0;p<i.length;p++)i[p].step(e._target,v);var g=e._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return Z(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=Aa(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||ht(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function ui(){return new Date().getTime()}var u0=function(r){G(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.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},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=ui()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Wa(i),!e._paused&&e.update())}Wa(i)},t.prototype.start=function(){this._running||(this._time=ui(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ui(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ui()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new hl(e,i.loop);return this.addAnimator(n),n},t}(Me),l0=300,es=X.domSupported,rs=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Z(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),Pf={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},If=!1;function yu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function f0(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function is(r){r&&(r.zrByTouch=!0)}function h0(r,t){return jt(r.dom,new v0(r,t),!0)}function Hc(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var v0=function(){function r(t,e){this.stopPropagation=zt,this.stopImmediatePropagation=zt,this.preventDefault=zt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),le={mousedown:function(r){r=jt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=jt(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=jt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=jt(this.dom,r);var t=r.toElement||r.relatedTarget;Hc(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){If=!0,r=jt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){If||(r=jt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=jt(this.dom,r),is(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),le.mousemove.call(this,r),le.mousedown.call(this,r)},touchmove:function(r){r=jt(this.dom,r),is(r),this.handler.processGesture(r,"change"),le.mousemove.call(this,r)},touchend:function(r){r=jt(this.dom,r),is(r),this.handler.processGesture(r,"end"),le.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<l0&&le.click.call(this,r)},pointerdown:function(r){le.mousedown.call(this,r)},pointermove:function(r){yu(r)||le.mousemove.call(this,r)},pointerup:function(r){le.mouseup.call(this,r)},pointerout:function(r){yu(r)||le.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){le[r]=function(t){t=jt(this.dom,t),this.trigger(r,t)}});var _u={pointermove:function(r){yu(r)||_u.mousemove.call(this,r)},pointerup:function(r){_u.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function c0(r,t){var e=t.domHandlers;X.pointerEventsSupported?M(rs.pointer,function(i){Ia(t,i,function(n){e[i].call(r,n)})}):(X.touchEventsSupported&&M(rs.touch,function(i){Ia(t,i,function(n){e[i].call(r,n),f0(t)})}),M(rs.mouse,function(i){Ia(t,i,function(n){n=sl(n),t.touching||e[i].call(r,n)})}))}function d0(r,t){X.pointerEventsSupported?M(Pf.pointer,e):X.touchEventsSupported||M(Pf.mouse,e);function e(i){function n(a){a=sl(a),Hc(r,a.target)||(a=h0(r,a),t.domHandlers[i].call(r,a))}Ia(t,i,n,{capture:!0})}}function Ia(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Ry(r.domTarget,t,e,i)}function ns(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&Ey(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Rf=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),p0=function(r){G(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Rf(e,le),es&&(n._globalHandlerScope=new Rf(document,_u)),c0(n,n._localHandlerScope),n}return t.prototype.dispose=function(){ns(this._localHandlerScope),es&&ns(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,es&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?d0(this,i):ns(i)}},t}(Me),Gc=1;X.hasGlobalWindow&&(Gc=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var qa=Gc,mu=.4,wu="#333",Su="#ccc",g0="#eee",Ef=ul,Of=5e-5;function vr(r){return r>Of||r<-Of}var cr=[],Yr=[],as=hi(),os=Math.abs,vl=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return vr(this.rotation)||vr(this.x)||vr(this.y)||vr(this.scaleX-1)||vr(this.scaleY-1)||vr(this.skewX)||vr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Ef(i),this.invTransform=null);return}i=i||hi(),e?this.getLocalTransform(i):Ef(i),t&&(e?vi(i,t,i):By(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(cr);var i=cr[0]<0?-1:1,n=cr[1]<0?-1:1,a=((cr[0]-i)*e+i)/cr[0]||0,o=((cr[1]-n)*e+n)/cr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||hi(),Dc(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||hi(),vi(Yr,t.invTransform,e),e=Yr);var i=this.originX,n=this.originY;(i||n)&&(as[4]=i,as[5]=n,vi(Yr,e,as),Yr[4]-=i,Yr[5]-=n,e=Yr),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&xe(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&xe(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&os(t[0]-1)>1e-10&&os(t[3]-1)>1e-10?Math.sqrt(os(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){y0(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,y=n+u;e[4]=-d*a-c*y*o,e[5]=-y*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&ll(e,e,l),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=function(){var t=r.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}(),r}(),wn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function y0(r,t){for(var e=0;e<wn.length;e++){var i=wn[e];r[i]=t[i]}}var kf={};function qt(r,t){t=t||Fr;var e=kf[t];e||(e=kf[t]=new On(500));var i=e.get(r);return i==null&&(i=wi.measureText(r,t).width,e.put(r,i)),i}function Bf(r,t,e,i){var n=qt(r,t),a=cl(t),o=Ki(0,n,e),s=ai(0,a,i),u=new et(o,s,n,a);return u}function Vc(r,t,e,i){var n=((r||"")+"").split(`
`),a=n.length;if(a===1)return Bf(n[0],t,e,i);for(var o=new et(0,0,0,0),s=0;s<n.length;s++){var u=Bf(n[s],t,e,i);s===0?o.copy(u):o.union(u)}return o}function Ki(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function ai(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function cl(r){return qt("国",r)}function or(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Wc(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(i instanceof Array)u+=or(i[0],e.width),l+=or(i[1],e.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var ss="__zr_normal__",us=wn.concat(["ignore"]),_0=ar(wn,function(r,t){return r[t]=!0,r},{ignore:!1}),Xr={},m0=new et(0,0,0,0),yo=function(){function r(t){this.id=mc(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;if(a.copyTransform(e),i.position!=null){var f=m0;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Xr,i,f):Wc(Xr,i,f),a.x=Xr.x,a.y=Xr.y,o=Xr.align,s=Xr.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=or(h[0],f.width),v=or(h[1],f.height)),l=!0,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,_=void 0,m=void 0;y&&this.canBeInsideText()?(g=i.insideFill,_=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(g),m=!0)):(g=i.outsideFill,_=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(g),m=!0)),g=g||"#000",(g!==p.fill||_!==p.stroke||m!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=g,p.stroke=_,p.autoStroke=m,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=$t,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Su:wu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Or(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,fl(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},O(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(W(t))for(var i=t,n=ht(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==ss)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,us)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(ss,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===ss,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(it(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){al("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$t),l}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~$t)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=it(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=it(n,t),o=it(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];O(e,a),a.textConfig&&(i=i||{},O(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=O({},n?this.textConfig:i.textConfig),O(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<us.length;f++){var h=us[f],c=a&&_0[h];e&&e[h]!=null?c?(l=!0,u[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(l=!0,u[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||i)[d]:e||i)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new vl,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=$t;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new hl(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=it(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){ls(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){ls(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=ls(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=$t;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var u=this[n]=[];s(this,u)}return this[n]},set:function(u){this[a]=u[0],this[o]=u[1],this[n]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();Ge(yo,Me);Ge(yo,vl);function ls(r,t,e,i,n){e=e||{};var a=[];Uc(r,"",r,t,e,i,a,n);var o=a.length,s=!1,u=e.done,l=e.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&e.during&&a[0].during(function(d,y){e.during(y)});for(var c=0;c<a.length;c++){var v=a[c];v.done(f),v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function fs(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function w0(r){return Gt(r[0])}function S0(r,t,e){if(Gt(t[e]))if(Gt(r[e])||(r[e]=[]),Vt(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),fs(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(w0(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?fs(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else fs(a,n,o);a.length=n.length}else r[e]=t[e]}function T0(r,t){return r===t||Gt(r)&&Gt(t)&&b0(r,t)}function b0(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function Uc(r,t,e,i,n,a,o,s){for(var u=ht(i),l=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!W(a),d=r.animators,y=[],p=0;p<u.length;p++){var g=u[p],_=i[g];if(_!=null&&e[g]!=null&&(v||a[g]))if(W(_)&&!Gt(_)&&!po(_)){if(t){s||(e[g]=_,r.updateDuringAnimation(t));continue}Uc(r,g,e[g],_,n,a&&a[g],o,s)}else y.push(g);else s||(e[g]=_,r.updateDuringAnimation(t),y.push(g))}var m=y.length;if(!h&&m)for(var w=0;w<d.length;w++){var T=d[w];if(T.targetName===t){var S=T.stopTracks(y);if(S){var b=it(d,T);d.splice(b,1)}}}if(n.force||(y=Ot(y,function(A){return!T0(i[A],e[A])}),m=y.length),m>0||n.force&&!o.length){var C=void 0,x=void 0,D=void 0;if(s){x={},c&&(C={});for(var w=0;w<m;w++){var g=y[w];x[g]=e[g],c?C[g]=i[g]:e[g]=i[g]}}else if(c){D={};for(var w=0;w<m;w++){var g=y[w];D[g]=Aa(e[g]),S0(e,i,g)}}var T=new hl(e,!1,!1,h?Ot(d,function(P){return P.targetName===t}):null);T.targetName=t,n.scope&&(T.scope=n.scope),c&&C&&T.whenWithKeys(0,C,y),D&&T.whenWithKeys(0,D,y),T.whenWithKeys(l??500,s?x:i,y).delay(f||0),r.addAnimator(T,t),o.push(T)}}var he=function(r){G(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=it(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=it(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new et(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var u=n[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(et.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t}(yo);he.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var Ra={},Yc={};function x0(r){delete Yc[r]}function C0(r){if(!r)return!1;if(typeof r=="string")return $a(r,1)<mu;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=$a(t[n].color,1);return e/=i,e<mu}return!1}var D0=function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new Xy,o=i.renderer||"canvas";Ra[o]||(o=ht(Ra)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ra[o](e,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!X.node&&!X.worker&&!u?new p0(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?X.touchEventsSupported:!!f,c=44,v;h&&(v=q(i.pointerSize,c)),this.handler=new Ac(a,s,l,s.root,v),this.animation=new u0({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=C0(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=ui();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=ui();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof he&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,x0(this.id))},r}();function Nf(r,t){var e=new D0(mc(),r,t);return Yc[e.id]=e,e}function M0(r,t){Ra[r]=t}var Ff=1e-4,Xc=20;function A0(r){return r.replace(/^\s+|\s+$/g,"")}function L0(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/u*l+o}function st(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return z(r)?A0(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Be(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Xc),r=(+r).toFixed(t),e?r:+r}function Sn(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return P0(r)}function P0(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function wC(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function I0(r,t){var e=ar(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var i=Math.pow(10,t),n=Z(r,function(v){return(isNaN(v)?0:v)/e*i*100}),a=i*100,o=Z(n,function(v){return Math.floor(v)}),s=ar(o,function(v,d){return v+d},0),u=Z(n,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return Z(o,function(v){return v/i})}function R0(r,t){var e=Math.max(Sn(r),Sn(t)),i=r+t;return e>Xc?i:Be(i,e)}function $c(r){var t=Math.PI*2;return(r%t+t)%t}function Za(r){return r>-Ff&&r<Ff}var E0=/^(?:(\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 ze(r){if(r instanceof Date)return r;if(z(r)){var t=E0.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(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(r==null)return new Date(NaN);return new Date(Math.round(r))}function O0(r){return Math.pow(10,dl(r))}function dl(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function qc(r,t){var e=dl(r),i=Math.pow(10,e),n=r/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function Ka(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function k0(r){return!isNaN(Ka(r))}function Zc(){return Math.round(Math.random()*9)}function Kc(r,t){return t===0?r:Kc(t,r%t)}function zf(r,t){return r==null?t:t==null?r:r*t/Kc(r,t)}function Nt(r){throw new Error(r)}var Qc="series\0",B0="\0_ec_\0";function It(r){return r instanceof Array?r:r==null?[]:[r]}function Tu(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Hf=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function _o(r){return W(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function N0(r){return W(r)&&!(r instanceof Array)}function F0(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Q();M(t,function(u,l){if(!W(u)){t[l]=null;return}});var s=z0(r,o,e);return(i||n)&&H0(s,r,o,t),i&&G0(s,t),i||n?V0(s,t,n):a&&W0(s,t),U0(s),s}function z0(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||Tn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function H0(r,t,e,i){M(i,function(n,a){if(!(!n||n.id==null)){var o=sn(n.id),s=e.get(o);if(s!=null){var u=r[s];Fe(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function G0(r,t){M(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!Tn(e)&&!Tn(a)&&Jc("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function V0(r,t,e){M(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Tn(n.existing)||n.existing&&i.id!=null&&!Jc("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function W0(r,t){M(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function U0(r){var t=Q();M(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),M(r,function(e){var i=e.newOption;Fe(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),M(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(W(a)){if(o.name=a.name!=null?sn(a.name):n?n.name:Qc+i,n)o.id=sn(n.id);else if(a.id!=null)o.id=sn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Jc(r,t,e){var i=Ce(t[r],null),n=Ce(e[r],null);return i!=null&&n!=null&&i===n}function sn(r){return Ce(r,"")}function Ce(r,t){return r==null?t:z(r)?r:vt(r)||au(r)?r+"":t}function pl(r){var t=r.name;return!!(t&&t.indexOf(Qc))}function Tn(r){return r&&r.id!=null&&sn(r.id).indexOf(B0)===0}function Y0(r,t,e){M(r,function(i){var n=i.newOption;W(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=X0(t,n,i.existing,e))})}function X0(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function kn(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?Z(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?Z(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function _t(){var r="__ec_inner_"+$0++;return function(t){return t[r]||(t[r]={})}}var $0=Zc();function hs(r,t,e){var i=gl(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=e?e.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=Bn(r,f,l,{useDefault:u===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function gl(r,t){var e;if(z(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Q(),a={},o=!1;return M(e,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&it(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var mo={useDefault:!0,enableAll:!1,enableNone:!1};function Bn(r,t,e,i){i=i||mo;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=r.getComponent(t))?[u]:[],s}return n==="none"||n===!1?(Fe(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Fe(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function jc(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function q0(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function Z0(r){return r==="auto"?X.domSupported?"html":"richText":r||"html"}var K0=".",dr="___EC__COMPONENT__CONTAINER___",td="___EC__EXTENDED_CLASS___";function be(r){var t={main:"",sub:""};if(r){var e=r.split(K0);t.main=e[0]||"",t.sub=e[1]||""}return t}function Q0(r){Fe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function J0(r){return!!(r&&r[td])}function yl(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return j0(i)?n=function(a){G(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(e.$constructor||i).apply(this,arguments)},uy(n,this)),O(n.prototype,e),n[td]=!0,n.extend=this.extend,n.superCall=r_,n.superApply=i_,n.superClass=i,n}}function j0(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function ed(r,t){r.extend=t.extend}var t_=Math.round(Math.random()*10);function e_(r){var t=["__\0is_clz",t_++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function r_(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function i_(r,t,e){return this.superClass.prototype[t].apply(r,e)}function wo(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){Q0(n),i.prototype.type=n;var a=be(n);if(!a.sub)t[a.main]=i;else if(a.sub!==dr){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[dr]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=be(i),a=[],o=t[n.main];return o&&o[dr]?M(o,function(s,u){u!==dr&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=be(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return M(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=be(i),a=t[n.main];return a&&a[dr]};function e(i){var n=t[i.main];return(!n||!n[dr])&&(n=t[i.main]={},n[dr]=!0),n}}function bn(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var u=r[s][1];if(!(n&&it(n,u)>=0||a&&it(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var n_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],a_=bn(n_),o_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return a_(this,t,e)},r}(),bu=new On(50);function s_(r){if(typeof r=="string"){var t=bu.get(r);return t&&t.image}else return r}function rd(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=bu.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!So(t)&&a.pending.push(o)):(t=wi.loadImage(r,Gf,Gf),t.__zrImageSrc=r,bu.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Gf(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function So(r){return r&&r.width&&r.height}var vs=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function u_(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);a=id(e,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)nd(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function id(r,t,e,i){i=i||{};var n=O({},i);n.font=t,e=q(e,"..."),n.maxIterations=q(i.maxIterations,2);var a=n.minChar=q(i.minChar,0);n.cnCharWidth=qt("国",t);var o=n.ascCharWidth=qt("a",t);n.placeholder=q(i.placeholder,"");for(var s=r=Math.max(0,r-1),u=0;u<a&&s>=o;u++)s-=o;var l=qt(e,t);return l>s&&(e="",l=0),s=r-l,n.ellipsis=e,n.ellipsisWidth=l,n.contentWidth=s,n.containerWidth=r,n}function nd(r,t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i){r.textLine="",r.isTruncated=!1;return}var o=qt(t,n);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var u=s===0?l_(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=qt(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function l_(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function f_(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=cl(n),s=q(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=!1,h=t.width,c;h!=null&&(e==="break"||e==="breakAll")?c=r?ad(r,t.font,h,e==="breakAll",0).lines:[]:c=r?r.split(`
`):[];var v=c.length*s,d=q(t.height,v);if(v>d&&l){var y=Math.floor(d/s);f=f||c.length>y,c=c.slice(0,y)}if(r&&a&&h!=null)for(var p=id(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},_=0;_<c.length;_++)nd(g,c[_],p),c[_]=g.textLine,f=f||g.isTruncated;for(var m=d,w=0,_=0;_<c.length;_++)w=Math.max(qt(c[_],n),w);h==null&&(h=w);var T=w;return i&&(m+=i[0]+i[2],T+=i[1]+i[3],h+=i[1]+i[3]),u&&(T=h),{lines:c,height:d,outerWidth:T,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:v,width:h,isTruncated:f}}var h_=function(){function r(){}return r}(),Vf=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),v_=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function c_(r,t){var e=new v_;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=vs.lastIndex=0,u;(u=vs.exec(r))!=null;){var l=u.index;l>s&&cs(e,r.substring(s,l),t,o),cs(e,u[2],t,o,u[1]),s=vs.lastIndex}s<r.length&&cs(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",y=t.lineOverflow==="truncate",p={};function g(F,U,V){F.width=U,F.lineHeight=V,h+=V,c=Math.max(c,U)}t:for(var _=0;_<e.lines.length;_++){for(var m=e.lines[_],w=0,T=0,S=0;S<m.tokens.length;S++){var b=m.tokens[S],C=b.styleName&&t.rich[b.styleName]||{},x=b.textPadding=C.padding,D=x?x[1]+x[3]:0,A=b.font=C.font||t.font;b.contentHeight=cl(A);var P=q(C.height,b.contentHeight);if(b.innerHeight=P,x&&(P+=x[0]+x[2]),b.height=P,b.lineHeight=en(C.lineHeight,t.lineHeight,P),b.align=C&&C.align||t.align,b.verticalAlign=C&&C.verticalAlign||"middle",y&&n!=null&&h+b.lineHeight>n){var I=e.lines.length;S>0?(m.tokens=m.tokens.slice(0,S),g(m,T,w),e.lines=e.lines.slice(0,_+1)):e.lines=e.lines.slice(0,_),e.isTruncated=e.isTruncated||e.lines.length<I;break t}var L=C.width,R=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")b.percentWidth=L,f.push(b),b.contentWidth=qt(b.text,A);else{if(R){var E=C.backgroundColor,H=E&&E.image;H&&(H=s_(H),So(H)&&(b.width=Math.max(b.width,H.width*P/H.height)))}var B=d&&i!=null?i-T:null;B!=null&&B<b.width?!R||B<D?(b.text="",b.width=b.contentWidth=0):(u_(p,b.text,B-D,A,t.ellipsis,{minChar:t.truncateMinChar}),b.text=p.text,e.isTruncated=e.isTruncated||p.isTruncated,b.width=b.contentWidth=qt(b.text,A)):b.contentWidth=qt(b.text,A)}b.width+=D,T+=b.width,C&&(w=Math.max(w,b.lineHeight))}g(m,T,w)}e.outerWidth=e.width=q(i,c),e.outerHeight=e.height=q(n,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var _=0;_<f.length;_++){var b=f[_],k=b.percentWidth;b.width=parseInt(k,10)/100*e.width}return e}function cs(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,u=o.font||e.font,l=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=or(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
`),l=!0),i.accumWidth=d}else{var y=ad(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+v,h=y.linesWidths,f=y.lines}}else f=t.split(`
`);for(var p=0;p<f.length;p++){var g=f[p],_=new h_;if(_.styleName=n,_.text=g,_.isLineHolder=!g&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:qt(g,u),!p&&!l){var m=(s[s.length-1]||(s[0]=new Vf)).tokens,w=m.length;w===1&&m[0].isLineHolder?m[0]=_:(g||!w||a)&&m.push(_)}else s.push(new Vf([_]))}}function d_(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var p_=ar(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function g_(r){return d_(r)?!!p_[r]:!0}function ad(r,t,e,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=qt(c,t),d=i?!1:!g_(c);if(a.length?f+v>e:n+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var xu="__zr_style_"+Math.round(Math.random()*10),kr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},To={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};kr[xu]=!0;var Wf=["z","z2","invisible"],y_=["invisible"],Nn=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=ht(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&__(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new et(0,0,0,0)),i?et.applyTransform(e,n,i):e.copy(n),(o||s||u)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(u),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+u-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new et(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:O(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=qi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&qi)},t.prototype.styleUpdated=function(){this.__dirty&=~qi},t.prototype.createStyle=function(e){return go(kr,e)},t.prototype.useStyle=function(e){e[xu]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[xu]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Wf)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.style?o?a?l=i.style:(l=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(l,i.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(l,i.style)):u&&(l=n.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=ht(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=ht(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var y=this.__inHover?y_:Wf,c=0;c<y.length;c++){var v=y[c];i&&i[v]!=null?this[v]=i[v]:u&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return O(e,i),e},t.prototype.getAnimationStyleProps=function(){return To},t.initDefaultProps=function(){var e=t.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=$t|qi}(),t}(yo),ds=new et(0,0,0,0),ps=new et(0,0,0,0);function __(r,t,e){return ds.copy(r.getBoundingRect()),r.transform&&ds.applyTransform(r.transform),ps.width=t,ps.height=e,!ds.intersect(ps)}var ie=Math.min,ne=Math.max,gs=Math.sin,ys=Math.cos,pr=Math.PI*2,Kn=Si(),Qn=Si(),Jn=Si();function Uf(r,t,e,i,n,a){n[0]=ie(r,e),n[1]=ie(t,i),a[0]=ne(r,e),a[1]=ne(t,i)}var Yf=[],Xf=[];function m_(r,t,e,i,n,a,o,s,u,l){var f=Oc,h=Pt,c=f(r,e,n,o,Yf);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,n,o,Yf[v]);u[0]=ie(d,u[0]),l[0]=ne(d,l[0])}c=f(t,i,a,s,Xf);for(var v=0;v<c;v++){var y=h(t,i,a,s,Xf[v]);u[1]=ie(y,u[1]),l[1]=ne(y,l[1])}u[0]=ie(r,u[0]),l[0]=ne(r,l[0]),u[0]=ie(o,u[0]),l[0]=ne(o,l[0]),u[1]=ie(t,u[1]),l[1]=ne(t,l[1]),u[1]=ie(s,u[1]),l[1]=ne(s,l[1])}function w_(r,t,e,i,n,a,o,s){var u=kc,l=Bt,f=ne(ie(u(r,e,n),1),0),h=ne(ie(u(t,i,a),1),0),c=l(r,e,n,f),v=l(t,i,a,h);o[0]=ie(r,n,c),o[1]=ie(t,a,v),s[0]=ne(r,n,c),s[1]=ne(t,a,v)}function S_(r,t,e,i,n,a,o,s,u){var l=oi,f=si,h=Math.abs(n-a);if(h%pr<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,u[0]=r+e,u[1]=t+i;return}if(Kn[0]=ys(n)*e+r,Kn[1]=gs(n)*i+t,Qn[0]=ys(a)*e+r,Qn[1]=gs(a)*i+t,l(s,Kn,Qn),f(u,Kn,Qn),n=n%pr,n<0&&(n=n+pr),a=a%pr,a<0&&(a=a+pr),n>a&&!o?a+=pr:n<a&&o&&(n+=pr),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Jn[0]=ys(v)*e+r,Jn[1]=gs(v)*i+t,l(s,Jn,s),f(u,Jn,u))}var tt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},gr=[],yr=[],ge=[],Ue=[],ye=[],_e=[],_s=Math.min,ms=Math.max,_r=Math.cos,mr=Math.sin,Re=Math.abs,Cu=Math.PI,Ke=Cu*2,ws=typeof Float32Array<"u",Ri=[];function Ss(r){var t=Math.round(r/Cu*1e8)/1e8;return t%2*Cu}function od(r,t){var e=Ss(r[0]);e<0&&(e+=Ke);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=Ke?n=e+Ke:t&&e-n>=Ke?n=e-Ke:!t&&e>n?n=e+(Ke-Ss(e-n)):t&&e<n&&(n=e-(Ke-Ss(n-e))),r[0]=e,r[1]=n}var yi=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Re(i/qa/t)||0,this._uy=Re(i/qa/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(tt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Re(t-this._xi),n=Re(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(tt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(tt.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(tt.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Ri[0]=n,Ri[1]=a,od(Ri,o),n=Ri[0],a=Ri[1];var s=a-n;return this.addData(tt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=_r(a)*i+t,this._yi=mr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(tt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(tt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&ws&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();ws&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,i,n,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ws&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ge[0]=ge[1]=ye[0]=ye[1]=Number.MAX_VALUE,Ue[0]=Ue[1]=_e[0]=_e[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(e=t[o],i=t[o+1],n=e,a=i),s){case tt.M:e=n=t[o++],i=a=t[o++],ye[0]=n,ye[1]=a,_e[0]=n,_e[1]=a;break;case tt.L:Uf(e,i,t[o],t[o+1],ye,_e),e=t[o++],i=t[o++];break;case tt.C:m_(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],ye,_e),e=t[o++],i=t[o++];break;case tt.Q:w_(e,i,t[o++],t[o++],t[o],t[o+1],ye,_e),e=t[o++],i=t[o++];break;case tt.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var y=!t[o++];u&&(n=_r(v)*h+l,a=mr(v)*c+f),S_(l,f,h,c,v,d,y,ye,_e),e=_r(d)*h+l,i=mr(d)*c+f;break;case tt.R:n=e=t[o++],a=i=t[o++];var p=t[o++],g=t[o++];Uf(n,a,n+p,a+g,ye,_e);break;case tt.Z:e=n,i=a;break}oi(ge,ge,ye),si(Ue,Ue,_e)}return o===0&&(ge[0]=ge[1]=Ue[0]=Ue[1]=0),new et(ge[0],ge[1],Ue[0]-ge[0],Ue[1]-ge[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var y=-1;switch(v){case tt.M:a=s=t[c++],o=u=t[c++];break;case tt.L:{var p=t[c++],g=t[c++],_=p-a,m=g-o;(Re(_)>i||Re(m)>n||c===e-1)&&(y=Math.sqrt(_*_+m*m),a=p,o=g);break}case tt.C:{var w=t[c++],T=t[c++],p=t[c++],g=t[c++],S=t[c++],b=t[c++];y=qy(a,o,w,T,p,g,S,b,10),a=S,o=b;break}case tt.Q:{var w=t[c++],T=t[c++],p=t[c++],g=t[c++];y=Qy(a,o,w,T,p,g,10),a=p,o=g;break}case tt.A:var C=t[c++],x=t[c++],D=t[c++],A=t[c++],P=t[c++],I=t[c++],L=I+P;c+=1,d&&(s=_r(P)*D+C,u=mr(P)*A+x),y=ms(D,A)*_s(Ke,Math.abs(I)),a=_r(L)*D+C,o=mr(L)*A+x;break;case tt.R:{s=a=t[c++],u=o=t[c++];var R=t[c++],E=t[c++];y=R*2+E*2;break}case tt.Z:{var _=s-a,m=u-o;y=Math.sqrt(_*_+m*m),a=s,o=u;break}}y>=0&&(l[h++]=y,f+=y)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,y,p=0,g=0,_,m=0,w,T;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,_=e*y,!_)))t:for(var S=0;S<o;){var b=i[S++],C=S===1;switch(C&&(l=i[S],f=i[S+1],s=l,u=f),b!==tt.L&&m>0&&(t.lineTo(w,T),m=0),b){case tt.M:s=l=i[S++],u=f=i[S++],t.moveTo(l,f);break;case tt.L:{h=i[S++],c=i[S++];var x=Re(h-l),D=Re(c-f);if(x>n||D>a){if(v){var A=d[g++];if(p+A>_){var P=(_-p)/A;t.lineTo(l*(1-P)+h*P,f*(1-P)+c*P);break t}p+=A}t.lineTo(h,c),l=h,f=c,m=0}else{var I=x*x+D*D;I>m&&(w=h,T=c,m=I)}break}case tt.C:{var L=i[S++],R=i[S++],E=i[S++],H=i[S++],B=i[S++],k=i[S++];if(v){var A=d[g++];if(p+A>_){var P=(_-p)/A;Ya(l,L,E,B,P,gr),Ya(f,R,H,k,P,yr),t.bezierCurveTo(gr[1],yr[1],gr[2],yr[2],gr[3],yr[3]);break t}p+=A}t.bezierCurveTo(L,R,E,H,B,k),l=B,f=k;break}case tt.Q:{var L=i[S++],R=i[S++],E=i[S++],H=i[S++];if(v){var A=d[g++];if(p+A>_){var P=(_-p)/A;Xa(l,L,E,P,gr),Xa(f,R,H,P,yr),t.quadraticCurveTo(gr[1],yr[1],gr[2],yr[2]);break t}p+=A}t.quadraticCurveTo(L,R,E,H),l=E,f=H;break}case tt.A:var F=i[S++],U=i[S++],V=i[S++],ot=i[S++],mt=i[S++],Yt=i[S++],de=i[S++],Zt=!i[S++],Xt=V>ot?V:ot,St=Re(V-ot)>.001,pt=mt+Yt,Y=!1;if(v){var A=d[g++];p+A>_&&(pt=mt+Yt*(_-p)/A,Y=!0),p+=A}if(St&&t.ellipse?t.ellipse(F,U,V,ot,de,mt,pt,Zt):t.arc(F,U,Xt,mt,pt,Zt),Y)break t;C&&(s=_r(mt)*V+F,u=mr(mt)*ot+U),l=_r(pt)*V+F,f=mr(pt)*ot+U;break;case tt.R:s=l=i[S],u=f=i[S+1],h=i[S++],c=i[S++];var K=i[S++],pe=i[S++];if(v){var A=d[g++];if(p+A>_){var wt=_-p;t.moveTo(h,c),t.lineTo(h+_s(wt,K),c),wt-=K,wt>0&&t.lineTo(h+K,c+_s(wt,pe)),wt-=pe,wt>0&&t.lineTo(h+ms(K-wt,0),c+pe),wt-=K,wt>0&&t.lineTo(h,c+ms(pe-wt,0));break t}p+=A}t.rect(h,c,K,pe);break;case tt.Z:if(v){var A=d[g++];if(p+A>_){var P=(_-p)/A;t.lineTo(l*(1-P)+s*P,f*(1-P)+u*P);break t}p+=A}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=tt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function $r(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)u=(t-i)/(r-e),l=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function T_(r,t,e,i,n,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||l>r+h&&l>e+h&&l>n+h&&l>o+h||l<r-h&&l<e-h&&l<n-h&&l<o-h)return!1;var c=$y(r,t,e,i,n,a,o,s,l,f);return c<=h/2}function b_(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>i+l&&u>a+l||u<t-l&&u<i-l&&u<a-l||s>r+l&&s>e+l&&s>n+l||s<r-l&&s<e-l&&s<n-l)return!1;var f=Ky(r,t,e,i,n,a,s,u);return f<=l/2}var $f=Math.PI*2;function jn(r){return r%=$f,r<0&&(r+=$f),r}var Ei=Math.PI*2;function x_(r,t,e,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=r,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>e||f+l<e)return!1;if(Math.abs(i-n)%Ei<1e-4)return!0;if(a){var h=i;i=jn(n),n=jn(h)}else i=jn(i),n=jn(n);i>n&&(n+=Ei);var c=Math.atan2(u,s);return c<0&&(c+=Ei),c>=i&&c<=n||c+Ei>=i&&c+Ei<=n}function wr(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var u=o*(e-r)+r;return u===n?1/0:u>n?s:0}var Ye=yi.CMD,Sr=Math.PI*2,C_=1e-4;function D_(r,t){return Math.abs(r-t)<C_}var At=[-1,-1,-1],ee=[-1,-1];function M_(){var r=ee[0];ee[0]=ee[1],ee[1]=r}function A_(r,t,e,i,n,a,o,s,u,l){if(l>t&&l>i&&l>a&&l>s||l<t&&l<i&&l<a&&l<s)return 0;var f=Ec(t,i,a,s,l,At);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,y=0;y<f;y++){var p=At[y],g=p===0||p===1?.5:1,_=Pt(r,e,n,o,p);_<u||(c<0&&(c=Oc(t,i,a,s,ee),ee[1]<ee[0]&&c>1&&M_(),v=Pt(t,i,a,s,ee[0]),c>1&&(d=Pt(t,i,a,s,ee[1]))),c===2?p<ee[0]?h+=v<t?g:-g:p<ee[1]?h+=d<v?g:-g:h+=s<d?g:-g:p<ee[0]?h+=v<t?g:-g:h+=s<v?g:-g)}return h}function L_(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=Zy(t,i,a,s,At);if(u===0)return 0;var l=kc(t,i,a);if(l>=0&&l<=1){for(var f=0,h=Bt(t,i,a,l),c=0;c<u;c++){var v=At[c]===0||At[c]===1?.5:1,d=Bt(r,e,n,At[c]);d<o||(At[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=At[0]===0||At[0]===1?.5:1,d=Bt(r,e,n,At[0]);return d<o?0:a<t?v:-v}}function P_(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var u=Math.sqrt(e*e-s*s);At[0]=-u,At[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Sr-1e-4){i=0,n=Sr;var f=a?1:-1;return o>=At[0]+r&&o<=At[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Sr,n+=Sr);for(var c=0,v=0;v<2;v++){var d=At[v];if(d+r>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=Sr+y),(y>=i&&y<=n||y+Sr>=i&&y+Sr<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(f=-f),c+=f)}}return c}function sd(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var y=a[d++],p=d===1;switch(y===Ye.M&&d>1&&(e||(s+=wr(u,l,f,h,i,n))),p&&(u=a[d],l=a[d+1],f=u,h=l),y){case Ye.M:f=a[d++],h=a[d++],u=f,l=h;break;case Ye.L:if(e){if($r(u,l,a[d],a[d+1],t,i,n))return!0}else s+=wr(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Ye.C:if(e){if(T_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=A_(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Ye.Q:if(e){if(b_(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=L_(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Ye.A:var g=a[d++],_=a[d++],m=a[d++],w=a[d++],T=a[d++],S=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(T)*m+g,v=Math.sin(T)*w+_,p?(f=c,h=v):s+=wr(u,l,c,v,i,n);var C=(i-g)*w/m+g;if(e){if(x_(g,_,w,T,T+S,b,t,C,n))return!0}else s+=P_(g,_,w,T,T+S,b,C,n);u=Math.cos(T+S)*m+g,l=Math.sin(T+S)*w+_;break;case Ye.R:f=u=a[d++],h=l=a[d++];var x=a[d++],D=a[d++];if(c=f+x,v=h+D,e){if($r(f,h,c,h,t,i,n)||$r(c,h,c,v,t,i,n)||$r(c,v,f,v,t,i,n)||$r(f,v,f,h,t,i,n))return!0}else s+=wr(c,h,c,v,i,n),s+=wr(f,v,f,h,i,n);break;case Ye.Z:if(e){if($r(u,l,f,h,t,i,n))return!0}else s+=wr(u,l,f,h,i,n);u=f,l=h;break}}return!e&&!D_(l,h)&&(s+=wr(u,l,f,h,i,n)||0),s!==0}function I_(r,t,e){return sd(r,0,!1,t,e)}function R_(r,t,e,i){return sd(r,t,!0,e,i)}var ud=ut({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},kr),E_={style:ut({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},To.style)},Ts=wn.concat(["invisible","culling","z","z2","zlevel","parent"]),at=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(u){e.buildPath(u,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Ts.length;++s)n[Ts[s]]=this[Ts[s]];n.__dirty|=$t}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=ht(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(z(e)){var i=$a(e,0);return i>.5?wu:i>.2?g0:Su}else if(e)return Su}return wu},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=$a(e,0)<mu;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~ni},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new yi(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ni)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),R_(s,u/l,e,i)))return!0}if(this.hasFill())return I_(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ni,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:O(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ni)},t.prototype.createStyle=function(e){return go(ud,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=O({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=O({},n.shape),O(l,i.shape)):(l=O({},a?this.shape:n.shape),O(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=O({},this.shape);for(var f={},h=ht(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(e,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return E_},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(a){G(o,a);function o(s){var u=a.call(this,s)||this;return e.init&&e.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return J(e.style)},o.prototype.getDefaultShape=function(){return J(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=$t|qi|ni}(),t}(Nn),O_=ut({strokeFirst:!0,font:Fr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},ud),Qa=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return go(O_,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=Vc(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Nn);Qa.prototype.type="tspan";var k_=ut({x:0,y:0},kr),B_={style:ut({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},To.style)};function N_(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Hr=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return go(k_,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=N_(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return B_},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new et(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Nn);Hr.prototype.type="image";function F_(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-u,i),u!==0&&r.arc(e+n-u,i+u,u,-Math.PI/2,0),r.lineTo(e+n,i+a-l),l!==0&&r.arc(e+n-l,i+a-l,l,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var li=Math.round;function ld(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(li(i*2)===li(n*2)&&(r.x1=r.x2=Ir(i,s,!0)),li(a*2)===li(o*2)&&(r.y1=r.y2=Ir(a,s,!0))),r}}function fd(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Ir(i,s,!0),r.y=Ir(n,s,!0),r.width=Math.max(Ir(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Ir(n+o,s,!1)-r.y,o===0?0:1)),r}}function Ir(r,t,e){if(!t)return r;var i=li(r*2);return(i+li(t))%2===0?i/2:(i+(e?1:-1))/2}var z_=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),H_={},Ht=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new z_},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=fd(H_,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?F_(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(at);Ht.prototype.type="rect";var qf={fill:"#000"},Zf=2,G_={style:ut({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},To.style)},Wt=function(r){G(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=qf,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,X_(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new et(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],u=s.getBoundingRect(),l=s.getLocalTransform(n);l?(e.copy(u),e.applyTransform(l),a=a||e.clone(),a.union(e)):(a=a||u.clone(),a.union(u))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||qf},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return O(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=ht(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},O(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return G_},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||Fr,n=e.padding,a=rh(e),o=f_(a,e),s=bs(e),u=!!e.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var y=e.x||0,p=e.y||0,g=e.align||d.align||"left",_=e.verticalAlign||d.verticalAlign||"top",m=y,w=ai(p,o.contentHeight,_);if(s||n){var T=Ki(y,f,g),S=ai(p,l,_);s&&this._renderBackground(e,e,T,S,f,l)}w+=v/2,n&&(m=eh(y,g,n),_==="top"?w+=n[0]:_==="bottom"&&(w-=n[2]));for(var b=0,C=!1,x=th("fill"in e?e.fill:(C=!0,d.fill)),D=jf("stroke"in e?e.stroke:!u&&(!d.autoStroke||C)?(b=Zf,d.stroke):null),A=e.textShadowBlur>0,P=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,L=0;L<c.length;L++){var R=this._getOrCreateChild(Qa),E=R.createStyle();R.useStyle(E),E.text=c[L],E.x=m,E.y=w,E.textAlign=g,E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=D,E.fill=x,D&&(E.lineWidth=e.lineWidth||b,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=i,Qf(E,e),w+=v,P&&R.setBoundingRect(new et(Ki(E.x,h,E.textAlign),ai(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var e=this.style,i=rh(e),n=c_(i,e),a=n.width,o=n.outerWidth,s=n.outerHeight,u=e.padding,l=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var d=Ki(l,o,c),y=ai(f,s,v),p=d,g=y;u&&(p+=u[3],g+=u[0]);var _=p+a;bs(e)&&this._renderBackground(e,e,d,y,o,s);for(var m=!!e.backgroundColor,w=0;w<n.lines.length;w++){for(var T=n.lines[w],S=T.tokens,b=S.length,C=T.lineHeight,x=T.width,D=0,A=p,P=_,I=b-1,L=void 0;D<b&&(L=S[D],!L.align||L.align==="left");)this._placeToken(L,e,C,g,A,"left",m),x-=L.width,A+=L.width,D++;for(;I>=0&&(L=S[I],L.align==="right");)this._placeToken(L,e,C,g,P,"right",m),x-=L.width,P-=L.width,I--;for(A+=(a-(A-p)-(_-P)-x)/2;D<=I;)L=S[D],this._placeToken(L,e,C,g,A+L.width/2,"center",m),A+=L.width,D++;g+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,u){var l=i.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&bs(l);c&&this._renderBackground(l,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=eh(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var y=this._getOrCreateChild(Qa),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,_=!1,m=0,w=th("fill"in l?l.fill:"fill"in i?i.fill:(_=!0,g.fill)),T=jf("stroke"in l?l.stroke:"stroke"in i?i.stroke:!v&&!u&&(!g.autoStroke||_)?(m=Zf,g.stroke):null),S=l.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,S&&(p.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,p.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Fr,p.opacity=en(l.opacity,i.opacity,1),Qf(p,l),T&&(p.lineWidth=en(l.lineWidth,i.lineWidth,m),p.lineDash=q(l.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=T),w&&(p.fill=w);var b=e.contentWidth,C=e.contentHeight;y.setBoundingRect(new et(Ki(p.x,b,p.textAlign),ai(p.y,C,p.textBaseline),b,C))},t.prototype._renderBackground=function(e,i,n,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,y,p;if(c||e.lineHeight||l&&f){y=this._getOrCreateChild(Ht),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(c){var _=y.style;_.fill=u||null,_.fillOpacity=q(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Hr),p.onload=function(){d.dirtyStyle()};var m=p.style;m.image=u.image,m.x=n,m.y=a,m.width=o,m.height=s}if(l&&f){var _=y.style;_.lineWidth=l,_.stroke=f,_.strokeOpacity=q(e.strokeOpacity,1),_.lineDash=e.borderDash,_.lineDashOffset=e.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var w=(y||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=en(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return Y_(e)&&(i=[e.fontStyle,e.fontWeight,U_(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Te(i)||e.textFont||e.font},t}(Nn),V_={left:!0,right:1,center:1},W_={top:1,bottom:1,middle:1},Kf=["fontStyle","fontWeight","fontSize","fontFamily"];function U_(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?rl+"px":r+"px"}function Qf(r,t){for(var e=0;e<Kf.length;e++){var i=Kf[e],n=t[i];n!=null&&(r[i]=n)}}function Y_(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function X_(r){return Jf(r),M(r.rich,Jf),r}function Jf(r){if(r){r.font=Wt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||V_[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||W_[e]?e:"top";var i=r.padding;i&&(r.padding=wc(r.padding))}}function jf(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function th(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function eh(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function rh(r){var t=r.text;return t!=null&&(t+=""),t}function bs(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var lt=_t(),$_=function(r,t,e,i){if(i){var n=lt(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=lt(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},ih=1,nh={},hd=_t(),_l=_t(),vd=0,ml=1,wl=2,De=["emphasis","blur","select"],Ja=["normal","emphasis","blur","select"],q_=10,Z_=9,Br="highlight",Ea="downplay",un="select",Oa="unselect",ln="toggleSelect";function qr(r){return r!=null&&r!=="none"}function bo(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function cd(r){bo(r,"emphasis",wl)}function dd(r){r.hoverState===wl&&bo(r,"normal",vd)}function Sl(r){bo(r,"blur",ml)}function pd(r){r.hoverState===ml&&bo(r,"normal",vd)}function K_(r){r.selected=!0}function Q_(r){r.selected=!1}function ah(r,t,e){t(r,e)}function Ve(r,t,e){ah(r,t,e),r.isGroup&&r.traverse(function(i){ah(i,t,e)})}function J_(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??i[s]}for(var o=0;o<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function j_(r,t,e,i){var n=e&&it(e,"select")>=0,a=!1;if(r instanceof at){var o=hd(r),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(qr(s)||qr(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=O({},i),l=O({},l),l.fill=s):!qr(l.fill)&&qr(s)?(a=!0,i=O({},i),l=O({},l),l.fill=Df(s)):!qr(l.stroke)&&qr(u)&&(a||(i=O({},i),l=O({},l)),l.stroke=Df(u)),i.style=l}}if(i&&i.z2==null){a||(i=O({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??q_)}return i}function tm(r,t,e){if(e&&e.z2==null){e=O({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??Z_)}return e}function em(r,t,e){var i=it(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:J_(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:i?n:a.opacity*.1},o),e.style=o),e}function xs(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return j_(this,r,t,e);if(r==="blur")return em(this,r,e);if(r==="select")return tm(this,r,e)}return e}function rm(r){r.stateProxy=xs;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=xs),e&&(e.stateProxy=xs)}function oh(r,t){!md(r,t)&&!r.__highByOuter&&Ve(r,cd)}function sh(r,t){!md(r,t)&&!r.__highByOuter&&Ve(r,dd)}function Du(r,t){r.__highByOuter|=1<<(t||0),Ve(r,cd)}function Mu(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Ve(r,dd)}function im(r){Ve(r,Sl)}function gd(r){Ve(r,pd)}function yd(r){Ve(r,K_)}function _d(r){Ve(r,Q_)}function md(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function wd(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=_l(a),s=n==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){pd(l)}),s&&e.push(a)),o.isBlured=!1}),M(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Au(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&gd(c)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];n.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Sl(p)}),Gt(t))a(l.getData(),t);else if(W(t))for(var d=ht(t),y=0;y<d.length;y++)a(l.getData(d[y]),t[d[y]]);u.push(l),_l(l).isBlured=!0}}),n.eachComponent(function(l,f){if(l!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,n)}})}}function Lu(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){_l(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Sl(a)})}}}function nm(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=kn(n,t);a=(N(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),u=0;!o&&u<s;)o=n.getItemGraphicEl(u++);if(o){var l=lt(o);Au(i,l.focus,l.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Au(i,f,h,e)}}}function Tl(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),u,l=0;l<s.length;l++)if(lt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function am(r,t,e){var i=lt(r),n=Tl(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&Lu(i.componentMainType,i.componentIndex,e),M(a,function(s){return oh(s,t)})):(Au(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&Lu(i.componentMainType,i.componentIndex,e),oh(r,t))}function om(r,t,e){wd(e);var i=lt(r),n=Tl(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?M(n,function(a){return sh(a,t)}):sh(r,t)}function sm(r,t,e){if(Ru(t)){var i=t.dataType,n=r.getData(i),a=kn(n,t);N(a)||(a=[a]),r[t.type===ln?"toggleSelect":t.type===un?"select":"unselect"](a,i)}}function uh(r){var t=r.getAllData();M(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?yd(a):_d(a)})})}function um(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();M(i,function(n){n.data;var a=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Pu(r,t,e){Sd(r,!0),Ve(r,rm),hm(r,t,e)}function lm(r){Sd(r,!1)}function fm(r,t,e,i){i?lm(r):Pu(r,t,e)}function hm(r,t,e){var i=lt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var lh=["emphasis","blur","select"],vm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cm(r,t,e,i){e=e||"itemStyle";for(var n=0;n<lh.length;n++){var a=lh[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[vm[e]]()}}function Sd(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Iu(r){return!!(r&&r.__highDownDispatcher)}function dm(r){var t=nh[r];return t==null&&ih<=32&&(t=nh[r]=ih++),t}function Ru(r){var t=r.type;return t===un||t===Oa||t===ln}function fh(r){var t=r.type;return t===Br||t===Ea}function pm(r){var t=hd(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Zr=yi.CMD,gm=[[],[],[]],hh=Math.sqrt,ym=Math.atan2;function _m(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,u,l,f=Zr.M,h=Zr.C,c=Zr.L,v=Zr.R,d=Zr.A,y=Zr.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case y:a=2;break;case d:var p=t[4],g=t[5],_=hh(t[0]*t[0]+t[1]*t[1]),m=hh(t[2]*t[2]+t[3]*t[3]),w=ym(-t[1]/m,t[0]/_);e[o]*=_,e[o++]+=p,e[o]*=m,e[o++]+=g,e[o++]*=_,e[o++]*=m,e[o++]+=w,e[o++]+=w,o+=2,s=o;break;case v:l[0]=e[o++],l[1]=e[o++],xe(l,l,t),e[s++]=l[0],e[s++]=l[1],l[0]+=e[o++],l[1]+=e[o++],xe(l,l,t),e[s++]=l[0],e[s++]=l[1]}for(u=0;u<a;u++){var T=gm[u];T[0]=e[o++],T[1]=e[o++],xe(T,T,t),e[s++]=T[0],e[s++]=T[1]}}r.increaseVersion()}}var Cs=Math.sqrt,ta=Math.sin,ea=Math.cos,Oi=Math.PI;function vh(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Eu(r,t){return(r[0]*t[0]+r[1]*t[1])/(vh(r)*vh(t))}function ch(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Eu(r,t))}function dh(r,t,e,i,n,a,o,s,u,l,f){var h=u*(Oi/180),c=ea(h)*(r-e)/2+ta(h)*(t-i)/2,v=-1*ta(h)*(r-e)/2+ea(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Cs(d),s*=Cs(d));var y=(n===a?-1:1)*Cs((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=y*o*v/s,g=y*-s*c/o,_=(r+e)/2+ea(h)*p-ta(h)*g,m=(t+i)/2+ta(h)*p+ea(h)*g,w=ch([1,0],[(c-p)/o,(v-g)/s]),T=[(c-p)/o,(v-g)/s],S=[(-1*c-p)/o,(-1*v-g)/s],b=ch(T,S);if(Eu(T,S)<=-1&&(b=Oi),Eu(T,S)>=1&&(b=0),b<0){var C=Math.round(b/Oi*1e6)/1e6;b=Oi*2+C%2*Oi}f.addData(l,_,m,o,s,w,b,h,a)}var mm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,wm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Sm(r){var t=new yi;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=yi.CMD,u=r.match(mm);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(wm)||[],d=v.length,y=0;y<d;y++)v[y]=parseFloat(v[y]);for(var p=0;p<d;){var g=void 0,_=void 0,m=void 0,w=void 0,T=void 0,S=void 0,b=void 0,C=e,x=i,D=void 0,A=void 0;switch(h){case"l":e+=v[p++],i+=v[p++],c=s.L,t.addData(c,e,i);break;case"L":e=v[p++],i=v[p++],c=s.L,t.addData(c,e,i);break;case"m":e+=v[p++],i+=v[p++],c=s.M,t.addData(c,e,i),n=e,a=i,h="l";break;case"M":e=v[p++],i=v[p++],c=s.M,t.addData(c,e,i),n=e,a=i,h="L";break;case"h":e+=v[p++],c=s.L,t.addData(c,e,i);break;case"H":e=v[p++],c=s.L,t.addData(c,e,i);break;case"v":i+=v[p++],c=s.L,t.addData(c,e,i);break;case"V":i=v[p++],c=s.L,t.addData(c,e,i);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),e=v[p-2],i=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+e,v[p++]+i,v[p++]+e,v[p++]+i,v[p++]+e,v[p++]+i),e+=v[p-2],i+=v[p-1];break;case"S":g=e,_=i,D=t.len(),A=t.data,o===s.C&&(g+=e-A[D-4],_+=i-A[D-3]),c=s.C,C=v[p++],x=v[p++],e=v[p++],i=v[p++],t.addData(c,g,_,C,x,e,i);break;case"s":g=e,_=i,D=t.len(),A=t.data,o===s.C&&(g+=e-A[D-4],_+=i-A[D-3]),c=s.C,C=e+v[p++],x=i+v[p++],e+=v[p++],i+=v[p++],t.addData(c,g,_,C,x,e,i);break;case"Q":C=v[p++],x=v[p++],e=v[p++],i=v[p++],c=s.Q,t.addData(c,C,x,e,i);break;case"q":C=v[p++]+e,x=v[p++]+i,e+=v[p++],i+=v[p++],c=s.Q,t.addData(c,C,x,e,i);break;case"T":g=e,_=i,D=t.len(),A=t.data,o===s.Q&&(g+=e-A[D-4],_+=i-A[D-3]),e=v[p++],i=v[p++],c=s.Q,t.addData(c,g,_,e,i);break;case"t":g=e,_=i,D=t.len(),A=t.data,o===s.Q&&(g+=e-A[D-4],_+=i-A[D-3]),e+=v[p++],i+=v[p++],c=s.Q,t.addData(c,g,_,e,i);break;case"A":m=v[p++],w=v[p++],T=v[p++],S=v[p++],b=v[p++],C=e,x=i,e=v[p++],i=v[p++],c=s.A,dh(C,x,e,i,S,b,m,w,T,c,t);break;case"a":m=v[p++],w=v[p++],T=v[p++],S=v[p++],b=v[p++],C=e,x=i,e+=v[p++],i+=v[p++],c=s.A,dh(C,x,e,i,S,b,m,w,T,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=n,i=a),o=c}return t.toStatic(),t}var Td=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(at);function bd(r){return r.setData!=null}function xd(r,t){var e=Sm(r),i=O({},t);return i.buildPath=function(n){if(bd(n)){n.setData(e.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;e.rebuildPath(a,1)}},i.applyTransform=function(n){_m(e,n),this.dirtyShape()},i}function Tm(r,t){return new Td(xd(r,t))}function bm(r,t){var e=xd(r,t),i=function(n){G(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(Td);return i}function xm(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new at(t);return o.createPathProxy(),o.buildPath=function(s){if(bd(s)){s.appendPath(e);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var Cm=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),xo=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Cm},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(at);xo.prototype.type="circle";var Dm=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),bl=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Dm},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),e.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),e.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),e.closePath()},t}(at);bl.prototype.type="ellipse";var Cd=Math.PI,Ds=Cd*2,Tr=Math.sin,Kr=Math.cos,Mm=Math.acos,xt=Math.atan2,ph=Math.abs,fn=Math.sqrt,Qi=Math.max,me=Math.min,ue=1e-4;function Am(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,c=h*u-f*l;if(!(c*c<ue))return c=(f*(t-a)-h*(r-n))/c,[r+c*u,t+c*l]}function ra(r,t,e,i,n,a,o){var s=r-e,u=t-i,l=(o?a:-a)/fn(s*s+u*u),f=l*u,h=-l*s,c=r+f,v=t+h,d=e+f,y=i+h,p=(c+d)/2,g=(v+y)/2,_=d-c,m=y-v,w=_*_+m*m,T=n-a,S=c*y-d*v,b=(m<0?-1:1)*fn(Qi(0,T*T*w-S*S)),C=(S*m-_*b)/w,x=(-S*_-m*b)/w,D=(S*m+_*b)/w,A=(-S*_+m*b)/w,P=C-p,I=x-g,L=D-p,R=A-g;return P*P+I*I>L*L+R*R&&(C=D,x=A),{cx:C,cy:x,x0:-f,y0:-h,x1:C*(n/T-1),y1:x*(n/T-1)}}function Lm(r){var t;if(N(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Pm(r,t){var e,i=Qi(t.r,0),n=Qi(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=ph(l-u),d=v>Ds&&v%Ds;if(d>ue&&(v=d),!(i>ue))r.moveTo(f,h);else if(v>Ds-ue)r.moveTo(f+i*Kr(u),h+i*Tr(u)),r.arc(f,h,i,u,l,!c),n>ue&&(r.moveTo(f+n*Kr(l),h+n*Tr(l)),r.arc(f,h,n,l,u,c));else{var y=void 0,p=void 0,g=void 0,_=void 0,m=void 0,w=void 0,T=void 0,S=void 0,b=void 0,C=void 0,x=void 0,D=void 0,A=void 0,P=void 0,I=void 0,L=void 0,R=i*Kr(u),E=i*Tr(u),H=n*Kr(l),B=n*Tr(l),k=v>ue;if(k){var F=t.cornerRadius;F&&(e=Lm(F),y=e[0],p=e[1],g=e[2],_=e[3]);var U=ph(i-n)/2;if(m=me(U,g),w=me(U,_),T=me(U,y),S=me(U,p),x=b=Qi(m,w),D=C=Qi(T,S),(b>ue||C>ue)&&(A=i*Kr(l),P=i*Tr(l),I=n*Kr(u),L=n*Tr(u),v<Cd)){var V=Am(R,E,I,L,A,P,H,B);if(V){var ot=R-V[0],mt=E-V[1],Yt=A-V[0],de=P-V[1],Zt=1/Tr(Mm((ot*Yt+mt*de)/(fn(ot*ot+mt*mt)*fn(Yt*Yt+de*de)))/2),Xt=fn(V[0]*V[0]+V[1]*V[1]);x=me(b,(i-Xt)/(Zt+1)),D=me(C,(n-Xt)/(Zt-1))}}}if(!k)r.moveTo(f+R,h+E);else if(x>ue){var St=me(g,x),pt=me(_,x),Y=ra(I,L,R,E,i,St,c),K=ra(A,P,H,B,i,pt,c);r.moveTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),x<b&&St===pt?r.arc(f+Y.cx,h+Y.cy,x,xt(Y.y0,Y.x0),xt(K.y0,K.x0),!c):(St>0&&r.arc(f+Y.cx,h+Y.cy,St,xt(Y.y0,Y.x0),xt(Y.y1,Y.x1),!c),r.arc(f,h,i,xt(Y.cy+Y.y1,Y.cx+Y.x1),xt(K.cy+K.y1,K.cx+K.x1),!c),pt>0&&r.arc(f+K.cx,h+K.cy,pt,xt(K.y1,K.x1),xt(K.y0,K.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,i,u,l,!c);if(!(n>ue)||!k)r.lineTo(f+H,h+B);else if(D>ue){var St=me(y,D),pt=me(p,D),Y=ra(H,B,A,P,n,-pt,c),K=ra(R,E,I,L,n,-St,c);r.lineTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),D<C&&St===pt?r.arc(f+Y.cx,h+Y.cy,D,xt(Y.y0,Y.x0),xt(K.y0,K.x0),!c):(pt>0&&r.arc(f+Y.cx,h+Y.cy,pt,xt(Y.y0,Y.x0),xt(Y.y1,Y.x1),!c),r.arc(f,h,n,xt(Y.cy+Y.y1,Y.cx+Y.x1),xt(K.cy+K.y1,K.cx+K.x1),c),St>0&&r.arc(f+K.cx,h+K.cy,St,xt(K.y1,K.x1),xt(K.y0,K.x0),!c))}else r.lineTo(f+H,h+B),r.arc(f,h,n,l,u,c)}r.closePath()}}}var Im=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Fn=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Im},t.prototype.buildPath=function(e,i){Pm(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(at);Fn.prototype.type="sector";var Rm=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),xl=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Rm},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(at);xl.prototype.type="ring";function Em(r,t,e,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)oi(f,f,r[c]),si(h,h,r[c]);oi(f,f,i[0]),si(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)u=r[c?c-1:v-1],l=r[(c+1)%v];else if(c===0||c===v-1){n.push(gy(r[c]));continue}else u=r[c-1],l=r[c+1];yy(a,l,u),Wo(a,a,t);var y=su(d,u),p=su(d,l),g=y+p;g!==0&&(y/=g,p/=g),Wo(o,a,-y),Wo(s,a,p);var _=uf([],d,o),m=uf([],d,s);i&&(si(_,_,f),oi(_,_,h),si(m,m,f),oi(m,m,h)),n.push(_),n.push(m)}return e&&n.push(n.shift()),n}function Dd(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=Em(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Om=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Cl=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Om},t.prototype.buildPath=function(e,i){Dd(e,i,!0)},t}(at);Cl.prototype.type="polygon";var km=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),zn=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new km},t.prototype.buildPath=function(e,i){Dd(e,i,!1)},t}(at);zn.prototype.type="polyline";var Bm={},Nm=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),Ti=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Nm},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=ld(Bm,i,this.style);n=u.x1,a=u.y1,o=u.x2,s=u.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var l=i.percent;l!==0&&(e.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t}(at);Ti.prototype.type="line";var Rt=[],Fm=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function gh(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?mf:Pt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?mf:Pt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?wf:Bt)(r.x1,r.cpx1,r.x2,t),(e?wf:Bt)(r.y1,r.cpy1,r.y2,t)]}var Dl=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fm},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,u=i.cpx1,l=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(n,a),f==null||h==null?(c<1&&(Xa(n,u,o,c,Rt),u=Rt[1],o=Rt[2],Xa(a,l,s,c,Rt),l=Rt[1],s=Rt[2]),e.quadraticCurveTo(u,l,o,s)):(c<1&&(Ya(n,u,f,o,c,Rt),u=Rt[1],f=Rt[2],o=Rt[3],Ya(a,l,h,s,c,Rt),l=Rt[1],h=Rt[2],s=Rt[3]),e.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(e){return gh(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=gh(this.shape,e,!0);return wy(i,i)},t}(at);Dl.prototype.type="bezier-curve";var zm=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Co=function(r){G(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zm},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,u=i.endAngle,l=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,u,!l)},t}(at);Co.prototype.type="arc";var Hm=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),at.prototype.getBoundingRect.call(this)},t}(at),Md=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),Gm=function(r){G(t,r);function t(e,i,n,a,o,s){var u=r.call(this,o)||this;return u.x=e??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t}(Md),Vm=function(r){G(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(Md),br=[0,0],xr=[0,0],ia=new $,na=new $,ja=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new $;for(var i=0;i<2;i++)this._axes[i]=new $;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,u),i[3].set(a,u),e)for(var l=0;l<4;l++)i[l].transform(e);$.sub(n[0],i[1],i[0]),$.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,n=!e;return ia.set(1/0,1/0),na.set(0,0),!this._intersectCheckOneSide(this,t,ia,na,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,ia,na,n,-1)&&(i=!1,n)||n||$.copy(e,i?ia:na),i},r.prototype._intersectCheckOneSide=function(t,e,i,n,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,br),this._getProjMinMaxOnAxis(u,e._corners,xr),br[1]<xr[0]||br[0]>xr[1]){if(s=!1,a)return s;var f=Math.abs(xr[0]-br[1]),h=Math.abs(br[0]-xr[1]);Math.min(f,h)>n.len()&&(f<h?$.scale(n,l,-f*o):$.scale(n,l,h*o))}else if(i){var f=Math.abs(xr[0]-br[1]),h=Math.abs(br[0]-xr[1]);Math.min(f,h)<i.len()&&(f<h?$.scale(i,l,f*o):$.scale(i,l,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,u=o,l=1;l<e.length;l++){var f=e[l].dot(n)+a[t];s=Math.min(f,s),u=Math.max(f,u)}i[0]=s,i[1]=u},r}(),Wm=[],Um=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new et(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(Wm)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t}(Nn),Ym=_t();function Xm(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=r==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=q(i.duration,200),f=q(i.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),j(h)&&(h=h(e,n)),j(l)&&(l=l(e));var c={duration:l||0,delay:h,easing:f};return c}else return null}function Ml(r,t,e,i,n,a,o){var s=!1,u;j(n)?(o=a,a=n,n=null):W(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var f=Xm(r,i,n,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function _i(r,t,e,i,n,a){Ml("update",r,t,e,i,n,a)}function ka(r,t,e,i,n,a){Ml("enter",r,t,e,i,n,a)}function hn(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Ad(r,t,e,i,n,a){hn(r)||Ml("leave",r,t,e,i,n,a)}function yh(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Ad(r,{style:{opacity:0}},t,e,i)}function Ld(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||yh(n,t,e,i)}):yh(r,t,e,i)}function $m(r){Ym(r).oldStyle=r.style}var to=Math.max,eo=Math.min,Ou={};function qm(r){return at.extend(r)}var Zm=bm;function Km(r,t){return Zm(r,t)}function ve(r,t){Ou[r]=t}function Qm(r){if(Ou.hasOwnProperty(r))return Ou[r]}function Al(r,t,e,i){var n=Tm(r,t);return e&&(i==="center"&&(e=Id(e,n.getBoundingRect())),Rd(n,e)),n}function Pd(r,t,e){var i=new Hr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(Id(t,a))}}});return i}function Id(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Jm=xm;function Rd(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function Ll(r,t){return ld(r,r,{lineWidth:t}),r}function jm(r){return fd(r.shape,r.shape,r.style),r}var t1=Ir;function e1(r,t){for(var e=ul([]);r&&r!==t;)vi(e,r.getLocalTransform(),e),r=r.parent;return e}function Pl(r,t,e){return t&&!Gt(t)&&(t=vl.getLocalTransform(t)),e&&(t=Dc([],t)),xe([],r,t)}function r1(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=Pl(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function _h(r){return!r.isGroup}function i1(r){return r.shape!=null}function n1(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(u){_h(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return i1(o)&&(s.shape=O({},o.shape)),s}var a=i(r);t.traverse(function(o){if(_h(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),_i(o,u,e,lt(o).dataIndex)}}})}function a1(r,t){return Z(r,function(e){var i=e[0];i=to(i,t.x),i=eo(i,t.x+t.width);var n=e[1];return n=to(n,t.y),n=eo(n,t.y+t.height),[i,n]})}function o1(r,t){var e=to(r.x,t.x),i=eo(r.x+r.width,t.x+t.width),n=to(r.y,t.y),a=eo(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function Il(r,t,e){var i=O({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ut(n,e),new Hr(i)):Al(r.replace("path://",""),i,e,"center")}function s1(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(Ed(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function Ed(r,t,e,i,n,a,o,s){var u=e-r,l=i-t,f=o-n,h=s-a,c=Ms(f,h,u,l);if(u1(c))return!1;var v=r-n,d=t-a,y=Ms(v,d,u,l)/c;if(y<0||y>1)return!1;var p=Ms(v,d,f,h)/c;return!(p<0||p>1)}function Ms(r,t,e,i){return r*i-e*t}function u1(r){return r<=1e-6&&r>=-1e-6}function Do(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&M(ht(u),function(f){zr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=lt(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:ut({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function mh(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Od(r,t){if(r)if(N(r))for(var e=0;e<r.length;e++)mh(r[e],t);else mh(r,t)}ve("circle",xo);ve("ellipse",bl);ve("sector",Fn);ve("ring",xl);ve("polygon",Cl);ve("polyline",zn);ve("rect",Ht);ve("line",Ti);ve("bezierCurve",Dl);ve("arc",Co);const l1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Co,BezierCurve:Dl,BoundingRect:et,Circle:xo,CompoundPath:Hm,Ellipse:bl,Group:he,Image:Hr,IncrementalDisplayable:Um,Line:Ti,LinearGradient:Gm,OrientedBoundingRect:ja,Path:at,Point:$,Polygon:Cl,Polyline:zn,RadialGradient:Vm,Rect:Ht,Ring:xl,Sector:Fn,Text:Wt,applyTransform:Pl,clipPointsByRect:a1,clipRectByRect:o1,createIcon:Il,extendPath:Km,extendShape:qm,getShapeClass:Qm,getTransform:e1,groupTransition:n1,initProps:ka,isElementRemoved:hn,lineLineIntersect:Ed,linePolygonIntersect:s1,makeImage:Pd,makePath:Al,mergePath:Jm,registerShape:ve,removeElement:Ad,removeElementWithFadeOut:Ld,resizePath:Rd,setTooltipConfig:Do,subPixelOptimize:t1,subPixelOptimizeLine:Ll,subPixelOptimizeRect:jm,transformDirection:r1,traverseElements:Od,updateProps:_i},Symbol.toStringTag,{value:"Module"}));var Mo={};function f1(r,t){for(var e=0;e<De.length;e++){var i=De[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function wh(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=j(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var u={normal:s},l=0;l<De.length;l++){var f=De[l],h=t[f];u[f]=q(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function kd(r,t,e,i){e=e||Mo;for(var n=r instanceof Wt,a=!1,o=0;o<Ja.length;o++){var s=t[Ja[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?r:r.getTextContent();if(a){n||(u||(u=new Wt,r.setTextContent(u)),r.stateProxy&&(u.stateProxy=r.stateProxy));var l=wh(e,t),f=t.normal,h=!!f.getShallow("show"),c=mi(f,i,e,!1,!n);c.text=l.normal,n||r.setTextConfig(Sh(f,e,!1));for(var o=0;o<De.length;o++){var v=De[o],s=t[v];if(s){var d=u.ensureState(v),y=!!q(s.getShallow("show"),h);if(y!==h&&(d.ignore=!y),d.style=mi(s,i,e,!0,!n),d.style.text=l[v],!n){var p=r.ensureState(v);p.textConfig=Sh(s,e,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),e.enableTextSetter&&(Bd(u).setLabelText=function(g){var _=wh(e,t,g);f1(u,_)})}else u&&(u.ignore=!0);r.dirty()}function h1(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<De.length;i++){var n=De[i];e[n]=r.getModel([n,t])}return e}function mi(r,t,e,i,n){var a={};return v1(a,r,e,i,n),t&&O(a,t),a}function Sh(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=q(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function v1(r,t,e,i,n){e=e||Mo;var a=t.ecModel,o=a&&a.option.textStyle,s=c1(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);Ch(u[l]={},f,o,e,i,n,!1,!0)}}u&&(r.rich=u);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),Ch(r,t,o,e,i,n,!0,!1)}function c1(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Mo).rich;if(e){t=t||{};for(var i=ht(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var Th=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bh=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],xh=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ch(r,t,e,i,n,a,o,s){e=!n&&e||Mo;var u=i&&i.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=q(t.getShallow("opacity"),e.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||e.color,f=f||e.textBorderColor),l!=null&&(r.fill=l),f!=null&&(r.stroke=f);var c=q(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=q(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=q(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<Th.length;y++){var p=Th[y],g=q(t.getShallow(p),e[p]);g!=null&&(r[p]=g)}for(var y=0;y<bh.length;y++){var p=bh[y],g=t.getShallow(p);g!=null&&(r[p]=g)}if(r.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(r.verticalAlign=_)}if(!o||!i.disableBox){for(var y=0;y<xh.length;y++){var p=xh[y],g=t.getShallow(p);g!=null&&(r[p]=g)}var m=t.getShallow("borderType");m!=null&&(r.borderDash=m),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&u&&(r.backgroundColor=u),(r.borderColor==="auto"||r.borderColor==="inherit")&&u&&(r.borderColor=u)}}function d1(r,t){var e=t&&t.getModel("textStyle");return Te([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Bd=_t();function SC(r,t,e,i){if(r){var n=Bd(r);n.prevValue=n.value,n.value=e;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}var p1=["textStyle","color"],As=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ls=new Wt,g1=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(p1):null)},r.prototype.getFont=function(){return d1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<As.length;i++)e[As[i]]=this.getShallow(As[i]);return Ls.useStyle(e),Ls.update(),Ls.getBoundingRect()},r}(),Nd=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],y1=bn(Nd),_1=function(){function r(){}return r.prototype.getLineStyle=function(t){return y1(this,t)},r}(),Fd=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],m1=bn(Fd),w1=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return m1(this,t,e)},r}(),dt=function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){ft(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(J(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!X.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r}();yl(dt);e_(dt);Ge(dt,_1);Ge(dt,w1);Ge(dt,o_);Ge(dt,g1);var S1=Math.round(Math.random()*10);function Ao(r){return[r||"",S1++].join("_")}function T1(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=be(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=be(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function b1(r,t){r.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=e(o),f=l.graph,h=l.noEntryList,c={};for(M(a,function(_){c[_]=!0});h.length;){var v=h.pop(),d=f[v],y=!!c[v];y&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),M(d.successor,y?g:p)}M(c,function(){var _="";throw new Error(_)});function p(_){f[_].entryCount--,f[_].entryCount===0&&h.push(_)}function g(_){c[_]=!0,p(_)}};function e(a){var o={},s=[];return M(a,function(u){var l=i(o,u),f=l.originalDeps=t(u),h=n(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),M(h,function(c){it(l.predecessor,c)<0&&l.predecessor.push(c);var v=i(o,c);it(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return M(a,function(u){it(o,u)>=0&&s.push(u)}),s}}function x1(r,t){return ft(ft({},r,!0),t,!0)}const C1={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:". "}}}},D1={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var ro="ZH",Rl="EN",di=Rl,Ba={},El={},zd=X.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||di).toUpperCase();return r.indexOf(ro)>-1?ro:di}():di;function Hd(r,t){r=r.toUpperCase(),El[r]=new dt(t),Ba[r]=t}function M1(r){if(z(r)){var t=Ba[r.toUpperCase()]||{};return r===ro||r===Rl?J(t):ft(J(t),J(Ba[di]),!1)}else return ft(J(r),J(Ba[di]),!1)}function A1(r){return El[r]}function L1(){return El[di]}Hd(Rl,C1);Hd(ro,D1);var Ol=1e3,kl=Ol*60,vn=kl*60,ae=vn*24,Dh=ae*365,Ji={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}"},aa="{yyyy}-{MM}-{dd}",Mh={year:"{yyyy}",month:"{yyyy}-{MM}",day:aa,hour:aa+" "+Ji.hour,minute:aa+" "+Ji.minute,second:aa+" "+Ji.second,millisecond:Ji.none},Ps=["year","month","day","hour","minute","second","millisecond"],Gd=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Xe(r,t){return r+="","0000".substr(0,t-r.length)+r}function pi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function P1(r){return r===pi(r)}function I1(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Lo(r,t,e,i){var n=ze(r),a=n[Bl(e)](),o=n[gi(e)]()+1,s=Math.floor((o-1)/3)+1,u=n[Po(e)](),l=n["get"+(e?"UTC":"")+"Day"](),f=n[xn(e)](),h=(f-1)%12+1,c=n[Io(e)](),v=n[Ro(e)](),d=n[Eo(e)](),y=f>=12?"pm":"am",p=y.toUpperCase(),g=i instanceof dt?i:A1(i||zd)||L1(),_=g.getModel("time"),m=_.get("month"),w=_.get("monthAbbr"),T=_.get("dayOfWeek"),S=_.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Xe(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Xe(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Xe(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,T[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Xe(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Xe(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Xe(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Xe(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Xe(d,3)).replace(/{S}/g,d+"")}function R1(r,t,e,i,n){var a=null;if(z(e))a=e;else if(j(e))a=e(r.value,t,{level:r.level});else{var o=O({},Ji);if(r.level>0)for(var s=0;s<Ps.length;++s)o[Ps[s]]="{primary|"+o[Ps[s]]+"}";var u=e?e.inherit===!1?e:ut(e,o):o,l=Vd(r.value,n);if(u[l])a=u[l];else if(u.inherit){for(var f=Gd.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(N(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Lo(new Date(r.value),a,n,i)}function Vd(r,t){var e=ze(r),i=e[gi(t)]()+1,n=e[Po(t)](),a=e[xn(t)](),o=e[Io(t)](),s=e[Ro(t)](),u=e[Eo(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Ah(r,t,e){var i=vt(r)?ze(r):r;switch(t=t||Vd(r,e),t){case"year":return i[Bl(e)]();case"half-year":return i[gi(e)]()>=6?1:0;case"quarter":return Math.floor((i[gi(e)]()+1)/4);case"month":return i[gi(e)]();case"day":return i[Po(e)]();case"half-day":return i[xn(e)]()/24;case"hour":return i[xn(e)]();case"minute":return i[Io(e)]();case"second":return i[Ro(e)]();case"millisecond":return i[Eo(e)]()}}function Bl(r){return r?"getUTCFullYear":"getFullYear"}function gi(r){return r?"getUTCMonth":"getMonth"}function Po(r){return r?"getUTCDate":"getDate"}function xn(r){return r?"getUTCHours":"getHours"}function Io(r){return r?"getUTCMinutes":"getMinutes"}function Ro(r){return r?"getUTCSeconds":"getSeconds"}function Eo(r){return r?"getUTCMilliseconds":"getMilliseconds"}function E1(r){return r?"setUTCFullYear":"setFullYear"}function Wd(r){return r?"setUTCMonth":"setMonth"}function Ud(r){return r?"setUTCDate":"setDate"}function Yd(r){return r?"setUTCHours":"setHours"}function Xd(r){return r?"setUTCMinutes":"setMinutes"}function $d(r){return r?"setUTCSeconds":"setSeconds"}function qd(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Zd(r){if(!k0(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Kd(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Oo=wc;function ku(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Te(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?ze(r):r;if(isNaN(+u)){if(s)return"-"}else return Lo(u,i,e)}if(t==="ordinal")return au(r)?n(r):vt(r)&&a(r)?r+"":"-";var l=Ka(r);return a(l)?Zd(l):au(r)?n(r):typeof r=="boolean"?r+"":"-"}var Lh=["a","b","c","d","e","f","g"],Is=function(r,t){return"{"+r+(t??"")+"}"};function Qd(r,t,e){N(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Lh[a];r=r.replace(Is(o),Is(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];r=r.replace(Is(Lh[u],s),e?kt(l):l)}return r}function O1(r,t){var e=z(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+kt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+kt(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|}  ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Cn(r,t){return t=t||"transparent",z(r)?r:W(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var Na=M,k1=["left","right","top","bottom","width","height"],oa=[["width","left","right"],["height","top","bottom"]];function Nl(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var y=f.width+(c?-c.x+f.x:0);v=a+y,v>i||u.newline?(a=0,v=y,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>n||u.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var cn=Nl;yt(Nl,"vertical");yt(Nl,"horizontal");function io(r,t,e){e=Oo(e||0);var i=t.width,n=t.height,a=st(r.left,i),o=st(r.top,n),s=st(r.right,i),u=st(r.bottom,n),l=st(r.width,i),f=st(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=i-s-c-a),isNaN(f)&&(f=n-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=i-s-l-c),isNaN(o)&&(o=n-u-f-h),r.left||r.right){case"center":a=i/2-l/2-e[3];break;case"right":a=i-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new et(a+e[3],o+e[0],l,f);return d.margin=e,d}function no(r){var t=r.layoutMode||r.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function Dn(r,t,e){var i=e&&e.ignoreSize;!N(i)&&(i=[i,i]);var n=o(oa[0],0),a=o(oa[1],1);l(oa[0],r,n),l(oa[1],r,a);function o(f,h){var c={},v=0,d={},y=0,p=2;if(Na(f,function(m){d[m]=r[m]}),Na(f,function(m){s(t,m)&&(c[m]=d[m]=t[m]),u(c,m)&&v++,u(d,m)&&y++}),i[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(y===p||!v)return d;if(v>=p)return c;for(var g=0;g<f.length;g++){var _=f[g];if(!s(c,_)&&s(r,_)){c[_]=r[_];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,c){Na(f,function(v){h[v]=c[v]})}}function Fl(r){return B1({},r)}function B1(r,t){return t&&r&&Na(k1,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var N1=_t(),rt=function(r){G(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=Ao("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=no(this),a=n?Fl(e):{},o=i.getTheme();ft(e,o.get(this.mainType)),ft(e,this.getDefaultOption()),n&&Dn(e,a,n)},t.prototype.mergeOption=function(e,i){ft(this.option,e,!0);var n=no(this);n&&Dn(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!J0(e))return e.defaultOption;var i=N1(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=ft(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return Bn(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.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")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(dt);ed(rt,dt);wo(rt);T1(rt);b1(rt,F1);function F1(r){var t=[];return M(rt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Z(t,function(e){return be(e).main}),r!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}var Jd="";typeof navigator<"u"&&(Jd=navigator.platform||"");var Qr="rgba(0, 0, 0, 0.2)";const z1={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Qr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Qr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Qr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Qr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Qr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Qr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Jd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var jd=Q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ae="original",Ut="arrayRows",ce="objectRows",Le="keyedColumns",ir="typedArray",tp="unknown",Ne="column",bi="row",Tt={Must:1,Might:2,Not:3},ep=_t();function H1(r){ep(r).datasetMap=Q()}function TC(r,t,e){var i={},n=zl(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,u=ep(s).datasetMap,l=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(y,p){var g=W(y)?y:r[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),i[g.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(r,function(y,p){var g=y.name,_=d(y);if(f==null){var m=c.valueWayDim;v(i[g],m,_),v(o,m,_),c.valueWayDim+=_}else if(f===p)v(i[g],0,_),v(a,0,_);else{var m=c.categoryWayDim;v(i[g],m,_),v(o,m,_),c.categoryWayDim+=_}});function v(y,p,g){for(var _=0;_<g;_++)y.push(p+_)}function d(y){var p=y.dimsDef;return p?p.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function G1(r,t,e){var i={},n=zl(r);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===ce||a===Le)&&M(o,function(f,h){(W(f)?f.name:f)==="name"&&(s=h)});var u=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var y=ip(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(y);var p=y===Tt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Tt.Not)&&(f.n=v),g(f)&&c[f.n]!==Tt.Not)return f;p||(y===Tt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function g(_){return _.v!=null&&_.n!=null}return g(f)?f:g(h)?h:null}();if(u){i.value=[u.v];var l=s??u.n;i.itemName=[l],i.seriesName=[l]}return i}function zl(r){var t=r.get("data",!0);if(!t)return Bn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},mo).models[0]}function V1(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Bn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},mo).models}function rp(r,t){return ip(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function ip(r,t,e,i,n,a){var o,s=5;if(Vt(r))return Tt.Not;var u,l;if(i){var f=i[a];W(f)?(u=f.name,l=f.type):z(f)&&(u=f)}if(l!=null)return l==="ordinal"?Tt.Must:Tt.Not;if(t===Ut){var h=r;if(e===bi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=w(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[n+v];if(d&&(o=w(d[a]))!=null)return o}}else if(t===ce){var y=r;if(!u)return Tt.Not;for(var v=0;v<y.length&&v<s;v++){var p=y[v];if(p&&(o=w(p[u]))!=null)return o}}else if(t===Le){var g=r;if(!u)return Tt.Not;var c=g[u];if(!c||Vt(c))return Tt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=w(c[v]))!=null)return o}else if(t===Ae)for(var _=r,v=0;v<_.length&&v<s;v++){var p=_[v],m=_o(p);if(!N(m))return Tt.Not;if((o=w(m[a]))!=null)return o}function w(T){var S=z(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return S?Tt.Might:Tt.Not;if(S&&T!=="-")return Tt.Must}return Tt.Not}var W1=Q();function U1(r,t,e){var i=W1.get(t);if(!i)return e;var n=i(r);return n?e.concat(n):e}var Ph=_t();_t();var Hl=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=It(this.get("color",!0)),a=this.get("colorLayer",!0);return X1(this,Ph,n,a,t,e,i)},r.prototype.clearColorPalette=function(){$1(this,Ph)},r}();function Y1(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function X1(r,t,e,i,n,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?e:Y1(i,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function $1(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var sa,ki,Ih,Rh="\0_ec_inner",q1=1,Gl=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new dt(a),this._locale=new dt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=kh(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,kh(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Ih(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&M(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=Q(),l=i&&i.replaceMergeMainTypeMap;H1(this),M(e,function(h,c){h!=null&&(rt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):n[c]=n[c]==null?J(h):ft(n[c],h,!0))}),l&&l.each(function(h,c){rt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),rt.topologicalTravel(s,rt.getAllClassMainTypes(),f,this);function f(h){var c=U1(this,h,It(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=F0(v,c,d);Y0(y,h,rt),n[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],_=0,m;M(y,function(w,T){var S=w.existing,b=w.newOption;if(!b)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var C=h==="series",x=rt.getClass(h,w.keyInfo.subType,!C);if(!x)return;if(h==="tooltip"){if(m)return;m=!0}if(S&&S.constructor===x)S.name=w.keyInfo.name,S.mergeOption(b,this),S.optionUpdated(b,!1);else{var D=O({componentIndex:T},w.keyInfo);S=new x(b,this,this,D),O(S,D),w.brandNew&&(S.__requireNewView=!0),S.init(b,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),g.push(S),_++):(p.push(void 0),g.push(void 0))},this),n[h]=p,a.set(h,g),o.set(h,_),h==="series"&&sa(this)}this._seriesIndices||sa(this)},t.prototype.getOption=function(){var e=J(this.option);return M(e,function(i,n){if(rt.hasClass(n)){for(var a=It(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Tn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[Rh],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],M(It(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=Eh("id",a,s):o!=null?u=Eh("name",o,s):u=Ot(s,function(l){return!!l}),Oh(u,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):Ot(this._componentsMap.get(n),function(l){return!!l});return u(Oh(o,e));function s(l){var f=n+"Index",h=n+"Id",c=n+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:n,index:l[f],id:l[h],name:l[c]}:null}function u(l){return e.filter?Ot(l,e.filter):l}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(j(e)){var o=i,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=z(e)?a.get(e):W(e)?this.findComponents(e):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Ce(e,null);return Ot(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Ot(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return Ot(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){ki(this),M(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){M(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){ki(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return M(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return ki(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){ki(this);var n=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=Q(n)},t.prototype.restoreData=function(e){sa(this);var i=this._componentsMap,n=[];i.each(function(a,o){rt.hasClass(o)&&n.push(o)}),rt.topologicalTravel(n,rt.getAllClassMainTypes(),function(a){M(i.get(a),function(o){o&&(a!=="series"||!Z1(o,e))&&o.restoreData()})})},t.internalField=function(){sa=function(e){var i=e._seriesIndices=[];M(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=Q(i)},ki=function(e){},Ih=function(e,i){e.option={},e.option[Rh]=q1,e._componentsMap=Q({series:[]}),e._componentsCount=Q();var n=i.aria;W(n)&&n.enabled==null&&(n.enabled=!0),K1(i,e._theme.option),ft(i,z1,!1),e._mergeOption(i,null)}}(),t}(dt);function Z1(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function K1(r,t){var e=r.color&&!r.colorLayer;M(t,function(i,n){n==="colorLayer"&&e||rt.hasClass(n)||(typeof i=="object"?r[n]=r[n]?ft(r[n],i,!1):J(i):r[n]==null&&(r[n]=i))})}function Eh(r,t,e){if(N(t)){var i=Q();return M(t,function(a){if(a!=null){var o=Ce(a,null);o!=null&&i.set(a,!0)}}),Ot(e,function(a){return a&&i.get(a[r])})}else{var n=Ce(t,null);return Ot(e,function(a){return a&&n!=null&&a[r]===n})}}function Oh(r,t){return t.hasOwnProperty("subType")?Ot(r,function(e){return e&&e.subType===t.subType}):r}function kh(r){var t=Q();return r&&M(It(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ge(Gl,Hl);var Q1=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],np=function(){function r(t){M(Q1,function(e){this[e]=nt(t[e],t)},this)}return r}(),Rs={},ap=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];M(Rs,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){M(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Rs[t]=e},r.get=function(t){return Rs[t]},r}(),J1=/^(min|max)?(.+)$/,j1=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(M(It(t.series),function(o){o&&o.data&&Vt(o.data)&&ou(o.data)}),M(It(t.dataset),function(o){o&&o.source&&Vt(o.source)&&ou(o.source)})),t=J(t);var n=this._optionBackup,a=tw(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],J(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=J(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var u=0,l=n.length;u<l;u++)ew(n[u].query,e,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!iw(o,this._currentMediaIndices)&&(s=Z(o,function(f){return J(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function tw(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,u=r.options,l=r.media,f=!!r.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&N(l)&&M(l,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),M(u,function(v){return c(v)}),M(i,function(v){return c(v.option)});function c(v){M(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function ew(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return M(r,function(a,o){var s=o.match(J1);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();rw(i[l],a,u)||(n=!1)}}),n}function rw(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function iw(r,t){return r.join(",")===t.join(",")}var oe=M,Mn=W,Bh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Es(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=Bh.length;e<i;e++){var n=Bh[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?ft(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?ft(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Mt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,ut(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function ji(r){Mt(r,"itemStyle"),Mt(r,"lineStyle"),Mt(r,"areaStyle"),Mt(r,"label"),Mt(r,"labelLine"),Mt(r,"upperLabel"),Mt(r,"edgeLabel")}function gt(r,t){var e=Mn(r)&&r[t],i=Mn(e)&&e.textStyle;if(i)for(var n=0,a=Hf.length;n<a;n++){var o=Hf[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function te(r){r&&(ji(r),gt(r,"label"),r.emphasis&&gt(r.emphasis,"label"))}function nw(r){if(Mn(r)){Es(r),ji(r),gt(r,"label"),gt(r,"upperLabel"),gt(r,"edgeLabel"),r.emphasis&&(gt(r.emphasis,"label"),gt(r.emphasis,"upperLabel"),gt(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Es(t),te(t));var e=r.markLine;e&&(Es(e),te(e));var i=r.markArea;i&&te(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!Vt(a))for(var o=0;o<a.length;o++)te(a[o]);M(r.categories,function(l){ji(l)})}if(n&&!Vt(n))for(var o=0;o<n.length;o++)te(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)te(s[o]);if(e=r.markLine,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)N(u[o])?(te(u[o][0]),te(u[o][1])):te(u[o]);r.type==="gauge"?(gt(r,"axisLabel"),gt(r,"title"),gt(r,"detail")):r.type==="treemap"?(Mt(r.breadcrumb,"itemStyle"),M(r.levels,function(l){ji(l)})):r.type==="tree"&&ji(r.leaves)}}function Ee(r){return N(r)?r:r?[r]:[]}function Nh(r){return(N(r)?r[0]:r)||{}}function aw(r,t){oe(Ee(r.series),function(i){Mn(i)&&nw(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),oe(e,function(i){oe(Ee(r[i]),function(n){n&&(gt(n,"axisLabel"),gt(n.axisPointer,"label"))})}),oe(Ee(r.parallel),function(i){var n=i&&i.parallelAxisDefault;gt(n,"axisLabel"),gt(n&&n.axisPointer,"label")}),oe(Ee(r.calendar),function(i){Mt(i,"itemStyle"),gt(i,"dayLabel"),gt(i,"monthLabel"),gt(i,"yearLabel")}),oe(Ee(r.radar),function(i){gt(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),oe(Ee(r.geo),function(i){Mn(i)&&(te(i),oe(Ee(i.regions),function(n){te(n)}))}),oe(Ee(r.timeline),function(i){te(i),Mt(i,"label"),Mt(i,"itemStyle"),Mt(i,"controlStyle",!0);var n=i.data;N(n)&&M(n,function(a){W(a)&&(Mt(a,"label"),Mt(a,"itemStyle"))})}),oe(Ee(r.toolbox),function(i){Mt(i,"iconStyle"),oe(i.feature,function(n){Mt(n,"iconStyle")})}),gt(Nh(r.axisPointer),"label"),gt(Nh(r.tooltip).axisPointer,"label")}function ow(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function sw(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=e)}function Fh(r){r&&M(uw,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var uw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],lw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Os=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Bi(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Os.length;e++){var i=Os[e][1],n=Os[e][0];t[i]!=null&&(t[n]=t[i])}}function zh(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Hh(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function fw(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function op(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&op(r[e].children,t)}function sp(r,t){aw(r,t),r.series=It(r.series),M(r.series,function(e){if(W(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),zh(e.label);var n=e.data;if(n&&!Vt(n))for(var a=0;a<n.length;a++)zh(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=ow(e,"pointer.color");o!=null&&sw(e,"itemStyle.color",o)}else if(i==="bar"){Bi(e),Bi(e.backgroundStyle),Bi(e.emphasis);var n=e.data;if(n&&!Vt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(Bi(n[a]),Bi(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Hh(e),op(e.data,Hh)}else i==="graph"||i==="sankey"?fw(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ut(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Fh(e)}}),r.dataRange&&(r.visualMap=r.dataRange),M(lw,function(e){var i=r[e];i&&(N(i)||(i=[i]),M(i,function(n){Fh(n)}))})}function hw(r){var t=Q();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(vw)}function vw(r){M(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var y=NaN,p=e-1;p>=0;p--){var g=r[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var _=g.data.getByRawIndex(g.stackResultDimension,d);if(u==="all"||u==="positive"&&_>0||u==="negative"&&_<0||u==="samesign"&&c>=0&&_>0||u==="samesign"&&c<=0&&_<0){c=R0(c,_),y=_;break}}}return i[0]=c,i[1]=y,i})})}var ko=function(){function r(t){this.data=t.data||(t.sourceFormat===Le?{}:[]),this.sourceFormat=t.sourceFormat||tp,this.seriesLayoutBy=t.seriesLayoutBy||Ne,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&rp(this,i)===Tt.Must&&(n.type="ordinal")}}return r}();function Vl(r){return r instanceof ko}function Bu(r,t,e){e=e||lp(r);var i=t.seriesLayoutBy,n=dw(r,e,i,t.sourceHeader,t.dimensions),a=new ko({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:J(t)});return a}function up(r){return new ko({data:r,sourceFormat:Vt(r)?ir:Ae})}function cw(r){return new ko({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:J(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function lp(r){var t=tp;if(Vt(r))t=ir;else if(N(r)){r.length===0&&(t=Ut);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(N(n)||Vt(n)){t=Ut;break}else if(W(n)){t=ce;break}}}}else if(W(r)){for(var a in r)if(zr(r,a)&&Gt(r[a])){t=Le;break}}return t}function dw(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:Gh(n),startIndex:o,dimensionsDetectedCount:a};if(t===Ut){var s=r;i==="auto"||i==null?Vh(function(l){l!=null&&l!=="-"&&(z(l)?o==null&&(o=1):o=0)},e,s,10):o=vt(i)?i:i?1:0,!n&&o===1&&(n=[],Vh(function(l,f){n[f]=l!=null?l+"":""},e,s,1/0)),a=n?n.length:e===bi?s.length:s[0]?s[0].length:null}else if(t===ce)n||(n=pw(r));else if(t===Le)n||(n=[],M(r,function(l,f){n.push(f)}));else if(t===Ae){var u=_o(r[0]);a=N(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Gh(n),dimensionsDetectedCount:a}}function pw(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return ht(e)}function Gh(r){if(r){var t=Q();return Z(r,function(e,i){e=W(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function Vh(r,t,e,i){if(t===bi)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function fp(r){var t=r.sourceFormat;return t===ce||t===Le}var Cr,Dr,Mr,Wh,Uh,hp=function(){function r(t,e){var i=Vl(t)?t:up(t);this._source=i;var n=this._data=i.data;i.sourceFormat===ir&&(this._offset=0,this._dimSize=e,this._data=n),Uh(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Uh=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=Wh[Wl(l,f)];if(O(o,v),l===ir)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=vp(l,f);o.getItem=nt(d,null,s,h,c);var y=cp(l,f);o.count=nt(y,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},i=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],y=v[1]==null?-1/0:v[1],p=s-o,g=u[c],_=0;_<p;_++){var m=f[_*h+c];g[o+_]=m,m<d&&(d=m),m>y&&(y=m)}v[0]=d,v[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};Wh=(t={},t[Ut+"_"+Ne]={pure:!0,appendData:a},t[Ut+"_"+bi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ce]={pure:!0,appendData:a},t[Le]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Ae]={appendData:a},t[ir]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Yh=function(r,t,e,i){return r[i]},gw=(Cr={},Cr[Ut+"_"+Ne]=function(r,t,e,i){return r[i+t]},Cr[Ut+"_"+bi]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Cr[ce]=Yh,Cr[Le]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,u=r[s];a[o]=u?u[i]:null}return a},Cr[Ae]=Yh,Cr);function vp(r,t){var e=gw[Wl(r,t)];return e}var Xh=function(r,t,e){return r.length},yw=(Dr={},Dr[Ut+"_"+Ne]=function(r,t,e){return Math.max(0,r.length-t)},Dr[Ut+"_"+bi]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Dr[ce]=Xh,Dr[Le]=function(r,t,e){var i=e[0].name,n=r[i];return n?n.length:0},Dr[Ae]=Xh,Dr);function cp(r,t){var e=yw[Wl(r,t)];return e}var ks=function(r,t,e){return r[t]},_w=(Mr={},Mr[Ut]=ks,Mr[ce]=function(r,t,e){return r[e]},Mr[Le]=ks,Mr[Ae]=function(r,t,e){var i=_o(r);return i instanceof Array?i[t]:i},Mr[ir]=ks,Mr);function dp(r){var t=_w[r];return t}function Wl(r,t){return r===Ut?r+"_"+t:r}function ao(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return dp(a)(i,o,s)}else{var u=i;return a===Ae&&(u=_o(i)),u}}}}var mw=/\{@(.+?)\}/g,ww=function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),u=i.getItemVisual(t,"style"),l=u&&u[i.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&N(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(j(a))return u.status=e,u.dimensionIndex=n,a(u);if(z(a)){var f=Qd(a,u);return f.replace(mw,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var y=ao(s,t,d);if(o&&N(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},r.prototype.getRawValue=function(t,e){return ao(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function $h(r){var t,e;return W(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function dn(r){return new Sw(r)}var Sw=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(_){return!(_>=1)&&(_=1),_}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<d)){var y=this._progress;if(N(y))for(var p=0;p<y.length;p++)this._doProgress(y[p],v,d,u,l);else this._doProgress(y,v,d,u,l)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){qh.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:qh.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),N(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),qh=function(){var r,t,e,i,n,a={reset:function(u,l,f,h){t=u,r=l,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var u=t%n*e+Math.ceil(t/n),l=t>=r?null:u<i?u:t;return t++,l}}();function Fa(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!vt(r)&&r!=null&&r!=="-"&&(r=+ze(r)),r==null||r===""?NaN:Number(r))}Q({number:function(r){return parseFloat(r)},time:function(r){return+ze(r)},trim:function(r){return z(r)?Te(r):r}});var Tw=function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=vt(t)?t:Ka(t),n=vt(e)?e:Ka(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=z(t),u=z(e);s&&(i=u?t:0),u&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r}(),bw=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Fa(t,e)},r}();function xw(r,t){var e=new bw,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Ne&&Nt(o);var s=[],u={},l=r.dimensionsDefine;if(l)M(l,function(y,p){var g=y.name,_={index:p,name:g,displayName:y.displayName};if(s.push(_),g!=null){var m="";zr(u,g)&&Nt(m),u[g]=_}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=vp(n,Ne);t.__isBuiltIn&&(e.getRawDataItem=function(y){return h(i,a,s,y)},e.getRawData=nt(Cw,null,r)),e.cloneRawData=nt(Dw,null,r);var c=cp(n,Ne);e.count=nt(c,null,i,a,s);var v=dp(n);e.retrieveValue=function(y,p){var g=h(i,a,s,y);return d(g,p)};var d=e.retrieveValueFromItem=function(y,p){if(y!=null){var g=s[p];if(g)return v(y,p,g.name)}};return e.getDimensionInfo=nt(Mw,null,s,u),e.cloneAllDimensionInfo=nt(Aw,null,s),e}function Cw(r){var t=r.sourceFormat;if(!Ul(t)){var e="";Nt(e)}return r.data}function Dw(r){var t=r.sourceFormat,e=r.data;if(!Ul(t)){var i="";Nt(i)}if(t===Ut){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===ce){for(var n=[],a=0,o=e.length;a<o;a++)n.push(O({},e[a]));return n}}function Mw(r,t,e){if(e!=null){if(vt(e)||!isNaN(e)&&!zr(t,e))return r[e];if(zr(t,e))return t[e]}}function Aw(r){return J(r)}var pp=Q();function Lw(r){r=J(r);var t=r.type,e="";t||Nt(e);var i=t.split(":");i.length!==2&&Nt(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,pp.set(t,r)}function Pw(r,t,e){var i=It(r),n=i.length,a="";n||Nt(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=Iw(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Iw(r,t,e,i){var n="";t.length||Nt(n),W(r)||Nt(n);var a=r.type,o=pp.get(a);o||Nt(n);var s=Z(t,function(l){return xw(l,o)}),u=It(o.transform({upstream:s[0],upstreamList:s,config:J(r.config)}));return Z(u,function(l,f){var h="";W(l)||Nt(h),l.data||Nt(h);var c=lp(l.data);Ul(c)||Nt(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var y=d.startIndex;y&&(l.data=d.data.slice(0,y).concat(l.data)),v={seriesLayoutBy:Ne,sourceHeader:y,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Ne,sourceHeader:0,dimensions:l.dimensions};return Bu(l.data,v,null)})}function Ul(r){return r===Ut||r===ce}var Bo="undefined",Rw=typeof Uint32Array===Bo?Array:Uint32Array,Ew=typeof Uint16Array===Bo?Array:Uint16Array,gp=typeof Int32Array===Bo?Array:Int32Array,Zh=typeof Float64Array===Bo?Array:Float64Array,yp={float:Zh,int:gp,ordinal:Array,number:Array,time:Zh},Bs;function Jr(r){return r>65535?Rw:Ew}function jr(){return[1/0,-1/0]}function Ow(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Kh(r,t,e,i,n){var a=yp[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];r[t]=u}}else r[t]=new a(i)}var Nu=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Q()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Bs[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],fp(n),this._dimensions=Z(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new yp[e||"float"](this._rawCount),this._rawExtent[a]=jr(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=jr());for(var u=a[t],l=o;l<s;l++){var f=i[l]=e.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<a;l++){var f=n[l];Kh(i,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=n[d],y=Bs.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=y;var p=o[d];y<p[0]&&(p[0]=y),y>p[1]&&(p[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Z(o,function(_){return _.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=jr()),Kh(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,u);else for(var c=[],v=t;v<e;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var y=a[d],p=this._dimValueGetter(c,l[d],v,d);y[v]=p;var g=u[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-a[c],d=Math.abs(v);d<=i&&((d<s||d===s&&v>=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=Jr(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Jr(i._rawCount),o=new a(n),s=[],u=t.length,l=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,d=i.getRawIndex(c);if(u===0)v=e(c);else if(u===1){var y=h[f][d];v=e(y,c)}else{for(var p=0;p<u;p++)s[p]=h[t[p]][d];s[p]=c,v=e.apply(null,s)}v&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=ht(t),a=n.length;if(!a)return this;var o=e.count(),s=Jr(e._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var y=0;if(a===1){for(var p=v[n[0]],g=0;g<i;g++){var _=p[g];(_>=h&&_<=c||isNaN(_))&&(u[l++]=y),y++}d=!0}else if(a===2){for(var p=v[n[0]],m=v[n[1]],w=t[n[1]][0],T=t[n[1]][1],g=0;g<i;g++){var _=p[g],S=m[g];(_>=h&&_<=c||isNaN(_))&&(S>=w&&S<=T||isNaN(S))&&(u[l++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var b=e.getRawIndex(g),_=v[n[0]][b];(_>=h&&_<=c||isNaN(_))&&(u[l++]=b)}else for(var g=0;g<o;g++){for(var C=!0,b=e.getRawIndex(g),x=0;x<a;x++){var D=n[x],_=v[D][b];(_<t[D][0]||_>t[D][1])&&(C=!1)}C&&(u[l++]=e.getRawIndex(g))}return l<o&&(e._indices=u),e._count=l,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<e.length;f++)l[e[f]]=jr();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=n[e[v]][c];u[o]=h;var d=i&&i.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var y=e[f],p=d[f],g=l[y],_=n[y];_&&(_[c]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(Jr(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var y=Math.min(d+u,o-1),p=Math.min(d+u*2,o),g=(p+y)/2,_=0,m=y;m<p;m++){var w=this.getRawIndex(m),T=a[w];isNaN(T)||(_+=T)}_/=p-y;var S=d,b=Math.min(d+u,o),C=d-1,x=a[l];f=-1,c=S;for(var D=-1,A=0,m=S;m<b;m++){var w=this.getRawIndex(m),T=a[w];if(isNaN(T)){A++,D<0&&(D=w);continue}h=Math.abs((C-g)*(T-x)-(C-m)*(_-x)),h>f&&(f=h,c=w)}A>0&&A<b-S&&(v[s++]=Math.min(D,c),c=Math.max(D,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/e),o=n[t],s=this.count(),u=new(Jr(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],y=a;f+a>s&&(y=s-f);for(var p=0;p<y;p++){var g=this.getRawIndex(f+p),_=o[g];_<c&&(c=_,h=f+p),_>d&&(d=_,v=f+p)}var m=this.getRawIndex(h),w=this.getRawIndex(v);h<v?(u[l++]=m,u[l++]=w):(u[l++]=w,u[l++]=m)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/e),l=o[t],f=this.count(),h=a._rawExtent[t]=jr(),c=new(Jr(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var y=0;y<u;y++){var p=this.getRawIndex(d+y);s[y]=l[p]}var g=i(s),_=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));l[_]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),c[v++]=_}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var u=0,l=[];u<i;u++)l[u]=n[t[u]][s];l[u]=a,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=jr();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],u=o[1],l=0;l<n;l++){var f=this.getRawIndex(l),h=e[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&ar(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?Ow(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=J(this._extent),t._rawExtent=J(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return Fa(e[a],this._dimensions[a])}Bs={arrayRows:t,objectRows:function(e,i,n,a){return Fa(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return Fa(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),kw=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(ua(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Vt(s)?ir:Ae,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=q(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=q(h.sourceHeader,c.sourceHeader),y=q(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;n=p?[Bu(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},u)]:[]}else{var g=t;if(i){var _=this._applyTransform(e);n=_.sourceList,a=_.upstreamSignList}else{var m=g.get("source",!0);n=[Bu(m,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&Qh(a)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&Qh(h),s.push(f),u.push(l._getVersionSign())}),i?o=Pw(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[cw(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var u=this._getUpstreamSourceManagers()[0];ua(this._sourceHost)&&u?s=u._innerGetDataStore(t,e,i):(s=new Nu,s.initData(new hp(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ua(t)){var e=zl(t);return e?[e.getSourceManager()]:[]}else return Z(V1(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(ua(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r}();function ua(r){return r.mainType==="series"}function Qh(r){throw new Error(r)}var Bw="line-height:1";function _p(r){var t=r.lineHeight;return t==null?Bw:"line-height:"+kt(t+"")+"px"}function mp(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+kt(i+"")+"px;color:"+kt(e)+";font-weight:"+kt(n+""),valueStyle:"font-size:"+kt(o+"")+"px;color:"+kt(a)+";font-weight:"+kt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Nw=[0,10,20,30],Fw=["",`
`,`

`,`


`];function An(r,t){return t.type=r,t}function Fu(r){return r.type==="section"}function wp(r){return Fu(r)?zw:Hw}function Sp(r){if(Fu(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return M(r.blocks,function(n){var a=Sp(n);a>=t&&(t=a+ +(i&&(!a||Fu(n)&&!n.noHeader)))}),t}return 0}function zw(r,t,e,i){var n=t.noHeader,a=Gw(Sp(t)),o=[],s=t.blocks||[];Fe(!s||N(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(zr(l,u)){var f=new Tw(l[u],null);s.sort(function(y,p){return f.evaluate(y.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(y,p){var g=t.valueFormatter,_=wp(y)(g?O(O({},r),{valueFormatter:g}):r,y,p>0?a.html:0,i);_!=null&&o.push(_)});var h=r.renderMode==="richText"?o.join(a.richText):zu(i,o.join(""),n?e:a.html);if(n)return h;var c=ku(t.header,"ordinal",r.useUTC),v=mp(i,r.renderMode).nameStyle,d=_p(i);return r.renderMode==="richText"?Tp(r,c,v)+a.richText+h:zu(i,'<div style="'+v+";"+d+';">'+kt(c)+"</div>"+h,e)}function Hw(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(w){return w=N(w)?w:[w],Z(w,function(T,S){return ku(T,N(v)?v[S]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":ku(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),y=!s||!a,p=!s&&a,g=mp(i,n),_=g.nameStyle,m=g.valueStyle;return n==="richText"?(s?"":h)+(a?"":Tp(r,c,_))+(o?"":Uw(r,d,y,p,m)):zu(i,(s?"":h)+(a?"":Vw(c,!s,_))+(o?"":Ww(d,y,p,m)),e)}}function Jh(r,t,e,i,n,a){if(r){var o=wp(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Gw(r){return{html:Nw[r],richText:Fw[r]}}function zu(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=_p(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function Vw(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+kt(r)+"</span>"}function Ww(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],'<span style="'+a+";"+i+'">'+Z(r,function(o){return kt(o)}).join("&nbsp;&nbsp;")+"</span>"}function Tp(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Uw(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join("  "):t,a)}function Yw(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return Cn(i)}function bp(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Ns=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Zc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=O1({color:e,type:t,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};N(e)?M(e,function(a){return O(i,a)}):O(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function Xw(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=N(s),l=Yw(t,e),f,h,c,v;if(o>1||u&&!o){var d=$w(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=n.getDimensionInfo(a[0]);v=f=ao(n,e,a[0]),h=y.type}else v=f=u?s[0]:s;var p=pl(t),g=p&&t.name||"",_=n.getName(e),m=i?g:_;return An("section",{header:g,noHeader:i||!p,sortParam:v,blocks:[An("nameValue",{markerType:"item",markerColor:l,name:m,noName:!Te(m),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function $w(r,t,e,i,n){var a=t.getData(),o=ar(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?M(i,function(h){f(ao(a,e,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(An("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var $e=_t();function la(r,t){return r.getName(t)||r.getId(t)}var qw="__universalTransitionEnabled",sr=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=dn({count:Kw,reset:Qw}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=$e(this).sourceManager=new kw(this);a.prepareSource();var o=this.getInitialData(e,n);tv(o,this),this.dataTask.context.data=o,$e(this).dataBeforeProcessed=o,jh(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=no(this),a=n?Fl(e):{},o=this.subType;rt.hasClass(o)&&(o+="Series"),ft(e,i.getTheme().get(this.subType)),ft(e,this.getDefaultOption()),Tu(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Dn(e,a,n)},t.prototype.mergeOption=function(e,i){e=ft(this.option,e,!0),this.fillDataTextStyle(e.data);var n=no(this);n&&Dn(this.option,e,n);var a=$e(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);tv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,$e(this).dataBeforeProcessed=o,jh(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Vt(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Tu(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=Hu(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return $e(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=Hu(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}$e(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Q(e)},t.prototype.getSourceManager=function(){return $e(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return $e(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,n){return Xw({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(X.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Hl.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var u=e[s],l=la(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=ht(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[la(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[qw])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){W(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],c=la(e,h);l[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[u-1],c=la(e,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return rt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(rt);Ge(sr,ww);Ge(sr,Hl);ed(sr,rt);function jh(r){var t=r.name;pl(r)||(r.name=Zw(r)||t)}function Zw(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return M(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function Kw(r){return r.model.getRawData().count()}function Qw(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),Jw}function Jw(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function tv(r,t){M(dy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,yt(jw,t))})}function jw(r,t){var e=Hu(r);return e&&e.setOutputEnd((t||this).count()),t}function Hu(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var He=function(){function r(){this.group=new he,this.uid=Ao("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();yl(He);wo(He);function xp(){var r=_t();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var Cp=_t(),tS=xp(),nr=function(){function r(){this.group=new he,this.uid=Ao("viewChart"),this.renderTask=dn({plan:eS,reset:rS}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&rv(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&rv(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){Od(this.group,t)},r.markUpdateMethod=function(t,e){Cp(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function ev(r,t,e){r&&Iu(r)&&(t==="emphasis"?Du:Mu)(r,e)}function rv(r,t,e){var i=kn(r,t),n=t&&t.highlightKey!=null?dm(t.highlightKey):null;i!=null?M(It(i),function(a){ev(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){ev(a,e,n)})}yl(nr);wo(nr);function eS(r){return tS(r.model)}function rS(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&Cp(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,i,n),iS[u]}var iS={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},oo="\0__throttleOriginMethod",iv="\0__throttleRate",nv="\0__throttleType";function Yl(r,t,e){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),u=this,l=v;var y=f||t,p=f||e;f=null,s=i-(p?n:a)-y,clearTimeout(o),p?o=setTimeout(h,y):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Dp(r,t,e,i){var n=r[t];if(n){var a=n[oo]||n,o=n[nv],s=n[iv];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Yl(a,e,i==="debounce"),n[oo]=a,n[nv]=i,n[iv]=e}return n}}function Gu(r,t){var e=r[t];e&&e[oo]&&(e.clear&&e.clear(),r[t]=e[oo])}var av=_t(),ov={itemStyle:bn(Fd,!0),lineStyle:bn(Nd,!0)},nS={lineStyle:"stroke",itemStyle:"fill"};function Mp(r,t){var e=r.visualStyleMapper||ov[t];return e||(console.warn("Unknown style type '"+t+"'."),ov.itemStyle)}function Ap(r,t){var e=r.visualDrawType||nS[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var aS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Mp(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=Ap(r,i),l=o[u],f=j(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||j(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||j(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=r.getDataParams(d),p=O({},o);p[u]=f(y),v.setItemVisual(d,"style",p)}}}},Ni=new dt,oS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Mp(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){Ni.option=u[i];var l=n(Ni),f=o.ensureUniqueItemVisual(s,"style");O(f,l),Ni.option.decal&&(o.setItemVisual(s,"decal",Ni.option.decal),Ni.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},sS={performRawSeries:!0,overallReset:function(r){var t=Q();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),av(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=av(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=Ap(e,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(l)||l+"",d=i.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},fa=Math.PI;function uS(r,t){t=t||{},ut(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 e=new he,i=new Ht({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Wt({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 Ht({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Co({shape:{startAngle:-fa/2,endAngle:-fa/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:fa*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:fa*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Lp=function(){function r(t,e,i,n){this._stageTaskMap=Q(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Q();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;M(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Fe(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;M(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(n,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var y=o.getPerformArgs(c,n.block);d.each(function(p){p.perform(y)}),c.perform(y)&&(a=!0)}else h&&h.each(function(p,g){s(n,p)&&p.dirty();var _=o.getPerformArgs(p,n.block);_.skip=!u.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,i),p.perform(_)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Q(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||dn({plan:cS,reset:dS,count:gS}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||dn({reset:lS});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=Q(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Fe(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,M(i.getSeries(),d));function d(y){var p=y.uid,g=u.set(p,s&&s.get(p)||(c=!0,dn({reset:fS,onDirty:vS})));g.context={model:y,overallProgress:h},g.agent=o,g.__block=h,a._pipe(y,g)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return j(t)&&(t={overallReset:t,seriesType:yS(t)}),t.uid=Ao("stageHandler"),e&&(t.visualType=e),t},r}();function lS(r){r.overallReset(r.ecModel,r.api,r.payload)}function fS(r){return r.overallProgress&&hS}function hS(){this.agent.dirty(),this.getDownstream().dirty()}function vS(){this.agent&&this.agent.dirty()}function cS(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function dS(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=It(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Z(t,function(e,i){return Pp(i)}):pS}var pS=Pp(0);function Pp(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function gS(r){return r.data.count()}function yS(r){so=null;try{r(Ln,Ip)}catch{}return so}var Ln={},Ip={},so;Rp(Ln,Gl);Rp(Ip,np);Ln.eachSeriesByType=Ln.eachRawSeriesByType=function(r){so=r};Ln.eachComponent=function(r){r.mainType==="series"&&r.subType&&(so=r.subType)};function Rp(r,t){for(var e in t.prototype)r[e]=zt}var sv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const _S={color:sv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],sv]};var Dt="#B9B8CE",uv="#100C2A",ha=function(){return{axisLine:{lineStyle:{color:Dt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ep={darkMode:!0,color:lv,backgroundColor:uv,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Dt},pageTextStyle:{color:Dt}},textStyle:{color:Dt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Dt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Dt},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:Dt}},timeline:{lineStyle:{color:Dt},label:{color:Dt},controlStyle:{color:Dt,borderColor:Dt}},calendar:{itemStyle:{color:uv},dayLabel:{color:Dt},monthLabel:{color:Dt},yearLabel:{color:Dt}},timeAxis:ha(),logAxis:ha(),valueAxis:ha(),categoryAxis:ha(),line:{symbol:"circle"},graph:{color:lv},gauge:{title:{color:Dt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Dt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Ep.categoryAxis.splitLine.show=!1;var mS=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(z(t)){var a=be(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Vu=["symbol","symbolSize","symbolRotate","symbolOffset"],fv=Vu.concat(["symbolKeepAspect"]),wS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Vu.length;o++){var s=Vu[o],u=r.get(s);j(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var l=ht(n);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),y=0;y<l.length;y++){var p=l[y];h.setItemVisual(c,p,n[p](v,d))}}return{dataEach:a?f:null}}},SS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<fv.length;s++){var u=fv[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:e.hasItemOption?i:null}}};function TS(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function bS(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function xS(r,t){function e(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=O({},n),o.dispatchAction(O(n,{type:i[1],seriesIndex:e(a,n)}))})})}function ti(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=n.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=kn(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:N(c)?h.getName(c[0]):h.getName(c),selected:z(u)?u:O({},u)})}})}function CS(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(ti("map","selectchanged",t,n,i),ti("pie","selectchanged",t,n,i)):i.fromAction==="select"?(ti("map","selected",t,n,i),ti("pie","selected",t,n,i)):i.fromAction==="unselect"&&(ti("map","unselected",t,n,i),ti("pie","unselected",t,n,i))})}function tn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var DS=Math.round(Math.random()*9),MS=typeof Object.defineProperty=="function",AS=function(){function r(){this._id="__ec_inner_"+DS++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return MS?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),LS=at.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),PS=at.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),IS=at.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),u=i-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;r.moveTo(e-f,u+s),r.arc(e,u,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+f-h*v,u+s+c*v,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*v,u+s+c*v,e-f,u+s),r.closePath()}}),RS=at.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),ES={line:Ti,rect:Ht,roundRect:Ht,square:Ht,circle:xo,diamond:PS,pin:IS,arrow:RS,triangle:LS},OS={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},Wu={};M(ES,function(r,t){Wu[t]=new r});var kS=at.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Wc(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=Wu[i];n||(i="rect",n=Wu[i]),OS[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function BS(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Xl(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=Pd(r.slice(8),new et(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?u=Al(r.slice(7),{},new et(t,e,i,n),o?"center":"cover"):u=new kS({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=BS,a&&u.setColor(a),u}function NS(r,t){if(r!=null)return N(r)||(r=[r,r]),[st(r[0],t[0])||0,st(q(r[1],r[0]),t[1])||0]}function Rr(r){return isFinite(r)}function FS(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=Rr(i)?i:0,n=Rr(n)?n:1,a=Rr(a)?a:0,o=Rr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function zS(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,u=u*a),o=Rr(o)?o:.5,s=Rr(s)?s:.5,u=u>=0&&Rr(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function Uu(r,t,e){for(var i=t.type==="radial"?zS(r,t,e):FS(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function HS(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function va(r){return parseInt(r,10)}function ca(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||va(s[i])||va(r.style[i]))-(va(s[a])||0)-(va(s[o])||0)|0}function GS(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:vt(r)?[r]:N(r)?r:null}function Op(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&GS(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Z(e,function(a){return a/n}),i/=n)}return[e,i]}var VS=new yi(!0);function uo(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function hv(r){return typeof r=="string"&&r!=="none"}function lo(r){var t=r.fill;return t!=null&&t!=="none"}function vv(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function cv(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Yu(r,t,e){var i=rd(t.image,t.__image,e);if(So(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*py),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function WS(r,t,e,i){var n,a=uo(e),o=lo(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||VS,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,y=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,_=void 0,m=void 0,w=void 0,T=void 0,S=void 0;(d||y)&&(S=t.getBoundingRect()),d&&(_=h?Uu(r,c,S):t.__canvasFillGradient,t.__canvasFillGradient=_),y&&(m=h?Uu(r,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),p&&(w=h||!t.__canvasFillPattern?Yu(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(T=h||!t.__canvasStrokePattern?Yu(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?r.fillStyle=_:p&&(w?r.fillStyle=w:o=!1),y?r.strokeStyle=m:g&&(T?r.strokeStyle=T:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var C,x;r.setLineDash&&e.lineDash&&(n=Op(t),C=n[0],x=n[1]);var D=!0;(l||h&ni)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,u?s:1),C&&(r.setLineDash(C),r.lineDashOffset=x),i||(e.strokeFirst?(a&&cv(r,e),o&&vv(r,e)):(o&&vv(r,e),a&&cv(r,e))),C&&r.setLineDash([])}function US(r,t,e){var i=t.__image=rd(e.image,t.__image,t,t.onload);if(!(!i||!So(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(i,l,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(i,l,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function YS(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||Fr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=Op(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(uo(e)&&r.strokeText(n,e.x,e.y),lo(e)&&r.fillText(n,e.x,e.y)):(lo(e)&&r.fillText(n,e.x,e.y),uo(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var dv=["shadowBlur","shadowOffsetX","shadowOffsetY"],pv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function kp(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Ft(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?kr.opacity:o}(i||t.blend!==e.blend)&&(a||(Ft(r,n),a=!0),r.globalCompositeOperation=t.blend||kr.blend);for(var s=0;s<dv.length;s++){var u=dv[s];(i||t[u]!==e[u])&&(a||(Ft(r,n),a=!0),r[u]=r.dpr*(t[u]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(Ft(r,n),a=!0),r.shadowColor=t.shadowColor||kr.shadowColor),a}function gv(r,t,e,i,n){var a=Pn(t,n.inHover),o=i?null:e&&Pn(e,n.inHover)||{};if(a===o)return!1;var s=kp(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Ft(r,n),s=!0),hv(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Ft(r,n),s=!0),hv(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Ft(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(s||(Ft(r,n),s=!0),r.lineWidth=l)}for(var f=0;f<pv.length;f++){var h=pv[f],c=h[0];(i||a[c]!==o[c])&&(s||(Ft(r,n),s=!0),r[c]=a[c]||h[1])}return s}function XS(r,t,e,i,n){return kp(r,Pn(t,n.inHover),e&&Pn(e,n.inHover),i,n)}function Bp(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function $S(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),Bp(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function qS(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var yv=1,_v=2,mv=3,wv=4;function ZS(r){var t=lo(r),e=uo(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Ft(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Pn(r,t){return t&&r.__hoverStyle||r.style}function Np(r,t){Er(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Er(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~$t,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,u=!1;if((!o||HS(a,o))&&(o&&o.length&&(Ft(r,e),r.restore(),u=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(Ft(r,e),r.save(),$S(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(u=s=!0);var f=t instanceof at&&t.autoBatch&&ZS(t.style);s||qS(n,l.transform)?(Ft(r,e),Bp(r,t)):f||Ft(r,e);var h=Pn(t,e.inHover);t instanceof at?(e.lastDrawType!==yv&&(u=!0,e.lastDrawType=yv),gv(r,t,l,u,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),WS(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Qa?(e.lastDrawType!==mv&&(u=!0,e.lastDrawType=mv),gv(r,t,l,u,e),YS(r,t,h)):t instanceof Hr?(e.lastDrawType!==_v&&(u=!0,e.lastDrawType=_v),XS(r,t,l,u,e),US(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==wv&&(u=!0,e.lastDrawType=wv),KS(r,t,e)),f&&i&&Ft(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function KS(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Er(r,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=n.length;l<f;l++){var u=n[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),Er(r,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Fs=new AS,Sv=new On(100),Tv=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Xu(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&Fs.delete(r);var a=Fs.get(r);if(a)return a;var o=ut(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Fs.set(r,s),r.dirty=!1,s;function u(l){for(var f=[e],h=!0,c=0;c<Tv.length;++c){var v=o[Tv[c]];if(v!=null&&!N(v)&&!z(v)&&!vt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var y=Sv.get(d);y&&(n?l.svgElement=y:l.image=y)}var p=zp(o.dashArrayX),g=QS(o.dashArrayY),_=Fp(o.symbol),m=JS(p),w=Hp(g),T=!n&&wi.createCanvas(),S=n&&{tag:"g",attrs:{},key:"dcl",children:[]},b=x(),C;T&&(T.width=b.width*e,T.height=b.height*e,C=T.getContext("2d")),D(),h&&Sv.put(d,T||S),l.image=T,l.svgElement=S,l.svgWidth=b.width,l.svgHeight=b.height;function x(){for(var A=1,P=0,I=m.length;P<I;++P)A=zf(A,m[P]);for(var L=1,P=0,I=_.length;P<I;++P)L=zf(L,_[P].length);A*=L;var R=w*m.length*_.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function D(){C&&(C.clearRect(0,0,T.width,T.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,T.width,T.height)));for(var A=0,P=0;P<g.length;++P)A+=g[P];if(A<=0)return;for(var I=-w,L=0,R=0,E=0;I<b.height;){if(L%2===0){for(var H=R/2%_.length,B=0,k=0,F=0;B<b.width*2;){for(var U=0,P=0;P<p[E].length;++P)U+=p[E][P];if(U<=0)break;if(k%2===0){var V=(1-o.symbolSize)*.5,ot=B+p[E][k]*V,mt=I+g[L]*V,Yt=p[E][k]*o.symbolSize,de=g[L]*o.symbolSize,Zt=F/2%_[H].length;Xt(ot,mt,Yt,de,_[H][Zt])}B+=p[E][k],++F,++k,k===p[E].length&&(k=0)}++E,E===p.length&&(E=0)}I+=g[L],++R,++L,L===g.length&&(L=0)}function Xt(St,pt,Y,K,pe){var wt=n?1:e,We=Xl(pe,St*wt,pt*wt,Y*wt,K*wt,o.color,o.symbolKeepAspect);if(n){var Ie=i.painter.renderOneToVNode(We);Ie&&S.children.push(Ie)}else Np(C,We)}}}}function Fp(r){if(!r||r.length===0)return[["rect"]];if(z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!z(r[e])){t=!1;break}if(t)return Fp([r]);for(var i=[],e=0;e<r.length;++e)z(r[e])?i.push([r[e]]):i.push(r[e]);return i}function zp(r){if(!r||r.length===0)return[[0,0]];if(vt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!vt(r[i])){e=!1;break}if(e)return zp([r]);for(var n=[],i=0;i<r.length;++i)if(vt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=Z(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function QS(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(vt(r)){var t=Math.ceil(r);return[t,t]}var e=Z(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function JS(r){return Z(r,function(t){return Hp(t)})}function Hp(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function jS(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Xu(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Xu(n,t)}}})}var fe=new Me,Gp={};function tT(r,t){Gp[r]=t}function eT(r){return Gp[r]}var rT=1,iT=800,nT=900,aT=1e3,oT=2e3,sT=5e3,Vp=1e3,uT=1100,$l=2e3,Wp=3e3,lT=4e3,No=4500,fT=4600,hT=5e3,vT=6e3,Up=7e3,cT={PROCESSOR:{FILTER:aT,SERIES_FILTER:iT,STATISTIC:sT},VISUAL:{LAYOUT:Vp,PROGRESSIVE_LAYOUT:uT,GLOBAL:$l,CHART:Wp,POST_CHART_LAYOUT:fT,COMPONENT:lT,BRUSH:hT,CHART_ITEM:No,ARIA:vT,DECAL:Up}},Ct="__flagInMainProcess",Et="__pendingUpdate",zs="__needsUpdateStatus",bv=/^[a-zA-Z0-9_]+$/,Hs="__connectUpdateStatus",xv=0,dT=1,pT=2;function Yp(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return $p(this,r,t)}}function Xp(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return $p(this,r,t)}}function $p(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Me.prototype[t].apply(r,e)}var qp=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Me),Zp=qp.prototype;Zp.on=Xp("on");Zp.off=Xp("off");var ei,Gs,da,qe,Vs,Ws,Us,Fi,zi,Cv,Dv,Ys,Mv,pa,Av,Kp,Kt,Lv,Qp=function(r){G(t,r);function t(e,i,n){var a=r.call(this,new mS)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},z(i)&&(i=Jp[i]),a._dom=e;var o="canvas",s="auto",u=!1;n.ssr;var l=a._zr=Nf(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:q(n.useDirtyRect,u),useCoarsePointer:q(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Yl(nt(l.flush,l),17),i=J(i),i&&sp(i,!0),a._theme=i,a._locale=M1(n.locale||zd),a._coordSysMgr=new ap;var f=a._api=Av(a);function h(c,v){return c.__prio-v.__prio}return Ma(ho,h),Ma($u,h),a._scheduler=new Lp(a,f,$u,ho),a._messageCenter=new qp,a._initEvents(),a.resize=nt(a.resize,a),l.animation.on("frame",a._onframe,a),Cv(l,a),Dv(l,a),ou(a),a}return t.prototype._onframe=function(){if(!this._disposed){Lv(this);var e=this._scheduler;if(this[Et]){var i=this[Et].silent;this[Ct]=!0;try{ei(this),qe.update.call(this,null,this[Et].updateParams)}catch(u){throw this[Ct]=!1,this[Et]=null,u}this._zr.flush(),this[Ct]=!1,this[Et]=null,Fi.call(this,i),zi.call(this,i)}else if(e.unfinished){var n=rT,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Ws(this,a),e.performVisualTasks(a),pa(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[Ct]){if(this._disposed){this.id;return}var a,o,s;if(W(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Ct]=!0,!this._model||i){var u=new j1(this._api),l=this._theme,f=this._model=new Gl;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},qu);var h={seriesTransition:s,optionChanged:!0};if(n)this[Et]={silent:a,updateParams:h},this[Ct]=!1,this.getZr().wakeUp();else{try{ei(this),qe.update.call(this,null,h)}catch(c){throw this[Et]=null,this[Ct]=!1,c}this._ssr||this._zr.flush(),this[Et]=null,this[Ct]=!1,Fi.call(this,a),zi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||X.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(X.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return M(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;M(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Pv[n]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(gn,function(m,w){if(m.group===n){var T=i?m.getZr().painter.getSvgDom().innerHTML:m.renderToCanvas(J(e)),S=m.getDom().getBoundingClientRect();u=a(S.left,u),l=a(S.top,l),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:T,left:S.left,top:S.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,y=h-l,p=wi.createCanvas(),g=Nf(p,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:y}),i){var _="";return M(c,function(m){var w=m.left-u,T=m.top-l;_+='<g transform="translate('+w+","+T+')">'+m.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 Ht({shape:{x:0,y:0,width:d,height:y},style:{fill:e.connectedBackgroundColor}})),M(c,function(m){var w=new Hr({style:{x:m.left*v-u,y:m.top*v-l,image:m.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Vs(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Vs(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=hs(n,e);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=hs(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?TS(s,u,i):bS(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(gT,function(i){var n=function(a){var o=e.getModel(),s=a.target,u,l=i==="globalout";if(l?u={}:s&&tn(s,function(d){var y=lt(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return u=p&&p.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return u=O({},y.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(i,u)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),M(pn,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),M(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),CS(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&jc(this.getDom(),Zl,"");var i=this,n=i._api,a=i._model;M(i._componentsViews,function(o){o.dispose(a,n)}),M(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete gn[i.id]},t.prototype.resize=function(e){if(!this[Ct]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Et]&&(a==null&&(a=this[Et].silent),n=!0,this[Et]=null),this[Ct]=!0;try{n&&ei(this),qe.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Ct]=!1,o}this[Ct]=!1,Fi.call(this,a),zi.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(W(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Zu[e]){var n=Zu[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=O({},e);return i.type=pn[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(W(i)||(i={silent:!!i}),!!fo[e.type]&&this._model){if(this[Ct]){this._pendingActions.push(e);return}var n=i.silent;Us.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&X.browser.weChat&&this._throttledZrFlush(),Fi.call(this,n),zi.call(this,n)}},t.prototype.updateLabelLayout=function(){fe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ei=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Gs(h,!0),Gs(h,!1),c.plan()},Gs=function(h,c){for(var v=h._model,d=h._scheduler,y=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,_=h._api,m=0;m<y.length;m++)y[m].__alive=!1;c?v.eachComponent(function(S,b){S!=="series"&&w(b)}):v.eachSeries(w);function w(S){var b=S.__requireNewView;S.__requireNewView=!1;var C="_ec_"+S.id+"_"+S.type,x=!b&&p[C];if(!x){var D=be(S.type),A=c?He.getClass(D.main,D.sub):nr.getClass(D.sub);x=new A,x.init(v,_),p[C]=x,y.push(x),g.add(x.group)}S.__viewId=x.__id=C,x.__alive=!0,x.__model=S,x.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(x,S,v,_)}for(var m=0;m<y.length;){var T=y[m];T.__alive?m++:(!c&&T.renderTask.dispose(),g.remove(T.group),T.dispose(v,_),y.splice(m,1),p[T.__id]===T&&delete p[T.__id],T.__id=T.group.__ecComponentInfo=null)}},da=function(h,c,v,d,y){var p=h._model;if(p.setUpdatePayload(v),!d){M([].concat(h._componentsViews).concat(h._chartsViews),T);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var _={mainType:d,query:g};y&&(_.subType=y);var m=v.excludeSeriesId,w;m!=null&&(w=Q(),M(It(m),function(S){var b=Ce(S,null);b!=null&&w.set(b,!0)})),p&&p.eachComponent(_,function(S){var b=w&&w.get(S.id)!=null;if(!b)if(fh(v))if(S instanceof sr)v.type===Br&&!v.notBlur&&!S.get(["emphasis","disabled"])&&nm(S,v,h._api);else{var C=Tl(S.mainType,S.componentIndex,v.name,h._api),x=C.focusSelf,D=C.dispatchers;v.type===Br&&x&&!v.notBlur&&Lu(S.mainType,S.componentIndex,h._api),D&&M(D,function(A){v.type===Br?Du(A):Mu(A)})}else Ru(v)&&S instanceof sr&&(sm(S,v,h._api),uh(S),Kt(h))},h),p&&p.eachComponent(_,function(S){var b=w&&w.get(S.id)!=null;b||T(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function T(S){S&&S.__alive&&S[c]&&S[c](S.__model,p,h._api,v)}},qe={prepareAndUpdate:function(h){ei(this),qe.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,y=this._zr,p=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(h),g.restoreData(v,h),g.performSeriesTasks(v),p.create(v,d),g.performDataProcessorTasks(v,h),Ws(this,v),p.update(v,d),e(v),g.performVisualTasks(v,h),Ys(this,v,d,h,c);var _=v.get("backgroundColor")||"transparent",m=v.get("darkMode");y.setBackgroundColor(_),m!=null&&m!=="auto"&&y.setDarkMode(m),fe.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var y=[];v.eachComponent(function(g,_){if(g!=="series"){var m=c.getViewOfComponentModel(_);if(m&&m.__alive)if(m.updateTransform){var w=m.updateTransform(_,v,d,h);w&&w.update&&y.push(m)}else y.push(m)}});var p=Q();v.eachSeries(function(g){var _=c._chartsMap[g.__viewId];if(_.updateTransform){var m=_.updateTransform(g,v,d,h);m&&m.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),pa(this,v,d,h,{},p),fe.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),nr.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Ys(this,c,this._api,h,{}),fe.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),nr.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,y){if(d!=="series"){var p=c.getViewOfComponentModel(y);p&&p.__alive&&p.updateVisual(y,v,c._api,h)}}),v.eachSeries(function(d){var y=c._chartsMap[d.__viewId];y.updateVisual(d,v,c._api,h)}),fe.trigger("afterupdate",v,this._api))},updateLayout:function(h){qe.update.call(this,h)}},Vs=function(h,c,v,d){if(h._disposed){h.id;return}for(var y=h._model,p=h._coordSysMgr.getCoordinateSystems(),g,_=hs(y,v),m=0;m<p.length;m++){var w=p[m];if(w[c]&&(g=w[c](y,_,d))!=null)return g}},Ws=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(y){d.updateStreamModes(y,v[y.__viewId])})},Us=function(h,c){var v=this,d=this.getModel(),y=h.type,p=h.escapeConnect,g=fo[y],_=g.actionInfo,m=(_.update||"update").split(":"),w=m.pop(),T=m[0]!=null&&be(m[0]);this[Ct]=!0;var S=[h],b=!1;h.batch&&(b=!0,S=Z(h.batch,function(L){return L=ut(O({},L),h),L.batch=null,L}));var C=[],x,D=Ru(h),A=fh(h);if(A&&wd(this._api),M(S,function(L){if(x=g.action(L,v._model,v._api),x=x||O({},L),x.type=_.event||x.type,C.push(x),A){var R=gl(h),E=R.queryOptionMap,H=R.mainTypeSpecified,B=H?E.keys()[0]:"series";da(v,w,L,B),Kt(v)}else D?(da(v,w,L,"series"),Kt(v)):T&&da(v,w,L,T.main,T.sub)}),w!=="none"&&!A&&!D&&!T)try{this[Et]?(ei(this),qe.update.call(this,h),this[Et]=null):qe[w].call(this,h)}catch(L){throw this[Ct]=!1,L}if(b?x={type:_.event||y,escapeConnect:p,batch:C}:x=C[0],this[Ct]=!1,!c){var P=this._messageCenter;if(P.trigger(x.type,x),D){var I={type:"selectchanged",escapeConnect:p,selected:um(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(I.type,I)}}},Fi=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Us.call(this,v,h)}},zi=function(h){!h&&this.trigger("updated")},Cv=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Et]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Dv=function(h,c){h.on("mouseover",function(v){var d=v.target,y=tn(d,Iu);y&&(am(y,v,c._api),Kt(c))}).on("mouseout",function(v){var d=v.target,y=tn(d,Iu);y&&(om(y,v,c._api),Kt(c))}).on("click",function(v){var d=v.target,y=tn(d,function(_){return lt(_).dataIndex!=null},!0);if(y){var p=y.selected?"unselect":"select",g=lt(y);c._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=!1;if(h.eachComponent(function(_,m){var w=m.get("zlevel")||0,T=m.get("z")||0,S=m.getZLevelKey();d=d||!!S,(_==="series"?v:c).push({zlevel:w,z:T,idx:m.componentIndex,type:_,key:S})}),d){var y=c.concat(v),p,g;Ma(y,function(_,m){return _.zlevel===m.zlevel?_.z-m.z:_.zlevel-m.zlevel}),M(y,function(_){var m=h.getComponent(_.type,_.idx),w=_.zlevel,T=_.key;p!=null&&(w=Math.max(p,w)),T?(w===p&&T!==g&&w++,g=T):g&&(w===p&&w++,g=""),p=w,m.setZLevel(w)})}}Ys=function(h,c,v,d,y){i(c),Mv(h,c,v,d,y),M(h._chartsViews,function(p){p.__alive=!1}),pa(h,c,v,d,y),M(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},Mv=function(h,c,v,d,y,p){M(p||h._componentsViews,function(g){var _=g.__model;l(_,g),g.render(_,c,v,d),s(_,g),f(_,g)})},pa=function(h,c,v,d,y,p){var g=h._scheduler;y=O(y||{},{updatedSeries:c.getSeries()}),fe.trigger("series:beforeupdate",c,v,y);var _=!1;c.eachSeries(function(m){var w=h._chartsMap[m.__viewId];w.__alive=!0;var T=w.renderTask;g.updatePayload(T,d),l(m,w),p&&p.get(m.uid)&&T.dirty(),T.perform(g.getPerformArgs(T))&&(_=!0),w.group.silent=!!m.get("silent"),o(m,w),uh(m)}),g.unfinished=_||g.unfinished,fe.trigger("series:layoutlabels",c,v,y),fe.trigger("series:transition",c,v,y),c.eachSeries(function(m){var w=h._chartsMap[m.__viewId];s(m,w),f(m,w)}),a(h,c),fe.trigger("series:afterupdate",c,v,y)},Kt=function(h){h[zs]=!0,h.getZr().wakeUp()},Lv=function(h){h[zs]&&(h.getZr().storage.traverse(function(c){hn(c)||n(c)}),h[zs]=!1)};function n(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var y=v[d];y==="emphasis"||y==="blur"||y==="select"||c.push(y)}h.selected&&h.states.select&&c.push("select"),h.hoverState===wl&&h.states.emphasis?c.push("emphasis"):h.hoverState===ml&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,y=0;d.traverse(function(p){p.isGroup||y++}),y>c.get("hoverLayerThreshold")&&!X.node&&!X.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(_){_.states.emphasis&&(_.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(y){return u(y,v,d,-1/0),!0})}}function u(h,c,v,d){var y=h.getTextContent(),p=h.getTextGuideLine(),g=h.isGroup;if(g)for(var _=h.childrenRef(),m=0;m<_.length;m++)d=Math.max(u(_[m],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(y&&(y.z=c,y.zlevel=v,isFinite(d)&&(y.z2=d+2)),p){var w=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(w&&w.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!hn(v)){var d=v.getTextContent(),y=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),y=v.get("duration"),p=y>0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(hn(g))return;if(g instanceof at&&pm(g),g.__dirty){var _=g.prevStates;_&&g.useStates(_)}if(d){g.stateTransition=p;var m=g.getTextContent(),w=g.getTextGuideLine();m&&(m.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&n(g)}})}Av=function(h){return new(function(c){G(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){Du(d,y),Kt(h)},v.prototype.leaveEmphasis=function(d,y){Mu(d,y),Kt(h)},v.prototype.enterBlur=function(d){im(d),Kt(h)},v.prototype.leaveBlur=function(d){gd(d),Kt(h)},v.prototype.enterSelect=function(d){yd(d),Kt(h)},v.prototype.leaveSelect=function(d){_d(d),Kt(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(np))(h)},Kp=function(h){function c(v,d){for(var y=0;y<v.length;y++){var p=v[y];p[Hs]=d}}M(pn,function(v,d){h._messageCenter.on(d,function(y){if(Pv[h.group]&&h[Hs]!==xv){if(y&&y.escapeConnect)return;var p=h.makeActionFromEvent(y),g=[];M(gn,function(_){_!==h&&_.group===h.group&&g.push(_)}),c(g,xv),M(g,function(_){_[Hs]!==dT&&_.dispatchAction(p)}),c(g,pT)}})})}}(),t}(Me),ql=Qp.prototype;ql.on=Yp("on");ql.off=Yp("off");ql.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var gT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var fo={},pn={},$u=[],qu=[],ho=[],Jp={},Zu={},gn={},Pv={},yT=+new Date-0,Zl="_echarts_instance_";function _T(r,t,e){var i=!(e&&e.ssr);if(i){var n=mT(r);if(n)return n}var a=new Qp(r,t,e);return a.id="ec_"+yT++,gn[a.id]=a,i&&jc(r,Zl,a.id),Kp(a),fe.trigger("afterinit",a),a}function mT(r){return gn[q0(r,Zl)]}function jp(r,t){Jp[r]=t}function tg(r){it(qu,r)<0&&qu.push(r)}function eg(r,t){Ql($u,r,t,oT)}function wT(r){Kl("afterinit",r)}function ST(r){Kl("afterupdate",r)}function Kl(r,t){fe.on(r,t)}function xi(r,t,e){j(t)&&(e=t,t="");var i=W(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!pn[t]&&(Fe(bv.test(i)&&bv.test(t)),fo[i]||(fo[i]={action:e,actionInfo:r}),pn[t]=i)}function TT(r,t){ap.register(r,t)}function bT(r,t){Ql(ho,r,t,Vp,"layout")}function Gr(r,t){Ql(ho,r,t,Wp,"visual")}var Iv=[];function Ql(r,t,e,i,n){if((j(t)||W(t))&&(e=t,t=i),!(it(Iv,e)>=0)){Iv.push(e);var a=Lp.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function rg(r,t){Zu[r]=t}function xT(r,t,e){var i=eT("registerMap");i&&i(r,t,e)}var CT=Lw;Gr($l,aS);Gr(No,oS);Gr(No,sS);Gr($l,wS);Gr(No,SS);Gr(Up,jS);tg(sp);eg(nT,hw);rg("default",uS);xi({type:Br,event:Br,update:Br},zt);xi({type:Ea,event:Ea,update:Ea},zt);xi({type:un,event:un,update:un},zt);xi({type:Oa,event:Oa,update:Oa},zt);xi({type:ln,event:ln,update:ln},zt);jp("light",_S);jp("dark",Ep);function Hi(r){return r==null?0:r.length||1}function Rv(r){return r}var DT=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Rv,this._newKeyGetter=n||Rv,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=Hi(u);if(l>1){var f=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],h=Hi(l),c=Hi(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),n[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=Hi(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var u=e[s],l=Hi(u);l===0?(e[s]=o,a&&i.push(s)):l===1?e[s]=[u,o]:u.push(o)}}},r}(),MT=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function AT(r,t){var e={},i=e.encode={},n=Q(),a=[],o=[],s={};M(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var y=v.coordDimIndex;Xs(i,d)[y]=c,v.isExtraCoord||(n.set(d,1),LT(v.type)&&(a[0]=c),Xs(s,d)[y]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}jd.each(function(p,g){var _=Xs(i,g),m=v.otherDims[g];m!=null&&m!==!1&&(_[m]=v.name)})});var u=[],l={};n.each(function(c,v){var d=i[v];l[v]=d[0],u=u.concat(d)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=Z(u,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=l;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new MT(s,t),e}function Xs(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function bC(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function LT(r){return!(r==="ordinal"||r==="time")}var za=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}(),PT=_t(),IT={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ig=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=og(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return q(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=fp(this.source),i=!sg(t),n="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=e?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=e?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),e&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=IT[l]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function ng(r){return r instanceof ig}function ag(r){for(var t=Q(),e=0;e<(r||[]).length;e++){var i=r[e],n=W(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function og(r){var t=PT(r);return t.dimNameMap||(t.dimNameMap=ag(r.dimensionsDefine))}function sg(r){return r>30}var Gi=W,Ze=Z,RT=typeof Int32Array>"u"?Array:Int32Array,ET="e\0\0",Ev=-1,OT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],kT=["_approximateExtent"],Ov,ga,Vi,Wi,$s,Ui,qs,BT=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;ng(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<i.length;f++){var h=i[f],c=z(h)?new za({name:h}):h instanceof za?h:new za(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=Q();M(o,function(p){y.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(vt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof Nu&&(a=t),!a){var o=this.dimensions,s=Vl(t)||Gt(t)?new hp(t,o.length):t;a=new Nu;var u=Ze(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=AT(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=e[u],o&&qs(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==ir&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===Ae;if(u&&!n.pure)for(var l=[],f=t;f<e;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&N0(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Ce(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Ce(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)qs(this,f);Ov(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Gi(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Vi(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return ga(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return N(t)?n.getValues(Ze(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return n==null||isNaN(n)?Ev:n},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){j(t)&&(i=e,e=t,t=[]);var n=i||this,a=Ze(Wi(t),this._getStoreDimIndex,this);this._store.each(a,n?nt(e,n):e)},r.prototype.filterSelf=function(t,e,i){j(t)&&(i=e,e=t,t=[]);var n=i||this,a=Ze(Wi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?nt(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=ht(t);return M(n,function(a){var o=e._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){j(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){var a=i||n||this,o=Ze(Wi(t),this._getStoreDimIndex,this),s=Ui(this);return s._store=this._store.map(o,a?nt(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=i||n||this,o=Ze(Wi(t),this._getStoreDimIndex,this);this._store.modify(o,a?nt(e,a):e)},r.prototype.downSample=function(t,e,i,n){var a=Ui(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=Ui(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=Ui(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new dt(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new DT(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return ga(t,i)},function(i){return ga(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Gi(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),N(a)?a=a.slice():Gi(a)&&(a=O({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Gi(e)?O(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Gi(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;$_(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ze(this.dimensions,this._getDimInfo,this),this.hostModel)),$s(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];j(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(ol(arguments)))})},r.internalField=function(){Ov=function(t){var e=t._invertedIndicesMap;M(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new RT(o.categories.length);for(var u=0;u<i.length;u++)i[u]=Ev;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},Vi=function(t,e,i){return Ce(t._getCategory(e,i),null)},ga=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Vi(t,t._idDimIdx,e)),i==null&&(i=ET+e),i},Wi=function(t){return N(t)||(t=t!=null?[t]:[]),t},Ui=function(t){var e=new r(t._schema?t._schema:Ze(t.dimensions,t._getDimInfo,t),t.hostModel);return $s(e,t),e},$s=function(t,e){M(OT.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,M(kT,function(i){t[i]=J(e[i])}),t._calculationInfo=O({},e._calculationInfo)},qs=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],u=n[e];if(s==null&&a!=null&&(i[e]=s=Vi(t,a,e)),u==null&&o!=null&&(n[e]=u=Vi(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[e]=u}}}(),r}();function NT(r,t){Vl(r)||(r=up(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Q(),a=[],o=zT(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&sg(o),u=i===r.dimensionsDefine,l=u?og(r):ag(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Q(f),c=new gp(o),v=0;v<c.length;v++)c[v]=-1;function d(x){var D=c[x];if(D<0){var A=i[x],P=W(A)?A:{name:A},I=new za,L=P.name;L!=null&&l.get(L)!=null&&(I.name=I.displayName=L),P.type!=null&&(I.type=P.type),P.displayName!=null&&(I.displayName=P.displayName);var R=a.length;return c[x]=R,I.storeDimIndex=x,a.push(I),I}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(x,D){var A=It(x).slice();if(A.length===1&&!z(A[0])&&A[0]<0){h.set(D,!1);return}var P=h.set(D,[]);M(A,function(I,L){var R=z(I)?l.get(I):I;R!=null&&R<o&&(P[L]=R,p(d(R),D,L))})});var y=0;M(e,function(x){var D,A,P,I;if(z(x))D=x,I={};else{I=x,D=I.name;var L=I.ordinalMeta;I.ordinalMeta=null,I=O({},I),I.ordinalMeta=L,A=I.dimsDef,P=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(D);if(R!==!1){if(R=It(R),!R.length)for(var E=0;E<(A&&A.length||1);E++){for(;y<o&&d(y).coordDim!=null;)y++;y<o&&R.push(y++)}M(R,function(H,B){var k=d(H);if(u&&I.type!=null&&(k.type=I.type),p(ut(k,I),D,B),k.name==null&&A){var F=A[B];!W(F)&&(F={name:F}),k.name=k.displayName=F.name,k.defaultTooltip=F.defaultTooltip}P&&ut(k.otherDims,P)})}});function p(x,D,A){jd.get(D)!=null?x.otherDims[D]=A:(x.coordDim=D,x.coordDimIndex=A,n.set(D,!0))}var g=t.generateCoord,_=t.generateCoordCount,m=_!=null;_=g?_||1:0;var w=g||"value";function T(x){x.name==null&&(x.name=x.coordDim)}if(s)M(a,function(x){T(x)}),a.sort(function(x,D){return x.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var b=d(S),C=b.coordDim;C==null&&(b.coordDim=HT(w,n,m),b.coordDimIndex=0,(!g||_<=0)&&(b.isExtraCoord=!0),_--),T(b),b.type==null&&(rp(r,S)===Tt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return FT(a),new ig({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function FT(r){for(var t=Q(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function zT(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return M(t,function(a){var o;W(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function HT(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}function xC(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;GT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(M(a,function(_,m){z(_)&&(a[m]=_={name:_}),u&&!_.isExtraCoord&&(!i&&!l&&_.ordinalMeta&&(l=_),!f&&_.type!=="ordinal"&&_.type!=="time"&&(!n||n===_.coordDim)&&(f=_))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;M(a,function(_){_.coordDim===v&&y++});var p={name:h,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function GT(r){return!ng(r.schema)}function ug(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function VT(r,t){return ug(r,t)?r.getCalculationInfo("stackResultDimension"):t}var Pe=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();wo(Pe);var WT=0,kv=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++WT}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&Z(i,UT);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!z(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Q(this.categories))},r}();function UT(r){return W(r)&&r.value!=null?r.value:r+""}function CC(r){return r.type==="interval"||r.type==="log"}function YT(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=qc(a/t);e!=null&&o<e&&(o=n.interval=e),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=lg(o),u=n.niceTickExtent=[Be(Math.ceil(r[0]/o)*o,s),Be(Math.floor(r[1]/o)*o,s)];return XT(u,r),n}function DC(r){var t=Math.pow(10,dl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Be(e*t)}function lg(r){return Sn(r)+2}function Bv(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function XT(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Bv(r,0,t),Bv(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Fo(r,t){return r>=t[0]&&r<=t[1]}function zo(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ho(r,t){return r*(t[1]-t[0])+t[0]}var Jl=function(r){G(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new kv({})),N(n)&&(n=new kv({categories:Z(n,function(a){return W(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Fo(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),zo(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ho(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,i.length);o<u;++o){var l=i[o];n[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Pe);Pe.registerClass(Jl);var Ar=Be,Hn=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Fo(e,this._extent)},t.prototype.normalize=function(e){return zo(e,this._extent)},t.prototype.scale=function(e){return Ho(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=lg(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var u=1e4;n[0]<a[0]&&(e?s.push({value:Ar(a[0]-i,o)}):s.push({value:n[0]}));for(var l=a[0];l<=a[1]&&(s.push({value:l}),l=Ar(l+i,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:Ar(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],u=i[o-1],l=0,f=[],h=s.value-u.value,c=h/e;l<e-1;){var v=Ar(u.value+(l+1)*c);v>a[0]&&v<a[1]&&f.push(v),l++}n.push(f)}return n},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=Sn(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Ar(e.value,n,!0);return Zd(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=YT(a,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);e.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=Ar(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Ar(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(Pe);Pe.registerClass(Hn);var fg=typeof Float32Array<"u",$T=fg?Float32Array:Array;function Zs(r){return N(r)?fg?new Float32Array(r):r:new $T(r)}var qT="__ec_stack_";function hg(r){return r.get("stack")||qT+r.seriesIndex}function jl(r){return r.dim+r.index}function vg(r,t){var e=[];return t.eachSeriesByType(r,function(i){dg(i)&&e.push(i)}),e}function ZT(r){var t={};M(r,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),y=0,p=d.count();y<p;++y){var g=d.get(v,y);t[c]?t[c].push(g):t[c]=[g]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(u,l){return u-l});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function cg(r){var t=ZT(r),e=[];return M(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=st(i.get("barWidth"),s),y=st(i.get("barMaxWidth"),s),p=st(i.get("barMinWidth")||(pg(i)?.5:1),s),g=i.get("barGap"),_=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:_,axisKey:jl(a),stackId:hg(i)})}),KT(e)}function KT(r){var t={};M(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=i.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=i.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(u[l].maxWidth=h);var c=i.barMinWidth;c&&(u[l].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var u=ht(a).length;s=Math.max(35-u*4,15)+"%"}var l=st(s,o),f=st(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(g){var _=g.maxWidth,m=g.minWidth;if(g.width){var w=g.width;_&&(w=Math.min(w,_)),m&&(w=Math.max(w,m)),g.width=w,h-=w+f*w,c--}else{var w=v;_&&_<w&&(w=Math.min(_,h)),m&&m>w&&(w=m),w!==v&&(g.width=w,h-=w+f*w,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,y;M(a,function(g,_){g.width||(g.width=v),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;M(a,function(g,_){e[n][_]=e[n][_]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),e}function QT(r,t,e){if(r&&t){var i=r[jl(t)];return i}}function MC(r,t){var e=vg(r,t),i=cg(e);M(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),u=hg(n),l=i[jl(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function AC(r){return{seriesType:r,plan:xp(),reset:function(t){if(dg(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),u=t.get("showBackground",!0),l=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=ug(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=JT(n,a),d=pg(t),y=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),g=e.getLayout("size"),_=e.getLayout("offset");return{progress:function(m,w){for(var T=m.count,S=d&&Zs(T*3),b=d&&u&&Zs(T*3),C=d&&Zs(T),x=i.master.getRect(),D=c?x.width:x.height,A,P=w.getStore(),I=0;(A=m.next())!=null;){var L=P.get(h?p:o,A),R=P.get(s,A),E=v,H=void 0;h&&(H=+L-P.get(o,A));var B=void 0,k=void 0,F=void 0,U=void 0;if(c){var V=i.dataToPoint([L,R]);if(h){var ot=i.dataToPoint([H,R]);E=ot[0]}B=E,k=V[1]+_,F=V[0]-E,U=g,Math.abs(F)<y&&(F=(F<0?-1:1)*y)}else{var V=i.dataToPoint([R,L]);if(h){var ot=i.dataToPoint([R,H]);E=ot[1]}B=V[0]+_,k=E,F=g,U=V[1]-E,Math.abs(U)<y&&(U=(U<=0?-1:1)*y)}d?(S[I]=B,S[I+1]=k,S[I+2]=c?F:U,b&&(b[I]=c?x.x:B,b[I+1]=c?k:x.y,b[I+2]=D),C[A]=A):w.setItemLayout(A,{x:B,y:k,width:F,height:U}),I+=3}d&&w.setLayout({largePoints:S,largeDataIndices:C,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function dg(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function pg(r){return r.pipelineContext&&r.pipelineContext.large}function JT(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var jT=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},gg=function(r){G(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return Lo(e.value,Mh[I1(pi(this._minLevelUnit))]||Mh.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return R1(e,i,n,o,a)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,n=[];if(!e)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=ob(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=ae,i[1]+=ae),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-ae}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=ya.length,u=Math.min(jT(ya,this._approxInterval,0,s),s-1);this._interval=ya[u][1],this._minLevelUnit=ya[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return vt(e)?e:+ze(e)},t.prototype.contain=function(e){return Fo(this.parse(e),this._extent)},t.prototype.normalize=function(e){return zo(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ho(e,this._extent)},t.type="time",t}(Hn),ya=[["second",Ol],["minute",kl],["hour",vn],["quarter-day",vn*6],["half-day",vn*12],["day",ae*1.2],["half-week",ae*3.5],["week",ae*7],["month",ae*31],["quarter",ae*95],["half-year",Dh/2],["year",Dh]];function tb(r,t,e,i){var n=ze(t),a=ze(e),o=function(d){return Ah(n,d,i)===Ah(a,d,i)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function eb(r,t){return r/=ae,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function rb(r){var t=30*ae;return r/=t,r>6?6:r>3?3:r>2?2:1}function ib(r){return r/=vn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Nv(r,t){return r/=t?kl:Ol,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function nb(r){return qc(r)}function ab(r,t,e){var i=new Date(r);switch(pi(t)){case"year":case"month":i[Wd(e)](0);case"day":i[Ud(e)](1);case"hour":i[Yd(e)](0);case"minute":i[Xd(e)](0);case"second":i[$d(e)](0),i[qd(e)](0)}return i.getTime()}function ob(r,t,e,i){var n=1e4,a=Gd,o=0;function s(D,A,P,I,L,R,E){for(var H=new Date(A),B=A,k=H[I]();B<P&&B<=i[1];)E.push({value:B}),k+=D,H[L](k),B=H.getTime();E.push({value:B,notAdd:!0})}function u(D,A,P){var I=[],L=!A.length;if(!tb(pi(D),i[0],i[1],e)){L&&(A=[{value:ab(new Date(i[0]),D,e)},{value:i[1]}]);for(var R=0;R<A.length-1;R++){var E=A[R].value,H=A[R+1].value;if(E!==H){var B=void 0,k=void 0,F=void 0,U=!1;switch(D){case"year":B=Math.max(1,Math.round(t/ae/365)),k=Bl(e),F=E1(e);break;case"half-year":case"quarter":case"month":B=rb(t),k=gi(e),F=Wd(e);break;case"week":case"half-week":case"day":B=eb(t),k=Po(e),F=Ud(e),U=!0;break;case"half-day":case"quarter-day":case"hour":B=ib(t),k=xn(e),F=Yd(e);break;case"minute":B=Nv(t,!0),k=Io(e),F=Xd(e);break;case"second":B=Nv(t,!1),k=Ro(e),F=$d(e);break;case"millisecond":B=nb(t),k=Eo(e),F=qd(e);break}s(B,E,H,k,F,U,I),D==="year"&&P.length>1&&R===0&&P.unshift({value:P[0].value-B})}}for(var R=0;R<I.length;R++)P.push(I[R]);return I}}for(var l=[],f=[],h=0,c=0,v=0;v<a.length&&o++<n;++v){var d=pi(a[v]);if(P1(a[v])){u(a[v],l[l.length-1]||[],f);var y=a[v+1]?pi(a[v+1]):null;if(d!==y){if(f.length){c=h,f.sort(function(D,A){return D.value-A.value});for(var p=[],g=0;g<f.length;++g){var _=f[g].value;(g===0||f[g-1].value!==_)&&(p.push(f[g]),_>=i[0]&&_<=i[1]&&h++)}var m=(i[1]-i[0])/t;if(h>m*1.5&&c>m/1.5||(l.push(p),h>m||r===a[v]))break}f=[]}}}for(var w=Ot(Z(l,function(D){return Ot(D,function(A){return A.value>=i[0]&&A.value<=i[1]&&!A.notAdd})}),function(D){return D.length>0}),T=[],S=w.length-1,v=0;v<w.length;++v)for(var b=w[v],C=0;C<b.length;++C)T.push({value:b[C].value,level:S-v});T.sort(function(D,A){return D.value-A.value});for(var x=[],v=0;v<T.length;++v)(v===0||T[v].value!==T[v-1].value)&&x.push(T[v]);return x}Pe.registerClass(gg);var Fv=Pe.prototype,yn=Hn.prototype,sb=Be,ub=Math.floor,lb=Math.ceil,_a=Math.pow,se=Math.log,tf=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Hn,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=yn.getTicks.call(this,e);return Z(o,function(s){var u=s.value,l=Be(_a(this.base,u));return l=u===n[0]&&this._fixMin?ma(l,a[0]):l,l=u===n[1]&&this._fixMax?ma(l,a[1]):l,{value:l}},this)},t.prototype.setExtent=function(e,i){var n=se(this.base);e=se(Math.max(0,e))/n,i=se(Math.max(0,i))/n,yn.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=Fv.getExtent.call(this);i[0]=_a(e,i[0]),i[1]=_a(e,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=ma(i[0],a[0])),this._fixMax&&(i[1]=ma(i[1],a[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=se(e[0])/se(i),e[1]=se(e[1])/se(i),Fv.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=O0(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Be(lb(i[0]/a)*a),Be(ub(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){yn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=se(e)/se(this.base),Fo(e,this._extent)},t.prototype.normalize=function(e){return e=se(e)/se(this.base),zo(e,this._extent)},t.prototype.scale=function(e){return e=Ho(e,this._extent),_a(this.base,e)},t.type="log",t}(Pe),yg=tf.prototype;yg.getMinorTicks=yn.getMinorTicks;yg.getLabel=yn.getLabel;function ma(r,t){return sb(r,Sn(t))}Pe.registerClass(tf);var fb=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;j(o)?this._modelMinNum=wa(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=wa(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(j(s)?this._modelMaxNum=wa(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=wa(t,s)),n)this._axisDataLen=e.getCategories().length;else{var u=e.get("boundaryGap"),l=N(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[or(l[0],1),or(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),u==null&&(u=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=Va(s)||Va(u)||t&&!n;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[vb[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=hb[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),hb={min:"_determinedMin",max:"_determinedMax"},vb={min:"_dataMin",max:"_dataMax"};function cb(r,t,e){var i=r.rawExtentInfo;return i||(i=new fb(r,t,e),r.rawExtentInfo=i,i)}function wa(r,t){return t==null?null:Va(t)?NaN:r.parse(t)}function db(r,t){var e=r.type,i=cb(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=vg("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=cg(s),f=pb(n,a,t,l);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function pb(r,t,e,i){var n=e.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=QT(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function LC(r,t){var e=t,i=db(r,e),n=i.extent,a=e.get("splitNumber");r instanceof tf&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function PC(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Jl({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new gg({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Pe.getClass(t)||Hn)}}function IC(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function gb(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):z(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a??"");return o}}(t):j(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(ef(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function ef(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function RC(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof Jl?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=gb(r),u,l=1;n>40&&(l=Math.ceil(n/40));for(var f=0;f<n;f+=l){var h=i?i[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=yb(v,o.get("rotate")||0);u?u.union(d):u=d}return u}}function yb(r,t){var e=t*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new et(r.x,r.y,a,o);return s}function _b(r){var t=r.get("interval");return t??"auto"}function mb(r){return r.type==="category"&&_b(r.getLabelModel())===0}function EC(r,t){var e={};return M(r.mapDimensionsAll(t),function(i){e[VT(r,i)]=!0}),ht(e)}var zv=[],wb={registerPreprocessor:tg,registerProcessor:eg,registerPostInit:wT,registerPostUpdate:ST,registerUpdateLifecycle:Kl,registerAction:xi,registerCoordinateSystem:TT,registerLayout:bT,registerVisual:Gr,registerTransform:CT,registerLoading:rg,registerMap:xT,registerImpl:tT,PRIORITY:cT,ComponentModel:rt,ComponentView:He,SeriesModel:sr,ChartView:nr,registerComponentModel:function(r){rt.registerClass(r)},registerComponentView:function(r){He.registerClass(r)},registerSeriesModel:function(r){sr.registerClass(r)},registerChartView:function(r){nr.registerClass(r)},registerSubTypeDefaulter:function(r,t){rt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){M0(r,t)}};function In(r){if(N(r)){M(r,function(t){In(t)});return}it(zv,r)>=0||(zv.push(r),j(r)&&(r={install:r}),r.install(wb))}function _g(r,t,e,i,n,a,o,s){var u=n-r,l=a-t,f=e-r,h=i-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;d*=c;var y=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((y-n)*(y-n)+(p-a)*(p-a))}var je=new $,ct=new $,bt=new $,tr=new $,Se=new $,vo=[],Lt=new $;function Sb(r,t){if(t<=180&&t>0){t=t/180*Math.PI,je.fromArray(r[0]),ct.fromArray(r[1]),bt.fromArray(r[2]),$.sub(tr,je,ct),$.sub(Se,bt,ct);var e=tr.len(),i=Se.len();if(!(e<.001||i<.001)){tr.scale(1/e),Se.scale(1/i);var n=tr.dot(Se),a=Math.cos(t);if(a<n){var o=_g(ct.x,ct.y,bt.x,bt.y,je.x,je.y,vo);Lt.fromArray(vo),Lt.scaleAndAdd(Se,o/Math.tan(Math.PI-t));var s=bt.x!==ct.x?(Lt.x-ct.x)/(bt.x-ct.x):(Lt.y-ct.y)/(bt.y-ct.y);if(isNaN(s))return;s<0?$.copy(Lt,ct):s>1&&$.copy(Lt,bt),Lt.toArray(r[1])}}}}function Tb(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,je.fromArray(r[0]),ct.fromArray(r[1]),bt.fromArray(r[2]),$.sub(tr,ct,je),$.sub(Se,bt,ct);var i=tr.len(),n=Se.len();if(!(i<.001||n<.001)){tr.scale(1/i),Se.scale(1/n);var a=tr.dot(t),o=Math.cos(e);if(a<o){var s=_g(ct.x,ct.y,bt.x,bt.y,je.x,je.y,vo);Lt.fromArray(vo);var u=Math.PI/2,l=Math.acos(Se.dot(t)),f=u+l-e;if(f>=u)$.copy(Lt,bt);else{Lt.scaleAndAdd(Se,s/Math.tan(Math.PI/2-f));var h=bt.x!==ct.x?(Lt.x-ct.x)/(bt.x-ct.x):(Lt.y-ct.y)/(bt.y-ct.y);if(isNaN(h))return;h<0?$.copy(Lt,ct):h>1&&$.copy(Lt,bt)}Lt.toArray(r[1])}}}}function Ks(r,t,e,i){var n=e==="normal",a=n?r:r.ensureState(e);a.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function bb(r,t){var e=t.smooth,i=t.points;if(i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var n=uu(i[0],i[1]),a=uu(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*e,s=Uo([],i[1],i[0],o/n),u=Uo([],i[1],i[2],o/a),l=Uo([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function xb(r,t,e){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=n.ignore,u=0;u<Ja.length;u++){var l=Ja[u],f=t[l],h=l==="normal";if(f){var c=f.get("show"),v=h?s:q(n.states[l]&&n.states[l].ignore,s);if(v||!q(c,o)){var d=h?i:i&&i.states[l];d&&(d.ignore=!0),i&&Ks(i,!0,l,f);continue}i||(i=new zn,r.setTextGuideLine(i),!h&&(s||!o)&&Ks(i,!0,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),Ks(i,!1,l,f)}}if(i){ut(i.style,e),i.style.fill=null;var y=a.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=y||!1,i.buildPath=bb}}function Cb(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},i=0;i<De.length;i++){var n=De[i];e[n]=r.getModel([n,t])}return e}function Db(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=n.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new ja(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:l,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Mb(r,t,e,i,n,a){var o=r.length;if(o<2)return;r.sort(function(S,b){return S.rect[t]-b.rect[t]});for(var s=0,u,l=!1,f=0;f<o;f++){var h=r[f],c=h.rect;u=c[t]-s,u<0&&(c[t]-=u,h.label[t]-=u,l=!0),s=c[t]+c[e]}var v=r[0],d=r[o-1],y,p;g(),y<0&&w(-y,.8),p<0&&w(p,.8),g(),_(y,p,1),_(p,y,-1),g(),y<0&&T(-y),p<0&&T(p);function g(){y=v.rect[t]-i,p=n-d.rect[t]-d.rect[e]}function _(S,b,C){if(S<0){var x=Math.min(b,-S);if(x>0){m(x*C,0,o);var D=x+S;D<0&&w(-D*C,1)}else w(-S*C,1)}}function m(S,b,C){S!==0&&(l=!0);for(var x=b;x<C;x++){var D=r[x],A=D.rect;A[t]+=S,D.label[t]+=S}}function w(S,b){for(var C=[],x=0,D=1;D<o;D++){var A=r[D-1].rect,P=Math.max(r[D].rect[t]-A[t]-A[e],0);C.push(P),x+=P}if(x){var I=Math.min(Math.abs(S)/x,b);if(S>0)for(var D=0;D<o-1;D++){var L=C[D]*I;m(L,0,D+1)}else for(var D=o-1;D>0;D--){var L=C[D-1]*I;m(-L,D,o)}}}function T(S){var b=S<0?-1:1;S=Math.abs(S);for(var C=Math.ceil(S/(o-1)),x=0;x<o-1;x++)if(b>0?m(C,0,x+1):m(-C,o-x-1,o),S-=C,S<=0)return}return l}function Ab(r,t,e,i){return Mb(r,"y","height",t,e)}function Lb(r){var t=[];r.sort(function(y,p){return p.priority-y.priority});var e=new et(0,0,0,0);function i(y){if(!y.ignore){var p=y.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}y.ignore=!0}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new ja(d.localRect,d.transform)),h||(h=new ja(s,u)),h.intersect(d.obb)){c=!0;break}}}c?(i(l),f&&i(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function Hv(r,t,e){var i=wi.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var Qs=function(r){G(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||qa,typeof e=="string"?o=Hv(e,i,n):W(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(bc(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Hv("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new et(0,0,0,0);function f(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var m=new et(0,0,0,0);m.copy(_),o.push(m)}else{for(var w=!1,T=1/0,S=0,b=0;b<o.length;++b){var C=o[b];if(C.intersect(_)){var x=new et(0,0,0,0);x.copy(C),x.union(_),o[b]=x,w=!0;break}else if(u){l.copy(_),l.union(C);var D=_.width*_.height,A=C.width*C.height,P=l.width*l.height,I=P-D-A;I<T&&(T=I,S=b)}}if(u&&(o[S].union(_),w=!0),!w){var m=new et(0,0,0,0);m.copy(_),o.push(m)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(n,a,!0,!0),d=c.__isRendered&&(c.__dirty&$t||!v)?c.getPrevPaintRect():null;d&&f(d);var y=v&&(c.__dirty&$t||!c.__isRendered)?c.getPaintRect():null;y&&f(y)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=i[h],v=c&&c.shouldBePainted(n,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(p=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(y,p,g,_){if(o.clearRect(y,p,g,_),i&&i!=="transparent"){var m=void 0;if(po(i)){var w=i.global||i.__width===g&&i.__height===_;m=w&&i.__canvasGradient||Uu(o,i,{x:0,y:0,width:g,height:_}),i.__canvasGradient=m,i.__width=g,i.__height=_}else fy(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,m=Yu(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=m||i,o.fillRect(y,p,g,_),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,y,p,g,_),o.restore())}!n||l?d(0,0,s,u):n.length&&M(n,function(y){d(y.x*h,y.y*h,y.width*h,y.height*h)})},t}(Me),Gv=1e5,Lr=314159,Sa=.01,Pb=.001;function Ib(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function Rb(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var Eb=function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=O({},i||{}),this.dpr=i.devicePixelRatio||qa,this._singleCanvas=a,this.root=t;var o=t.style;o&&(bc(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;i.width!=null&&(h=i.width),i.height!=null&&(c=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Qs(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[Lr]=v,v.zlevel=Lr,s.push(Lr),this._domRoot=t}else{this._width=ca(t,0,i),this._height=ca(t,1,i);var l=this._domRoot=Rb(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Gv)),a||(a=i.ctx,a.save()),Er(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Gv)},r.prototype.paintOne=function(t,e){Np(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;Wa(function(){u._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Lr).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var f=!0,h=!1,c=function(y){var p=a[y],g=p.ctx,_=o&&p.createRepaintRects(t,e,v._width,v._height),m=i?p.__startIndex:p.__drawIndex,w=!i&&p.incremental&&Date.now,T=w&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,_);else if(m===p.__startIndex){var b=t[m];(!b.incremental||!b.notClear||i)&&p.clear(!1,S,_)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=p.__startIndex);var C,x=function(I){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=m;C<p.__endIndex;C++){var R=t[C];if(R.__inHover&&(h=!0),n._doPaintEl(R,p,o,I,L,C===p.__endIndex-1),w){var E=Date.now()-T;if(E>15)break}}L.prevElClipPaths&&g.restore()};if(_)if(_.length===0)C=p.__endIndex;else for(var D=v.dpr,A=0;A<_.length;++A){var P=_[A];g.save(),g.beginPath(),g.rect(P.x*D,P.y*D,P.width*D,P.height*D),g.clip(),x(P),g.restore()}else g.save(),x(),g.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return X.wxa&&M(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(Er(s,t,a,o),t.setPrevPaintRect(u))}else Er(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Lr);var i=this._layers[t];return i||(i=new Qs("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?ft(i,this._layerConfig[t],!0):this._layerConfig[t-Sa]&&ft(i,this._layerConfig[t-Sa],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,u=-1;if(!i[t]&&Ib(e)){if(a>0&&t>n[0]){for(u=0;u<a-1&&!(n[u]<t&&n[u+1]>t);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var n=t[u],l=n.zlevel,f=void 0;s!==l&&(s=l,o=0),n.incremental?(f=this.getLayer(l+Pb,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?Sa:0),this._needsManuallyCompositing),f.__builtin__||al("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),n.__dirty&$t&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?ft(i[t],e,!0):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Sa){var o=this._layers[a];ft(o,i[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(it(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=ca(a,0,n),e=ca(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Lr).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Lr].dom;var e=new Qs("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];Er(i,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function OC(r){r.registerPainter("canvas",Eb)}function Ta(r,t,e){var i=r.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;N(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Z(i,function(a){return or(a,n)})}}var Vv=Math.PI*2,ba=Math.PI/180;function mg(r,t){return io(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function wg(r,t){var e=mg(r,t),i=r.get("center"),n=r.get("radius");N(n)||(n=[0,n]);var a=st(e.width,t.getWidth()),o=st(e.height,t.getHeight()),s=Math.min(a,o),u=st(n[0],s/2),l=st(n[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(i);f=v[0]||0,h=v[1]||0}else N(i)||(i=[i,i]),f=st(i[0],a)+e.x,h=st(i[1],o)+e.y;return{cx:f,cy:h,r0:u,r:l}}function Ob(r,t,e){t.eachSeriesByType(r,function(i){var n=i.getData(),a=n.mapDimension("value"),o=mg(i,e),s=wg(i,e),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-i.get("startAngle")*ba,v=i.get("endAngle"),d=i.get("padAngle")*ba;v=v==="auto"?c-Vv:-v*ba;var y=i.get("minAngle")*ba,p=y+d,g=0;n.each(a,function(H){!isNaN(H)&&g++});var _=n.getSum(a),m=Math.PI/(_||g)*2,w=i.get("clockwise"),T=i.get("roseType"),S=i.get("stillShowZeroSum"),b=n.getDataExtent(a);b[0]=0;var C=w?1:-1,x=[c,v],D=C*d/2;od(x,!w),c=x[0],v=x[1];var A=Sg(i);A.startAngle=c,A.endAngle=v,A.clockwise=w;var P=Math.abs(v-c),I=P,L=0,R=c;if(n.setLayout({viewRect:o,r:f}),n.each(a,function(H,B){var k;if(isNaN(H)){n.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:u,cy:l,r0:h,r:T?NaN:f});return}T!=="area"?k=_===0&&S?m:H*m:k=P/g,k<p?(k=p,I-=p):L+=H;var F=R+C*k,U=0,V=0;d>k?(U=R+C*k/2,V=U):(U=R+D,V=F-D),n.setItemLayout(B,{angle:k,startAngle:U,endAngle:V,clockwise:w,cx:u,cy:l,r0:h,r:T?L0(H,b,[h,f]):f}),R=F}),I<Vv&&g)if(I<=.001){var E=P/g;n.each(a,function(H,B){if(!isNaN(H)){var k=n.getItemLayout(B);k.angle=E;var F=0,U=0;E<d?(F=c+C*(B+1/2)*E,U=F):(F=c+C*B*E+D,U=c+C*(B+1)*E-D),k.startAngle=F,k.endAngle=U}})}else m=I/L,R=c,n.each(a,function(H,B){if(!isNaN(H)){var k=n.getItemLayout(B),F=k.angle===p?p:H*m,U=0,V=0;F<d?(U=R+C*F/2,V=U):(U=R+D,V=R+C*F-D),k.startAngle=U,k.endAngle=V,R+=C*F}})})}var Sg=_t();function kb(r){return{seriesType:r,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=t.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var Bb=Math.PI/180;function Wv(r,t,e,i,n,a,o,s,u,l){if(r.length<2)return;function f(y){for(var p=y.rB,g=p*p,_=0;_<y.list.length;_++){var m=y.list[_],w=Math.abs(m.label.y-e),T=i+m.len,S=T*T,b=Math.sqrt(Math.abs((1-w*w/g)*S)),C=t+(b+m.len2)*n,x=C-m.label.x,D=m.targetTextWidth-x*n;Tg(m,D,!0),m.label.x=C}}function h(y){for(var p={list:[],maxY:0},g={list:[],maxY:0},_=0;_<y.length;_++)if(y[_].labelAlignTo==="none"){var m=y[_],w=m.label.y>e?g:p,T=Math.abs(m.label.y-e);if(T>=w.maxY){var S=m.label.x-t-m.len2*n,b=i+m.len,C=Math.abs(S)<b?Math.sqrt(T*T/(1-S*S/b/b)):b;w.rB=C,w.maxY=T}w.list.push(m)}f(p),f(g)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-l;r[v].linePoints[1][0]+=d,r[v].label.x=l}Ab(r,u,u+o)&&h(r)}function Nb(r,t,e,i,n,a,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;Js(r[c])||(v.x<t?(f=Math.min(f,v.x),u.push(r[c])):(h=Math.max(h,v.x),l.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Js(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,y=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<t?p=y[2][0]-d.labelDistance-o-d.edgeDistance:p=o+n-d.edgeDistance-y[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?p=f-o-d.bleedMargin:p=o+n-h-d.bleedMargin:v.x<t?p=v.x-o-d.bleedMargin:p=o+n-v.x-d.bleedMargin,d.targetTextWidth=p,Tg(d,p)}}Wv(l,t,e,i,1,n,a,o,s,h),Wv(u,t,e,i,-1,n,a,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Js(d)&&d.linePoints){var v=d.label,y=d.linePoints,g=d.labelAlignTo==="edge",_=v.style.padding,m=_?_[1]+_[3]:0,w=v.style.backgroundColor?0:m,T=d.rect.width+w,S=y[1][0]-y[2][0];g?v.x<t?y[2][0]=o+d.edgeDistance+T+d.labelDistance:y[2][0]=o+n-d.edgeDistance-T-d.labelDistance:(v.x<t?y[2][0]=v.x+d.labelDistance:y[2][0]=v.x-d.labelDistance,y[1][0]=y[2][0]+S),y[1][1]=y[2][1]=v.y}}}function Tg(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,u=s?s[1]+s[3]:0,l=n.overflow,f=a.width+(o?0:u);if(t<f||e){var h=a.height;if(l&&l.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-u);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var v=t-u,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;i.setStyle("width",d)}var y=i.getBoundingRect();a.width=y.width;var p=(i.style.margin||0)+2.1;a.height=y.height+p,a.y-=(a.height-h)/2}}}function Js(r){return r.position==="center"}function Fb(r){var t=r.getData(),e=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*Bb,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var b in S.states)if(S.states[b].ignore===!1)return!0;return!1}t.each(function(S){var b=t.getItemGraphicEl(S),C=b.shape,x=b.getTextContent(),D=b.getTextGuideLine(),A=t.getItemModel(S),P=A.getModel("label"),I=P.get("position")||A.get(["emphasis","label","position"]),L=P.get("distanceToLabelLine"),R=P.get("alignTo"),E=st(P.get("edgeDistance"),l),H=P.get("bleedMargin"),B=A.getModel("labelLine"),k=B.get("length");k=st(k,l);var F=B.get("length2");if(F=st(F,l),Math.abs(C.endAngle-C.startAngle)<o){M(x.states,v),x.ignore=!0,D&&(M(D.states,v),D.ignore=!0);return}if(d(x)){var U=(C.startAngle+C.endAngle)/2,V=Math.cos(U),ot=Math.sin(U),mt,Yt,de,Zt;i=C.cx,n=C.cy;var Xt=I==="inside"||I==="inner";if(I==="center")mt=C.cx,Yt=C.cy,Zt="center";else{var St=(Xt?(C.r+C.r0)/2*V:C.r*V)+i,pt=(Xt?(C.r+C.r0)/2*ot:C.r*ot)+n;if(mt=St+V*3,Yt=pt+ot*3,!Xt){var Y=St+V*(k+u-C.r),K=pt+ot*(k+u-C.r),pe=Y+(V<0?-1:1)*F,wt=K;R==="edge"?mt=V<0?f+E:f+l-E:mt=pe+(V<0?-L:L),Yt=wt,de=[[St,pt],[Y,K],[pe,wt]]}Zt=Xt?"center":R==="edge"?V>0?"right":"left":V>0?"left":"right"}var We=Math.PI,Ie=0,Ci=P.get("rotate");if(vt(Ci))Ie=Ci*(We/180);else if(I==="center")Ie=0;else if(Ci==="radial"||Ci===!0){var Fg=V<0?-U+We:-U;Ie=Fg}else if(Ci==="tangential"&&I!=="outside"&&I!=="outer"){var Vr=Math.atan2(V,ot);Vr<0&&(Vr=We*2+Vr);var zg=ot>0;zg&&(Vr=We+Vr),Ie=Vr-We}if(a=!!Ie,x.x=mt,x.y=Yt,x.rotation=Ie,x.setStyle({verticalAlign:"middle"}),Xt){x.setStyle({align:Zt});var Go=x.states.select;Go&&(Go.x+=x.x,Go.y+=x.y)}else{var Di=x.getBoundingRect().clone();Di.applyTransform(x.getComputedTransform());var af=(x.style.margin||0)+2.1;Di.y-=af/2,Di.height+=af,e.push({label:x,labelLine:D,position:I,len:k,len2:F,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new $(V,ot),linePoints:de,textAlign:Zt,labelDistance:L,labelAlignTo:R,edgeDistance:E,bleedMargin:H,rect:Di,unconstrainedWidth:Di.width,labelStyleWidth:x.style.width})}b.setTextConfig({inside:Xt})}}),!a&&r.get("avoidLabelOverlap")&&Nb(e,i,n,u,l,c,f,h);for(var y=0;y<e.length;y++){var p=e[y],g=p.label,_=p.labelLine,m=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),m&&(M(g.states,v),g.ignore=!0);var w=g.states.select;w&&(w.x+=g.x,w.y+=g.y)}if(_){var T=p.linePoints;m||!T?(M(_.states,v),_.ignore=!0):(Sb(T,p.minTurnAngle),Tb(T,p.surfaceNormal,p.maxSurfaceAngle),_.setShape({points:T}),g.__hostTarget.textGuideLineConfig={anchor:new $(T[0][0],T[0][1])})}}}var zb=function(r){G(t,r);function t(e,i,n){var a=r.call(this)||this;a.z2=2;var o=new Wt;return a.setTextContent(o),a.updateData(e,i,n,!0),a}return t.prototype.updateData=function(e,i,n,a){var o=this,s=e.hostModel,u=e.getItemModel(i),l=u.getModel("emphasis"),f=e.getItemLayout(i),h=O(Ta(u.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(ka(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,ka(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),ka(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,_i(o,{shape:{endAngle:f.endAngle}},s,i))}else $m(o),_i(o,{shape:h},s,i);o.useStyle(e.getItemVisual(i,"style")),cm(o,u);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),y=Math.cos(v)*d,p=Math.sin(v)*d,g=u.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,e,i),o.ensureState("emphasis").shape=O({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},Ta(l.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:y,y:p,shape:Ta(u.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:Ta(u.getModel(["blur","itemStyle"]),f)});var _=o.getTextGuideLine(),m=o.getTextContent();_&&O(_.ensureState("select"),{x:y,y:p}),O(m.ensureState("select"),{x:y,y:p}),fm(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),u=i.getItemVisual(n,"style"),l=u&&u.fill,f=u&&u.opacity;kd(a,h1(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:l,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||i.getName(n)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new zn,this.setTextGuideLine(v)),xb(this,Cb(o),{stroke:l,opacity:en(s.get(["lineStyle","opacity"]),f,1)})}},t}(Fn),Hb=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,i,n,a){var o=e.getData(),s=this._data,u=this.group,l;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=Sg(e),v=new Fn({shape:O(wg(e,n),c)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,u.add(v)}o.diff(s).add(function(d){var y=new zb(o,d,l);o.setItemGraphicEl(d,y),u.add(y)}).update(function(d,y){var p=s.getItemGraphicEl(y);p.updateData(o,d,l),p.off("click"),u.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var y=s.getItemGraphicEl(d);Ld(y,e,d)}).execute(),Fb(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},t.type="pie",t}(nr);function Gb(r,t,e){t=N(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var i=r.getSource(),n=NT(i,t).dimensions,a=new BT(n,r);return a.initData(i,e),a}var Vb=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r}(),Wb=_t(),Ub=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Vb(nt(this.getData,this),nt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Gb(this,{coordDimensions:["value"],encodeDefaulter:yt(G1,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),n=Wb(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(u){o.push(u)}),a=n.seats=I0(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Tu(e,"labelLine",["show"]);var i=e.labelLine,n=e.emphasis.labelLine;i.show=i.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t}(sr);function Yb(r){return{seriesType:r,reset:function(t,e){var i=t.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function kC(r){r.registerChartView(Hb),r.registerSeriesModel(Ub),xS("pie",r.registerAction),r.registerLayout(yt(Ob,"pie")),r.registerProcessor(kb("pie")),r.registerProcessor(Yb("pie"))}function Uv(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,u=o?"onZero":s,l=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(y,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),mn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-g:g,a.z2=1,a}function BC(r){return r.get("coordinateSystem")==="cartesian2d"}function NC(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,mo).models[0];t[i]=a}),t}var er=Math.PI,Nr=function(){function r(t,e){this.group=new he,this.opt=e,this.axisModel=t,ut(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new he({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!Yv[t]},r.prototype.add=function(t){Yv[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var n=$c(e-t),a,o;return Za(n)?(o=i>0?"top":"bottom",a="center"):Za(n-er)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<er?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),Yv={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(xe(s,s,o),xe(u,u,o));var f=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ti({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ll(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);z(c)&&(c=[c,c]),(z(v)||vt(v))&&(v=[v,v]);var d=NS(t.get(["axisLine","symbolOffset"])||0,v),y=v[0],p=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(g,_){if(c[_]!=="none"&&c[_]!=null){var m=Xl(c[_],-y/2,-p/2,y,p,f.stroke,!0),w=g.r+g.offset,T=l?u:s;m.attr({rotation:g.rotate,x:T[0]+w*Math.cos(r.rotation),y:T[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(m)}})}}},axisTickLabel:function(r,t,e,i){var n=qb(e,i,t,r),a=Kb(e,i,t,r);if($b(t,a,n),Zb(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Db(Z(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Lb(o)}},axisName:function(r,t,e,i){var n=mn(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,$v(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*er/180);var d;$v(a)?c=Nr.innerTextLayout(r.rotation,v??r.rotation,o):(c=Xb(r.rotation,a,v||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var y=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,_=mn(r.nameTruncateMaxWidth,p.maxWidth,d),m=new Wt({x:h[0],y:h[1],rotation:c.rotation,silent:Nr.isLabelSilent(t),style:mi(s,{text:n,font:y,overflow:"truncate",width:_,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Do({el:m,componentModel:t,itemName:n}),m.__fullText=n,m.anid="name",t.get("triggerEvent")){var w=Nr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=n,lt(m).eventData=w}i.add(m),m.updateTransform(),e.add(m),m.decomposeTransform()}}};function Xb(r,t,e,i){var n=$c(e-r),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return Za(n-er/2)?(o=u?"bottom":"top",a="center"):Za(n-er*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<er*1.5&&n>er/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function $b(r,t,e){if(!mb(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];i===!1?(Qt(a),Qt(l)):Xv(a,o)&&(i?(Qt(o),Qt(f)):(Qt(a),Qt(l))),n===!1?(Qt(s),Qt(h)):Xv(u,s)&&(n?(Qt(u),Qt(c)):(Qt(s),Qt(h)))}}function Qt(r){r&&(r.ignore=!0)}function Xv(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=ul([]);return ll(n,n,-r.rotation),e.applyTransform(vi([],n,r.getLocalTransform())),i.applyTransform(vi([],n,t.getLocalTransform())),e.intersect(i)}}function $v(r){return r==="middle"||r==="center"}function bg(r,t,e,i,n){for(var a=[],o=[],s=[],u=0;u<r.length;u++){var l=r[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=e,t&&(xe(o,o,t),xe(s,s,t));var f=new Ti({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Ll(f.shape,f.style.lineWidth),f.anid=n+"_"+r[u].tickValue,a.push(f)}return a}function qb(r,t,e,i){var n=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),u=i.tickDirection*a.get("length"),l=n.getTicksCoords(),f=bg(l,t.transform,u,ut(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function Zb(r,t,e,i){var n=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),u=i*a.get("length"),l=ut(s.getLineStyle(),ut(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=bg(o[f],t.transform,u,l,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function Kb(r,t,e,i){var n=e.axis,a=mn(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),u=n.getViewLabels(),l=(mn(i.labelRotate,o.get("rotate"))||0)*er/180,f=Nr.innerTextLayout(i.rotation,l,i.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=Nr.isLabelSilent(e),d=e.get("triggerEvent");return M(u,function(y,p){var g=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(y.tickValue):y.tickValue,_=y.formattedLabel,m=y.rawLabel,w=o;if(h&&h[g]){var T=h[g];W(T)&&T.textStyle&&(w=new dt(T.textStyle,o,e.ecModel))}var S=w.getTextColor()||e.get(["axisLine","lineStyle","color"]),b=n.dataToCoord(g),C=w.getShallow("align",!0)||f.textAlign,x=q(w.getShallow("alignMinLabel",!0),C),D=q(w.getShallow("alignMaxLabel",!0),C),A=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||f.textVerticalAlign,P=q(w.getShallow("verticalAlignMinLabel",!0),A),I=q(w.getShallow("verticalAlignMaxLabel",!0),A),L=new Wt({x:b,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(y.level||0),style:mi(w,{text:_,align:p===0?x:p===u.length-1?D:C,verticalAlign:p===0?P:p===u.length-1?I:A,fill:j(S)?S(n.type==="category"?m:n.type==="value"?g+"":g,p):S})});if(L.anid="label_"+g,Do({el:L,componentModel:e,itemName:_,formatterParamsExtra:{isTruncated:function(){return L.isTruncated},value:m,tickIndex:p}}),d){var R=Nr.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=m,R.tickIndex=p,n.type==="category"&&(R.dataIndex=g),lt(L).eventData=R}t.add(L),L.updateTransform(),c.push(L),r.add(L),L.decomposeTransform()}),c}}function Qb(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Jb(e,r,t),e.seriesInvolved&&tx(e,r),e}function Jb(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];M(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Rn(s.model),l=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(M(s.getAxes(),yt(y,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&M(d.baseAxes,yt(y,v?"cross":!0,c)),v&&M(d.otherAxes,yt(y,"cross",!1))}function y(p,g,_){var m=_.model.getModel("axisPointer",n),w=m.get("show");if(!(!w||w==="auto"&&!p&&!Ku(m))){g==null&&(g=m.get("triggerTooltip")),m=p?jb(_,h,n,t,p,g):m;var T=m.get("snap"),S=m.get("triggerEmphasis"),b=Rn(_.model),C=g||T||_.type==="category",x=r.axesInfo[b]={key:b,axis:_,coordSys:s,axisPointerModel:m,triggerTooltip:g,triggerEmphasis:S,involveSeries:C,snap:T,useHandle:Ku(m),seriesModels:[],linkGroup:null};l[b]=x,r.seriesInvolved=r.seriesInvolved||C;var D=ex(a,_);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[b]=x,A.mapper=a[D].mapper,x.linkGroup=A}}}})}function jb(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};M(s,function(c){u[c]=J(o.get(c))}),u.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),n==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&ut(l,h.textStyle)}}return r.model.getModel("axisPointer",new dt(u,e,i))}function tx(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[Rn(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function ex(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(js(a[i+"AxisId"],e.id)||js(a[i+"AxisIndex"],e.componentIndex)||js(a[i+"AxisName"],e.name))return n}}function js(r,t){return r==="all"||N(r)&&it(r,t)>=0||r===t}function rx(r){var t=rf(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Ku(e);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function rf(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Rn(r)]}function ix(r){var t=rf(r);return t&&t.axisPointerModel}function Ku(r){return!!r.get(["handle","show"])}function Rn(r){return r.type+"||"+r.id}var qv={},nx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&rx(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=ix(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){qv[e]=i},t.getAxisPointerClass=function(e){return e&&qv[e]},t.type="axis",t}(He),Pr=_t(),Zv=J,tu=nt,ax=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new he,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),i.getZr().add(s);else{var c=yt(Kv,e,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,e)}Jv(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var u=rf(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=Pr(t).pointerEl=new l1[a.type](Zv(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Pr(t).labelEl=new Wt(Zv(e.label));t.add(a),Qv(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Pr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=Pr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Qv(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Il(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Cc(l.event)},onmousedown:tu(this._onHandleDragMove,this,0,0),drift:tu(this._onHandleDragMove,this),ondragend:tu(this._onHandleDragEnd,this)}),i.add(n)),Jv(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");N(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,Dp(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Kv(this._axisPointerModel,!e&&this._moveAnimation,this._handle,eu(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(eu(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(eu(n)),Pr(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Gu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function Kv(r,t,e,i){xg(Pr(e).lastProp,i)||(Pr(e).lastProp=i,t?_i(e,i,r):(e.stopAnimation(),e.attr(i)))}function xg(r,t){if(W(r)&&W(t)){var e=!0;return M(t,function(i,n){e=e&&xg(r[n],i)}),!!e}else return r===t}function Qv(r,t){r[t.get(["label","show"])?"show":"hide"]()}function eu(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Jv(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function ox(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function sx(r,t,e,i,n){var a=e.get("value"),o=Cg(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Oo(s.get("padding")||0),l=s.getFont(),f=Vc(o,l),h=n.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=v),y==="middle"&&(h[1]-=v/2),ux(h,c,v,i);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:mi(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function ux(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Cg(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ef(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(i,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):j(o)&&(a=o(s))}return a}function Dg(r,t,e){var i=hi();return ll(i,i,e.rotation),vu(i,i,e.position),Pl([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function lx(r,t,e,i,n,a){var o=Nr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),sx(t,i,n,a,{position:Dg(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fx(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function hx(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var vx=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),f=jv(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var c=ox(a),v=cx[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=Uv(u.model,n);lx(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=Uv(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Dg(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=jv(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(ax);function jv(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var cx={line:function(r,t,e){var i=fx([t,e[0]],[t,e[1]],tc(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:hx([t-i/2,e[0]],[i,n],tc(r))}}};function tc(r){return r.dim==="x"?0:1}var dx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.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}},t}(rt),ke=_t(),px=M;function Mg(r,t,e){if(!X.node){var i=t.getZr();ke(i).records||(ke(i).records={}),gx(i,t);var n=ke(i).records[r]||(ke(i).records[r]={});n.handler=e}}function gx(r,t){if(ke(r).initialized)return;ke(r).initialized=!0,e("click",yt(ec,"click")),e("mousemove",yt(ec,"mousemove")),e("globalout",_x);function e(i,n){r.on(i,function(a){var o=mx(t);px(ke(r).records,function(s){s&&n(s,a,o.dispatchAction)}),yx(o.pendings,t)})}}function yx(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function _x(r,t,e){r.handler("leave",null,e)}function ec(r,t,e,i){t.handler(r,e,i)}function mx(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Qu(r,t){if(!X.node){var e=t.getZr(),i=(ke(e).records||{})[r];i&&(ke(e).records[r]=null)}}var Sx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Mg("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,i){Qu("axisPointer",i)},t.prototype.dispose=function(e,i){Qu("axisPointer",i)},t.type="axisPointer",t}(He);function Ag(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=kn(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(y)||[]}else e=u.dataToPoint(a.getValues(Z(u.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var rc=_t();function Tx(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||nt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ha(n)&&(n=Ag({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Ha(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||Ha(n),c={},v={},d={list:[],map:{}},y={showPointer:yt(xx,v),showTooltip:yt(Cx,d)};M(s.coordSysMap,function(g,_){var m=u||g.containPoint(n);M(s.coordSysAxesInfo[_],function(w,T){var S=w.axis,b=Lx(l,w);if(!h&&m&&(!l||b)){var C=b&&b.value;C==null&&!u&&(C=S.pointToData(n)),C!=null&&ic(w,C,y,!1,c)}})});var p={};return M(f,function(g,_){var m=g.linkGroup;m&&!v[_]&&M(m.axesInfo,function(w,T){var S=v[T];if(w!==g&&S){var b=S.value;m.mapper&&(b=g.axis.scale.parse(m.mapper(b,nc(w),nc(g)))),p[g.key]=b}})}),M(p,function(g,_){ic(f[_],g,y,!0,c)}),Dx(v,f,c),Mx(d,n,r,o),Ax(f,o,e),c}}function ic(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=bx(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&O(n,s[0]),!i&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function bx(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,y=Math.abs(d);y<=o&&((y<o||d>=0&&s<0)&&(o=y,s=d,n=h,a.length=0),M(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:n}}function xx(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function Cx(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=Rn(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function Dx(r,t,e){var i=e.axesInfo=[];M(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function Mx(r,t,e,i){if(Ha(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function Ax(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=rc(i)[n]||{},o=rc(i)[n]={};M(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(a,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Lx(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function nc(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function Ha(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Px(r){nx.registerAxisPointerClass("CartesianAxisPointer",vx),r.registerComponentModel(dx),r.registerComponentView(Sx),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=Qb(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Tx)}function Ix(r,t){var e=Oo(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new Ht({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var Rx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.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}},t}(rt);function Lg(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Pg(r){if(X.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var Ig=Pg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ex=Pg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Rg(r,t){if(!r)return t;t=Kd(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function Ox(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var kx=Rg(Ex,"transition"),nf=Rg(Ig,"transform"),Bx="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(X.transform3dSupported?"will-change:transform;":"");function Nx(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Fx(r,t,e){if(!z(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=Cn(t);var a=Nx(e),o=Math.max(Math.round(n)*1.5,6),s="",u=nf+":",l;it(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+y.join("")+'"></div>'}function zx(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=X.transformSupported?","+nf+i:",left"+i+",top"+i),kx+":"+n}function ac(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!X.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=X.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+nf+":"+o+";":[["top",0],["left",0],[Ig,o]]}function Hx(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=q(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,u=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),M(["decoration","align"],function(l){var f=r.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function Gx(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=bp(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&n&&i.push(zx(n,e)),a&&i.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,y=Kd(d),p=r.get(y);p!=null&&i.push(d+":"+p+(v==="color"?"":"px"))}),i.push(Hx(f)),h!=null&&i.push("padding:"+Oo(h).join("px ")+"px"),i.join(";")+";"}function oc(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&xy(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Vx=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,X.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(z(a)?document.querySelector(a):_n(a)?a:j(a)&&a(t.getDom()));oc(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=n.handler,f=n.painter.getViewportRoot();jt(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=Ox(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=Bx+Gx(t,!this._firstShow,this._longHide)+ac(a[0],a[1],!0)+("border-color:"+Cn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(z(a)&&i.get("trigger")==="item"&&!Lg(i)&&(s=Fx(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var u=0;u<t.length;u++)_n(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(oc(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=ac(i[0],i[1]);M(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",X.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),Wx=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),uc(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,n,a){var o=this;W(t)&&Nt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Wt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:bp(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=sc(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;uc(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=Qe(a.borderWidth||0),s=sc(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(nt(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Qe(r){return Math.max(0,r)}function sc(r){var t=Qe(r.shadowBlur||0),e=Qe(r.shadowOffsetX||0),i=Qe(r.shadowOffsetY||0);return{left:Qe(t-e),right:Qe(t+e),top:Qe(t-i),bottom:Qe(t+i)}}function uc(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Ux=new Ht({shape:{x:-1,y:-1,width:2,height:2}}),Yx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(X.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=Z0(n.get("renderMode"));this._tooltipContent=a==="richText"?new Wx(i):new Vx(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(X.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Dp(this,"_updatePosition",50,"fixRate"):Gu(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");Mg("itemTooltip",this._api,nt(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||X.node||!n.getDom())){var o=lc(a,n);this._ticket="";var s=a.dataByCoordSys,u=Zx(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=Ux;f.x=a.x,f.y=a.y,f.update(),lt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=Ag(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(lc(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(l){var f=l.getData(),h=Yi([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=lt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;tn(n,function(f){if(lt(f).dataIndex!=null)return u=f,!0;if(lt(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(e,u,i):l?this._showComponentItemTooltip(e,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=nt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Yi([i.tooltipOption],a),u=this._renderMode,l=[],f=An("section",{blocks:[],noHeader:!0}),h=[],c=new Ns;M(e,function(_){M(_.dataByAxis,function(m){var w=n.getComponent(m.axisDim+"Axis",m.axisIndex),T=m.value;if(!(!w||T==null)){var S=Cg(T,w.axis,n,m.seriesDataIndices,m.valueLabelOpt),b=An("section",{header:S,noHeader:!Te(S),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(m.seriesDataIndices,function(C){var x=n.getSeriesByIndex(C.seriesIndex),D=C.dataIndexInside,A=x.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=m.axisDim,A.axisIndex=m.axisIndex,A.axisType=m.axisType,A.axisId=m.axisId,A.axisValue=ef(w.axis,{value:T}),A.axisValueLabel=S,A.marker=c.makeTooltipMarker("item",Cn(A.color),u);var P=$h(x.formatTooltip(D,!0,null)),I=P.frag;if(I){var L=Yi([x],a).get("valueFormatter");b.blocks.push(L?O({valueFormatter:L},I):I)}P.text&&h.push(P.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),y=Jh(f,c,u,d,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var p=u==="richText"?`

`:"<br/>",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,g,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=lt(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,y=Yi([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(f,h),_=new Ns;g.marker=_.makeTooltipMarker("item",Cn(g.color),v);var m=$h(l.formatTooltip(f,!1,h)),w=y.get("order"),T=y.get("valueFormatter"),S=m.frag,b=S?Jh(T?O({valueFormatter:T},S):S,_,v,w,a.get("useUTC"),y.get("textStyle")):m.text,C="item_"+l.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,b,g,C,e.offsetX,e.offsetY,e.position,e.target,_)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=lt(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(z(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=J(u),u.content=kt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=e.positionDefault,d=Yi(h,this._tooltipModel,v?{position:v}:null),y=d.get("content"),p=Math.random()+"",g=new Ns;this._showOrMove(d,function(){var _=J(d.get("formatterParams")||{});this._showTooltipContent(d,y,_,p,e.offsetX,e.offsetY,e.position,i,g)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),y=d.color;if(c)if(z(c)){var p=e.ecModel.get("useUTC"),g=N(n)?n[0]:n,_=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,_&&(v=Lo(g.axisValue,v,p)),v=Qd(v,n,!0)}else if(j(c)){var m=nt(function(w,T){w===this._ticket&&(h.setContent(T,f,e,y,u),this._updatePosition(e,u,o,s,h,n,l))},this);this._ticket=a,v=c(n,a,m)}else v=c;h.setContent(v,f,e,y,u),h.show(e,y),this._updatePosition(e,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||N(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!N(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),j(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),N(i))n=st(i[0],l),a=st(i[1],f);else if(W(i)){var y=i;y.width=h[0],y.height=h[1];var p=io(y,{width:l,height:f});n=p.x,a=p.y,c=null,v=null}else if(z(i)&&u){var g=qx(i,d,h,e.get("borderWidth"));n=g[0],a=g[1]}else{var g=Xx(n,a,o,l,f,c?null:20,v?null:20);n=g[0],a=g[1]}if(c&&(n-=fc(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=fc(v)?h[1]/2:v==="bottom"?h[1]:0),Lg(e)){var g=$x(n,a,o,l,f);n=g[0],a=g[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&M(n,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,function(c,v){var d=h[v]||{},y=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&y.length===p.length,o&&M(y,function(g,_){var m=p[_];o=o&&g.seriesIndex===m.seriesIndex&&g.dataIndex===m.dataIndex}),a&&M(c.seriesDataIndices,function(g){var _=g.seriesIndex,m=i[_],w=a[_];m&&w&&w.data!==m.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){X.node||!i.getDom()||(Gu(this,"_updatePosition"),this._tooltipContent.dispose(),Qu("itemTooltip",i))},t.type="tooltip",t}(He);function Yi(r,t,e){var i=t.ecModel,n;e?(n=new dt(e,i,i),n=new dt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof dt&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new dt(o,n,i)))}return n}function lc(r,t){return r.dispatchAction||nt(t.dispatchAction,t)}function Xx(r,t,e,i,n,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>i?r-=u+a:r+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[r,t]}function $x(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function qx(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function fc(r){return r==="center"||r==="middle"}function Zx(r,t,e){var i=gl(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=Bn(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=lt(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function FC(r){In(Px),r.registerComponentModel(Rx),r.registerComponentView(Yx),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},zt)}var Kx=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Ju=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),N(i)&&M(i,function(a,o){z(a)&&(a={type:a}),i[o]=ft(a,Kx(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(u){var l=u.name;n.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(u)||(n=n.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&pl(u)&&i.push(u.name)}),this._availableNames=n;var a=this.get("data")||i,o=Q(),s=Z(a,function(u){return(z(u)||vt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new dt(u,this,this.ecModel))},this);this._data=Ot(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;M(a,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;M(e,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;M(e,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&it(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.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}},t}(rt),ri=yt,ju=M,xa=he,Eg=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new xa),this.group.add(this._selectorGroup=new xa),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,u,s,l);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),v=io(f,h,c),d=this.layoutInner(e,o,v,a,u,l),y=io(ut({width:d.width,height:d.height},f),h,c);this.group.x=y.x-d.x,this.group.y=y.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Ix(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this.getContentGroup(),f=Q(),h=i.get("selectedMode"),c=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),ju(i.getData(),function(v,d){var y=v.get("name");if(!this.newlineDisabled&&(y===""||y===`
`)){var p=new xa;p.newline=!0,l.add(p);return}var g=n.getSeriesByName(y)[0];if(!f.get(y))if(g){var _=g.getData(),m=_.getVisual("legendLineStyle")||{},w=_.getVisual("legendIcon"),T=_.getVisual("style"),S=this._createItem(g,y,d,v,i,e,m,T,w,h,a);S.on("click",ri(hc,y,null,a,c)).on("mouseover",ri(tl,g.name,null,a,c)).on("mouseout",ri(el,g.name,null,a,c)),n.ssr&&S.eachChild(function(b){var C=lt(b);C.seriesIndex=g.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),f.set(y,!0)}else n.eachRawSeries(function(b){if(!f.get(y)&&b.legendVisualProvider){var C=b.legendVisualProvider;if(!C.containName(y))return;var x=C.indexOfName(y),D=C.getItemVisual(x,"style"),A=C.getItemVisual(x,"legendIcon"),P=Or(D.fill);P&&P[3]===0&&(P[3]=.2,D=O(O({},D),{fill:fl(P,"rgba")}));var I=this._createItem(b,y,d,v,i,e,{},D,A,h,a);I.on("click",ri(hc,null,y,a,c)).on("mouseover",ri(tl,null,y,a,c)).on("mouseout",ri(el,null,y,a,c)),n.ssr&&I.eachChild(function(L){var R=lt(L);R.seriesIndex=b.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,i,a,s,u)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();ju(e,function(l){var f=l.type,h=new Wt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);kd(h,{normal:c,emphasis:v},{defaultText:l.title}),Pu(h)})},t.prototype._createItem=function(e,i,n,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),y=o.get("itemHeight"),p=o.isSelected(i),g=a.get("symbolRotate"),_=a.get("symbolKeepAspect"),m=a.get("icon");f=m||f||"roundRect";var w=Qx(f,a,u,l,v,p,c),T=new xa,S=a.getModel("textStyle");if(j(e.getLegendIcon)&&(!m||m==="inherit"))T.add(e.getLegendIcon({itemWidth:d,itemHeight:y,icon:f,iconRotate:g,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:_}));else{var b=m==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;T.add(Jx({itemWidth:d,itemHeight:y,icon:f,iconRotate:b,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:_}))}var C=s==="left"?d+5:-5,x=s,D=o.get("formatter"),A=i;z(D)&&D?A=D.replace("{name}",i??""):j(D)&&(A=D(i));var P=p?S.getTextColor():a.get("inactiveColor");T.add(new Wt({style:mi(S,{text:A,x:C,y:y/2,fill:P,align:x,verticalAlign:"middle"},{inheritColor:P})}));var I=new Ht({shape:T.getBoundingRect(),style:{fill:"transparent"}}),L=a.getModel("tooltip");return L.get("show")&&Do({el:I,componentModel:o,itemName:i,itemTooltipOption:L.option}),T.add(I),T.eachChild(function(R){R.silent=!0}),I.silent=!h,this.getContentGroup().add(T),Pu(T),T.__legendDataIndex=n,T},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();cn(e.get("orient"),u,e.get("itemGap"),n.width,n.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){cn("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),y=e.getOrient().index,p=y===0?"width":"height",g=y===0?"height":"width",_=y===0?"y":"x";s==="end"?v[y]+=f[p]+d:h[y]+=c[p]+d,v[1-y]+=f[g]/2-c[g]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var m={x:0,y:0};return m[p]=f[p]+d+c[p],m[g]=Math.max(f[g],c[g]),m[_]=Math.min(0,c[_]+v[1-y]),m}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(He);function Qx(r,t,e,i,n,a,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),ju(p,function(_,m){p[m]==="inherit"&&(p[m]=g[m])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?i.decal:Xu(h,o),l.fill==="inherit"&&(l.fill=i[n]),l.stroke==="inherit"&&(l.stroke=i[f]),l.opacity==="inherit"&&(l.opacity=(n==="fill"?i:e).opacity),s(l,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=i.fill),l.stroke==="auto"&&(l.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),y=l[f];l.lineWidth=d==="auto"?i.lineWidth>0&&y?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function Jx(r){var t=r.icon||"roundRect",e=Xl(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function hc(r,t,e,i){el(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),tl(r,t,e,i)}function Og(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function tl(r,t,e,i){Og(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function el(r,t,e,i){Og(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function jx(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function Xi(r,t,e){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[r]():s[r](t.name),vc(s,n),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){M(n,function(u,l){s[u?"select":"unSelect"](l)}),vc(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function vc(r,t){var e=t||{};return M(r.getData(),function(i){var n=i.get("name");if(!(n===`
`||n==="")){var a=r.isSelected(n);zr(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function tC(r){r.registerAction("legendToggleSelect","legendselectchanged",yt(Xi,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",yt(Xi,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",yt(Xi,"inverseSelect")),r.registerAction("legendSelect","legendselected",yt(Xi,"select")),r.registerAction("legendUnSelect","legendunselected",yt(Xi,"unSelect"))}function kg(r){r.registerComponentModel(Ju),r.registerComponentView(Eg),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,jx),r.registerSubTypeDefaulter("legend",function(){return"plain"}),tC(r)}var eC=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=Fl(e);r.prototype.init.call(this,e,i,n),cc(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),cc(this,this.option,e)},t.type="legend.scroll",t.defaultOption=x1(Ju.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}),t}(Ju);function cc(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Dn(t,e,{type:"box",ignoreSize:!!n})}var dc=he,ru=["width","height"],iu=["x","y"],rC=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new dc),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new dc)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,u);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=N(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Wt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(y,p){var g=y+"DataIndex",_=Il(i.get("pageIcons",!0)[i.getOrient().name][p],{onclick:nt(l._pageGo,l,g,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});_.name=y,f.add(_)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=ru[l],h=iu[l],c=ru[1-l],v=iu[1-l];o&&cn("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),y=u.getBoundingRect(),p=[-y.x,-y.y],g=J(n);o&&(g[f]=n[f]-y[f]-d);var _=this._layoutContentAndController(e,a,g,l,f,c,v,h);if(o){if(s==="end")p[l]+=_[f]+d;else{var m=y[f]+d;p[l]-=m,_[h]-=m}_[f]+=y[f]+d,p[1-l]+=_[v]+_[c]/2-y[c]/2,_[c]=Math.max(_[c],y[c]),_[v]=Math.min(_[v],y[v]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return _},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;cn(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),cn("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),y=this._showController=v[o]>n[o],p=[-v.x,-v.y];i||(p[a]=f[l]);var g=[0,0],_=[-d.x,-d.y],m=q(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(y){var w=e.get("pageButtonPosition",!0);w==="end"?_[a]+=n[o]-d[o]:g[a]+=d[o]+m}_[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(g),c.setPosition(_);var T={x:0,y:0};if(T[o]=y?n[o]:v[o],T[s]=Math.max(v[s],d[s]),T[u]=Math.min(0,d[u]+_[1-a]),h.__rectSize=n[o],y){var S={x:0,y:0};S[o]=Math.max(n[o]-d[o]-m,0),S[s]=T[s],h.setClipPath(new Ht({shape:S})),h.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&_i(f,{x:b.contentPosition[0],y:b.contentPosition[1]},y?e:null),this._updatePageInfoView(e,b),T},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,u=s!=null?s+1:0,l=i.pageCount;a&&o&&a.setStyle("text",z(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ru[o],u=iu[o],l=this._findTargetItemIndex(i),f=n.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var y=w(h);d.contentPosition[o]=-y.s;for(var p=l+1,g=y,_=y,m=null;p<=c;++p)m=w(f[p]),(!m&&_.e>g.s+a||m&&!T(m,g.s))&&(_.i>g.i?g=_:g=m,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),_=m;for(var p=l-1,g=y,_=y,m=null;p>=-1;--p)m=w(f[p]),(!m||!T(_,m.s))&&g.i<_.i&&(_=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=m;return d;function w(S){if(S){var b=S.getBoundingRect(),C=b[u]+S[u];return{s:C,e:C+b[s],i:S.__legendDataIndex}}}function T(S,b){return S.e>=b&&S.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(i=s)}),i??a},t.type="legend.scroll",t}(Eg);function iC(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function nC(r){In(kg),r.registerComponentModel(eC),r.registerComponentView(rC),iC(r)}function zC(r){In(kg),In(nC)}const aC=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function oC(r){function t(i){return(...n)=>{if(!r.value)throw new Error("ECharts is not initialized yet.");return r.value[i].apply(r.value,n)}}function e(){const i=Object.create(null);return aC.forEach(n=>{i[n]=t(n)}),i}return e()}function sC(r,t,e){Da([e,r,t],([i,n,a],o,s)=>{let u=null;if(i&&n&&a){const{offsetWidth:l,offsetHeight:f}=i,h=a===!0?{}:a,{throttle:c=100,onResize:v}=h;let d=!1;const y=()=>{n.resize(),v==null||v()},p=c?Yl(y,c):y;u=new ResizeObserver(()=>{!d&&(d=!0,i.offsetWidth===l&&i.offsetHeight===f)||p()}),u.observe(i)}s(()=>{u&&(u.disconnect(),u=null)})})}const uC={autoresize:[Boolean,Object]},lC=/^on[^a-z]/,Bg=r=>lC.test(r);function fC(r){const t={};for(const e in r)Bg(e)||(t[e]=r[e]);return t}function Ga(r,t){const e=Xg(r)?$g(r):r;return e&&typeof e=="object"&&"value"in e?e.value||t:e||t}const hC="ecLoadingOptions";function vC(r,t,e){const i=Ca(hC,{}),n=ii(()=>({...Ga(i,{}),...e==null?void 0:e.value}));gc(()=>{const a=r.value;a&&(t.value?a.showLoading(n.value):a.hideLoading())})}const cC={loading:Boolean,loadingOptions:Object};let $i=null;const Ng="x-vue-echarts";function dC(){if($i!=null)return $i;if(typeof HTMLElement>"u"||typeof customElements>"u")return $i=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(Ng)}catch{return $i=!1}return $i=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0}
`;const pC=dC(),gC="ecTheme",yC="ecInitOptions",_C="ecUpdateOptions",pc=/(^&?~?!?)native:/;var HC=Hg({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...uC,...cC},emits:{},inheritAttrs:!1,setup(r,{attrs:t}){const e=Vo(),i=Vo(),n=Vo(),a=Ca(gC,null),o=Ca(yC,null),s=Ca(_C,null),{autoresize:u,manualUpdate:l,loading:f,loadingOptions:h}=Gg(r),c=ii(()=>n.value||r.option||null),v=ii(()=>r.theme||Ga(a,{})),d=ii(()=>r.initOptions||Ga(o,{})),y=ii(()=>r.updateOptions||Ga(s,{})),p=ii(()=>fC(t)),g={},_=Vg().proxy.$listeners,m={};_?Object.keys(_).forEach(x=>{pc.test(x)?g[x.replace(pc,"$1")]=_[x]:m[x]=_[x]}):Object.keys(t).filter(x=>Bg(x)).forEach(x=>{let D=x.charAt(2).toLowerCase()+x.slice(3);if(D.indexOf("native:")===0){const A=`on${D.charAt(7).toUpperCase()}${D.slice(8)}`;g[A]=t[x];return}D.substring(D.length-4)==="Once"&&(D=`~${D.substring(0,D.length-4)}`),m[D]=t[x]});function w(x){if(!e.value)return;const D=i.value=_T(e.value,v.value,d.value);r.group&&(D.group=r.group),Object.keys(m).forEach(I=>{let L=m[I];if(!L)return;let R=I.toLowerCase();R.charAt(0)==="~"&&(R=R.substring(1),L.__once__=!0);let E=D;if(R.indexOf("zr:")===0&&(E=D.getZr(),R=R.substring(3)),L.__once__){delete L.__once__;const H=L;L=(...B)=>{H(...B),E.off(R,L)}}E.on(R,L)});function A(){D&&!D.isDisposed()&&D.resize()}function P(){const I=x||c.value;I&&D.setOption(I,y.value)}u.value?qg(()=>{A(),P()}):P()}function T(x,D){r.manualUpdate&&(n.value=x),i.value?i.value.setOption(x,D||{}):w(x)}function S(){i.value&&(i.value.dispose(),i.value=void 0)}let b=null;Da(l,x=>{typeof b=="function"&&(b(),b=null),x||(b=Da(()=>r.option,(D,A)=>{D&&(i.value?i.value.setOption(D,{notMerge:D!==A,...y.value}):w())},{deep:!0}))},{immediate:!0}),Da([v,d],()=>{S(),w()},{deep:!0}),gc(()=>{r.group&&i.value&&(i.value.group=r.group)});const C=oC(i);return vC(i,f,h),sC(i,u,e),Wg(()=>{w()}),Ug(()=>{pC&&e.value?e.value.__dispose=S:S()}),{chart:i,root:e,setOption:T,nonEventAttrs:p,nativeListeners:g,...C}},render(){const r={...this.nonEventAttrs,...this.nativeListeners};return r.ref="root",r.class=r.class?["echarts"].concat(r.class):"echarts",Yg(Ng,r)}});export{rt as $,x1 as A,Wc as B,ap as C,vt as D,Od as E,ka as F,_i as G,$m as H,Bd as I,Ld as J,he as K,lt as L,nr as M,O as N,Ta as O,at as P,h1 as Q,Ht as R,mo as S,kd as T,SC as U,fm as V,cm as W,Yl as X,AC as Y,MC as Z,G as _,Ae as a,Ge as a0,ft as a1,ut as a2,no as a3,Fl as a4,Dn as a5,kv as a6,Dc as a7,et as a8,xe as a9,kC as aA,OC as aB,gC as aC,HC as aD,Hn as aa,db as ab,DC as ac,io as ad,RC as ae,W as af,it as ag,PC as ah,BC as ai,NC as aj,EC as ak,IC as al,ht as am,CC as an,LC as ao,Uv as ap,Nr as aq,n1 as ar,nx as as,Ti as at,Ll as au,He as av,In as aw,Px as ax,FC as ay,zC as az,yt as b,Q as c,xC as d,M as e,BT as f,N as g,_o as h,j as i,Z as j,bC as k,_t as l,TC as m,gb as n,Ot as o,NT as p,_b as q,Vc as r,mb as s,wC as t,L0 as u,Be as v,ao as w,Fn as x,z as y,sr as z};
