/*! *****************************************************************************
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 Ou=function(e,t){return Ou=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},Ou(e,t)};function z(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ou(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var i0=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),n0=function(){function e(){this.browser=new i0,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),q=new n0;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(q.wxa=!0,q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?q.worker=!0:!q.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(q.node=!0,q.svgSupported=!0):a0(navigator.userAgent,q);function a0(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var u=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in u||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in u)&&!("OTransition"in u),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var tf=12,o0="sans-serif",wr=tf+"px "+o0,s0=20,u0=100,l0="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function f0(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-s0)/u0;t[i]=n}return t}var h0=f0(l0),er={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,i){if(!e){var n=er.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||wr),e.measureText(r);r=r||"",i=i||wr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||tf,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=h0[r[u]];s+=l==null?o:l*o}return{width:s}}}(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},jd=xr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),tp=xr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),rn=Object.prototype.toString,jo=Array.prototype,v0=jo.forEach,c0=jo.filter,ef=jo.slice,d0=jo.map,bh=(function(){}).constructor,ga=bh?bh.prototype:null,rf="__proto__",p0=2311;function ep(){return p0++}function nf(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function rt(e){if(e==null||typeof e!="object")return e;var t=e,r=rn.call(e);if(r==="[object Array]"){if(!En(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=rt(e[i])}}else if(tp[r]){if(!En(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!jd[r]&&!En(e)&&!Yn(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==rf&&(t[o]=rt(e[o]))}return t}function ot(e,t,r){if(!U(t)||!U(e))return r?rt(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==rf){var n=e[i],a=t[i];U(a)&&U(n)&&!B(a)&&!B(n)&&!Yn(a)&&!Yn(n)&&!wh(a)&&!wh(n)&&!En(a)&&!En(n)?ot(n,a,r):(r||!(i in e))&&(e[i]=rt(t[i]))}return e}function zA(e,t){for(var r=e[0],i=1,n=e.length;i<n;i++)r=ot(r,e[i],t);return r}function R(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==rf&&(e[r]=t[r]);return e}function st(e,t,r){for(var i=gt(t),n=0,a=i.length;n<a;n++){var o=i[n];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function nt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function g0(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function We(e,t,r){if(e="prototype"in e?e.prototype:e,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?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else st(e,t,r)}function Zt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function T(e,t,r){if(e&&t)if(e.forEach&&e.forEach===v0)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function X(e,t,r){if(!e)return[];if(!t)return af(e);if(e.map&&e.map===d0)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function xr(e,t,r,i){if(e&&t){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function At(e,t,r){if(!e)return[];if(!t)return af(e);if(e.filter&&e.filter===c0)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function m0(e,t,r){if(e&&t){for(var i=0,n=e.length;i<n;i++)if(t.call(r,e[i],i,e))return e[i]}}function gt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function y0(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(ef.call(arguments)))}}var ut=ga&&K(ga.bind)?ga.call.bind(ga.bind):y0;function fe(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(ef.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):rn.call(e)==="[object Array]"}function K(e){return typeof e=="function"}function W(e){return typeof e=="string"}function Bu(e){return rn.call(e)==="[object String]"}function ct(e){return typeof e=="number"}function U(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function wh(e){return!!jd[rn.call(e)]}function qt(e){return!!tp[rn.call(e)]}function Yn(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function ts(e){return e.colorStops!=null}function _0(e){return e.image!=null}function HA(e){return rn.call(e)==="[object RegExp]"}function Xn(e){return e!==e}function So(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function $(e,t){return e??t}function Ui(e,t,r){return e??t??r}function af(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ef.apply(e,t)}function of(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function He(e,t){if(!e)throw new Error(t)}function ke(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rp="__ec_primitive__";function bo(e){e[rp]=!0}function En(e){return e[rp]}var S0=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return gt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e}(),ip=typeof Map=="function";function b0(){return ip?new Map:new S0}var w0=function(){function e(t){var r=B(t);this.data=b0();var i=this;t instanceof e?t.each(n):t&&T(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return ip?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function j(e){return new w0(e)}function x0(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function es(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&R(r,t),r}function np(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function me(e,t){return e.hasOwnProperty(t)}function $t(){}var io=180/Math.PI;function nn(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function VA(e,t){return e[0]=t[0],e[1]=t[1],e}function T0(e){return[e[0],e[1]]}function GA(e,t,r){return e[0]=t,e[1]=r,e}function xh(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function WA(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e}function C0(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function M0(e){return Math.sqrt(D0(e))}function D0(e){return e[0]*e[0]+e[1]*e[1]}function ws(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function A0(e,t){var r=M0(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Nu(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var L0=Nu;function I0(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Yi=I0;function UA(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function he(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function Ni(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Fi(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Si=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),P0=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Si(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new Si(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new Si(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new Si(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Si(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Si(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ue=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),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:r,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},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.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,r[0]);break;case 2:l.h.call(l.ctx,r[0],r[1]);break;default:l.h.apply(l.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[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,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),k0=Math.log(2);function Fu(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~n)/k0);return e[r][u]}for(var l=i|1<<r,f=r+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)*e[r][c]*Fu(e,t-1,f,l,n|d,a),v++)}return a[o]=h,h}function Th(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Fu(r,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)*Fu(r,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 wo="___zrEVENTSAVED",xs=[];function E0(e,t,r,i,n){return zu(xs,t,i,n,!0)&&zu(e,r,xs[0],xs[1])}function R0(e,t){e&&r(e),t&&r(t);function r(i){var n=i[wo];n&&(n.clearMarkers&&n.clearMarkers(),delete i[wo])}}function zu(e,t,r,i,n){if(t.getBoundingClientRect&&q.domSupported&&!ap(t)){var a=t[wo]||(t[wo]={}),o=O0(t,a),s=B0(o,a,n);if(s)return s(e,r,i),!0}return!1}function O0(e,t){var r=t.markers;if(r)return r;r=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;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){T(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function B0(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=e[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(e[l].offsetLeft,e[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=r?Th(s,o):Th(o,s))}function ap(e){return e.nodeName.toUpperCase()==="CANVAS"}var N0=/([&<>"'])/g,F0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Gt(e){return e==null?"":(e+"").replace(N0,function(t,r){return F0[r]})}var z0=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ts=[],H0=q.browser.firefox&&+q.browser.version.split(".")[0]<39;function Hu(e,t,r,i){return r=r||{},i?Ch(e,t,r):H0&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Ch(e,t,r),r}function Ch(e,t,r){if(q.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(ap(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(zu(Ts,e,i,n)){r.zrX=Ts[0],r.zrY=Ts[1];return}}r.zrX=r.zrY=0}function sf(e){return e||window.event}function ae(e,t,r){if(t=sf(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(e,o,t,r)}else{Hu(e,t,t,r);var a=V0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&z0.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function V0(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function G0(e,t,r,i){e.addEventListener(t,r,i)}function W0(e,t,r,i){e.removeEventListener(t,r,i)}var op=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function YA(e){return e.which===2||e.which===3}var U0=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:r,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)}},e.prototype._recognize=function(t){for(var r in Cs)if(Cs.hasOwnProperty(r)){var i=Cs[r](this._track,t);if(i)return i}},e}();function Mh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Y0(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Cs={pinch:function(e,t){var r=e.length;if(r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Mh(i)/Mh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Y0(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Oe(){return[1,0,0,1,0,0]}function uf(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function lf(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Rn(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],u=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Vu(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function ff(e,t,r,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(r),h=Math.cos(r);return e[0]=n*h+s*f,e[1]=-n*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-i[0])+f*(l-i[1])+i[0],e[5]=h*(l-i[1])-f*(o-i[0])+i[1],e}function X0(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function fa(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*i;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-i*u,e[3]=r*u,e[4]=(i*s-o*n)*u,e[5]=(a*n-r*s)*u,e):null}function XA(e){var t=Oe();return lf(t,e),t}var ft=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),ri=Math.min,zi=Math.max,Gu=Math.abs,Dh=["x","y"],$0=["width","height"],Pr=new ft,kr=new ft,Er=new ft,Rr=new ft,Jt=sp(),Cn=Jt.minTv,Wu=Jt.maxTv,On=[0,0],J=function(){function e(t,r,i,n){e.set(this,t,r,i,n)}return e.set=function(t,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),t.x=r,t.y=i,t.width=n,t.height=a,t},e.prototype.union=function(t){var r=ri(t.x,this.x),i=ri(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=zi(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=zi(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Oe();return Vu(a,a,[-r.x,-r.y]),X0(a,a,[i,n]),Vu(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,i){return e.intersect(this,t,r,i)},e.intersect=function(t,r,i,n){i&&ft.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(Z0,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(q0,r.x,r.y,r.width,r.height));var s=!!i;Jt.reset(n,s);var u=Jt.touchThreshold,l=t.x+u,f=t.x+t.width-u,h=t.y+u,c=t.y+t.height-u,v=r.x+u,d=r.x+r.width-u,g=r.y+u,m=r.y+r.height-u;if(l>f||h>c||v>d||g>m)return!1;var p=!(f<v||d<l||c<g||m<h);return(s||a)&&(On[0]=1/0,On[1]=0,Ah(l,f,v,d,0,s,a,o),Ah(h,c,g,m,1,s,a,o),s&&ft.copy(i,p?Jt.useDir?Jt.dirMinTv:Cn:Wu)),p},e.contain=function(t,r,i){return r>=t.x&&r<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);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=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.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}Pr.x=Er.x=r.x,Pr.y=Rr.y=r.y,kr.x=Rr.x=r.x+r.width,kr.y=Er.y=r.y+r.height,Pr.transform(i),Rr.transform(i),kr.transform(i),Er.transform(i),t.x=ri(Pr.x,kr.x,Er.x,Rr.x),t.y=ri(Pr.y,kr.y,Er.y,Rr.y);var u=zi(Pr.x,kr.x,Er.x,Rr.x),l=zi(Pr.y,kr.y,Er.y,Rr.y);t.width=u-t.x,t.height=l-t.y},e}(),Z0=new J(0,0,0,0),q0=new J(0,0,0,0);function Ah(e,t,r,i,n,a,o,s){var u=Gu(t-r),l=Gu(i-e),f=ri(u,l),h=Dh[n],c=Dh[1-n],v=$0[n];t<r||i<e?u<l?(a&&(Wu[h]=-u),s&&(o[h]=t,o[v]=0)):(a&&(Wu[h]=l),s&&(o[h]=e,o[v]=0)):(o&&(o[h]=zi(e,r),o[v]=ri(t,i)-o[h]),a&&(f<On[0]||Jt.useDir)&&(On[0]=ri(f,On[0]),(u<l||!Jt.bidirectional)&&(Cn[h]=u,Cn[c]=0,Jt.useDir&&Jt.calcDirMTV()),(u>=l||!Jt.bidirectional)&&(Cn[h]=-l,Cn[c]=0,Jt.useDir&&Jt.calcDirMTV())))}function sp(){var e=0,t=new ft,r=new ft,i={minTv:new ft,maxTv:new ft,useDir:!1,dirMinTv:new ft,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=zi(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),e=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,u=Math.sin(e),l=Math.cos(e),f=u*a.y+l*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return Gu(a)<1e-10}return i}var up="silent";function K0(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Q0}}function Q0(){op(this.event)}var J0=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ue),un=function(){function e(t,r){this.x=t,this.y=r}return e}(),j0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ms=new J(0,0,0,0),lp=function(e){z(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new un(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new J0,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new P0(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(T(j0,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=fp(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 un(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",r),this.dispatchToElement(u,"mousemove",r),l&&l!==s&&this.dispatchToElement(u,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new un(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];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(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=K0(i,r,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(r,i,n){var a=this.storage.getDisplayList(),o=new un(r,i);if(Lh(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new J(r-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)&&(Ms.copy(c.getBoundingRect()),c.transform&&Ms.applyTransform(c.transform),Ms.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,m=0;m<l;m+=v)for(var p=0;p<g;p+=d){var y=r+m*Math.cos(p),_=i+m*Math.sin(p);if(Lh(s,o,y,_,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new U0);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new un;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Ue);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){lp.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=fp(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||L0(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function t_(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?up:!0}return!1}function Lh(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=t_(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==up)){t.target=o;break}}}function fp(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var hp=32,ln=7;function e_(e){for(var t=0;e>=hp;)t|=e&1,e>>=1;return e+t}function Ih(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;r_(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function r_(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function Ph(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,u;o<s;)u=o+s>>>1,n(a,e[u])<0?s=u:o=u+1;var l=i-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Ds(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])>0){for(s=i-n;u<s&&a(e,t[r+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(e,t[r+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(e,t[r+f])>0?o=f+1:u=f}return u}function As(e,t,r,i,n,a){var o=0,s=0,u=1;if(a(e,t[r+n])<0){for(s=n+1;u<s&&a(e,t[r+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(e,t[r+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(e,t[r+f])<0?u=f:o=f+1}return u}function i_(e,t){var r=ln,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],g=n[v],m=i[v+1],p=n[v+1];n[v]=g+p,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var y=As(e[m],e,d,g,0,t);d+=y,g-=y,g!==0&&(p=Ds(e[d+g-1],e,m,p,p-1,t),p!==0&&(g<=p?h(d,g,m,p):c(d,g,m,p)))}function h(v,d,g,m){var p=0;for(p=0;p<d;p++)o[p]=e[v+p];var y=0,_=g,S=v;if(e[S++]=e[_++],--m===0){for(p=0;p<d;p++)e[S+p]=o[y+p];return}if(d===1){for(p=0;p<m;p++)e[S+p]=e[_+p];e[S+m]=o[y];return}for(var w=r,b,x,D;;){b=0,x=0,D=!1;do if(t(e[_],o[y])<0){if(e[S++]=e[_++],x++,b=0,--m===0){D=!0;break}}else if(e[S++]=o[y++],b++,x=0,--d===1){D=!0;break}while((b|x)<w);if(D)break;do{if(b=As(e[_],o,y,d,0,t),b!==0){for(p=0;p<b;p++)e[S+p]=o[y+p];if(S+=b,y+=b,d-=b,d<=1){D=!0;break}}if(e[S++]=e[_++],--m===0){D=!0;break}if(x=Ds(o[y],e,_,m,0,t),x!==0){for(p=0;p<x;p++)e[S+p]=e[_+p];if(S+=x,_+=x,m-=x,m===0){D=!0;break}}if(e[S++]=o[y++],--d===1){D=!0;break}w--}while(b>=ln||x>=ln);if(D)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(p=0;p<m;p++)e[S+p]=e[_+p];e[S+m]=o[y]}else{if(d===0)throw new Error;for(p=0;p<d;p++)e[S+p]=o[y+p]}}function c(v,d,g,m){var p=0;for(p=0;p<m;p++)o[p]=e[g+p];var y=v+d-1,_=m-1,S=g+m-1,w=0,b=0;if(e[S--]=e[y--],--d===0){for(w=S-(m-1),p=0;p<m;p++)e[w+p]=o[p];return}if(m===1){for(S-=d,y-=d,b=S+1,w=y+1,p=d-1;p>=0;p--)e[b+p]=e[w+p];e[S]=o[_];return}for(var x=r;;){var D=0,C=0,A=!1;do if(t(o[_],e[y])<0){if(e[S--]=e[y--],D++,C=0,--d===0){A=!0;break}}else if(e[S--]=o[_--],C++,D=0,--m===1){A=!0;break}while((D|C)<x);if(A)break;do{if(D=d-As(o[_],e,v,d,d-1,t),D!==0){for(S-=D,y-=D,d-=D,b=S+1,w=y+1,p=D-1;p>=0;p--)e[b+p]=e[w+p];if(d===0){A=!0;break}}if(e[S--]=o[_--],--m===1){A=!0;break}if(C=m-Ds(e[y],o,0,m,m-1,t),C!==0){for(S-=C,_-=C,m-=C,b=S+1,w=_+1,p=0;p<C;p++)e[b+p]=o[w+p];if(m<=1){A=!0;break}}if(e[S--]=e[y--],--d===0){A=!0;break}x--}while(D>=ln||C>=ln);if(A)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),m===1){for(S-=d,y-=d,b=S+1,w=y+1,p=d-1;p>=0;p--)e[b+p]=e[w+p];e[S]=o[_]}else{if(m===0)throw new Error;for(w=S-(m-1),p=0;p<m;p++)e[w+p]=o[p]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function no(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<hp){a=Ih(e,r,i,t),Ph(e,r,i,r+a,t);return}var o=i_(e,t),s=e_(n);do{if(a=Ih(e,r,i,t),a<s){var u=n;u>s&&(u=s),Ph(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var jt=1,Mn=2,Bi=4,kh=!1;function Ls(){kh||(kh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Eh(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var n_=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Eh}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,no(i,Eh)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=n,f=t;l;)l.parent=f,l.updateTransform(),s[o++]=l,f=l,l=l.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var v=h[c];t.__dirty&&(v.__dirty|=jt),this._updateAndAddDisplayable(v,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Ls(),d.z=0),isNaN(d.z2)&&(Ls(),d.z2=0),isNaN(d.zlevel)&&(Ls(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var m=t.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=nt(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),xo;xo=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Bn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Bn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Bn.bounceIn(e*2)*.5:Bn.bounceOut(e*2-1)*.5+.5}},ma=Math.pow,_r=Math.sqrt,To=1e-8,vp=1e-4,Rh=_r(3),ya=1/3,Pe=nn(),ue=nn(),Xi=nn();function gr(e){return e>-To&&e<To}function cp(e){return e>To||e<-To}function xt(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Oh(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function Co(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-n,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(gr(f)&&gr(h))if(gr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(gr(g)){var m=h/f,d=-s/o+m,p=-m/2;d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p)}else if(g>0){var y=_r(g),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-ma(-_,ya):_=ma(_,ya),S<0?S=-ma(-S,ya):S=ma(S,ya);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*_r(f*f*f)),b=Math.acos(w)/3,x=_r(f),D=Math.cos(b),d=(-s-2*x*D)/(3*o),p=(-s+x*(D+Rh*Math.sin(b)))/(3*o),C=(-s+x*(D-Rh*Math.sin(b)))/(3*o);d>=0&&d<=1&&(a[v++]=d),p>=0&&p<=1&&(a[v++]=p),C>=0&&C<=1&&(a[v++]=C)}}return v}function dp(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,u=0;if(gr(o)){if(cp(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(gr(f))n[0]=-a/(2*o);else if(f>0){var h=_r(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 Mo(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,u=(i-r)*n+r,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function a_(e,t,r,i,n,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,m,p;Pe[0]=u,Pe[1]=l;for(var y=0;y<1;y+=.05)ue[0]=xt(e,r,n,o,y),ue[1]=xt(t,i,a,s,y),m=Yi(Pe,ue),m<v&&(h=y,v=m);v=1/0;for(var _=0;_<32&&!(c<vp);_++)d=h-c,g=h+c,ue[0]=xt(e,r,n,o,d),ue[1]=xt(t,i,a,s,d),m=Yi(ue,Pe),d>=0&&m<v?(h=d,v=m):(Xi[0]=xt(e,r,n,o,g),Xi[1]=xt(t,i,a,s,g),p=Yi(Xi,Pe),g<=1&&p<v?(h=g,v=p):c*=.5);return f&&(f[0]=xt(e,r,n,o,h),f[1]=xt(t,i,a,s,h)),_r(v)}function o_(e,t,r,i,n,a,o,s,u){for(var l=e,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,g=xt(e,r,n,o,d),m=xt(t,i,a,s,d),p=g-l,y=m-f;h+=Math.sqrt(p*p+y*y),l=g,f=m}return h}function kt(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function Bh(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function s_(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,u=0;if(gr(a)){if(cp(o)){var l=-s/o;l>=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(gr(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=_r(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 pp(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function Do(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function u_(e,t,r,i,n,a,o,s,u){var l,f=.005,h=1/0;Pe[0]=o,Pe[1]=s;for(var c=0;c<1;c+=.05){ue[0]=kt(e,r,n,c),ue[1]=kt(t,i,a,c);var v=Yi(Pe,ue);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<vp);d++){var g=l-f,m=l+f;ue[0]=kt(e,r,n,g),ue[1]=kt(t,i,a,g);var v=Yi(ue,Pe);if(g>=0&&v<h)l=g,h=v;else{Xi[0]=kt(e,r,n,m),Xi[1]=kt(t,i,a,m);var p=Yi(Xi,Pe);m<=1&&p<h?(l=m,h=p):f*=.5}}return u&&(u[0]=kt(e,r,n,l),u[1]=kt(t,i,a,l)),_r(h)}function l_(e,t,r,i,n,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=kt(e,r,n,c),d=kt(t,i,a,c),g=v-s,m=d-u;l+=Math.sqrt(g*g+m*m),s=v,u=d}return l}var f_=/cubic-bezier\(([0-9,\.e ]+)\)/;function gp(e){var t=e&&f_.exec(e);if(t){var r=t[1].split(","),i=+ke(r[0]),n=+ke(r[1]),a=+ke(r[2]),o=+ke(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:Co(0,i,a,1,u,s)&&xt(0,n,o,1,s[0])}}}var h_=function(){function e(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||$t,this.ondestroy=t.ondestroy||$t,this.onrestart=t.onrestart||$t,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;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},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=K(t)?t:Bn[t]||gp(t)},e}(),mp=function(){function e(t){this.value=t}return e}(),v_=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new mp(t);return this.insertEntry(r),r},e.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++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Zi=function(){function e(t){this._list=new v_,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){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=r:s=new mp(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Nh={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 ye(e){return e=Math.round(e),e<0?0:e>255?255:e}function c_(e){return e=Math.round(e),e<0?0:e>360?360:e}function $n(e){return e<0?0:e>1?1:e}function Is(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ye(parseFloat(t)/100*255):ye(parseInt(t,10))}function si(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$n(parseFloat(t)/100):$n(parseFloat(t))}function Ps(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function mr(e,t,r){return e+(t-e)*r}function ne(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Uu(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var yp=new Zi(20),_a=null;function bi(e,t){_a&&Uu(_a,t),_a=yp.put(e,_a||t.slice())}function _e(e,t){if(e){t=t||[];var r=yp.get(e);if(r)return Uu(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Nh)return Uu(t,Nh[i]),bi(e,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)){ne(t,0,0,0,1);return}return ne(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),bi(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ne(t,0,0,0,1);return}return ne(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),bi(e,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?ne(t,+l[0],+l[1],+l[2],1):ne(t,0,0,0,1);f=si(l.pop());case"rgb":if(l.length>=3)return ne(t,Is(l[0]),Is(l[1]),Is(l[2]),l.length===3?f:si(l[3])),bi(e,t),t;ne(t,0,0,0,1);return;case"hsla":if(l.length!==4){ne(t,0,0,0,1);return}return l[3]=si(l[3]),Yu(l,t),bi(e,t),t;case"hsl":if(l.length!==3){ne(t,0,0,0,1);return}return Yu(l,t),bi(e,t),t;default:return}}ne(t,0,0,0,1)}}function Yu(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=si(e[1]),n=si(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ne(t,ye(Ps(o,a,r+1/3)*255),ye(Ps(o,a,r)*255),ye(Ps(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function d_(e){if(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,n=Math.min(t,r,i),a=Math.max(t,r,i),o=a-n,s=(a+n)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+n):l=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:i===a&&(u=2/3+h-f),u<0&&(u+=1),u>1&&(u-=1)}var v=[u*360,l,s];return e[3]!=null&&v.push(e[3]),v}}function Fh(e,t){var r=_e(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return ha(r,r.length===4?"rgba":"rgb")}}function $A(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],u=i-n;return r[0]=ye(mr(o[0],s[0],u)),r[1]=ye(mr(o[1],s[1],u)),r[2]=ye(mr(o[2],s[2],u)),r[3]=$n(mr(o[3],s[3],u)),r}}function p_(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=_e(t[n]),s=_e(t[a]),u=i-n,l=ha([ye(mr(o[0],s[0],u)),ye(mr(o[1],s[1],u)),ye(mr(o[2],s[2],u)),$n(mr(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function Xu(e,t,r,i){var n=_e(e);if(e)return n=d_(n),t!=null&&(n[0]=c_(K(t)?t(n[0]):t)),r!=null&&(n[1]=si(K(r)?r(n[1]):r)),i!=null&&(n[2]=si(K(i)?i(n[2]):i)),ha(Yu(n),"rgba")}function ZA(e,t){var r=_e(e);if(r&&t!=null)return r[3]=$n(t),ha(r,"rgba")}function ha(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Ao(e,t){var r=_e(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var zh=new Zi(100);function Hh(e){if(W(e)){var t=zh.get(e);return t||(t=Fh(e,-.1),zh.put(e,t)),t}else if(ts(e)){var r=R({},e);return r.colorStops=X(e.colorStops,function(i){return{offset:i.offset,color:Fh(i.color,-.1)}}),r}return e}var Lo=Math.round;function qA(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=_e(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Vh=1e-4;function KA(e){return e<Vh&&e>-Vh}function Sa(e){return Lo(e*1e3)/1e3}function Gh(e){return Lo(e*1e4)/1e4}function QA(e){return"matrix("+Sa(e[0])+","+Sa(e[1])+","+Sa(e[2])+","+Sa(e[3])+","+Gh(e[4])+","+Gh(e[5])+")"}var JA={left:"start",right:"end",center:"middle",middle:"middle"};function jA(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function tL(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function eL(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function g_(e){return e&&!!e.image}function m_(e){return e&&!!e.svgElement}function rL(e){return g_(e)||m_(e)}function y_(e){return e.type==="linear"}function __(e){return e.type==="radial"}function iL(e){return e&&(e.type==="linear"||e.type==="radial")}function nL(e){return"url(#"+e+")"}function aL(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function oL(e){var t=e.x||0,r=e.y||0,i=(e.rotation||0)*io,n=$(e.scaleX,1),a=$(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,u=[];return(t||r)&&u.push("translate("+t+"px,"+r+"px)"),i&&u.push("rotate("+i+")"),(n!==1||a!==1)&&u.push("scale("+n+","+a+")"),(o||s)&&u.push("skew("+Lo(o*io)+"deg, "+Lo(s*io)+"deg)"),u.join(" ")}var sL=function(){return q.hasGlobalWindow&&K(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),$u=Array.prototype.slice;function Ke(e,t,r){return(t-e)*r+e}function ks(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Ke(t[a],r[a],i);return e}function S_(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Ke(t[o][s],r[o][s],i)}return e}function ba(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function Wh(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function b_(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function w_(e,t,r){var i=e,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(r===1?n[u]:$u.call(n[u]))}for(var l=i[0]&&i[0].length,u=0;u<i.length;u++)if(r===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 ao(e){if(Zt(e)){var t=e.length;if(Zt(e[0])){for(var r=[],i=0;i<t;i++)r.push($u.call(e[i]));return r}return $u.call(e)}return e}function oo(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function x_(e){return Zt(e&&e[0])?2:1}var wa=0,so=1,_p=2,Dn=3,Zu=4,qu=5,Uh=6;function Yh(e){return e===Zu||e===qu}function xa(e){return e===so||e===_p}var fn=[0,0,0,0],T_=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Uh,u=r;if(Zt(r)){var l=x_(r);s=l,(l===1&&!ct(r[0])||l===2&&!ct(r[0][0]))&&(o=!0)}else if(ct(r)&&!Xn(r))s=wa;else if(W(r))if(!isNaN(+r))s=wa;else{var f=_e(r);f&&(u=f,s=Dn)}else if(ts(r)){var h=R({},u);h.colorStops=X(r.colorStops,function(v){return{offset:v.offset,color:_e(v.color)}}),y_(r)?s=Zu:__(r)&&(s=qu),u=h}a===0?this.valType=s:(s!==this.valType||s===Uh)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return i&&(c.easing=i,c.easingFunc=K(i)?i:Bn[i]||gp(i)),n.push(c),c},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,m){return g.time-m.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,u=xa(n),l=Yh(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?w_(c,v,n):l&&b_(c.colorStops,v.colorStops))}if(!s&&n!==qu&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var d=i[0].value,f=0;f<a;f++)n===wa?i[f].additiveValue=i[f].value-d:n===Dn?i[f].additiveValue=ba([],i[f].value,d,-1):xa(n)&&(i[f].additiveValue=n===so?ba([],i[f].value,d,-1):Wh([],i[f].value,d,-1))}},e.prototype.step=function(t,r){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===Dn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var m=d.percent-v.percent,p=m===0?1:c((r-v.percent)/m,1);d.easingFunc&&(p=d.easingFunc(p));var y=i?this._additiveValue:l?fn:t[u];if((xa(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=p<1?v.rawValue:d.rawValue;else if(xa(a))a===so?ks(y,v[n],d[n],p):S_(y,v[n],d[n],p);else if(Yh(a)){var _=v[n],S=d[n],w=a===Zu;t[u]={type:w?"linear":"radial",x:Ke(_.x,S.x,p),y:Ke(_.y,S.y,p),colorStops:X(_.colorStops,function(x,D){var C=S.colorStops[D];return{offset:Ke(x.offset,C.offset,p),color:oo(ks([],x.color,C.color,p))}}),global:S.global},w?(t[u].x2=Ke(_.x2,S.x2,p),t[u].y2=Ke(_.y2,S.y2,p)):t[u].r=Ke(_.r,S.r,p)}else if(l)ks(y,v[n],d[n],p),i||(t[u]=oo(y));else{var b=Ke(v[n],d[n],p);i?this._additiveValue=b:t[u]=b}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===wa?t[i]=t[i]+n:r===Dn?(_e(t[i],fn),ba(fn,fn,n,1),t[i]=oo(fn)):r===so?ba(t[i],t[i],n,1):r===_p&&Wh(t[i],t[i],n,1)},e}(),hf=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){nf("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,gt(r),i)},e.prototype.whenWithKeys=function(t,r,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 T_(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===Dn&&l&&(l=oo(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,ao(l),n),this._trackKeys.push(s)}u.addKeyframe(t,ao(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=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&&(r._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new h_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,m=0;m<d.length;m++)if(d[m]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(r._target,v);var p=r._onframeCbs;if(p)for(var m=0;m<p.length;m++)p[m](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return X(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){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()&&(r?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},e.prototype.saveTo=function(t,r,i){if(t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[i?0:s.length-1];u&&(t[a]=ao(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||gt(t);for(var i=0;i<r.length;i++){var n=r[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())}}}},e}();function Hi(){return new Date().getTime()}var C_=function(e){z(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=Hi()-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,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(xo(i),!r._paused&&r.update())}xo(i)},t.prototype.start=function(){this._running||(this._time=Hi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Hi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Hi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new hf(r,i.loop);return this.addAnimator(n),n},t}(Ue),M_=300,Es=q.domSupported,Rs=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=X(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),Xh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},$h=!1;function Ku(e){var t=e.pointerType;return t==="pen"||t==="touch"}function D_(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Os(e){e&&(e.zrByTouch=!0)}function A_(e,t){return ae(e.dom,new L_(e,t),!0)}function Sp(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var L_=function(){function e(t,r){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),pe={mousedown:function(e){e=ae(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ae(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=ae(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ae(this.dom,e);var t=e.toElement||e.relatedTarget;Sp(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){$h=!0,e=ae(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){$h||(e=ae(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ae(this.dom,e),Os(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pe.mousemove.call(this,e),pe.mousedown.call(this,e)},touchmove:function(e){e=ae(this.dom,e),Os(e),this.handler.processGesture(e,"change"),pe.mousemove.call(this,e)},touchend:function(e){e=ae(this.dom,e),Os(e),this.handler.processGesture(e,"end"),pe.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<M_&&pe.click.call(this,e)},pointerdown:function(e){pe.mousedown.call(this,e)},pointermove:function(e){Ku(e)||pe.mousemove.call(this,e)},pointerup:function(e){pe.mouseup.call(this,e)},pointerout:function(e){Ku(e)||pe.mouseout.call(this,e)}};T(["click","dblclick","contextmenu"],function(e){pe[e]=function(t){t=ae(this.dom,t),this.trigger(e,t)}});var Qu={pointermove:function(e){Ku(e)||Qu.mousemove.call(this,e)},pointerup:function(e){Qu.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function I_(e,t){var r=t.domHandlers;q.pointerEventsSupported?T(Rs.pointer,function(i){uo(t,i,function(n){r[i].call(e,n)})}):(q.touchEventsSupported&&T(Rs.touch,function(i){uo(t,i,function(n){r[i].call(e,n),D_(t)})}),T(Rs.mouse,function(i){uo(t,i,function(n){n=sf(n),t.touching||r[i].call(e,n)})}))}function P_(e,t){q.pointerEventsSupported?T(Xh.pointer,r):q.touchEventsSupported||T(Xh.mouse,r);function r(i){function n(a){a=sf(a),Sp(e,a.target)||(a=A_(e,a),t.domHandlers[i].call(e,a))}uo(t,i,n,{capture:!0})}}function uo(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,G0(e.domTarget,t,r,i)}function Bs(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&W0(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Zh=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),k_=function(e){z(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new Zh(r,pe),Es&&(n._globalHandlerScope=new Zh(document,Qu)),I_(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Bs(this._localHandlerScope),Es&&Bs(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Es&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?P_(this,i):Bs(i)}},t}(Ue),bp=1;q.hasGlobalWindow&&(bp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Io=bp,Ju=.4,ju="#333",tl="#ccc",E_="#eee",qh=uf,Kh=5e-5;function Or(e){return e>Kh||e<-Kh}var Br=[],wi=[],Ns=Oe(),Fs=Math.abs,vf=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Or(this.rotation)||Or(this.x)||Or(this.y)||Or(this.scaleX-1)||Or(this.scaleY-1)||Or(this.skewX)||Or(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(qh(i),this.invTransform=null);return}i=i||Oe(),r?this.getLocalTransform(i):qh(i),t&&(r?Rn(i,t,i):lf(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Br);var i=Br[0]<0?-1:1,n=Br[1]<0?-1:1,a=((Br[0]-i)*r+i)/Br[0]||0,o=((Br[1]-n)*r+n)/Br[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Oe(),fa(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=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),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Oe(),Rn(wi,t.invTransform,r),r=wi);var i=this.originX,n=this.originY;(i||n)&&(Ns[4]=i,Ns[5]=n,Rn(wi,r,Ns),wi[4]-=i,wi[5]-=n,r=wi),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&he(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&he(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&Fs(t[0]-1)>1e-10&&Fs(t[3]-1)>1e-10?Math.sqrt(Fs(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){el(this,t)},e.getLocalTransform=function(t,r){r=r||[];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,g=n+u;r[4]=-d*a-c*g*o,r[5]=-g*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,l&&ff(r,r,l),r[4]+=i+f,r[5]+=n+h,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Zn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function el(e,t){for(var r=0;r<Zn.length;r++){var i=Zn[r];e[i]=t[i]}}function Be(e){Ta||(Ta=new Zi(100)),e=e||wr;var t=Ta.get(e);return t||(t={font:e,strWidthCache:new Zi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:er.measureText("国",e).width,asciiCharWidth:er.measureText("a",e).width},Ta.put(e,t)),t}var Ta;function R_(e){if(!(zs>=Qh)){e=e||wr;for(var t=[],r=+new Date,i=0;i<=127;i++)t[i]=er.measureText(String.fromCharCode(i),e).width;var n=+new Date-r;return n>16?zs=Qh:n>2&&zs++,t}}var zs=0,Qh=5;function wp(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=R_(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Ne(e,t){var r=e.strWidthCache,i=r.get(t);return i==null&&(i=er.measureText(t,e.font).width,r.put(t,i)),i}function Jh(e,t,r,i){var n=Ne(Be(t),e),a=rs(t),o=qi(0,n,r),s=ui(0,a,i),u=new J(o,s,n,a);return u}function xp(e,t,r,i){var n=((e||"")+"").split(`
`),a=n.length;if(a===1)return Jh(n[0],t,r,i);for(var o=new J(0,0,0,0),s=0;s<n.length;s++){var u=Jh(n[s],t,r,i);s===0?o.copy(u):o.union(u)}return o}function qi(e,t,r,i){return r==="right"?i?e+=t:e-=t:r==="center"&&(i?e+=t/2:e-=t/2),e}function ui(e,t,r,i){return r==="middle"?i?e+=t/2:e-=t/2:r==="bottom"&&(i?e+=t:e-=t),e}function rs(e){return Be(e).stWideCharWidth}function vi(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Tp(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,u=r.x,l=r.y,f="left",h="top";if(i instanceof Array)u+=vi(i[0],r.width),l+=vi(i[1],r.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 e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var Hs="__zr_normal__",Vs=Zn.concat(["ignore"]),O_=xr(Zn,function(e,t){return e[t]=!0,e},{ignore:!1}),xi={},B_=new J(0,0,0,0),Ca=[],is=function(){function e(t){this.id=ep(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=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]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=n?this:null;var l=!1;a.copyTransform(r);var f=i.position!=null,h=i.autoOverflowArea,c=void 0;if((h||f)&&(c=B_,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(xi,i,c):Tp(xi,i,c),a.x=xi.x,a.y=xi.y,o=xi.align,s=xi.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var d=void 0,g=void 0;v==="center"?(d=c.width*.5,g=c.height*.5):(d=vi(v[0],c.width),g=vi(v[1],c.height)),l=!0,a.originX=-a.x+d+(n?0:c.x),a.originY=-a.y+g+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var m=i.offset;m&&(a.x+=m[0],a.y+=m[1],l||(a.originX=-m[0],a.originY=-m[1]));var p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=p.overflowRect=p.overflowRect||new J(0,0,0,0);a.getLocalTransform(Ca),fa(Ca,Ca),J.copy(y,c),y.applyTransform(Ca)}else p.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,S=void 0,w=void 0,b=void 0;_&&this.canBeInsideText()?(S=i.insideFill,w=i.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(S),b=!0)):(S=i.outsideFill,w=i.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==p.fill||w!==p.stroke||b!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=S,p.stroke=w,p.autoStroke=b,p.align=o,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=jt,u&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tl:ju},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&_e(r);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,ha(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},R(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(U(t))for(var i=t,n=gt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Hs)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Vs)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Hs,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===Hs,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(nt(s,t)>=0&&(r||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){nf("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,r,!i&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,r,i,f),c&&c.useState(t,r,i,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~jt),l}}},e.prototype.useStates=function(t,r,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,!r&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,m=this._textGuide;g&&g.useStates(t,r,c),m&&m.useStates(t,r,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~jt)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=nt(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=nt(n,t),o=nt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];R(r,a),a.textConfig&&(i=i||{},R(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=R({},n?this.textConfig:i.textConfig),R(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},l=!1,f=0;f<Vs.length;f++){var h=Vs[f],c=a&&O_[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[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?(r||i)[d]:r||i)}l&&this._transitionState(t,u,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new vf,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),R(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=jt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,i=this._textGuide;r&&(r.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new hf(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=nt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){Gs(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){Gs(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=Gs(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=jt;function r(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&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();We(is,Ue);We(is,vf);function Gs(e,t,r,i,n){r=r||{};var a=[];Cp(e,"",e,t,r,i,a,n);var o=a.length,s=!1,u=r.done,l=r.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&&r.during&&a[0].during(function(d,g){r.during(g)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function Ws(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function N_(e){return Zt(e[0])}function F_(e,t,r){if(Zt(t[r]))if(Zt(e[r])||(e[r]=[]),qt(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),Ws(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(N_(n))for(var s=n[0].length,u=0;u<o;u++)a[u]?Ws(a[u],n[u],s):a[u]=Array.prototype.slice.call(n[u]);else Ws(a,n,o);a.length=n.length}else e[r]=t[r]}function z_(e,t){return e===t||Zt(e)&&Zt(t)&&H_(e,t)}function H_(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Cp(e,t,r,i,n,a,o,s){for(var u=gt(i),l=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!U(a),d=e.animators,g=[],m=0;m<u.length;m++){var p=u[m],y=i[p];if(y!=null&&r[p]!=null&&(v||a[p]))if(U(y)&&!Zt(y)&&!ts(y)){if(t){s||(r[p]=y,e.updateDuringAnimation(t));continue}Cp(e,p,r[p],y,n,a&&a[p],o,s)}else g.push(p);else s||(r[p]=y,e.updateDuringAnimation(t),g.push(p))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var b=w.stopTracks(g);if(b){var x=nt(d,w);d.splice(x,1)}}}if(n.force||(g=At(g,function(M){return!z_(i[M],r[M])}),_=g.length),_>0||n.force&&!o.length){var D=void 0,C=void 0,A=void 0;if(s){C={},c&&(D={});for(var S=0;S<_;S++){var p=g[S];C[p]=r[p],c?D[p]=i[p]:r[p]=i[p]}}else if(c){A={};for(var S=0;S<_;S++){var p=g[S];A[p]=ao(r[p]),F_(r,i,p)}}var w=new hf(r,!1,!1,h?At(d,function(I){return I.targetName===t}):null);w.targetName=t,n.scope&&(w.scope=n.scope),c&&D&&w.whenWithKeys(0,D,g),A&&w.whenWithKeys(0,A,g),w.whenWithKeys(l??500,s?C:i,g).delay(f||0),e.addAnimator(w,t),o.push(w)}}var zt=function(e){z(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=nt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=nt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new J(0,0,0,0),n=r||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?(J.applyTransform(i,l,f),o=o||i.clone(),o.union(i)):(o=o||l.clone(),o.union(l))}}return o||i},t}(is);zt.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 lo={},Mp={};function V_(e){delete Mp[e]}function G_(e){if(!e)return!1;if(typeof e=="string")return Ao(e,1)<Ju;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=Ao(t[n].color,1);return r/=i,r<Ju}return!1}var W_=function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new n_,o=i.renderer||"canvas";lo[o]||(o=gt(lo)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new lo[o](r,a,i,t),u=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!q.node&&!q.worker&&!u?new k_(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?q.touchEventsSupported:!!f,c=44,v;h&&(v=$(i.pointerSize,c)),this.handler=new lp(a,s,l,s.root,v),this.animation=new C_({stage:{update:u?null:function(){return n._flush(!0)}}}),u||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=G_(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,i=Hi();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=Hi();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof zt&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,V_(this.id))},e}();function jh(e,t){var r=new W_(ep(),e,t);return Mp[r.id]=r,r}function U_(e,t){lo[e]=t}var rl;function uL(e){if(typeof rl=="function")return rl(e)}function Y_(e){rl=e}var tv=1e-4,Dp=20;function X_(e){return e.replace(/^\s+|\s+$/g,"")}var qn=Math.min,ee=Math.max,Ee=Math.abs;function ev(e,t,r,i){var n=t[0],a=t[1],o=r[0],s=r[1],u=a-n,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(i)if(u>0){if(e<=n)return o;if(e>=a)return s}else{if(e>=n)return o;if(e<=a)return s}else{if(e===n)return o;if(e===a)return s}return(e-n)/u*l+o}var bt=$_;function $_(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return il(e,t,r)}function il(e,t,r){return W(e)?X_(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function Lt(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Dp),e=(+e).toFixed(t),r?e:+e}function lL(e){return e.sort(function(t,r){return t-r}),e}function Je(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Z_(e)}function Z_(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),i=r>0?+t.slice(r+1):0,n=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function q_(e,t){var r=Math.log,i=Math.LN10,n=Math.floor(r(e[1]-e[0])/i),a=Math.round(r(Ee(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function fL(e,t){var r=xr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var i=Math.pow(10,t),n=X(e,function(v){return(isNaN(v)?0:v)/r*i*100}),a=i*100,o=X(n,function(v){return Math.floor(v)}),s=xr(o,function(v,d){return v+d},0),u=X(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 X(o,function(v){return v/i})}function K_(e,t){var r=Math.max(Je(e),Je(t)),i=e+t;return r>Dp?i:Lt(i,r)}var hL=9007199254740991;function Ap(e){var t=Math.PI*2;return(e%t+t)%t}function Po(e){return e>-tv&&e<tv}var Q_=/^(?:(\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 an(e){if(e instanceof Date)return e;if(W(e)){var t=Q_.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function J_(e){return Math.pow(10,cf(e))}function cf(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Lp(e,t){var r=cf(e),i=Math.pow(10,r),n=e/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,e=a*i,r>=-20?+e.toFixed(r<0?-r:0):e}function vL(e,t){var r=(e.length-1)*t+1,i=Math.floor(r),n=+e[i-1],a=r-i;return a?n+a*(e[i]-n):n}function cL(e){e.sort(function(u,l){return s(u,l,0)?-1:1});for(var t=-1/0,r=1,i=0;i<e.length;){for(var n=e[i].interval,a=e[i].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,a[o]=o?1:1-r),t=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?e.splice(i,1):i++}return e;function s(u,l,f){return u.interval[f]<l.interval[f]||u.interval[f]===l.interval[f]&&(u.close[f]-l.close[f]===(f?-1:1)||!f&&s(u,l,1))}}function Tr(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf("x")<=0)?t:NaN}function j_(e){return!isNaN(Tr(e))}function Ip(){return Math.round(Math.random()*9)}function Pp(e,t){return t===0?e:Pp(t,e%t)}function rv(e,t){return e==null?t:t==null?e:e*t/Pp(e,t)}var t1="[ECharts] ",e1=typeof console<"u"&&console.warn&&console.log;function r1(e,t,r){e1&&console[e](t1+t)}function kp(e,t){r1("error",e)}function Ft(e){throw new Error(e)}function iv(e,t,r){return(t-e)*r+e}var Ep="series\0",Rp="\0_ec_\0";function It(e){return e instanceof Array?e:e==null?[]:[e]}function nv(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var av=["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 va(e){return U(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function i1(e){return U(e)&&!(e instanceof Array)}function n1(e,t,r){var i=r==="normalMerge",n=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=j();T(t,function(u,l){if(!U(u)){t[l]=null;return}});var s=a1(e,o,r);return(i||n)&&o1(s,e,o,t),i&&s1(s,t),i||n?u1(s,t,n):a&&l1(s,t),f1(s),s}function a1(e,t,r){var i=[];if(r==="replaceAll")return i;for(var n=0;n<e.length;n++){var a=e[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:r==="replaceMerge"||Kn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function o1(e,t,r,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=Nn(n.id),s=r.get(o);if(s!=null){var u=e[s];He(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=n,u.existing=t[s],i[a]=null}}})}function s1(e,t){T(t,function(r,i){if(!(!r||r.name==null))for(var n=0;n<e.length;n++){var a=e[n].existing;if(!e[n].newOption&&a&&(a.id==null||r.id==null)&&!Kn(r)&&!Kn(a)&&Op("name",a,r)){e[n].newOption=r,t[i]=null;return}}})}function u1(e,t,r){T(t,function(i){if(i){for(var n,a=0;(n=e[a])&&(n.newOption||Kn(n.existing)||n.existing&&i.id!=null&&!Op("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):e.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function l1(e,t){T(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function f1(e){var t=j();T(e,function(r){var i=r.existing;i&&t.set(i.id,r)}),T(e,function(r){var i=r.newOption;He(!i||i.id==null||!t.get(i.id)||t.get(i.id)===r,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),T(e,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(U(a)){if(o.name=a.name!=null?Nn(a.name):n?n.name:Ep+i,n)o.id=Nn(n.id);else if(a.id!=null)o.id=Nn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function Op(e,t,r){var i=Se(t[e],null),n=Se(r[e],null);return i!=null&&n!=null&&i===n}function Nn(e){return Se(e,"")}function Se(e,t){return e==null?t:W(e)?e:ct(e)||Bu(e)?e+"":t}function Bp(e){var t=e.name;return!!(t&&t.indexOf(Ep))}function Kn(e){return e&&e.id!=null&&Nn(e.id).indexOf(Rp)===0}function dL(e){return Rp+e}function h1(e,t,r){T(e,function(i){var n=i.newOption;U(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=v1(t,n,i.existing,r))})}function v1(e,t,r,i){var n=t.type?t.type:r?r.subType:i.determineSubType(e,t);return n}function pL(e,t){var r={},i={};return n(e||[],r),n(t||[],i,r),[a(r),a(i)];function n(o,s,u){for(var l=0,f=o.length;l<f;l++){var h=Se(o[l].seriesId,null);if(h==null)return;for(var c=It(o[l].dataIndex),v=u&&u[h],d=0,g=c.length;d<g;d++){var m=c[d];v&&v[m]?v[m]=null:(s[h]||(s[h]={}))[m]=1}}}function a(o,s){var u=[];for(var l in o)if(o.hasOwnProperty(l)&&o[l]!=null)if(s)u.push(+l);else{var f=a(o[l],!0);f.length&&u.push({seriesId:l,dataIndex:f})}return u}}function ci(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?X(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?X(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function _t(){var e="__ec_inner_"+c1++;return function(t){return t[e]||(t[e]={})}}var c1=Ip();function fo(e,t,r){var i=df(t,r),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,u=r?r.defaultMainType:null;return!n&&u&&a.set(u,{}),a.each(function(l,f){var h=ca(e,f,l,{useDefault:u===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function df(e,t){var r;if(W(e)){var i={};i[e+"Index"]=0,r=i}else r=e;var n=j(),a={},o=!1;return T(r,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&&nt(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 te={useDefault:!0,enableAll:!1,enableNone:!1},gL={useDefault:!1,enableAll:!0,enableNone:!0};function ca(e,t,r,i){i=i||te;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=i.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(n==="none"||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n==="all"&&(i.enableAll?n=a=o=null:n=-1),s.models=e.queryComponents({mainType:t,index:n,id:a,name:o}),s}function Np(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function d1(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function p1(e){return e==="auto"?q.domSupported?"html":"richText":e||"html"}function mL(e,t){var r=j(),i=[];return T(e,function(n){var a=t(n);(r.get(a)||(i.push(a),r.set(a,[]))).push(n)}),{keys:i,buckets:r}}function Fp(e,t,r,i,n){var a=t==null||t==="auto";if(i==null)return i;if(ct(i)){var o=iv(r||0,i,n);return Lt(o,a?Math.max(Je(r||0),Je(i)):t)}else{if(W(i))return n<1?r:i;for(var s=[],u=r,l=i,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=e.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=iv(v,d,n);s[h]=Lt(o,a?Math.max(Je(v),Je(d)):t)}}return s}}var yL=function(){function e(){}return e.prototype.reset=function(t,r,i,n){return this._list=t,this._step=n=n||1,this._idx=r,this._end=i??(n>0?t.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},e}();function _L(e){e.option=e.parentModel=e.ecModel=null}var g1=".",Nr="___EC__COMPONENT__CONTAINER___",zp="___EC__EXTENDED_CLASS___";function Re(e){var t={main:"",sub:""};if(e){var r=e.split(g1);t.main=r[0]||"",t.sub=r[1]||""}return t}function m1(e){He(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function y1(e){return!!(e&&e[zp])}function pf(e,t){e.$constructor=e,e.extend=function(r){var i=this,n;return _1(i)?n=function(a){z(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(r.$constructor||i).apply(this,arguments)},g0(n,this)),R(n.prototype,r),n[zp]=!0,n.extend=this.extend,n.superCall=w1,n.superApply=x1,n.superClass=i,n}}function _1(e){return K(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Hp(e,t){e.extend=t.extend}var S1=Math.round(Math.random()*10);function b1(e){var t=["__\0is_clz",S1++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function w1(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,r)}function x1(e,t,r){return this.superClass.prototype[t].apply(e,r)}function ns(e){var t={};e.registerClass=function(i){var n=i.type||i.prototype.type;if(n){m1(n),i.prototype.type=n;var a=Re(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Nr){var o=r(a);o[a.sub]=i}}return i},e.getClass=function(i,n,a){var o=t[i];if(o&&o[Nr]&&(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},e.getClassesByMainType=function(i){var n=Re(i),a=[],o=t[n.main];return o&&o[Nr]?T(o,function(s,u){u!==Nr&&a.push(s)}):a.push(o),a},e.hasClass=function(i){var n=Re(i);return!!t[n.main]},e.getAllClassMainTypes=function(){var i=[];return T(t,function(n,a){i.push(a)}),i},e.hasSubTypes=function(i){var n=Re(i),a=t[n.main];return a&&a[Nr]};function r(i){var n=t[i.main];return(!n||!n[Nr])&&(n=t[i.main]={},n[Nr]=!0),n}}function Qn(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(n&&nt(n,u)>=0||a&&nt(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var T1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],C1=Qn(T1),M1=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return C1(this,t,r)},e}(),nl=new Zi(50);function D1(e){if(typeof e=="string"){var t=nl.get(e);return t&&t.image}else return e}function Vp(e,t,r,i,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=nl.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!as(t)&&a.pending.push(o)):(t=er.loadImage(e,ov,ov),t.__zrImageSrc=e,nl.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function ov(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function as(e){return e&&e.width&&e.height}var Us=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function A1(e,t,r,i,n,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
`);a=Gp(r,i,n,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Wp(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function Gp(e,t,r,i){i=i||{};var n=R({},i);r=$(r,"..."),n.maxIterations=$(i.maxIterations,2);var a=n.minChar=$(i.minChar,0),o=n.fontMeasureInfo=Be(t),s=o.asciiCharWidth;n.placeholder=$(i.placeholder,"");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var f=Ne(o,r);return f>u&&(r="",f=0),u=e-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=u,n.containerWidth=e,n}function Wp(e,t,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){e.textLine="",e.isTruncated=!1;return}var o=Ne(a,t);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?L1(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,u),o=Ne(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function L1(e,t,r){for(var i=0,n=0,a=e.length;n<a&&i<t;n++)i+=wp(r,e.charCodeAt(n));return n}function I1(e,t,r,i){var n=gf(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,u=o?o[0]+o[2]:0,l=t.font,f=a==="truncate",h=rs(l),c=$(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,g=t.width;g==null&&r!=null&&(g=r-s);var m=t.height;m==null&&i!=null&&(m=i-u);var p;g!=null&&(a==="break"||a==="breakAll")?p=n?Up(n,t.font,g,a==="breakAll",0).lines:[]:p=n?n.split(`
`):[];var y=p.length*c;if(m==null&&(m=y),y>m&&v){var _=Math.floor(m/c);d=d||p.length>_,p=p.slice(0,_),y=p.length*c}if(n&&f&&g!=null)for(var S=Gp(g,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w={},b=0;b<p.length;b++)Wp(w,p[b],S),p[b]=w.textLine,d=d||w.isTruncated;for(var x=m,D=0,C=Be(l),b=0;b<p.length;b++)D=Math.max(Ne(C,p[b]),D);g==null&&(g=D);var A=g;return x+=u,A+=s,{lines:p,height:m,outerWidth:A,outerHeight:x,lineHeight:c,calculatedLineHeight:h,contentWidth:D,contentHeight:y,width:g,isTruncated:d}}var P1=function(){function e(){}return e}(),sv=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),k1=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function E1(e,t,r,i,n){var a=new k1,o=gf(e);if(!o)return a;var s=t.padding,u=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-u);var h=t.height;h==null&&i!=null&&(h=i-l);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=Us.lastIndex=0,g;(g=Us.exec(o))!=null;){var m=g.index;m>d&&Ys(a,o.substring(d,m),t,v),Ys(a,g[2],t,v,g[1]),d=Us.lastIndex}d<o.length&&Ys(a,o.substring(d,o.length),t,v);var p=[],y=0,_=0,S=c==="truncate",w=t.lineOverflow==="truncate",b={};function x(Ht,Ce,Ye){Ht.width=Ce,Ht.lineHeight=Ye,y+=Ye,_=Math.max(_,Ce)}t:for(var D=0;D<a.lines.length;D++){for(var C=a.lines[D],A=0,M=0,I=0;I<C.tokens.length;I++){var L=C.tokens[I],P=L.styleName&&t.rich[L.styleName]||{},k=L.textPadding=P.padding,E=k?k[1]+k[3]:0,Y=L.font=P.font||t.font;L.contentHeight=rs(Y);var N=$(P.height,L.contentHeight);if(L.innerHeight=N,k&&(N+=k[0]+k[2]),L.height=N,L.lineHeight=Ui(P.lineHeight,t.lineHeight,N),L.align=P&&P.align||n,L.verticalAlign=P&&P.verticalAlign||"middle",w&&h!=null&&y+L.lineHeight>h){var F=a.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),x(C,M,A),a.lines=a.lines.slice(0,D+1)):a.lines=a.lines.slice(0,D),a.isTruncated=a.isTruncated||a.lines.length<F;break t}var H=P.width,V=H==null||H==="auto";if(typeof H=="string"&&H.charAt(H.length-1)==="%")L.percentWidth=H,p.push(L),L.contentWidth=Ne(Be(Y),L.text);else{if(V){var G=P.backgroundColor,Z=G&&G.image;Z&&(Z=D1(Z),as(Z)&&(L.width=Math.max(L.width,Z.width*N/Z.height)))}var it=S&&f!=null?f-M:null;it!=null&&it<L.width?!V||it<E?(L.text="",L.width=L.contentWidth=0):(A1(b,L.text,it-E,Y,t.ellipsis,{minChar:t.truncateMinChar}),L.text=b.text,a.isTruncated=a.isTruncated||b.isTruncated,L.width=L.contentWidth=Ne(Be(Y),L.text)):L.contentWidth=Ne(Be(Y),L.text)}L.width+=E,M+=L.width,P&&(A=Math.max(A,L.lineHeight))}x(C,M,A)}a.outerWidth=a.width=$(f,_),a.outerHeight=a.height=$(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var D=0;D<p.length;D++){var L=p[D],pt=L.percentWidth;L.width=parseInt(pt,10)/100*a.width}return a}function Ys(e,t,r,i,n){var a=t==="",o=n&&r.rich[n]||{},s=e.lines,u=o.font||r.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=vi(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
`),l=!0),i.accumWidth=d}else{var g=Up(t,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}f||(f=t.split(`
`));for(var m=Be(u),p=0;p<f.length;p++){var y=f[p],_=new P1;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[p]:Ne(m,y),!p&&!l){var S=(s[s.length-1]||(s[0]=new sv)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=_:(y||!w||a)&&S.push(_)}else s.push(new sv([_]))}}function R1(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var O1=xr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function B1(e){return R1(e)?!!O1[e]:!0}function Up(e,t,r,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=Be(t),c=0;c<e.length;c++){var v=e.charAt(c);if(v===`
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var d=wp(h,v.charCodeAt(0)),g=i?!1:!B1(v);if(a.length?f+d>r:n+f+d>r){f?(s||u)&&(g?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=v,l+=d,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=v,f=d)):g?(a.push(u),o.push(l),u=v,l=d):(a.push(v),o.push(d));continue}f+=d,g?(u+=v,l+=d):(u&&(s+=u,u="",l=0),s+=v)}return u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function uv(e,t,r,i,n,a){if(e.baseX=r,e.baseY=i,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;J.set(lv,qi(r,o,n),ui(i,s,a),o,s),J.intersect(t,lv,null,fv);var u=fv.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=qi(u.x,u.width,n,!0),e.baseY=ui(u.y,u.height,a,!0)}}var lv=new J(0,0,0,0),fv={outIntersectRect:{},clamp:!0};function gf(e){return e!=null?e+="":e=""}function N1(e){var t=gf(e.text),r=e.font,i=Ne(Be(r),t),n=rs(r);return al(e,i,n,null)}function al(e,t,r,i){var n=new J(qi(e.x||0,t,e.textAlign),ui(e.y||0,r,e.textBaseline),t,r),a=i??(Yp(e)?e.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function Yp(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var ol="__zr_style_"+Math.round(Math.random()*10),li={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},os={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};li[ol]=!0;var hv=["z","z2","invisible"],F1=["invisible"],da=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=gt(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[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(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&z1(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){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(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=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;r=this._paintRect||(this._paintRect=new J(0,0,0,0)),i?J.applyTransform(r,n,i):r.copy(n),(o||s||u)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(u),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+u-o));var l=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-l),r.y=Math.floor(r.y-l),r.width=Math.ceil(r.width+1+l*2),r.height=Math.ceil(r.height+1+l*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,i){r!=="style"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:R(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Mn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Mn)},t.prototype.styleUpdated=function(){this.__dirty&=~Mn},t.prototype.createStyle=function(r){return es(li,r)},t.prototype.useStyle=function(r){r[ol]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[ol]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,hv)},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,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=gt(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=gt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var g=this.__inHover?F1:hv,c=0;c<g.length;c++){var v=g[c];i&&i[v]!=null?this[v]=i[v]:u&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(r,i){return R(r,i),r},t.prototype.getAnimationStyleProps=function(){return os},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=jt|Mn}(),t}(is),Xs=new J(0,0,0,0),$s=new J(0,0,0,0);function z1(e,t,r){return Xs.copy(e.getBoundingRect()),e.transform&&Xs.applyTransform(e.transform),$s.width=t,$s.height=r,!Xs.intersect($s)}var Wt=Math.min,Ut=Math.max,Zs=Math.sin,qs=Math.cos,Fr=Math.PI*2,Ma=nn(),Da=nn(),Aa=nn();function SL(e,t,r){if(e.length!==0){for(var i=e[0],n=i[0],a=i[0],o=i[1],s=i[1],u=1;u<e.length;u++)i=e[u],n=Wt(n,i[0]),a=Ut(a,i[0]),o=Wt(o,i[1]),s=Ut(s,i[1]);t[0]=n,t[1]=o,r[0]=a,r[1]=s}}function vv(e,t,r,i,n,a){n[0]=Wt(e,r),n[1]=Wt(t,i),a[0]=Ut(e,r),a[1]=Ut(t,i)}var cv=[],dv=[];function H1(e,t,r,i,n,a,o,s,u,l){var f=dp,h=xt,c=f(e,r,n,o,cv);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(e,r,n,o,cv[v]);u[0]=Wt(d,u[0]),l[0]=Ut(d,l[0])}c=f(t,i,a,s,dv);for(var v=0;v<c;v++){var g=h(t,i,a,s,dv[v]);u[1]=Wt(g,u[1]),l[1]=Ut(g,l[1])}u[0]=Wt(e,u[0]),l[0]=Ut(e,l[0]),u[0]=Wt(o,u[0]),l[0]=Ut(o,l[0]),u[1]=Wt(t,u[1]),l[1]=Ut(t,l[1]),u[1]=Wt(s,u[1]),l[1]=Ut(s,l[1])}function V1(e,t,r,i,n,a,o,s){var u=pp,l=kt,f=Ut(Wt(u(e,r,n),1),0),h=Ut(Wt(u(t,i,a),1),0),c=l(e,r,n,f),v=l(t,i,a,h);o[0]=Wt(e,n,c),o[1]=Wt(t,a,v),s[0]=Ut(e,n,c),s[1]=Ut(t,a,v)}function G1(e,t,r,i,n,a,o,s,u){var l=Ni,f=Fi,h=Math.abs(n-a);if(h%Fr<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-i,u[0]=e+r,u[1]=t+i;return}if(Ma[0]=qs(n)*r+e,Ma[1]=Zs(n)*i+t,Da[0]=qs(a)*r+e,Da[1]=Zs(a)*i+t,l(s,Ma,Da),f(u,Ma,Da),n=n%Fr,n<0&&(n=n+Fr),a=a%Fr,a<0&&(a=a+Fr),n>a&&!o?a+=Fr:n<a&&o&&(n+=Fr),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Aa[0]=qs(v)*r+e,Aa[1]=Zs(v)*i+t,l(s,Aa,s),f(u,Aa,u))}var at={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},zr=[],Hr=[],Me=[],nr=[],De=[],Ae=[],Ks=Math.min,Qs=Math.max,Vr=Math.cos,Gr=Math.sin,Xe=Math.abs,sl=Math.PI,cr=sl*2,Js=typeof Float32Array<"u",hn=[];function js(e){var t=Math.round(e/sl*1e8)/1e8;return t%2*sl}function W1(e,t){var r=js(e[0]);r<0&&(r+=cr);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=cr?n=r+cr:t&&r-n>=cr?n=r-cr:!t&&r>n?n=r+(cr-js(r-n)):t&&r<n&&(n=r-(cr-js(n-r))),e[0]=r,e[1]=n}var di=function(){function e(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 e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,i){i=i||0,i>0&&(this._ux=Xe(i/Io/t)||0,this._uy=Xe(i/Io/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(at.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=Xe(t-this._xi),n=Xe(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(at.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(at.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(at.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),hn[0]=n,hn[1]=a,W1(hn,o),n=hn[0],a=hn[1];var s=a-n;return this.addData(at.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Vr(a)*i+t,this._yi=Gr(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(at.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(at.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&Js&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=t[i];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,i=0,n=this._len,a=0;a<r;a++)i+=t[a].len();var o=this.data;if(Js&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var u=t[a].data,s=0;s<u.length;s++)this.data[n++]=u[s];this._len=n}},e.prototype.addData=function(t,r,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]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Js&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Me[0]=Me[1]=De[0]=De[1]=Number.MAX_VALUE,nr[0]=nr[1]=Ae[0]=Ae[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],i=t[o+1],n=r,a=i),s){case at.M:r=n=t[o++],i=a=t[o++],De[0]=n,De[1]=a,Ae[0]=n,Ae[1]=a;break;case at.L:vv(r,i,t[o],t[o+1],De,Ae),r=t[o++],i=t[o++];break;case at.C:H1(r,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],De,Ae),r=t[o++],i=t[o++];break;case at.Q:V1(r,i,t[o++],t[o++],t[o],t[o+1],De,Ae),r=t[o++],i=t[o++];break;case at.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];u&&(n=Vr(v)*h+l,a=Gr(v)*c+f),G1(l,f,h,c,v,d,g,De,Ae),r=Vr(d)*h+l,i=Gr(d)*c+f;break;case at.R:n=r=t[o++],a=i=t[o++];var m=t[o++],p=t[o++];vv(n,a,n+m,a+p,De,Ae);break;case at.Z:r=n,i=a;break}Ni(Me,Me,De),Fi(nr,nr,Ae)}return o===0&&(Me[0]=Me[1]=nr[0]=nr[1]=0),new J(Me[0],Me[1],nr[0]-Me[0],nr[1]-Me[1])},e.prototype._calculateLength=function(){var t=this.data,r=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<r;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var g=-1;switch(v){case at.M:a=s=t[c++],o=u=t[c++];break;case at.L:{var m=t[c++],p=t[c++],y=m-a,_=p-o;(Xe(y)>i||Xe(_)>n||c===r-1)&&(g=Math.sqrt(y*y+_*_),a=m,o=p);break}case at.C:{var S=t[c++],w=t[c++],m=t[c++],p=t[c++],b=t[c++],x=t[c++];g=o_(a,o,S,w,m,p,b,x,10),a=b,o=x;break}case at.Q:{var S=t[c++],w=t[c++],m=t[c++],p=t[c++];g=l_(a,o,S,w,m,p,10),a=m,o=p;break}case at.A:var D=t[c++],C=t[c++],A=t[c++],M=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,d&&(s=Vr(I)*A+D,u=Gr(I)*M+C),g=Qs(A,M)*Ks(cr,Math.abs(L)),a=Vr(P)*A+D,o=Gr(P)*M+C;break;case at.R:{s=a=t[c++],u=o=t[c++];var k=t[c++],E=t[c++];g=k*2+E*2;break}case at.Z:{var y=s-a,_=u-o;g=Math.sqrt(y*y+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,g,m=0,p=0,y,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var b=0;b<o;){var x=i[b++],D=b===1;switch(D&&(l=i[b],f=i[b+1],s=l,u=f),x!==at.L&&_>0&&(t.lineTo(S,w),_=0),x){case at.M:s=l=i[b++],u=f=i[b++],t.moveTo(l,f);break;case at.L:{h=i[b++],c=i[b++];var C=Xe(h-l),A=Xe(c-f);if(C>n||A>a){if(v){var M=d[p++];if(m+M>y){var I=(y-m)/M;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}m+=M}t.lineTo(h,c),l=h,f=c,_=0}else{var L=C*C+A*A;L>_&&(S=h,w=c,_=L)}break}case at.C:{var P=i[b++],k=i[b++],E=i[b++],Y=i[b++],N=i[b++],F=i[b++];if(v){var M=d[p++];if(m+M>y){var I=(y-m)/M;Mo(l,P,E,N,I,zr),Mo(f,k,Y,F,I,Hr),t.bezierCurveTo(zr[1],Hr[1],zr[2],Hr[2],zr[3],Hr[3]);break t}m+=M}t.bezierCurveTo(P,k,E,Y,N,F),l=N,f=F;break}case at.Q:{var P=i[b++],k=i[b++],E=i[b++],Y=i[b++];if(v){var M=d[p++];if(m+M>y){var I=(y-m)/M;Do(l,P,E,I,zr),Do(f,k,Y,I,Hr),t.quadraticCurveTo(zr[1],Hr[1],zr[2],Hr[2]);break t}m+=M}t.quadraticCurveTo(P,k,E,Y),l=E,f=Y;break}case at.A:var H=i[b++],V=i[b++],G=i[b++],Z=i[b++],it=i[b++],pt=i[b++],Ht=i[b++],Ce=!i[b++],Ye=G>Z?G:Z,Kt=Xe(G-Z)>.001,Mt=it+pt,Q=!1;if(v){var M=d[p++];m+M>y&&(Mt=it+pt*(y-m)/M,Q=!0),m+=M}if(Kt&&t.ellipse?t.ellipse(H,V,G,Z,Ht,it,Mt,Ce):t.arc(H,V,Ye,it,Mt,Ce),Q)break t;D&&(s=Vr(it)*G+H,u=Gr(it)*Z+V),l=Vr(Mt)*G+H,f=Gr(Mt)*Z+V;break;case at.R:s=l=i[b],u=f=i[b+1],h=i[b++],c=i[b++];var et=i[b++],Ir=i[b++];if(v){var M=d[p++];if(m+M>y){var Bt=y-m;t.moveTo(h,c),t.lineTo(h+Ks(Bt,et),c),Bt-=et,Bt>0&&t.lineTo(h+et,c+Ks(Bt,Ir)),Bt-=Ir,Bt>0&&t.lineTo(h+Qs(et-Bt,0),c+Ir),Bt-=et,Bt>0&&t.lineTo(h,c+Qs(Ir-Bt,0));break t}m+=M}t.rect(h,c,et,Ir);break;case at.Z:if(v){var M=d[p++];if(m+M>y){var I=(y-m)/M;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}m+=M}t.closePath(),l=s,f=u}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=at,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Ti(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-i)/(e-r),l=(e*i-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function U1(e,t,r,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>e+h&&l>r+h&&l>n+h&&l>o+h||l<e-h&&l<r-h&&l<n-h&&l<o-h)return!1;var c=a_(e,t,r,i,n,a,o,s,l,f,null);return c<=h/2}function Y1(e,t,r,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>e+l&&s>r+l&&s>n+l||s<e-l&&s<r-l&&s<n-l)return!1;var f=u_(e,t,r,i,n,a,s,u,null);return f<=l/2}var pv=Math.PI*2;function La(e){return e%=pv,e<0&&(e+=pv),e}var vn=Math.PI*2;function X1(e,t,r,i,n,a,o,s,u){if(o===0)return!1;var l=o;s-=e,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>r||f+l<r)return!1;if(Math.abs(i-n)%vn<1e-4)return!0;if(a){var h=i;i=La(n),n=La(h)}else i=La(i),n=La(n);i>n&&(n+=vn);var c=Math.atan2(u,s);return c<0&&(c+=vn),c>=i&&c<=n||c+vn>=i&&c+vn<=n}function Wr(e,t,r,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*(r-e)+e;return u===n?1/0:u>n?s:0}var ar=di.CMD,Ur=Math.PI*2,$1=1e-4;function Z1(e,t){return Math.abs(e-t)<$1}var Nt=[-1,-1,-1],se=[-1,-1];function q1(){var e=se[0];se[0]=se[1],se[1]=e}function K1(e,t,r,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=Co(t,i,a,s,l,Nt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var m=Nt[g],p=m===0||m===1?.5:1,y=xt(e,r,n,o,m);y<u||(c<0&&(c=dp(t,i,a,s,se),se[1]<se[0]&&c>1&&q1(),v=xt(t,i,a,s,se[0]),c>1&&(d=xt(t,i,a,s,se[1]))),c===2?m<se[0]?h+=v<t?p:-p:m<se[1]?h+=d<v?p:-p:h+=s<d?p:-p:m<se[0]?h+=v<t?p:-p:h+=s<v?p:-p)}return h}function Q1(e,t,r,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var u=s_(t,i,a,s,Nt);if(u===0)return 0;var l=pp(t,i,a);if(l>=0&&l<=1){for(var f=0,h=kt(t,i,a,l),c=0;c<u;c++){var v=Nt[c]===0||Nt[c]===1?.5:1,d=kt(e,r,n,Nt[c]);d<o||(Nt[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Nt[0]===0||Nt[0]===1?.5:1,d=kt(e,r,n,Nt[0]);return d<o?0:a<t?v:-v}}function J1(e,t,r,i,n,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Nt[0]=-u,Nt[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Ur-1e-4){i=0,n=Ur;var f=a?1:-1;return o>=Nt[0]+e&&o<=Nt[1]+e?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Ur,n+=Ur);for(var c=0,v=0;v<2;v++){var d=Nt[v];if(d+e>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Ur+g),(g>=i&&g<=n||g+Ur>=i&&g+Ur<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Xp(e,t,r,i,n){for(var a=e.data,o=e.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var g=a[d++],m=d===1;switch(g===ar.M&&d>1&&(r||(s+=Wr(u,l,f,h,i,n))),m&&(u=a[d],l=a[d+1],f=u,h=l),g){case ar.M:f=a[d++],h=a[d++],u=f,l=h;break;case ar.L:if(r){if(Ti(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 ar.C:if(r){if(U1(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=K1(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 ar.Q:if(r){if(Y1(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=Q1(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case ar.A:var p=a[d++],y=a[d++],_=a[d++],S=a[d++],w=a[d++],b=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(w)*_+p,v=Math.sin(w)*S+y,m?(f=c,h=v):s+=Wr(u,l,c,v,i,n);var D=(i-p)*S/_+p;if(r){if(X1(p,y,S,w,w+b,x,t,D,n))return!0}else s+=J1(p,y,S,w,w+b,x,D,n);u=Math.cos(w+b)*_+p,l=Math.sin(w+b)*S+y;break;case ar.R:f=u=a[d++],h=l=a[d++];var C=a[d++],A=a[d++];if(c=f+C,v=h+A,r){if(Ti(f,h,c,h,t,i,n)||Ti(c,h,c,v,t,i,n)||Ti(c,v,f,v,t,i,n)||Ti(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 ar.Z:if(r){if(Ti(u,l,f,h,t,i,n))return!0}else s+=Wr(u,l,f,h,i,n);u=f,l=h;break}}return!r&&!Z1(l,h)&&(s+=Wr(u,l,f,h,i,n)||0),s!==0}function j1(e,t,r){return Xp(e,0,!1,t,r)}function tS(e,t,r,i){return Xp(e,t,!0,r,i)}var $p=st({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},li),eS={style:st({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},os.style)},tu=Zn.concat(["invisible","culling","z","z2","zlevel","parent"]),lt=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.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){r.buildPath(u,r.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<tu.length;++s)n[tu[s]]=this[tu[s]];n.__dirty|=jt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var i=gt(r);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=r[o];o==="style"?this.style?R(this.style,s):this.useStyle(s):o==="shape"?R(this.shape,s):e.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 r=this.style.fill;if(r!=="none"){if(W(r)){var i=Ao(r,0);return i>.5?ju:i>.2?E_:tl}else if(r)return tl}return ju},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(W(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Ao(r,0)<Ju;if(a===o)return i}},t.prototype.buildPath=function(r,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Bi},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new di(!1)},t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Bi)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);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 r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,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)),tS(s,u/l,r,i)))return!0}if(this.hasFill())return j1(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Bi,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:R(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Bi)},t.prototype.createStyle=function(r){return es($p,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=R({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=R({},n.shape),R(l,i.shape)):(l=R({},a?this.shape:n.shape),R(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=R({},this.shape);for(var f={},h=gt(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(r,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return eS},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var i=function(a){z(o,a);function o(s){var u=a.call(this,s)||this;return r.init&&r.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return rt(r.style)},o.prototype.getDefaultShape=function(){return rt(r.shape)},o}(t);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=jt|Mn|Bi}(),t}(da),rS=st({strokeFirst:!0,font:wr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$p),ko=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Yp(this.style)},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return es(rS,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=N1(this.style)),this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(da);ko.prototype.type="tspan";var iS=st({x:0,y:0},li),nS={style:st({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},os.style)};function aS(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Ar=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return es(iS,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=aS(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return nS},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new J(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(da);Ar.prototype.type="image";function oS(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(r=r+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),e.moveTo(r+s,i),e.lineTo(r+n-u,i),u!==0&&e.arc(r+n-u,i+u,u,-Math.PI/2,0),e.lineTo(r+n,i+a-l),l!==0&&e.arc(r+n-l,i+a-l,l,0,Math.PI/2),e.lineTo(r+f,i+a),f!==0&&e.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var Vi=Math.round;function Zp(e,t,r){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Vi(i*2)===Vi(n*2)&&(e.x1=e.x2=ii(i,s,!0)),Vi(a*2)===Vi(o*2)&&(e.y1=e.y2=ii(a,s,!0))),e}}function qp(e,t,r){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=ii(i,s,!0),e.y=ii(n,s,!0),e.width=Math.max(ii(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(ii(n+o,s,!1)-e.y,o===0?0:1)),e}}function ii(e,t,r){if(!t)return e;var i=Vi(e*2);return(i+Vi(t))%2===0?i/2:(i+(r?1:-1))/2}var sS=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),uS={},Rt=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new sS},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=qp(uS,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?oS(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(lt);Rt.prototype.type="rect";var gv={fill:"#000"},mv=2,Le={},lS={style:st({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},os.style)},be=function(e){z(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=gv,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];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 r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,dS(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);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 r=new J(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?(r.copy(u),r.applyTransform(l),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||gv},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return R(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,i){for(var n=gt(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},R(r[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return lS},t.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||wr,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,u=r.align||a.align||"left",l=r.verticalAlign||a.verticalAlign||"top";uv(Le,a.overflowRect,o,s,u,l),o=Le.baseX,s=Le.baseY;var f=Tv(r),h=I1(f,r,Le.outerWidth,Le.outerHeight),c=eu(r),v=!!r.backgroundColor,d=h.outerHeight,g=h.outerWidth,m=h.lines,p=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=ui(s,h.contentHeight,l);if(c||n){var S=qi(o,g,u),w=ui(s,d,l);c&&this._renderBackground(r,r,S,w,g,d)}_+=p/2,n&&(y=xv(o,u,n),l==="top"?_+=n[0]:l==="bottom"&&(_-=n[2]));for(var b=0,x=!1,D=!1,C=wv("fill"in r?r.fill:(D=!0,a.fill)),A=bv("stroke"in r?r.stroke:!v&&(!a.autoStroke||D)?(b=mv,x=!0,a.stroke):null),M=r.textShadowBlur>0,I=0;I<m.length;I++){var L=this._getOrCreateChild(ko),P=L.createStyle();L.useStyle(P),P.text=m[I],P.x=y,P.y=_,P.textAlign=u,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,M&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=A,P.fill=C,A&&(P.lineWidth=r.lineWidth||b,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=i,_v(P,r),_+=p,L.setBoundingRect(al(P,h.contentWidth,h.calculatedLineHeight,x?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;uv(Le,i.overflowRect,o,s,n,a),o=Le.baseX,s=Le.baseY;var u=Tv(r),l=E1(u,r,Le.outerWidth,Le.outerHeight,n),f=l.width,h=l.outerWidth,c=l.outerHeight,v=r.padding;this.isTruncated=!!l.isTruncated;var d=qi(o,h,n),g=ui(s,c,a),m=d,p=g;v&&(m+=v[3],p+=v[0]);var y=m+f;eu(r)&&this._renderBackground(r,r,d,g,h,c);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var w=l.lines[S],b=w.tokens,x=b.length,D=w.lineHeight,C=w.width,A=0,M=m,I=y,L=x-1,P=void 0;A<x&&(P=b[A],!P.align||P.align==="left");)this._placeToken(P,r,D,p,M,"left",_),C-=P.width,M+=P.width,A++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,r,D,p,I,"right",_),C-=P.width,I-=P.width,L--;for(M+=(f-(M-m)-(y-I)-C)/2;A<=L;)P=b[A],this._placeToken(P,r,D,p,M+P.width/2,"center",_),M+=P.width,A++;p+=D}},t.prototype._placeToken=function(r,i,n,a,o,s,u){var l=i.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+n/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+n-r.height/2);var c=!r.isLineHolder&&eu(l);c&&this._renderBackground(l,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!l.backgroundColor,d=r.textPadding;d&&(o=xv(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(ko),m=g.createStyle();g.useStyle(m);var p=this._defaultStyle,y=!1,_=0,S=!1,w=wv("fill"in l?l.fill:"fill"in i?i.fill:(y=!0,p.fill)),b=bv("stroke"in l?l.stroke:"stroke"in i?i.stroke:!v&&!u&&(!p.autoStroke||y)?(_=mv,S=!0,p.stroke):null),x=l.textShadowBlur>0||i.textShadowBlur>0;m.text=r.text,m.x=o,m.y=h,x&&(m.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,m.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||wr,m.opacity=Ui(l.opacity,i.opacity,1),_v(m,l),b&&(m.lineWidth=Ui(l.lineWidth,i.lineWidth,_),m.lineDash=$(l.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),w&&(m.fill=w),g.setBoundingRect(al(m,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,i,n,a,o,s){var u=r.backgroundColor,l=r.borderWidth,f=r.borderColor,h=u&&u.image,c=u&&!h,v=r.borderRadius,d=this,g,m;if(c||r.lineHeight||l&&f){g=this._getOrCreateChild(Rt),g.useStyle(g.createStyle()),g.style.fill=null;var p=g.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=v,g.dirtyShape()}if(c){var y=g.style;y.fill=u||null,y.fillOpacity=$(r.fillOpacity,1)}else if(h){m=this._getOrCreateChild(Ar),m.onload=function(){d.dirtyStyle()};var _=m.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&f){var y=g.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=$(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var S=(g||m).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ui(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return cS(r)&&(i=[r.fontStyle,r.fontWeight,vS(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&ke(i)||r.textFont||r.font},t}(da),fS={left:!0,right:1,center:1},hS={top:1,bottom:1,middle:1},yv=["fontStyle","fontWeight","fontSize","fontFamily"];function vS(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?tf+"px":e+"px"}function _v(e,t){for(var r=0;r<yv.length;r++){var i=yv[r],n=t[i];n!=null&&(e[i]=n)}}function cS(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function dS(e){return Sv(e),T(e.rich,Sv),e}function Sv(e){if(e){e.font=be.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||fS[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||hS[r]?r:"top";var i=e.padding;i&&(e.padding=of(e.padding))}}function bv(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function wv(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function xv(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function Tv(e){var t=e.text;return t!=null&&(t+=""),t}function eu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var vt=_t(),pS=function(e,t,r,i){if(i){var n=vt(i);n.dataIndex=r,n.dataType=t,n.seriesIndex=e,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=vt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},Cv=1,Mv={},Kp=_t(),mf=_t(),yf=0,ss=1,us=2,Ve=["emphasis","blur","select"],Dv=["normal","emphasis","blur","select"],gS=10,mS=9,fi="highlight",ho="downplay",Eo="select",ul="unselect",Ro="toggleSelect",_f="selectchanged";function Ci(e){return e!=null&&e!=="none"}function ls(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function Qp(e){ls(e,"emphasis",us)}function Jp(e){e.hoverState===us&&ls(e,"normal",yf)}function Sf(e){ls(e,"blur",ss)}function jp(e){e.hoverState===ss&&ls(e,"normal",yf)}function yS(e){e.selected=!0}function _S(e){e.selected=!1}function Av(e,t,r){t(e,r)}function ir(e,t,r){Av(e,t,r),e.isGroup&&e.traverse(function(i){Av(i,t,r)})}function Lv(e,t){switch(t){case"emphasis":e.hoverState=us;break;case"normal":e.hoverState=yf;break;case"blur":e.hoverState=ss;break;case"select":e.selected=!0}}function SS(e,t,r,i){for(var n=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=n[s];a[s]=u??(i&&i[s])}for(var o=0;o<e.animators.length;o++){var l=e.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(r)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function bS(e,t,r,i){var n=r&&nt(r,"select")>=0,a=!1;if(e instanceof lt){var o=Kp(e),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(Ci(s)||Ci(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=R({},i),l=R({},l),l.fill=s):!Ci(l.fill)&&Ci(s)?(a=!0,i=R({},i),l=R({},l),l.fill=Hh(s)):!Ci(l.stroke)&&Ci(u)&&(a||(i=R({},i),l=R({},l)),l.stroke=Hh(u)),i.style=l}}if(i&&i.z2==null){a||(i=R({},i));var f=e.z2EmphasisLift;i.z2=e.z2+(f??gS)}return i}function wS(e,t,r){if(r&&r.z2==null){r=R({},r);var i=e.z2SelectLift;r.z2=e.z2+(i??mS)}return r}function xS(e,t,r){var i=nt(e.currentStates,t)>=0,n=e.style.opacity,a=i?null:SS(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=R({},r),o=R({opacity:i?n:a.opacity*.1},o),r.style=o),r}function ru(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return bS(this,e,t,r);if(e==="blur")return xS(this,e,r);if(e==="select")return wS(this,e,r)}return r}function TS(e){e.stateProxy=ru;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=ru),r&&(r.stateProxy=ru)}function Iv(e,t){!ig(e,t)&&!e.__highByOuter&&ir(e,Qp)}function Pv(e,t){!ig(e,t)&&!e.__highByOuter&&ir(e,Jp)}function Oo(e,t){e.__highByOuter|=1<<(t||0),ir(e,Qp)}function Bo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ir(e,Jp)}function CS(e){ir(e,Sf)}function tg(e){ir(e,jp)}function eg(e){ir(e,yS)}function rg(e){ir(e,_S)}function ig(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function ng(e){var t=e.getModel(),r=[],i=[];t.eachComponent(function(n,a){var o=mf(a),s=n==="series",u=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){jp(l)}),s&&r.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,t)})}function ll(e,t,r,i){var n=i.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&tg(c)}}if(e!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(e),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(!(r==="series"&&!f||r==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(l);if(v.group.traverse(function(m){m.__highByOuter&&f&&t==="self"||Sf(m)}),Zt(t))a(l.getData(),t);else if(U(t))for(var d=gt(t),g=0;g<d.length;g++)a(l.getData(d[g]),t[d[g]]);u.push(l),mf(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 fl(e,t,r){if(!(e==null||t==null)){var i=r.getModel().getComponent(e,t);if(i){mf(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Sf(a)})}}}function MS(e,t,r){var i=e.seriesIndex,n=e.getData(t.dataType);if(n){var a=ci(n,t);a=(B(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=vt(o);ll(i,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&ll(i,f,h,r)}}}function bf(e,t,r,i){var n={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return n;var a=i.getModel().getComponent(e,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(vt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function DS(e,t,r){var i=vt(e),n=bf(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&fl(i.componentMainType,i.componentIndex,r),T(a,function(s){return Iv(s,t)})):(ll(i.seriesIndex,i.focus,i.blurScope,r),i.focus==="self"&&fl(i.componentMainType,i.componentIndex,r),Iv(e,t))}function AS(e,t,r){ng(r);var i=vt(e),n=bf(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?T(n,function(a){return Pv(a,t)}):Pv(e,t)}function LS(e,t,r){if(cl(t)){var i=t.dataType,n=e.getData(i),a=ci(n,t);B(a)||(a=[a]),e[t.type===Ro?"toggleSelect":t.type===Eo?"select":"unselect"](a,i)}}function kv(e){var t=e.getAllData();T(t,function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){e.isSelected(o,n)?eg(a):rg(a)})})}function IS(e){var t=[];return e.eachSeries(function(r){var i=r.getAllData();T(i,function(n){n.data;var a=n.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function PS(e,t,r){ag(e,!0),ir(e,TS),ES(e,t,r)}function kS(e){ag(e,!1)}function hl(e,t,r,i){i?kS(e):PS(e,t,r)}function ES(e,t,r){var i=vt(e);t!=null?(i.focus=t,i.blurScope=r):i.focus&&(i.focus=null)}var Ev=["emphasis","blur","select"],RS={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Rv(e,t,r,i){r=r||"itemStyle";for(var n=0;n<Ev.length;n++){var a=Ev[n],o=t.getModel([a,r]),s=e.ensureState(a);s.style=i?i(o):o[RS[r]]()}}function ag(e,t){var r=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function vl(e){return!!(e&&e.__highDownDispatcher)}function bL(e,t,r){var i=vt(e);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=r}function OS(e){var t=Mv[e];return t==null&&Cv<=32&&(t=Mv[e]=Cv++),t}function cl(e){var t=e.type;return t===Eo||t===ul||t===Ro}function Ov(e){var t=e.type;return t===fi||t===ho}function BS(e){var t=Kp(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var Mi=di.CMD,NS=[[],[],[]],Bv=Math.sqrt,FS=Math.atan2;function og(e,t){if(t){var r=e.data,i=e.len(),n,a,o,s,u,l,f=Mi.M,h=Mi.C,c=Mi.L,v=Mi.R,d=Mi.A,g=Mi.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case g:a=2;break;case d:var m=t[4],p=t[5],y=Bv(t[0]*t[0]+t[1]*t[1]),_=Bv(t[2]*t[2]+t[3]*t[3]),S=FS(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=m,r[o]*=_,r[o++]+=p,r[o++]*=y,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case v:l[0]=r[o++],l[1]=r[o++],he(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],he(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var w=NS[u];w[0]=r[o++],w[1]=r[o++],he(w,w,t),r[s++]=w[0],r[s++]=w[1]}}e.increaseVersion()}}var iu=Math.sqrt,Ia=Math.sin,Pa=Math.cos,cn=Math.PI;function Nv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function dl(e,t){return(e[0]*t[0]+e[1]*t[1])/(Nv(e)*Nv(t))}function Fv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(dl(e,t))}function zv(e,t,r,i,n,a,o,s,u,l,f){var h=u*(cn/180),c=Pa(h)*(e-r)/2+Ia(h)*(t-i)/2,v=-1*Ia(h)*(e-r)/2+Pa(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=iu(d),s*=iu(d));var g=(n===a?-1:1)*iu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,m=g*o*v/s,p=g*-s*c/o,y=(e+r)/2+Pa(h)*m-Ia(h)*p,_=(t+i)/2+Ia(h)*m+Pa(h)*p,S=Fv([1,0],[(c-m)/o,(v-p)/s]),w=[(c-m)/o,(v-p)/s],b=[(-1*c-m)/o,(-1*v-p)/s],x=Fv(w,b);if(dl(w,b)<=-1&&(x=cn),dl(w,b)>=1&&(x=0),x<0){var D=Math.round(x/cn*1e6)/1e6;x=cn*2+D%2*cn}f.addData(l,y,_,o,s,S,x,h,a)}var zS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,HS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VS(e){var t=new di;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=di.CMD,u=e.match(zS);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(HS)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var m=0;m<d;){var p=void 0,y=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,D=r,C=i,A=void 0,M=void 0;switch(h){case"l":r+=v[m++],i+=v[m++],c=s.L,t.addData(c,r,i);break;case"L":r=v[m++],i=v[m++],c=s.L,t.addData(c,r,i);break;case"m":r+=v[m++],i+=v[m++],c=s.M,t.addData(c,r,i),n=r,a=i,h="l";break;case"M":r=v[m++],i=v[m++],c=s.M,t.addData(c,r,i),n=r,a=i,h="L";break;case"h":r+=v[m++],c=s.L,t.addData(c,r,i);break;case"H":r=v[m++],c=s.L,t.addData(c,r,i);break;case"v":i+=v[m++],c=s.L,t.addData(c,r,i);break;case"V":i=v[m++],c=s.L,t.addData(c,r,i);break;case"C":c=s.C,t.addData(c,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),r=v[m-2],i=v[m-1];break;case"c":c=s.C,t.addData(c,v[m++]+r,v[m++]+i,v[m++]+r,v[m++]+i,v[m++]+r,v[m++]+i),r+=v[m-2],i+=v[m-1];break;case"S":p=r,y=i,A=t.len(),M=t.data,o===s.C&&(p+=r-M[A-4],y+=i-M[A-3]),c=s.C,D=v[m++],C=v[m++],r=v[m++],i=v[m++],t.addData(c,p,y,D,C,r,i);break;case"s":p=r,y=i,A=t.len(),M=t.data,o===s.C&&(p+=r-M[A-4],y+=i-M[A-3]),c=s.C,D=r+v[m++],C=i+v[m++],r+=v[m++],i+=v[m++],t.addData(c,p,y,D,C,r,i);break;case"Q":D=v[m++],C=v[m++],r=v[m++],i=v[m++],c=s.Q,t.addData(c,D,C,r,i);break;case"q":D=v[m++]+r,C=v[m++]+i,r+=v[m++],i+=v[m++],c=s.Q,t.addData(c,D,C,r,i);break;case"T":p=r,y=i,A=t.len(),M=t.data,o===s.Q&&(p+=r-M[A-4],y+=i-M[A-3]),r=v[m++],i=v[m++],c=s.Q,t.addData(c,p,y,r,i);break;case"t":p=r,y=i,A=t.len(),M=t.data,o===s.Q&&(p+=r-M[A-4],y+=i-M[A-3]),r+=v[m++],i+=v[m++],c=s.Q,t.addData(c,p,y,r,i);break;case"A":_=v[m++],S=v[m++],w=v[m++],b=v[m++],x=v[m++],D=r,C=i,r=v[m++],i=v[m++],c=s.A,zv(D,C,r,i,b,x,_,S,w,c,t);break;case"a":_=v[m++],S=v[m++],w=v[m++],b=v[m++],x=v[m++],D=r,C=i,r+=v[m++],i+=v[m++],c=s.A,zv(D,C,r,i,b,x,_,S,w,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=n,i=a),o=c}return t.toStatic(),t}var sg=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(lt);function ug(e){return e.setData!=null}function lg(e,t){var r=VS(e),i=R({},t);return i.buildPath=function(n){var a=ug(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){og(r,n),this.dirtyShape()},i}function GS(e,t){return new sg(lg(e,t))}function WS(e,t){var r=lg(e,t),i=function(n){z(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(sg);return i}function US(e,t){for(var r=[],i=e.length,n=0;n<i;n++){var a=e[n];r.push(a.getUpdatedPathProxy(!0))}var o=new lt(t);return o.createPathProxy(),o.buildPath=function(s){if(ug(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function wL(e,t){t=t||{};var r=new lt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?og(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var YS=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),fs=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YS},t.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(lt);fs.prototype.type="circle";var XS=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),wf=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new XS},t.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,u=i.ry,l=s*n,f=u*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),r.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),r.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),r.closePath()},t}(lt);wf.prototype.type="ellipse";var fg=Math.PI,nu=fg*2,Yr=Math.sin,Di=Math.cos,$S=Math.acos,Pt=Math.atan2,Hv=Math.abs,Fn=Math.sqrt,An=Math.max,Ie=Math.min,de=1e-4;function ZS(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,f=o-n,h=s-a,c=h*u-f*l;if(!(c*c<de))return c=(f*(t-a)-h*(e-n))/c,[e+c*u,t+c*l]}function ka(e,t,r,i,n,a,o){var s=e-r,u=t-i,l=(o?a:-a)/Fn(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,g=i+h,m=(c+d)/2,p=(v+g)/2,y=d-c,_=g-v,S=y*y+_*_,w=n-a,b=c*g-d*v,x=(_<0?-1:1)*Fn(An(0,w*w*S-b*b)),D=(b*_-y*x)/S,C=(-b*y-_*x)/S,A=(b*_+y*x)/S,M=(-b*y+_*x)/S,I=D-m,L=C-p,P=A-m,k=M-p;return I*I+L*L>P*P+k*k&&(D=A,C=M),{cx:D,cy:C,x0:-f,y0:-h,x1:D*(n/w-1),y1:C*(n/w-1)}}function qS(e){var t;if(B(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function KS(e,t){var r,i=An(t.r,0),n=An(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=Hv(l-u),d=v>nu&&v%nu;if(d>de&&(v=d),!(i>de))e.moveTo(f,h);else if(v>nu-de)e.moveTo(f+i*Di(u),h+i*Yr(u)),e.arc(f,h,i,u,l,!c),n>de&&(e.moveTo(f+n*Di(l),h+n*Yr(l)),e.arc(f,h,n,l,u,c));else{var g=void 0,m=void 0,p=void 0,y=void 0,_=void 0,S=void 0,w=void 0,b=void 0,x=void 0,D=void 0,C=void 0,A=void 0,M=void 0,I=void 0,L=void 0,P=void 0,k=i*Di(u),E=i*Yr(u),Y=n*Di(l),N=n*Yr(l),F=v>de;if(F){var H=t.cornerRadius;H&&(r=qS(H),g=r[0],m=r[1],p=r[2],y=r[3]);var V=Hv(i-n)/2;if(_=Ie(V,p),S=Ie(V,y),w=Ie(V,g),b=Ie(V,m),C=x=An(_,S),A=D=An(w,b),(x>de||D>de)&&(M=i*Di(l),I=i*Yr(l),L=n*Di(u),P=n*Yr(u),v<fg)){var G=ZS(k,E,L,P,M,I,Y,N);if(G){var Z=k-G[0],it=E-G[1],pt=M-G[0],Ht=I-G[1],Ce=1/Yr($S((Z*pt+it*Ht)/(Fn(Z*Z+it*it)*Fn(pt*pt+Ht*Ht)))/2),Ye=Fn(G[0]*G[0]+G[1]*G[1]);C=Ie(x,(i-Ye)/(Ce+1)),A=Ie(D,(n-Ye)/(Ce-1))}}}if(!F)e.moveTo(f+k,h+E);else if(C>de){var Kt=Ie(p,C),Mt=Ie(y,C),Q=ka(L,P,k,E,i,Kt,c),et=ka(M,I,Y,N,i,Mt,c);e.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),C<x&&Kt===Mt?e.arc(f+Q.cx,h+Q.cy,C,Pt(Q.y0,Q.x0),Pt(et.y0,et.x0),!c):(Kt>0&&e.arc(f+Q.cx,h+Q.cy,Kt,Pt(Q.y0,Q.x0),Pt(Q.y1,Q.x1),!c),e.arc(f,h,i,Pt(Q.cy+Q.y1,Q.cx+Q.x1),Pt(et.cy+et.y1,et.cx+et.x1),!c),Mt>0&&e.arc(f+et.cx,h+et.cy,Mt,Pt(et.y1,et.x1),Pt(et.y0,et.x0),!c))}else e.moveTo(f+k,h+E),e.arc(f,h,i,u,l,!c);if(!(n>de)||!F)e.lineTo(f+Y,h+N);else if(A>de){var Kt=Ie(g,A),Mt=Ie(m,A),Q=ka(Y,N,M,I,n,-Mt,c),et=ka(k,E,L,P,n,-Kt,c);e.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),A<D&&Kt===Mt?e.arc(f+Q.cx,h+Q.cy,A,Pt(Q.y0,Q.x0),Pt(et.y0,et.x0),!c):(Mt>0&&e.arc(f+Q.cx,h+Q.cy,Mt,Pt(Q.y0,Q.x0),Pt(Q.y1,Q.x1),!c),e.arc(f,h,n,Pt(Q.cy+Q.y1,Q.cx+Q.x1),Pt(et.cy+et.y1,et.cx+et.x1),c),Kt>0&&e.arc(f+et.cx,h+et.cy,Kt,Pt(et.y1,et.x1),Pt(et.y0,et.x0),!c))}else e.lineTo(f+Y,h+N),e.arc(f,h,n,l,u,c)}e.closePath()}}}var QS=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),hs=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new QS},t.prototype.buildPath=function(r,i){KS(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(lt);hs.prototype.type="sector";var JS=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),xf=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new JS},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(lt);xf.prototype.type="ring";function jS(e,t,r,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=e.length;c<v;c++)Ni(f,f,e[c]),Fi(h,h,e[c]);Ni(f,f,i[0]),Fi(h,h,i[1])}for(var c=0,v=e.length;c<v;c++){var d=e[c];if(r)u=e[c?c-1:v-1],l=e[(c+1)%v];else if(c===0||c===v-1){n.push(T0(e[c]));continue}else u=e[c-1],l=e[c+1];C0(a,l,u),ws(a,a,t);var g=Nu(d,u),m=Nu(d,l),p=g+m;p!==0&&(g/=p,m/=p),ws(o,a,-g),ws(s,a,m);var y=xh([],d,o),_=xh([],d,s);i&&(Fi(y,y,f),Ni(y,y,h),Fi(_,_,f),Ni(_,_,h)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function hg(e,t,r){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=jS(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)e.lineTo(n[s][0],n[s][1])}r&&e.closePath()}}var tb=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Tf=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tb},t.prototype.buildPath=function(r,i){hg(r,i,!0)},t}(lt);Tf.prototype.type="polygon";var eb=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Cf=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new eb},t.prototype.buildPath=function(r,i){hg(r,i,!1)},t}(lt);Cf.prototype.type="polyline";var rb={},ib=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Cr=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ib},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var u=Zp(rb,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&&(r.moveTo(n,a),l<1&&(o=n*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},t}(lt);Cr.prototype.type="line";var Vt=[],nb=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Vv(e,t,r){var i=e.cpx2,n=e.cpy2;return i!=null||n!=null?[(r?Oh:xt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Oh:xt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Bh:kt)(e.x1,e.cpx1,e.x2,t),(r?Bh:kt)(e.y1,e.cpy1,e.y2,t)]}var Mf=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nb},t.prototype.buildPath=function(r,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&&(r.moveTo(n,a),f==null||h==null?(c<1&&(Do(n,u,o,c,Vt),u=Vt[1],o=Vt[2],Do(a,l,s,c,Vt),l=Vt[1],s=Vt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(Mo(n,u,f,o,c,Vt),u=Vt[1],f=Vt[2],o=Vt[3],Mo(a,l,h,s,c,Vt),l=Vt[1],h=Vt[2],s=Vt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Vv(this.shape,r,!1)},t.prototype.tangentAt=function(r){var i=Vv(this.shape,r,!0);return A0(i,i)},t}(lt);Mf.prototype.type="bezier-curve";var ab=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),vs=function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ab},t.prototype.buildPath=function(r,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);r.moveTo(f*o+n,h*o+a),r.arc(n,a,o,s,u,!l)},t}(lt);vs.prototype.type="arc";var ob=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),lt.prototype.getBoundingRect.call(this)},t}(lt),vg=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),cg=function(e){z(t,e);function t(r,i,n,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=i??0,u.x2=n??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t}(vg),sb=function(e){z(t,e);function t(r,i,n,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(vg),au=Math.min,ub=Math.max,Ea=Math.abs,Xr=[0,0],$r=[0,0],Ct=sp(),Ra=Ct.minTv,Oa=Ct.maxTv,dg=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ft;for(var i=0;i<2;i++)this._axes[i]=new ft;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){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),r)for(var l=0;l<4;l++)i[l].transform(r);ft.sub(n[0],i[1],i[0]),ft.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])},e.prototype.intersect=function(t,r,i){var n=!0,a=!r;return r&&ft.set(r,0,0),Ct.reset(i,!a),!this._intersectCheckOneSide(this,t,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(n=!1,a)||!a&&!Ct.negativeSize&&ft.copy(r,n?Ct.useDir?Ct.dirMinTv:Ra:Oa),n},e.prototype._intersectCheckOneSide=function(t,r,i,n){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Xr),t._getProjMinMaxOnAxis(o,r._corners,$r),Ct.negativeSize||Xr[1]<$r[0]||Xr[0]>$r[1]){if(a=!1,Ct.negativeSize||i)return a;var u=Ea($r[0]-Xr[1]),l=Ea(Xr[0]-$r[1]);au(u,l)>Oa.len()&&(u<l?ft.scale(Oa,s,-u*n):ft.scale(Oa,s,l*n))}else if(!i){var u=Ea($r[0]-Xr[1]),l=Ea(Xr[0]-$r[1]);(Ct.useDir||au(u,l)<Ra.len())&&((u<l||!Ct.bidirectional)&&(ft.scale(Ra,s,u*n),Ct.useDir&&Ct.calcDirMTV()),(u>=l||!Ct.bidirectional)&&(ft.scale(Ra,s,-l*n),Ct.useDir&&Ct.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,i){for(var n=this._axes[t],a=this._origin,o=r[0].dot(n)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(n)+a[t];s=au(f,s),u=ub(f,u)}i[0]=s+Ct.touchThreshold,i[1]=u-Ct.touchThreshold,Ct.negativeSize=i[1]<i[0]},e}(),lb=[],fb=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,i){r.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(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new J(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(lb)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,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(r,i))return!0}return!1},t}(da),pg=_t();function hb(e,t,r,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=e==="update";if(s){var l=void 0,f=void 0,h=void 0;i?(l=$(i.duration,200),f=$(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)),K(h)&&(h=h(r,n)),K(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function Df(e,t,r,i,n,a,o){var s=!1,u;K(n)?(o=a,a=n,n=null):U(n)&&(a=n.cb,o=n.during,s=n.isFrom,u=n.removeOpt,n=n.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=hb(e,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:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Mr(e,t,r,i,n,a){Df("update",e,t,r,i,n,a)}function on(e,t,r,i,n,a){Df("enter",e,t,r,i,n,a)}function zn(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function No(e,t,r,i,n,a){zn(e)||Df("leave",e,t,r,i,n,a)}function Gv(e,t,r,i){e.removeTextContent(),e.removeTextGuideLine(),No(e,{style:{opacity:0}},t,r,i)}function vb(e,t,r){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(n){n.isGroup||Gv(n,t,r,i)}):Gv(e,t,r,i)}function cb(e){pg(e).oldStyle=e.style}function xL(e){return pg(e).oldStyle}var pl={},pr=["x","y"],Ki=["width","height"];function db(e){return lt.extend(e)}var pb=WS;function gb(e,t){return pb(e,t)}function xe(e,t){pl[e]=t}function mb(e){if(pl.hasOwnProperty(e))return pl[e]}function Af(e,t,r,i){var n=GS(e,t);return r&&(i==="center"&&(r=mg(r,n.getBoundingRect())),yg(n,r)),n}function gg(e,t,r){var i=new Ar({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(r==="center"){var a={width:n.width,height:n.height};i.setStyle(mg(t,a))}}});return i}function mg(e,t){var r=t.width/t.height,i=e.height*r,n;i<=e.width?n=e.height:(i=e.width,n=i/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var yb=US;function yg(e,t){if(e.applyTransform){var r=e.getBoundingRect(),i=r.calculateTransform(t);e.applyTransform(i)}}function Jn(e,t){return Zp(e,e,{lineWidth:t}),e}function _b(e,t){return qp(e,e,t),e}var Sb=ii;function bb(e,t){for(var r=uf([]);e&&e!==t;)Rn(r,e.getLocalTransform(),r),e=e.parent;return r}function Lf(e,t,r){return t&&!Zt(t)&&(t=vf.getLocalTransform(t)),r&&(t=fa([],t)),he([],e,t)}function wb(e,t,r){var i=t[4]===0||t[5]===0||t[0]===0?1:Ee(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Ee(2*t[4]/t[2]),a=[e==="left"?-i:e==="right"?i:0,e==="top"?-n:e==="bottom"?n:0];return a=Lf(a,t,r),Ee(a[0])>Ee(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Wv(e){return!e.isGroup}function xb(e){return e.shape!=null}function _g(e,t,r){if(!e||!t)return;function i(o){var s={};return o.traverse(function(u){Wv(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return xb(o)&&(s.shape=rt(o.shape)),s}var a=i(e);t.traverse(function(o){if(Wv(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),Mr(o,u,r,vt(o).dataIndex)}}})}function Tb(e,t){return X(e,function(r){var i=r[0];i=ee(i,t.x),i=qn(i,t.x+t.width);var n=r[1];return n=ee(n,t.y),n=qn(n,t.y+t.height),[i,n]})}function Cb(e,t){var r=ee(e.x,t.x),i=qn(e.x+e.width,t.x+t.width),n=ee(e.y,t.y),a=qn(e.y+e.height,t.y+t.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Sg(e,t,r){var i=R({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(n.image=e.slice(8),st(n,r),new Ar(i)):Af(e.replace("path://",""),i,r,"center")}function Mb(e,t,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(bg(e,t,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function bg(e,t,r,i,n,a,o,s){var u=r-e,l=i-t,f=o-n,h=s-a,c=ou(f,h,u,l);if(Db(c))return!1;var v=e-n,d=t-a,g=ou(v,d,u,l)/c;if(g<0||g>1)return!1;var m=ou(v,d,f,h)/c;return!(m<0||m>1)}function ou(e,t,r,i){return e*i-r*t}function Db(e){return e<=1e-6&&e>=-1e-6}function Fo(e,t,r,i,n){return t==null||(ct(t)?dt[0]=dt[1]=dt[2]=dt[3]=t:(dt[0]=t[0],dt[1]=t[1],dt[2]=t[2],dt[3]=t[3]),i&&(dt[0]=ee(0,dt[0]),dt[1]=ee(0,dt[1]),dt[2]=ee(0,dt[2]),dt[3]=ee(0,dt[3])),r&&(dt[0]=-dt[0],dt[1]=-dt[1],dt[2]=-dt[2],dt[3]=-dt[3]),Uv(e,dt,"x","width",3,1,n&&n[0]||0),Uv(e,dt,"y","height",0,2,n&&n[1]||0)),e}var dt=[0,0,0,0];function Uv(e,t,r,i,n,a,o){var s=t[a]+t[n],u=e[i];e[i]+=s,o=ee(0,qn(o,u)),e[i]<o?(e[i]=o,e[r]+=t[n]>=0?-t[n]:t[a]>=0?u+t[a]:Ee(s)>1e-8?(u-o)*t[n]/s:0):e[r]-=t[n]}function If(e){var t=e.itemTooltipOption,r=e.componentModel,i=e.itemName,n=W(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&T(gt(u),function(f){me(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=vt(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:st({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function gl(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Pf(e,t){if(e)if(B(e))for(var r=0;r<e.length;r++)gl(e[r],t);else gl(e,t)}function kf(e){return!e||Ee(e[1])<Ba&&Ee(e[2])<Ba||Ee(e[0])<Ba&&Ee(e[3])<Ba}var Ba=1e-5;function jn(e,t){return e?J.copy(e,t):t.clone()}function Ef(e,t){return t?lf(e||Oe(),t):void 0}function wg(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function Ab(e){var t=-1/0,r=1/0;gl(e,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function xg(e,t,r){Tg(e,t,r,-1/0)}function Tg(e,t,r,i){if(e.ignoreModelZ)return i;var n=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)i=ee(Tg(s[u],t,r,i),i);else e.z=t,e.zlevel=r,i=ee(e.z2||0,i);if(n&&(n.z=t,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(i)&&(a.z2=i+(l&&l.showAbove?1:-1))}return i}xe("circle",fs);xe("ellipse",wf);xe("sector",hs);xe("ring",xf);xe("polygon",Tf);xe("polyline",Cf);xe("rect",Rt);xe("line",Cr);xe("bezierCurve",Mf);xe("arc",vs);const Lb=Object.freeze(Object.defineProperty({__proto__:null,Arc:vs,BezierCurve:Mf,BoundingRect:J,Circle:fs,CompoundPath:ob,Ellipse:wf,Group:zt,Image:Ar,IncrementalDisplayable:fb,Line:Cr,LinearGradient:cg,OrientedBoundingRect:dg,Path:lt,Point:ft,Polygon:Tf,Polyline:Cf,RadialGradient:sb,Rect:Rt,Ring:xf,Sector:hs,Text:be,WH:Ki,XY:pr,applyTransform:Lf,calcZ2Range:Ab,clipPointsByRect:Tb,clipRectByRect:Cb,createIcon:Sg,ensureCopyRect:jn,ensureCopyTransform:Ef,expandOrShrinkRect:Fo,extendPath:gb,extendShape:db,getShapeClass:mb,getTransform:bb,groupTransition:_g,initProps:on,isBoundingRectAxisAligned:kf,isElementRemoved:zn,lineLineIntersect:bg,linePolygonIntersect:Mb,makeImage:gg,makePath:Af,mergePath:yb,registerShape:xe,removeElement:No,removeElementWithFadeOut:vb,resizePath:yg,retrieveZInfo:wg,setTooltipConfig:If,subPixelOptimize:Sb,subPixelOptimizeLine:Jn,subPixelOptimizeRect:_b,transformDirection:wb,traverseElements:Pf,traverseUpdateZ:xg,updateProps:Mr},Symbol.toStringTag,{value:"Module"}));var cs={};function Cg(e,t){for(var r=0;r<Ve.length;r++){var i=Ve[r],n=t[i],a=e.ensureState(i);a.style=a.style||{},a.style.text=n}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function ml(e,t,r){var i=e.labelFetcher,n=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=K(e.defaultText)?e.defaultText(n,e,r):e.defaultText);for(var u={normal:s},l=0;l<Ve.length;l++){var f=Ve[l],h=t[f];u[f]=$(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return u}function Mg(e,t,r,i){r=r||cs;for(var n=e instanceof be,a=!1,o=0;o<Dv.length;o++){var s=t[Dv[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=n?e:e.getTextContent();if(a){n||(u||(u=new be,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=ml(r,t),f=t.normal,h=!!f.getShallow("show"),c=ta(f,i&&i.normal,r,!1,!n);c.text=l.normal,n||e.setTextConfig(Yv(f,r,!1));for(var o=0;o<Ve.length;o++){var v=Ve[o],s=t[v];if(s){var d=u.ensureState(v),g=!!$(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=ta(s,i&&i[v],r,!0,!n),d.style.text=l[v],!n){var m=e.ensureState(v);m.textConfig=Yv(s,r,!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(),r.enableTextSetter&&(ds(u).setLabelText=function(p){var y=ml(r,t,p);Cg(u,y)})}else u&&(u.ignore=!0);e.dirty()}function Rf(e,t){t=t||"label";for(var r={normal:e.getModel(t)},i=0;i<Ve.length;i++){var n=Ve[i];r[n]=e.getModel([n,t])}return r}function ta(e,t,r,i,n){var a={};return Ib(a,e,r,i,n),t&&R(a,t),a}function Yv(e,t,r){t=t||{};var i={},n,a=e.getShallow("rotate"),o=$(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return n=e.getShallow("position")||(r?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=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function Ib(e,t,r,i,n){r=r||cs;var a=t.ecModel,o=a&&a.option.textStyle,s=Pb(t),u;if(s){u={};var l="richInheritPlainLabel",f=$(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);qv(u[h]={},c,o,t,f,r,i,n,!1,!0)}}u&&(e.rich=u);var v=t.get("overflow");v&&(e.overflow=v);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var g=e,m=t.get("minMargin");if(m!=null)m=ct(m)?m/2:0,g.margin=[m,m,m,m],g.__marginType=Gi.minMargin;else{var p=t.get("textMargin");p!=null&&(g.margin=of(p),g.__marginType=Gi.textMargin)}qv(e,t,o,null,null,r,i,n,!0,!1)}function Pb(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||cs).rich;if(r){t=t||{};for(var i=gt(r),n=0;n<i.length;n++){var a=i[n];t[a]=1}}e=e.parentModel}return t}var Xv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],$v=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Zv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function qv(e,t,r,i,n,a,o,s,u,l){r=!o&&r||cs;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=$(t.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(h=h||r.color,c=c||r.textBorderColor),h!=null&&(e.fill=h),c!=null&&(e.stroke=c);var d=$(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var g=$(t.getShallow("textBorderType"),r.textBorderType);g!=null&&(e.lineDash=g);var m=$(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);m!=null&&(e.lineDashOffset=m),!o&&v==null&&!l&&(v=a&&a.defaultOpacity),v!=null&&(e.opacity=v),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var p=0;p<Xv.length;p++){var y=Xv[p],_=n!==!1&&i?Ui(t.getShallow(y),i.getShallow(y),r[y]):$(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var p=0;p<$v.length;p++){var y=$v[p],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!u||!a.disableBox){for(var p=0;p<Zv.length;p++){var y=Zv[p],_=t.getShallow(y);_!=null&&(e[y]=_)}var w=t.getShallow("borderType");w!=null&&(e.borderDash=w),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function kb(e,t){var r=t&&t.getModel("textStyle");return ke([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var ds=_t();function TL(e,t,r,i){if(e){var n=ds(e);n.prevValue=n.value,n.value=r;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}function CL(e,t,r,i,n){var a=ds(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=$(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=Fp(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=ml({labelDataIndex:t,labelFetcher:n,defaultText:o?o(h):h+""},a.statesModels,h);Cg(e,c)}e.percent=0,(a.prevValue==null?on:Mr)(e,{percent:1},i,t,null,l)}var Gi={minMargin:1,textMargin:2},Eb=["textStyle","color"],su=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],uu=new be,Rb=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Eb):null)},e.prototype.getFont=function(){return kb({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<su.length;i++)r[su[i]]=this.getShallow(su[i]);return uu.useStyle(r),uu.update(),uu.getBoundingRect()},e}(),Dg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ob=Qn(Dg),Bb=function(){function e(){}return e.prototype.getLineStyle=function(t){return Ob(this,t)},e}(),Ag=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Nb=Qn(Ag),Fb=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Nb(this,t,r)},e}(),yt=function(){function e(t,r,i){this.parentModel=r,this.ecModel=i,this.option=t}return e.prototype.init=function(t,r,i){},e.prototype.mergeOption=function(t,r){ot(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var i=this.option,n=i==null?i:i[t];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},e.prototype.getModel=function(t,r){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){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&&r&&(i=r._doGet(this.resolveParentPath(t),r.parentModel)),i},e}();pf(yt);b1(yt);We(yt,Bb);We(yt,Fb);We(yt,M1);We(yt,Rb);var zb=Math.round(Math.random()*10);function ps(e){return[e||"",zb++].join("_")}function Hb(e){var t={};e.registerSubTypeDefaulter=function(r,i){var n=Re(r);t[n.main]=i},e.determineSubType=function(r,i){var n=i.type;if(!n){var a=Re(r).main;e.hasSubTypes(r)&&t[a]&&(n=t[a](i))}return n}}function Vb(e,t){e.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=r(o),f=l.graph,h=l.noEntryList,c={};for(T(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),T(d.successor,g?p:m)}T(c,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function p(y){c[y]=!0,m(y)}};function r(a){var o={},s=[];return T(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),T(h,function(c){nt(l.predecessor,c)<0&&l.predecessor.push(c);var v=i(o,c);nt(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 T(a,function(u){nt(o,u)>=0&&s.push(u)}),s}}function ML(e,t){return ot(ot({},e,!0),t,!0)}const Gb={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:". "}}}},Wb={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 zo="ZH",Of="EN",$i=Of,vo={},Bf={},Lg=q.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||$i).toUpperCase();return e.indexOf(zo)>-1?zo:$i}():$i;function Ig(e,t){e=e.toUpperCase(),Bf[e]=new yt(t),vo[e]=t}function Ub(e){if(W(e)){var t=vo[e.toUpperCase()]||{};return e===zo||e===Of?rt(t):ot(rt(t),rt(vo[$i]),!1)}else return ot(rt(e),rt(vo[$i]),!1)}function Yb(e){return Bf[e]}function Xb(){return Bf[$i]}Ig(Of,Gb);Ig(zo,Wb);var yl=null;function DL(e){yl||(yl=e)}function Xt(){return yl}var Nf=1e3,Ff=Nf*60,Hn=Ff*60,le=Hn*24,Kv=le*365,$b={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},co={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Zb="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Na="{yyyy}-{MM}-{dd}",Qv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Na,hour:Na+" "+co.hour,minute:Na+" "+co.minute,second:Na+" "+co.second,millisecond:Zb},Qt=["year","month","day","hour","minute","second","millisecond"],qb=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Kb(e){return!W(e)&&!K(e)?Qb(e):e}function Qb(e){e=e||{};var t={},r=!0;return T(Qt,function(i){r&&(r=e[i]==null)}),T(Qt,function(i,n){var a=e[i];t[i]={};for(var o=null,s=n;s>=0;s--){var u=Qt[s],l=U(a)&&!B(a)?a[u]:a,f=void 0;B(l)?(f=l.slice(),o=f[0]||""):W(l)?(o=l,f=[o]):(o==null?o=co[i]:$b[u].test(o)||(o=t[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[i][u]=f}}),t}function or(e,t){return e+="","0000".substr(0,t-e.length)+e}function Vn(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Jb(e){return e===Vn(e)}function jb(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gs(e,t,r,i){var n=an(e),a=n[Pg(r)](),o=n[zf(r)]()+1,s=Math.floor((o-1)/3)+1,u=n[Hf(r)](),l=n["get"+(r?"UTC":"")+"Day"](),f=n[Vf(r)](),h=(f-1)%12+1,c=n[Gf(r)](),v=n[Wf(r)](),d=n[Uf(r)](),g=f>=12?"pm":"am",m=g.toUpperCase(),p=i instanceof yt?i:Yb(i||Lg)||Xb(),y=p.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),w=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,or(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,or(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,or(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,w[l]).replace(/{ee}/g,b[l]).replace(/{e}/g,l+"").replace(/{HH}/g,or(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,or(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,or(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,or(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,or(d,3)).replace(/{S}/g,d+"")}function tw(e,t,r,i,n){var a=null;if(W(r))a=r;else if(K(r)){var o={time:e.time,level:e.time.level},s=Xt();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var u=e.time;if(u){var l=r[u.lowerTimeUnit][u.upperTimeUnit];a=l[Math.min(u.level,l.length-1)]||""}else{var f=Wi(e.value,n);a=r[f][f][0]}}return gs(new Date(e.value),a,n,i)}function Wi(e,t){var r=an(e),i=r[zf(t)]()+1,n=r[Hf(t)](),a=r[Vf(t)](),o=r[Gf(t)](),s=r[Wf(t)](),u=r[Uf(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 _l(e,t,r){switch(t){case"year":e[kg(r)](0);case"month":e[Eg(r)](1);case"day":e[Rg(r)](0);case"hour":e[Og(r)](0);case"minute":e[Bg(r)](0);case"second":e[Ng(r)](0)}return e}function Pg(e){return e?"getUTCFullYear":"getFullYear"}function zf(e){return e?"getUTCMonth":"getMonth"}function Hf(e){return e?"getUTCDate":"getDate"}function Vf(e){return e?"getUTCHours":"getHours"}function Gf(e){return e?"getUTCMinutes":"getMinutes"}function Wf(e){return e?"getUTCSeconds":"getSeconds"}function Uf(e){return e?"getUTCMilliseconds":"getMilliseconds"}function ew(e){return e?"setUTCFullYear":"setFullYear"}function kg(e){return e?"setUTCMonth":"setMonth"}function Eg(e){return e?"setUTCDate":"setDate"}function Rg(e){return e?"setUTCHours":"setHours"}function Og(e){return e?"setUTCMinutes":"setMinutes"}function Bg(e){return e?"setUTCSeconds":"setSeconds"}function Ng(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Fg(e){if(!j_(e))return W(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function zg(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Yf=of;function Sl(e,t,r){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&ke(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?an(e):e;if(isNaN(+u)){if(s)return"-"}else return gs(u,i,r)}if(t==="ordinal")return Bu(e)?n(e):ct(e)&&a(e)?e+"":"-";var l=Tr(e);return a(l)?Fg(l):Bu(e)?n(e):typeof e=="boolean"?e+"":"-"}var Jv=["a","b","c","d","e","f","g"],lu=function(e,t){return"{"+e+(t??"")+"}"};function Hg(e,t,r){B(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Jv[a];e=e.replace(lu(o),lu(o,0))}for(var s=0;s<i;s++)for(var u=0;u<n.length;u++){var l=t[s][n[u]];e=e.replace(lu(Jv[u],s),r?Gt(l):l)}return e}function AL(e,t,r){return T(t,function(i,n){e=e.replace("{"+n+"}",i)}),e}function rw(e,t){var r=W(e)?{color:e,extraCssText:t}:e||{},i=r.color,n=r.type;t=r.extraCssText;var a=r.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:'+Gt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Gt(i)+";"+(t||"")+'"></span>';var o=r.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 pi(e,t){return t=t||"transparent",W(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function LL(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var po={},fu={},Xf=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=i(po),this._normalMasterList=i(fu);function i(n,a){var o=[];return T(n,function(s,u){var l=s.create(t,r);o=o.concat(l||[])}),o}},e.prototype.update=function(t,r){T(this._normalMasterList,function(i){i.update&&i.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){po[t]=r;return}fu[t]=r},e.get=function(t){return fu[t]||po[t]},e}();function iw(e){return!!po[e]}var bl={coord:1,coord2:2};function IL(e){Vg.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var Vg=j();function nw(e){var t=e.getShallow("coord",!0),r=bl.coord;if(t==null){var i=Vg.get(e.type);i&&i.getCoord2&&(r=bl.coord2,t=i.getCoord2(e))}return{coord:t,from:r}}var Qe={none:0,dataCoordSys:1,boxCoordSys:2};function aw(e,t){var r=e.getShallow("coordinateSystem"),i=e.getShallow("coordinateSystemUsage",!0),n=Qe.none;if(r){var a=e.mainType==="series";i==null&&(i=a?"data":"box"),i==="data"?(n=Qe.dataCoordSys,a||(n=Qe.none)):i==="box"&&(n=Qe.boxCoordSys,!a&&!iw(r)&&(n=Qe.none))}return{coordSysType:r,kind:n}}function ow(e){var t=e.targetModel,r=e.coordSysType,i=e.coordSysProvider,n=e.isDefaultDataCoordSys;e.allowNotFound;var a=aw(t),o=a.kind,s=a.coordSysType;if(n&&o!==Qe.dataCoordSys&&(o=Qe.dataCoordSys,s=r),o===Qe.none||s!==r)return!1;var u=i(r,t);return u?(o===Qe.dataCoordSys?t.coordinateSystem=u:t.boxCoordinateSystem=u,!0):!1}var PL=function(e,t){var r=t.getReferringComponents(e,te).models[0];return r&&r.coordinateSystem},go=T,sw=["left","right","top","bottom","width","height"],ni=[["width","left","right"],["height","top","bottom"]];function $f(e,t,r,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(e==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>i||u.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);d=o+m,d>n||u.newline?(a+=s+r,o=0,d=m,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),e==="horizontal"?a=v+r:o=d+r)})}var kL=$f;fe($f,"vertical");fe($f,"horizontal");function uw(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function lw(e,t){var r=Gg(e,t,{enableLayoutOnlyByCenter:!0}),i=e.getBoxLayoutParams(),n,a;if(r.type===Ln.point)a=r.refPoint,n=gi(i,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=B(o)?o:[o,o];n=gi(i,r.refContainer),a=r.boxCoordFrom===bl.coord2?r.refPoint:[bt(s[0],n.width)+n.x,bt(s[1],n.height)+n.y]}return{viewRect:n,center:a}}function EL(e,t){var r=lw(e,t),i=r.viewRect,n=r.center,a=e.get("radius");B(a)||(a=[0,a]);var o=bt(i.width,t.getWidth()),s=bt(i.height,t.getHeight()),u=Math.min(o,s),l=bt(a[0],u/2),f=bt(a[1],u/2);return{cx:n[0],cy:n[1],r0:l,r:f,viewRect:i}}function gi(e,t,r){r=Yf(r||0);var i=t.width,n=t.height,a=bt(e.left,i),o=bt(e.top,n),s=bt(e.right,i),u=bt(e.bottom,n),l=bt(e.width,i),f=bt(e.height,n),h=r[2]+r[0],c=r[1]+r[3],v=e.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),e.left||e.right){case"center":a=i/2-l/2-r[3];break;case"right":a=i-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=n/2-f/2-r[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 J((t.x||0)+a+r[3],(t.y||0)+o+r[0],l,f);return d.margin=r,d}function RL(e,t,r){var i=e.getShallow("preserveAspect",!0);if(!i)return t;var n=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(n))<1e-9)return t;var a=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},u=i==="cover";return n>r&&!u||n<r&&u?(s.width=t.height*r,a==="left"?s.left=0:a==="right"?s.right=0:s.left="center"):(s.height=t.width/r,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),gi(s,t)}var Ln={rect:1,point:2};function Gg(e,t,r){var i,n,a,o=e.boxCoordinateSystem,s;if(o){var u=nw(e),l=u.coord,f=u.from;if(o.dataToLayout){a=Ln.rect,s=f;var h=o.dataToLayout(l);i=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ln.point,s=f,n=o.dataToPoint(l))}return a==null&&(a=Ln.rect),a===Ln.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[i.x+i.width/2,i.y+i.height/2]),{type:a,refContainer:i,refPoint:n,boxCoordFrom:s}}function OL(e,t,r,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],u=n&&n.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(u==="raw")l=e.type==="group"?new J(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=gi(st({width:l.width,height:l.height},t),r,i),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===e&&e.markRedraw(),!0}function BL(e,t){return e[ni[t][0]]!=null||e[ni[t][1]]!=null&&e[ni[t][2]]!=null}function ea(e){var t=e.layoutMode||e.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function mi(e,t,r){var i=r&&r.ignoreSize;!B(i)&&(i=[i,i]);var n=o(ni[0],0),a=o(ni[1],1);u(ni[0],e,n),u(ni[1],e,a);function o(l,f){var h={},c=0,v={},d=0,g=2;if(go(l,function(y){v[y]=e[y]}),go(l,function(y){me(t,y)&&(h[y]=v[y]=t[y]),s(h,y)&&c++,s(v,y)&&d++}),i[f])return s(t,l[1])?v[l[2]]=null:s(t,l[2])&&(v[l[1]]=null),v;if(d===g||!c)return v;if(c>=g)return h;for(var m=0;m<l.length;m++){var p=l[m];if(!me(h,p)&&me(e,p)){h[p]=e[p];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){go(l,function(c){f[c]=h[c]})}}function ms(e){return fw({},e)}function fw(e,t){return t&&e&&go(sw,function(r){me(t,r)&&(e[r]=t[r])}),e}var hw=_t(),ht=function(e){z(t,e);function t(r,i,n){var a=e.call(this,r,i,n)||this;return a.uid=ps("ec_cpt_model"),a}return t.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=ea(this),a=n?ms(r):{},o=i.getTheme();ot(r,o.get(this.mainType)),ot(r,this.getDefaultOption()),n&&mi(r,a,n)},t.prototype.mergeOption=function(r,i){ot(this.option,r,!0);var n=ea(this);n&&mi(this.option,r,n)},t.prototype.optionUpdated=function(r,i){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!y1(r))return r.defaultOption;var i=hw(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},u=n.length-1;u>=0;u--)s=ot(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(r,i){var n=r+"Index",a=r+"Id";return ca(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){return uw(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(yt);Hp(ht,yt);ns(ht);Hb(ht);Vb(ht,vw);function vw(e){var t=[];return T(ht.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=X(t,function(r){return Re(r).main}),e!=="dataset"&&nt(t,"dataset")<=0&&t.unshift("dataset"),t}var tt={color:{},darkColor:{},size:{}},mt=tt.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};R(mt,{primary:mt.neutral80,secondary:mt.neutral70,tertiary:mt.neutral60,quaternary:mt.neutral50,disabled:mt.neutral20,border:mt.neutral30,borderTint:mt.neutral20,borderShade:mt.neutral40,background:mt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:mt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:mt.neutral70,axisLineTint:mt.neutral40,axisTick:mt.neutral70,axisTickMinor:mt.neutral60,axisLabel:mt.neutral70,axisSplitLine:mt.neutral15,axisMinorSplitLine:mt.neutral05});for(var Zr in mt)if(mt.hasOwnProperty(Zr)){var jv=mt[Zr];Zr==="theme"?tt.darkColor.theme=mt.theme.slice():Zr==="highlight"?tt.darkColor.highlight="rgba(255,231,130,0.4)":Zr.indexOf("accent")===0?tt.darkColor[Zr]=Xu(jv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):tt.darkColor[Zr]=Xu(jv,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}tt.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Wg="";typeof navigator<"u"&&(Wg=navigator.platform||"");var Ai="rgba(0, 0, 0, 0.2)",Ug=tt.color.theme[0],cw=Xu(Ug,null,null,.9);const dw={darkMode:"auto",colorBy:"series",color:tt.color.theme,gradientColor:[cw,Ug],aria:{decal:{decals:[{color:Ai,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ai,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ai,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ai,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ai,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ai,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Wg.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 Yg=j(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),re="original",Ot="arrayRows",ve="objectRows",Te="keyedColumns",Sr="typedArray",Xg="unknown",Fe="column",yi="row",Dt={Must:1,Might:2,Not:3},$g=_t();function pw(e){$g(e).datasetMap=j()}function gw(e,t,r){var i={},n=Zf(t);if(!n||!e)return i;var a=[],o=[],s=t.ecModel,u=$g(s).datasetMap,l=n.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),T(e,function(g,m){var p=U(g)?g:e[m]={name:g};p.type==="ordinal"&&f==null&&(f=m,h=d(p)),i[p.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});T(e,function(g,m){var p=g.name,y=d(g);if(f==null){var _=c.valueWayDim;v(i[p],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===m)v(i[p],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(i[p],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(g,m,p){for(var y=0;y<p;y++)g.push(m+y)}function d(g){var m=g.dimsDef;return m?m.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function NL(e,t,r){var i={},n=Zf(e);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===ve||a===Te)&&T(o,function(f,h){(U(f)?f.name:f)==="name"&&(s=h)});var u=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var g=qg(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var m=g===Dt.Not;if(m&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!m&&c[f.n]===Dt.Not)&&(f.n=v),p(f)&&c[f.n]!==Dt.Not)return f;m||(g===Dt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function p(y){return y.v!=null&&y.n!=null}return p(f)?f:p(h)?h:null}();if(u){i.value=[u.v];var l=s??u.n;i.itemName=[l],i.seriesName=[l]}return i}function Zf(e){var t=e.get("data",!0);if(!t)return ca(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},te).models[0]}function mw(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ca(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},te).models}function Zg(e,t){return qg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function qg(e,t,r,i,n,a){var o,s=5;if(qt(e))return Dt.Not;var u,l;if(i){var f=i[a];U(f)?(u=f.name,l=f.type):W(f)&&(u=f)}if(l!=null)return l==="ordinal"?Dt.Must:Dt.Not;if(t===Ot){var h=e;if(r===yi){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(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=S(d[a]))!=null)return o}}else if(t===ve){var g=e;if(!u)return Dt.Not;for(var v=0;v<g.length&&v<s;v++){var m=g[v];if(m&&(o=S(m[u]))!=null)return o}}else if(t===Te){var p=e;if(!u)return Dt.Not;var c=p[u];if(!c||qt(c))return Dt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===re)for(var y=e,v=0;v<y.length&&v<s;v++){var m=y[v],_=va(m);if(!B(_))return Dt.Not;if((o=S(_[a]))!=null)return o}function S(w){var b=W(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return b?Dt.Might:Dt.Not;if(b&&w!=="-")return Dt.Must}return Dt.Not}var wl=j();function FL(e,t){He(wl.get(e)==null&&t),wl.set(e,t)}function yw(e,t,r){var i=wl.get(t);if(!i)return r;var n=i(e);return n?r.concat(n):r}var tc=_t(),_w=_t(),qf=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,i){var n=It(this.get("color",!0)),a=this.get("colorLayer",!0);return Kg(this,tc,n,a,t,r,i)},e.prototype.clearColorPalette=function(){bw(this,tc)},e}();function zL(e,t,r,i){var n=It(e.get(["aria","decal","decals"]));return Kg(e,_w,n,null,t,r,i)}function Sw(e,t){for(var r=e.length,i=0;i<r;i++)if(e[i].length>t)return e[i];return e[r-1]}function Kg(e,t,r,i,n,a,o){a=a||e;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?r:Sw(i,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function bw(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Fa,dn,ec,rc="\0_ec_inner",ww=1,Kf=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new yt(a),this._locale=new yt(o),this._optionManager=s},t.prototype.setOption=function(r,i,n){var a=ac(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,i){return this._resetOption(r,ac(i))},t.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?ec(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&T(u,function(l){n=!0,this._mergeOption(l,i)},this)}return n},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=j(),l=i&&i.replaceMergeMainTypeMap;pw(this),T(r,function(h,c){h!=null&&(ht.hasClass(c)?c&&(s.push(c),u.set(c,!0)):n[c]=n[c]==null?rt(h):ot(n[c],h,!0))}),l&&l.each(function(h,c){ht.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),f,this);function f(h){var c=yw(this,h,It(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=n1(v,c,d);h1(g,h,ht),n[h]=null,a.set(h,null),o.set(h,0);var m=[],p=[],y=0,_;T(g,function(S,w){var b=S.existing,x=S.newOption;if(!x)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var D=h==="series",C=ht.getClass(h,S.keyInfo.subType,!D);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(x,this),b.optionUpdated(x,!1);else{var A=R({componentIndex:w},S.keyInfo);b=new C(x,this,this,A),R(b,A),S.brandNew&&(b.__requireNewView=!0),b.init(x,this,this),b.optionUpdated(null,!0)}}b?(m.push(b.option),p.push(b),y++):(m.push(void 0),p.push(void 0))},this),n[h]=m,a.set(h,p),o.set(h,y),h==="series"&&Fa(this)}this._seriesIndices||Fa(this)},t.prototype.getOption=function(){var r=rt(this.option);return T(r,function(i,n){if(ht.hasClass(n)){for(var a=It(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Kn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[rc],r},t.prototype.setTheme=function(r){this._theme=new yt(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);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(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var u;return n!=null?(u=[],T(It(n),function(l){s[l]&&u.push(s[l])})):a!=null?u=ic("id",a,s):o!=null?u=ic("name",o,s):u=At(s,function(l){return!!l}),nc(u,r)},t.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i),o=a?this.queryComponents(a):At(this._componentsMap.get(n),function(l){return!!l});return u(nc(o,r));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 r.filter?At(l,r.filter):l}},t.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(K(r)){var o=i,s=r;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=W(r)?a.get(r):U(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var i=Se(r,null);return At(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return At(this._componentsMap.get("series"),function(i){return!!i&&i.subType===r})},t.prototype.getSeries=function(){return At(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,i){dn(this),T(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];r.call(i,a,n)},this)},t.prototype.eachRawSeries=function(r,i){T(this._componentsMap.get("series"),function(n){n&&r.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(r,i,n){dn(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,i,n){return T(this.getSeriesByType(r),i,n)},t.prototype.isSeriesFiltered=function(r){return dn(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,i){dn(this);var n=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=j(n)},t.prototype.restoreData=function(r){Fa(this);var i=this._componentsMap,n=[];i.each(function(a,o){ht.hasClass(o)&&n.push(o)}),ht.topologicalTravel(n,ht.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!xw(o,r))&&o.restoreData()})})},t.internalField=function(){Fa=function(r){var i=r._seriesIndices=[];T(r._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=j(i)},dn=function(r){},ec=function(r,i){r.option={},r.option[rc]=ww,r._componentsMap=j({series:[]}),r._componentsCount=j();var n=i.aria;U(n)&&n.enabled==null&&(n.enabled=!0),Tw(i,r._theme.option),ot(i,dw,!1),r._mergeOption(i,null)}}(),t}(yt);function xw(e,t){if(t){var r=t.seriesIndex,i=t.seriesId,n=t.seriesName;return r!=null&&e.componentIndex!==r||i!=null&&e.id!==i||n!=null&&e.name!==n}}function Tw(e,t){var r=e.color&&!e.colorLayer;T(t,function(i,n){n==="colorLayer"&&r||n==="color"&&e.color||ht.hasClass(n)||(typeof i=="object"?e[n]=e[n]?ot(e[n],i,!1):rt(i):e[n]==null&&(e[n]=i))})}function ic(e,t,r){if(B(t)){var i=j();return T(t,function(a){if(a!=null){var o=Se(a,null);o!=null&&i.set(a,!0)}}),At(r,function(a){return a&&i.get(a[e])})}else{var n=Se(t,null);return At(r,function(a){return a&&n!=null&&a[e]===n})}}function nc(e,t){return t.hasOwnProperty("subType")?At(e,function(r){return r&&r.subType===t.subType}):e}function ac(e){var t=j();return e&&T(It(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}We(Kf,qf);var Cw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Qg=function(){function e(t){T(Cw,function(r){this[r]=ut(t[r],t)},this)}return e}(),Mw=/^(min|max)?(.+)$/,Dw=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,i){t&&(T(It(t.series),function(o){o&&o.data&&qt(o.data)&&bo(o.data)}),T(It(t.dataset),function(o){o&&o.source&&qt(o.source)&&bo(o.source)})),t=rt(t);var n=this._optionBackup,a=Aw(t,r,!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},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],rt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(r=rt(i[n.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=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++)Lw(n[u].query,r,i)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!Pw(o,this._currentMediaIndices)&&(s=X(o,function(f){return rt(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},e}();function Aw(e,t,r){var i=[],n,a,o=e.baseOption,s=e.timeline,u=e.options,l=e.media,f=!!e.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&B(l)&&T(l,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),T(u,function(v){return c(v)}),T(i,function(v){return c(v.option)});function c(v){T(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:n,mediaList:i}}function Lw(e,t,r){var i={width:t,height:r,aspectratio:t/r},n=!0;return T(e,function(a,o){var s=o.match(Mw);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();Iw(i[l],a,u)||(n=!1)}}),n}function Iw(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Pw(e,t){return e.join(",")===t.join(",")}var ce=T,ra=U,oc=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hu(e){var t=e&&e.itemStyle;if(t)for(var r=0,i=oc.length;r<i;r++){var n=oc[r],a=t.normal,o=t.emphasis;a&&a[n]&&(e[n]=e[n]||{},e[n].normal?ot(e[n].normal,a[n]):e[n].normal=a[n],a[n]=null),o&&o[n]&&(e[n]=e[n]||{},e[n].emphasis?ot(e[n].emphasis,o[n]):e[n].emphasis=o[n],o[n]=null)}}function Et(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,n=e[t].emphasis;i&&(r?(e[t].normal=e[t].emphasis=null,st(e[t],i)):e[t]=i),n&&(e.emphasis=e.emphasis||{},e.emphasis[t]=n,n.focus&&(e.emphasis.focus=n.focus),n.blurScope&&(e.emphasis.blurScope=n.blurScope))}}function In(e){Et(e,"itemStyle"),Et(e,"lineStyle"),Et(e,"areaStyle"),Et(e,"label"),Et(e,"labelLine"),Et(e,"upperLabel"),Et(e,"edgeLabel")}function St(e,t){var r=ra(e)&&e[t],i=ra(r)&&r.textStyle;if(i)for(var n=0,a=av.length;n<a;n++){var o=av[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function oe(e){e&&(In(e),St(e,"label"),e.emphasis&&St(e.emphasis,"label"))}function kw(e){if(ra(e)){hu(e),In(e),St(e,"label"),St(e,"upperLabel"),St(e,"edgeLabel"),e.emphasis&&(St(e.emphasis,"label"),St(e.emphasis,"upperLabel"),St(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(hu(t),oe(t));var r=e.markLine;r&&(hu(r),oe(r));var i=e.markArea;i&&oe(i);var n=e.data;if(e.type==="graph"){n=n||e.nodes;var a=e.links||e.edges;if(a&&!qt(a))for(var o=0;o<a.length;o++)oe(a[o]);T(e.categories,function(l){In(l)})}if(n&&!qt(n))for(var o=0;o<n.length;o++)oe(n[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)oe(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)B(u[o])?(oe(u[o][0]),oe(u[o][1])):oe(u[o]);e.type==="gauge"?(St(e,"axisLabel"),St(e,"title"),St(e,"detail")):e.type==="treemap"?(Et(e.breadcrumb,"itemStyle"),T(e.levels,function(l){In(l)})):e.type==="tree"&&In(e.leaves)}}function $e(e){return B(e)?e:e?[e]:[]}function sc(e){return(B(e)?e[0]:e)||{}}function Ew(e,t){ce($e(e.series),function(i){ra(i)&&kw(i)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ce(r,function(i){ce($e(e[i]),function(n){n&&(St(n,"axisLabel"),St(n.axisPointer,"label"))})}),ce($e(e.parallel),function(i){var n=i&&i.parallelAxisDefault;St(n,"axisLabel"),St(n&&n.axisPointer,"label")}),ce($e(e.calendar),function(i){Et(i,"itemStyle"),St(i,"dayLabel"),St(i,"monthLabel"),St(i,"yearLabel")}),ce($e(e.radar),function(i){St(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)}),ce($e(e.geo),function(i){ra(i)&&(oe(i),ce($e(i.regions),function(n){oe(n)}))}),ce($e(e.timeline),function(i){oe(i),Et(i,"label"),Et(i,"itemStyle"),Et(i,"controlStyle",!0);var n=i.data;B(n)&&T(n,function(a){U(a)&&(Et(a,"label"),Et(a,"itemStyle"))})}),ce($e(e.toolbox),function(i){Et(i,"iconStyle"),ce(i.feature,function(n){Et(n,"iconStyle")})}),St(sc(e.axisPointer),"label"),St(sc(e.tooltip).axisPointer,"label")}function Rw(e,t){for(var r=t.split(","),i=e,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function Ow(e,t,r,i){for(var n=t.split(","),a=e,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]]=r)}function uc(e){e&&T(Bw,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Bw=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Nw=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],vu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function pn(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<vu.length;r++){var i=vu[r][1],n=vu[r][0];t[i]!=null&&(t[n]=t[i])}}function lc(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function fc(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Fw(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function Jg(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&Jg(e[r].children,t)}function jg(e,t){Ew(e,t),e.series=It(e.series),T(e.series,function(r){if(U(r)){var i=r.type;if(i==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i==="pie"||i==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),lc(r.label);var n=r.data;if(n&&!qt(n))for(var a=0;a<n.length;a++)lc(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i==="gauge"){var o=Rw(r,"pointer.color");o!=null&&Ow(r,"itemStyle.color",o)}else if(i==="bar"){pn(r),pn(r.backgroundStyle),pn(r.emphasis);var n=r.data;if(n&&!qt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(pn(n[a]),pn(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),fc(r),Jg(r.data,fc)}else i==="graph"||i==="sankey"?Fw(r):i==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&st(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),uc(r)}}),e.dataRange&&(e.visualMap=e.dataRange),T(Nw,function(r){var i=e[r];i&&(B(i)||(i=[i]),T(i,function(n){uc(n)}))})}function zw(e){var t=j();e.eachSeries(function(r){var i=r.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=r.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:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(r){if(r.length!==0){var i=r[0].seriesModel,n=i.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&r.reverse(),T(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Hw(r)}})}function Hw(e){T(e,function(t,r){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 g=NaN,m=r-1;m>=0;m--){var p=e[m];if(s||(d=p.data.rawIndexOf(p.stackedByDimension,v)),d>=0){var y=p.data.getByRawIndex(p.stackResultDimension,d);if(u==="all"||u==="positive"&&y>0||u==="negative"&&y<0||u==="samesign"&&c>=0&&y>0||u==="samesign"&&c<=0&&y<0){c=K_(c,y),g=y;break}}}return i[0]=c,i[1]=g,i})})}var ys=function(){function e(t){this.data=t.data||(t.sourceFormat===Te?{}:[]),this.sourceFormat=t.sourceFormat||Xg,this.seriesLayoutBy=t.seriesLayoutBy||Fe,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&Zg(this,i)===Dt.Must&&(n.type="ordinal")}}return e}();function Qf(e){return e instanceof ys}function xl(e,t,r){r=r||tm(e);var i=t.seriesLayoutBy,n=Gw(e,r,i,t.sourceHeader,t.dimensions),a=new ys({data:e,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:rt(t)});return a}function Jf(e){return new ys({data:e,sourceFormat:qt(e)?Sr:re})}function Vw(e){return new ys({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function tm(e){var t=Xg;if(qt(e))t=Sr;else if(B(e)){e.length===0&&(t=Ot);for(var r=0,i=e.length;r<i;r++){var n=e[r];if(n!=null){if(B(n)||qt(n)){t=Ot;break}else if(U(n)){t=ve;break}}}}else if(U(e)){for(var a in e)if(me(e,a)&&Zt(e[a])){t=Te;break}}return t}function Gw(e,t,r,i,n){var a,o;if(!e)return{dimensionsDefine:hc(n),startIndex:o,dimensionsDetectedCount:a};if(t===Ot){var s=e;i==="auto"||i==null?vc(function(l){l!=null&&l!=="-"&&(W(l)?o==null&&(o=1):o=0)},r,s,10):o=ct(i)?i:i?1:0,!n&&o===1&&(n=[],vc(function(l,f){n[f]=l!=null?l+"":""},r,s,1/0)),a=n?n.length:r===yi?s.length:s[0]?s[0].length:null}else if(t===ve)n||(n=Ww(e));else if(t===Te)n||(n=[],T(e,function(l,f){n.push(f)}));else if(t===re){var u=va(e[0]);a=B(u)&&u.length||1}return{startIndex:o,dimensionsDefine:hc(n),dimensionsDetectedCount:a}}function Ww(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return gt(r)}function hc(e){if(e){var t=j();return X(e,function(r,i){r=U(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.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 vc(e,t,r,i){if(t===yi)for(var n=0;n<r.length&&n<i;n++)e(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)e(a[n],n)}function em(e){var t=e.sourceFormat;return t===ve||t===Te}var qr,Kr,Qr,Jr,cc,dc,rm=function(){function e(t,r){var i=Qf(t)?t:Jf(t);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy,a===Sr&&(this._offset=0,this._dimSize=r,this._data=n),dc(this,n,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;dc=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=cc[jf(l,f)];if(R(o,v),l===Sr)o.getItem=r,o.count=n,o.fillStorage=i;else{var d=im(l,f);o.getItem=ut(d,null,s,h,c);var g=nm(l,f);o.count=ut(g,null,s,h,c)}};var r=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],g=v[1]==null?-1/0:v[1],m=s-o,p=u[c],y=0;y<m;y++){var _=f[y*h+c];p[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};cc=(t={},t[Ot+"_"+Fe]={pure:!0,appendData:a},t[Ot+"_"+yi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ve]={pure:!0,appendData:a},t[Te]={pure:!0,appendData:function(o){var s=this._data;T(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[re]={appendData:a},t[Sr]={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])}}(),e}(),za=function(e){B(e)||kp("series.data or dataset.source must be an array.")};qr={},qr[Ot+"_"+Fe]=za,qr[Ot+"_"+yi]=za,qr[ve]=za,qr[Te]=function(e,t){for(var r=0;r<t.length;r++){var i=t[r].name;i==null&&kp("dimension name must not be null/undefined.")}},qr[re]=za;var pc=function(e,t,r,i){return e[i]},Uw=(Kr={},Kr[Ot+"_"+Fe]=function(e,t,r,i){return e[i+t]},Kr[Ot+"_"+yi]=function(e,t,r,i,n){i+=t;for(var a=n||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[i]:null}return a},Kr[ve]=pc,Kr[Te]=function(e,t,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;a[o]=u?u[i]:null}return a},Kr[re]=pc,Kr);function im(e,t){var r=Uw[jf(e,t)];return r}var gc=function(e,t,r){return e.length},Yw=(Qr={},Qr[Ot+"_"+Fe]=function(e,t,r){return Math.max(0,e.length-t)},Qr[Ot+"_"+yi]=function(e,t,r){var i=e[0];return i?Math.max(0,i.length-t):0},Qr[ve]=gc,Qr[Te]=function(e,t,r){var i=r[0].name,n=i!=null?e[i]:null;return n?n.length:0},Qr[re]=gc,Qr);function nm(e,t){var r=Yw[jf(e,t)];return r}var cu=function(e,t,r){return e[t]},Xw=(Jr={},Jr[Ot]=cu,Jr[ve]=function(e,t,r){return e[r]},Jr[Te]=cu,Jr[re]=function(e,t,r){var i=va(e);return i instanceof Array?i[t]:i},Jr[Sr]=cu,Jr);function am(e){var t=Xw[e];return t}function jf(e,t){return e===Ot?e+"_"+t:e}function Qi(e,t,r){if(e){var i=e.getRawDataItem(t);if(i!=null){var n=e.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=n.getDimensionProperty(o);return am(a)(i,o,s)}else{var u=i;return a===re&&(u=va(i)),u}}}}var $w=/\{@(.+?)\}/g,Zw=function(){function e(){}return e.prototype.getDataParams=function(t,r){var i=this.getData(r),n=this.getRawValue(t,r),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:r,value:n,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,i,n,a,o){r=r||"normal";var s=this.getData(i),u=this.getDataParams(t,i);if(o&&(u.value=o.interpolatedValue),n!=null&&B(u.value)&&(u.value=u.value[n]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(K(a))return u.status=r,u.dimensionIndex=n,a(u);if(W(a)){var f=Hg(a,u);return f.replace($w,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=Qi(s,t,d);if(o&&B(o.interpolatedValue)){var m=s.getDimensionIndex(d);m>=0&&(g=o.interpolatedValue[m])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Qi(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,i){},e}();function mc(e){var t,r;return U(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Gn(e){return new qw(e)}var qw=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,i=t&&t.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.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(y){return!(y>=1)&&(y=1),y}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(r?this._dueEnd=r._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 g=this._progress;if(B(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],v,d,u,l);else this._doProgress(g,v,d,u,l)}this._dueIndex=d;var p=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=p}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,i,n,a){yc.reset(r,i,n,a),this._callingProgress=t,this._callingProgress({start:r,end:i,count:i-r,next:yc.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),B(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),yc=function(){var e,t,r,i,n,a={reset:function(u,l,f,h){t=u,e=l,r=f,i=h,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%n*r+Math.ceil(t/n),l=t>=e?null:u<i?u:t;return t++,l}}();function mo(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ct(e)&&e!=null&&e!=="-"&&(e=+an(e)),e==null||e===""?NaN:Number(e))}var Kw=j({number:function(e){return parseFloat(e)},time:function(e){return+an(e)},trim:function(e){return W(e)?ke(e):e}});function HL(e){return Kw.get(e)}var om={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Qw=function(){function e(t,r){if(!ct(r)){var i="";Ft(i)}this._opFn=om[t],this._rvalFloat=Tr(r)}return e.prototype.evaluate=function(t){return ct(t)?this._opFn(t,this._rvalFloat):this._opFn(Tr(t),this._rvalFloat)},e}(),Jw=function(){function e(t,r){var i=t==="desc";this._resultLT=i?1:-1,r==null&&(r=i?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var i=ct(t)?t:Tr(t),n=ct(r)?r:Tr(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=W(t),u=W(r);s&&(i=u?t:0),u&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},e}(),jw=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Tr(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(r=Tr(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function VL(e,t){return e==="eq"||e==="ne"?new jw(e==="eq",t):me(om,e)?new Qw(e,t):null}var tx=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return mo(t,r)},e}();function ex(e,t){var r=new tx,i=e.data,n=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Fe&&Ft(o);var s=[],u={},l=e.dimensionsDefine;if(l)T(l,function(g,m){var p=g.name,y={index:m,name:p,displayName:g.displayName};if(s.push(y),p!=null){var _="";me(u,p)&&Ft(_),u[p]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=im(n,Fe);t.__isBuiltIn&&(r.getRawDataItem=function(g){return h(i,a,s,g)},r.getRawData=ut(rx,null,e)),r.cloneRawData=ut(ix,null,e);var c=nm(n,Fe);r.count=ut(c,null,i,a,s);var v=am(n);r.retrieveValue=function(g,m){var p=h(i,a,s,g);return d(p,m)};var d=r.retrieveValueFromItem=function(g,m){if(g!=null){var p=s[m];if(p)return v(g,m,p.name)}};return r.getDimensionInfo=ut(nx,null,s,u),r.cloneAllDimensionInfo=ut(ax,null,s),r}function rx(e){var t=e.sourceFormat;if(!th(t)){var r="";Ft(r)}return e.data}function ix(e){var t=e.sourceFormat,r=e.data;if(!th(t)){var i="";Ft(i)}if(t===Ot){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(t===ve){for(var n=[],a=0,o=r.length;a<o;a++)n.push(R({},r[a]));return n}}function nx(e,t,r){if(r!=null){if(ct(r)||!isNaN(r)&&!me(t,r))return e[r];if(me(t,r))return t[r]}}function ax(e){return rt(e)}var sm=j();function ox(e){e=rt(e);var t=e.type,r="";t||Ft(r);var i=t.split(":");i.length!==2&&Ft(r);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),e.__isBuiltIn=n,sm.set(t,e)}function sx(e,t,r){var i=It(e),n=i.length,a="";n||Ft(a);for(var o=0,s=n;o<s;o++){var u=i[o];t=ux(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function ux(e,t,r,i){var n="";t.length||Ft(n),U(e)||Ft(n);var a=e.type,o=sm.get(a);o||Ft(n);var s=X(t,function(l){return ex(l,o)}),u=It(o.transform({upstream:s[0],upstreamList:s,config:rt(e.config)}));return X(u,function(l,f){var h="";U(l)||Ft(h),l.data||Ft(h);var c=tm(l.data);th(c)||Ft(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var g=d.startIndex;g&&(l.data=d.data.slice(0,g).concat(l.data)),v={seriesLayoutBy:Fe,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Fe,sourceHeader:0,dimensions:l.dimensions};return xl(l.data,v,null)})}function th(e){return e===Ot||e===ve}var _s="undefined",lx=typeof Uint32Array===_s?Array:Uint32Array,fx=typeof Uint16Array===_s?Array:Uint16Array,um=typeof Int32Array===_s?Array:Int32Array,_c=typeof Float64Array===_s?Array:Float64Array,lm={float:_c,int:um,ordinal:Array,number:Array,time:_c},du;function Li(e){return e>65535?lx:fx}function Ii(){return[1/0,-1/0]}function hx(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sc(e,t,r,i,n){var a=lm[r||"float"];if(n){var o=e[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(i)}var Tl=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=j()}return e.prototype.initData=function(t,r,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=du[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],em(n),this._dimensions=X(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(t,a),this._chunks[a]=new lm[r||"float"](this._rawCount),this._rawExtent[a]=Ii(),a},e.prototype.collectOrdinalMeta=function(t,r){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=Ii());for(var u=a[t],l=o;l<s;l++){var f=i[l]=r.parseAndCollect(i[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],i=r.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,i=this.count();r.appendData(t);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},e.prototype.appendValues=function(t,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=n[l];Sc(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],g=du.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=g;var m=o[d];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=X(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Ii()),Sc(a,f,h.type,r,i)}if(n.fillStorage)n.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var g=a[d],m=this._dimValueGetter(c,l[d],v,d);g[v]=m;var p=u[d];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var i=[],n=[];if(r==null){r=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],r));return i},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[t];return i?i[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var i=r.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},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,i=r[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(r[o]<t)n=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=r[a]}else t=new i(r.buffer,0,n)}else{var i=Li(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Li(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=r(c);else if(u===1){var g=h[f][d];v=r(g,c)}else{for(var m=0;m<u;m++)s[m]=h[t[m]][d];s[m]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<n&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var r=this.clone(),i=r._count;if(!i)return this;var n=gt(t),a=n.length;if(!a)return this;var o=r.count(),s=Li(r._rawCount),u=new s(o),l=0,f=n[0],h=t[f][0],c=t[f][1],v=r._chunks,d=!1;if(!r._indices){var g=0;if(a===1){for(var m=v[n[0]],p=0;p<i;p++){var y=m[p];(y>=h&&y<=c||isNaN(y))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var m=v[n[0]],_=v[n[1]],S=t[n[1]][0],w=t[n[1]][1],p=0;p<i;p++){var y=m[p],b=_[p];(y>=h&&y<=c||isNaN(y))&&(b>=S&&b<=w||isNaN(b))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var p=0;p<o;p++){var x=r.getRawIndex(p),y=v[n[0]][x];(y>=h&&y<=c||isNaN(y))&&(u[l++]=x)}else for(var p=0;p<o;p++){for(var D=!0,x=r.getRawIndex(p),C=0;C<a;C++){var A=n[C],y=v[A][x];(y<t[A][0]||y>t[A][1])&&(D=!1)}D&&(u[l++]=r.getRawIndex(p))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var i=this.clone(t);return this._updateDims(i,t,r),i},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,i){for(var n=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=Ii();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=n[r[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 g=r[f],m=d[f],p=l[g],y=n[g];y&&(y[c]=m),m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(Li(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 g=Math.min(d+u,o-1),m=Math.min(d+u*2,o),p=(m+g)/2,y=0,_=g;_<m;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(y+=w)}y/=m-g;var b=d,x=Math.min(d+u,o),D=d-1,C=a[l];f=-1,c=b;for(var A=-1,M=0,_=b;_<x;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){M++,A<0&&(A=S);continue}h=Math.abs((D-p)*(w-C)-(D-_)*(y-C)),h>f&&(f=h,c=S)}M>0&&M<x-b&&(v[s++]=Math.min(A,c),c=Math.max(A,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,r){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/r),o=n[t],s=this.count(),u=new(Li(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)],g=a;f+a>s&&(g=s-f);for(var m=0;m<g;m++){var p=this.getRawIndex(f+m),y=o[p];y<c&&(c=y,h=f+m),y>d&&(d=y,v=f+m)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return i._count=l,i._indices=u,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,r,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/r),l=o[t],f=this.count(),h=a._rawExtent[t]=Ii(),c=new(Li(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 g=0;g<u;g++){var m=this.getRawIndex(d+g);s[g]=l[m]}var p=i(s),y=this.getRawIndex(Math.min(d+n(s,p)||0,f-1));l[y]=p,p<h[0]&&(h[0]=p),p>h[1]&&(h[1]=p),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){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:r(a);break;case 1:r(n[t[0]][s],a);break;case 2:r(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,r.apply(null,l)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],i=Ii();if(!r)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=r[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},e.prototype.clone=function(t,r){var i=new e,n=this._chunks,a=t&&xr(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?hx(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var i=this._indices.length;r=new t(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,i,n,a){return mo(r[a],this._dimensions[a])}du={arrayRows:t,objectRows:function(r,i,n,a){return mo(r[i],this._dimensions[a])},keyedColumns:t,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return mo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}}(),e}(),vx=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(Ha(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=r[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=qt(s)?Sr:re,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=$(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=$(h.sourceHeader,c.sourceHeader),g=$(h.dimensions,c.dimensions),m=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;n=m?[xl(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var p=t;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else{var _=p.get("source",!0);n=[xl(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,i=r.get("transform",!0),n=r.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&bc(a)}var o,s=[],u=[];return T(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&bc(h),s.push(f),u.push(l._getVersionSign())}),i?o=sx(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[Vw(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var i=t[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,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];Ha(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,i):(s=new Tl,s.initData(new rm(r,t.length),t)),o[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ha(t)){var r=Zf(t);return r?[r.getSourceManager()]:[]}else return X(mw(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,i,n;if(Ha(t))r=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},e}();function GL(e){var t=e.option.transform;t&&bo(e.option.transform)}function Ha(e){return e.mainType==="series"}function bc(e){throw new Error(e)}var cx="line-height:1";function fm(e){var t=e.lineHeight;return t==null?cx:"line-height:"+Gt(t+"")+"px"}function hm(e,t){var r=e.color||tt.color.tertiary,i=e.fontSize||12,n=e.fontWeight||"400",a=e.color||tt.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Gt(i+"")+"px;color:"+Gt(r)+";font-weight:"+Gt(n+""),valueStyle:"font-size:"+Gt(o+"")+"px;color:"+Gt(a)+";font-weight:"+Gt(s+"")}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var dx=[0,10,20,30],px=["",`
`,`

`,`


`];function ia(e,t){return t.type=e,t}function Cl(e){return e.type==="section"}function vm(e){return Cl(e)?gx:mx}function cm(e){if(Cl(e)){var t=0,r=e.blocks.length,i=r>1||r>0&&!e.noHeader;return T(e.blocks,function(n){var a=cm(n);a>=t&&(t=a+ +(i&&(!a||Cl(n)&&!n.noHeader)))}),t}return 0}function gx(e,t,r,i){var n=t.noHeader,a=yx(cm(t)),o=[],s=t.blocks||[];He(!s||B(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(me(l,u)){var f=new Jw(l[u],null);s.sort(function(g,m){return f.evaluate(g.sortParam,m.sortParam)})}else u==="seriesDesc"&&s.reverse()}T(s,function(g,m){var p=t.valueFormatter,y=vm(g)(p?R(R({},e),{valueFormatter:p}):e,g,m>0?a.html:0,i);y!=null&&o.push(y)});var h=e.renderMode==="richText"?o.join(a.richText):Ml(i,o.join(""),n?r:a.html);if(n)return h;var c=Sl(t.header,"ordinal",e.useUTC),v=hm(i,e.renderMode).nameStyle,d=fm(i);return e.renderMode==="richText"?dm(e,c,v)+a.richText+h:Ml(i,'<div style="'+v+";"+d+';">'+Gt(c)+"</div>"+h,r)}function mx(e,t,r,i){var n=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(S){return S=B(S)?S:[S],X(S,function(w,b){return Sl(w,B(v)?v[b]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||tt.color.secondary,n),c=a?"":Sl(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,m=!s&&a,p=hm(i,n),y=p.nameStyle,_=p.valueStyle;return n==="richText"?(s?"":h)+(a?"":dm(e,c,y))+(o?"":bx(e,d,g,m,_)):Ml(i,(s?"":h)+(a?"":_x(c,!s,y))+(o?"":Sx(d,g,m,_)),r)}}function wc(e,t,r,i,n,a){if(e){var o=vm(e),s={useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function yx(e){return{html:dx[e],richText:px[e]}}function Ml(e,t,r){var i='<div style="clear:both"></div>',n="margin: "+r+"px 0 0",a=fm(e);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function _x(e,t,r){var i=t?"margin-left:2px":"";return'<span style="'+r+";"+i+'">'+Gt(e)+"</span>"}function Sx(e,t,r,i){var n=r?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return e=B(e)?e:[e],'<span style="'+a+";"+i+'">'+X(e,function(o){return Gt(o)}).join("&nbsp;&nbsp;")+"</span>"}function dm(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function bx(e,t,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join("  "):t,a)}function xx(e,t){var r=e.getData().getItemVisual(t,"style"),i=r[e.visualDrawType];return pi(i)}function pm(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var pu=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ip()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,i){var n=i==="richText"?this._generateStyleName():null,a=rw({color:r,type:t,renderMode:i,markerId:n});return W(a)?a:(this.richTextStyles[n]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var i={};B(r)?T(r,function(a){return R(i,a)}):R(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},e}();function Tx(e){var t=e.series,r=e.dataIndex,i=e.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=B(s),l=xx(t,r),f,h,c,v;if(o>1||u&&!o){var d=Cx(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);v=f=Qi(n,r,a[0]),h=g.type}else v=f=u?s[0]:s;var m=Bp(t),p=m&&t.name||"",y=n.getName(r),_=i?p:y;return ia("section",{header:p,noHeader:i||!m,sortParam:v,blocks:[ia("nameValue",{markerType:"item",markerColor:l,name:_,noName:!ke(_),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function Cx(e,t,r,i,n){var a=t.getData(),o=xr(e,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?T(i,function(h){f(Qi(a,r,h),h)}):T(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(ia("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 sr=_t();function Va(e,t){return e.getName(t)||e.getId(t)}var Mx="__universalTransitionEnabled",Dr=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Gn({count:Ax,reset:Lx}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);var a=sr(this).sourceManager=new vx(this);a.prepareSource();var o=this.getInitialData(r,n);Tc(o,this),this.dataTask.context.data=o,sr(this).dataBeforeProcessed=o,xc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,i){var n=ea(this),a=n?ms(r):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),ot(r,i.getTheme().get(this.subType)),ot(r,this.getDefaultOption()),nv(r,"label",["show"]),this.fillDataTextStyle(r.data),n&&mi(r,a,n)},t.prototype.mergeOption=function(r,i){r=ot(this.option,r,!0),this.fillDataTextStyle(r.data);var n=ea(this);n&&mi(this.option,r,n);var a=sr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);Tc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,sr(this).dataBeforeProcessed=o,xc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!qt(r))for(var i=["show"],n=0;n<r.length;n++)r[n]&&r[n].label&&nv(r[n],"label",i)},t.prototype.getInitialData=function(r,i){},t.prototype.appendData=function(r){var i=this.getRawData();i.appendData(r.data)},t.prototype.getData=function(r){var i=Dl(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return sr(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var i=Dl(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}sr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return j(r)},t.prototype.getSourceManager=function(){return sr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return sr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(n);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(i,function(d,g){var m=u.dataToCoord(d),p=l-m,y=Math.abs(p);y<=a&&((y<h||y===h&&p>=0&&c<0)&&(h=y,c=p,v=0),p===c&&(f[v++]=g))}),f.length=v,f},t.prototype.formatTooltip=function(r,i,n){return Tx({series:this,dataIndex:r,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(q.node&&!(r&&r.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(r,i,n){var a=this.ecModel,o=qf.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},t.prototype.unselect=function(r,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<r.length;s++){var u=r[s],l=Va(o,u);n[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[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 r=this._selectedDataIndicesMap,i=gt(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Va(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Mx])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,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"){U(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=i[f],c=Va(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[u-1],c=Va(r,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},t.registerClass=function(r){return ht.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(ht);We(Dr,Zw);We(Dr,qf);Hp(Dr,ht);function xc(e){var t=e.name;Bp(e)||(e.name=Dx(e)||t)}function Dx(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),i=[];return T(r,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function Ax(e){return e.model.getRawData().count()}function Lx(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Ix}function Ix(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Tc(e,t){T(x0(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,fe(Px,t))})}function Px(e,t){var r=Dl(e);return r&&r.setOutputEnd((t||this).count()),t}function Dl(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(e.uid))}return i}}var rr=function(){function e(){this.group=new zt,this.uid=ps("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){},e.prototype.updateLayout=function(t,r,i,n){},e.prototype.updateVisual=function(t,r,i,n){},e.prototype.toggleBlurSeries=function(t,r,i){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();pf(rr);ns(rr);function eh(){var e=_t();return function(t){var r=e(t),i=t.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var gm=_t(),kx=eh(),ze=function(){function e(){this.group=new zt,this.uid=ps("viewChart"),this.renderTask=Gn({plan:Ex,reset:Rx}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,i,n){},e.prototype.highlight=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&Mc(a,n,"emphasis")},e.prototype.downplay=function(t,r,i,n){var a=t.getData(n&&n.dataType);a&&Mc(a,n,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateLayout=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.updateVisual=function(t,r,i,n){this.render(t,r,i,n)},e.prototype.eachRendered=function(t){Pf(this.group,t)},e.markUpdateMethod=function(t,r){gm(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function Cc(e,t,r){e&&vl(e)&&(t==="emphasis"?Oo:Bo)(e,r)}function Mc(e,t,r){var i=ci(e,t),n=t&&t.highlightKey!=null?OS(t.highlightKey):null;i!=null?T(It(i),function(a){Cc(e.getItemGraphicEl(a),r,n)}):e.eachItemGraphicEl(function(a){Cc(a,r,n)})}pf(ze);ns(ze);function Ex(e){return kx(e.model)}function Rx(e){var t=e.model,r=e.ecModel,i=e.api,n=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=n&&gm(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,i,n),Ox[u]}var Ox={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ho="\0__throttleOriginMethod",Dc="\0__throttleRate",Ac="\0__throttleType";function mm(e,t,r){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.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 g=f||t,m=f||r;f=null,s=i-(m?n:a)-g,clearTimeout(o),m?o=setTimeout(h,g):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 ym(e,t,r,i){var n=e[t];if(n){var a=n[Ho]||n,o=n[Ac],s=n[Dc];if(s!==r||o!==i){if(r==null||!i)return e[t]=a;n=e[t]=mm(a,r,i==="debounce"),n[Ho]=a,n[Ac]=i,n[Dc]=r}return n}}function Al(e,t){var r=e[t];r&&r[Ho]&&(r.clear&&r.clear(),e[t]=r[Ho])}var Lc=_t(),Ic={itemStyle:Qn(Ag,!0),lineStyle:Qn(Dg,!0)},Bx={lineStyle:"stroke",itemStyle:"fill"};function _m(e,t){var r=e.visualStyleMapper||Ic[t];return r||(console.warn("Unknown style type '"+t+"'."),Ic.itemStyle)}function Sm(e,t){var r=e.visualDrawType||Bx[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Nx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=e.getModel(i),a=_m(e,i),o=a(n),s=n.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Sm(e,i),l=o[u],f=K(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=e.getDataParams(d),m=R({},o);m[u]=f(g),v.setItemVisual(d,"style",m)}}}},gn=new yt,Fx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),i=e.visualStyleAccessPath||"itemStyle",n=_m(e,i),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){gn.option=u[i];var l=n(gn),f=o.ensureUniqueItemVisual(s,"style");R(f,l),gn.option.decal&&(o.setItemVisual(s,"decal",gn.option.decal),gn.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},zx={performRawSeries:!0,overallReset:function(e){var t=j();e.eachSeries(function(r){var i=r.getColorBy();if(!r.isColorBySeries()){var n=r.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Lc(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var i=r.getRawData(),n={},a=r.getData(),o=Lc(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=Sm(r,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]=r.getColorFromPalette(v,o,d)}})}})}},Ga=Math.PI;function Hx(e,t){t=t||{},st(t,{text:"loading",textColor:tt.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:tt.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new zt,i=new Rt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(i);var n=new be({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 Rt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new vs({shape:{startAngle:-Ga/2,endAngle:-Ga/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:Ga*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ga*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(e.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=e.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:e.getWidth(),height:e.getHeight()})},r.resize(),r}var bm=function(){function e(t,r,i,n){this._stageTaskMap=j(),this.ecInstance=t,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!r&&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}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&r.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}},e.prototype.restorePipelines=function(t){var r=this,i=r._pipelineMap=j();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}),r._pipe(n,n.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";He(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},e.prototype.prepareView=function(t,r,i,n){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,i){this._performStageTasks(this._visualHandlers,t,r,i)},e.prototype._performStageTasks=function(t,r,i,n){n=n||{};var a=!1,o=this;T(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(m){s(n,m)&&(m.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var g=o.getPerformArgs(c,n.block);d.each(function(m){m.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(m,p){s(n,m)&&m.dirty();var y=o.getPerformArgs(m,n.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=j(),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)||Gn({plan:Yx,reset:Xx,count:Zx}));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)}},e.prototype._createOverallStageTask=function(t,r,i,n){var a=this,o=r.overallTask=r.overallTask||Gn({reset:Vx});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=j(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";He(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,T(i.getSeries(),d));function d(g){var m=g.uid,p=u.set(m,s&&s.get(m)||(c=!0,Gn({reset:Gx,onDirty:Ux})));p.context={model:g,overallProgress:h},p.agent=o,p.__block=h,a._pipe(g,p)}c&&o.dirty()},e.prototype._pipe=function(t,r){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},e.wrapStageHandler=function(t,r){return K(t)&&(t={overallReset:t,seriesType:qx(t)}),t.uid=ps("stageHandler"),r&&(t.visualType=r),t},e}();function Vx(e){e.overallReset(e.ecModel,e.api,e.payload)}function Gx(e){return e.overallProgress&&Wx}function Wx(){this.agent.dirty(),this.getDownstream().dirty()}function Ux(){this.agent&&this.agent.dirty()}function Yx(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Xx(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=It(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?X(t,function(r,i){return wm(i)}):$x}var $x=wm(0);function wm(e){return function(t,r){var i=r.data,n=r.resetDefines[e];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 Zx(e){return e.data.count()}function qx(e){Vo=null;try{e(na,xm)}catch{}return Vo}var na={},xm={},Vo;Tm(na,Kf);Tm(xm,Qg);na.eachSeriesByType=na.eachRawSeriesByType=function(e){Vo=e};na.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Vo=e.subType)};function Tm(e,t){for(var r in t.prototype)e[r]=$t}var O=tt.darkColor,Kx=O.background,mn=function(){return{axisLine:{lineStyle:{color:O.axisLine}},splitLine:{lineStyle:{color:O.axisSplitLine}},splitArea:{areaStyle:{color:[O.backgroundTint,O.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:O.axisMinorSplitLine}},axisLabel:{color:O.axisLabel},axisName:{}}},Pc={label:{color:O.secondary},itemStyle:{borderColor:O.borderTint},dividerLineStyle:{color:O.border}},Cm={darkMode:!0,color:O.theme,backgroundColor:Kx,axisPointer:{lineStyle:{color:O.border},crossStyle:{color:O.borderShade},label:{color:O.tertiary}},legend:{textStyle:{color:O.secondary},pageTextStyle:{color:O.tertiary}},textStyle:{color:O.secondary},title:{textStyle:{color:O.primary},subtextStyle:{color:O.quaternary}},toolbox:{iconStyle:{borderColor:O.accent50}},tooltip:{backgroundColor:O.neutral20,defaultBorderColor:O.border,textStyle:{color:O.tertiary}},dataZoom:{borderColor:O.accent10,textStyle:{color:O.tertiary},brushStyle:{color:O.backgroundTint},handleStyle:{color:O.neutral00,borderColor:O.accent20},moveHandleStyle:{color:O.accent40},emphasis:{handleStyle:{borderColor:O.accent50}},dataBackground:{lineStyle:{color:O.accent30},areaStyle:{color:O.accent20}},selectedDataBackground:{lineStyle:{color:O.accent50},areaStyle:{color:O.accent30}}},visualMap:{textStyle:{color:O.secondary},handleStyle:{borderColor:O.neutral30}},timeline:{lineStyle:{color:O.accent10},label:{color:O.tertiary},controlStyle:{color:O.accent30,borderColor:O.accent30}},calendar:{itemStyle:{color:O.neutral00,borderColor:O.neutral20},dayLabel:{color:O.tertiary},monthLabel:{color:O.secondary},yearLabel:{color:O.secondary}},matrix:{x:Pc,y:Pc,backgroundColor:{borderColor:O.axisLine},body:{itemStyle:{borderColor:O.borderTint}}},timeAxis:mn(),logAxis:mn(),valueAxis:mn(),categoryAxis:mn(),line:{symbol:"circle"},graph:{color:O.theme},gauge:{title:{color:O.secondary},axisLine:{lineStyle:{color:[[1,O.neutral05]]}},axisLabel:{color:O.axisLabel},detail:{color:O.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:O.background}},radar:function(){var e=mn();return e.axisName={color:O.axisLabel},e.axisLine.lineStyle.color=O.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:O.neutral20,textStyle:{color:O.secondary}},emphasis:{itemStyle:{color:O.neutral30}}}},sunburst:{itemStyle:{borderColor:O.background}},map:{itemStyle:{borderColor:O.border,areaColor:O.neutral10},label:{color:O.tertiary},emphasis:{label:{color:O.primary},itemStyle:{areaColor:O.highlight}},select:{label:{color:O.primary},itemStyle:{areaColor:O.highlight}}},geo:{itemStyle:{borderColor:O.border,areaColor:O.neutral10},emphasis:{label:{color:O.primary},itemStyle:{areaColor:O.highlight}},select:{label:{color:O.primary},itemStyle:{color:O.highlight}}}};Cm.categoryAxis.splitLine.show=!1;var Qx=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},i={},n={};if(W(t)){var a=Re(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(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"&&(r.mainType=d,r[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},e.prototype.filter=function(t,r){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=r.cptQuery,l=r.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,r.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Ll=["symbol","symbolSize","symbolRotate","symbolOffset"],kc=Ll.concat(["symbolKeepAspect"]),Jx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<Ll.length;o++){var s=Ll[o],u=e.get(s);K(u)?(a=!0,n[s]=u):i[s]=u}if(i.symbol=i.symbol||e.defaultSymbol,r.setVisual(R({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),t.isSeriesFiltered(e))return;var l=gt(n);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),g=0;g<l.length;g++){var m=l[g];h.setItemVisual(c,m,n[m](v,d))}}return{dataEach:a?f:null}}},jx={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<kc.length;s++){var u=kc[s],l=o.getShallow(u,!0);l!=null&&n.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?i:null}}};function tT(e,t,r){switch(r){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function eT(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function WL(e,t,r,i){switch(r){case"color":var n=e.ensureUniqueItemVisual(t,"style");n[e.getVisual("drawType")]=i,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,i);break}}function UL(e,t){function r(i,n){var a=[];return i.eachComponent({mainType:"series",subType:e,query:n},function(o){a.push(o.seriesIndex)}),a}T([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=R({},n),o.dispatchAction(R(n,{type:i[1],seriesIndex:r(a,n)}))})})}function Pi(e,t,r,i,n){var a=e+t;r.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=ci(h,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:B(c)?h.getName(c[0]):h.getName(c),selected:W(u)?u:R({},u)})}})}function rT(e,t,r){e.on("selectchanged",function(i){var n=r.getModel();i.isFromClick?(Pi("map","selectchanged",t,n,i),Pi("pie","selectchanged",t,n,i)):i.fromAction==="select"?(Pi("map","selected",t,n,i),Pi("pie","selected",t,n,i)):i.fromAction==="unselect"&&(Pi("map","unselected",t,n,i),Pi("pie","unselected",t,n,i))})}function Pn(e,t,r){for(var i;e&&!(t(e)&&(i=e,r));)e=e.__hostTarget||e.parent;return i}var iT=Math.round(Math.random()*9),nT=typeof Object.defineProperty=="function",aT=function(){function e(){this._id="__ec_inner_"+iT++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var i=this._guard(t);return nT?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),oT=lt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i+a),e.lineTo(r-n,i+a),e.closePath()}}),sT=lt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,i=t.cy,n=t.width/2,a=t.height/2;e.moveTo(r,i-a),e.lineTo(r+n,i),e.lineTo(r,i+a),e.lineTo(r-n,i),e.closePath()}}),uT=lt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=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;e.moveTo(r-f,u+s),e.arc(r,u,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(r+f-h*v,u+s+c*v,r,i-d,r,i),e.bezierCurveTo(r,i-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),lT=lt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;e.moveTo(n,a),e.lineTo(n+o,a+r),e.lineTo(n,a+r/4*3),e.lineTo(n-o,a+r),e.lineTo(n,a),e.closePath()}}),fT={line:Cr,rect:Rt,roundRect:Rt,square:Rt,circle:fs,diamond:sT,pin:uT,arrow:lT,triangle:oT},hT={line:function(e,t,r,i,n){n.x1=e,n.y1=t+i/2,n.x2=e+r,n.y2=t+i/2},rect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i},roundRect:function(e,t,r,i,n){n.x=e,n.y=t,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(e,t,r,i,n){var a=Math.min(r,i);n.x=e,n.y=t,n.width=a,n.height=a},circle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.r=Math.min(r,i)/2},diamond:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i},pin:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},arrow:function(e,t,r,i,n){n.x=e+r/2,n.y=t+i/2,n.width=r,n.height=i},triangle:function(e,t,r,i,n){n.cx=e+r/2,n.cy=t+i/2,n.width=r,n.height=i}},Il={};T(fT,function(e,t){Il[t]=new e});var vT=lt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var i=Tp(e,t,r),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=r.y+r.height*.4),i},buildPath:function(e,t,r){var i=t.symbolType;if(i!=="none"){var n=Il[i];n||(i="rect",n=Il[i]),hT[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(e,n.shape,r)}}});function cT(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||tt.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function aa(e,t,r,i,n,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var u;return e.indexOf("image://")===0?u=gg(e.slice(8),new J(t,r,i,n),o?"center":"cover"):e.indexOf("path://")===0?u=Af(e.slice(7),{},new J(t,r,i,n),o?"center":"cover"):u=new vT({shape:{symbolType:e,x:t,y:r,width:i,height:n}}),u.__isEmptyBrush=s,u.setColor=cT,a&&u.setColor(a),u}function dT(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Mm(e,t){if(e!=null)return B(e)||(e=[e,e]),[bt(e[0],t[0])||0,bt($(e[1],e[0]),t[1])||0]}function ai(e){return isFinite(e)}function pT(e,t,r){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*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=ai(i)?i:0,n=ai(n)?n:1,a=ai(a)?a:0,o=ai(o)?o:0;var s=e.createLinearGradient(i,a,n,o);return s}function gT(e,t,r){var i=r.width,n=r.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+r.x,s=s*n+r.y,u=u*a),o=ai(o)?o:.5,s=ai(s)?s:.5,u=u>=0&&ai(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function Pl(e,t,r){for(var i=t.type==="radial"?gT(e,t,r):pT(e,t,r),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function mT(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Wa(e){return parseInt(e,10)}function Ua(e,t,r){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(e);return(e[n]||Wa(s[i])||Wa(e.style[i]))-(Wa(s[a])||0)-(Wa(s[o])||0)|0}function yT(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ct(e)?[e]:B(e)?e:null}function Dm(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&yT(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=X(r,function(a){return a/n}),i/=n)}return[r,i]}var _T=new di(!0);function Go(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Ec(e){return typeof e=="string"&&e!=="none"}function Wo(e){var t=e.fill;return t!=null&&t!=="none"}function Rc(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function Oc(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function kl(e,t,r){var i=Vp(t.image,t.__image,r);if(as(i)){var n=e.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)*io),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function ST(e,t,r,i){var n,a=Go(r),o=Wo(r),s=r.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||_T,h=t.__dirty;if(!i){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,m=o&&!!c.image,p=a&&!!v.image,y=void 0,_=void 0,S=void 0,w=void 0,b=void 0;(d||g)&&(b=t.getBoundingRect()),d&&(y=h?Pl(e,c,b):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(_=h?Pl(e,v,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),m&&(S=h||!t.__canvasFillPattern?kl(e,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),p&&(w=h||!t.__canvasStrokePattern?kl(e,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?e.fillStyle=y:m&&(S?e.fillStyle=S:o=!1),g?e.strokeStyle=_:p&&(w?e.strokeStyle=w:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var D,C;e.setLineDash&&r.lineDash&&(n=Dm(t),D=n[0],C=n[1]);var A=!0;(l||h&Bi)&&(f.setDPR(e.dpr),u?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,u?s:1),D&&(e.setLineDash(D),e.lineDashOffset=C),i||(r.strokeFirst?(a&&Oc(e,r),o&&Rc(e,r)):(o&&Rc(e,r),a&&Oc(e,r))),D&&e.setLineDash([])}function bT(e,t,r){var i=t.__image=Vp(r.image,t.__image,t,t.onload);if(!(!i||!as(i))){var n=r.x||0,a=r.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),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(i,l,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(i,l,f,h,c,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function wT(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||wr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=Dm(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Go(r)&&e.strokeText(n,r.x,r.y),Wo(r)&&e.fillText(n,r.x,r.y)):(Wo(r)&&e.fillText(n,r.x,r.y),Go(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var Bc=["shadowBlur","shadowOffsetX","shadowOffsetY"],Nc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Am(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){Yt(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?li.opacity:o}(i||t.blend!==r.blend)&&(a||(Yt(e,n),a=!0),e.globalCompositeOperation=t.blend||li.blend);for(var s=0;s<Bc.length;s++){var u=Bc[s];(i||t[u]!==r[u])&&(a||(Yt(e,n),a=!0),e[u]=e.dpr*(t[u]||0))}return(i||t.shadowColor!==r.shadowColor)&&(a||(Yt(e,n),a=!0),e.shadowColor=t.shadowColor||li.shadowColor),a}function Fc(e,t,r,i,n){var a=oa(t,n.inHover),o=i?null:r&&oa(r,n.inHover)||{};if(a===o)return!1;var s=Am(e,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Yt(e,n),s=!0),Ec(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Yt(e,n),s=!0),Ec(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Yt(e,n),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==l&&(s||(Yt(e,n),s=!0),e.lineWidth=l)}for(var f=0;f<Nc.length;f++){var h=Nc[f],c=h[0];(i||a[c]!==o[c])&&(s||(Yt(e,n),s=!0),e[c]=a[c]||h[1])}return s}function xT(e,t,r,i,n){return Am(e,oa(t,n.inHover),r&&oa(r,n.inHover),i,n)}function Lm(e,t){var r=t.transform,i=e.dpr||1;r?e.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):e.setTransform(i,0,0,i,0,0)}function TT(e,t,r){for(var i=!1,n=0;n<e.length;n++){var a=e[n];i=i||a.isZeroArea(),Lm(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=i}function CT(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var zc=1,Hc=2,Vc=3,Gc=4;function MT(e){var t=Wo(e),r=Go(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Yt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function oa(e,t){return t&&e.__hoverStyle||e.style}function Im(e,t){oi(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function oi(e,t,r,i){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~jt,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,u=!1;if((!o||mT(a,o))&&(o&&o.length&&(Yt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Yt(e,r),e.save(),TT(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof lt&&t.autoBatch&&MT(t.style);s||CT(n,l.transform)?(Yt(e,r),Lm(e,t)):f||Yt(e,r);var h=oa(t,r.inHover);t instanceof lt?(r.lastDrawType!==zc&&(u=!0,r.lastDrawType=zc),Fc(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),ST(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof ko?(r.lastDrawType!==Vc&&(u=!0,r.lastDrawType=Vc),Fc(e,t,l,u,r),wT(e,t,h)):t instanceof Ar?(r.lastDrawType!==Hc&&(u=!0,r.lastDrawType=Hc),xT(e,t,l,u,r),bT(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==Gc&&(u=!0,r.lastDrawType=Gc),DT(e,t,r)),f&&i&&Yt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function DT(e,t,r){var i=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var u=i[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),oi(e,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(),oi(e,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var gu=new aT,Wc=new Zi(100),Uc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Yc(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";e.dirty&&gu.delete(e);var a=gu.get(e);if(a)return a;var o=st(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,gu.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<Uc.length;++c){var v=o[Uc[c]];if(v!=null&&!B(v)&&!W(v)&&!ct(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var g=Wc.get(d);g&&(n?l.svgElement=g:l.image=g)}var m=km(o.dashArrayX),p=AT(o.dashArrayY),y=Pm(o.symbol),_=LT(m),S=Em(p),w=!n&&er.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),D;w&&(w.width=x.width*r,w.height=x.height*r,D=w.getContext("2d")),A(),h&&Wc.put(d,w||b),l.image=w,l.svgElement=b,l.svgWidth=x.width,l.svgHeight=x.height;function C(){for(var M=1,I=0,L=_.length;I<L;++I)M=rv(M,_[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=rv(P,y[I].length);M*=P;var k=S*_.length*y.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function A(){D&&(D.clearRect(0,0,w.width,w.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,w.width,w.height)));for(var M=0,I=0;I<p.length;++I)M+=p[I];if(M<=0)return;for(var L=-S,P=0,k=0,E=0;L<x.height;){if(P%2===0){for(var Y=k/2%y.length,N=0,F=0,H=0;N<x.width*2;){for(var V=0,I=0;I<m[E].length;++I)V+=m[E][I];if(V<=0)break;if(F%2===0){var G=(1-o.symbolSize)*.5,Z=N+m[E][F]*G,it=L+p[P]*G,pt=m[E][F]*o.symbolSize,Ht=p[P]*o.symbolSize,Ce=H/2%y[Y].length;Ye(Z,it,pt,Ht,y[Y][Ce])}N+=m[E][F],++H,++F,F===m[E].length&&(F=0)}++E,E===m.length&&(E=0)}L+=p[P],++k,++P,P===p.length&&(P=0)}function Ye(Kt,Mt,Q,et,Ir){var Bt=n?1:r,_h=aa(Ir,Kt*Bt,Mt*Bt,Q*Bt,et*Bt,o.color,o.symbolKeepAspect);if(n){var Sh=i.painter.renderOneToVNode(_h);Sh&&b.children.push(Sh)}else Im(D,_h)}}}}function Pm(e){if(!e||e.length===0)return[["rect"]];if(W(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!W(e[r])){t=!1;break}if(t)return Pm([e]);for(var i=[],r=0;r<e.length;++r)W(e[r])?i.push([e[r]]):i.push(e[r]);return i}function km(e){if(!e||e.length===0)return[[0,0]];if(ct(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,i=0;i<e.length;++i)if(!ct(e[i])){r=!1;break}if(r)return km([e]);for(var n=[],i=0;i<e.length;++i)if(ct(e[i])){var t=Math.ceil(e[i]);n.push([t,t])}else{var t=X(e[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function AT(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ct(e)){var t=Math.ceil(e);return[t,t]}var r=X(e,function(i){return Math.ceil(i)});return e.length%2?r.concat(r):r}function LT(e){return X(e,function(t){return Em(t)})}function Em(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function IT(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var u=i.ensureUniqueItemVisual(o,"style");u.decal=Yc(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Yc(n,t)}}})}var ge=new Ue,Rm={};function PT(e,t){Rm[e]=t}function kT(e){return Rm[e]}var Om={};function ET(e,t){Om[e]=t}function YL(e){return Om[e]}var RT=1,OT=800,BT=900,NT=1e3,FT=2e3,zT=5e3,Bm=1e3,HT=1100,rh=2e3,Nm=3e3,VT=4e3,Ss=4500,GT=4600,WT=5e3,UT=6e3,Fm=7e3,YT={PROCESSOR:{FILTER:NT,SERIES_FILTER:OT,STATISTIC:zT},VISUAL:{LAYOUT:Bm,PROGRESSIVE_LAYOUT:HT,GLOBAL:rh,CHART:Nm,POST_CHART_LAYOUT:GT,COMPONENT:VT,BRUSH:WT,CHART_ITEM:Ss,ARIA:UT,DECAL:Fm}},wt="__flagInMainProcess",Ya="__mainProcessVersion",Tt="__pendingUpdate",mu="__needsUpdateStatus",Xc=/^[a-zA-Z0-9_]+$/,yu="__connectUpdateStatus",$c=0,XT=1,$T=2;function zm(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return Vm(this,e,t)}}function Hm(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Vm(this,e,t)}}function Vm(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ue.prototype[t].apply(e,r)}var Gm=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ue),Wm=Gm.prototype;Wm.on=Hm("on");Wm.off=Hm("off");var jr,_u,Xa,Ze,$a,Su,bu,ki,Ei,Zc,qc,wu,Kc,Za,Qc,Um,ie,Jc,Ri,Ym=function(e){z(t,e);function t(r,i,n){var a=e.call(this,new Qx)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a._dom=r;var o="canvas",s="auto",u=!1;a[Ya]=1,n.ssr&&Y_(function(c){var v=vt(c),d=v.dataIndex;if(d!=null){var g=j();return g.set("series_index",v.seriesIndex),g.set("data_index",d),v.ssrType&&g.set("ssr_type",v.ssrType),g}});var l=a._zr=jh(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:$(n.useDirtyRect,u),useCoarsePointer:$(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=mm(ut(l.flush,l),17),a._updateTheme(i),a._locale=Ub(n.locale||Lg),a._coordSysMgr=new Xf;var f=a._api=Qc(a);function h(c,v){return c.__prio-v.__prio}return no(Yo,h),no(Ol,h),a._scheduler=new bm(a,f,Ol,Yo),a._messageCenter=new Gm,a._initEvents(),a.resize=ut(a.resize,a),l.animation.on("frame",a._onframe,a),Zc(l,a),qc(l,a),bo(a),a}return t.prototype._onframe=function(){if(!this._disposed){Jc(this);var r=this._scheduler;if(this[Tt]){var i=this[Tt].silent;this[wt]=!0,Ri(this);try{jr(this),Ze.update.call(this,null,this[Tt].updateParams)}catch(u){throw this[wt]=!1,this[Tt]=null,u}this._zr.flush(),this[wt]=!1,this[Tt]=null,ki.call(this,i),Ei.call(this,i)}else if(r.unfinished){var n=RT,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Su(this,a),r.performVisualTasks(a),Za(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&r.unfinished);r.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(r,i,n){if(!this[wt]){if(this._disposed){this.id;return}var a,o,s;if(U(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[wt]=!0,Ri(this),!this._model||i){var u=new Dw(this._api),l=this._theme,f=this._model=new Kf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Bl);var h={seriesTransition:s,optionChanged:!0};if(n)this[Tt]={silent:a,updateParams:h},this[wt]=!1,this.getZr().wakeUp();else{try{jr(this),Ze.update.call(this,null,h)}catch(c){throw this[Tt]=null,this[wt]=!1,c}this._ssr||this._zr.flush(),this[Tt]=null,this[wt]=!1,ki.call(this,a),Ei.call(this,a)}}},t.prototype.setTheme=function(r,i){if(!this[wt]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[Tt]&&(a==null&&(a=this[Tt].silent),o=this[Tt].updateParams,this[Tt]=null),this[wt]=!0,Ri(this);try{this._updateTheme(r),n.setTheme(this._theme),jr(this),Ze.update.call(this,{type:"setTheme"},o)}catch(s){throw this[wt]=!1,s}this[wt]=!1,ki.call(this,a),Ei.call(this,a)}}},t.prototype._updateTheme=function(r){W(r)&&(r=Xm[r]),r&&(r=rt(r),r&&jg(r,!0),this._theme=r)},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||q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var i=this._zr.painter;return i.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,i=r.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;T(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(r).toDataURL("image/"+(r&&r.type||"png"));return T(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(jc[n]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();T(Wn,function(_,S){if(_.group===n){var w=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(r)),b=_.getDom().getBoundingClientRect();u=a(b.left,u),l=a(b.top,l),f=o(b.right,f),h=o(b.bottom,h),c.push({dom:w,left:b.left,top:b.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,m=er.createCanvas(),p=jh(m,{renderer:i?"svg":"canvas"});if(p.resize({width:d,height:g}),i){var y="";return T(c,function(_){var S=_.left-u,w=_.top-l;y+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),p.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&p.painter.setBackgroundColor(r.connectedBackgroundColor),p.refreshImmediately(),p.painter.toDataURL()}else return r.connectedBackgroundColor&&p.add(new Rt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),T(c,function(_){var S=new Ar({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});p.add(S)}),p.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,i,n){return $a(this,"convertToPixel",r,i,n)},t.prototype.convertToLayout=function(r,i,n){return $a(this,"convertToLayout",r,i,n)},t.prototype.convertFromPixel=function(r,i,n){return $a(this,"convertFromPixel",r,i,n)},t.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a,o=fo(n,r);return T(o,function(s,u){u.indexOf("Models")>=0&&T(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(r,i){var n=this._model,a=fo(n,r,{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?tT(s,u,i):eT(s,i)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;T(ZT,function(n){var a=function(o){var s=r.getModel(),u=o.target,l,f=n==="globalout";if(f?l={}:u&&Pn(u,function(g){var m=vt(g);if(m&&m.dataIndex!=null){var p=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return l=p&&p.getDataParams(m.dataIndex,m.dataType,u)||{},!0}else if(m.eventData)return l=R({},m.eventData),!0},!0),l){var h=l.componentType,c=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=l.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;T(Rl,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),rT(i,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 r=this.getDom();r&&Np(this.getDom(),nh,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(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 Wn[i.id]},t.prototype.resize=function(r){if(!this[wt]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=r&&r.silent;this[Tt]&&(a==null&&(a=this[Tt].silent),n=!0,this[Tt]=null),this[wt]=!0,Ri(this);try{n&&jr(this),Ze.update.call(this,{type:"resize",animation:R({duration:0},r&&r.animation)})}catch(o){throw this[wt]=!1,o}this[wt]=!1,ki.call(this,a),Ei.call(this,a)}}},t.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(U(r)&&(i=r,r=""),r=r||"default",this.hideLoading(),!!Nl[r]){var n=Nl[r](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(r){var i=R({},r);return i.type=El[r.type],i},t.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(U(i)||(i={silent:!!i}),!!Uo[r.type]&&this._model){if(this[wt]){this._pendingActions.push(r);return}var n=i.silent;bu.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&q.browser.weChat&&this._throttledZrFlush(),ki.call(this,n),Ei.call(this,n)}},t.prototype.updateLabelLayout=function(){ge.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){jr=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),_u(h,!0),_u(h,!1),c.plan()},_u=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,m=c?h._componentsMap:h._chartsMap,p=h._zr,y=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(b,x){b!=="series"&&S(x)}):v.eachSeries(S);function S(b){var x=b.__requireNewView;b.__requireNewView=!1;var D="_ec_"+b.id+"_"+b.type,C=!x&&m[D];if(!C){var A=Re(b.type),M=c?rr.getClass(A.main,A.sub):ze.getClass(A.sub);C=new M,C.init(v,y),m[D]=C,g.push(C),p.add(C.group)}b.__viewId=C.__id=D,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!c&&d.prepareView(C,b,v,y)}for(var _=0;_<g.length;){var w=g[_];w.__alive?_++:(!c&&w.renderTask.dispose(),p.remove(w.group),w.dispose(v,y),g.splice(_,1),m[w.__id]===w&&delete m[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Xa=function(h,c,v,d,g){var m=h._model;if(m.setUpdatePayload(v),!d){T([].concat(h._componentsViews).concat(h._chartsViews),w);return}var p={};p[d+"Id"]=v[d+"Id"],p[d+"Index"]=v[d+"Index"],p[d+"Name"]=v[d+"Name"];var y={mainType:d,query:p};g&&(y.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=j(),T(It(_),function(b){var x=Se(b,null);x!=null&&S.set(x,!0)})),m&&m.eachComponent(y,function(b){var x=S&&S.get(b.id)!=null;if(!x)if(Ov(v))if(b instanceof Dr)v.type===fi&&!v.notBlur&&!b.get(["emphasis","disabled"])&&MS(b,v,h._api);else{var D=bf(b.mainType,b.componentIndex,v.name,h._api),C=D.focusSelf,A=D.dispatchers;v.type===fi&&C&&!v.notBlur&&fl(b.mainType,b.componentIndex,h._api),A&&T(A,function(M){v.type===fi?Oo(M):Bo(M)})}else cl(v)&&b instanceof Dr&&(LS(b,v,h._api),kv(b),ie(h))},h),m&&m.eachComponent(y,function(b){var x=S&&S.get(b.id)!=null;x||w(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function w(b){b&&b.__alive&&b[c]&&b[c](b.__model,m,h._api,v)}},Ze={prepareAndUpdate:function(h){jr(this),Ze.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,m=this._coordSysMgr,p=this._scheduler;if(v){v.setUpdatePayload(h),p.restoreData(v,h),p.performSeriesTasks(v),m.create(v,d),p.performDataProcessorTasks(v,h),Su(this,v),m.update(v,d),i(v),p.performVisualTasks(v,h);var y=v.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),wu(this,v,d,h,c),ge.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(p,y){if(p!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var m=j();v.eachSeries(function(p){var y=c._chartsMap[p.__viewId];if(y.updateTransform){var _=y.updateTransform(p,v,d,h);_&&_.update&&m.set(p.uid,1)}else m.set(p.uid,1)}),i(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:m}),Za(this,v,d,h,{},m),ge.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),ze.markUpdateMethod(h,"updateView"),i(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),wu(this,c,this._api,h,{}),ge.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()}),ze.markUpdateMethod(h,"updateVisual"),i(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var m=c.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),ge.trigger("afterupdate",v,this._api))},updateLayout:function(h){Ze.update.call(this,h)}};function r(h,c,v,d,g){if(h._disposed){h.id;return}for(var m=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,_=fo(m,v),S=0;S<p.length;S++){var w=p[S];if(w[c]&&(y=w[c](m,_,d,g))!=null)return y}}$a=r,Su=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},bu=function(h,c){var v=this,d=this.getModel(),g=h.type,m=h.escapeConnect,p=Uo[g],y=(p.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&Re(y[0]);this[wt]=!0,Ri(this);var w=[h],b=!1;h.batch&&(b=!0,w=X(h.batch,function(E){return E=st(R({},E),h),E.batch=null,E}));var x=[],D,C=[],A=p.nonRefinedEventType,M=cl(h),I=Ov(h);if(I&&ng(this._api),T(w,function(E){var Y=p.action(E,d,v._api);if(p.refineEvent?C.push(Y):D=Y,D=D||R({},E),D.type=A,x.push(D),I){var N=df(h),F=N.queryOptionMap,H=N.mainTypeSpecified,V=H?F.keys()[0]:"series";Xa(v,_,E,V),ie(v)}else M?(Xa(v,_,E,"series"),ie(v)):S&&Xa(v,_,E,S.main,S.sub)}),_!=="none"&&!I&&!M&&!S)try{this[Tt]?(jr(this),Ze.update.call(this,h),this[Tt]=null):Ze[_].call(this,h)}catch(E){throw this[wt]=!1,E}if(b?D={type:A,escapeConnect:m,batch:x}:D=x[0],this[wt]=!1,!c){var L=void 0;if(p.refineEvent){var P=p.refineEvent(C,h,d,this._api).eventContent;He(U(P)),L=st({type:p.refinedEventType},P),L.fromAction=h.type,L.fromActionPayload=h,L.escapeConnect=!0}var k=this._messageCenter;k.trigger(D.type,D),L&&k.trigger(L.type,L)}},ki=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();bu.call(this,v,h)}},Ei=function(h){!h&&this.trigger("updated")},Zc=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Tt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},qc=function(h,c){h.on("mouseover",function(v){var d=v.target,g=Pn(d,vl);g&&(DS(g,v,c._api),ie(c))}).on("mouseout",function(v){var d=v.target,g=Pn(d,vl);g&&(AS(g,v,c._api),ie(c))}).on("click",function(v){var d=v.target,g=Pn(d,function(y){return vt(y).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",p=vt(g);c._api.dispatchAction({type:m,dataType:p.dataType,dataIndexInside:p.dataIndex,seriesIndex:p.seriesIndex,isFromClick:!0})}})};function i(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var S=_.get("zlevel")||0,w=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(y==="series"?v:c).push({zlevel:S,z:w,idx:_.componentIndex,type:y,key:b})}),d){var g=c.concat(v),m,p;no(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),T(g,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,w=y.key;m!=null&&(S=Math.max(m,S)),w?(S===m&&w!==p&&S++,p=w):p&&(S===m&&S++,p=""),m=S,_.setZLevel(S)})}}wu=function(h,c,v,d,g){n(c),Kc(h,c,v,d,g),T(h._chartsViews,function(m){m.__alive=!1}),Za(h,c,v,d,g),T(h._chartsViews,function(m){m.__alive||m.remove(c,v)})},Kc=function(h,c,v,d,g,m){T(m||h._componentsViews,function(p){var y=p.__model;l(y,p),p.render(y,c,v,d),u(y,p),f(y,p)})},Za=function(h,c,v,d,g,m){var p=h._scheduler;g=R(g||{},{updatedSeries:c.getSeries()}),ge.trigger("series:beforeupdate",c,v,g);var y=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;p.updatePayload(w,d),l(_,S),m&&m.get(_.uid)&&w.dirty(),w.perform(p.getPerformArgs(w))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),kv(_)}),p.unfinished=y||p.unfinished,ge.trigger("series:layoutlabels",c,v,g),ge.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(h,c),ge.trigger("series:afterupdate",c,v,g)},ie=function(h){h[mu]=!0,h.getZr().wakeUp()},Ri=function(h){h[Ya]=(h[Ya]+1)%1e3},Jc=function(h){h[mu]&&(h.getZr().storage.traverse(function(c){zn(c)||a(c)}),h[mu]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||c.push(g)}h.selected&&h.states.select&&c.push("select"),h.hoverState===us&&h.states.emphasis?c.push("emphasis"):h.hoverState===ss&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(m){m.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!q.node&&!q.worker&&c.eachSeries(function(m){if(!m.preventUsingHoverLayer){var p=h._chartsMap[m.__viewId];p.__alive&&p.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function u(h,c){if(!h.preventAutoZ){var v=wg(h);c.eachRendered(function(d){return xg(d,v.z,v.zlevel),!0})}}function l(h,c){c.eachRendered(function(v){if(!zn(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.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(),g=v.get("duration"),m=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(p){if(p.states&&p.states.emphasis){if(zn(p))return;if(p instanceof lt&&BS(p),p.__dirty){var y=p.prevStates;y&&p.useStates(y)}if(d){p.stateTransition=m;var _=p.getTextContent(),S=p.getTextGuideLine();_&&(_.stateTransition=m),S&&(S.stateTransition=m)}p.__dirty&&a(p)}})}Qc=function(h){return new(function(c){z(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 g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){Oo(d,g),ie(h)},v.prototype.leaveEmphasis=function(d,g){Bo(d,g),ie(h)},v.prototype.enterBlur=function(d){CS(d),ie(h)},v.prototype.leaveBlur=function(d){tg(d),ie(h)},v.prototype.enterSelect=function(d){eg(d),ie(h)},v.prototype.leaveSelect=function(d){rg(d),ie(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.prototype.getMainProcessVersion=function(){return h[Ya]},v}(Qg))(h)},Um=function(h){function c(v,d){for(var g=0;g<v.length;g++){var m=v[g];m[yu]=d}}T(El,function(v,d){h._messageCenter.on(d,function(g){if(jc[h.group]&&h[yu]!==$c){if(g&&g.escapeConnect)return;var m=h.makeActionFromEvent(g),p=[];T(Wn,function(y){y!==h&&y.group===h.group&&p.push(y)}),c(p,$c),T(p,function(y){y[yu]!==XT&&y.dispatchAction(m)}),c(p,$T)}})})}}(),t}(Ue),ih=Ym.prototype;ih.on=zm("on");ih.off=zm("off");ih.one=function(e,t,r){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(e,n)}this.on.call(this,e,n,r)};var ZT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Uo={},El={},Rl={},Ol=[],Bl=[],Yo=[],Xm={},Nl={},Wn={},jc={},qT=+new Date-0,nh="_echarts_instance_";function XL(e,t,r){var i=!(r&&r.ssr);if(i){var n=KT(e);if(n)return n}var a=new Ym(e,t,r);return a.id="ec_"+qT++,Wn[a.id]=a,i&&Np(e,nh,a.id),Um(a),ge.trigger("afterinit",a),a}function KT(e){return Wn[d1(e,nh)]}function $m(e,t){Xm[e]=t}function Zm(e){nt(Bl,e)<0&&Bl.push(e)}function qm(e,t){oh(Ol,e,t,FT)}function QT(e){ah("afterinit",e)}function JT(e){ah("afterupdate",e)}function ah(e,t){ge.on(e,t)}function sn(e,t,r){var i,n,a,o,s;K(t)&&(r=t,t=""),U(e)?(i=e.type,n=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(i=e,n=t);function u(f){return f.toLowerCase()}n=u(n||i);var l=a?u(i):n;Uo[i]||(He(Xc.test(i)&&Xc.test(n)),a&&He(n!==i),Uo[i]={actionType:i,refinedEventType:n,nonRefinedEventType:l,update:o,action:r,refineEvent:a},Rl[n]=1,a&&s&&(Rl[l]=1),El[l]=i)}function jT(e,t){Xf.register(e,t)}function tC(e,t){oh(Yo,e,t,Bm,"layout")}function _i(e,t){oh(Yo,e,t,Nm,"visual")}var td=[];function oh(e,t,r,i,n){if((K(t)||U(t))&&(r=t,t=i),!(nt(td,r)>=0)){td.push(r);var a=bm.wrapStageHandler(r,n);a.__prio=t,a.__raw=r,e.push(a)}}function Km(e,t){Nl[e]=t}function eC(e,t,r){var i=kT("registerMap");i&&i(e,t,r)}var rC=ox;_i(rh,Nx);_i(Ss,Fx);_i(Ss,zx);_i(rh,Jx);_i(Ss,jx);_i(Fm,IT);Zm(jg);qm(BT,zw);Km("default",Hx);sn({type:fi,event:fi,update:fi},$t);sn({type:ho,event:ho,update:ho},$t);sn({type:Eo,event:_f,update:Eo,action:$t,refineEvent:sh,publishNonRefinedEvent:!0});sn({type:ul,event:_f,update:ul,action:$t,refineEvent:sh,publishNonRefinedEvent:!0});sn({type:Ro,event:_f,update:Ro,action:$t,refineEvent:sh,publishNonRefinedEvent:!0});function sh(e,t,r,i){return{eventContent:{selected:IS(r),isFromClick:t.isFromClick||!1}}}$m("default",{});$m("dark",Cm);function yn(e){return e==null?0:e.length||1}function ed(e){return e}var iC=function(){function e(t,r,i,n,a,o){this._old=t,this._new=r,this._oldKeyGetter=i||ed,this._newKeyGetter=n||ed,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,i={},n=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],u=i[s],l=yn(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)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=i[u],f=n[u],h=yn(l),c=yn(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)},e.prototype._performRestAdd=function(t,r){for(var i=0;i<t.length;i++){var n=t[i],a=r[n],o=yn(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);r[n]=null}},e.prototype._initIndexMap=function(t,r,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),!!r){var u=r[s],l=yn(u);l===0?(r[s]=o,a&&i.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e}(),nC=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function aC(e,t){var r={},i=r.encode={},n=j(),a=[],o=[],s={};T(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;xu(i,d)[g]=c,v.isExtraCoord||(n.set(d,1),sC(v.type)&&(a[0]=c),xu(s,d)[g]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Yg.each(function(m,p){var y=xu(i,p),_=v.otherDims[p];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};n.each(function(c,v){var d=i[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=X(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.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,r.userOutput=new nC(s,t),r}function xu(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function oC(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function sC(e){return!(e==="ordinal"||e==="time")}var yo=function(){function e(t){this.otherDims={},t!=null&&R(this,t)}return e}(),uC=_t(),lC={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Qm=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=ty(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return $(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=em(this.source),i=!ey(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=r?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=r?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),r&&u!=null&&(!h||!h.isCalculationCoord)&&(n+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),n+="$",n+=lC[l]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}t.push(n)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function Jm(e){return e instanceof Qm}function jm(e){for(var t=j(),r=0;r<(e||[]).length;r++){var i=e[r],n=U(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,r)}return t}function ty(e){var t=uC(e);return t.dimNameMap||(t.dimNameMap=jm(e.dimensionsDefine))}function ey(e){return e>30}var _n=U,ur=X,fC=typeof Int32Array>"u"?Array:Int32Array,hC="e\0\0",rd=-1,vC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],cC=["_approximateExtent"],id,qa,Sn,bn,Tu,wn,Cu,dC=function(){function e(t,r){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;Jm(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=W(h)?new yo({name:h}):h instanceof yo?h:new yo(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]=[]);var g=f;ct(c.storeDimIndex)&&(g=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=g),d.itemId===0&&(this._idDimIdx=g),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=j();T(o,function(p){m.set(a[p].storeDimIndex,p)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ct(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,i=r.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,i){var n=this,a;if(t instanceof Tl&&(a=t),!a){var o=this.dimensions,s=Qf(t)||Zt(t)?new rm(t,o.length):t;a=new Tl;var u=ur(o,function(l){return{type:n._dimInfos[l].type,property:l}});a.initData(s,u,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=aC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var i=this._store.appendValues(t,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var u=s-n;this._nameList[s]=r[u],o&&Cu(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Sr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===re;if(u&&!n.pure)for(var l=[],f=t;f<r;f++){var h=n.getItem(f,l);if(!this.hasItemOption&&i1(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Se(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Se(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)Cu(this,f);id(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){_n(t)?R(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=Sn(this,this._nameDimIdx,r)),i==null&&(i=""),i},e.prototype._getCategory=function(t,r){var i=this._store.get(t,r),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},e.prototype.getId=function(t){return qa(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var i=this,n=this._store;return B(t)?n.getValues(ur(t,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var i=t&&this._invertedIndicesMap[t],n=i&&i[r];return n==null||isNaN(n)?rd:n},e.prototype.each=function(t,r,i){K(t)&&(i=r,r=t,t=[]);var n=i||this,a=ur(bn(t),this._getStoreDimIndex,this);this._store.each(a,n?ut(r,n):r)},e.prototype.filterSelf=function(t,r,i){K(t)&&(i=r,r=t,t=[]);var n=i||this,a=ur(bn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?ut(r,n):r),this},e.prototype.selectRange=function(t){var r=this,i={},n=gt(t);return T(n,function(a){var o=r._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,r,i){K(t)&&(i=r,r=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(r&&r.apply(this,arguments))},i),n},e.prototype.map=function(t,r,i,n){var a=i||n||this,o=ur(bn(t),this._getStoreDimIndex,this),s=wn(this);return s._store=this._store.map(o,a?ut(r,a):r),s},e.prototype.modify=function(t,r,i,n){var a=i||n||this,o=ur(bn(t),this._getStoreDimIndex,this);this._store.modify(o,a?ut(r,a):r)},e.prototype.downSample=function(t,r,i,n){var a=wn(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,i,n),a},e.prototype.minmaxDownSample=function(t,r){var i=wn(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),i},e.prototype.lttbDownSample=function(t,r){var i=wn(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,i=this.getRawDataItem(t);return new yt(i,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new iC(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return qa(t,i)},function(i){return qa(r,i)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},_n(t)?R(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var i=this._itemVisuals[t],n=i&&i[r];return n??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[r];return a==null&&(a=this.getVisual(r),B(a)?a=a.slice():_n(a)&&(a=R({},a)),n[r]=a),a},e.prototype.setItemVisual=function(t,r,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,_n(r)?R(n,r):n[r]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){_n(t)?R(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,i){this._itemLayouts[t]=i?R(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var i=this.hostModel&&this.hostModel.seriesIndex;pS(i,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){T(this._graphicEls,function(i,n){i&&t&&t.call(r,i,n)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ur(this.dimensions,this._getDimInfo,this),this.hostModel)),Tu(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var i=this[t];K(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(af(arguments)))})},e.internalField=function(){id=function(t){var r=t._invertedIndicesMap;T(r,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=r[n]=new fC(o.categories.length);for(var u=0;u<i.length;u++)i[u]=rd;for(var u=0;u<s.count();u++)i[s.get(a.storeDimIndex,u)]=u}})},Sn=function(t,r,i){return Se(t._getCategory(r,i),null)},qa=function(t,r){var i=t._idList[r];return i==null&&t._idDimIdx!=null&&(i=Sn(t,t._idDimIdx,r)),i==null&&(i=hC+r),i},bn=function(t){return B(t)||(t=t!=null?[t]:[]),t},wn=function(t){var r=new e(t._schema?t._schema:ur(t.dimensions,t._getDimInfo,t),t.hostModel);return Tu(r,t),r},Tu=function(t,r){T(vC.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(t[i]=r[i])}),t.__wrappedMethods=r.__wrappedMethods,T(cC,function(i){t[i]=rt(r[i])}),t._calculationInfo=R({},r._calculationInfo)},Cu=function(t,r){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[r],u=n[r];if(s==null&&a!=null&&(i[r]=s=Sn(t,a,r)),u==null&&o!=null&&(n[r]=u=Sn(t,o,r)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),n[r]=u}}}(),e}();function pC(e,t){Qf(e)||(e=Jf(e)),t=t||{};var r=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],n=j(),a=[],o=mC(e,r,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ey(o),u=i===e.dimensionsDefine,l=u?ty(e):jm(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=j(f),c=new um(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var A=c[C];if(A<0){var M=i[C],I=U(M)?M:{name:M},L=new yo,P=I.name;P!=null&&l.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var k=a.length;return c[C]=k,L.storeDimIndex=C,a.push(L),L}return a[A]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,A){var M=It(C).slice();if(M.length===1&&!W(M[0])&&M[0]<0){h.set(A,!1);return}var I=h.set(A,[]);T(M,function(L,P){var k=W(L)?l.get(L):L;k!=null&&k<o&&(I[P]=k,m(d(k),A,P))})});var g=0;T(r,function(C){var A,M,I,L;if(W(C))A=C,L={};else{L=C,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=R({},L),L.ordinalMeta=P,M=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var k=h.get(A);if(k!==!1){if(k=It(k),!k.length)for(var E=0;E<(M&&M.length||1);E++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&k.push(g++)}T(k,function(Y,N){var F=d(Y);if(u&&L.type!=null&&(F.type=L.type),m(st(F,L),A,N),F.name==null&&M){var H=M[N];!U(H)&&(H={name:H}),F.name=F.displayName=H.name,F.defaultTooltip=H.defaultTooltip}I&&st(F.otherDims,I)})}});function m(C,A,M){Yg.get(A)!=null?C.otherDims[A]=M:(C.coordDim=A,C.coordDimIndex=M,n.set(A,!0))}var p=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=p?y||1:0;var S=p||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)T(a,function(C){w(C)}),a.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var b=0;b<o;b++){var x=d(b),D=x.coordDim;D==null&&(x.coordDim=yC(S,n,_),x.coordDimIndex=0,(!p||y<=0)&&(x.isExtraCoord=!0),y--),w(x),x.type==null&&(Zg(e,b)===Dt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return gC(a),new Qm({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function gC(e){for(var t=j(),r=0;r<e.length;r++){var i=e[r],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function mC(e,t,r,i){var n=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,i||0);return T(t,function(a){var o;U(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function yC(e,t,r){if(r||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var _C=function(){function e(t){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=t}return e}();function SC(e){var t=e.get("coordinateSystem"),r=new _C(t),i=bC[t];if(i)return i(e,r,r.axisMap,r.categoryAxisMap),r}var bC={cartesian2d:function(e,t,r,i){var n=e.getReferringComponents("xAxis",te).models[0],a=e.getReferringComponents("yAxis",te).models[0];t.coordSysDims=["x","y"],r.set("x",n),r.set("y",a),Oi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Oi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,i){var n=e.getReferringComponents("singleAxis",te).models[0];t.coordSysDims=["single"],r.set("single",n),Oi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(e,t,r,i){var n=e.getReferringComponents("polar",te).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Oi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Oi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,i){var n=e.ecModel,a=n.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,u){var l=n.getComponent("parallelAxis",s),f=o[u];r.set(f,l),Oi(l)&&(i.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(e,t,r,i){var n=e.getReferringComponents("matrix",te).models[0];t.coordSysDims=["x","y"];var a=n.getDimensionModel("x"),o=n.getDimensionModel("y");r.set("x",a),r.set("y",o),i.set("x",a),i.set("y",o)}};function Oi(e){return e.get("type")==="category"}function wC(e,t,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;xC(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c;if(T(a,function(y,_){W(y)&&(a[_]=y={name:y}),u&&!y.isExtraCoord&&(!i&&!l&&y.ordinalMeta&&(l=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!n||n===y.coordDim)&&(f=y))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;T(a,function(y){y.coordDim===v&&g++});var m={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},p={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,d),p.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(m),o.appendCalculationDimension(p)):(a.push(m),a.push(p))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function xC(e){return!Jm(e.schema)}function Ji(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function TC(e,t){return Ji(e,t)?e.getCalculationInfo("stackResultDimension"):t}function CC(e,t){var r=e.get("coordinateSystem"),i=Xf.get(r),n;return t&&t.coordSysDims&&(n=X(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=oC(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function MC(e,t,r){var i,n;return r&&T(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(e[i].otherDims.itemName=0),i}function DC(e,t,r){r=r||{};var i=t.getSourceManager(),n,a=!1;e?(a=!0,n=Jf(e)):(n=i.getSource(),a=n.sourceFormat===re);var o=SC(t),s=CC(t,o),u=r.useEncodeDefaulter,l=K(u)?u:u?fe(gw,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=pC(n,f),c=MC(h.dimensions,r.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=wC(t,{schema:h,store:v}),g=new dC(h,t);g.setCalculationInfo(d);var m=c!=null&&AC(n)?function(p,y,_,S){return S===c?_:this.defaultDimValueGetter(p,y,_,S)}:null;return g.hasItemOption=!1,g.initData(a?n:v,null,m),g}function AC(e){if(e.sourceFormat===re){var t=LC(e.data||[]);return!B(va(t))}}function LC(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function Fl(e){return e.type==="interval"||e.type==="log"}function IC(e,t,r,i,n){var a={},o=a.interval=Lp(t/r);i!=null&&o<i&&(o=a.interval=i),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=sa(o),u=a.niceTickExtent=[Lt(Math.ceil(e[0]/o)*o,s),Lt(Math.floor(e[1]/o)*o,s)];return PC(u,e),a}function Mu(e){var t=Math.pow(10,cf(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Lt(r*t)}function sa(e){return Je(e)+2}function nd(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function PC(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),nd(e,0,t),nd(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function uh(e,t){return e>=t[0]&&e<=t[1]}var kC=function(){function e(){this.normalize=ad,this.scale=od}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=ut(t.normalize,t),this.scale=ut(t.scale,t)):(this.normalize=ad,this.scale=od)},e}();function ad(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function od(e,t){return e*(t[1]-t[0])+t[0]}function zl(e,t,r){var i=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/i,Math.log(r?t[1]:Math.max(0,t[1]))/i]}var Lr=function(){function e(t){this._calculator=new kC,this._setting=t||{},this._extent=[1/0,-1/0];var r=Xt();r&&(this._brkCtx=r.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(r)||(i[1]=r),this._brkCtx&&this._brkCtx.update(i)},e.prototype.setBreaksFromOption=function(t){var r=Xt();r&&this._innerSetBreak(r.parseAxisBreakOption(t,ut(this.parse,this)))},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();ns(Lr);var EC=0,Hl=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++EC,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,i=r.data,n=i&&X(i,RC);return new e({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,i=this._needCollect;if(!W(t)&&!i)return t;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var n=this._getOrCreateMap();return r=n.get(t),r==null&&(i?(r=this.categories.length,this.categories[r]=t,n.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},e}();function RC(e){return U(e)&&e.value!=null?e.value:e+""}var ry=function(e){z(t,e);function t(r){var i=e.call(this,r)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Hl({})),B(n)&&(n=new Hl({categories:X(n,function(a){return U(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(r){return r==null?NaN:W(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return uh(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],i=this._extent,n=i[0];n<=i[1];)r.push({value:n}),n++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.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(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Lr);Lr.registerClass(ry);var lr=Lt,ji=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return uh(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=sa(r)},t.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=Xt(),u=[];if(!i)return u;if(r.breakTicks==="only_break"&&s)return s.addBreaksToTicks(u,this._brkCtx.breaks,this._extent),u;var l=1e4;n[0]<a[0]&&(r.expandToNicedExtent?u.push({value:lr(a[0]-i,o)}):u.push({value:n[0]}));for(var f=function(d,g){return Math.round((g-d)/i)},h=a[0];h<=a[1];){if(u.push({value:h}),h=lr(h+i,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(h,f);c>=0&&(h=lr(h+c*i,o))}if(u.length>0&&h===u[u.length-1].value)break;if(u.length>l)return[]}var v=u.length?u[u.length-1].value:a[1];return n[1]>v&&(r.expandToNicedExtent?u.push({value:lr(v+i,o)}):u.push({value:n[1]})),s&&s.pruneTicksByBreak(r.pruneByBreak,u,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),r.breakTicks!=="none"&&s&&s.addBreaksToTicks(u,this._brkCtx.breaks,this._extent),u},t.prototype.getMinorTicks=function(r){for(var i=this.getTicks({expandToNicedExtent:!0}),n=[],a=this.getExtent(),o=1;o<i.length;o++){var s=i[o],u=i[o-1];if(!(u.break||s.break)){for(var l=0,f=[],h=s.value-u.value,c=h/r,v=sa(c);l<r-1;){var d=lr(u.value+(l+1)*c,v);d>a[0]&&d<a[1]&&f.push(d),l++}var g=Xt();g&&g.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(m){return m},this._interval,a),n.push(f)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,i){if(r==null)return"";var n=i&&i.precision;n==null?n=Je(r.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=lr(r.value,n,!0);return Fg(a)},t.prototype.calcNiceTicks=function(r,i,n){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=IC(a,o,r,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var i=this._extent.slice();if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);r.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._innerSetExtent(i[0],i[1]),i=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(i[0]=lr(Math.floor(i[0]/o)*o,s)),r.fixMax||(i[1]=lr(Math.ceil(i[1]/o)*o,s)),this._innerSetExtent(i[0],i[1])},t.prototype.setNiceExtent=function(r,i){this._niceExtent=[r,i]},t.type="interval",t}(Lr);Lr.registerClass(ji);var iy=typeof Float32Array<"u",OC=iy?Float32Array:Array;function je(e){return B(e)?iy?new Float32Array(e):e:new OC(e)}var Vl="__ec_stack_";function ny(e){return e.get("stack")||Vl+e.seriesIndex}function lh(e){return e.dim+e.index}function $L(e){var t=[],r=e.axis,i="axis0";if(r.type==="category"){for(var n=r.getBandWidth(),a=0;a<e.count;a++)t.push(st({bandWidth:n,axisKey:i,stackId:Vl+a},e));for(var o=sy(t),s=[],a=0;a<e.count;a++){var u=o[i][Vl+a];u.offsetCenter=u.offset+u.width/2,s.push(u)}return s}}function ay(e,t){var r=[];return t.eachSeriesByType(e,function(i){uy(i)&&r.push(i)}),r}function BC(e){var t={};T(e,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(),g=0,m=d.count();g<m;++g){var p=d.get(v,g);t[c]?t[c].push(p):t[c]=[p]}});var r={};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))}r[i]=a}}return r}function oy(e){var t=BC(e),r=[];return T(e,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=bt(i.get("barWidth"),s),g=bt(i.get("barMaxWidth"),s),m=bt(i.get("barMinWidth")||(ly(i)?.5:1),s),p=i.get("barGap"),y=i.get("barCategoryGap"),_=i.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:m,barGap:p,barCategoryGap:y,defaultBarGap:_,axisKey:lh(a),stackId:ny(i)})}),sy(r)}function sy(e){var t={};T(e,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:i.defaultBarGap||0,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 r={};return T(t,function(i,n){r[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var u=gt(a).length;s=Math.max(35-u*4,15)+"%"}var l=bt(s,o),f=bt(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),T(a,function(p){var y=p.maxWidth,_=p.minWidth;if(p.width){var S=p.width;y&&(S=Math.min(S,y)),_&&(S=Math.max(S,_)),p.width=S,h-=S+f*S,c--}else{var S=v;y&&y<S&&(S=Math.min(y,h)),_&&_>S&&(S=_),S!==v&&(p.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;T(a,function(p,y){p.width||(p.width=v),g=p,d+=p.width*(1+f)}),g&&(d-=g.width*f);var m=-d/2;T(a,function(p,y){r[n][y]=r[n][y]||{bandWidth:o,offset:m,width:p.width},m+=p.width*(1+f)})}),r}function NC(e,t,r){if(e&&t){var i=e[lh(t)];return i}}function ZL(e,t){var r=ay(e,t),i=oy(r);T(r,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),u=ny(n),l=i[lh(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function qL(e){return{seriesType:e,plan:eh(),reset:function(t){if(uy(t)){var r=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(n.dim)),u=t.get("showBackground",!0),l=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Ji(r,l)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=FC(n,a),d=ly(t),g=t.get("barMinHeight")||0,m=f&&r.getDimensionIndex(f),p=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,S){for(var w=_.count,b=d&&je(w*3),x=d&&u&&je(w*3),D=d&&je(w),C=i.master.getRect(),A=c?C.width:C.height,M,I=S.getStore(),L=0;(M=_.next())!=null;){var P=I.get(h?m:o,M),k=I.get(s,M),E=v,Y=void 0;h&&(Y=+P-I.get(o,M));var N=void 0,F=void 0,H=void 0,V=void 0;if(c){var G=i.dataToPoint([P,k]);if(h){var Z=i.dataToPoint([Y,k]);E=Z[0]}N=E,F=G[1]+y,H=G[0]-E,V=p,Math.abs(H)<g&&(H=(H<0?-1:1)*g)}else{var G=i.dataToPoint([k,P]);if(h){var Z=i.dataToPoint([k,Y]);E=Z[1]}N=G[0]+y,F=E,H=p,V=G[1]-E,Math.abs(V)<g&&(V=(V<=0?-1:1)*g)}d?(b[L]=N,b[L+1]=F,b[L+2]=c?H:V,x&&(x[L]=c?C.x:N,x[L+1]=c?F:C.y,x[L+2]=A),D[M]=M):S.setItemLayout(M,{x:N,y:F,width:H,height:V}),L+=3}d&&S.setLayout({largePoints:b,largeDataIndices:D,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function uy(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function ly(e){return e.pipelineContext&&e.pipelineContext.large}function FC(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var zC=function(e,t,r,i){for(;r<i;){var n=r+i>>>1;e[n][1]<t?r=n+1:i=n}return r},fy=function(e){z(t,e);function t(r){var i=e.call(this,r)||this;return i.type="time",i}return t.prototype.getLabel=function(r){var i=this.getSetting("useUTC");return gs(r.value,Qv[jb(Vn(this._minLevelUnit))]||Qv.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return tw(r,i,n,o,a)},t.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=this._extent,a=Xt(),o=[];if(!i)return o;var s=this.getSetting("useUTC");if(a&&r.breakTicks==="only_break")return Xt().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var u=Wi(n[1],s);o.push({value:n[0],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}});var l=XC(this._minLevelUnit,this._approxInterval,s,n,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(l);var f=Wi(n[1],s);o.push({value:n[1],time:{level:0,upperTimeUnit:f,lowerTimeUnit:f}});var h=this.getSetting("useUTC"),c=Qt.length-1,v=0;return T(o,function(d){c=Math.min(c,nt(Qt,d.time.upperTimeUnit)),v=Math.max(v,d.time.level)}),a&&Xt().pruneTicksByBreak(r.pruneByBreak,o,this._brkCtx.breaks,function(d){return d.value},this._approxInterval,this._extent),a&&r.breakTicks!=="none"&&Xt().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(d){for(var g=Math.max(nt(Qt,Wi(d.vmin,h)),nt(Qt,Wi(d.vmax,h))),m=0,p=0;p<Qt.length;p++)if(!hy(Qt[p],d.vmin,d.vmax,h)){m=p;break}var y=Math.min(m,c),_=Math.max(y,g);return{level:v,lowerTimeUnit:Qt[_],upperTimeUnit:Qt[y]}}),o},t.prototype.calcNiceExtent=function(r){var i=this.getExtent();if(i[0]===i[1]&&(i[0]-=le,i[1]+=le),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]-le}this._innerSetExtent(i[0],i[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,i,n){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=Ka.length,s=Math.min(zC(Ka,this._approxInterval,0,o),o-1);this._interval=Ka[s][1],this._intervalPrecision=sa(this._interval),this._minLevelUnit=Ka[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return ct(r)?r:+an(r)},t.prototype.contain=function(r){return uh(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t}(ji),Ka=[["second",Nf],["minute",Ff],["hour",Hn],["quarter-day",Hn*6],["half-day",Hn*12],["day",le*1.2],["half-week",le*3.5],["week",le*7],["month",le*31],["quarter",le*95],["half-year",Kv/2],["year",Kv]];function hy(e,t,r,i){return _l(new Date(t),e,i).getTime()===_l(new Date(r),e,i).getTime()}function HC(e,t){return e/=le,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function VC(e){var t=30*le;return e/=t,e>6?6:e>3?3:e>2?2:1}function GC(e){return e/=Hn,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function sd(e,t){return e/=t?Ff:Nf,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function WC(e){return Lp(e)}function UC(e,t,r){var i=Math.max(0,nt(Qt,t)-1);return _l(new Date(e),Qt[i],r).getTime()}function YC(e,t){var r=new Date(0);r[e](1);var i=r.getTime();r[e](1+t);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function XC(e,t,r,i,n,a){var o=1e4,s=qb,u=0;function l(L,P,k,E,Y,N,F){for(var H=YC(Y,L),V=P,G=new Date(V);V<k&&V<=i[1]&&(F.push({value:V}),!(u++>o));)if(G[Y](G[E]()+L),V=G.getTime(),a){var Z=a.calcNiceTickMultiple(V,H);Z>0&&(G[Y](G[E]()+Z*L),V=G.getTime())}F.push({value:V,notAdd:!0})}function f(L,P,k){var E=[],Y=!P.length;if(!hy(Vn(L),i[0],i[1],r)){Y&&(P=[{value:UC(i[0],L,r)},{value:i[1]}]);for(var N=0;N<P.length-1;N++){var F=P[N].value,H=P[N+1].value;if(F!==H){var V=void 0,G=void 0,Z=void 0,it=!1;switch(L){case"year":V=Math.max(1,Math.round(t/le/365)),G=Pg(r),Z=ew(r);break;case"half-year":case"quarter":case"month":V=VC(t),G=zf(r),Z=kg(r);break;case"week":case"half-week":case"day":V=HC(t),G=Hf(r),Z=Eg(r),it=!0;break;case"half-day":case"quarter-day":case"hour":V=GC(t),G=Vf(r),Z=Rg(r);break;case"minute":V=sd(t,!0),G=Gf(r),Z=Og(r);break;case"second":V=sd(t,!1),G=Wf(r),Z=Bg(r);break;case"millisecond":V=WC(t),G=Uf(r),Z=Ng(r);break}H>=i[0]&&F<=i[1]&&l(V,F,H,G,Z,it,E),L==="year"&&k.length>1&&N===0&&k.unshift({value:k[0].value-V})}}for(var N=0;N<E.length;N++)k.push(E[N])}}for(var h=[],c=[],v=0,d=0,g=0;g<s.length;++g){var m=Vn(s[g]);if(Jb(s[g])){f(s[g],h[h.length-1]||[],c);var p=s[g+1]?Vn(s[g+1]):null;if(m!==p){if(c.length){d=v,c.sort(function(L,P){return L.value-P.value});for(var y=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(y.push(c[_]),S>=i[0]&&S<=i[1]&&v++)}var w=n/t;if(v>w*1.5&&d>w/1.5||(h.push(y),v>w||e===s[g]))break}c=[]}}}for(var b=At(X(h,function(L){return At(L,function(P){return P.value>=i[0]&&P.value<=i[1]&&!P.notAdd})}),function(L){return L.length>0}),x=[],D=b.length-1,g=0;g<b.length;++g)for(var C=b[g],A=0;A<C.length;++A){var M=Wi(C[A].value,r);x.push({value:C[A].value,time:{level:D-g,upperTimeUnit:M,lowerTimeUnit:M}})}x.sort(function(L,P){return L.value-P.value});for(var I=[],g=0;g<x.length;++g)(g===0||x[g].value!==x[g-1].value)&&I.push(x[g]);return I}Lr.registerClass(fy);var Gl=Lt,$C=Math.floor,ZC=Math.ceil,Qa=Math.pow,Ja=Math.log,vy=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new ji,r}return t.prototype.getTicks=function(r){r=r||{};var i=this._extent.slice(),n=this._originalScale.getExtent(),a=e.prototype.getTicks.call(this,r),o=this.base,s=this._originalScale._innerGetBreaks(),u=Xt();return X(a,function(l){var f=l.value,h=null,c=Qa(o,f);f===i[0]&&this._fixMin?h=n[0]:f===i[1]&&this._fixMax&&(h=n[1]);var v;if(u){var d=u.getTicksLogTransformBreak(l,o,s,ja);v=d.vBreak,h==null&&(h=d.brkRoundingCriterion)}return h!=null&&(c=ja(c,h)),{value:c,break:v}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,i){this._originalScale.setExtent(r,i);var n=zl(this.base,[r,i]);e.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var r=this.base,i=e.prototype.getExtent.call(this);i[0]=Qa(r,i[0]),i[1]=Qa(r,i[1]);var n=this._originalScale.getExtent();return this._fixMin&&(i[0]=ja(i[0],n[0])),this._fixMax&&(i[1]=ja(i[1],n[1])),i},t.prototype.unionExtentFromData=function(r,i){this._originalScale.unionExtentFromData(r,i);var n=zl(this.base,r.getApproximateExtent(i),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(r){r=r||10;var i=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var a=J_(n),o=r/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Gl(ZC(i[0]/a)*a),Gl($C(i[1]/a)*a)];this._interval=a,this._intervalPrecision=sa(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=Ja(r)/Ja(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=Ja(r)/Ja(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),Qa(this.base,r)},t.prototype.setBreaksFromOption=function(r){var i=Xt();if(i){var n=i.logarithmicParseBreaksFromOption(r,this.base,ut(this.parse,this)),a=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(a),this._innerSetBreak(o)}},t.type="log",t}(ji);function ja(e,t){return Gl(e,Je(t))}Lr.registerClass(vy);var qC=function(){function e(t,r,i){this._prepareParams(t,r,i)}return e.prototype._prepareParams=function(t,r,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"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;K(o)?this._modelMinNum=to(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=to(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(K(s)?this._modelMaxNum=to(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=to(t,s)),n)this._axisDataLen=r.getCategories().length;else{var u=r.get("boundaryGap"),l=B(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[vi(l[0],1),vi(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?n?0:NaN:r-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=Xn(s)||Xn(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}},e.prototype.modifyDataMinMax=function(t,r){this[QC[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var i=KC[t];this[i]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),KC={min:"_determinedMin",max:"_determinedMax"},QC={min:"_dataMin",max:"_dataMax"};function JC(e,t,r){var i=e.rawExtentInfo;return i||(i=new qC(e,t,r),e.rawExtentInfo=i,i)}function to(e,t){return t==null?null:Xn(t)?NaN:e.parse(t)}function cy(e,t){var r=e.type,i=JC(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&r==="time"){var s=ay("bar",o),u=!1;if(T(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=oy(s),f=jC(n,a,t,l);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function jC(e,t,r,i){var n=r.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=NC(i,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;T(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-e,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),e-=c*(s/l),{min:e,max:t}}function ud(e,t){var r=t,i=cy(e,r),n=i.extent,a=r.get("splitNumber");e instanceof vy&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),u=o==="interval"||o==="time";e.setBreaksFromOption(gy(r)),e.setExtent(n[0],n[1]),e.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?r.get("minInterval"):null,maxInterval:u?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function tM(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ry({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new fy({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Lr.getClass(t)||ji)}}function eM(e){var t=e.scale.getExtent(),r=t[0],i=t[1];return!(r>0&&i>0||r<0&&i<0)}function pa(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=Kb(t);return function(n,a){return e.scale.getFormattedLabel(n,a,r)}}else{if(W(t))return function(n){var a=e.scale.getLabel(n),o=t.replace("{value}",a??"");return o};if(K(t)){if(e.type==="category")return function(n,a){return t(Xo(e,n),n.value-e.scale.getExtent()[0],null)};var i=Xt();return function(n,a){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,n.break)),t(Xo(e,n),a,o)}}else return function(n){return e.scale.getLabel(n)}}}function Xo(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function fh(e){var t=e.get("interval");return t??"auto"}function dy(e){return e.type==="category"&&fh(e.getLabelModel())===0}function py(e,t){var r={};return T(e.mapDimensionsAll(t),function(i){r[TC(e,i)]=!0}),gt(r)}function KL(e,t,r){t&&T(py(t,r),function(i){var n=t.getApproximateExtent(i);n[0]<e[0]&&(e[0]=n[0]),n[1]>e[1]&&(e[1]=n[1])})}function tn(e){return e==="middle"||e==="center"}function ua(e){return e.getShallow("show")}function gy(e){var t=e.get("breaks",!0);if(t!=null)return!Xt()||!rM(e.axis)?void 0:t}function rM(e){return(e.dim==="x"||e.dim==="y"||e.dim==="z"||e.dim==="single")&&e.type!=="category"}var iM=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),ld=[],nM={registerPreprocessor:Zm,registerProcessor:qm,registerPostInit:QT,registerPostUpdate:JT,registerUpdateLifecycle:ah,registerAction:sn,registerCoordinateSystem:jT,registerLayout:tC,registerVisual:_i,registerTransform:rC,registerLoading:Km,registerMap:eC,registerImpl:PT,PRIORITY:YT,ComponentModel:ht,ComponentView:rr,SeriesModel:Dr,ChartView:ze,registerComponentModel:function(e){ht.registerClass(e)},registerComponentView:function(e){rr.registerClass(e)},registerSeriesModel:function(e){Dr.registerClass(e)},registerChartView:function(e){ze.registerClass(e)},registerCustomSeries:function(e,t){ET(e,t)},registerSubTypeDefaulter:function(e,t){ht.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){U_(e,t)}};function $o(e){if(B(e)){T(e,function(t){$o(t)});return}nt(ld,e)>=0||(ld.push(e),K(e)&&(e={install:e}),e.install(nM))}var aM=_t(),Un=_t(),we={estimate:1,determine:2};function Zo(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function my(e,t){var r=X(t,function(i){return e.scale.parse(i)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function oM(e,t){var r=e.getLabelModel().get("customValues");if(r){var i=pa(e),n=e.scale.getExtent(),a=my(e,r),o=At(a,function(s){return s>=n[0]&&s<=n[1]});return{labels:X(o,function(s){var u={value:s};return{formattedLabel:i(u),rawLabel:e.scale.getLabel(u),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?uM(e,t):fM(e)}function sM(e,t,r){var i=e.getTickModel().get("customValues");if(i){var n=e.scale.getExtent(),a=my(e,i);return{ticks:At(a,function(o){return o>=n[0]&&o<=n[1]})}}return e.type==="category"?lM(e,t):{ticks:X(e.scale.getTicks(r),function(o){return o.value})}}function uM(e,t){var r=e.getLabelModel(),i=yy(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:i}function yy(e,t,r){var i=vM(e),n=fh(t),a=r.kind===we.estimate;if(!a){var o=Sy(i,n);if(o)return o}var s,u;K(n)?s=xy(e,n):(u=n==="auto"?cM(e,r):n,s=wy(e,u));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return Wl(i,n,l),!0}):Wl(i,n,l),l}function lM(e,t){var r=hM(e),i=fh(t),n=Sy(r,i);if(n)return n;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),K(i))a=xy(e,i,!0);else if(i==="auto"){var s=yy(e,e.getLabelModel(),Zo(we.determine));o=s.labelCategoryInterval,a=X(s.labels,function(u){return u.tickValue})}else o=i,a=wy(e,o,!0);return Wl(r,i,{ticks:a,tickCategoryInterval:o})}function fM(e){var t=e.scale.getTicks(),r=pa(e);return{labels:X(t,function(i,n){return{formattedLabel:r(i,n),rawLabel:e.scale.getLabel(i),tickValue:i.value,time:i.time,break:i.break}})}}var hM=_y("axisTick"),vM=_y("axisLabel");function _y(e){return function(r){return Un(r)[e]||(Un(r)[e]={list:[]})}}function Sy(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function Wl(e,t,r){return e.list.push({key:t,value:r}),r}function cM(e,t){if(t.kind===we.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Un(e).autoInterval=r,!0}),r}var i=Un(e).autoInterval;return i??(Un(e).autoInterval=e.calculateCategoryInterval(t))}function dM(e,t){var r=t.kind,i=gM(e),n=pa(e),a=(i.axisRotate-i.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),u=o.count();if(s[1]-s[0]<1)return 0;var l=1,f=40;u>f&&(l=Math.max(1,Math.floor(u/f)));for(var h=s[0],c=e.dataToCoord(h+1)-e.dataToCoord(h),v=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),g=0,m=0;h<=s[1];h+=l){var p=0,y=0,_=xp(n({value:h}),i.font,"center","top");p=_.width*1.3,y=_.height*1.3,g=Math.max(g,p,7),m=Math.max(m,y,7)}var S=g/v,w=m/d;isNaN(S)&&(S=1/0),isNaN(w)&&(w=1/0);var b=Math.max(0,Math.floor(Math.min(S,w)));if(r===we.estimate)return t.out.noPxChangeTryDetermine.push(ut(pM,null,e,b,u)),b;var x=by(e,b,u);return x??b}function pM(e,t,r){return by(e,t,r)==null}function by(e,t,r){var i=aM(e.model),n=e.getExtent(),a=i.lastAutoInterval,o=i.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&i.axisExtent0===n[0]&&i.axisExtent1===n[1])return a;i.lastTickCount=r,i.lastAutoInterval=t,i.axisExtent0=n[0],i.axisExtent1=n[1]}function gM(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function wy(e,t,r){var i=pa(e),n=e.scale,a=n.getExtent(),o=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=n.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=dy(e),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(m){var p={value:m};s.push(r?m:{formattedLabel:i(p),rawLabel:n.getLabel(p),tickValue:m,time:void 0,break:void 0})}return s}function xy(e,t,r){var i=e.scale,n=pa(e),a=[];return T(i.getTicks(),function(o){var s=i.getLabel(o),u=o.value;t(o.value,s)&&a.push(r?u:{formattedLabel:n(o),rawLabel:s,tickValue:u,time:void 0,break:void 0})}),a}var fd=[0,1],mM=function(){function e(t,r,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=i||[0,0]}return e.prototype.contain=function(t){var r=this._extent,i=Math.min(r[0],r[1]),n=Math.max(r[0],r[1]);return t>=i&&t<=n},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return q_(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var i=this._extent;i[0]=t,i[1]=r},e.prototype.dataToCoord=function(t,r){var i=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(i=i.slice(),hd(i,n.count())),ev(t,fd,i,r)},e.prototype.coordToData=function(t,r){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),hd(i,n.count()));var a=ev(t,i,fd,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),i=sM(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=i.ticks,a=X(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return yM(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var i=this.scale.getMinorTicks(r),n=X(i,function(a){return X(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},e.prototype.getViewLabels=function(t){return t=t||Zo(we.determine),oM(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),i=r[1]-r[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},e.prototype.calculateCategoryInterval=function(t){return t=t||Zo(we.determine),dM(this,t)},e}();function hd(e,t){var r=e[1]-e[0],i=t,n=r/i/2;e[0]+=n,e[1]-=n}function yM(e,t,r,i){var n=t.length;if(!e.onBand||r||!n)return;var a=e.getExtent(),o,s;if(n===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var u=t[n-1].tickValue-t[0].tickValue,l=(t[n-1].coord-t[0].coord)/u;T(t,function(v){v.coord-=l/2,v.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+l*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&c(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),c(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&c(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function c(v,d){return v=Lt(v),d=Lt(d),h?v>d:v<d}}var vd=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],_M=1,qo=2,Ty=_M|qo;function Ko(e,t,r){r=r||Ty,t?e.dirty|=r:e.dirty&=~r}function Cy(e,t){return t=t||Ty,e.dirty==null||!!(e.dirty&t)}function Ge(e){if(e)return Cy(e)&&SM(e,e.label,e),e}function SM(e,t,r){var i=t.getComputedTransform();e.transform=Ef(e.transform,i);var n=e.localRect=jn(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,u=r&&r.minMarginForce,l=r&&r.marginDefault,f=a.__marginType;f==null&&l&&(o=l,f=Gi.textMargin);for(var h=0;h<4;h++)Du[h]=f===Gi.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Gi.textMargin&&Fo(n,Du,!1,!1);var c=e.rect=jn(e.rect,n);return i&&c.applyTransform(i),f===Gi.minMargin&&Fo(c,Du,!1,!1),e.axisAligned=kf(i),(e.label=e.label||{}).ignore=t.ignore,Ko(e,!1),Ko(e,!0,qo),e}var Du=[0,0,0,0];function bM(e,t,r){return e.transform=Ef(e.transform,r),e.localRect=jn(e.localRect,t),e.rect=jn(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=kf(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function wM(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var i=e.rect;i&&(i.x+=t.x,i.y+=t.y);var n=e.obb;n&&n.fromBoundingRect(e.localRect,r)}}function cd(e,t){for(var r=0;r<vd.length;r++){var i=vd[r];e[i]==null&&(e[i]=t[i])}return Ge(e)}function dd(e){var t=e.obb;return(!t||Cy(e,qo))&&(e.obb=t=t||new dg,t.fromBoundingRect(e.localRect,e.transform),Ko(e,!1,qo)),t}function QL(e,t,r,i,n){var a=e.length,o=pr[t],s=Ki[t];if(a<2)return!1;e.sort(function(x,D){return x.rect[o]-D.rect[o]});for(var u=0,l,f=!1,h=0;h<a;h++){var c=e[h],v=c.rect;l=v[o]-u,l<0&&(v[o]-=l,c.label[o]-=l,f=!0),u=v[o]+v[s]}var d=e[0],g=e[a-1],m,p;y(),m<0&&w(-m,.8),p<0&&w(p,.8),y(),_(m,p,1),_(p,m,-1),y(),m<0&&b(-m),p<0&&b(p);function y(){m=d.rect[o]-r,p=i-g.rect[o]-g.rect[s]}function _(x,D,C){if(x<0){var A=Math.min(D,-x);if(A>0){S(A*C,0,a);var M=A+x;M<0&&w(-M*C,1)}else w(-x*C,1)}}function S(x,D,C){x!==0&&(f=!0);for(var A=D;A<C;A++){var M=e[A],I=M.rect;I[o]+=x,M.label[o]+=x}}function w(x,D){for(var C=[],A=0,M=1;M<a;M++){var I=e[M-1].rect,L=Math.max(e[M].rect[o]-I[o]-I[s],0);C.push(L),A+=L}if(A){var P=Math.min(Math.abs(x)/A,D);if(x>0)for(var M=0;M<a-1;M++){var k=C[M]*P;S(k,0,M+1)}else for(var M=a-1;M>0;M--){var k=C[M-1]*P;S(-k,M,a)}}}function b(x){var D=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(a-1)),A=0;A<a-1;A++)if(D>0?S(C,0,A+1):S(-C,a-A-1,a),x-=C,x<=0)return}return f}function JL(e){for(var t=0;t<e.length;t++){var r=e[t],i=r.defaultAttr,n=r.labelLine;r.label.attr("ignore",i.ignore),n&&n.attr("ignore",i.labelGuideIgnore)}}function xM(e){var t=[];e.sort(function(l,f){return(f.suggestIgnore?1:0)-(l.suggestIgnore?1:0)||f.priority-l.priority});function r(l){if(!l.ignore){var f=l.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}l.ignore=!0}for(var i=0;i<e.length;i++){var n=Ge(e[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,u=0;u<t.length;u++)if(hh(n,t[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(n)}}}function hh(e,t,r,i){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,i)?!1:e.axisAligned&&t.axisAligned?!0:dd(e).intersect(dd(t),r,i)}var TM=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return DC(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var i=new zt,n=aa("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);i.add(n),n.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=r.itemHeight*.8,l=aa(s,(r.itemWidth-u)/2,(r.itemHeight-u)/2,u,u,r.itemStyle.fill);i.add(l),l.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill=tt.color.neutral00,l.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Dr);function My(e,t){var r=e.mapDimensionsAll("defaultedLabel"),i=r.length;if(i===1){var n=Qi(e,t,r[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<r.length;o++)a.push(Qi(e,t,r[o]));return a.join(" ")}}function CM(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!B(t))return t+"";for(var i=[],n=0;n<r.length;n++){var a=e.getDimensionIndex(r[n]);a>=0&&i.push(t[a])}return i.join(" ")}var vh=function(e){z(t,e);function t(r,i,n,a){var o=e.call(this)||this;return o.updateData(r,i,n,a),o}return t.prototype._createSymbol=function(r,i,n,a,o,s){this.removeAll();var u=aa(r,-1,-1,2,2,null,s);u.attr({z2:$(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),u.drift=MM,this._symbolType=r,this.add(u)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Oo(this.childAt(0))},t.prototype.downplay=function(){Bo(this.childAt(0))},t.prototype.setZ=function(r,i){var n=this.childAt(0);n.zlevel=r,n.z=i},t.prototype.setDraggable=function(r,i){var n=this.childAt(0);n.draggable=r,n.cursor=!i&&r?"move":n.cursor},t.prototype.updateData=function(r,i,n,a){this.silent=!1;var o=r.getItemVisual(i,"symbol")||"circle",s=r.hostModel,u=t.getSymbolSize(r,i),l=t.getSymbolZ2(r,i),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var c=r.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,r,i,u,l,c)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:u[0]/2,scaleY:u[1]/2};h?v.attr(d):Mr(v,d,s,i),cb(v)}if(this._updateCommon(r,i,u,n,a),f){var v=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,on(v,d,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,i,n,a,o){var s=this.childAt(0),u=r.hostModel,l,f,h,c,v,d,g,m,p;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,m=a.hoverScale,p=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(i),_=y.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=Rf(y),m=_.getShallow("scale"),p=y.getShallow("cursor")}var S=r.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Mm(r.getItemVisual(i,"symbolOffset"),n);w&&(s.x=w[0],s.y=w[1]),p&&s.attr("cursor",p);var b=r.getItemVisual(i,"style"),x=b.fill;if(s instanceof Ar){var D=s.style;s.useStyle(R({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},b))}else s.__isEmptyBrush?s.useStyle(R({},b)):s.useStyle(b),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(i,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;Mg(s,g,{labelFetcher:u,labelDataIndex:i,defaultText:I,inheritColor:x,defaultOpacity:b.opacity});function I(k){return M?r.getName(k):My(r,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),hl(this,c,v,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,i,n){var a=this.childAt(0),o=vt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&No(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();No(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,i){return dT(r.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(r,i){return r.getItemVisual(i,"z2")},t}(zt);function MM(e,t){this.parent.drift(e,t)}function Au(e,t,r,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(r))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function pd(e){return e!=null&&!U(e)&&(e={isIgnore:e}),e||{}}function gd(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Rf(t),cursorStyle:t.get("cursor")}}var DM=function(){function e(t){this.group=new zt,this._SymbolCtor=t||vh}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=pd(r);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,u=gd(t),l={disableAnimation:s},f=r.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var c=f(h);if(Au(t,c,h,r)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Au(t,d,h,r)){i.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==g)i.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var p={x:d[0],y:d[1]};s?v.attr(p):Mr(v,p,n)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=gd(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,i){this._progressiveEls=[],i=pd(i);function n(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(Au(r,o,a,i)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Pf(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){r.remove(n)},i.hostModel)}):r.removeAll()},e}();function Dy(e,t,r){var i=e.getBaseAxis(),n=e.getOtherAxis(i),a=AM(n,r),o=i.dim,s=n.dim,u=t.mapDimension(s),l=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=X(e.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return Ji(t,h[0])&&(c=!0,h[0]=v),Ji(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function AM(e,t){var r=0,i=e.scale.getExtent();return t==="start"?r=i[0]:t==="end"?r=i[1]:ct(t)&&!isNaN(t)?r=t:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function Ay(e,t,r,i){var n=NaN;e.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function LM(e,t){var r=[];return t.diff(e).add(function(i){r.push({cmd:"+",idx:i})}).update(function(i,n){r.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){r.push({cmd:"-",idx:i})}).execute(),r}function IM(e,t,r,i,n,a,o,s){for(var u=LM(e,t),l=[],f=[],h=[],c=[],v=[],d=[],g=[],m=Dy(n,t,o),p=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<u.length;_++){var S=u[_],w=!0,b=void 0,x=void 0;switch(S.cmd){case"=":b=S.idx*2,x=S.idx1*2;var D=p[b],C=p[b+1],A=y[x],M=y[x+1];(isNaN(D)||isNaN(C))&&(D=A,C=M),l.push(D,C),f.push(A,M),h.push(r[b],r[b+1]),c.push(i[x],i[x+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=m.dataDimsForPoint,P=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);x=I*2,l.push(P[0],P[1]),f.push(y[x],y[x+1]);var k=Ay(m,n,t,I);h.push(k[0],k[1]),c.push(i[x],i[x+1]),g.push(t.getRawIndex(I));break;case"-":w=!1}w&&(v.push(S),d.push(d.length))}d.sort(function(pt,Ht){return g[pt]-g[Ht]});for(var E=l.length,Y=je(E),N=je(E),F=je(E),H=je(E),V=[],_=0;_<d.length;_++){var G=d[_],Z=_*2,it=G*2;Y[Z]=l[it],Y[Z+1]=l[it+1],N[Z]=f[it],N[Z+1]=f[it+1],F[Z]=h[it],F[Z+1]=h[it+1],H[Z]=c[it],H[Z+1]=c[it+1],V[_]=v[G]}return{current:Y,next:N,stackedOnCurrent:F,stackedOnNext:H,status:V}}var fr=Math.min,hr=Math.max;function hi(e,t){return isNaN(e)||isNaN(t)}function Ul(e,t,r,i,n,a,o,s,u){for(var l,f,h,c,v,d,g=r,m=0;m<i;m++){var p=t[g*2],y=t[g*2+1];if(g>=n||g<0)break;if(hi(p,y)){if(u){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](p,y),h=p,c=y;else{var _=p-l,S=y-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var w=g+a,b=t[w*2],x=t[w*2+1];b===p&&x===y&&m<i;)m++,w+=a,g+=a,b=t[w*2],x=t[w*2+1],p=t[g*2],y=t[g*2+1],_=p-l,S=y-f;var D=m+1;if(u)for(;hi(b,x)&&D<i;)D++,w+=a,b=t[w*2],x=t[w*2+1];var C=.5,A=0,M=0,I=void 0,L=void 0;if(D>=i||hi(b,x))v=p,d=y;else{A=b-l,M=x-f;var P=p-l,k=b-p,E=y-f,Y=x-y,N=void 0,F=void 0;if(s==="x"){N=Math.abs(P),F=Math.abs(k);var H=A>0?1:-1;v=p-H*N*o,d=y,I=p+H*F*o,L=y}else if(s==="y"){N=Math.abs(E),F=Math.abs(Y);var V=M>0?1:-1;v=p,d=y-V*N*o,I=p,L=y+V*F*o}else N=Math.sqrt(P*P+E*E),F=Math.sqrt(k*k+Y*Y),C=F/(F+N),v=p-A*o*(1-C),d=y-M*o*(1-C),I=p+A*o*C,L=y+M*o*C,I=fr(I,hr(b,p)),L=fr(L,hr(x,y)),I=hr(I,fr(b,p)),L=hr(L,fr(x,y)),A=I-p,M=L-y,v=p-A*N/F,d=y-M*N/F,v=fr(v,hr(l,p)),d=fr(d,hr(f,y)),v=hr(v,fr(l,p)),d=hr(d,fr(f,y)),A=p-v,M=y-d,I=p+A*F/N,L=y+M*F/N}e.bezierCurveTo(h,c,v,d,p,y),h=I,c=L}else e.lineTo(p,y)}l=p,f=y,g+=a}return m}var Ly=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),PM=function(e){z(t,e);function t(r){var i=e.call(this,r)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:tt.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Ly},t.prototype.buildPath=function(r,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&hi(n[o*2-2],n[o*2-1]);o--);for(;a<o&&hi(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Ul(r,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(r,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=di.CMD,s,u,l=i==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,g=void 0,m=void 0,p=void 0,y=void 0,_=void 0;switch(c){case o.M:s=a[h++],u=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=l?(r-s)/(v-s):(r-u)/(d-u),_<=1&&_>=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[r,S]:[S,r]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],m=a[h++],p=a[h++],y=a[h++];var w=l?Co(s,v,g,p,r,f):Co(u,d,m,y,r,f);if(w>0)for(var b=0;b<w;b++){var x=f[b];if(x<=1&&x>=0){var S=l?xt(u,d,m,y,x):xt(s,v,g,p,x);return l?[r,S]:[S,r]}}s=p,u=y;break}}},t}(lt),kM=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ly),EM=function(e){z(t,e);function t(r){var i=e.call(this,r)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new kM},t.prototype.buildPath=function(r,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,u=i.smoothMonotone;if(i.connectNulls){for(;s>0&&hi(n[s*2-2],n[s*2-1]);s--);for(;o<s&&hi(n[o*2],n[o*2+1]);o++);}for(;o<s;){var l=Ul(r,n,o,s,s,1,i.smooth,u,i.connectNulls);Ul(r,a,o+l-1,l,s,-1,i.stackedOnSmooth,u,i.connectNulls),o+=l+1,r.closePath()}},t}(lt);function Iy(e,t,r,i,n){var a=e.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new Rt({shape:{x:o,y:s,width:u,height:l}});if(t){var c=e.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=u),h.shape.width=0):(d||(h.shape.y+=l),h.shape.height=0);var g=K(n)?function(m){n(m,h)}:null;on(h,{shape:{width:u,height:l,x:o,y:s}},r,null,i,g)}return h}function Py(e,t,r){var i=e.getArea(),n=Lt(i.r0,1),a=Lt(i.r,1),o=new hs({shape:{cx:Lt(e.cx,1),cy:Lt(e.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,on(o,{shape:{endAngle:i.endAngle,r:a}},r)}return o}function jL(e,t,r,i,n){if(e){if(e.type==="polar")return Py(e,t,r);if(e.type==="cartesian2d")return Iy(e,t,r,i,n)}else return null;return null}function RM(e,t){return e.type===t}function md(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function yd(e){for(var t=1/0,r=1/0,i=-1/0,n=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(r=Math.min(s,r),n=Math.max(s,n))}return[[t,r],[i,n]]}function _d(e,t){var r=yd(e),i=r[0],n=r[1],a=yd(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function Sd(e){return ct(e)?e:e?.5:0}function OM(e,t,r){if(!r.valueDim)return[];for(var i=t.count(),n=je(i*2),a=0;a<i;a++){var o=Ay(r,e,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function vr(e,t,r,i,n){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],u=0,l=[],f=[],h=[],c=[];if(n){for(u=0;u<e.length;u+=2){var v=t||e;!isNaN(v[u])&&!isNaN(v[u+1])&&c.push(e[u],e[u+1])}e=c}for(u=0;u<e.length-2;u+=2)switch(h[0]=e[u+2],h[1]=e[u+3],f[0]=e[u],f[1]=e[u+1],s.push(f[0],f[1]),i){case"end":l[o]=h[o],l[1-o]=f[1-o],s.push(l[0],l[1]);break;case"middle":var d=(f[o]+h[o])/2,g=[];l[o]=g[o]=d,l[1-o]=f[1-o],g[1-o]=h[1-o],s.push(l[0],l[1]),s.push(g[0],g[1]);break;default:l[o]=f[o],l[1-o]=h[1-o],s.push(l[0],l[1])}return s.push(e[u++],e[u++]),s}function BM(e,t){var r=[],i=e.length,n,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),g=p_(d,[f.color,h.color]);return{coord:c,color:g}}for(var s=0;s<i;s++){var u=e[s],l=u.coord;if(l<0)n=u;else if(l>t){a?r.push(o(a,u,t)):n&&r.push(o(n,u,0),o(n,u,t));break}else n&&(r.push(o(n,u,0)),n=null),r.push(u),a=u}return r}function NM(e,t,r){var i=e.getVisual("visualMeta");if(!(!i||!i.length||!e.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=e.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var u=t.getAxis(n),l=X(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=BM(l,n==="x"?r.getWidth():r.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,g=c[0].coord-d,m=c[v-1].coord+d,p=m-g;if(p<.001)return"transparent";T(c,function(_){_.offset=(_.coord-g)/p}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var y=new cg(0,0,0,0,c,!0);return y[n]=g,y[n+"2"]=m,y}}}function FM(e,t,r){var i=e.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(n&&zM(a,t))){var o=t.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function zM(e,t){var r=e.getExtent(),i=Math.abs(r[1]-r[0])/e.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(vh.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>i)return!1;return!0}function HM(e,t){return isNaN(e)||isNaN(t)}function VM(e){for(var t=e.length/2;t>0&&HM(e[t*2-2],e[t*2-1]);t--);return t-1}function bd(e,t){return[e[t*2],e[t*2+1]]}function GM(e,t,r){for(var i=e.length/2,n=r==="x"?0:1,a,o,s=0,u=-1,l=0;l<i;l++)if(o=e[l*2+n],!(isNaN(o)||isNaN(e[l*2+1-n]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function ky(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Ve.length;t++)if(e.get([Ve[t],"endLabel","show"]))return!0;return!1}function Lu(e,t,r,i){if(RM(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},u=ky(i)?function(v,d){e._endLabelOnDuring(v,d,o,s,a,n,t)}:null,l=t.getBaseAxis().isHorizontal(),f=Iy(t,r,i,function(){var v=e._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},u);if(!i.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);l?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return u&&u(1,f),f}else return Py(t,r,i)}function WM(e,t){var r=t.getBaseAxis(),i=r.isHorizontal(),n=r.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var UM=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new zt,i=new DM;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=r,this._changePolyState=ut(this._changePolyState,this)},t.prototype.render=function(r,i,n){var a=r.coordinateSystem,o=this.group,s=r.getData(),u=r.getModel("lineStyle"),l=r.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,d=this._polyline,g=this._polygon,m=this._lineGroup,p=!i.ssr&&r.get("animation"),y=!l.isEmpty(),_=l.get("origin"),S=Dy(a,s,_),w=y&&OM(a,s,S),b=r.get("showSymbol"),x=r.get("connectNulls"),D=b&&!h&&FM(r,s,a),C=this._data;C&&C.eachItemGraphicEl(function(pt,Ht){pt.__temp&&(o.remove(pt),C.setItemGraphicEl(Ht,null))}),b||v.remove(),o.add(m);var A=h?!1:r.get("step"),M;a&&a.getArea&&r.get("clip",!0)&&(M=a.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=NM(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===a.type&&A===this._step))b&&v.updateData(s,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(pt){return[f[pt*2],f[pt*2+1]]}}),p&&this._initSymbolLabelAnimation(s,a,M),A&&(w&&(w=vr(w,f,a,A,x)),f=vr(f,null,a,A,x)),d=this._newPolyline(f),y?g=this._newPolygon(f,w):g&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,pi(I)),m.setClipPath(Lu(this,a,!0,r));else{y&&!g?g=this._newPolygon(f,w):g&&!y&&(m.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,pi(I));var L=m.getClipPath();if(L){var P=Lu(this,a,!1,r);on(L,{shape:P.shape},r)}else m.setClipPath(Lu(this,a,!0,r));b&&v.updateData(s,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(pt){return[f[pt*2],f[pt*2+1]]}}),(!md(this._stackedOnPoints,w)||!md(this._points,f))&&(p?this._doUpdateAnimation(s,w,a,n,A,_,x):(A&&(w&&(w=vr(w,f,a,A,x)),f=vr(f,null,a,A,x)),d.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:w})))}var k=r.getModel("emphasis"),E=k.get("focus"),Y=k.get("blurScope"),N=k.get("disabled");if(d.useStyle(st(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),Rv(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}vt(d).seriesIndex=r.seriesIndex,hl(d,E,Y,N);var H=Sd(r.get("smooth")),V=r.get("smoothMonotone");if(d.setShape({smooth:H,smoothMonotone:V,connectNulls:x}),g){var G=s.getCalculationInfo("stackedOnSeries"),Z=0;g.useStyle(st(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(Z=Sd(G.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:Z,smoothMonotone:V,connectNulls:x}),Rv(g,r,"areaStyle"),vt(g).seriesIndex=r.seriesIndex,hl(g,E,Y,N)}var it=this._changePolyState;s.eachItemGraphicEl(function(pt){pt&&(pt.onHoverStateChange=it)}),this._polyline.onHoverStateChange=it,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=A,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,d),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,i){vt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,i,n,a){var o=r.getData(),s=ci(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=r.get("zlevel")||0,v=r.get("z")||0;l=new vh(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else ze.prototype.highlight.call(this,r,i,n,a)},t.prototype.downplay=function(r,i,n,a){var o=r.getData(),s=ci(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else ze.prototype.downplay.call(this,r,i,n,a)},t.prototype._changePolyState=function(r){var i=this._polygon;Lv(this._polyline,r),i&&Lv(i,r)},t.prototype._newPolyline=function(r){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new PM({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(r,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new EM({shape:{points:r,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(r,i,n){var a,o,s=i.getBaseAxis(),u=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var l=r.hostModel,f=l.get("animationDuration");K(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=K(h)?h(null):h;r.eachItemGraphicEl(function(v,d){var g=v;if(g){var m=[v.x,v.y],p=void 0,y=void 0,_=void 0;if(n)if(o){var S=n,w=i.pointToCoord(m);a?(p=S.startAngle,y=S.endAngle,_=-w[1]/180*Math.PI):(p=S.r0,y=S.r,_=w[0])}else{var b=n;a?(p=b.x,y=b.x+b.width,_=v.x):(p=b.y+b.height,y=b.y,_=v.y)}var x=y===p?0:(_-p)/(y-p);u&&(x=1-x);var D=K(h)?h(d):f*x+c,C=g.getSymbolPath(),A=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:D}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:D}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,i,n){var a=r.getModel("endLabel");if(ky(r)){var o=r.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new be({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=VM(u);f>=0&&(Mg(s,Rf(r,"endLabel"),{inheritColor:n,labelFetcher:r,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?CM(o,v):My(o,h)},enableTextSetter:!0},WM(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,i,n,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){r<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,m=u.getBaseAxis(),p=m.isHorizontal(),y=m.inverse,_=i.shape,S=y?p?_.x:_.y+_.height:p?_.x+_.width:_.y,w=(p?g:0)*(y?-1:1),b=(p?0:-g)*(y?-1:1),x=p?"x":"y",D=GM(h,S,x),C=D.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var I=bd(h,C[0]);l.attr({x:I[0]+w,y:I[1]+b}),o&&(M=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,x);I&&l.attr({x:I[0]+w,y:I[1]+b});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(M=Fp(n,d,L,P,D.t))}a.lastFrameIndex=C[0]}else{var k=r===1||a.lastFrameIndex>0?C[0]:0,I=bd(h,k);o&&(M=c.getRawValue(k)),l.attr({x:I[0]+w,y:I[1]+b})}if(o){var E=ds(l);typeof E.setLabelText=="function"&&E.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(r,i,n,a,o,s,u){var l=this._polyline,f=this._polygon,h=r.hostModel,c=IM(this._data,r,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,m=c.stackedOnNext;if(o&&(d=vr(c.stackedOnCurrent,c.current,n,o,u),v=vr(c.current,null,n,o,u),m=vr(c.stackedOnNext,c.next,n,o,u),g=vr(c.next,null,n,o,u)),_d(v,g)>3e3||f&&_d(d,m)>3e3){l.stopAnimation(),l.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:m}));return}l.shape.__points=c.current,l.shape.points=v;var p={shape:{points:g}};c.current!==v&&(p.shape.__points=c.next),l.stopAnimation(),Mr(l,p,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Mr(f,{shape:{stackedOnPoints:m}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var y=[],_=c.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var b=r.getItemGraphicEl(_[S].idx1);b&&y.push({el:b,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var x=l.shape.__points,D=0;D<y.length;D++){var C=y[D].el,A=y[D].ptIdx*2;C.x=x[A],C.y=x[A+1],C.markRedraw()}})},t.prototype.remove=function(r){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ze);function YM(e,t){return{seriesType:e,plan:eh(),reset:function(r){var i=r.getData(),n=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(n){var s=X(n.dimensions,function(v){return i.mapDimension(v)}).slice(0,2),u=s.length,l=i.getCalculationInfo("stackResultDimension");Ji(i,s[0])&&(s[0]=l),Ji(i,s[1])&&(s[1]=l);var f=i.getStore(),h=i.getDimensionIndex(s[0]),c=i.getDimensionIndex(s[1]);return u&&{progress:function(v,d){for(var g=v.end-v.start,m=o&&je(g*u),p=[],y=[],_=v.start,S=0;_<v.end;_++){var w=void 0;if(u===1){var b=f.get(h,_);w=n.dataToPoint(b,null,y)}else p[0]=f.get(h,_),p[1]=f.get(c,_),w=n.dataToPoint(p,null,y);o?(m[S++]=w[0],m[S++]=w[1]):d.setItemLayout(_,w.slice())}o&&d.setLayout("points",m)}}}}}}var XM={average:function(e){for(var t=0,r=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},$M=function(e){return Math.round(e.length/2)};function ZM(e){return{seriesType:e,reset:function(t,r,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(l.dim),1/v));var d=void 0;W(a)?d=XM[a]:K(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(l.dim),1/v,d,$M))}}}}}function t2(e){e.registerChartView(UM),e.registerSeriesModel(TM),e.registerLayout(YM("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",i)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ZM("line"))}var Ey={left:0,right:0,top:0,bottom:0},Qo=["25%","25%"],qM=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,i){var n=ms(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&r.outerBounds&&mi(r.outerBounds,n)},t.prototype.mergeOption=function(r,i){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&mi(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Ey,outerBoundsContain:"all",outerBoundsClampWidth:Qo[0],outerBoundsClampHeight:Qo[1],backgroundColor:tt.color.transparent,borderWidth:1,borderColor:tt.color.neutral30},t}(ht),Yl=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",te).models[0]},t.type="cartesian2dAxis",t}(ht);We(Yl,iM);var Ry={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:tt.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:tt.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:tt.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[tt.color.backgroundTint,tt.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:tt.color.neutral00,borderColor:tt.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},KM=ot({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Ry),ch=ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:tt.color.axisMinorSplitLine,width:1}}},Ry),QM=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ch),JM=st({logBase:10},ch);const jM={category:KM,value:ch,time:QM,log:JM};var tD={value:1,category:1,time:1,log:1},Xl=null;function e2(e){Xl||(Xl=e)}function bs(){return Xl}function wd(e,t,r,i){T(tD,function(n,a){var o=ot(ot({},jM[a],!0),i,!0),s=function(u){z(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=ea(this),v=c?ms(f):{},d=h.getTheme();ot(f,d.get(a+"Axis")),ot(f,this.getDefaultOption()),f.type=xd(f),c&&mi(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Hl.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.prototype.updateAxisBreaks=function(f){var h=bs();return h?h.updateModelAxisBreak(this,f):{breaks:[]}},l.type=t+"Axis."+a,l.defaultOption=o,l}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",xd)}function xd(e){return e.type||(e.data?"category":"value")}var eD=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),At(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),$l=["x","y"];function Td(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var rD=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=$l,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!Td(r)||!Td(i))){var n=r.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),u=n[1]-n[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-n[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=fa([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(r[0]))&&n.contain(n.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,i){var n=this.dataToPoint(r),a=this.dataToPoint(i),o=this.getArea(),s=new J(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,i,n){n=n||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return he(n,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=u.toGlobalCoord(u.dataToCoord(o,i)),n},t.prototype.clampData=function(r,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),u=n.parse(r[0]),l=a.parse(r[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(r,i,n){if(n=n||[],this._invTransform)return he(n,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(r[0]),i),n[1]=o.coordToData(o.toLocalCoord(r[1]),i),n},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-r,o=Math.min(n[0],n[1])-r,s=Math.max(i[0],i[1])-a+r,u=Math.max(n[0],n[1])-o+r;return new J(a,o,s,u)},t}(eD),iD=function(e){z(t,e);function t(r,i,n,a,o){var s=e.call(this,r,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),r&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(r,i){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(mM),Oy="expandAxisBreak",nD="collapseAxisBreak",aD="toggleAxisBreak",dh="axisbreakchanged",oD={type:Oy,event:dh,update:"update",refineEvent:ph},sD={type:nD,event:dh,update:"update",refineEvent:ph},uD={type:aD,event:dh,update:"update",refineEvent:ph};function ph(e,t,r,i){var n=[];return T(e,function(a){n=n.concat(a.eventBreaks)}),{eventContent:{breaks:n}}}function r2(e){e.registerAction(oD,t),e.registerAction(sD,t),e.registerAction(uD,t);function t(r,i){var n=[],a=fo(i,r);function o(s,u){T(a[s],function(l){var f=l.updateAxisBreaks(r);T(f.breaks,function(h){var c;n.push(st((c={},c[u]=l.componentIndex,c),h))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var yr=Math.PI,lD=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],fD=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],en=_t(),By=_t(),Ny=function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,i=t.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},e}();function hD(e,t,r,i){var n=r.axis,a=t.ensureRecord(r),o=[],s,u=gh(e.axisName)&&tn(e.nameLocation);T(i,function(d){var g=Ge(d);if(!(!g||g.label.ignore)){o.push(g);var m=a.transGroup;u&&(m.transform?fa(xn,m.transform):uf(xn),g.transform&&Rn(xn,xn,g.transform),J.copy(eo,g.localRect),eo.applyTransform(xn),s?s.union(eo):J.copy(s=new J(0,0,0,0),eo))}});var l=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[l];if(o.sort(function(d,g){return Math.abs(d.label[l]-f)-Math.abs(g.label[l]-f)}),u&&s){var h=n.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new J(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var xn=Oe(),eo=new J(0,0,0,0),Fy=function(e,t,r,i,n,a){if(tn(e.nameLocation)){var o=a.stOccupiedRect;o&&zy(bM({},o,a.transGroup.transform),i,n)}else Hy(a.labelInfoList,a.dirVec,i,n)};function zy(e,t,r){var i=new ft;hh(e,t,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&wM(t,i)}function Hy(e,t,r,i){for(var n=ft.dot(i,t)>=0,a=0,o=e.length;a<o;a++){var s=e[n?a:o-1-a];s.label.ignore||zy(s,r,i)}}var br=function(){function e(t,r,i,n){this.group=new zt,this._axisModel=t,this._api=r,this._local={},this._shared=n||new Ny(Fy),this._resetCfgDetermined(i)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=$(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=$(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:$(t.nameDirection,1),tickDirection:$(t.tickDirection,1),labelDirection:$(t.labelDirection,1),labelOffset:$(t.labelOffset,0),silent:$(t.silent,!0),axisName:n,nameLocation:Ui(r.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:gh(n)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new zt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var u=this._shared.ensureRecord(r);u.transGroup=this._transformGroup,u.dirVec=new ft(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(vD,function(n){t[n]&&cD[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},e.innerTextLayout=function(t,r,i){var n=Ap(r-t),a,o;return Po(n)?(o=i>0?"top":"bottom",a="center"):Po(n-yr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<yr?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),vD=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],cD={axisLine:function(e,t,r,i,n,a,o){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var u=i.axis.getExtent(),l=a.transform,f=[u[0],0],h=[u[1],0],c=f[0]>h[0];l&&(he(f,f,l),he(h,h,l));var v=R({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get(["axisLine","breakLine"])&&i.axis.scale.hasBreaks())bs().buildAxisBreakLine(i,n,a,d);else{var g=new Cr(R({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));Jn(g.shape,g.style.lineWidth),g.anid="line",n.add(g)}var m=i.get(["axisLine","symbol"]);if(m!=null){var p=i.get(["axisLine","symbolSize"]);W(m)&&(m=[m,m]),(W(p)||ct(p))&&(p=[p,p]);var y=Mm(i.get(["axisLine","symbolOffset"])||0,p),_=p[0],S=p[1];T([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(w,b){if(m[b]!=="none"&&m[b]!=null){var x=aa(m[b],-_/2,-S/2,_,S,v.stroke,!0),D=w.r+w.offset,C=c?h:f;x.attr({rotation:w.rotate,x:C[0]+D*Math.cos(e.rotation),y:C[1]-D*Math.sin(e.rotation),silent:!0,z2:11}),n.add(x)}})}}},axisTickLabelEstimate:function(e,t,r,i,n,a,o,s){var u=Md(t,n,s);u&&Cd(e,t,r,i,n,a,o,we.estimate)},axisTickLabelDetermine:function(e,t,r,i,n,a,o,s){var u=Md(t,n,s);u&&Cd(e,t,r,i,n,a,o,we.determine);var l=mD(e,n,a,i);gD(e,t.labelLayoutList,l),yD(e,n,a,i,e.tickDirection)},axisName:function(e,t,r,i,n,a,o,s){var u=r.ensureRecord(i);t.nameEl&&(n.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var l=e.axisName;if(gh(l)){var f=e.nameLocation,h=e.nameDirection,c=i.getModel("nameTextStyle"),v=i.get("nameGap")||0,d=i.axis.getExtent(),g=i.axis.inverse?-1:1,m=new ft(0,0),p=new ft(0,0);f==="start"?(m.x=d[0]-g*v,p.x=-g):f==="end"?(m.x=d[1]+g*v,p.x=g):(m.x=(d[0]+d[1])/2,m.y=e.labelOffset+h*v,p.y=h);var y=Oe();p.transform(ff(y,y,e.rotation));var _=i.get("nameRotate");_!=null&&(_=_*yr/180);var S,w;tn(f)?S=br.innerTextLayout(e.rotation,_??e.rotation,h):(S=dD(e.rotation,f,_||0,d),w=e.raw.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(S.rotation)),!isFinite(w)&&(w=null)));var b=c.getFont(),x=i.get("nameTruncate",!0)||{},D=x.ellipsis,C=So(e.raw.nameTruncateMaxWidth,x.maxWidth,w),A=s.nameMarginLevel||0,M=new be({x:m.x,y:m.y,rotation:S.rotation,silent:br.isLabelSilent(i),style:ta(c,{text:l,font:b,overflow:"truncate",width:C,ellipsis:D,fill:c.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(If({el:M,componentModel:i,itemName:l}),M.__fullText=l,M.anid="name",i.get("triggerEvent")){var I=br.makeAxisEventDataBase(i);I.targetType="axisName",I.name=l,vt(M).eventData=I}a.add(M),M.updateTransform(),t.nameEl=M;var L=u.nameLayout=Ge({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:tn(f)?lD[A]:fD[A]});if(u.nameLocation=f,n.add(M),M.decomposeTransform(),e.shouldNameMoveOverlap&&L){var P=r.ensureRecord(i);r.resolveAxisNameOverlap(e,r,i,L,p,P)}}}};function Cd(e,t,r,i,n,a,o,s){Gy(t)||_D(e,t,n,s,i,o);var u=t.labelLayoutList;SD(e,i,u,a),xD(i,e.rotation,u);var l=e.optionHideOverlap;pD(i,u,l),l&&xM(At(u,function(f){return f&&!f.label.ignore})),hD(e,r,i,u)}function dD(e,t,r,i){var n=Ap(r-e),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return Po(n-yr/2)?(o=u?"bottom":"top",a="center"):Po(n-yr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",n<yr*1.5&&n>yr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function pD(e,t,r){if(dy(e.axis))return;function i(s,u,l){var f=Ge(t[u]),h=Ge(t[l]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){kn(f.label);return}if(h.suggestIgnore){kn(h.label);return}var c=.1;if(!r){var v=[0,0,0,0];f=cd({marginForce:v},f),h=cd({marginForce:v},h)}hh(f,h,null,{touchThreshold:c})&&kn(s?h.label:f.label)}}var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]),o=t.length;i(n,0,1),i(a,o-1,o-2)}function gD(e,t,r){e.showMinorTicks||T(t,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=By(a),s=en(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){kn(a);return}}})}function kn(e){e&&(e.ignore=!0)}function Vy(e,t,r,i,n){for(var a=[],o=[],s=[],u=0;u<e.length;u++){var l=e[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=r,t&&(he(o,o,t),he(s,s,t));var f=new Cr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Jn(f.shape,f.style.lineWidth),f.anid=n+"_"+e[u].tickValue,a.push(f);var h=By(f);h.onBand=!!e[u].onBand,h.tickValue=e[u].tickValue}return a}function mD(e,t,r,i){var n=i.axis,a=i.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=e.tickDirection*a.get("length"),l=n.getTicksCoords(),f=Vy(l,r.transform,u,st(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function yD(e,t,r,i,n){var a=i.axis,o=i.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=n*o.get("length"),f=st(u.getLineStyle(),st(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=Vy(s[h],r.transform,l,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function Md(e,t,r){if(Gy(e)){var i=e.axisLabelsCreationContext,n=i.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(t.remove(e.labelGroup),Zl(e,null,null,null))}return!0}function _D(e,t,r,i,n,a){var o=n.axis,s=So(e.raw.axisLabelShow,n.get(["axisLabel","show"])),u=new zt;r.add(u);var l=Zo(i);if(!s||o.scale.isBlank()){Zl(t,[],u,l);return}var f=n.getModel("axisLabel"),h=o.getViewLabels(l),c=(So(e.raw.labelRotate,f.get("rotate"))||0)*yr/180,v=br.innerTextLayout(e.rotation,c,e.labelDirection),d=n.getCategories&&n.getCategories(!0),g=[],m=n.get("triggerEvent"),p=1/0,y=-1/0;T(h,function(S,w){var b,x=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,D=S.formattedLabel,C=S.rawLabel,A=f;if(d&&d[x]){var M=d[x];U(M)&&M.textStyle&&(A=new yt(M.textStyle,f,n.ecModel))}var I=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,P=$(A.getShallow("alignMinLabel",!0),L),k=$(A.getShallow("alignMaxLabel",!0),L),E=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,Y=$(A.getShallow("verticalAlignMinLabel",!0),E),N=$(A.getShallow("verticalAlignMaxLabel",!0),E),F=10+(((b=S.time)===null||b===void 0?void 0:b.level)||0);p=Math.min(p,F),y=Math.max(y,F);var H=new be({x:0,y:0,rotation:0,silent:br.isLabelSilent(n),z2:F,style:ta(A,{text:D,align:w===0?P:w===h.length-1?k:L,verticalAlign:w===0?Y:w===h.length-1?N:E,fill:K(I)?I(o.type==="category"?C:o.type==="value"?x+"":x,w):I})});H.anid="label_"+x;var V=en(H);if(V.break=S.break,V.tickValue=x,V.layoutRotation=v.rotation,If({el:H,componentModel:n,itemName:D,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:C,tickIndex:w}}),m){var G=br.makeAxisEventDataBase(n);G.targetType="axisLabel",G.value=C,G.tickIndex=w,S.break&&(G.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(G.dataIndex=x),vt(H).eventData=G,S.break&&wD(n,a,H,S.break)}g.push(H),u.add(H)});var _=X(g,function(S){return{label:S,priority:en(S).break?S.z2+(y-p+1):S.z2,defaultAttr:{ignore:S.ignore}}});Zl(t,_,u,l)}function Gy(e){return!!e.labelLayoutList}function Zl(e,t,r,i){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=i}function SD(e,t,r,i){var n=t.get(["axisLabel","margin"]);T(r,function(a,o){var s=Ge(a);if(s){var u=s.label,l=en(u);s.suggestIgnore=u.ignore,u.ignore=!1,el(qe,bD),qe.x=t.axis.dataToCoord(l.tickValue),qe.y=e.labelOffset+e.labelDirection*n,qe.rotation=l.layoutRotation,i.add(qe),qe.updateTransform(),i.remove(qe),qe.decomposeTransform(),el(u,qe),u.markRedraw(),Ko(s,!0),Ge(s)}})}var qe=new Rt,bD=new Rt;function gh(e){return!!e}function wD(e,t,r,i){r.on("click",function(n){var a={type:Oy,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function xD(e,t,r){var i=Xt();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&en(o.label).break},!0),a=e.get(["breakLabelLayout","moveOverlap"],!0);(a===!0||a==="auto")&&T(n,function(o){bs().adjustBreakLabelPair(e.axis.inverse,t,[Ge(r[o[0]]),Ge(r[o[1]])])})}}function Jo(e,t,r){r=r||{};var i=t.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?"onZero":o,u=i.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,c=u==="x"?[l[2]-h,l[3]+h]:[l[0]-h,l[1]+h];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}n.position=[u==="y"?c[f[s]]:l[0],u==="x"?c[f[s]]:l[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=a?c[f[o]]-c[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),So(r.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var g=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-g:g,n.z2=1,n}function TD(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Dd(e){var t={xAxisModel:null,yAxisModel:null};return T(t,function(r,i){var n=i.replace(/Model$/,""),a=e.getReferringComponents(n,te).models[0];t[i]=a}),t}function CD(e,t,r,i,n,a){for(var o=Jo(e,r),s=!1,u=!1,l=0;l<t.length;l++)Fl(t[l].getOtherAxis(r.axis).scale)&&(s=u=!0,r.axis.type==="category"&&r.axis.onBand&&(u=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=u,o.defaultNameMoveOverlap=a,new br(r,i,o,n)}function MD(e,t,r){var i=Jo(t,r);e.updateCfg(i)}function DD(e,t,r){var i=ji.prototype,n=i.getTicks.call(r),a=i.getTicks.call(r,{expandToNicedExtent:!0}),o=n.length-1,s=i.getInterval.call(r),u=cy(e,t),l=u.extent,f=u.fixMin,h=u.fixMax;e.type==="log"&&(l=zl(e.base,l,!0)),e.setBreaksFromOption(gy(t)),e.setExtent(l[0],l[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=i.getExtent.call(e);f&&(l[0]=c[0]),h&&(l[1]=c[1]);var v=i.getInterval.call(e),d=l[0],g=l[1];if(f&&h)v=(g-d)/o;else if(f)for(g=l[0]+v*o;g<l[1]&&isFinite(g)&&isFinite(l[1]);)v=Mu(v),g=l[0]+v*o;else if(h)for(d=l[1]-v*o;d>l[0]&&isFinite(d)&&isFinite(l[0]);)v=Mu(v),d=l[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=Mu(v));var p=v*o;g=Math.ceil(l[1]/v)*v,d=Lt(g-p),d<0&&l[0]>=0?(d=0,g=Lt(p)):g>0&&l[1]<=0&&(g=0,d=-Lt(p))}var y=(n[0].value-a[0].value)/s,_=(n[o].value-a[o].value)/s;i.setExtent.call(e,d+v*y,g+v*_),i.setInterval.call(e,v),(y||_)&&i.setNiceExtent.call(e,d+v,g-v)}var Ad=[[3,1],[0,2]],AD=function(){function e(t,r,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$l,this._initCartesian(t,r,i),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,u=gt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;Fl(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(ud(g,d),Fl(g)&&(s=v))}f.length&&(s||(s=f.pop(),ud(s.scale,s.model)),T(f,function(m){DD(m.scale,m.model,s.scale)}))}}n(i.x),n(i.y);var a={};T(i.x,function(o){Ld(i,"y",o,a)}),T(i.y,function(o){Ld(i,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,i){var n=Gg(t,r),a=this._rect=gi(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,u=t.get("containLabel");if(ql(o,a),!i){var l=ID(a,s,o,u,r),f=void 0;if(u)Kl?(Kl(this._axesList,a),ql(o,a)):f=kd(a.clone(),"axisLabel",null,a,o,l,n);else{var h=PD(t,a,n),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=kd(c,v,d,a,o,l,n))}Wy(a,o,we.determine,null,f,n)}T(this._coordsList,function(g){g.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var i=this._axesMap[t];if(i!=null)return i[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var i="x"+t+"y"+r;return this._coordsMap[i]}U(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===r)return a[n]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(t,r,i){var n=this._findConvertTarget(r);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",te).models[0],n=t.yAxisModel||r&&r.getReferringComponents("yAxis",te).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,nt(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)u=this.getAxis("x",i.componentIndex);else if(n)u=this.getAxis("y",n.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(r.eachComponent("xAxis",l("x"),this),r.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(c,v){var d="x"+h+"y"+v,g=new rD(d);g.master=n,g.model=t,n._coordsMap[d]=g,n._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function l(f){return function(h,c){if(Iu(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new iD(f,tM(h),[0,0],h.get("type"),v),g=d.type==="category";d.onBand=g&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,u[f]++}}}},e.prototype._updateScale=function(t,r){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(TD(n)){var a=Dd(n),o=a.xAxisModel,s=a.yAxisModel;if(!Iu(o,r)||!Iu(s,r))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=n.getData(),f=u.getAxis("x"),h=u.getAxis("y");i(l,f),i(l,h)}},this);function i(n,a){T(py(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],i=[];return T(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);nt(r,a)<0&&r.push(a),nt(i,o)<0&&i.push(o)}),{baseAxes:r,otherAxes:i}},e.create=function(t,r){var i=[];return t.eachComponent("grid",function(n,a){var o=new e(n,t,r);o.name="grid_"+a,o.resize(n,r,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){ow({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=Dd(n),s=o.xAxisModel,u=o.yAxisModel,l=s.getCoordSysModel(),f=l.coordinateSystem;return f.getCartesian(s.componentIndex,u.componentIndex)}}),i},e.dimensions=$l,e}();function Iu(e,t){return e.getCoordSysModel()===t}function Ld(e,t,r,i){r.getAxesOnZeroOf=function(){return a?[a]:[]};var n=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Id(n[u])&&(a=n[u]);else for(var l in n)if(n.hasOwnProperty(l)&&Id(n[l])&&!i[f(n[l])]){a=n[l];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Id(e){return e&&e.type!=="category"&&e.type!=="time"&&eM(e)}function LD(e,t){var r=e.getExtent(),i=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(n){return n+t}:function(n){return i-n+t},e.toLocalCoord=e.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}function ql(e,t){T(e.x,function(r){return Pd(r,t.x,t.width)}),T(e.y,function(r){return Pd(r,t.y,t.height)})}function Pd(e,t,r){var i=[0,r],n=e.inverse?1:0;e.setExtent(i[n],i[1-n]),LD(e,t)}var Kl;function i2(e){Kl=e}function kd(e,t,r,i,n,a,o){Wy(i,n,we.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),f(i,0,NaN),f(i,1,NaN);var u=m0(s,function(c){return c>0})==null;return Fo(i,s,!0,!0,r),ql(n,i),u;function l(c){T(n[pr[c]],function(v){if(ua(v.model)){var d=a.ensureRecord(v.model),g=d.labelInfoList;if(g)for(var m=0;m<g.length;m++){var p=g[m],y=v.scale.normalize(en(p.label).tickValue);y=c===1?1-y:y,f(p.rect,c,y),f(p.rect,1-c,NaN)}var _=d.nameLayout;if(_){var y=tn(d.nameLocation)?.5:NaN;f(_.rect,c,y),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var g=e[pr[v]]-c[pr[v]],m=c[Ki[v]]+c[pr[v]]-(e[Ki[v]]+e[pr[v]]);g=h(g,1-d),m=h(m,d);var p=Ad[v][0],y=Ad[v][1];s[p]=ee(s[p],g),s[y]=ee(s[y],m)}function h(c,v){return c>0&&!Xn(v)&&v>1e-4&&(c/=v),c}}function ID(e,t,r,i,n){var a=new Ny(kD);return T(r,function(o){return T(o,function(s){if(ua(s.model)){var u=!i;s.axisBuilder=CD(e,t,s.model,n,a,u)}})}),a}function Wy(e,t,r,i,n,a){var o=r===we.determine;T(t,function(l){return T(l,function(f){ua(f.model)&&(MD(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[pr[1-l]]=e[Ki[l]]<=a.refContainer[Ki[l]]*.5?0:1-l===1?2:1}T(t,function(l,f){return T(l,function(h){ua(h.model)&&((i==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function PD(e,t,r){var i,n=e.get("outerBoundsMode",!0);n==="same"?i=t.clone():(n==null||n==="auto")&&(i=gi(e.get("outerBounds",!0)||Ey,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||nt(["all","axisLabel"],a)<0?o="all":o=a;var s=[il($(e.get("outerBoundsClampWidth",!0),Qo[0]),t.width),il($(e.get("outerBoundsClampHeight",!0),Qo[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var kD=function(e,t,r,i,n,a){var o=r.axis.dim==="x"?"y":"x";Fy(e,t,r,i,n,a),tn(e.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Hy(s.labelInfoList,s.dirVec,i,n)})};function ED(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return RD(r,e,t),r.seriesInvolved&&BD(r,e),r}function RD(e,t,r){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];T(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=la(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",i);if(T(s.getAxes(),fe(g,!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)&&T(d.baseAxes,fe(g,v?"cross":!0,c)),v&&T(d.otherAxes,fe(g,"cross",!1))}function g(m,p,y){var _=y.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!m&&!Ql(_))){p==null&&(p=_.get("triggerTooltip")),_=m?OD(y,h,n,t,m,p):_;var w=_.get("snap"),b=_.get("triggerEmphasis"),x=la(y.model),D=p||w||y.type==="category",C=e.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:p,triggerEmphasis:b,involveSeries:D,snap:w,useHandle:Ql(_),seriesModels:[],linkGroup:null};l[x]=C,e.seriesInvolved=e.seriesInvolved||D;var A=ND(a,y);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[x]=C,M.mapper=a[A].mapper,C.linkGroup=M}}}})}function OD(e,t,r,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};T(s,function(c){u[c]=rt(o.get(c))}),u.snap=e.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&&st(l,h.textStyle)}}return e.model.getModel("axisPointer",new yt(u,r,i))}function BD(e,t){t.eachSeries(function(r){var i=r.coordinateSystem,n=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!i||!i.model||n==="none"||n===!1||n==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||T(e.coordSysAxesInfo[la(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function ND(e,t){for(var r=t.model,i=t.dim,n=0;n<e.length;n++){var a=e[n]||{};if(Pu(a[i+"AxisId"],r.id)||Pu(a[i+"AxisIndex"],r.componentIndex)||Pu(a[i+"AxisName"],r.name))return n}}function Pu(e,t){return e==="all"||B(e)&&nt(e,t)>=0||e===t}function FD(e){var t=mh(e);if(t){var r=t.axisPointerModel,i=t.axis.scale,n=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=i.parse(o));var s=Ql(r);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 mh(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[la(e)]}function zD(e){var t=mh(e);return t&&t.axisPointerModel}function Ql(e){return!!e.get(["handle","show"])}function la(e){return e.type+"||"+e.id}var Ed={},Uy=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n,a){this.axisPointerClass&&FD(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},t.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},t.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(r,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=zD(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,i){Ed[r]=i},t.getAxisPointerClass=function(r){return r&&Ed[r]},t.type="axis",t}(rr),Jl=_t();function HD(e,t,r,i){var n=r.axis;if(!n.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=i.coordinateSystem.getRect(),l=n.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,h=Jl(e).splitAreaColors,c=j(),v=0;if(h)for(var d=0;d<l.length;d++){var g=h.get(l[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var m=n.toGlobalCoord(l[0].coord),p=o.getAreaStyle();s=B(s)?s:[s];for(var d=1;d<l.length;d++){var y=n.toGlobalCoord(l[d].coord),_=void 0,S=void 0,w=void 0,b=void 0;n.isHorizontal()?(_=m,S=u.y,w=y-_,b=u.height,m=_+w):(_=u.x,S=m,w=u.width,b=y-S,m=S+b);var x=l[d-1].tickValue;x!=null&&c.set(x,v),t.add(new Rt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:w,height:b},style:st({fill:s[v]},p),autoBatch:!0,silent:!0})),v=(v+1)%f}Jl(e).splitAreaColors=c}}}function VD(e){Jl(e).splitAreaColors=null}var GD=["splitArea","splitLine","minorSplitLine","breakArea"],Yy=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new zt,this.group.add(this._axisGroup),!!ua(r)){this._axisGroup.add(r.axis.axisBuilder.group),T(GD,function(u){r.get([u,"show"])&&WD[u](this,this._axisGroup,r,r.getCoordSysModel(),n)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||_g(o,this._axisGroup,r),e.prototype.render.call(this,r,i,n,a)}},t.prototype.remove=function(){VD(this)},t.type="cartesianAxis",t}(Uy),WD={splitLine:function(e,t,r,i,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),u=s.get("color"),l=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;u=B(u)?u:[u];for(var h=i.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],p=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!l||y===d.length-1&&!f)){var S=d[y].tickValue;c?(g[0]=_,g[1]=h.y,m[0]=_,m[1]=h.y+h.height):(g[0]=h.x,g[1]=_,m[0]=h.x+h.width,m[1]=_);var w=v++%u.length,b=new Cr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:st({stroke:u[w]},p),silent:!0});Jn(b.shape,p.lineWidth),t.add(b)}}}},minorSplitLine:function(e,t,r,i,n){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=i.coordinateSystem.getRect(),l=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],c=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var g=0;g<f[d].length;g++){var m=a.toGlobalCoord(f[d][g].coord);l?(h[0]=m,h[1]=u.y,c[0]=m,c[1]=u.y+u.height):(h[0]=u.x,h[1]=m,c[0]=u.x+u.width,c[1]=m);var p=new Cr({anid:"minor_line_"+f[d][g].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:v,silent:!0});Jn(p.shape,v.lineWidth),t.add(p)}},splitArea:function(e,t,r,i,n){HD(e,t,r,i)},breakArea:function(e,t,r,i,n){var a=bs(),o=r.axis.scale;a&&o.type!=="ordinal"&&a.rectCoordBuildBreakAxis(t,e,r,i.coordinateSystem.getRect(),n)}},Xy=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(Yy),UD=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xy.type,r}return t.type="yAxis",t}(Yy),YD=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,i){this.group.removeAll(),r.get("show")&&this.group.add(new Rt({shape:r.coordinateSystem.getRect(),style:st({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(rr),Rd={offset:0};function XD(e){e.registerComponentView(YD),e.registerComponentModel(qM),e.registerCoordinateSystem("cartesian2d",AD),wd(e,"x",Yl,Rd),wd(e,"y",Yl,Rd),e.registerComponentView(Xy),e.registerComponentView(UD),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var ei=_t(),Od=rt,ku=ut,$D=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,i,n){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,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,r,i);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new zt,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),i.getZr().add(s);else{var c=fe(Bd,r,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,r)}Fd(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var i=r.get("animation"),n=t.axis,a=n.type==="category",o=r.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=mh(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return i===!0},e.prototype.makeElOption=function(t,r,i,n,a){},e.prototype.createPointerEl=function(t,r,i,n){var a=r.pointer;if(a){var o=ei(t).pointerEl=new Lb[a.type](Od(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,i,n){if(r.label){var a=ei(t).labelEl=new be(Od(r.label));t.add(a),Nd(a,n)}},e.prototype.updatePointerEl=function(t,r,i){var n=ei(t).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,i,n){var a=ei(t).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),Nd(a,n))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel("handle"),o=r.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=Sg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){op(l.event)},onmousedown:ku(this._onHandleDragMove,this,0,0),drift:ku(this._onHandleDragMove,this),ondragend:ku(this._onHandleDragEnd,this)}),i.add(n)),Fd(n,r,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");B(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,ym(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Bd(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Eu(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Eu(i),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Eu(n)),ei(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Al(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,i){return i=i||0,{x:t[i],y:t[1-i],width:r[i],height:r[1-i]}},e}();function Bd(e,t,r,i){$y(ei(r).lastProp,i)||(ei(r).lastProp=i,t?Mr(r,i,e):(r.stopAnimation(),r.attr(i)))}function $y(e,t){if(U(e)&&U(t)){var r=!0;return T(t,function(i,n){r=r&&$y(e[n],i)}),!!r}else return e===t}function Nd(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Eu(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Fd(e,t,r){var i=t.get("z"),n=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}function ZD(e){var t=e.get("type"),r=e.getModel(t+"Style"),i;return t==="line"?(i=r.getLineStyle(),i.fill=null):t==="shadow"&&(i=r.getAreaStyle(),i.stroke=null),i}function qD(e,t,r,i,n){var a=r.get("value"),o=Zy(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Yf(s.get("padding")||0),l=s.getFont(),f=xp(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 g=n.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),KD(h,c,v,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:ta(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:m}),z2:10}}function KD(e,t,r,i){var n=i.getWidth(),a=i.getHeight();e[0]=Math.min(e[0]+t,n)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Zy(e,t,r,i,n){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:n.precision}),o=n.formatter;if(o){var s={value:Xo(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(i,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function qy(e,t,r){var i=Oe();return ff(i,i,r.rotation),Vu(i,i,r.position),Lf([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function QD(e,t,r,i,n,a){var o=br.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get(["label","margin"]),qD(t,i,n,a,{position:qy(i.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function JD(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function jD(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function n2(e,t,r,i,n,a){return{cx:e,cy:t,r0:r,r:i,startAngle:n,endAngle:a,clockwise:!0}}var tA=function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,u=s.grid,l=a.get("type"),f=zd(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var c=ZD(a),v=eA[l](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=Jo(u.getRect(),n);QD(i,r,d,n,a,o)},t.prototype.getHandleTransform=function(r,i,n){var a=Jo(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=qy(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,u=o.getGlobalExtent(!0),l=zd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.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:r.rotation,cursorPoint:v,tooltipOption:d[f]}},t}($D);function zd(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var eA={line:function(e,t,r){var i=JD([t,r[0]],[t,r[1]],Hd(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,r){var i=Math.max(1,e.getBandWidth()),n=r[1]-r[0];return{type:"Rect",shape:jD([t-i/2,r[0]],[i,n],Hd(e))}}};function Hd(e){return e.dim==="x"?0:1}var rA=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}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:tt.color.border,width:1,type:"dashed"},shadowStyle:{color:tt.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:tt.color.neutral00,padding:[5,7,5,7],backgroundColor:tt.color.accent60,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:tt.color.accent40,throttle:40}},t}(ht),tr=_t(),iA=T;function Ky(e,t,r){if(!q.node){var i=t.getZr();tr(i).records||(tr(i).records={}),nA(i,t);var n=tr(i).records[e]||(tr(i).records[e]={});n.handler=r}}function nA(e,t){if(tr(e).initialized)return;tr(e).initialized=!0,r("click",fe(Vd,"click")),r("mousemove",fe(Vd,"mousemove")),r("globalout",oA);function r(i,n){e.on(i,function(a){var o=sA(t);iA(tr(e).records,function(s){s&&n(s,a,o.dispatchAction)}),aA(o.pendings,t)})}}function aA(e,t){var r=e.showTip.length,i=e.hideTip.length,n;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function oA(e,t,r){e.handler("leave",null,r)}function Vd(e,t,r,i){t.handler(e,r,i)}function sA(e){var t={showTip:[],hideTip:[]},r=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=r,e.dispatchAction(i))};return{dispatchAction:r,pendings:t}}function jl(e,t){if(!q.node){var r=t.getZr(),i=(tr(r).records||{})[e];i&&(tr(r).records[e]=null)}}var uA=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,i,n){var a=i.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Ky("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(r,i){jl("axisPointer",i)},t.prototype.dispose=function(r,i){jl("axisPointer",i)},t.type="axisPointer",t}(rr);function Qy(e,t){var r=[],i=e.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ci(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(e.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),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=u.dataToPoint(g)||[]}else r=u.dataToPoint(a.getValues(X(u.dimensions,function(p){return a.mapDimension(p)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var Gd=_t();function lA(e,t,r){var i=e.currTrigger,n=[e.x,e.y],a=e,o=e.dispatchAction||ut(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){_o(n)&&(n=Qy({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=_o(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||_o(n),c={},v={},d={list:[],map:{}},g={showPointer:fe(hA,v),showTooltip:fe(vA,d)};T(s.coordSysMap,function(p,y){var _=u||p.containPoint(n);T(s.coordSysAxesInfo[y],function(S,w){var b=S.axis,x=gA(l,S);if(!h&&_&&(!l||x)){var D=x&&x.value;D==null&&!u&&(D=b.pointToData(n)),D!=null&&Wd(S,D,g,!1,c)}})});var m={};return T(f,function(p,y){var _=p.linkGroup;_&&!v[y]&&T(_.axesInfo,function(S,w){var b=v[w];if(S!==p&&b){var x=b.value;_.mapper&&(x=p.axis.scale.parse(_.mapper(x,Ud(S),Ud(p)))),m[p.key]=x}})}),T(m,function(p,y){Wd(f[y],p,g,!0,c)}),cA(v,f,c),dA(d,n,e,o),pA(f,o,r),c}}function Wd(e,t,r,i,n){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=fA(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&R(n,s[0]),!i&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function fA(e,t){var r=t.axis,i=r.dim,n=e,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.indicesOfNearest(i,f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=e-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,n=h,a.length=0),T(c,function(m){a.push({seriesIndex:u.seriesIndex,dataIndexInside:m,dataIndex:u.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:n}}function hA(e,t,r,i){e[t.key]={value:r,payloadBatch:i}}function vA(e,t,r,i){var n=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=la(u),f=e.map[l];f||(f=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.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 cA(e,t,r){var i=r.axesInfo=[];T(t,function(n,a){var o=n.axisPointerModel.option,s=e[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 dA(e,t,r,i){if(_o(t)||!e.list.length){i({type:"hideTip"});return}var n=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:e.list})}function pA(e,t,r){var i=r.getZr(),n="axisPointerLastHighlights",a=Gd(i)[n]||{},o=Gd(i)[n]={};T(e,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];T(a,function(l,f){!o[f]&&u.push(l)}),T(o,function(l,f){!a[f]&&s.push(l)}),u.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function gA(e,t){for(var r=0;r<(e||[]).length;r++){var i=e[r];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Ud(e){var t=e.axis.model,r={},i=r.axisDim=e.axis.dim;return r.axisIndex=r[i+"AxisIndex"]=t.componentIndex,r.axisName=r[i+"AxisName"]=t.name,r.axisId=r[i+"AxisId"]=t.id,r}function _o(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Jy(e){Uy.registerAxisPointerClass("CartesianAxisPointer",tA),e.registerComponentModel(rA),e.registerComponentView(uA),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!B(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=ED(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lA)}function a2(e){$o(XD),$o(Jy)}var mA=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:tt.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:tt.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:tt.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:tt.color.tertiary,fontSize:14}},t}(ht);function jy(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function t0(e){if(q.domSupported){for(var t=document.documentElement.style,r=0,i=e.length;r<i;r++)if(e[r]in t)return e[r]}}var e0=t0(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yA=t0(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function r0(e,t){if(!e)return t;t=zg(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function _A(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var SA=r0(yA,"transition"),yh=r0(e0,"transform"),bA="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(q.transform3dSupported?"will-change:transform;":"");function wA(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function xA(e,t,r){if(!W(r)||r==="inside")return"";var i=e.get("backgroundColor"),n=e.get("borderWidth");t=pi(t);var a=wA(r),o=Math.max(Math.round(n)*1.5,6),s="",u=yh+":",l;nt(["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;",g=["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="'+g.join("")+'"></div>'}function TA(e,t,r){var i="cubic-bezier(0.23,1,0.32,1)",n="",a="";return r&&(n=" "+e/2+"s "+i,a="opacity"+n+",visibility"+n),t||(n=" "+e+"s "+i,a+=(a.length?",":"")+(q.transformSupported?""+yh+n:",left"+n+",top"+n)),SA+":"+a}function Yd(e,t,r){var i=e.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!q.transformSupported)return r?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=q.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return r?"top:0;left:0;"+yh+":"+o+";":[["top",0],["left",0],[e0,o]]}function CA(e){var t=[],r=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var n=$(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+n+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,u=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),T(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function MA(e,t,r,i){var n=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),u=e.get("shadowColor"),l=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),c=pm(e,"html"),v=l+"px "+f+"px "+s+"px "+u;return n.push("box-shadow:"+v),t&&a>0&&n.push(TA(a,r,i)),o&&n.push("background-color:"+o),T(["width","color","radius"],function(d){var g="border-"+d,m=zg(g),p=e.get(m);p!=null&&n.push(g+":"+p+(d==="color"?"":"px"))}),n.push(CA(h)),c!=null&&n.push("padding:"+Yf(c).join("px ")+"px"),n.join(";")+";"}function Xd(e,t,r,i,n){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&E0(e,o,r,i,n)}else{e[0]=i,e[1]=n;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var DA=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,q.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=r.appendTo,o=a&&(W(a)?document.querySelector(a):Yn(a)?a:K(a)&&a(t.getDom()));Xd(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();ae(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),i=_A(r,"position"),n=r.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=bA+MA(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Yd(a[0],a[1],!0)+("border-color:"+pi(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(a)&&i.get("trigger")==="item"&&!jy(i)&&(s=xA(i,n,a)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",B(t)||(t=[t]);for(var u=0;u<t.length;u++)Yn(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)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var i=this._styleCoord;if(Xd(i,this._zr,this._container,t,r),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Yd(i[0],i[1]);T(a,function(o){n[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",q.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ut(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;R0(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},e}(),AA=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Zd(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,i,n,a){var o=this;U(t)&&Ft(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new be({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:pm(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=i.get(l)}),T(["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})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),i=$d(t.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},e.prototype.moveTo=function(t,r){var i=this.el;if(i){var n=this._styleCoord;Zd(n,this._zr,t,r),t=n[0],r=n[1];var a=i.style,o=dr(a.borderWidth||0),s=$d(a);i.x=t+o+s.left,i.y=r+o+s.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ut(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function dr(e){return Math.max(0,e)}function $d(e){var t=dr(e.shadowBlur||0),r=dr(e.shadowOffsetX||0),i=dr(e.shadowOffsetY||0);return{left:dr(t-r),right:dr(t+r),top:dr(t-i),bottom:dr(t+i)}}function Zd(e,t,r,i){e[0]=r,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var LA=new Rt({shape:{x:-1,y:-1,width:2,height:2}}),IA=function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,i){if(!(q.node||!i.getDom())){var n=r.getComponent("tooltip"),a=this._renderMode=p1(n.get("renderMode"));this._tooltipContent=a==="richText"?new AA(i):new DA(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(r,i,n){if(!(q.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?ym(this,"_updatePosition",50,"fixRate"):Al(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,i=r.get("triggerOn");Ky("itemTooltip",this._api,ut(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 r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.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(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||q.node||!n.getDom())){var o=qd(a,n);this._ticket="";var s=a.dataByCoordSys,u=RA(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=LA;f.x=a.x,f.y=a.y,f.update(),vt(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(r,i,n,a))return;var h=Qy(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(r,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(qd(a,n))},t.prototype._manuallyAxisShowTip=function(r,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=Tn([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(r,i){var n=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){var s=vt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;Pn(n,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(vt(f).dataIndex!=null?u=f:vt(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,i):l?this._showComponentItemTooltip(r,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(r,i){var n=r.get("showDelay");i=ut(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Tn([i.tooltipOption],a),u=this._renderMode,l=[],f=ia("section",{blocks:[],noHeader:!0}),h=[],c=new pu;T(r,function(y){T(y.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var b=Zy(w,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),x=ia("section",{header:b,noHeader:!ke(b),sortBlocks:!0,blocks:[]});f.blocks.push(x),T(_.seriesDataIndices,function(D){var C=n.getSeriesByIndex(D.seriesIndex),A=D.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Xo(S.axis,{value:w}),M.axisValueLabel=b,M.marker=c.makeTooltipMarker("item",pi(M.color),u);var I=mc(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=Tn([C],a).get("valueFormatter");x.blocks.push(P?R({valueFormatter:P},L):L)}I.text&&h.push(I.text),l.push(M)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),g=wc(f,c,u,d,n.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var m=u==="richText"?`

`:"<br/>",p=h.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,p,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=vt(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=r.positionDefault,g=Tn([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var p=l.getDataParams(f,h),y=new pu;p.marker=y.makeTooltipMarker("item",pi(p.color),v);var _=mc(l.formatTooltip(f,!1,h)),S=g.get("order"),w=g.get("valueFormatter"),b=_.frag,x=b?wc(w?R({valueFormatter:w},b):b,y,v,S,a.get("useUTC"),g.get("textStyle")):_.text,D="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,p,D,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode==="html",o=vt(i),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(W(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=rt(u),u.content=Gt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=r.positionDefault,d=Tn(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),m=Math.random()+"",p=new pu;this._showOrMove(d,function(){var y=rt(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,m,r.offsetX,r.offsetY,r.position,i,p)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,i,n,a,o,s,u,l,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");u=u||r.get("position");var v=i,d=this._getNearestPoint([o,s],n,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=d.color;if(c)if(W(c)){var m=r.ecModel.get("useUTC"),p=B(n)?n[0]:n,y=p&&p.axisType&&p.axisType.indexOf("time")>=0;v=c,y&&(v=gs(p.axisValue,v,m)),v=Hg(v,n,!0)}else if(K(c)){var _=ut(function(S,w){S===this._ticket&&(h.setContent(w,f,r,g,u),this._updatePosition(r,u,o,s,h,n,l))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,r,g,u),h.show(r,g),this._updatePosition(r,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(r,i,n,a,o){if(n==="axis"||B(i))return{color:a||o};if(!B(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(r,i,n,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();i=i||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),K(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),B(i))n=bt(i[0],l),a=bt(i[1],f);else if(U(i)){var g=i;g.width=h[0],g.height=h[1];var m=gi(g,{width:l,height:f});n=m.x,a=m.y,c=null,v=null}else if(W(i)&&u){var p=EA(i,d,h,r.get("borderWidth"));n=p[0],a=p[1]}else{var p=PA(n,a,o,l,f,c?null:20,v?null:20);n=p[0],a=p[1]}if(c&&(n-=Kd(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Kd(v)?h[1]/2:v==="bottom"?h[1]:0),jy(r)){var p=kA(n,a,o,l,f);n=p[0],a=p[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&T(n,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&T(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===m.length,o&&T(g,function(p,y){var _=m[y];o=o&&p.seriesIndex===_.seriesIndex&&p.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(p){var y=p.seriesIndex,_=i[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,i){q.node||!i.getDom()||(Al(this,"_updatePosition"),this._tooltipContent.dispose(),jl("itemTooltip",i))},t.type="tooltip",t}(rr);function Tn(e,t,r){var i=t.ecModel,n;r?(n=new yt(r,i,i),n=new yt(t.option,n,i)):n=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof yt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(n=new yt(o,n,i)))}return n}function qd(e,t){return e.dispatchAction||ut(t.dispatchAction,t)}function PA(e,t,r,i,n,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>i?e-=u+a:e+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[e,t]}function kA(e,t,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,i)-o,t=Math.min(t+s,n)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function EA(e,t,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(e){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 Kd(e){return e==="center"||e==="middle"}function RA(e,t,r){var i=df(e).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=ca(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=vt(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}function o2(e){$o(Jy),e.registerComponentModel(mA),e.registerComponentView(IA),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$t),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$t)}function Qd(e,t,r){var i=er.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",e)),i.width=n*r,i.height=a*r,i}var Ru=function(e){z(t,e);function t(r,i,n){var a=e.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||Io,typeof r=="string"?o=Qd(r,i,n):U(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(np(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 r=this.dpr;this.domBack=Qd("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new J(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new J(0,0,0,0);_.copy(y),o.push(_)}else{for(var S=!1,w=1/0,b=0,x=0;x<o.length;++x){var D=o[x];if(D.intersect(y)){var C=new J(0,0,0,0);C.copy(D),C.union(y),o[x]=C,S=!0;break}else if(u){l.copy(y),l.union(D);var A=y.width*y.height,M=D.width*D.height,I=l.width*l.height,L=I-A-M;L<w&&(w=L,b=x)}}if(u&&(o[b].union(y),S=!0),!S){var _=new J(0,0,0,0);_.copy(y),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(n,a,!0,!0),d=c.__isRendered&&(c.__dirty&jt||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&jt||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}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 m;do{m=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var p=h+1;p<o.length;)o[h].intersect(o[p])?(m=!0,o[h].union(o[p]),o.splice(p,1)):p++;h++}}while(m);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,u=a.height;i=i||this.clearColor;var l=this.motionBlur&&!r,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(g,m,p,y){if(o.clearRect(g,m,p,y),i&&i!=="transparent"){var _=void 0;if(ts(i)){var S=i.global||i.__width===p&&i.__height===y;_=S&&i.__canvasGradient||Pl(o,i,{x:0,y:0,width:p,height:y}),i.__canvasGradient=_,i.__width=p,i.__height=y}else _0(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=kl(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(g,m,p,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,m,p,y),o.restore())}!n||l?d(0,0,s,u):n.length&&T(n,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t}(Ue),Jd=1e5,ti=314159,ro=.01,OA=.001;function BA(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function NA(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var FA=function(){function e(t,r,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=R({},i||{}),this.dpr=i.devicePixelRatio||Io,this._singleCanvas=a,this.root=t;var o=t.style;o&&(np(t),t.innerHTML=""),this.storage=r;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 Ru(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[ti]=v,v.zlevel=ti,s.push(ti),this._domRoot=t}else{this._width=Ua(t,0,i),this._height=Ua(t,1,i);var l=this._domRoot=NA(this._width,this._height);t.appendChild(l)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,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=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,i=this._hoverlayer;if(i&&i.clear(),!!r){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(Jd)),a||(a=i.ctx,a.save()),oi(a,s,n,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Jd)},e.prototype.paintOne=function(t,r){Im(t,r)},e.prototype._paintList=function(t,r,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,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;xo(function(){u._paintList(t,r,i,n)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(ti).ctx,r=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,r,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,r,i)})},e.prototype._doPaintList=function(t,r,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(g){var m=a[g],p=m.ctx,y=o&&m.createRepaintRects(t,r,v._width,v._height),_=i?m.__startIndex:m.__drawIndex,S=!i&&m.incremental&&Date.now,w=S&&Date.now(),b=m.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,b,y);else if(_===m.__startIndex){var x=t[_];(!x.incremental||!x.notClear||i)&&m.clear(!1,b,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=m.__startIndex);var D,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(D=_;D<m.__endIndex;D++){var k=t[D];if(k.__inHover&&(h=!0),n._doPaintEl(k,m,o,L,P,D===m.__endIndex-1),S){var E=Date.now()-w;if(E>15)break}}P.prevElClipPaths&&p.restore()};if(y)if(y.length===0)D=m.__endIndex;else for(var A=v.dpr,M=0;M<y.length;++M){var I=y[M];p.save(),p.beginPath(),p.rect(I.x*A,I.y*A,I.width*A,I.height*A),p.clip(),C(I),p.restore()}else p.save(),C(),p.restore();m.__drawIndex=D,m.__drawIndex<m.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return q.wxa&&T(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,i,n,a,o){var s=r.ctx;if(i){var u=t.getPaintRect();(!n||u&&u.intersect(n))&&(oi(s,t,a,o),t.setPrevPaintRect(u))}else oi(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ti);var i=this._layers[t];return i||(i=new Ru("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?ot(i,this._layerConfig[t],!0):this._layerConfig[t-ro]&&ot(i,this._layerConfig[t-ro],!0),r&&(i.virtual=r),this.insertLayer(t,i),i.initContext()),i},e.prototype.insertLayer=function(t,r){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,u=-1;if(!i[t]&&BA(r)){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]=r,!r.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(r.dom,l.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(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+OA,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?ro:0),this._needsManuallyCompositing),f.__builtin__||nf("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,r(u),a=f),n.__dirty&jt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}r(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)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?ot(i[t],r,!0):i[t]=r;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+ro){var o=this._layers[a];ot(o,i[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,i=this._zlevelList,n=r[t];n&&(n.dom.parentNode.removeChild(n.dom),delete r[t],i.splice(nt(i,t),1))},e.prototype.resize=function(t,r){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),r!=null&&(n.height=r),t=Ua(a,0,n),r=Ua(a,1,n),i.style.display="",this._width!==t||r!==this._height){i.style.width=t+"px",i.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(ti).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ti].dom;var r=new Ru("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var i=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.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];oi(i,f,o,u===l-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function s2(e){e.registerPainter("canvas",FA)}export{B as $,K as A,J as B,gt as C,Dv as D,vt as E,bt as F,cd as G,QL as H,JL as I,xM as J,zn as K,cg as L,ds as M,on as N,nt as O,ft as P,Mr as Q,CL as R,Ve as S,vf as T,DC as U,Dr as V,ML as W,tt as X,Tp as Y,ct as Z,z as _,t2 as a,Gg as a$,vi as a0,Pf as a1,vb as a2,cb as a3,zt as a4,jL as a5,ze as a6,RM as a7,hs as a8,Rt as a9,IL as aA,UL as aB,aa as aC,YM as aD,DM as aE,iD as aF,XD as aG,m0 as aH,Tf as aI,Ar as aJ,Lb as aK,dT as aL,xx as aM,ia as aN,ot as aO,W as aP,yt as aQ,We as aR,iM as aS,jM as aT,ht as aU,br as aV,fs as aW,xf as aX,yb as aY,rr as aZ,mM as a_,R as aa,Rf as ab,Mg as ac,My as ad,TL as ae,hl as af,Rv as ag,mm as ah,CM as ai,fe as aj,ZL as ak,qL as al,ZM as am,EL as an,W1 as ao,ev as ap,SM as aq,rt as ar,be as as,Ui as at,pC as au,dC as av,ut as aw,NL as ax,fL as ay,nv as az,a2 as b,ZA as b$,ji as b0,DD as b1,wg as b2,YA as b3,op as b4,Ue as b5,me as b6,ko as b7,GS as b8,wf as b9,ow as bA,zA as bB,So as bC,gi as bD,RL as bE,xr as bF,Pn as bG,SL as bH,vh as bI,x0 as bJ,ss as bK,No as bL,Mf as bM,Se as bN,$t as bO,zL as bP,It as bQ,OL as bR,ta as bS,iC as bT,LL as bU,vl as bV,ag as bW,ES as bX,of as bY,Qn as bZ,Xu as b_,Cr as ba,sb as bb,_e as bc,si as bd,ha as be,ke as bf,ff as bg,X0 as bh,Vu as bi,Oe as bj,j as bk,He as bl,ps as bm,ob as bn,da as bo,TS as bp,Yc as bq,If as br,bL as bs,gS as bt,Lv as bu,aw as bv,Qe as bw,lf as bx,VA as by,te as bz,o2 as c,xp as c$,hL as c0,T0 as c1,A0 as c2,ws as c3,nn as c4,C0 as c5,M0 as c6,GA as c7,WA as c8,Do as c9,Sb as cA,je as cB,Mm as cC,XA as cD,Bh as cE,Ti as cF,Y1 as cG,er as cH,j_ as cI,EM as cJ,Po as cK,Fh as cL,hb as cM,Zn as cN,ao as cO,Zt as cP,Yv as cQ,$L as cR,kb as cS,Af as cT,mb as cU,YL as cV,ZD as cW,qD as cX,$D as cY,n2 as cZ,JD as c_,kt as ca,Yi as cb,Xf as cc,Tx as cd,Lt as ce,pS as cf,Tr as cg,Xn as ch,U as ci,ym as cj,Al as ck,tM as cl,ud as cm,Lf as cn,lL as co,_g as cp,wd as cq,Oo as cr,Bo as cs,mL as ct,oC as cu,gw as cv,vL as cw,Ot as cx,Ft as cy,eh as cz,s2 as d,HA as d$,py as d0,Uy as d1,Ji as d2,Jy as d3,VD as d4,HD as d5,Jn as d6,bs as d7,QD as d8,qy as d9,JC as dA,Sg as dB,kL as dC,q as dD,sn as dE,Yn as dF,G0 as dG,FL as dH,fo as dI,dL as dJ,va as dK,Zw as dL,PS as dM,fy as dN,eT as dO,Il as dP,bb as dQ,wb as dR,ca as dS,Yf as dT,pL as dU,cL as dV,Ab as dW,uw as dX,xg as dY,HL as dZ,VL as d_,jD as da,ms as db,BL as dc,mi as dd,AL as de,Yb as df,an as dg,Fo as dh,PL as di,pr as dj,Ki as dk,ee as dl,qn as dm,Hl as dn,ry as dp,yL as dq,ii as dr,_L as ds,il as dt,n1 as du,fw as dv,sw as dw,gL as dx,q_ as dy,KL as dz,uf as e,Bp as e$,Jw as e0,ve as e1,vx as e2,GL as e3,Fe as e4,KA as e5,qA as e6,Dm as e7,$p as e8,Gt as e9,Mo as eA,wL as eB,Mx as eC,xL as eD,DL as eE,e2 as eF,Xt as eG,Oy as eH,nD as eI,aD as eJ,hh as eK,wM as eL,Zp as eM,r2 as eN,i2 as eO,pa as eP,Wr as eQ,$A as eR,Tb as eS,tT as eT,WL as eU,Mb as eV,mo as eW,Je as eX,CS as eY,tg as eZ,TC as e_,gp as ea,el as eb,oL as ec,aL as ed,Hh as ee,nL as ef,wr as eg,jA as eh,rs as ei,JA as ej,cS as ek,vS as el,o0 as em,y_ as en,__ as eo,Gh as ep,g_ as eq,Vp as er,QA as es,iL as et,rL as eu,uL as ev,tL as ew,eL as ex,Ua as ey,sL as ez,fa as f,he as g,T as h,XL as i,Ni as j,Fi as k,X as l,Rn as m,At as n,Cf as o,st as p,L0 as q,$ as r,UA as s,lt as t,$o as u,di as v,u_ as w,a_ as x,La as y,_t as z};
