Files
YG_FT/frontend/dist/assets/install-DSm05NRi.js
2026-07-24 14:36:11 +08:00

42 lines
489 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var p_=Object.defineProperty;var g_=(e,t,r)=>t in e?p_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var cc=(e,t,r)=>g_(e,typeof t!="symbol"?t+"":t,r);import{d as m_,aV as y_,D as yo,a1 as tg,G as eg,H as __,I as _l,aQ as Sl,j as Pi,P as S_,bz as T_,ah as w_,B as _o,c_ as Ks,bg as x_,bW as So}from"./index-Cqlj7vcl.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Tl=function(e,t){return Tl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Tl(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");Tl(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var b_=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),C_=(function(){function e(){this.browser=new b_,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})(),K=new C_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(K.wxa=!0,K.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?K.worker=!0:!K.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(K.node=!0,K.svgSupported=!0):M_(navigator.userAgent,K);function M_(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[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 Gf=12,D_="sans-serif",Sr=Gf+"px "+D_,A_=20,L_=100,I_="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function P_(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-A_)/L_;t[n]=i}return t}var E_=P_(I_),ee={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,n){if(!e){var i=ee.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Sr),e.measureText(r);r=r||"",n=n||Sr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Gf,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var u=0;u<r.length;u++){var l=E_[r[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n},getTime:function(){return Date.now?Date.now():+new Date}},rg=Tr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),ng=Tr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ga=Object.prototype.toString,Ss=Array.prototype,R_=Ss.forEach,O_=Ss.filter,Uf=Ss.slice,k_=Ss.map,vc=(function(){}).constructor,Aa=vc?vc.prototype:null,Wf="__proto__",Qs=2311,B_=Math.pow(2,53)-1;function ig(){return Qs>=B_&&(Qs=0),Qs++}function Yf(){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=ga.call(e);if(r==="[object Array]"){if(!Hi(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=rt(e[n])}}else if(ng[r]){if(!Hi(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!rg[r]&&!Hi(e)&&!ta(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==Wf&&(t[o]=rt(e[o]))}return t}function lt(e,t,r){if(!H(t)||!H(e))return r?rt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==Wf){var i=e[n],a=t[n];H(a)&&H(i)&&!B(a)&&!B(i)&&!ta(a)&&!ta(i)&&!dc(a)&&!dc(i)&&!Hi(a)&&!Hi(i)?lt(i,a,r):(r||!(n in e))&&(e[n]=rt(t[n]))}return e}function k(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==Wf&&(e[r]=t[r]);return e}function N_(e,t,r){e=e||{};for(var n=0;n<r.length;n++){var i=r[n];e[i]=t[i]}return e}function pt(e,t,r){for(var n=gt(t),i=0,a=n.length;i<a;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function st(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function F_(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);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 n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else pt(e,t)}function Kt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function b(e,t,r){if(e&&t)if(e.forEach&&e.forEach===R_)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function Y(e,t,r){if(!e)return[];if(!t)return Xf(e);if(e.map&&e.map===k_)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Tr(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function kt(e,t,r){if(!e)return[];if(!t)return Xf(e);if(e.filter&&e.filter===O_)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function z_(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}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 H_(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Uf.call(arguments)))}}var _t=Aa&&j(Aa.bind)?Aa.call.bind(Aa.bind):H_;function Ct(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Uf.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):ga.call(e)==="[object Array]"}function j(e){return typeof e=="function"}function F(e){return typeof e=="string"}function wl(e){return ga.call(e)==="[object String]"}function Tt(e){return typeof e=="number"}function H(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function dc(e){return!!rg[ga.call(e)]}function Qt(e){return!!ng[ga.call(e)]}function ta(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ts(e){return e.colorStops!=null}function V_(e){return e.image!=null}function ea(e){return e!==e}function Vo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function G(e,t){return e??t}function Gn(e,t,r){return e??t??r}function Xf(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Uf.apply(e,t)}function Zf(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 tr(e,t){if(!e)throw new Error(t)}function Oe(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ag="__ec_primitive__";function xl(e){e[ag]=!0}function Hi(e){return e[ag]}var G_=(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 n in r)r.hasOwnProperty(n)&&t(r[n],n)},e})(),og=typeof Map=="function";function U_(){return og?new Map:new G_}var W_=(function(){function e(t){var r=B(t);this.data=U_();var n=this;t instanceof e?t.each(i):t&&b(t,i);function i(a,o){r?n.set(a,o):n.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(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return og?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function W(e){return new W_(e)}function Y_(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function ws(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&k(r,t),r}function sg(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function qt(e,t){return e.hasOwnProperty(t)}function Nt(){}var X_=180/Math.PI;function oi(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Z_(e){return[e[0],e[1]]}function js(e,t,r){return e[0]=t,e[1]=r,e}function pc(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function $_(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function q_(e){return Math.sqrt(K_(e))}function K_(e){return e[0]*e[0]+e[1]*e[1]}function Js(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Q_(e,t){var r=q_(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function bl(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var j_=bl;function J_(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Un=J_;function C2(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ye(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Bn(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Nn(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var yn=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),t1=(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 yn(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new yn(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,u=this._dropTarget;this._dropTarget=s,r!==s&&(u&&s!==u&&this.handler.dispatchToElement(new yn(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new yn(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new yn(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new yn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Ye=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!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===n)return this;var u={h:n,query:r,ctx:i||this,callAtLast:n.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 n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,u=0;u<s;u++){var l=i[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=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],u=i.length,l=0;l<u;l++){var f=i[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})(),e1=Math.log(2);function Cl(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/e1);return e[r][u]}for(var l=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*e[r][c]*Cl(e,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function gc(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]]],n={},i=Cl(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Cl(r,7,o===0?1:0,1<<o,1<<s,n)/i*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 Go="___zrEVENTSAVED",tu=[];function r1(e,t,r,n,i){return Ml(tu,t,n,i,!0)&&Ml(e,r,tu[0],tu[1])}function n1(e,t){e&&r(e),t&&r(t);function r(n){var i=n[Go];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Go])}}function Ml(e,t,r,n,i){if(t.getBoundingClientRect&&K.domSupported&&!ug(t)){var a=t[Go]||(t[Go]={}),o=i1(t,a),s=a1(o,a,i);if(s)return s(e,r,n),!0}return!1}function i1(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["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",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){b(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function a1(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],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&&i?i:(t.srcCoords=o,t[n]=r?gc(s,o):gc(o,s))}function ug(e){return e.nodeName.toUpperCase()==="CANVAS"}var o1=/([&<>"'])/g,s1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Yt(e){return e==null?"":(e+"").replace(o1,function(t,r){return s1[r]})}var u1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,eu=[],l1=K.browser.firefox&&+K.browser.version.split(".")[0]<39;function Dl(e,t,r,n){return r=r||{},n?mc(e,t,r):l1&&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):mc(e,t,r),r}function mc(e,t,r){if(K.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(ug(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Ml(eu,e,n,i)){r.zrX=eu[0],r.zrY=eu[1];return}}r.zrX=r.zrY=0}function $f(e){return e||window.event}function le(e,t,r){if(t=$f(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Dl(e,o,t,r)}else{Dl(e,t,t,r);var a=f1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&u1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function f1(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function h1(e,t,r,n){e.addEventListener(t,r,n)}function c1(e,t,r,n){e.removeEventListener(t,r,n)}var lg=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function M2(e){return e.which===2||e.which===3}var v1=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=Dl(n,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 ru)if(ru.hasOwnProperty(r)){var n=ru[r](this._track,t);if(n)return n}},e})();function yc(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function d1(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ru={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=yc(n)/yc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=d1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Be(){return[1,0,0,1,0,0]}function ma(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function qf(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 Vi(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=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]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=u,e}function Al(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 Kf(e,t,r,n){n===void 0&&(n=[0,0]);var i=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]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+u*f,e[3]=-a*f+h*u,e[4]=h*(o-n[0])+f*(l-n[1])+n[0],e[5]=h*(l-n[1])-f*(o-n[0])+n[1],e}function p1(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function ya(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=r*o-a*n;return u?(u=1/u,e[0]=o*u,e[1]=-a*u,e[2]=-n*u,e[3]=r*u,e[4]=(n*s-o*i)*u,e[5]=(a*i-r*s)*u,e):null}var ct=(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,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},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,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+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,n){t.x=r,t.y=n},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,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e})(),jr=Math.min,Fn=Math.max,Ll=Math.abs,_c=["x","y"],g1=["width","height"],Dr=new ct,Ar=new ct,Lr=new ct,Ir=new ct,te=fg(),Ei=te.minTv,Il=te.maxTv,Gi=[0,0],Z=(function(){function e(t,r,n,i){nu(this,t,r,n,i)}return e.set=function(t,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),t.x=r,t.y=n,t.width=i,t.height=a,t},e.prototype.union=function(t){var r=jr(t.x,this.x),n=jr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Fn(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Fn(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){return m1(Be(),this,t)},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&ct.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=nu(y1,t.x,t.y,t.width,t.height)),r instanceof e||(r=nu(_1,r.x,r.y,r.width,r.height));var s=!!n;te.reset(i,s);var u=te.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,p=r.y+r.height-u;if(l>f||h>c||v>d||g>p)return!1;var m=!(f<v||d<l||c<g||p<h);return(s||a)&&(Gi[0]=1/0,Gi[1]=0,Tc(l,f,v,d,0,s,a,o),Tc(h,c,g,p,1,s,a,o),s&&ct.copy(n,m?te.useDir?te.dirMinTv:Ei:Il)),m},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=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){Sc(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?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},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,n){if(!n){t!==r&&Sc(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,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}Dr.x=Lr.x=r.x,Dr.y=Ir.y=r.y,Ar.x=Ir.x=r.x+r.width,Ar.y=Lr.y=r.y+r.height,Dr.transform(n),Ir.transform(n),Ar.transform(n),Lr.transform(n),t.x=jr(Dr.x,Ar.x,Lr.x,Ir.x),t.y=jr(Dr.y,Ar.y,Lr.y,Ir.y);var u=Fn(Dr.x,Ar.x,Lr.x,Ir.x),l=Fn(Dr.y,Ar.y,Lr.y,Ir.y);t.width=u-t.x,t.height=l-t.y},e.calculateTransform=function(t,r,n){var i=n.width/r.width,a=n.height/r.height;return t=ma(t||[]),Al(t,t,js(iu,-r.x,-r.y)),p1(t,t,js(iu,i,a)),Al(t,t,js(iu,n.x,n.y)),t},e})();Z.create;var nu=Z.set,Sc=Z.copy,m1=Z.calculateTransform;Z.applyTransform;Z.contain;var y1=new Z(0,0,0,0),_1=new Z(0,0,0,0),iu=[];function Tc(e,t,r,n,i,a,o,s){var u=Ll(t-r),l=Ll(n-e),f=jr(u,l),h=_c[i],c=_c[1-i],v=g1[i];t<r||n<e?u<l?(a&&(Il[h]=-u),s&&(o[h]=t,o[v]=0)):(a&&(Il[h]=l),s&&(o[h]=e,o[v]=0)):(o&&(o[h]=Fn(e,r),o[v]=jr(t,n)-o[h]),a&&(f<Gi[0]||te.useDir)&&(Gi[0]=jr(f,Gi[0]),(u<l||!te.bidirectional)&&(Ei[h]=u,Ei[c]=0,te.useDir&&te.calcDirMTV()),(u>=l||!te.bidirectional)&&(Ei[h]=-l,Ei[c]=0,te.useDir&&te.calcDirMTV())))}function fg(){var e=0,t=new ct,r=new ct,n={minTv:new ct,maxTv:new ct,useDir:!1,dirMinTv:new ct,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Fn(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.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(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*l/f,r.y=s*u/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return Ll(a)<1e-10}return n}var hg="silent";function S1(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:T1}}function T1(){lg(this.event)}var w1=(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})(Ye),ci=(function(){function e(t,r){this.x=t,this.y=r}return e})(),x1=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],au=new Z(0,0,0,0),cg=(function(e){z(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ci(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new w1,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new t1(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(b(x1,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=vg(this,n,i),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 ci(n,i):this.findHover(n,i),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 n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new ci(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=S1(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ci(r,n);if(wc(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new Z(r-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(au.copy(c.getBoundingRect()),c.transform&&au.applyTransform(c.transform),au.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<l;p+=v)for(var m=0;m<g;m+=d){var y=r+p*Math.cos(m),_=n+p*Math.sin(m);if(wc(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new v1);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ci;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Ye);b(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){cg.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=vg(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),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||j_(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function b1(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?hg:!0}return!1}function wc(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=b1(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==hg)){t.target=o;break}}}function vg(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var dg=32,vi=7;function C1(e){for(var t=0;e>=dg;)t|=e&1,e>>=1;return e+t}function xc(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;M1(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function M1(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function bc(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,e[u])<0?s=u:o=u+1;var l=n-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 ou(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])>0){for(s=n-i;u<s&&a(e,t[r+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(e,t[r+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-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 su(e,t,r,n,i,a){var o=0,s=0,u=1;if(a(e,t[r+i])<0){for(s=i+1;u<s&&a(e,t[r+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(e,t[r+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(e,t[r+f])<0?u=f:o=f+1}return u}function D1(e,t){var r=vi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],g=i[v],p=n[v+1],m=i[v+1];i[v]=g+m,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=su(e[p],e,d,g,0,t);d+=y,g-=y,g!==0&&(m=ou(e[d+g-1],e,p,m,m-1,t),m!==0&&(g<=m?h(d,g,p,m):c(d,g,p,m)))}function h(v,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=e[v+m];var y=0,_=g,S=v;if(e[S++]=e[_++],--p===0){for(m=0;m<d;m++)e[S+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)e[S+m]=e[_+m];e[S+p]=o[y];return}for(var T=r,w,x,D;;){w=0,x=0,D=!1;do if(t(e[_],o[y])<0){if(e[S++]=e[_++],x++,w=0,--p===0){D=!0;break}}else if(e[S++]=o[y++],w++,x=0,--d===1){D=!0;break}while((w|x)<T);if(D)break;do{if(w=su(e[_],o,y,d,0,t),w!==0){for(m=0;m<w;m++)e[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){D=!0;break}}if(e[S++]=e[_++],--p===0){D=!0;break}if(x=ou(o[y],e,_,p,0,t),x!==0){for(m=0;m<x;m++)e[S+m]=e[_+m];if(S+=x,_+=x,p-=x,p===0){D=!0;break}}if(e[S++]=o[y++],--d===1){D=!0;break}T--}while(w>=vi||x>=vi);if(D)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),d===1){for(m=0;m<p;m++)e[S+m]=e[_+m];e[S+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)e[S+m]=o[y+m]}}function c(v,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=e[g+m];var y=v+d-1,_=p-1,S=g+p-1,T=0,w=0;if(e[S--]=e[y--],--d===0){for(T=S-(p-1),m=0;m<p;m++)e[T+m]=o[m];return}if(p===1){for(S-=d,y-=d,w=S+1,T=y+1,m=d-1;m>=0;m--)e[w+m]=e[T+m];e[S]=o[_];return}for(var x=r;;){var D=0,M=0,C=!1;do if(t(o[_],e[y])<0){if(e[S--]=e[y--],D++,M=0,--d===0){C=!0;break}}else if(e[S--]=o[_--],M++,D=0,--p===1){C=!0;break}while((D|M)<x);if(C)break;do{if(D=d-su(o[_],e,v,d,d-1,t),D!==0){for(S-=D,y-=D,d-=D,w=S+1,T=y+1,m=D-1;m>=0;m--)e[w+m]=e[T+m];if(d===0){C=!0;break}}if(e[S--]=o[_--],--p===1){C=!0;break}if(M=p-ou(e[y],o,0,p,p-1,t),M!==0){for(S-=M,_-=M,p-=M,w=S+1,T=_+1,m=0;m<M;m++)e[w+m]=o[T+m];if(p<=1){C=!0;break}}if(e[S--]=e[y--],--d===0){C=!0;break}x--}while(D>=vi||M>=vi);if(C)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(S-=d,y-=d,w=S+1,T=y+1,m=d-1;m>=0;m--)e[w+m]=e[T+m];e[S]=o[_]}else{if(p===0)throw new Error;for(T=S-(p-1),m=0;m<p;m++)e[T+m]=o[m]}}return{mergeRuns:u,forceMergeRuns:l,pushRun:s}}function To(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<dg){a=xc(e,r,n,t),bc(e,r,n,r+a,t);return}var o=D1(e,t),s=C1(i);do{if(a=xc(e,r,n,t),a<s){var u=i;u>s&&(u=s),bc(e,r,r+u,r+a,t),a=u}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var $t=1,Ri=2,On=4,Cc=!1;function uu(){Cc||(Cc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mc(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var A1=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mc}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,To(n,Mc)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||i)){if(s||(s=t.__clipPaths=[]),a)for(var u=0;u<r.length;u++)s[o++]=r[u];for(var l=i,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|=$t),this._updateAndAddDisplayable(v,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(uu(),d.z=0),isNaN(d.z2)&&(uu(),d.z2=0),isNaN(d.zlevel)&&(uu(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,n);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var m=t.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},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,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=st(this._roots,t);i>=0&&this._roots.splice(i,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})(),Uo;Uo=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Ui={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,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*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)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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-Ui.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?Ui.bounceIn(e*2)*.5:Ui.bounceOut(e*2-1)*.5+.5}},La=Math.pow,gr=Math.sqrt,Wo=1e-8,pg=1e-4,Dc=gr(3),Ia=1/3,Re=oi(),ce=oi(),Wn=oi();function vr(e){return e>-Wo&&e<Wo}function gg(e){return e>Wo||e<-Wo}function Vt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Ac(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function mg(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),u=3*(t-e),l=e-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(vr(f)&&vr(h))if(vr(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(vr(g)){var p=h/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m)}else if(g>0){var y=gr(g),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-La(-_,Ia):_=La(_,Ia),S<0?S=-La(-S,Ia):S=La(S,Ia);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*f*s-3*o*h)/(2*gr(f*f*f)),w=Math.acos(T)/3,x=gr(f),D=Math.cos(w),d=(-s-2*x*D)/(3*o),m=(-s+x*(D+Dc*Math.sin(w)))/(3*o),M=(-s+x*(D-Dc*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),m>=0&&m<=1&&(a[v++]=m),M>=0&&M<=1&&(a[v++]=M)}}return v}function yg(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,u=0;if(vr(o)){if(gg(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(vr(f))i[0]=-a/(2*o);else if(f>0){var h=gr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Yo(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,u=(n-r)*i+r,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function L1(e,t,r,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,m;Re[0]=u,Re[1]=l;for(var y=0;y<1;y+=.05)ce[0]=Vt(e,r,i,o,y),ce[1]=Vt(t,n,a,s,y),p=Un(Re,ce),p<v&&(h=y,v=p);v=1/0;for(var _=0;_<32&&!(c<pg);_++)d=h-c,g=h+c,ce[0]=Vt(e,r,i,o,d),ce[1]=Vt(t,n,a,s,d),p=Un(ce,Re),d>=0&&p<v?(h=d,v=p):(Wn[0]=Vt(e,r,i,o,g),Wn[1]=Vt(t,n,a,s,g),m=Un(Wn,Re),g<=1&&m<v?(h=g,v=m):c*=.5);return gr(v)}function I1(e,t,r,n,i,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=Vt(e,r,i,o,d),p=Vt(t,n,a,s,d),m=g-l,y=p-f;h+=Math.sqrt(m*m+y*y),l=g,f=p}return h}function Xt(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Lc(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function P1(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,u=0;if(vr(a)){if(gg(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(vr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=gr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function _g(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Xo(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function E1(e,t,r,n,i,a,o,s,u){var l,f=.005,h=1/0;Re[0]=o,Re[1]=s;for(var c=0;c<1;c+=.05){ce[0]=Xt(e,r,i,c),ce[1]=Xt(t,n,a,c);var v=Un(Re,ce);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<pg);d++){var g=l-f,p=l+f;ce[0]=Xt(e,r,i,g),ce[1]=Xt(t,n,a,g);var v=Un(ce,Re);if(g>=0&&v<h)l=g,h=v;else{Wn[0]=Xt(e,r,i,p),Wn[1]=Xt(t,n,a,p);var m=Un(Wn,Re);p<=1&&m<h?(l=p,h=m):f*=.5}}return gr(h)}function R1(e,t,r,n,i,a,o){for(var s=e,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Xt(e,r,i,c),d=Xt(t,n,a,c),g=v-s,p=d-u;l+=Math.sqrt(g*g+p*p),s=v,u=d}return l}var O1=/cubic-bezier\(([0-9,\.e ]+)\)/;function Sg(e){var t=e&&O1.exec(e);if(t){var r=t[1].split(","),n=+Oe(r[0]),i=+Oe(r[1]),a=+Oe(r[2]),o=+Oe(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:mg(0,n,a,1,u,s)&&Vt(0,i,o,1,s[0])}}}var k1=(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||Nt,this.ondestroy=t.ondestroy||Nt,this.onrestart=t.onrestart||Nt,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 n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;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=i%n;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=j(t)?t:Ui[t]||Sg(t)},e})(),Tg=(function(){function e(t){this.value=t}return e})(),B1=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new Tg(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,n=t.next;r?r.next=n:this.head=n,n?n.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})(),qn=(function(){function e(t){this._list=new B1,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=r:s=new Tg(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),Ic={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 mr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Pl(e){return e<0?0:e>1?1:e}function lu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?mr(parseFloat(t)/100*255):mr(parseInt(t,10))}function rn(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Pl(parseFloat(t)/100):Pl(parseFloat(t))}function fu(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 Pa(e,t,r){return e+(t-e)*r}function se(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function El(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var wg=new qn(20),Ea=null;function _n(e,t){Ea&&El(Ea,t),Ea=wg.put(e,Ea||t.slice())}function Ne(e,t){if(e){t=t||[];var r=wg.get(e);if(r)return El(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Ic)return El(t,Ic[n]),_n(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){se(t,0,0,0,1);return}return se(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),_n(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){se(t,0,0,0,1);return}return se(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),_n(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?se(t,+l[0],+l[1],+l[2],1):se(t,0,0,0,1);f=rn(l.pop());case"rgb":if(l.length>=3)return se(t,lu(l[0]),lu(l[1]),lu(l[2]),l.length===3?f:rn(l[3])),_n(e,t),t;se(t,0,0,0,1);return;case"hsla":if(l.length!==4){se(t,0,0,0,1);return}return l[3]=rn(l[3]),Rl(l,t),_n(e,t),t;case"hsl":if(l.length!==3){se(t,0,0,0,1);return}return Rl(l,t),_n(e,t),t;default:return}}se(t,0,0,0,1)}}function Rl(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=rn(e[1]),i=rn(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],se(t,mr(fu(o,a,r+1/3)*255),mr(fu(o,a,r)*255),mr(fu(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function N1(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,u,l;if(o===0)u=0,l=0;else{s<.5?l=o/(a+i):l=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?u=c-h:r===a?u=1/3+f-c:n===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 Pc(e,t){var r=Ne(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return _a(r,r.length===4?"rgba":"rgb")}}function D2(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ne(t[i]),s=Ne(t[a]),u=n-i,l=_a([mr(Pa(o[0],s[0],u)),mr(Pa(o[1],s[1],u)),mr(Pa(o[2],s[2],u)),Pl(Pa(o[3],s[3],u))],"rgba");return r?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function Ol(e,t,r,n){var i=Ne(e);if(e)return i=N1(i),r!=null&&(i[1]=rn(j(r)?r(i[1]):r)),n!=null&&(i[2]=rn(j(n)?n(i[2]):n)),_a(Rl(i),"rgba")}function _a(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 Zo(e,t){var r=Ne(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Ec=new qn(100);function Rc(e){if(F(e)){var t=Ec.get(e);return t||(t=Pc(e,-.1),Ec.put(e,t)),t}else if(Ts(e)){var r=k({},e);return r.colorStops=Y(e.colorStops,function(n){return{offset:n.offset,color:Pc(n.color,-.1)}}),r}return e}function F1(e){return e.type==="linear"}function z1(e){return e.type==="radial"}(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(e){return Buffer.from(e).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var kl=Array.prototype.slice;function je(e,t,r){return(t-e)*r+e}function hu(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=je(t[a],r[a],n);return e}function H1(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=je(t[o][s],r[o][s],n)}return e}function Ra(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function Oc(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function V1(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function G1(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var u=a;u<o;u++)n.push(r===1?i[u]:kl.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(r===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function wo(e){if(Kt(e)){var t=e.length;if(Kt(e[0])){for(var r=[],n=0;n<t;n++)r.push(kl.call(e[n]));return r}return kl.call(e)}return e}function xo(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 U1(e){return Kt(e&&e[0])?2:1}var Oa=0,bo=1,xg=2,Oi=3,Bl=4,Nl=5,kc=6;function Bc(e){return e===Bl||e===Nl}function ka(e){return e===bo||e===xg}var di=[0,0,0,0],W1=(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,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=kc,u=r;if(Kt(r)){var l=U1(r);s=l,(l===1&&!Tt(r[0])||l===2&&!Tt(r[0][0]))&&(o=!0)}else if(Tt(r)&&!ea(r))s=Oa;else if(F(r))if(!isNaN(+r))s=Oa;else{var f=Ne(r);f&&(u=f,s=Oi)}else if(Ts(r)){var h=k({},u);h.colorStops=Y(r.colorStops,function(v){return{offset:v.offset,color:Ne(v.color)}}),F1(r)?s=Bl:z1(r)&&(s=Nl),u=h}a===0?this.valType=s:(s!==this.valType||s===kc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=j(n)?n:Ui[n]||Sg(n)),i.push(c),c},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=ka(i),l=Bc(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?G1(c,v,i):l&&V1(c.colorStops,v.colorStops))}if(!s&&i!==Nl&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===Oa?n[f].additiveValue=n[f].value-d:i===Oi?n[f].additiveValue=Ra([],n[f].value,d,-1):ka(i)&&(n[f].additiveValue=i===bo?Ra([],n[f].value,d,-1):Oc([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,u=this.propName,l=a===Oi,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 p=d.percent-v.percent,m=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(m=d.easingFunc(m));var y=n?this._additiveValue:l?di:t[u];if((ka(a)||l)&&!y&&(y=this._additiveValue=[]),this.discrete)t[u]=m<1?v.rawValue:d.rawValue;else if(ka(a))a===bo?hu(y,v[i],d[i],m):H1(y,v[i],d[i],m);else if(Bc(a)){var _=v[i],S=d[i],T=a===Bl;t[u]={type:T?"linear":"radial",x:je(_.x,S.x,m),y:je(_.y,S.y,m),colorStops:Y(_.colorStops,function(x,D){var M=S.colorStops[D];return{offset:je(x.offset,M.offset,m),color:xo(hu([],x.color,M.color,m))}}),global:S.global},T?(t[u].x2=je(_.x2,S.x2,m),t[u].y2=je(_.y2,S.y2,m)):t[u].r=je(_.r,S.r,m)}else if(l)hu(y,v[i],d[i],m),n||(t[u]=xo(y));else{var w=je(v[i],d[i],m);n?this._additiveValue=w:t[u]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Oa?t[n]=t[n]+i:r===Oi?(Ne(t[n],di),Ra(di,di,i,1),t[n]=xo(di)):r===bo?Ra(t[n],t[n],i,1):r===xg&&Oc(t[n],t[n],i,1)},e})(),Qf=(function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Yf("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,gt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new W1(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===Oi&&l&&(l=xo(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,wo(l),i),this._trackKeys.push(s)}u.addKeyframe(t,wo(r[s]),i)}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,n=0;n<r;n++)t[n].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 n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=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(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new k1({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var g=!1,p=0;p<d.length;p++)if(d[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](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 Y(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[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<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=wo(u.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||gt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function zn(){return new Date().getTime()}var Y1=(function(e){z(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}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 n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=zn()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Uo(n),!r._paused&&r.update())}Uo(n)},t.prototype.start=function(){this._running||(this._time=zn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=zn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=zn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Qf(r,n.loop);return this.addAnimator(i),i},t})(Ye),X1=300,cu=K.domSupported,vu=(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},n=Y(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}})(),Nc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fc=!1;function Fl(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Z1(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 du(e){e&&(e.zrByTouch=!0)}function $1(e,t){return le(e.dom,new q1(e,t),!0)}function bg(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var q1=(function(){function e(t,r){this.stopPropagation=Nt,this.stopImmediatePropagation=Nt,this.preventDefault=Nt,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),we={mousedown:function(e){e=le(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=le(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=le(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=le(this.dom,e);var t=e.toElement||e.relatedTarget;bg(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Fc=!0,e=le(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Fc||(e=le(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=le(this.dom,e),du(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),we.mousemove.call(this,e),we.mousedown.call(this,e)},touchmove:function(e){e=le(this.dom,e),du(e),this.handler.processGesture(e,"change"),we.mousemove.call(this,e)},touchend:function(e){e=le(this.dom,e),du(e),this.handler.processGesture(e,"end"),we.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<X1&&we.click.call(this,e)},pointerdown:function(e){we.mousedown.call(this,e)},pointermove:function(e){Fl(e)||we.mousemove.call(this,e)},pointerup:function(e){we.mouseup.call(this,e)},pointerout:function(e){Fl(e)||we.mouseout.call(this,e)}};b(["click","dblclick","contextmenu"],function(e){we[e]=function(t){t=le(this.dom,t),this.trigger(e,t)}});var zl={pointermove:function(e){Fl(e)||zl.mousemove.call(this,e)},pointerup:function(e){zl.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 K1(e,t){var r=t.domHandlers;K.pointerEventsSupported?b(vu.pointer,function(n){Co(t,n,function(i){r[n].call(e,i)})}):(K.touchEventsSupported&&b(vu.touch,function(n){Co(t,n,function(i){r[n].call(e,i),Z1(t)})}),b(vu.mouse,function(n){Co(t,n,function(i){i=$f(i),t.touching||r[n].call(e,i)})}))}function Q1(e,t){K.pointerEventsSupported?b(Nc.pointer,r):K.touchEventsSupported||b(Nc.mouse,r);function r(n){function i(a){a=$f(a),bg(e,a.target)||(a=$1(e,a),t.domHandlers[n].call(e,a))}Co(t,n,i,{capture:!0})}}function Co(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,h1(e.domTarget,t,r,n)}function pu(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&c1(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var zc=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),j1=(function(e){z(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new zc(r,we),cu&&(i._globalHandlerScope=new zc(document,zl)),K1(i,i._localHandlerScope),i}return t.prototype.dispose=function(){pu(this._localHandlerScope),cu&&pu(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,cu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Q1(this,n):pu(n)}},t})(Ye),Cg=1;K.hasGlobalWindow&&(Cg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var $o=Cg,Hl=.4,Vl="#333",Gl="#ccc",J1="#eee",Hc=ma,Vc=5e-5;function Pr(e){return e>Vc||e<-Vc}var Er=[],Sn=[],gu=Be(),mu=Math.abs,Sa=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return tS(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 Pr(this.rotation)||Pr(this.x)||Pr(this.y)||Pr(this.scaleX-1)||Pr(this.scaleY-1)||Pr(this.skewX)||Pr(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(Hc(n),this.invTransform=null);return}n=n||Be(),r?this.getLocalTransform(n):Hc(n),t&&(r?Vi(n,t,n):qf(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Be(),ya(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Er);var n=Er[0]<0?-1:1,i=Er[1]<0?-1:1,a=((Er[0]-n)*r+n)/Er[0]||0,o=((Er[1]-i)*r+i)/Er[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}},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],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,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||Be(),Vi(Sn,t.invTransform,r),r=Sn);var n=this.originX,i=this.originY;(n||i)&&(gu[4]=n,gu[5]=i,Vi(Sn,r,gu),Sn[4]-=n,Sn[5]-=i,r=Sn),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 n=[t,r],i=this.invTransform;return i&&ye(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ye(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&mu(t[0]-1)>1e-10&&mu(t[3]-1)>1e-10?Math.sqrt(mu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){qo(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=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(n||i||s||u){var d=n+s,g=i+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&&Kf(r,r,l),r[4]+=n+f,r[5]+=i+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})(),tS=Sa.getLocalTransform,xs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function qo(e,t){return N_(e,t,xs)}function Fe(e){Ba||(Ba=new qn(100)),e=e||Sr;var t=Ba.get(e);return t||(t={font:e,strWidthCache:new qn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ee.measureText("国",e).width,asciiCharWidth:ee.measureText("a",e).width},Ba.put(e,t)),t}var Ba;function eS(e){if(!(yu>=Gc)){e=e||Sr;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=ee.measureText(String.fromCharCode(n),e).width;var i=+new Date-r;return i>16?yu=Gc:i>2&&yu++,t}}var yu=0,Gc=5;function Mg(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=eS(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function ze(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=ee.measureText(t,e.font).width,r.put(t,n)),n}function Uc(e,t,r,n){var i=ze(Fe(t),e),a=bs(t),o=Kn(0,i,r),s=nn(0,a,n),u=new Z(o,s,i,a);return u}function Dg(e,t,r,n){var i=((e||"")+"").split(`
`),a=i.length;if(a===1)return Uc(i[0],t,r,n);for(var o=new Z(0,0,0,0),s=0;s<i.length;s++){var u=Uc(i[s],t,r,n);s===0?o.copy(u):o.union(u)}return o}function Kn(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function nn(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function bs(e){return Fe(e).stWideCharWidth}function Qn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ag(e,t,r){var n=t.position||"inside",i=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(n instanceof Array)u+=Qn(n[0],r.width),l+=Qn(n[1],r.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return e=e||{},e.x=u,e.y=l,e.align=f,e.verticalAlign=h,e}var _u="__zr_normal__",Su=xs.concat(["ignore"]),rS=Tr(xs,function(e,t){return e[t]=!0,e},{ignore:!1}),Tn={},nS=new Z(0,0,0,0),Na=[],Mo=0,Cs=1,Ms=(function(){function e(t){this.id=ig(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,c=void 0;if((h||f)&&(c=nS,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Tn,n,c):Ag(Tn,n,c),a.x=Tn.x,a.y=Tn.y,o=Tn.align,s=Tn.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,g=void 0;v==="center"?(d=c.width*.5,g=c.height*.5):(d=Qn(v[0],c.width),g=Qn(v[1],c.height)),l=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+g+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],l||(a.originX=-p[0],a.originY=-p[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=m.overflowRect=m.overflowRect||new Z(0,0,0,0);a.getLocalTransform(Na),ya(Na,Na),Z.copy(y,c),y.applyTransform(Na)}else m.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,S=void 0,T=void 0,w=void 0;_&&this.canBeInsideText()?(S=n.insideFill,T=n.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(T==null||T==="auto")&&(T=this.getInsideTextStroke(S),w=!0)):(S=n.outsideFill,T=n.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(T==null||T==="auto")&&(T=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==m.fill||T!==m.stroke||w!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(u=!0,m.fill=S,m.stroke=T,m.autoStroke=w,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=$t,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()?Gl:Vl},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ne(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,_a(n,"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||{},k(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(H(t))for(var n=t,i=gt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==_u)){var o=i.targetName,s=o?r[o]:r;i.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,Su)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];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(_u,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===_u,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(st(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){Yf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=this._textContent,h=Wc(this,f,l,i);h&&!this.__inHover&&(this.__inHover=h),this._applyStateObj(t,l,this._normalState,r,Xc(this,n,u),u);var c=this._textGuide;return f&&f.useState(t,r,n,!!h),c&&c.useState(t,r,n,!!h),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Mo,this.__dirty&=~$t),l}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],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&&i.push(f)}var h=i[o-1],c=this._textContent,v=Wc(this,c,h,n);v&&!this.__inHover&&(this.__inHover=v);var d=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,Xc(this,r,g),g);var p=this._textGuide;c&&c.useStates(t,r,!!v),p&&p.useStates(t,r,!!v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=Mo,this.__dirty&=~$t)}},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=st(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=st(i,t),o=st(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];k(r,a),a.textConfig&&(n=n||{},k(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){if(this.__inHover!==Cs){var s=!(r&&i);r&&r.textConfig?(this.textConfig=k({},i?this.textConfig:n.textConfig),k(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<Su.length;f++){var h=Su[f],c=a&&rS[h];r&&r[h]!=null?c?(l=!0,u[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[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||n)[d]:r||n)}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 Sa,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),k(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|=$t;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);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 n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Qf(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=st(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){Tu(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Tu(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Tu(this,r,n,i),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=!1,t.__inHover=Mo,t.__dirty=$t;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=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(Ms,Ye);We(Ms,Sa);function Tu(e,t,r,n,i){r=r||{};var a=[];Lg(e,"",e,t,r,n,a,i);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 wu(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function iS(e){return Kt(e[0])}function aS(e,t,r){if(Kt(t[r]))if(Kt(e[r])||(e[r]=[]),Qt(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),wu(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(iS(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?wu(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else wu(a,i,o);a.length=i.length}else e[r]=t[r]}function oS(e,t){return e===t||Kt(e)&&Kt(t)&&sS(e,t)}function sS(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Lg(e,t,r,n,i,a,o,s){for(var u=gt(n),l=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!H(a),d=e.animators,g=[],p=0;p<u.length;p++){var m=u[p],y=n[m];if(y!=null&&r[m]!=null&&(v||a[m]))if(H(y)&&!Kt(y)&&!Ts(y)){if(t){s||(r[m]=y,e.updateDuringAnimation(t));continue}Lg(e,m,r[m],y,i,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,e.updateDuringAnimation(t),g.push(m))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var T=d[S];if(T.targetName===t){var w=T.stopTracks(g);if(w){var x=st(d,T);d.splice(x,1)}}}if(i.force||(g=kt(g,function(A){return!oS(n[A],r[A])}),_=g.length),_>0||i.force&&!o.length){var D=void 0,M=void 0,C=void 0;if(s){M={},c&&(D={});for(var S=0;S<_;S++){var m=g[S];M[m]=r[m],c?D[m]=n[m]:r[m]=n[m]}}else if(c){C={};for(var S=0;S<_;S++){var m=g[S];C[m]=wo(r[m]),aS(r,n,m)}}var T=new Qf(r,!1,!1,h?kt(d,function(I){return I.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),c&&D&&T.whenWithKeys(0,D,g),C&&T.whenWithKeys(0,C,g),T.whenWithKeys(l??500,s?M:n,g).delay(f||0),e.addAnimator(T,t),o.push(T)}}function Wc(e,t,r,n){return!(r&&r.hoverLayer||n)||Yc(e)||t&&Yc(t)?Mo:Cs}function Yc(e){return e.type==="text"||e.type==="tspan"}function Xc(e,t,r){return!t&&!e.__inHover&&r&&r.duration>0}var re=(function(e){z(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}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 n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},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,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=st(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=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 n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=st(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new Z(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(Z.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t})(Ms);re.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
*/var Do={},Ig={};function uS(e){delete Ig[e]}function lS(e){if(!e)return!1;if(typeof e=="string")return Zo(e,1)<Hl;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Zo(t[i].color,1);return r/=n,r<Hl}return!1}var fS=(function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new A1,o=n.renderer||"canvas";Do[o]||(o=gt(Do)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Do[o](r,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!K.node&&!K.worker&&!u?new j1(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?K.touchEventsSupported:!!f,c=44,v;h&&(v=G(n.pointerSize,c)),this.handler=new cg(a,s,l,s.root,v),this.animation=new Y1({stage:{update:u?null:function(){return i._flush(!1)}}}),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=lS(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||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var r,n=zn(),i=this._needsRefresh,a=this._needsRefreshHover;(i||a)&&(r=!0,this._refresh({animUpdate:t,refresh:i,refreshHover:a}));var o=zn();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-n})):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._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},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,n){return this._disposed||this.handler.on(t,r,n),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 re&&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,uS(this.id))},e})();function Zc(e,t){var r=new fS(ig(),e,t);return Ig[r.id]=r,r}function hS(e,t){Do[e]=t}var $c=1e-4,Pg=20,A2=14;function cS(e){return e.replace(/^\s+|\s+$/g,"")}var ne=Math.min,ht=Math.max,Lt=Math.abs,er=Math.round,ln=Math.floor,Ta=Math.ceil,dn=Math.pow,ra=Math.log,Ul=Math.LN10,vS=Math.PI,dS=Math.random;function qc(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/u*l+o}var Bt=pS;function pS(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 Wl(e,t,r)}function Wl(e,t,r){return F(e)?gS(e)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function gS(e){return!!cS(e).match(/%$/)}function at(e,t,r){return isNaN(t)?r?""+e:+e:(t=ne(ht(0,t),Pg),e=(+e).toFixed(t),r?e:+e)}function Eg(e){return e.sort(function(t,r){return t-r}),e}function dr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(er(e*t)/t===e)return r}return mS(e)}function mS(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return ht(0,o-n)}function yS(e,t,r){var n=Lt(e[1]-e[0]);if(!isFinite(n)||n===0)return NaN;var i=ra(2*Lt(r||1)*Lt(n))/Ul,a=ra(Lt(t))/Ul,o=ht(0,Ta(-i+a));return isFinite(o)||(o=NaN),o}function L2(e,t){var r=Tr(e,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=dn(10,t),i=Y(e,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=Y(i,function(v){return ln(v)}),s=Tr(o,function(v,d){return v+d},0),u=Y(i,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 Y(o,function(v){return v/n})}function _S(e,t){var r=ht(dr(e),dr(t)),n=e+t;return r>Pg?n:at(n,r)}var Kc=dn(2,53)-1;function Rg(e){var t=vS*2;return(e%t+t)%t}function Ko(e){return e>-$c&&e<$c}var SS=/^(?:(\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 si(e){if(e instanceof Date)return e;if(F(e)){var t=SS.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(er(e))}function Og(e){return dn(10,jf(e))}function jf(e){if(e===0)return 0;var t=ln(ra(e)/Ul);return e/dn(10,t)>=10&&t++,t}var kg=2;function Jf(e,t){var r=jf(e),n=dn(10,r),i=e/n,a;return t===kg?a=1:t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,at(e,-r)}function Qo(e){var t=parseFloat(e);return t==e&&(t!==0||!F(e)||e.indexOf("x")<=0)?t:NaN}function TS(e){return!isNaN(Qo(e))}function th(){return er(dS()*9)}function Bg(e,t){return t===0?e:Bg(t,e%t)}function Qc(e,t){return e==null?t:t==null?e:e*t/Bg(e,t)}function Ge(e){return e!=null&&isFinite(e)}var wS="[ECharts] ",xS=typeof console<"u"&&console.warn&&console.log;function bS(e,t,r){xS&&console[e](wS+t)}function Ng(e,t){bS("error",e)}function Zt(e){throw new Error(e)}function jc(e,t,r){return(t-e)*r+e}var Fg="series\0",CS="\0_ec_\0";function Ut(e){return e instanceof Array?e:e==null?[]:[e]}function Jc(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var tv=["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 wa(e){return H(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function MS(e){return H(e)&&!(e instanceof Array)}function DS(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=W();b(t,function(u,l){if(!H(u)){t[l]=null;return}});var s=AS(e,o,r);return(n||i)&&LS(s,e,o,t),n&&IS(s,t),n||i?PS(s,t,i):a&&ES(s,t),RS(s),s}function AS(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||na(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function LS(e,t,r,n){b(n,function(i,a){if(!(!i||i.id==null)){var o=Wi(i.id),s=r.get(o);if(s!=null){var u=e[s];tr(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function IS(e,t){b(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!na(r)&&!na(a)&&zg("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function PS(e,t,r){b(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||na(i.existing)||i.existing&&n.id!=null&&!zg("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function ES(e,t){b(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function RS(e){var t=W();b(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),b(e,function(r){var n=r.newOption;tr(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),b(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(H(a)){if(o.name=a.name!=null?Wi(a.name):i?i.name:Fg+n,i)o.id=Wi(i.id);else if(a.id!=null)o.id=Wi(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 zg(e,t,r){var n=He(t[e],null),i=He(r[e],null);return n!=null&&i!=null&&n===i}function Wi(e){return He(e,"")}function He(e,t){return e==null?t:F(e)?e:Tt(e)||wl(e)?e+"":t}function eh(e){var t=e.name;return!!(t&&t.indexOf(Fg))}function na(e){return e&&e.id!=null&&Wi(e.id).indexOf(CS)===0}function OS(e,t,r){b(e,function(n){var i=n.newOption;H(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=kS(t,i,n.existing,r))})}function kS(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function xa(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?Y(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?Y(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function vt(){var e="__ec_inner_"+BS++;return function(t){return t[e]||(t[e]={})}}var BS=th();function xu(e,t,r){var n=rh(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=r?r.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=ba(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 rh(e,t){var r;if(F(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=W(),a={},o=!1;return b(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&&st(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var pe={useDefault:!0,enableAll:!1,enableNone:!1},I2={useDefault:!1,enableAll:!0,enableNone:!0};function ba(e,t,r,n){n=n||pe;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=e.getComponent(t))?[u]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function NS(e,t,r){var n={};n[t+"Id"]=e[t+"Id"],n[t+"Index"]=e[t+"Index"],n[t+"Name"]=e[t+"Name"];var i={mainType:t,query:n};return r&&(i.subType=r),i}function Hg(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function FS(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function zS(e){return e==="auto"?K.domSupported?"html":"richText":e||"html"}function HS(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Tt(n)){var o=jc(r||0,n,i);return at(o,a?Math.max(dr(r||0),dr(n)):t)}else{if(F(n))return i<1?r:n;for(var s=[],u=r,l=n,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]=(i<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=jc(v,d,i);s[h]=at(o,a?Math.max(dr(v),dr(d)):t)}}return s}}function Ee(){return[1/0,-1/0]}function VS(e,t){rr(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Vg(e,t){rr(t)&&t<e[0]&&(e[0]=t)}function Gg(e,t){rr(t)&&t>e[1]&&(e[1]=t)}function GS(e,t){jn(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function rr(e){return e!=null&&isFinite(e)}function jn(e,t){return rr(e)&&rr(t)&&e<=t}function US(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function WS(e){jn(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function YS(){var e="__ec_once_"+XS++;return function(t,r){qt(t,e)||(t[e]=1,r())}}var XS=th();function nh(e,t,r){var n=W(),i=0;b(e,function(a){var o=t(a),s=n.get(o)||0;r&&r(a,s),!s&&!r&&(e[i++]=a),n.set(o,s+1)}),r||(e.length=i)}function ZS(e){return e.value+""}function $S(e){return e+""}function P2(e,t){return G(t,!0)?e.seriesIndex+2:0}function qS(e,t,r){var n=e.getData().count();return{progressiveRender:r.progressiveEnabled&&t.incrementalPrepareRender&&n>=r.threshold,large:e.get("large")&&n>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function E2(e,t){return{seriesType:e,overallReset:t}}function ih(e){return{overallReset:e}}var KS=".",Rr="___EC__COMPONENT__CONTAINER___",Ug="___EC__EXTENDED_CLASS___";function ke(e){var t={main:"",sub:""};if(e){var r=e.split(KS);t.main=r[0]||"",t.sub=r[1]||""}return t}function QS(e){tr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function jS(e){return!!(e&&e[Ug])}function ah(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return JS(n)?i=(function(a){z(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},F_(i,this)),k(i.prototype,r),i[Ug]=!0,i.extend=this.extend,i.superCall=rT,i.superApply=nT,i.superClass=n,i}}function JS(e){return j(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Wg(e,t){e.extend=t.extend}var tT=Math.round(Math.random()*10);function eT(e){var t=["__\0is_clz",tT++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function rT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function nT(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ds(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){QS(i),n.prototype.type=i;var a=ke(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Rr){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Rr]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=ke(n),a=[],o=t[i.main];return o&&o[Rr]?b(o,function(s,u){u!==Rr&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=ke(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return b(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=ke(n),a=t[i.main];return a&&a[Rr]};function r(n){var i=t[n.main];return(!i||!i[Rr])&&(i=t[n.main]={},i[Rr]=!0),i}}function ia(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var u=e[s][1];if(!(i&&st(i,u)>=0||a&&st(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[e[s][0]]=l)}}return o}}var iT=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],aT=ia(iT),oT=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return aT(this,t,r)},e})(),Yl=new qn(50);function sT(e){if(typeof e=="string"){var t=Yl.get(e);return t&&t.image}else return e}function Yg(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Yl.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!As(t)&&a.pending.push(o)):(t=ee.loadImage(e,ev,ev),t.__zrImageSrc=e,Yl.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function ev(){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],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function As(e){return e&&e.width&&e.height}var bu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function uT(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
`);a=Xg(r,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Zg(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;e.text=o.join(`
`),e.isTruncated=s}function Xg(e,t,r,n){n=n||{};var i=k({},n);r=G(r,"..."),i.maxIterations=G(n.maxIterations,2);var a=i.minChar=G(n.minChar,0),o=i.fontMeasureInfo=Fe(t),s=o.asciiCharWidth;i.placeholder=G(n.placeholder,"");for(var u=e=Math.max(0,e-1),l=0;l<a&&u>=s;l++)u-=s;var f=ze(o,r);return f>u&&(r="",f=0),u=e-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=u,i.containerWidth=e,i}function Zg(e,t,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=ze(a,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var u=s===0?lT(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,u),o=ze(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function lT(e,t,r){for(var n=0,i=0,a=e.length;i<a&&n<t;i++)n+=Mg(r,e.charCodeAt(i));return i}function fT(e,t,r,n){var i=oh(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=bs(l),c=G(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,g=t.width;g==null&&r!=null&&(g=r-s);var p=t.height;p==null&&n!=null&&(p=n-u);var m;g!=null&&(a==="break"||a==="breakAll")?m=i?$g(i,t.font,g,a==="breakAll",0).lines:[]:m=i?i.split(`
`):[];var y=m.length*c;if(p==null&&(p=y),y>p&&v){var _=Math.floor(p/c);d=d||m.length>_,m=m.slice(0,_),y=m.length*c}if(i&&f&&g!=null)for(var S=Xg(g,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),T={},w=0;w<m.length;w++)Zg(T,m[w],S),m[w]=T.textLine,d=d||T.isTruncated;for(var x=p,D=0,M=Fe(l),w=0;w<m.length;w++)D=Math.max(ze(M,m[w]),D);g==null&&(g=D);var C=g;return x+=u,C+=s,{lines:m,height:p,outerWidth:C,outerHeight:x,lineHeight:c,calculatedLineHeight:h,contentWidth:D,contentHeight:y,width:g,isTruncated:d}}var hT=(function(){function e(){}return e})(),rv=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),cT=(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 vT(e,t,r,n,i){var a=new cT,o=oh(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&&n!=null&&(h=n-l);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=bu.lastIndex=0,g;(g=bu.exec(o))!=null;){var p=g.index;p>d&&Cu(a,o.substring(d,p),t,v),Cu(a,g[2],t,v,g[1]),d=bu.lastIndex}d<o.length&&Cu(a,o.substring(d,o.length),t,v);var m=[],y=0,_=0,S=c==="truncate",T=t.lineOverflow==="truncate",w={};function x(ut,jt,Ze){ut.width=jt,ut.lineHeight=Ze,y+=Ze,_=Math.max(_,jt)}t:for(var D=0;D<a.lines.length;D++){for(var M=a.lines[D],C=0,A=0,I=0;I<M.tokens.length;I++){var L=M.tokens[I],P=L.styleName&&t.rich[L.styleName]||{},E=L.textPadding=P.padding,R=E?E[1]+E[3]:0,N=L.font=P.font||t.font;L.contentHeight=bs(N);var X=G(P.height,L.contentHeight);if(L.innerHeight=X,E&&(X+=E[0]+E[2]),L.height=X,L.lineHeight=Gn(P.lineHeight,t.lineHeight,X),L.align=P&&P.align||i,L.verticalAlign=P&&P.verticalAlign||"middle",T&&h!=null&&y+L.lineHeight>h){var $=a.lines.length;I>0?(M.tokens=M.tokens.slice(0,I),x(M,A,C),a.lines=a.lines.slice(0,D+1)):a.lines=a.lines.slice(0,D),a.isTruncated=a.isTruncated||a.lines.length<$;break t}var J=P.width,q=J==null||J==="auto";if(typeof J=="string"&&J.charAt(J.length-1)==="%")L.percentWidth=J,m.push(L),L.contentWidth=ze(Fe(N),L.text);else{if(q){var tt=P.backgroundColor,et=tt&&tt.image;et&&(et=sT(et),As(et)&&(L.width=Math.max(L.width,et.width*X/et.height)))}var V=S&&f!=null?f-A:null;V!=null&&V<L.width?!q||V<R?(L.text="",L.width=L.contentWidth=0):(uT(w,L.text,V-R,N,t.ellipsis,{minChar:t.truncateMinChar}),L.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,L.width=L.contentWidth=ze(Fe(N),L.text)):L.contentWidth=ze(Fe(N),L.text)}L.width+=R,A+=L.width,P&&(C=Math.max(C,L.lineHeight))}x(M,A,C)}a.outerWidth=a.width=G(f,_),a.outerHeight=a.height=G(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=u,a.outerHeight+=l;for(var D=0;D<m.length;D++){var L=m[D],it=L.percentWidth;L.width=parseInt(it,10)/100*a.width}return a}function Cu(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,u=o.font||r.font,l=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Qn(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),l=!0),n.accumWidth=d}else{var g=$g(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}f||(f=t.split(`
`));for(var p=Fe(u),m=0;m<f.length;m++){var y=f[m],_=new hT;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[m]:ze(p,y),!m&&!l){var S=(s[s.length-1]||(s[0]=new rv)).tokens,T=S.length;T===1&&S[0].isLineHolder?S[0]=_:(y||!T||a)&&S.push(_)}else s.push(new rv([_]))}}function dT(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var pT=Tr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function gT(e){return dT(e)?!!pT[e]:!0}function $g(e,t,r,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=Fe(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=Mg(h,v.charCodeAt(0)),g=n?!1:!gT(v);if(a.length?f+d>r:i+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+=i),{accumWidth:f,lines:a,linesWidths:o}}function nv(e,t,r,n,i,a){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;Z.set(iv,Kn(r,o,i),nn(n,s,a),o,s),Z.intersect(t,iv,null,av);var u=av.outIntersectRect;e.outerWidth=u.width,e.outerHeight=u.height,e.baseX=Kn(u.x,u.width,i,!0),e.baseY=nn(u.y,u.height,a,!0)}}var iv=new Z(0,0,0,0),av={outIntersectRect:{},clamp:!0};function oh(e){return e!=null?e+="":e=""}function mT(e){var t=oh(e.text),r=e.font,n=ze(Fe(r),t),i=bs(r);return Xl(e,n,i,null)}function Xl(e,t,r,n){var i=new Z(Kn(e.x||0,t,e.textAlign),nn(e.y||0,r,e.textBaseline),t,r),a=n??(qg(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function qg(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var Zl="__zr_style_"+Math.round(Math.random()*10),an={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ls={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};an[Zl]=!0;var ov=["z","z2","invisible"],yT=["invisible"],Ca=(function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=gt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(r){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&_T(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&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,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,u=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Z(0,0,0,0)),n?Z.applyTransform(r,i,n):r.copy(i),(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 Z(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,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:k(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Ri,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ri)},t.prototype.styleUpdated=function(){this.__dirty&=~Ri},t.prototype.createStyle=function(r){return ws(an,r)},t.prototype.useStyle=function(r){r[Zl]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},t.prototype._useHoverStyle=function(r){this.__hoverStyle=r},t.prototype.isStyleObject=function(r){return r[Zl]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,ov)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var u=!(n&&a),l=this.__inHover===Cs,f;if(n&&n.style?o?a?f=n.style:(f=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(f,n.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(f,n.style)):u&&(f=i.style),f)if(o){var h=this.style;if(this.style=this.createStyle(u?{}:h),u)for(var c=gt(h),v=0;v<c.length;v++){var d=c[v];d in f&&(f[d]=f[d],this.style[d]=h[d])}for(var g=gt(f),v=0;v<g.length;v++){var d=g[v];this.style[d]=this.style[d]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else l?this._useHoverStyle(f):this.useStyle(f);if(!l)for(var p=this.__inHover?yT:ov,v=0;v<p.length;v++){var d=p[v];n&&n[d]!=null?this[d]=n[d]:u&&i[d]!=null&&(this[d]=i[d])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return k(r,n),r},t.prototype.getAnimationStyleProps=function(){return Ls},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=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=$t|Ri})(),t})(Ms),Mu=new Z(0,0,0,0),Du=new Z(0,0,0,0);function _T(e,t,r){return Mu.copy(e.getBoundingRect()),e.transform&&Mu.applyTransform(e.transform),Du.width=t,Du.height=r,!Mu.intersect(Du)}var ve=Math.min,de=Math.max,Au=Math.sin,Lu=Math.cos,Or=Math.PI*2,Fa=oi(),za=oi(),Ha=oi();function sv(e,t,r,n,i,a){i[0]=ve(e,r),i[1]=ve(t,n),a[0]=de(e,r),a[1]=de(t,n)}var uv=[],lv=[];function ST(e,t,r,n,i,a,o,s,u,l){var f=yg,h=Vt,c=f(e,r,i,o,uv);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,i,o,uv[v]);u[0]=ve(d,u[0]),l[0]=de(d,l[0])}c=f(t,n,a,s,lv);for(var v=0;v<c;v++){var g=h(t,n,a,s,lv[v]);u[1]=ve(g,u[1]),l[1]=de(g,l[1])}u[0]=ve(e,u[0]),l[0]=de(e,l[0]),u[0]=ve(o,u[0]),l[0]=de(o,l[0]),u[1]=ve(t,u[1]),l[1]=de(t,l[1]),u[1]=ve(s,u[1]),l[1]=de(s,l[1])}function TT(e,t,r,n,i,a,o,s){var u=_g,l=Xt,f=de(ve(u(e,r,i),1),0),h=de(ve(u(t,n,a),1),0),c=l(e,r,i,f),v=l(t,n,a,h);o[0]=ve(e,i,c),o[1]=ve(t,a,v),s[0]=de(e,i,c),s[1]=de(t,a,v)}function wT(e,t,r,n,i,a,o,s,u){var l=Bn,f=Nn,h=Math.abs(i-a);if(h%Or<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,u[0]=e+r,u[1]=t+n;return}if(Fa[0]=Lu(i)*r+e,Fa[1]=Au(i)*n+t,za[0]=Lu(a)*r+e,za[1]=Au(a)*n+t,l(s,Fa,za),f(u,Fa,za),i=i%Or,i<0&&(i=i+Or),a=a%Or,a<0&&(a=a+Or),i>a&&!o?a+=Or:i<a&&o&&(i+=Or),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Ha[0]=Lu(v)*r+e,Ha[1]=Au(v)*n+t,l(s,Ha,s),f(u,Ha,u))}var ot={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kr=[],Br=[],De=[],ir=[],Ae=[],Le=[],Iu=Math.min,Pu=Math.max,Nr=Math.cos,Fr=Math.sin,$e=Math.abs,$l=Math.PI,fr=$l*2,Eu=typeof Float32Array<"u",pi=[];function Ru(e){var t=Math.round(e/$l*1e8)/1e8;return t%2*$l}function xT(e,t){var r=Ru(e[0]);r<0&&(r+=fr);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=fr?i=r+fr:t&&r-i>=fr?i=r-fr:!t&&r>i?i=r+(fr-Ru(r-i)):t&&r<i&&(i=r-(fr-Ru(i-r))),e[0]=r,e[1]=i}var Jn=(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,n){n=n||0,n>0&&(this._ux=$e(n/$o/t)||0,this._uy=$e(n/$o/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(ot.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 n=$e(t-this._xi),i=$e(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ot.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(ot.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(ot.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),pi[0]=i,pi[1]=a,xT(pi,o),i=pi[0],a=pi[1];var s=a-i;return this.addData(ot.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Nr(a)*n+t,this._yi=Fr(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(ot.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ot.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,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)&&Eu&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();var o=this.data;if(Eu&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;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[i++]=u[s];this._len=i}},e.prototype.addData=function(t,r,n,i,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,Eu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){De[0]=De[1]=Ae[0]=Ae[1]=Number.MAX_VALUE,ir[0]=ir[1]=Le[0]=Le[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(r=t[o],n=t[o+1],i=r,a=n),s){case ot.M:r=i=t[o++],n=a=t[o++],Ae[0]=i,Ae[1]=a,Le[0]=i,Le[1]=a;break;case ot.L:sv(r,n,t[o],t[o+1],Ae,Le),r=t[o++],n=t[o++];break;case ot.C:ST(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ae,Le),r=t[o++],n=t[o++];break;case ot.Q:TT(r,n,t[o++],t[o++],t[o],t[o+1],Ae,Le),r=t[o++],n=t[o++];break;case ot.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&&(i=Nr(v)*h+l,a=Fr(v)*c+f),wT(l,f,h,c,v,d,g,Ae,Le),r=Nr(d)*h+l,n=Fr(d)*c+f;break;case ot.R:i=r=t[o++],a=n=t[o++];var p=t[o++],m=t[o++];sv(i,a,i+p,a+m,Ae,Le);break;case ot.Z:r=i,n=a;break}Bn(De,De,Ae),Nn(ir,ir,Le)}return o===0&&(De[0]=De[1]=ir[0]=ir[1]=0),new Z(De[0],De[1],ir[0]-De[0],ir[1]-De[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=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 ot.M:a=s=t[c++],o=u=t[c++];break;case ot.L:{var p=t[c++],m=t[c++],y=p-a,_=m-o;($e(y)>n||$e(_)>i||c===r-1)&&(g=Math.sqrt(y*y+_*_),a=p,o=m);break}case ot.C:{var S=t[c++],T=t[c++],p=t[c++],m=t[c++],w=t[c++],x=t[c++];g=I1(a,o,S,T,p,m,w,x,10),a=w,o=x;break}case ot.Q:{var S=t[c++],T=t[c++],p=t[c++],m=t[c++];g=R1(a,o,S,T,p,m,10),a=p,o=m;break}case ot.A:var D=t[c++],M=t[c++],C=t[c++],A=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,d&&(s=Nr(I)*C+D,u=Fr(I)*A+M),g=Pu(C,A)*Iu(fr,Math.abs(L)),a=Nr(P)*C+D,o=Fr(P)*A+M;break;case ot.R:{s=a=t[c++],u=o=t[c++];var E=t[c++],R=t[c++];g=E*2+R*2;break}case ot.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 n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=r<1,d,g,p=0,m=0,y,_=0,S,T;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,y=r*g,!y)))t:for(var w=0;w<o;){var x=n[w++],D=w===1;switch(D&&(l=n[w],f=n[w+1],s=l,u=f),x!==ot.L&&_>0&&(t.lineTo(S,T),_=0),x){case ot.M:s=l=n[w++],u=f=n[w++],t.moveTo(l,f);break;case ot.L:{h=n[w++],c=n[w++];var M=$e(h-l),C=$e(c-f);if(M>i||C>a){if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}p+=A}t.lineTo(h,c),l=h,f=c,_=0}else{var L=M*M+C*C;L>_&&(S=h,T=c,_=L)}break}case ot.C:{var P=n[w++],E=n[w++],R=n[w++],N=n[w++],X=n[w++],$=n[w++];if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;Yo(l,P,R,X,I,kr),Yo(f,E,N,$,I,Br),t.bezierCurveTo(kr[1],Br[1],kr[2],Br[2],kr[3],Br[3]);break t}p+=A}t.bezierCurveTo(P,E,R,N,X,$),l=X,f=$;break}case ot.Q:{var P=n[w++],E=n[w++],R=n[w++],N=n[w++];if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;Xo(l,P,R,I,kr),Xo(f,E,N,I,Br),t.quadraticCurveTo(kr[1],Br[1],kr[2],Br[2]);break t}p+=A}t.quadraticCurveTo(P,E,R,N),l=R,f=N;break}case ot.A:var J=n[w++],q=n[w++],tt=n[w++],et=n[w++],V=n[w++],it=n[w++],ut=n[w++],jt=!n[w++],Ze=tt>et?tt:et,Jt=$e(tt-et)>.001,It=V+it,Q=!1;if(v){var A=d[m++];p+A>y&&(It=V+it*(y-p)/A,Q=!0),p+=A}if(Jt&&t.ellipse?t.ellipse(J,q,tt,et,ut,V,It,jt):t.arc(J,q,Ze,V,It,jt),Q)break t;D&&(s=Nr(V)*tt+J,u=Fr(V)*et+q),l=Nr(It)*tt+J,f=Fr(It)*et+q;break;case ot.R:s=l=n[w],u=f=n[w+1],h=n[w++],c=n[w++];var nt=n[w++],Mr=n[w++];if(v){var A=d[m++];if(p+A>y){var zt=y-p;t.moveTo(h,c),t.lineTo(h+Iu(zt,nt),c),zt-=nt,zt>0&&t.lineTo(h+nt,c+Iu(zt,Mr)),zt-=Mr,zt>0&&t.lineTo(h+Pu(nt-zt,0),c+Mr),zt-=nt,zt>0&&t.lineTo(h,c+Pu(Mr-zt,0));break t}p+=A}t.rect(h,c,nt,Mr);break;case ot.Z:if(v){var A=d[m++];if(p+A>y){var I=(y-p)/A;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}p+=A}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=ot,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function wn(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)u=(t-n)/(e-r),l=(e*n-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 bT(e,t,r,n,i,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||l>e+h&&l>r+h&&l>i+h&&l>o+h||l<e-h&&l<r-h&&l<i-h&&l<o-h)return!1;var c=L1(e,t,r,n,i,a,o,s,l,f);return c<=h/2}function CT(e,t,r,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>a+l||u<t-l&&u<n-l&&u<a-l||s>e+l&&s>r+l&&s>i+l||s<e-l&&s<r-l&&s<i-l)return!1;var f=E1(e,t,r,n,i,a,s,u);return f<=l/2}var fv=Math.PI*2;function Va(e){return e%=fv,e<0&&(e+=fv),e}var gi=Math.PI*2;function MT(e,t,r,n,i,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(n-i)%gi<1e-4)return!0;if(a){var h=n;n=Va(i),i=Va(h)}else n=Va(n),i=Va(i);n>i&&(i+=gi);var c=Math.atan2(u,s);return c<0&&(c+=gi),c>=n&&c<=i||c+gi>=n&&c+gi<=i}function zr(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(r-e)+e;return u===i?1/0:u>i?s:0}var ar=Jn.CMD,Hr=Math.PI*2,DT=1e-4;function AT(e,t){return Math.abs(e-t)<DT}var Ht=[-1,-1,-1],he=[-1,-1];function LT(){var e=he[0];he[0]=he[1],he[1]=e}function IT(e,t,r,n,i,a,o,s,u,l){if(l>t&&l>n&&l>a&&l>s||l<t&&l<n&&l<a&&l<s)return 0;var f=mg(t,n,a,s,l,Ht);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Ht[g],m=p===0||p===1?.5:1,y=Vt(e,r,i,o,p);y<u||(c<0&&(c=yg(t,n,a,s,he),he[1]<he[0]&&c>1&&LT(),v=Vt(t,n,a,s,he[0]),c>1&&(d=Vt(t,n,a,s,he[1]))),c===2?p<he[0]?h+=v<t?m:-m:p<he[1]?h+=d<v?m:-m:h+=s<d?m:-m:p<he[0]?h+=v<t?m:-m:h+=s<v?m:-m)}return h}function PT(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=P1(t,n,a,s,Ht);if(u===0)return 0;var l=_g(t,n,a);if(l>=0&&l<=1){for(var f=0,h=Xt(t,n,a,l),c=0;c<u;c++){var v=Ht[c]===0||Ht[c]===1?.5:1,d=Xt(e,r,i,Ht[c]);d<o||(Ht[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Ht[0]===0||Ht[0]===1?.5:1,d=Xt(e,r,i,Ht[0]);return d<o?0:a<t?v:-v}}function ET(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var u=Math.sqrt(r*r-s*s);Ht[0]=-u,Ht[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=Hr-1e-4){n=0,i=Hr;var f=a?1:-1;return o>=Ht[0]+e&&o<=Ht[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Hr,i+=Hr);for(var c=0,v=0;v<2;v++){var d=Ht[v];if(d+e>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=Hr+g),(g>=n&&g<=i||g+Hr>=n&&g+Hr<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Kg(e,t,r,n,i){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++],p=d===1;switch(g===ar.M&&d>1&&(r||(s+=zr(u,l,f,h,n,i))),p&&(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(wn(u,l,a[d],a[d+1],t,n,i))return!0}else s+=zr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case ar.C:if(r){if(bT(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=IT(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case ar.Q:if(r){if(CT(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=PT(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case ar.A:var m=a[d++],y=a[d++],_=a[d++],S=a[d++],T=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(T)*_+m,v=Math.sin(T)*S+y,p?(f=c,h=v):s+=zr(u,l,c,v,n,i);var D=(n-m)*S/_+m;if(r){if(MT(m,y,S,T,T+w,x,t,D,i))return!0}else s+=ET(m,y,S,T,T+w,x,D,i);u=Math.cos(T+w)*_+m,l=Math.sin(T+w)*S+y;break;case ar.R:f=u=a[d++],h=l=a[d++];var M=a[d++],C=a[d++];if(c=f+M,v=h+C,r){if(wn(f,h,c,h,t,n,i)||wn(c,h,c,v,t,n,i)||wn(c,v,f,v,t,n,i)||wn(f,v,f,h,t,n,i))return!0}else s+=zr(c,h,c,v,n,i),s+=zr(f,v,f,h,n,i);break;case ar.Z:if(r){if(wn(u,l,f,h,t,n,i))return!0}else s+=zr(u,l,f,h,n,i);u=f,l=h;break}}return!r&&!AT(l,h)&&(s+=zr(u,l,f,h,n,i)||0),s!==0}function RT(e,t,r){return Kg(e,0,!1,t,r)}function OT(e,t,r,n){return Kg(e,t,!0,r,n)}var Qg=pt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},an),kT={style:pt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ls.style)},Ou=xs.concat(["invisible","culling","z","z2","zlevel","parent"]),mt=(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 n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){r.buildPath(u,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Ou.length;++s)i[Ou[s]]=this[Ou[s]];i.__dirty|=$t}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=gt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(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(F(r)){var n=Zo(r,0);return n>.5?Vl:n>.2?J1:Gl}else if(r)return Gl}return Vl},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(F(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Zo(r,0)<Hl;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~On},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 Jn(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&On)&&(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||i){s.copy(r);var u=n.strokeNoScale?this.getLineScale():1,l=n.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,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){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)),OT(s,u/l,r,n)))return!0}if(this.hasFill())return RT(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=On,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,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:k(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&On)},t.prototype.createStyle=function(r){return ws(Qg,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=k({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){if(e.prototype._applyStateObj.call(this,r,n,i,a,o,s),this.__inHover!==Cs){var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=k({},i.shape),k(l,n.shape)):(l=k({},a?this.shape:i.shape),k(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=k({},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 n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return kT},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=(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 i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=$t|Ri|On})(),t})(Ca),BT=pt({strokeFirst:!0,font:Sr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Qg),jo=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return qg(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return ws(BT,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=mT(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(Ca);jo.prototype.type="tspan";var NT=pt({x:0,y:0},an),FT={style:pt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ls.style)};function zT(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var pn=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return ws(NT,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=zT(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[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 FT},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Z(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Ca);pn.prototype.type="image";function HT(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+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>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/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,n),e.lineTo(r+i-u,n),u!==0&&e.arc(r+i-u,n+u,u,-Math.PI/2,0),e.lineTo(r+i,n+a-l),l!==0&&e.arc(r+i-l,n+a-l,l,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Hn=Math.round;function jg(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Hn(n*2)===Hn(i*2)&&(e.x1=e.x2=Jr(n,s,!0)),Hn(a*2)===Hn(o*2)&&(e.y1=e.y2=Jr(a,s,!0))),e}}function Jg(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Jr(n,s,!0),e.y=Jr(i,s,!0),e.width=Math.max(Jr(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Jr(i+o,s,!1)-e.y,o===0?0:1)),e}}function Jr(e,t,r){if(!t)return e;var n=Hn(e*2);return(n+Hn(t))%2===0?n/2:(n+(r?1:-1))/2}var VT=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),GT={},Mt=(function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new VT},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=Jg(GT,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?HT(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(mt);Mt.prototype.type="rect";var hv={fill:"#000"},cv=2,Ie={},UT={style:pt({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},Ls.style)},ie=(function(e){z(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=hv,n.attr(r),n}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 n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.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 n=this.innerTransformable;return n?n.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,$T(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 n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new Z(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);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||hv},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return k(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=gt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},k(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return UT},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Sr,i=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";nv(Ie,a.overflowRect,o,s,u,l),o=Ie.baseX,s=Ie.baseY;var f=_v(r),h=fT(f,r,Ie.outerWidth,Ie.outerHeight),c=ku(r),v=!!r.backgroundColor,d=h.outerHeight,g=h.outerWidth,p=h.lines,m=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=nn(s,h.contentHeight,l);if(c||i){var S=Kn(o,g,u),T=nn(s,d,l);c&&this._renderBackground(r,r,S,T,g,d)}_+=m/2,i&&(y=yv(o,u,i),l==="top"?_+=i[0]:l==="bottom"&&(_-=i[2]));for(var w=0,x=!1,D=!1,M=mv("fill"in r?r.fill:(D=!0,a.fill)),C=gv("stroke"in r?r.stroke:!v&&(!a.autoStroke||D)?(w=cv,x=!0,a.stroke):null),A=r.textShadowBlur>0,I=0;I<p.length;I++){var L=this._getOrCreateChild(jo),P=L.createStyle();L.useStyle(P),P.text=p[I],P.x=y,P.y=_,P.textAlign=u,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,A&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=C,P.fill=M,C&&(P.lineWidth=r.lineWidth||w,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,dv(P,r),_+=m,L.setBoundingRect(Xl(P,h.contentWidth,h.calculatedLineHeight,x?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;nv(Ie,n.overflowRect,o,s,i,a),o=Ie.baseX,s=Ie.baseY;var u=_v(r),l=vT(u,r,Ie.outerWidth,Ie.outerHeight,i),f=l.width,h=l.outerWidth,c=l.outerHeight,v=r.padding;this.isTruncated=!!l.isTruncated;var d=Kn(o,h,i),g=nn(s,c,a),p=d,m=g;v&&(p+=v[3],m+=v[0]);var y=p+f;ku(r)&&this._renderBackground(r,r,d,g,h,c);for(var _=!!r.backgroundColor,S=0;S<l.lines.length;S++){for(var T=l.lines[S],w=T.tokens,x=w.length,D=T.lineHeight,M=T.width,C=0,A=p,I=y,L=x-1,P=void 0;C<x&&(P=w[C],!P.align||P.align==="left");)this._placeToken(P,r,D,m,A,"left",_),M-=P.width,A+=P.width,C++;for(;L>=0&&(P=w[L],P.align==="right");)this._placeToken(P,r,D,m,I,"right",_),M-=P.width,I-=P.width,L--;for(A+=(f-(A-p)-(y-I)-M)/2;C<=L;)P=w[C],this._placeToken(P,r,D,m,A+P.width/2,"center",_),A+=P.width,C++;m+=D}},t.prototype._placeToken=function(r,n,i,a,o,s,u){var l=n.rich[r.styleName]||{};l.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&ku(l);c&&this._renderBackground(l,n,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=yv(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var g=this._getOrCreateChild(jo),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,y=!1,_=0,S=!1,T=mv("fill"in l?l.fill:"fill"in n?n.fill:(y=!0,m.fill)),w=gv("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!m.autoStroke||y)?(_=cv,S=!0,m.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Sr,p.opacity=Gn(l.opacity,n.opacity,1),dv(p,l),w&&(p.lineWidth=Gn(l.lineWidth,n.lineWidth,_),p.lineDash=G(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),T&&(p.fill=T),g.setBoundingRect(Xl(p,r.contentWidth,r.contentHeight,S?0:null))},t.prototype._renderBackground=function(r,n,i,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,p;if(c||r.lineHeight||l&&f){g=this._getOrCreateChild(Mt),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=v,g.dirtyShape()}if(c){var y=g.style;y.fill=u||null,y.fillOpacity=G(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(pn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var y=g.style;y.lineWidth=l,y.stroke=f,y.strokeOpacity=G(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||p).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Gn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return ZT(r)&&(n=[r.fontStyle,r.fontWeight,XT(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Oe(n)||r.textFont||r.font},t})(Ca),WT={left:!0,right:1,center:1},YT={top:1,bottom:1,middle:1},vv=["fontStyle","fontWeight","fontSize","fontFamily"];function XT(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Gf+"px":e+"px"}function dv(e,t){for(var r=0;r<vv.length;r++){var n=vv[r],i=t[n];i!=null&&(e[n]=i)}}function ZT(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function $T(e){return pv(e),b(e.rich,pv),e}function pv(e){if(e){e.font=ie.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||WT[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||YT[r]?r:"top";var n=e.padding;n&&(e.padding=Zf(e.padding))}}function gv(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function mv(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function yv(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function _v(e){var t=e.text;return t!=null&&(t+=""),t}function ku(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var yt=vt(),qT=function(e,t,r,n){if(n){var i=yt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=yt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},ui="undefined",tm="series",em=W(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ae="original",Ft="arrayRows",_e="objectRows",be="keyedColumns",yr="typedArray",rm="unknown",Ve="column",gn="row",KT=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],nm=(function(){function e(t){b(KT,function(r){this[r]=_t(t[r],t)},this)}return e})();function QT(e,t){return t.mainType===tm?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Sv=1,Tv={},im=vt(),sh=vt(),uh=0,Is=1,Ps=2,wr=["emphasis","blur","select"],wv=["normal","emphasis","blur","select"],jT=10,JT=9,on="highlight",Ao="downplay",Jo="select",ql="unselect",ts="toggleSelect",lh="selectchanged";function xn(e){return e!=null&&e!=="none"}function Es(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function am(e){Es(e,"emphasis",Ps)}function om(e){e.hoverState===Ps&&Es(e,"normal",uh)}function fh(e){Es(e,"blur",Is)}function sm(e){e.hoverState===Is&&Es(e,"normal",uh)}function tw(e){e.selected=!0}function ew(e){e.selected=!1}function xv(e,t,r){t(e,r)}function nr(e,t,r){xv(e,t,r),e.isGroup&&e.traverse(function(n){xv(n,t,r)})}function R2(e,t){switch(t){case"emphasis":e.hoverState=Ps;break;case"normal":e.hoverState=uh;break;case"blur":e.hoverState=Is;break;case"select":e.selected=!0}}function rw(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],u=i[s];a[s]=u??(n&&n[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 nw(e,t,r,n){var i=r&&st(r,"select")>=0,a=!1;if(e instanceof mt){var o=im(e),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(xn(s)||xn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=k({},n),l=k({},l),l.fill=s):!xn(l.fill)&&xn(s)?(a=!0,n=k({},n),l=k({},l),l.fill=Rc(s)):!xn(l.stroke)&&xn(u)&&(a||(n=k({},n),l=k({},l)),l.stroke=Rc(u)),n.style=l}}if(n&&n.z2==null){a||(n=k({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??jT)}return n}function iw(e,t,r){if(r&&r.z2==null){r=k({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??JT)}return r}function aw(e,t,r){var n=st(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:rw(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=k({},r),o=k({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Bu(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return nw(this,e,t,r);if(e==="blur")return aw(this,e,r);if(e==="select")return iw(this,e,r)}return r}function ow(e){e.stateProxy=Bu;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Bu),r&&(r.stateProxy=Bu)}function bv(e,t){!hm(e,t)&&!e.__highByOuter&&nr(e,am)}function Cv(e,t){!hm(e,t)&&!e.__highByOuter&&nr(e,om)}function Kl(e,t){e.__highByOuter|=1<<(t||0),nr(e,am)}function Ql(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&nr(e,om)}function sw(e){nr(e,fh)}function um(e){nr(e,sm)}function lm(e){nr(e,tw)}function fm(e){nr(e,ew)}function hm(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function cm(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=sh(a),s=QT(e,a),u=i==="series";!u&&n.push(s),o.isBlured&&(s.group.traverse(function(l){sm(l)}),u&&r.push(a)),o.isBlured=!1}),b(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function jl(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&um(c)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.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=n.getViewOfSeriesModel(l);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||fh(p)}),Kt(t))a(l.getData(),t);else if(H(t))for(var d=gt(t),g=0;g<d.length;g++)a(l.getData(d[g]),t[d[g]]);u.push(l),sh(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,i)}})}}function Jl(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){sh(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){fh(a)})}}}function uw(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=xa(i,t);a=(B(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=yt(o);jl(n,l.focus,l.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&jl(n,f,h,r)}}}function hh(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),u,l=0;l<s.length;l++)if(yt(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function lw(e,t,r){var n=yt(e),i=hh(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Jl(n.componentMainType,n.componentIndex,r),b(a,function(s){return bv(s,t)})):(jl(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Jl(n.componentMainType,n.componentIndex,r),bv(e,t))}function fw(e,t,r){cm(r);var n=yt(e),i=hh(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?b(i,function(a){return Cv(a,t)}):Cv(e,t)}function hw(e,t,r){if(rf(t)){var n=t.dataType,i=e.getData(n),a=xa(i,t);B(a)||(a=[a]),e[t.type===ts?"toggleSelect":t.type===Jo?"select":"unselect"](a,n)}}function Mv(e){var t=e.getAllData();b(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?lm(a):fm(a)})})}function cw(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();b(n,function(i){i.data;var a=i.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 tf(e,t,r){vm(e,!0),nr(e,ow),dw(e,t,r)}function vw(e){vm(e,!1)}function O2(e,t,r,n){n?vw(e):tf(e,t,r)}function dw(e,t,r){var n=yt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Dv=["emphasis","blur","select"],pw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function k2(e,t,r,n){r=r||"itemStyle";for(var i=0;i<Dv.length;i++){var a=Dv[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[pw[r]]()}}function vm(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function ef(e){return!!(e&&e.__highDownDispatcher)}function gw(e){var t=Tv[e];return t==null&&Sv<=32&&(t=Tv[e]=Sv++),t}function rf(e){var t=e.type;return t===Jo||t===ql||t===ts}function Av(e){var t=e.type;return t===on||t===Ao}function mw(e){var t=im(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 bn=Jn.CMD,yw=[[],[],[]],Lv=Math.sqrt,_w=Math.atan2;function Sw(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,u,l,f=bn.M,h=bn.C,c=bn.L,v=bn.R,d=bn.A,g=bn.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case g:a=2;break;case d:var p=t[4],m=t[5],y=Lv(t[0]*t[0]+t[1]*t[1]),_=Lv(t[2]*t[2]+t[3]*t[3]),S=_w(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=m,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++],ye(l,l,t),r[s++]=l[0],r[s++]=l[1],l[0]+=r[o++],l[1]+=r[o++],ye(l,l,t),r[s++]=l[0],r[s++]=l[1]}for(u=0;u<a;u++){var T=yw[u];T[0]=r[o++],T[1]=r[o++],ye(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var Nu=Math.sqrt,Ga=Math.sin,Ua=Math.cos,mi=Math.PI;function Iv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function nf(e,t){return(e[0]*t[0]+e[1]*t[1])/(Iv(e)*Iv(t))}function Pv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(nf(e,t))}function Ev(e,t,r,n,i,a,o,s,u,l,f){var h=u*(mi/180),c=Ua(h)*(e-r)/2+Ga(h)*(t-n)/2,v=-1*Ga(h)*(e-r)/2+Ua(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Nu(d),s*=Nu(d));var g=(i===a?-1:1)*Nu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,m=g*-s*c/o,y=(e+r)/2+Ua(h)*p-Ga(h)*m,_=(t+n)/2+Ga(h)*p+Ua(h)*m,S=Pv([1,0],[(c-p)/o,(v-m)/s]),T=[(c-p)/o,(v-m)/s],w=[(-1*c-p)/o,(-1*v-m)/s],x=Pv(T,w);if(nf(T,w)<=-1&&(x=mi),nf(T,w)>=1&&(x=0),x<0){var D=Math.round(x/mi*1e6)/1e6;x=mi*2+D%2*mi}f.addData(l,y,_,o,s,S,x,h,a)}var Tw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ww=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function xw(e){var t=new Jn;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Jn.CMD,u=e.match(Tw);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(ww)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var m=void 0,y=void 0,_=void 0,S=void 0,T=void 0,w=void 0,x=void 0,D=r,M=n,C=void 0,A=void 0;switch(h){case"l":r+=v[p++],n+=v[p++],c=s.L,t.addData(c,r,n);break;case"L":r=v[p++],n=v[p++],c=s.L,t.addData(c,r,n);break;case"m":r+=v[p++],n+=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="l";break;case"M":r=v[p++],n=v[p++],c=s.M,t.addData(c,r,n),i=r,a=n,h="L";break;case"h":r+=v[p++],c=s.L,t.addData(c,r,n);break;case"H":r=v[p++],c=s.L,t.addData(c,r,n);break;case"v":n+=v[p++],c=s.L,t.addData(c,r,n);break;case"V":n=v[p++],c=s.L,t.addData(c,r,n);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":m=r,y=n,C=t.len(),A=t.data,o===s.C&&(m+=r-A[C-4],y+=n-A[C-3]),c=s.C,D=v[p++],M=v[p++],r=v[p++],n=v[p++],t.addData(c,m,y,D,M,r,n);break;case"s":m=r,y=n,C=t.len(),A=t.data,o===s.C&&(m+=r-A[C-4],y+=n-A[C-3]),c=s.C,D=r+v[p++],M=n+v[p++],r+=v[p++],n+=v[p++],t.addData(c,m,y,D,M,r,n);break;case"Q":D=v[p++],M=v[p++],r=v[p++],n=v[p++],c=s.Q,t.addData(c,D,M,r,n);break;case"q":D=v[p++]+r,M=v[p++]+n,r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,D,M,r,n);break;case"T":m=r,y=n,C=t.len(),A=t.data,o===s.Q&&(m+=r-A[C-4],y+=n-A[C-3]),r=v[p++],n=v[p++],c=s.Q,t.addData(c,m,y,r,n);break;case"t":m=r,y=n,C=t.len(),A=t.data,o===s.Q&&(m+=r-A[C-4],y+=n-A[C-3]),r+=v[p++],n+=v[p++],c=s.Q,t.addData(c,m,y,r,n);break;case"A":_=v[p++],S=v[p++],T=v[p++],w=v[p++],x=v[p++],D=r,M=n,r=v[p++],n=v[p++],c=s.A,Ev(D,M,r,n,w,x,_,S,T,c,t);break;case"a":_=v[p++],S=v[p++],T=v[p++],w=v[p++],x=v[p++],D=r,M=n,r+=v[p++],n+=v[p++],c=s.A,Ev(D,M,r,n,w,x,_,S,T,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),r=i,n=a),o=c}return t.toStatic(),t}var dm=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(mt);function pm(e){return e.setData!=null}function gm(e,t){var r=xw(e),n=k({},t);return n.buildPath=function(i){var a=pm(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){Sw(r,i),this.dirtyShape()},n}function bw(e,t){return new dm(gm(e,t))}function Cw(e,t){var r=gm(e,t),n=(function(i){z(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(dm);return n}function Mw(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new mt(t);return o.createPathProxy(),o.buildPath=function(s){if(pm(s)){s.appendPath(r);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}var Dw=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),Rs=(function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Dw},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(mt);Rs.prototype.type="circle";var Aw=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),ch=(function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Aw},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;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})(mt);ch.prototype.type="ellipse";var mm=Math.PI,Fu=mm*2,Vr=Math.sin,Cn=Math.cos,Lw=Math.acos,Et=Math.atan2,Rv=Math.abs,Yi=Math.sqrt,ki=Math.max,Pe=Math.min,Te=1e-4;function Iw(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=h*u-f*l;if(!(c*c<Te))return c=(f*(t-a)-h*(e-i))/c,[e+c*u,t+c*l]}function Wa(e,t,r,n,i,a,o){var s=e-r,u=t-n,l=(o?a:-a)/Yi(s*s+u*u),f=l*u,h=-l*s,c=e+f,v=t+h,d=r+f,g=n+h,p=(c+d)/2,m=(v+g)/2,y=d-c,_=g-v,S=y*y+_*_,T=i-a,w=c*g-d*v,x=(_<0?-1:1)*Yi(ki(0,T*T*S-w*w)),D=(w*_-y*x)/S,M=(-w*y-_*x)/S,C=(w*_+y*x)/S,A=(-w*y+_*x)/S,I=D-p,L=M-m,P=C-p,E=A-m;return I*I+L*L>P*P+E*E&&(D=C,M=A),{cx:D,cy:M,x0:-f,y0:-h,x1:D*(i/T-1),y1:M*(i/T-1)}}function Pw(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 Ew(e,t){var r,n=ki(t.r,0),i=ki(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Rv(l-u),d=v>Fu&&v%Fu;if(d>Te&&(v=d),!(n>Te))e.moveTo(f,h);else if(v>Fu-Te)e.moveTo(f+n*Cn(u),h+n*Vr(u)),e.arc(f,h,n,u,l,!c),i>Te&&(e.moveTo(f+i*Cn(l),h+i*Vr(l)),e.arc(f,h,i,l,u,c));else{var g=void 0,p=void 0,m=void 0,y=void 0,_=void 0,S=void 0,T=void 0,w=void 0,x=void 0,D=void 0,M=void 0,C=void 0,A=void 0,I=void 0,L=void 0,P=void 0,E=n*Cn(u),R=n*Vr(u),N=i*Cn(l),X=i*Vr(l),$=v>Te;if($){var J=t.cornerRadius;J&&(r=Pw(J),g=r[0],p=r[1],m=r[2],y=r[3]);var q=Rv(n-i)/2;if(_=Pe(q,m),S=Pe(q,y),T=Pe(q,g),w=Pe(q,p),M=x=ki(_,S),C=D=ki(T,w),(x>Te||D>Te)&&(A=n*Cn(l),I=n*Vr(l),L=i*Cn(u),P=i*Vr(u),v<mm)){var tt=Iw(E,R,L,P,A,I,N,X);if(tt){var et=E-tt[0],V=R-tt[1],it=A-tt[0],ut=I-tt[1],jt=1/Vr(Lw((et*it+V*ut)/(Yi(et*et+V*V)*Yi(it*it+ut*ut)))/2),Ze=Yi(tt[0]*tt[0]+tt[1]*tt[1]);M=Pe(x,(n-Ze)/(jt+1)),C=Pe(D,(i-Ze)/(jt-1))}}}if(!$)e.moveTo(f+E,h+R);else if(M>Te){var Jt=Pe(m,M),It=Pe(y,M),Q=Wa(L,P,E,R,n,Jt,c),nt=Wa(A,I,N,X,n,It,c);e.moveTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),M<x&&Jt===It?e.arc(f+Q.cx,h+Q.cy,M,Et(Q.y0,Q.x0),Et(nt.y0,nt.x0),!c):(Jt>0&&e.arc(f+Q.cx,h+Q.cy,Jt,Et(Q.y0,Q.x0),Et(Q.y1,Q.x1),!c),e.arc(f,h,n,Et(Q.cy+Q.y1,Q.cx+Q.x1),Et(nt.cy+nt.y1,nt.cx+nt.x1),!c),It>0&&e.arc(f+nt.cx,h+nt.cy,It,Et(nt.y1,nt.x1),Et(nt.y0,nt.x0),!c))}else e.moveTo(f+E,h+R),e.arc(f,h,n,u,l,!c);if(!(i>Te)||!$)e.lineTo(f+N,h+X);else if(C>Te){var Jt=Pe(g,C),It=Pe(p,C),Q=Wa(N,X,A,I,i,-It,c),nt=Wa(E,R,L,P,i,-Jt,c);e.lineTo(f+Q.cx+Q.x0,h+Q.cy+Q.y0),C<D&&Jt===It?e.arc(f+Q.cx,h+Q.cy,C,Et(Q.y0,Q.x0),Et(nt.y0,nt.x0),!c):(It>0&&e.arc(f+Q.cx,h+Q.cy,It,Et(Q.y0,Q.x0),Et(Q.y1,Q.x1),!c),e.arc(f,h,i,Et(Q.cy+Q.y1,Q.cx+Q.x1),Et(nt.cy+nt.y1,nt.cx+nt.x1),c),Jt>0&&e.arc(f+nt.cx,h+nt.cy,Jt,Et(nt.y1,nt.x1),Et(nt.y0,nt.x0),!c))}else e.lineTo(f+N,h+X),e.arc(f,h,i,l,u,c)}e.closePath()}}}var Rw=(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})(),Os=(function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Rw},t.prototype.buildPath=function(r,n){Ew(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(mt);Os.prototype.type="sector";var Ow=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),vh=(function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ow},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t})(mt);vh.prototype.type="ring";function kw(e,t,r,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=e.length;c<v;c++)Bn(f,f,e[c]),Nn(h,h,e[c]);Bn(f,f,n[0]),Nn(h,h,n[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){i.push(Z_(e[c]));continue}else u=e[c-1],l=e[c+1];$_(a,l,u),Js(a,a,t);var g=bl(d,u),p=bl(d,l),m=g+p;m!==0&&(g/=m,p/=m),Js(o,a,-g),Js(s,a,p);var y=pc([],d,o),_=pc([],d,s);n&&(Nn(y,y,f),Bn(y,y,h),Nn(_,_,f),Bn(_,_,h)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function ym(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=kw(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var Bw=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),dh=(function(e){z(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Bw},t.prototype.buildPath=function(r,n){ym(r,n,!0)},t})(mt);dh.prototype.type="polygon";var Nw=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),ph=(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 Nw},t.prototype.buildPath=function(r,n){ym(r,n,!1)},t})(mt);ph.prototype.type="polyline";var Fw={},zw=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),xr=(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 zw},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var u=jg(Fw,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(r.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(mt);xr.prototype.type="line";var Wt=[],Hw=(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 Ov(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Ac:Vt)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Ac:Vt)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Lc:Xt)(e.x1,e.cpx1,e.x2,t),(r?Lc:Xt)(e.y1,e.cpy1,e.y2,t)]}var gh=(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 Hw},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(i,a),f==null||h==null?(c<1&&(Xo(i,u,o,c,Wt),u=Wt[1],o=Wt[2],Xo(a,l,s,c,Wt),l=Wt[1],s=Wt[2]),r.quadraticCurveTo(u,l,o,s)):(c<1&&(Yo(i,u,f,o,c,Wt),u=Wt[1],f=Wt[2],o=Wt[3],Yo(a,l,h,s,c,Wt),l=Wt[1],h=Wt[2],s=Wt[3]),r.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(r){return Ov(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Ov(this.shape,r,!0);return Q_(n,n)},t})(mt);gh.prototype.type="bezier-curve";var Vw=(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})(),ks=(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 Vw},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,u,!l)},t})(mt);ks.prototype.type="arc";var Gw=(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,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),mt.prototype.getBoundingRect.call(this)},t})(mt),_m=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),Uw=(function(e){z(t,e);function t(r,n,i,a,o,s){var u=e.call(this,o)||this;return u.x=r??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(_m),Ww=(function(e){z(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(_m),zu=Math.min,Yw=Math.max,Ya=Math.abs,Gr=[0,0],Ur=[0,0],At=fg(),Xa=At.minTv,Za=At.maxTv,Sm=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ct;for(var n=0;n<2;n++)this._axes[n]=new ct;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),r)for(var l=0;l<4;l++)n[l].transform(r);ct.sub(i[0],n[1],n[0]),ct.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},e.prototype.intersect=function(t,r,n){var i=!0,a=!r;return r&&ct.set(r,0,0),At.reset(n,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a)||!a&&!At.negativeSize&&ct.copy(r,i?At.useDir?At.dirMinTv:Xa:Za),i},e.prototype._intersectCheckOneSide=function(t,r,n,i){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,Gr),t._getProjMinMaxOnAxis(o,r._corners,Ur),At.negativeSize||Gr[1]<Ur[0]||Gr[0]>Ur[1]){if(a=!1,At.negativeSize||n)return a;var u=Ya(Ur[0]-Gr[1]),l=Ya(Gr[0]-Ur[1]);zu(u,l)>Za.len()&&(u<l?ct.scale(Za,s,-u*i):ct.scale(Za,s,l*i))}else if(!n){var u=Ya(Ur[0]-Gr[1]),l=Ya(Gr[0]-Ur[1]);(At.useDir||zu(u,l)<Xa.len())&&((u<l||!At.bidirectional)&&(ct.scale(Xa,s,u*i),At.useDir&&At.calcDirMTV()),(u>=l||!At.bidirectional)&&(ct.scale(Xa,s,-l*i),At.useDir&&At.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,u=o,l=1;l<r.length;l++){var f=r[l].dot(i)+a[t];s=zu(f,s),u=Yw(f,u)}n[0]=s+At.touchThreshold,n[1]=u-At.touchThreshold,At.negativeSize=n[1]<n[0]},e})(),Tm=0,Xw=1,Zw=2,$w=1,Lo=0,qw=[],Kw=(function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=Xw,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},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,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new Z(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(qw)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})(Ca),Qw=vt();function jw(e,t,r,n,i){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;n?(l=G(n.duration,200),f=G(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),j(h)&&(h=h(r,i)),j(l)&&(l=l(r));var c={duration:l||0,delay:h,easing:f};return c}else return null}function mh(e,t,r,n,i,a,o){var s=!1,u;j(i)?(o=a,a=i,i=null):H(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=e==="leave";l||t.stopAnimation("leave");var f=jw(e,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done: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 Ma(e,t,r,n,i,a){mh("update",e,t,r,n,i,a)}function Bs(e,t,r,n,i,a){mh("enter",e,t,r,n,i,a)}function Xi(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 wm(e,t,r,n,i,a){Xi(e)||mh("leave",e,t,r,n,i,a)}function kv(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),wm(e,{style:{opacity:0}},t,r,n)}function Jw(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||kv(i,t,r,n)}):kv(e,t,r,n)}function B2(e){Qw(e).oldStyle=e.style}var af={},cr=["x","y"],ti=["width","height"],xm=0,bm=1,Cm=2;function tx(e){return mt.extend(e)}var ex=Cw;function rx(e,t){return ex(e,t)}function Ce(e,t){af[e]=t}function nx(e){if(af.hasOwnProperty(e))return af[e]}function yh(e,t,r,n){var i=bw(e,t);return r&&(n==="center"&&(r=Dm(r,i.getBoundingRect())),Am(i,r)),i}function Mm(e,t,r){var n=new pn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(Dm(t,a))}}});return n}function Dm(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var ix=Mw;function Am(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function aa(e,t){return jg(e,e,{lineWidth:t}),e}function ax(e,t){return Jg(e,e,t),e}var ox=Jr;function sx(e,t){for(var r=ma([]);e&&e!==t;)Vi(r,e.getLocalTransform(),r),e=e.parent;return r}function _h(e,t,r){return t&&!Kt(t)&&(t=Sa.getLocalTransform(t)),r&&(t=ya([],t)),ye([],e,t)}function ux(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Lt(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Lt(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=_h(a,t,r),Lt(a[0])>Lt(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Bv(e){return!e.isGroup}function lx(e){return e.shape!=null}function Lm(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){Bv(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return lx(o)&&(s.shape=rt(o.shape)),s}var a=n(e);t.traverse(function(o){if(Bv(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),Ma(o,u,r,yt(o).dataIndex)}}})}function fx(e,t){return Y(e,function(r){var n=r[0];n=ht(n,t.x),n=ne(n,t.x+t.width);var i=r[1];return i=ht(i,t.y),i=ne(i,t.y+t.height),[n,i]})}function hx(e,t){var r=ht(e.x,t.x),n=ne(e.x+e.width,t.x+t.width),i=ht(e.y,t.y),a=ne(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Sh(e,t,r){var n=k({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),pt(i,r),new pn(n)):yh(e.replace("path://",""),n,r,"center")}function cx(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Im(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Im(e,t,r,n,i,a,o,s){var u=r-e,l=n-t,f=o-i,h=s-a,c=Hu(f,h,u,l);if(vx(c))return!1;var v=e-i,d=t-a,g=Hu(v,d,u,l)/c;if(g<0||g>1)return!1;var p=Hu(v,d,f,h)/c;return!(p<0||p>1)}function Hu(e,t,r,n){return e*n-r*t}function vx(e){return e<=1e-6&&e>=-1e-6}function es(e,t,r,n,i){return t==null||(Tt(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]),n&&(dt[0]=ht(0,dt[0]),dt[1]=ht(0,dt[1]),dt[2]=ht(0,dt[2]),dt[3]=ht(0,dt[3])),r&&(dt[0]=-dt[0],dt[1]=-dt[1],dt[2]=-dt[2],dt[3]=-dt[3]),Nv(e,dt,"x","width",3,1,i&&i[0]||0),Nv(e,dt,"y","height",0,2,i&&i[1]||0)),e}var dt=[0,0,0,0];function Nv(e,t,r,n,i,a,o){var s=t[a]+t[i],u=e[n];e[n]+=s,o=ht(0,ne(o,u)),e[n]<o?(e[n]=o,e[r]+=t[i]>=0?-t[i]:t[a]>=0?u+t[a]:Lt(s)>1e-8?(u-o)*t[i]/s:0):e[r]-=t[i]}function Ns(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=F(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=e.formatterParamsExtra;u&&b(gt(u),function(f){qt(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=yt(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:pt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function of(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Pm(e,t){if(e)if(B(e))for(var r=0;r<e.length;r++)of(e[r],t);else of(e,t)}function Th(e){return!e||Lt(e[1])<$a&&Lt(e[2])<$a||Lt(e[0])<$a&&Lt(e[3])<$a}var $a=1e-5;function oa(e,t){return e?Z.copy(e,t):t.clone()}function wh(e,t){return t?qf(e||Be(),t):void 0}function Em(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function dx(e){var t=-1/0,r=1/0;of(e,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(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 Rm(e,t,r){Om(e,t,r,-1/0)}function Om(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u<s.length;u++)n=ht(Om(s[u],t,r,n),n);else e.z=t,e.zlevel=r,n=ht(e.z2||0,n);if(i&&(i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var l=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+(l&&l.showAbove?1:-1))}return n}function px(e){return e.animation={duration:0},e}function gx(e,t){return t?qf(Bi.transform,t):ma(Bi.transform),Bi.decomposeTransform(),qo(e,Bi),e}var Bi=new Sa;Bi.transform=Be();function mx(e){var t=e.getZr().painter;return t.getType()==="canvas"?t:null}Ce("circle",Rs);Ce("ellipse",ch);Ce("sector",Os);Ce("ring",vh);Ce("polygon",dh);Ce("polyline",ph);Ce("rect",Mt);Ce("line",xr);Ce("bezierCurve",gh);Ce("arc",ks);const yx=Object.freeze(Object.defineProperty({__proto__:null,Arc:ks,BezierCurve:gh,BoundingRect:Z,Circle:Rs,CompoundPath:Gw,Ellipse:ch,Group:re,HOVER_LAYER_FOR_INCREMENTAL:Cm,HOVER_LAYER_FROM_THRESHOLD:bm,HOVER_LAYER_NO:xm,Image:pn,IncrementalDisplayable:Kw,Line:xr,LinearGradient:Uw,OrientedBoundingRect:Sm,Path:mt,Point:ct,Polygon:dh,Polyline:ph,RadialGradient:Ww,Rect:Mt,Ring:vh,Sector:Os,Text:ie,WH:ti,XY:cr,applyTransform:_h,calcZ2Range:dx,clipPointsByRect:fx,clipRectByRect:hx,createIcon:Sh,decomposeTransform:gx,ensureCopyRect:oa,ensureCopyTransform:wh,expandOrShrinkRect:es,extendPath:rx,extendShape:tx,getCurrentCanvasPainter:mx,getShapeClass:nx,getTransform:sx,groupTransition:Lm,initProps:Bs,isBoundingRectAxisAligned:Th,isElementRemoved:Xi,lineLineIntersect:Im,linePolygonIntersect:cx,makeImage:Mm,makePath:yh,mergePath:ix,payloadDisableAnimation:px,registerShape:Ce,removeElement:wm,removeElementWithFadeOut:Jw,resizePath:Am,retrieveZInfo:Em,setTooltipConfig:Ns,subPixelOptimize:ox,subPixelOptimizeLine:aa,subPixelOptimizeRect:ax,transformDirection:ux,traverseElements:Pm,traverseUpdateZ:Rm,updateProps:Ma},Symbol.toStringTag,{value:"Module"}));var Fs={};function km(e,t){for(var r=0;r<wr.length;r++){var n=wr[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function sf(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=j(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var u={normal:s},l=0;l<wr.length;l++){var f=wr[l],h=t[f];u[f]=G(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function _x(e,t,r,n){r=r||Fs;for(var i=e instanceof ie,a=!1,o=0;o<wv.length;o++){var s=t[wv[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?e:e.getTextContent();if(a){i||(u||(u=new ie,e.setTextContent(u)),e.stateProxy&&(u.stateProxy=e.stateProxy));var l=sf(r,t),f=t.normal,h=!!f.getShallow("show"),c=ei(f,n&&n.normal,r,!1,!i);c.text=l.normal,i||e.setTextConfig(Fv(f,r,!1));for(var o=0;o<wr.length;o++){var v=wr[o],s=t[v];if(s){var d=u.ensureState(v),g=!!G(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=ei(s,n&&n[v],r,!0,!i),d.style.text=l[v],!i){var p=e.ensureState(v);p.textConfig=Fv(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&&(xh(u).setLabelText=function(m){var y=sf(r,t,m);km(u,y)})}else u&&(u.ignore=!0);e.dirty()}function N2(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<wr.length;n++){var i=wr[n];r[i]=e.getModel([i,t])}return r}function ei(e,t,r,n,i){var a={};return Sx(a,e,r,n,i),t&&k(a,t),a}function Fv(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=G(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function Sx(e,t,r,n,i){r=r||Fs;var a=t.ecModel,o=a&&a.option.textStyle,s=Tx(t),u;if(s){u={};var l="richInheritPlainLabel",f=G(t.get(l),a?a.get(l):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);Gv(u[h]={},c,o,t,f,r,n,i,!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,p=t.get("minMargin");if(p!=null)p=Tt(p)?p/2:0,g.margin=[p,p,p,p],g.__marginType=Vn.minMargin;else{var m=t.get("textMargin");m!=null&&(g.margin=Zf(m),g.__marginType=Vn.textMargin)}Gv(e,t,o,null,null,r,n,i,!0,!1)}function Tx(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Fs).rich;if(r){t=t||{};for(var n=gt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var zv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Hv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Vv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Gv(e,t,r,n,i,a,o,s,u,l){r=!o&&r||Fs;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=G(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=G(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var g=G(t.getShallow("textBorderType"),r.textBorderType);g!=null&&(e.lineDash=g);var p=G(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!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 m=0;m<zv.length;m++){var y=zv[m],_=i!==!1&&n?Gn(t.getShallow(y),n.getShallow(y),r[y]):G(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var m=0;m<Hv.length;m++){var y=Hv[m],_=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 m=0;m<Vv.length;m++){var y=Vv[m],_=t.getShallow(y);_!=null&&(e[y]=_)}var T=t.getShallow("borderType");T!=null&&(e.borderDash=T),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function xx(e,t){var r=t&&t.getModel("textStyle");return Oe([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 xh=vt();function F2(e,t,r,n){if(e){var i=xh(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function z2(e,t,r,n,i){var a=xh(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=G(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=HS(r,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=sf({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);km(e,c)}e.percent=0,(a.prevValue==null?Bs:Ma)(e,{percent:1},n,t,null,l)}var Vn={minMargin:1,textMargin:2},bx=["textStyle","color"],Vu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Gu=new ie,Cx=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(bx):null)},e.prototype.getFont=function(){return xx({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")},n=0;n<Vu.length;n++)r[Vu[n]]=this.getShallow(Vu[n]);return Gu.useStyle(r),Gu.update(),Gu.getBoundingRect()},e})(),Bm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mx=ia(Bm),Dx=(function(){function e(){}return e.prototype.getLineStyle=function(t){return Mx(this,t)},e})(),Nm=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ax=ia(Nm),Lx=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Ax(this,t,r)},e})(),St=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){lt(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 n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),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(!K.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 n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();ah(St);eT(St);We(St,Dx);We(St,Lx);We(St,oT);We(St,Cx);var Ix=Math.round(Math.random()*10);function zs(e){return[e||"",Ix++].join("_")}function Px(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=ke(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=ke(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Ex(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(b(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]),b(d.successor,g?m:p)}b(c,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function m(y){c[y]=!0,p(y)}};function r(a){var o={},s=[];return b(a,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=i(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),b(h,function(c){st(l.predecessor,c)<0&&l.predecessor.push(c);var v=n(o,c);st(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return b(a,function(u){st(o,u)>=0&&s.push(u)}),s}}function Rx(e,t){return lt(lt({},e,!0),t,!0)}const Ox={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:". "}}}},kx={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 rs="ZH",bh="EN",Yn=bh,Io={},Ch={},Fm=K.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Yn).toUpperCase();return e.indexOf(rs)>-1?rs:Yn})():Yn;function zm(e,t){e=e.toUpperCase(),Ch[e]=new St(t),Io[e]=t}function Bx(e){if(F(e)){var t=Io[e.toUpperCase()]||{};return e===rs||e===bh?rt(t):lt(rt(t),rt(Io[Yn]),!1)}else return lt(rt(e),rt(Io[Yn]),!1)}function Nx(e){return Ch[e]}function Fx(){return Ch[Yn]}zm(bh,Ox);zm(rs,kx);var zx=null;function Hs(){return zx}function Hm(e,t){t.breakOption;var r=t.breakParsed;return r}function Mh(e){var t=e.brk;return t?t.breaks:[]}function ns(e){var t=e.brk;return t?t.hasBreaks():!1}var Dh=1e3,Ah=Dh*60,Zi=Ah*60,ge=Zi*24,Uv=ge*365,Hx={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})/},Po={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Vx="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",qa="{yyyy}-{MM}-{dd}",Wv={year:"{yyyy}",month:"{yyyy}-{MM}",day:qa,hour:qa+" "+Po.hour,minute:qa+" "+Po.minute,second:qa+" "+Po.second,millisecond:Vx},sn=["year","month","day","hour","minute","second","millisecond"],Gx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ux(e){return!F(e)&&!j(e)?Wx(e):e}function Wx(e){e=e||{};var t={},r=!0;return b(sn,function(n){r&&(r=e[n]==null)}),b(sn,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var u=sn[s],l=H(a)&&!B(a)?a[u]:a,f=void 0;B(l)?(f=l.slice(),o=f[0]||""):F(l)?(o=l,f=[o]):(o==null?o=Po[n]:Hx[u].test(o)||(o=t[u][u][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][u]=f}}),t}function or(e,t){return e+="","0000".substr(0,t-e.length)+e}function $i(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 Yx(e){return e===$i(e)}function Xx(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Vs(e,t,r,n){var i=si(e),a=i[Vm(r)](),o=i[Lh(r)]()+1,s=Math.floor((o-1)/3)+1,u=i[Ih(r)](),l=i["get"+(r?"UTC":"")+"Day"](),f=i[Ph(r)](),h=(f-1)%12+1,c=i[Eh(r)](),v=i[Rh(r)](),d=i[Oh(r)](),g=f>=12?"pm":"am",p=g.toUpperCase(),m=n instanceof St?n:Nx(n||Fm)||Fx(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),T=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").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,T[l]).replace(/{ee}/g,w[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 Zx(e,t,r,n,i){var a=null;if(F(r))a=r;else if(j(r)){var o={time:e.time,level:e.time?e.time.level:0},s=Hs();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=Eo(e.value,i);a=r[f][f][0]}}return Vs(new Date(e.value),a,i,n)}function Eo(e,t){var r=si(e),n=r[Lh(t)]()+1,i=r[Ih(t)](),a=r[Ph(t)](),o=r[Eh(t)](),s=r[Rh(t)](),u=r[Oh(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function uf(e,t,r){switch(t){case"year":e[Gm(r)](0);case"month":e[Um(r)](1);case"day":e[Wm(r)](0);case"hour":e[Ym(r)](0);case"minute":e[Xm(r)](0);case"second":e[Zm(r)](0)}return e}function Vm(e){return e?"getUTCFullYear":"getFullYear"}function Lh(e){return e?"getUTCMonth":"getMonth"}function Ih(e){return e?"getUTCDate":"getDate"}function Ph(e){return e?"getUTCHours":"getHours"}function Eh(e){return e?"getUTCMinutes":"getMinutes"}function Rh(e){return e?"getUTCSeconds":"getSeconds"}function Oh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function $x(e){return e?"setUTCFullYear":"setFullYear"}function Gm(e){return e?"setUTCMonth":"setMonth"}function Um(e){return e?"setUTCDate":"setDate"}function Wm(e){return e?"setUTCHours":"setHours"}function Ym(e){return e?"setUTCMinutes":"setMinutes"}function Xm(e){return e?"setUTCSeconds":"setSeconds"}function Zm(e){return e?"setUTCMilliseconds":"setMilliseconds"}function $m(e){if(!TS(e))return F(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function qm(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Gs=Zf;function lf(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Oe(f)?f:"-"}function a(f){return Ge(f)}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?si(e):e;if(isNaN(+u)){if(s)return"-"}else return Vs(u,n,r)}if(t==="ordinal")return wl(e)?i(e):Tt(e)&&a(e)?e+"":"-";var l=Qo(e);return a(l)?$m(l):wl(e)?i(e):typeof e=="boolean"?e+"":"-"}var Yv=["a","b","c","d","e","f","g"],Uu=function(e,t){return"{"+e+(t??"")+"}"};function Km(e,t,r){B(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Yv[a];e=e.replace(Uu(o),Uu(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];e=e.replace(Uu(Yv[u],s),r?Yt(l):l)}return e}function qx(e,t){var r=F(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Yt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Yt(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function sa(e,t){return t=t||"transparent",F(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Ro={},Wu={},kh=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(Ro),this._normalMasterList=n(Wu);function n(i,a){var o=[];return b(i,function(s,u){var l=s.create(t,r);o=o.concat(l||[])}),o}},e.prototype.update=function(t,r){b(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){Ro[t]=r;return}Wu[t]=r},e.get=function(t){return Wu[t]||Ro[t]},e})();function Kx(e){return!!Ro[e]}var Qx=1,Qm=2;function H2(e){jm.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var jm=W();function Jm(e){var t=e.getShallow("coord",!0),r=Qx;if(t==null){var n=jm.get(e.type);n&&n.getCoord2&&(r=Qm,t=n.getCoord2(e))}return{coord:t,from:r}}var Xn=0,Oo=1,jx=2;function Jx(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=Xn;if(r){var a=e.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Oo,a||(i=Xn)):n==="box"&&(i=jx,!a&&!Kx(r)&&(i=Xn))}return{coordSysType:r,kind:i}}function tb(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=Jx(t),o=a.kind,s=a.coordSysType;if(i&&o!==Oo&&(o=Oo,s=r),o===Xn||s!==r)return Xn;var u=n(r,t);return u?(o===Oo?t.coordinateSystem=u:t.boxCoordinateSystem=u,o):Xn}var ko=b,eb=["left","right","top","bottom","width","height"],Ka=[["width","left","right"],["height","top","bottom"]];function Bh(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=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>n||u.newline?(a=0,v=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+r,o=0,d=p,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 qi=Bh;Ct(Bh,"vertical");Ct(Bh,"horizontal");function rb(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 nb(e,t){var r=Nh(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Ni.point)a=r.refPoint,i=fn(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=B(o)?o:[o,o];i=fn(n,r.refContainer),a=r.boxCoordFrom===Qm?r.refPoint:[Bt(s[0],i.width)+i.x,Bt(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function V2(e,t){var r=nb(e,t),n=r.viewRect,i=r.center,a=e.get("radius");B(a)||(a=[0,a]);var o=Bt(n.width,t.getWidth()),s=Bt(n.height,t.getHeight()),u=Math.min(o,s),l=Bt(a[0],u/2),f=Bt(a[1],u/2);return{cx:i[0],cy:i[1],r0:l,r:f,viewRect:n}}function fn(e,t,r){r=Gs(r||0);var n=t.width,i=t.height,a=Bt(e.left,n),o=Bt(e.top,i),s=Bt(e.right,n),u=Bt(e.bottom,i),l=Bt(e.width,n),f=Bt(e.height,i),h=r[2]+r[0],c=r[1]+r[3],v=e.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),e.left||e.right){case"center":a=n/2-l/2-r[3];break;case"right":a=n-l-c;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new Z((t.x||0)+a+r[3],(t.y||0)+o+r[0],l,f);return d.margin=r,d}var Ni={rect:1,point:2};function Nh(e,t,r){var n,i,a,o=e.boxCoordinateSystem,s;if(o){var u=Jm(e),l=u.coord,f=u.from;if(o.dataToLayout){a=Ni.rect,s=f;var h=o.dataToLayout(l);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Ni.point,s=f,i=o.dataToPoint(l))}return a==null&&(a=Ni.rect),a===Ni.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function ua(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function br(e,t,r){var n=r&&r.ignoreSize;!B(n)&&(n=[n,n]);var i=o(Ka[0],0),a=o(Ka[1],1);u(Ka[0],e,i),u(Ka[1],e,a);function o(l,f){var h={},c=0,v={},d=0,g=2;if(ko(l,function(y){v[y]=e[y]}),ko(l,function(y){qt(t,y)&&(h[y]=v[y]=t[y]),s(h,y)&&c++,s(v,y)&&d++}),n[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 p=0;p<l.length;p++){var m=l[p];if(!qt(h,m)&&qt(e,m)){h[m]=e[m];break}}return h}function s(l,f){return l[f]!=null&&l[f]!=="auto"}function u(l,f,h){ko(l,function(c){f[c]=h[c]})}}function Da(e){return ib({},e)}function ib(e,t){return t&&e&&ko(eb,function(r){qt(t,r)&&(e[r]=t[r])}),e}var ab=vt(),ft=(function(e){z(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=zs("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ua(this),a=i?Da(r):{},o=n.getTheme();lt(r,o.get(this.mainType)),lt(r,this.getDefaultOption()),i&&br(r,a,i)},t.prototype.mergeOption=function(r,n){lt(this.option,r,!0);var i=ua(this);i&&br(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!jS(r))return r.defaultOption;var n=ab(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=lt(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ba(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return rb(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})(St);Wg(ft,St);Ds(ft);Px(ft);Ex(ft,ob);function ob(e){var t=[];return b(ft.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Y(t,function(r){return ke(r).main}),e!=="dataset"&&st(t,"dataset")<=0&&t.unshift("dataset"),t}var U={color:{},darkColor:{},size:{}},wt=U.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)"};k(wt,{primary:wt.neutral80,secondary:wt.neutral70,tertiary:wt.neutral60,quaternary:wt.neutral50,disabled:wt.neutral20,border:wt.neutral30,borderTint:wt.neutral20,borderShade:wt.neutral40,background:wt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:wt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:wt.neutral70,axisLineTint:wt.neutral40,axisTick:wt.neutral70,axisTickMinor:wt.neutral60,axisLabel:wt.neutral70,axisSplitLine:wt.neutral15,axisMinorSplitLine:wt.neutral05});for(var Wr in wt)if(wt.hasOwnProperty(Wr)){var Xv=wt[Wr];Wr==="theme"?U.darkColor.theme=wt.theme.slice():Wr==="highlight"?U.darkColor.highlight="rgba(255,231,130,0.4)":Wr.indexOf("accent")===0?U.darkColor[Wr]=Ol(Xv,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):U.darkColor[Wr]=Ol(Xv,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}U.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var ty="";typeof navigator<"u"&&(ty=navigator.platform||"");var Mn="rgba(0, 0, 0, 0.2)",ey=U.color.theme[0],sb=Ol(ey,null,null,.9);const ry={darkMode:"auto",colorBy:"series",color:U.color.theme,gradientColor:[sb,ey],aria:{decal:{decals:[{color:Mn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Mn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Mn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Mn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Mn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Mn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ty.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 Pt={Must:1,Might:2,Not:3},ny=vt();function ub(e){ny(e).datasetMap=W()}function lb(e,t,r){var n={},i=Fh(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,u=ny(s).datasetMap,l=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),b(e,function(g,p){var m=H(g)?g:e[p]={name:g};m.type==="ordinal"&&f==null&&(f=p,h=d(m)),n[m.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});b(e,function(g,p){var m=g.name,y=d(g);if(f==null){var _=c.valueWayDim;v(n[m],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===p)v(n[m],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(n[m],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(g,p,m){for(var y=0;y<m;y++)g.push(p+y)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function G2(e,t,r){var n={},i=Fh(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===_e||a===be)&&b(o,function(f,h){(H(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=ay(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Pt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Pt.Not)&&(f.n=v),m(f)&&c[f.n]!==Pt.Not)return f;p||(g===Pt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function m(y){return y.v!=null&&y.n!=null}return m(f)?f:m(h)?h:null})();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Fh(e){var t=e.get("data",!0);if(!t)return ba(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},pe).models[0]}function fb(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ba(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},pe).models}function iy(e,t){return ay(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function ay(e,t,r,n,i,a){var o,s=5;if(Qt(e))return Pt.Not;var u,l;if(n){var f=n[a];H(f)?(u=f.name,l=f.type):F(f)&&(u=f)}if(l!=null)return l==="ordinal"?Pt.Must:Pt.Not;if(t===Ft){var h=e;if(r===gn){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===_e){var g=e;if(!u)return Pt.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=S(p[u]))!=null)return o}}else if(t===be){var m=e;if(!u)return Pt.Not;var c=m[u];if(!c||Qt(c))return Pt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===ae)for(var y=e,v=0;v<y.length&&v<s;v++){var p=y[v],_=wa(p);if(!B(_))return Pt.Not;if((o=S(_[a]))!=null)return o}function S(T){var w=F(T);if(T!=null&&isFinite(Number(T))&&T!=="")return w?Pt.Might:Pt.Not;if(w&&T!=="-")return Pt.Must}return Pt.Not}var hb=W();function cb(e,t,r){var n=hb.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Zv=vt();vt();var zh=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Ut(this.get("color",!0)),a=this.get("colorLayer",!0);return db(this,Zv,i,a,t,r,n)},e.prototype.clearColorPalette=function(){pb(this,Zv)},e})();function vb(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function db(e,t,r,n,i,a,o){a=a||e;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?r:vb(n,o);if(f=f||r,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function pb(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Qa,yi,$v,qv="\0_ec_inner",gb=1,Hh=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new St(a),this._locale=new St(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=jv(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,jv(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?$v(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=a.getMediaOption(this);u.length&&b(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=W(),l=n&&n.replaceMergeMainTypeMap;ub(this),b(r,function(h,c){h!=null&&(ft.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?rt(h):lt(i[c],h,!0))}),l&&l.each(function(h,c){ft.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),f,this);function f(h){var c=cb(this,h,Ut(r[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=DS(v,c,d);OS(g,h,ft),i[h]=null,a.set(h,null),o.set(h,0);var p=[],m=[],y=0,_;b(g,function(S,T){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var D=h==="series",M=ft.getClass(h,S.keyInfo.subType,!D);if(!M)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===M)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var C=k({componentIndex:T},S.keyInfo);w=new M(x,this,this,C),k(w,C),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),m.push(w),y++):(p.push(void 0),m.push(void 0))},this),i[h]=p,a.set(h,m),o.set(h,y),h==="series"&&Qa(this)}this._seriesIndices||Qa(this)},t.prototype.getOption=function(){var r=rt(this.option);return b(r,function(n,i){if(ft.hasClass(i)){for(var a=Ut(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!na(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[qv],r},t.prototype.setTheme=function(r){this._theme=new St(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,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],b(Ut(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=Kv("id",a,s):o!=null?u=Kv("name",o,s):u=kt(s,function(l){return!!l}),Qv(u,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):kt(this._componentsMap.get(i),function(l){return!!l});return u(Qv(o,r));function s(l){var f=i+"Index",h=i+"Id",c=i+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:i,index:l[f],id:l[h],name:l[c]}:null}function u(l){return r.filter?kt(l,r.filter):l}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(j(r)){var o=n,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=F(r)?a.get(r):H(r)?this.findComponents(r):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=He(r,null);return kt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return kt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return kt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){yi(this),b(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){b(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){yi(this),b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return b(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return yi(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){yi(this);var i=[];b(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=W(i)},t.prototype.restoreData=function(r){Qa(this);var n=this._componentsMap,i=[];n.each(function(a,o){ft.hasClass(o)&&i.push(o)}),ft.topologicalTravel(i,ft.getAllClassMainTypes(),function(a){b(n.get(a),function(o){o&&(a!=="series"||!mb(o,r))&&o.restoreData()})})},t.internalField=(function(){Qa=function(r){var n=r._seriesIndices=[];b(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=W(n)},yi=function(r){},$v=function(r,n){r.option={},r.option[qv]=gb,r._componentsMap=W({series:[]}),r._componentsCount=W();var i=n.aria;H(i)&&i.enabled==null&&(i.enabled=!0),yb(n,r._theme.option),lt(n,ry,!1),r._mergeOption(n,null)}})(),t})(St);function mb(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function yb(e,t){var r=e.color&&!e.colorLayer;b(t,function(n,i){i==="colorLayer"&&r||i==="color"&&e.color||ft.hasClass(i)||(typeof n=="object"?e[i]=e[i]?lt(e[i],n,!1):rt(n):e[i]==null&&(e[i]=n))})}function Kv(e,t,r){if(B(t)){var n=W();return b(t,function(a){if(a!=null){var o=He(a,null);o!=null&&n.set(a,!0)}}),kt(r,function(a){return a&&n.get(a[e])})}else{var i=He(t,null);return kt(r,function(a){return a&&i!=null&&a[e]===i})}}function Qv(e,t){return t.hasOwnProperty("subType")?kt(e,function(r){return r&&r.subType===t.subType}):e}function jv(e){var t=W();return e&&b(Ut(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}We(Hh,zh);var _b=/^(min|max)?(.+)$/,Sb=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(b(Ut(t.series),function(o){o&&o.data&&Qt(o.data)&&xl(o.data)}),b(Ut(t.dataset),function(o){o&&o.source&&Qt(o.source)&&xl(o.source)})),t=rt(t);var i=this._optionBackup,a=Tb(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.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,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=rt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)wb(i[u].query,r,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!bb(o,this._currentMediaIndices)&&(s=Y(o,function(f){return rt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e})();function Tb(e,t,r){var n=[],i,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)&&b(l,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),b(u,function(v){return c(v)}),b(n,function(v){return c(v.option)});function c(v){b(t,function(d){d(v,r)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function wb(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return b(e,function(a,o){var s=o.match(_b);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();xb(n[l],a,u)||(i=!1)}}),i}function xb(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function bb(e,t){return e.join(",")===t.join(",")}var Se=b,la=H,Jv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Yu(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Jv.length;r<n;r++){var i=Jv[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?lt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?lt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Ot(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,pt(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Fi(e){Ot(e,"itemStyle"),Ot(e,"lineStyle"),Ot(e,"areaStyle"),Ot(e,"label"),Ot(e,"labelLine"),Ot(e,"upperLabel"),Ot(e,"edgeLabel")}function xt(e,t){var r=la(e)&&e[t],n=la(r)&&r.textStyle;if(n)for(var i=0,a=tv.length;i<a;i++){var o=tv[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function fe(e){e&&(Fi(e),xt(e,"label"),e.emphasis&&xt(e.emphasis,"label"))}function Cb(e){if(la(e)){Yu(e),Fi(e),xt(e,"label"),xt(e,"upperLabel"),xt(e,"edgeLabel"),e.emphasis&&(xt(e.emphasis,"label"),xt(e.emphasis,"upperLabel"),xt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Yu(t),fe(t));var r=e.markLine;r&&(Yu(r),fe(r));var n=e.markArea;n&&fe(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Qt(a))for(var o=0;o<a.length;o++)fe(a[o]);b(e.categories,function(l){Fi(l)})}if(i&&!Qt(i))for(var o=0;o<i.length;o++)fe(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)fe(s[o]);if(r=e.markLine,r&&r.data)for(var u=r.data,o=0;o<u.length;o++)B(u[o])?(fe(u[o][0]),fe(u[o][1])):fe(u[o]);e.type==="gauge"?(xt(e,"axisLabel"),xt(e,"title"),xt(e,"detail")):e.type==="treemap"?(Ot(e.breadcrumb,"itemStyle"),b(e.levels,function(l){Fi(l)})):e.type==="tree"&&Fi(e.leaves)}}function qe(e){return B(e)?e:e?[e]:[]}function td(e){return(B(e)?e[0]:e)||{}}function Mb(e,t){Se(qe(e.series),function(n){la(n)&&Cb(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Se(r,function(n){Se(qe(e[n]),function(i){i&&(xt(i,"axisLabel"),xt(i.axisPointer,"label"))})}),Se(qe(e.parallel),function(n){var i=n&&n.parallelAxisDefault;xt(i,"axisLabel"),xt(i&&i.axisPointer,"label")}),Se(qe(e.calendar),function(n){Ot(n,"itemStyle"),xt(n,"dayLabel"),xt(n,"monthLabel"),xt(n,"yearLabel")}),Se(qe(e.radar),function(n){xt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Se(qe(e.geo),function(n){la(n)&&(fe(n),Se(qe(n.regions),function(i){fe(i)}))}),Se(qe(e.timeline),function(n){fe(n),Ot(n,"label"),Ot(n,"itemStyle"),Ot(n,"controlStyle",!0);var i=n.data;B(i)&&b(i,function(a){H(a)&&(Ot(a,"label"),Ot(a,"itemStyle"))})}),Se(qe(e.toolbox),function(n){Ot(n,"iconStyle"),Se(n.feature,function(i){Ot(i,"iconStyle")})}),xt(td(e.axisPointer),"label"),xt(td(e.tooltip).axisPointer,"label")}function Db(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Ab(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function ed(e){e&&b(Lb,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Lb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Ib=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Xu=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function _i(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Xu.length;r++){var n=Xu[r][1],i=Xu[r][0];t[n]!=null&&(t[i]=t[n])}}function rd(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function nd(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Pb(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function oy(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&oy(e[r].children,t)}function sy(e,t){Mb(e,t),e.series=Ut(e.series),b(e.series,function(r){if(H(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),rd(r.label);var i=r.data;if(i&&!Qt(i))for(var a=0;a<i.length;a++)rd(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Db(r,"pointer.color");o!=null&&Ab(r,"itemStyle.color",o)}else if(n==="bar"){_i(r),_i(r.backgroundStyle),_i(r.emphasis);var i=r.data;if(i&&!Qt(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(_i(i[a]),_i(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),nd(r),oy(r.data,nd)}else n==="graph"||n==="sankey"?Pb(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&pt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),ed(r)}}),e.dataRange&&(e.visualMap=e.dataRange),b(Ib,function(r){var n=e[r];n&&(B(n)||(n=[n]),b(n,function(i){ed(i)}))})}var Eb=ih(Rb);function Rb(e){var t=W();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),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;i.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),b(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),Ob(r)}})}function Ob(e){b(e,function(t,r){var n=[],i=[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 i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var g=NaN,p=r-1;p>=0;p--){var m=e[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.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=_S(c,y),g=y;break}}}return n[0]=c,n[1]=g,n})})}var Us=(function(){function e(t){this.data=t.data||(t.sourceFormat===be?{}:[]),this.sourceFormat=t.sourceFormat||rm,this.seriesLayoutBy=t.seriesLayoutBy||Ve,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&iy(this,n)===Pt.Must&&(i.type="ordinal")}}return e})();function Vh(e){return e instanceof Us}function ff(e,t,r){r=r||ly(e);var n=t.seriesLayoutBy,i=Bb(e,r,n,t.sourceHeader,t.dimensions),a=new Us({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:rt(t)});return a}function uy(e){return new Us({data:e,sourceFormat:Qt(e)?yr:ae})}function kb(e){return new Us({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function ly(e){var t=rm;if(Qt(e))t=yr;else if(B(e)){e.length===0&&(t=Ft);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(B(i)||Qt(i)){t=Ft;break}else if(H(i)){t=_e;break}}}}else if(H(e)){for(var a in e)if(qt(e,a)&&Kt(e[a])){t=be;break}}return t}function Bb(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:id(i),startIndex:o,dimensionsDetectedCount:a};if(t===Ft){var s=e;n==="auto"||n==null?ad(function(l){l!=null&&l!=="-"&&(F(l)?o==null&&(o=1):o=0)},r,s,10):o=Tt(n)?n:n?1:0,!i&&o===1&&(i=[],ad(function(l,f){i[f]=l!=null?l+"":""},r,s,1/0)),a=i?i.length:r===gn?s.length:s[0]?s[0].length:null}else if(t===_e)i||(i=Nb(e));else if(t===be)i||(i=[],b(e,function(l,f){i.push(f)}));else if(t===ae){var u=wa(e[0]);a=B(u)&&u.length||1}return{startIndex:o,dimensionsDefine:id(i),dimensionsDetectedCount:a}}function Nb(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return gt(r)}function id(e){if(e){var t=W();return Y(e,function(r,n){r=H(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function ad(e,t,r,n){if(t===gn)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function fy(e){var t=e.sourceFormat;return t===_e||t===be}var Yr,Xr,Zr,$r,od,sd,hy=(function(){function e(t,r){var n=Vh(t)?t:uy(t);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===yr&&(this._offset=0,this._dimSize=r,this._data=i),sd(this,i,n)}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;sd=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=od[Gh(l,f)];if(k(o,v),l===yr)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=cy(l,f);o.getItem=_t(d,null,s,h,c);var g=vy(l,f);o.count=_t(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},n=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],p=s-o,m=u[c],y=0;y<p;y++){var _=f[y*h+c];m[o+y]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};od=(t={},t[Ft+"_"+Ve]={pure:!0,appendData:a},t[Ft+"_"+gn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[_e]={pure:!0,appendData:a},t[be]={pure:!0,appendData:function(o){var s=this._data;b(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[ae]={appendData:a},t[yr]={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})(),ja=function(e){B(e)||Ng("series.data or dataset.source must be an array.")};Yr={},Yr[Ft+"_"+Ve]=ja,Yr[Ft+"_"+gn]=ja,Yr[_e]=ja,Yr[be]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&Ng("dimension name must not be null/undefined.")}},Yr[ae]=ja;var ud=function(e,t,r,n){return e[n]},Fb=(Xr={},Xr[Ft+"_"+Ve]=function(e,t,r,n){return e[n+t]},Xr[Ft+"_"+gn]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},Xr[_e]=ud,Xr[be]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,u=s!=null?e[s]:null;a[o]=u?u[n]:null}return a},Xr[ae]=ud,Xr);function cy(e,t){var r=Fb[Gh(e,t)];return r}var ld=function(e,t,r){return e.length},zb=(Zr={},Zr[Ft+"_"+Ve]=function(e,t,r){return Math.max(0,e.length-t)},Zr[Ft+"_"+gn]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Zr[_e]=ld,Zr[be]=function(e,t,r){var n=r[0].name,i=n!=null?e[n]:null;return i?i.length:0},Zr[ae]=ld,Zr);function vy(e,t){var r=zb[Gh(e,t)];return r}var Zu=function(e,t,r){return e[t]},Hb=($r={},$r[Ft]=Zu,$r[_e]=function(e,t,r){return e[r]},$r[be]=Zu,$r[ae]=function(e,t,r){var n=wa(e);return n instanceof Array?n[t]:n},$r[yr]=Zu,$r);function dy(e){var t=Hb[e];return t}function Gh(e,t){return e===Ft?e+"_"+t:e}function ri(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return dy(a)(n,o,s)}else{var u=n;return a===ae&&(u=wa(n)),u}}}}var Vb=/\{@(.+?)\}/g,Gb=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.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:i,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),i!=null&&B(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(t);a=l.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(j(a))return u.status=r,u.dimensionIndex=i,a(u);if(F(a)){var f=Km(a,u);return f.replace(Vb,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=ri(s,t,d);if(o&&B(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return ri(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function fd(e){var t,r;return H(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Ki(e){return new Ub(e)}var Ub=(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,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(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(n)),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(!n&&(h||v<d)){var g=this._progress;if(B(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,u,l);else this._doProgress(g,v,d,u,l)}this._dueIndex=d;var m=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=m}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,n,i,a){hd.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:hd.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),B(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},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})(),hd=(function(){var e,t,r,n,i,a={reset:function(u,l,f,h){t=u,e=l,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var u=t%i*r+Math.ceil(t/i),l=t>=e?null:u<n?u:t;return t++,l}})();function Bo(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Tt(e)&&e!=null&&e!=="-"&&(e=+si(e)),e==null||e===""?NaN:Number(e))}W({number:function(e){return parseFloat(e)},time:function(e){return+si(e)},trim:function(e){return F(e)?Oe(e):e}});var Wb=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Tt(t)?t:Qo(t),i=Tt(r)?r:Qo(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=F(t),u=F(r);s&&(n=u?t:0),u&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e})();function Yb(e){var t="",r=-1/0,n=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+="G"+e.g,r=e.g),e.ge!=null&&(t+="GE"+e.ge,n=e.ge),e.l!=null&&(t+="L"+e.l,i=e.l),e.le!=null&&(t+="LE"+e.le,a=e.le)),{key:t,g:r,ge:n,l:i,le:a}}function Xb(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Zb=(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 Bo(t,r)},e})();function $b(e,t){var r=new Zb,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Ve&&Zt(o);var s=[],u={},l=e.dimensionsDefine;if(l)b(l,function(g,p){var m=g.name,y={index:p,name:m,displayName:g.displayName};if(s.push(y),m!=null){var _="";qt(u,m)&&Zt(_),u[m]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=cy(i,Ve);t.__isBuiltIn&&(r.getRawDataItem=function(g){return h(n,a,s,g)},r.getRawData=_t(qb,null,e)),r.cloneRawData=_t(Kb,null,e);var c=vy(i,Ve);r.count=_t(c,null,n,a,s);var v=dy(i);r.retrieveValue=function(g,p){var m=h(n,a,s,g);return d(m,p)};var d=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return v(g,p,m.name)}};return r.getDimensionInfo=_t(Qb,null,s,u),r.cloneAllDimensionInfo=_t(jb,null,s),r}function qb(e){var t=e.sourceFormat;if(!Uh(t)){var r="";Zt(r)}return e.data}function Kb(e){var t=e.sourceFormat,r=e.data;if(!Uh(t)){var n="";Zt(n)}if(t===Ft){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===_e){for(var i=[],a=0,o=r.length;a<o;a++)i.push(k({},r[a]));return i}}function Qb(e,t,r){if(r!=null){if(Tt(r)||!isNaN(r)&&!qt(t,r))return e[r];if(qt(t,r))return t[r]}}function jb(e){return rt(e)}var py=W();function Jb(e){e=rt(e);var t=e.type,r="";t||Zt(r);var n=t.split(":");n.length!==2&&Zt(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,py.set(t,e)}function tC(e,t,r){var n=Ut(e),i=n.length,a="";i||Zt(a);for(var o=0,s=i;o<s;o++){var u=n[o];t=eC(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function eC(e,t,r,n){var i="";t.length||Zt(i),H(e)||Zt(i);var a=e.type,o=py.get(a);o||Zt(i);var s=Y(t,function(l){return $b(l,o)}),u=Ut(o.transform({upstream:s[0],upstreamList:s,config:rt(e.config)}));return Y(u,function(l,f){var h="";H(l)||Zt(h),l.data||Zt(h);var c=ly(l.data);Uh(c)||Zt(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:Ve,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:Ve,sourceHeader:0,dimensions:l.dimensions};return ff(l.data,v,null)})}function Uh(e){return e===Ft||e===_e}var rC=typeof Uint32Array===ui?Array:Uint32Array,nC=typeof Uint16Array===ui?Array:Uint16Array,gy=typeof Int32Array===ui?Array:Int32Array,cd=typeof Float64Array===ui?Array:Float64Array,my={float:cd,int:gy,ordinal:Array,number:Array,time:cd},$u;function Dn(e){return e>65535?rC:nC}function iC(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function vd(e,t,r,n,i){var a=my[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];e[t]=u}}else e[t]=new a(n)}var hf=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=$u[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],fy(i),this._dimensions=Y(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 n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new my[r||"float"](this._rawCount),this._rawExtent[a]=Ee(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Ee());for(var u=a[t],l=o;l<s;l++){var f=n[l]=r.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,r||0),l=0;l<a;l++){var f=i[l];vd(n,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=i[d],g=$u.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=Y(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Ee()),vd(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,u);else for(var c=[],v=t;v<r;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(c,l[d],v,d);g[v]=p;var m=u[d];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!i.persistent&&i.clean&&i.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 n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)}),Eg(r);var n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[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,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=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 n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=Dn(this._rawCount);t=new n(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 n=this.clone(),i=n.count(),a=Dn(n._rawCount),o=new a(i),s=[],u=t.length,l=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(u===0)v=r(c);else if(u===1){var g=h[f][d];v=r(g,c)}else{for(var p=0;p<u;p++)s[p]=h[t[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=gt(t),a=i.length;if(!a)return this;var o=r.count(),s=Dn(r._rawCount),u=new s(o),l=0,f=i[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 p=v[i[0]],m=0;m<n;m++){var y=p[m];(y>=h&&y<=c||isNaN(y))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],T=t[i[1]][1],m=0;m<n;m++){var y=p[m],w=_[m];(y>=h&&y<=c||isNaN(y))&&(w>=S&&w<=T||isNaN(w))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var m=0;m<o;m++){var x=r.getRawIndex(m),y=v[i[0]][x];(y>=h&&y<=c||isNaN(y))&&(u[l++]=x)}else for(var m=0;m<o;m++){for(var D=!0,x=r.getRawIndex(m),M=0;M<a;M++){var C=i[M],y=v[C][x];(y<t[C][0]||y>t[C][1])&&(D=!1)}D&&(u[l++]=r.getRawIndex(m))}return l<o&&(r._indices=u),r._count=l,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<r.length;f++)l[r[f]]=Ee();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=i[r[v]][c];u[o]=h;var d=n&&n.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],p=d[f],m=l[g],y=i[g];y&&(y[c]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/r),l=this.getRawIndex(0),f,h,c,v=new(Dn(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),p=Math.min(d+u*2,o),m=(p+g)/2,y=0,_=g;_<p;_++){var S=this.getRawIndex(_),T=a[S];isNaN(T)||(y+=T)}y/=p-g;var w=d,x=Math.min(d+u,o),D=d-1,M=a[l];f=-1,c=w;for(var C=-1,A=0,_=w;_<x;_++){var S=this.getRawIndex(_),T=a[S];if(isNaN(T)){A++,C<0&&(C=S);continue}h=Math.abs((D-m)*(T-M)-(D-_)*(y-M)),h>f&&(f=h,c=S)}A>0&&A<x-w&&(v[s++]=Math.min(C,c),c=Math.max(C,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),u=new(Dn(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 p=0;p<g;p++){var m=this.getRawIndex(f+p),y=o[m];y<c&&(c=y,h=f+p),y>d&&(d=y,v=f+p)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){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]=Ee(),c=new(Dn(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 p=this.getRawIndex(d+g);s[g]=l[p]}var m=n(s),y=this.getRawIndex(Math.min(d+i(s,m)||0,f-1));l[y]=m,m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[t[u]][s];l[u]=a,r.apply(null,l)}}},e.prototype.getDataExtent=function(t,r){var n=this._chunks[t],i=Ee();if(!n)return i;var a=this.count(),o=!this._indices&&!r;if(o)return this._rawExtent[t].slice();var s=this._extent,u=s[t]||(s[t]={}),l=Yb(r),f=l.key,h=u[f];if(h)return h.slice();for(var c=i[0],v=i[1],d=0;d<a;d++){var g=this.getRawIndex(d),p=n[g];(!r||Xb(l,p))&&(p<c&&(c=p),p>v&&(v=p))}return u[f]=[c,v]},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Tr(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?iC(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},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 n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}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,n,i,a){return Bo(r[a],this._dimensions[a])}$u={arrayRows:t,objectRows:function(r,n,i,a){return Bo(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Bo(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),e})(),aC=(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(),n=!!r.length,i,a;if(Ja(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){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)?yr:ae,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=G(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=G(h.sourceHeader,c.sourceHeader),g=G(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[ff(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[ff(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&dd(a)}var o,s=[],u=[];return b(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&dd(h),s.push(f),u.push(l._getVersionSign())}),n?o=tC(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[kb(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 n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[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,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];Ja(this._sourceHost)&&u?s=u._innerGetDataStore(t,r,n):(s=new hf,s.initData(new hy(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ja(t)){var r=Fh(t);return r?[r.getSourceManager()]:[]}else return Y(fb(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Ja(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e})();function Ja(e){return e.mainType==="series"}function dd(e){throw new Error(e)}var oC="line-height:1";function yy(e){var t=e.lineHeight;return t==null?oC:"line-height:"+Yt(t+"")+"px"}function _y(e,t){var r=e.color||U.color.tertiary,n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||U.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Yt(n+"")+"px;color:"+Yt(r)+";font-weight:"+Yt(i+""),valueStyle:"font-size:"+Yt(o+"")+"px;color:"+Yt(a)+";font-weight:"+Yt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var sC=[0,10,20,30],uC=["",`
`,`
`,`
`];function fa(e,t){return t.type=e,t}function cf(e){return e.type==="section"}function Sy(e){return cf(e)?lC:fC}function Ty(e){if(cf(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return b(e.blocks,function(i){var a=Ty(i);a>=t&&(t=a+ +(n&&(!a||cf(i)&&!i.noHeader)))}),t}return 0}function lC(e,t,r,n){var i=t.noHeader,a=hC(Ty(t)),o=[],s=t.blocks||[];tr(!s||B(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(qt(l,u)){var f=new Wb(l[u],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}b(s,function(g,p){var m=t.valueFormatter,y=Sy(g)(m?k(k({},e),{valueFormatter:m}):e,g,p>0?a.html:0,n);y!=null&&o.push(y)});var h=e.renderMode==="richText"?o.join(a.richText):vf(n,o.join(""),i?r:a.html);if(i)return h;var c=lf(t.header,"ordinal",e.useUTC),v=_y(n,e.renderMode).nameStyle,d=yy(n);return e.renderMode==="richText"?wy(e,c,v)+a.richText+h:vf(n,'<div style="'+v+";"+d+';">'+Yt(c)+"</div>"+h,r)}function fC(e,t,r,n){var i=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],Y(S,function(T,w){return lf(T,B(v)?v[w]:v,l)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||U.color.secondary,i),c=a?"":lf(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.rawDataIndex),g=!s||!a,p=!s&&a,m=_y(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":h)+(a?"":wy(e,c,y))+(o?"":dC(e,d,g,p,_)):vf(n,(s?"":h)+(a?"":cC(c,!s,y))+(o?"":vC(d,g,p,_)),r)}}function pd(e,t,r,n,i,a){if(e){var o=Sy(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function hC(e){return{html:sC[e],richText:uC[e]}}function vf(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=yy(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function cC(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Yt(e)+"</span>"}function vC(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=B(e)?e:[e],'<span style="'+a+";"+n+'">'+Y(e,function(o){return Yt(o)}).join("&nbsp;&nbsp;")+"</span>"}function wy(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function dC(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(" "):t,a)}function pC(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return sa(n)}function xy(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var qu=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=th()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=qx({color:r,type:t,renderMode:n,markerId:i});return F(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};B(r)?b(r,function(a){return k(n,a)}):k(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e})();function gC(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),u=B(s),l=pC(t,r),f,h,c,v;if(o>1||u&&!o){var d=mC(s,t,r,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=ri(i,r,a[0]),h=g.type}else v=f=u?s[0]:s;var p=eh(t),m=p&&t.name||"",y=i.getName(r),_=n?m:y;return fa("section",{header:m,noHeader:n||!p,sortParam:v,blocks:[fa("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Oe(_),value:f,valueType:h,rawDataIndex:i.getRawIndex(r)})].concat(c||[])})}function mC(e,t,r,n,i){var a=t.getData(),o=Tr(e,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?b(n,function(h){f(ri(a,r,h),h)}):b(e,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(fa("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var sr=vt();function to(e,t){return e.getName(t)||e.getId(t)}var yC="__universalTransitionEnabled",hn=(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,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ki({count:SC,reset:TC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=sr(this).sourceManager=new aC(this);a.prepareSource();var o=this.getInitialData(r,i);md(o,this),this.dataTask.context.data=o,sr(this).dataBeforeProcessed=o,gd(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=ua(this),a=i?Da(r):{},o=this.subType;ft.hasClass(o)&&(o+="Series"),lt(r,n.getTheme().get(this.subType)),lt(r,this.getDefaultOption()),Jc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&br(r,a,i)},t.prototype.mergeOption=function(r,n){r=lt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=ua(this);i&&br(this.option,r,i);var a=sr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);md(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,sr(this).dataBeforeProcessed=o,gd(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Qt(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Jc(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=df(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.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 n=df(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}sr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return W(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,n,i,a){var o=this.getData(),s=this.coordinateSystem,u=s&&s.getAxis(r);if(!s||!u)return[];var l=u.dataToCoord(i);a==null&&(a=1/0);for(var f=[],h=1/0,c=-1,v=0,d=o.getDimensionIndex(n),g=o.getStore(),p=0,m=g.count();p<m;p++){var y=g.get(d,p),_=u.dataToCoord(y),S=l-_,T=Math.abs(S);T<=a&&((T<h||T===h&&S>=0&&c<0)&&(h=T,c=S,v=0),S===c&&(f[v++]=p))}return f.length=v,f},t.prototype.formatTooltip=function(r,n,i){return gC({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(K.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=zh.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),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,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var u=r[s],l=to(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=gt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[to(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[yC])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],c=to(r,h);l[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[u-1],c=to(r,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return ft.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})(ft);We(hn,Gb);We(hn,zh);Wg(hn,ft);function gd(e){var t=e.name;eh(e)||(e.name=_C(e)||t)}function _C(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return b(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function SC(e){return e.model.getRawData().count()}function TC(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),wC}function wC(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function md(e,t){b(Y_(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ct(xC,t))})}function xC(e,t){var r=df(e);return r&&r.setOutputEnd((t||this).count()),t}function df(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Ue=(function(){function e(){this.group=new re,this.uid=zs("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();ah(Ue);Ds(Ue);function bC(){var e=vt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var by=vt(),CC=bC(),un=(function(){function e(){this.group=new re,this.uid=zs("viewChart"),this.renderTask=Ki({plan:MC,reset:DC}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&_d(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&_d(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Pm(this.group,t)},e.markUpdateMethod=function(t,r){by(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function yd(e,t,r){e&&ef(e)&&(t==="emphasis"?Kl:Ql)(e,r)}function _d(e,t,r){var n=xa(e,t),i=t&&t.highlightKey!=null?gw(t.highlightKey):null;n!=null?b(Ut(n),function(a){yd(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){yd(a,r,i)})}ah(un);Ds(un);function MC(e){return CC(e.model)}function DC(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&by(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,i),AC[u]}var AC={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)}}},is="\0__throttleOriginMethod",Sd="\0__throttleRate",Td="\0__throttleType";function Wh(e,t,r){var n,i=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];n=new Date().getTime(),u=this,l=v;var g=f||t,p=f||r;f=null,s=n-(p?i:a)-g,clearTimeout(o),p?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Cy(e,t,r,n){var i=e[t];if(i){var a=i[is]||i,o=i[Td],s=i[Sd];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Wh(a,r,n==="debounce"),i[is]=a,i[Td]=n,i[Sd]=r}return i}}function pf(e,t){var r=e[t];r&&r[is]&&(r.clear&&r.clear(),e[t]=r[is])}var wd=vt(),xd={itemStyle:ia(Nm,!0),lineStyle:ia(Bm,!0)},LC={lineStyle:"stroke",itemStyle:"fill"};function My(e,t){var r=e.visualStyleMapper||xd[t];return r||(console.warn("Unknown style type '"+t+"'."),xd.itemStyle)}function Dy(e,t){var r=e.visualDrawType||LC[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var IC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=My(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=Dy(e,n),l=o[u],f=j(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"||j(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||j(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),p=k({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},Si=new St,PC={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=My(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Si.option=u[n];var l=i(Si),f=o.ensureUniqueItemVisual(s,"style");k(f,l),Si.option.decal&&(o.setItemVisual(s,"decal",Si.option.decal),Si.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},EC={performRawSeries:!0,overallReset:function(e){var t=W();e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();wd(r).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),i={},a=r.getData(),o=wd(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=Dy(r,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=r.getColorFromPalette(v,o,d)}})}})}},eo=Math.PI;function RC(e,t){t=t||{},pt(t,{text:"loading",textColor:U.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:U.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new re,n=new Mt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new ie({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 Mt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new ks({shape:{startAngle:-eo/2,endAngle:-eo/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:eo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:eo*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.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}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Ay=(function(){function e(t,r,n,i){this._stageTaskMap=W(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.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 n=this._pipelineMap.get(t.uid),i=t.__preparePipelineContext?t.__preparePipelineContext(r,n):qS(t,r,n);t.pipelineContext=n.context=i},e.prototype.restorePipelines=function(t,r){var n=this,i=n._pipelineMap=W();r.eachSeries(function(a){var o=t.painter.type==="canvas"&&a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;b(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";tr(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,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,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;b(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,m){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.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(n){r=n.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,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=W(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Ki({plan:FC,reset:zC,count:VC}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Ki({reset:OC});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=W(),l=t.seriesType,f=t.getTargetSeries,h=t.dirtyOnOverallProgress,c=!1,v="";tr(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):b(n.getSeries(),d);function d(g){var p=g.uid,m=u.set(p,s&&s.get(p)||(c=!0,Ki({reset:kC,onDirty:NC})));m.context={model:g,dirtyOnOverallProgress:h},m.agent=o,m.__block=h,a._pipe(g,m)}c&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return j(t)&&(t={overallReset:t,seriesType:GC(t)}),t.uid=zs("stageHandler"),r&&(t.visualType=r),t},e})();function OC(e){e.overallReset(e.ecModel,e.api,e.payload)}function kC(e){return e.dirtyOnOverallProgress&&BC}function BC(){this.agent.dirty(),this.getDownstream().dirty()}function NC(){this.agent&&this.agent.dirty()}function FC(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function zC(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ut(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Y(t,function(r,n){return Ly(n)}):HC}var HC=Ly(0);function Ly(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function VC(e){return e.data.count()}function GC(e){as=null;try{e(ha,Iy)}catch{}return as}var ha={},Iy={},as;Py(ha,Hh);Py(Iy,nm);ha.eachSeriesByType=ha.eachRawSeriesByType=function(e){as=e};ha.eachComponent=function(e){e.mainType==="series"&&e.subType&&(as=e.subType)};function Py(e,t){for(var r in t.prototype)e[r]=Nt}var O=U.darkColor,bd=O.background,Ti=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:{}}},Cd={label:{color:O.secondary},itemStyle:{borderColor:O.borderTint},dividerLineStyle:{color:O.border}},Ey={darkMode:!0,color:O.theme,backgroundColor:bd,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},feature:{dataView:{backgroundColor:bd,textColor:O.primary,textareaColor:O.background,textareaBorderColor:O.border,buttonColor:O.accent50,buttonTextColor:O.neutral00}}},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:Cd,y:Cd,backgroundColor:{borderColor:O.axisLine},body:{itemStyle:{borderColor:O.borderTint}}},timeAxis:Ti(),logAxis:Ti(),valueAxis:Ti(),categoryAxis:Ti(),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=Ti();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}}}};Ey.categoryAxis.splitLine.show=!1;var UC=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(F(t)){var a=ke(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};b(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)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.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,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),gf=["symbol","symbolSize","symbolRotate","symbolOffset"],Md=gf.concat(["symbolKeepAspect"]),WC={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 n={},i={},a=!1,o=0;o<gf.length;o++){var s=gf[o],u=e.get(s);j(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(k({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var l=gt(i);function f(h,c){for(var v=e.getRawValue(c),d=e.getDataParams(c),g=0;g<l.length;g++){var p=l[g];h.setItemVisual(c,p,i[p](v,d))}}return{dataEach:a?f:null}}},YC={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Md.length;s++){var u=Md[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:r.hasItemOption?n:null}}};function XC(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function ZC(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 U2(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}b([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=k({},i),o.dispatchAction(k(i,{type:n[1],seriesIndex:r(a,i)}))})})}function An(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=xa(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:B(c)?h.getName(c[0]):h.getName(c),selected:F(u)?u:k({},u)})}})}function $C(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(An("map","selectchanged",t,i,n),An("pie","selectchanged",t,i,n)):n.fromAction==="select"?(An("map","selected",t,i,n),An("pie","selected",t,i,n)):n.fromAction==="unselect"&&(An("map","unselected",t,i,n),An("pie","unselected",t,i,n))})}function zi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var ue=new Ye,Ry={};function qC(e,t){Ry[e]=t}function KC(e){return Ry[e]}var Ws=vt();function QC(e){Ws(e).prepare={}}function jC(e){Ws(e).fullUpdate={}}function JC(e){return Ws(e).prepare}function li(e){return Ws(e).fullUpdate}var tM=Math.round(Math.random()*9),eM=typeof Object.defineProperty=="function",rM=(function(){function e(){this._id="__ec_inner_"+tM++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return eM?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[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})(),nM=mt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),iM=mt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),aM=mt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),u=n-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,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*v,u+s+c*v,r-f,u+s),e.closePath()}}),oM=mt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),sM={line:xr,rect:Mt,roundRect:Mt,square:Mt,circle:Rs,diamond:iM,pin:aM,arrow:oM,triangle:nM},uM={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},mf={};b(sM,function(e,t){mf[t]=new e});var lM=mt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Ag(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=mf[n];i||(n="rect",i=mf[n]),uM[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function fM(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||U.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Yh(e,t,r,n,i,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=Mm(e.slice(8),new Z(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?u=yh(e.slice(7),{},new Z(t,r,n,i),o?"center":"cover"):u=new lM({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=fM,a&&u.setColor(a),u}function W2(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function hM(e,t){if(e!=null)return B(e)||(e=[e,e]),[Bt(e[0],t[0])||0,Bt(G(e[1],e[0]),t[1])||0]}function tn(e){return isFinite(e)}function cM(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=tn(n)?n:0,i=tn(i)?i:1,a=tn(a)?a:0,o=tn(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function vM(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),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*n+r.x,s=s*i+r.y,u=u*a),o=tn(o)?o:.5,s=tn(s)?s:.5,u=u>=0&&tn(u)?u:.5;var l=e.createRadialGradient(o,s,0,o,s,u);return l}function yf(e,t,r){for(var n=t.type==="radial"?vM(e,t,r):cM(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function dM(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 ro(e){return parseInt(e,10)}function no(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||ro(s[n])||ro(e.style[n]))-(ro(s[a])||0)-(ro(s[o])||0)||0}function pM(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Tt(e)?[e]:B(e)?e:null}function Oy(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&pM(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Y(r,function(a){return a/i}),n/=i)}return[r,n]}var gM=new Jn(!0);function os(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Dd(e){return typeof e=="string"&&e!=="none"}function ss(e){var t=e.fill;return t!=null&&t!=="none"}function Ad(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 Ld(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 _f(e,t,r){var n=Yg(t.image,t.__image,r);if(As(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*X_),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function mM(e,t,r,n,i){var a,o=os(r),s=ss(r),u=r.strokePercent,l=u<1,f=!t.path;(!t.silent||l)&&f&&t.createPathProxy();var h=t.path||gM,c=t.__dirty;if(!n){var v=r.fill,d=r.stroke,g=s&&!!v.colorStops,p=o&&!!d.colorStops,m=s&&!!v.image,y=o&&!!d.image,_=void 0,S=void 0,T=void 0,w=void 0,x=void 0;(g||p)&&(x=t.getBoundingRect()),g&&(_=c?yf(e,v,x):t.__canvasFillGradient,t.__canvasFillGradient=_),p&&(S=c?yf(e,d,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),m&&(T=c||!t.__canvasFillPattern?_f(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=T),y&&(w=c||!t.__canvasStrokePattern?_f(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),g?e.fillStyle=_:m&&(T?e.fillStyle=T:s=!1),p?e.strokeStyle=S:y&&(w?e.strokeStyle=w:o=!1)}var D=t.getGlobalScale();h.setScale(D[0],D[1],t.segmentIgnoreThreshold);var M,C;e.setLineDash&&r.lineDash&&(a=Oy(t),M=a[0],C=a[1]);var A=!0;(f||c&On)&&(h.setDPR(e.dpr),l?h.setContext(null):(h.setContext(e),A=!1),h.reset(),t.buildPath(h,t.shape,n),h.toStatic(),t.pathUpdated()),A&&h.rebuildPath(e,l?u:1),M&&(e.setLineDash(M),e.lineDashOffset=C),n?(i.batchFill=s,i.batchStroke=o):r.strokeFirst?(o&&Ld(e,r),s&&Ad(e,r)):(s&&Ad(e,r),o&&Ld(e,r)),M&&e.setLineDash([])}function yM(e,t,r){var n=t.__image=Yg(r.image,t.__image,t,t.onload);if(!(!n||!As(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var l=r.sx||0,f=r.sy||0;e.drawImage(n,l,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var l=r.sx,f=r.sy,h=o-l,c=s-f;e.drawImage(n,l,f,h,c,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function _M(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Sr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Oy(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(os(r)&&e.strokeText(i,r.x,r.y),ss(r)&&e.fillText(i,r.x,r.y)):(ss(r)&&e.fillText(i,r.x,r.y),os(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var Id=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ky(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Gt(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?an.opacity:o}(n||t.blend!==r.blend)&&(a||(Gt(e,i),a=!0),e.globalCompositeOperation=t.blend||an.blend);for(var s=0;s<Id.length;s++){var u=Id[s];(n||t[u]!==r[u])&&(a||(Gt(e,i),a=!0),e[u]=e.dpr*(t[u]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(Gt(e,i),a=!0),e.shadowColor=t.shadowColor||an.shadowColor),a}function Ed(e,t,r,n,i){var a=t.style,o=n?null:r&&r.style||{};if(a===o)return!1;var s=ky(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Gt(e,i),s=!0),Dd(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Gt(e,i),s=!0),Dd(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Gt(e,i),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||(Gt(e,i),s=!0),e.lineWidth=l)}for(var f=0;f<Pd.length;f++){var h=Pd[f],c=h[0];(n||a[c]!==o[c])&&(s||(Gt(e,i),s=!0),e[c]=a[c]||h[1])}return s}function SM(e,t,r,n,i){return ky(e,t.style,r&&r.style,n,i)}function By(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function TM(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),By(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function wM(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 Rd=1,Od=2,kd=3,Bd=4;function xM(e){var t=ss(e),r=os(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 Gt(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Ny(e,t){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};en(e,t,r),Zn(e,r)}function en(e,t,r){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~$t,t.__isRendered=!1;return}var i=t.__clipPaths,a=r.prevElClipPaths,o=t.style,s=!1,u=!1;if((!a||dM(i,a))&&(a&&(Gt(e,r),e.restore(),u=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(Gt(e,r),e.save(),TM(i,e,r),s=!0,r.prevElClipPaths=i)),r.allClipped){t.__dirty&=~$t,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(r.beforeBrushParam),t.innerBeforeBrush();var l=r.prevEl;l||(u=s=!0);var f=t instanceof mt&&t.autoBatch&&xM(o);s||wM(n,l.transform)?(Gt(e,r),By(e,t)):f||Gt(e,r),t instanceof mt?(r.lastDrawType!==Rd&&(u=!0,r.lastDrawType=Rd),Ed(e,t,l,u,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),mM(e,t,o,f,r)):t instanceof jo?(r.lastDrawType!==kd&&(u=!0,r.lastDrawType=kd),Ed(e,t,l,u,r),_M(e,t,o)):t instanceof pn?(r.lastDrawType!==Od&&(u=!0,r.lastDrawType=Od),SM(e,t,l,u,r),yM(e,t,o)):t.getTemporalDisplayables&&(r.lastDrawType!==Bd&&(u=!0,r.lastDrawType=Bd),bM(e,t,r)),t.innerAfterBrush(),t.afterBrush&&(f&&Gt(e,r),t.afterBrush()),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Zn(e,t){Gt(e,t),t.prevElClipPaths&&e.restore()}function bM(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),en(e,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Zn(e,a);for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(r.beforeBrushParam),u.innerBeforeBrush(),en(e,u,a),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}Zn(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Ku=new rM,Nd=new qn(100),Fd=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Sf(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Ku.delete(e);var a=Ku.get(e);if(a)return a;var o=pt(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=i?1:1/r,Ku.set(e,s),e.dirty=!1,s;function u(l){for(var f=[r],h=!0,c=0;c<Fd.length;++c){var v=o[Fd[c]];if(v!=null&&!B(v)&&!F(v)&&!Tt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var g=Nd.get(d);g&&(i?l.svgElement=g:l.image=g)}var p=zy(o.dashArrayX),m=CM(o.dashArrayY),y=Fy(o.symbol),_=MM(p),S=Hy(m),T=!i&&ee.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),D;T&&(T.width=x.width*r,T.height=x.height*r,D=T.getContext("2d")),C(),h&&Nd.put(d,T||w),l.image=T,l.svgElement=w,l.svgWidth=x.width,l.svgHeight=x.height;function M(){for(var A=1,I=0,L=_.length;I<L;++I)A=Qc(A,_[I]);for(var P=1,I=0,L=y.length;I<L;++I)P=Qc(P,y[I].length);A*=P;var E=S*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function C(){D&&(D.clearRect(0,0,T.width,T.height),o.backgroundColor&&(D.fillStyle=o.backgroundColor,D.fillRect(0,0,T.width,T.height)));for(var A=0,I=0;I<m.length;++I)A+=m[I];if(A<=0)return;for(var L=-S,P=0,E=0,R=0;L<x.height;){if(P%2===0){for(var N=E/2%y.length,X=0,$=0,J=0;X<x.width*2;){for(var q=0,I=0;I<p[R].length;++I)q+=p[R][I];if(q<=0)break;if($%2===0){var tt=(1-o.symbolSize)*.5,et=X+p[R][$]*tt,V=L+m[P]*tt,it=p[R][$]*o.symbolSize,ut=m[P]*o.symbolSize,jt=J/2%y[N].length;Ze(et,V,it,ut,y[N][jt])}X+=p[R][$],++J,++$,$===p[R].length&&($=0)}++R,R===p.length&&(R=0)}L+=m[P],++E,++P,P===m.length&&(P=0)}function Ze(Jt,It,Q,nt,Mr){var zt=i?1:r,fc=Yh(Mr,Jt*zt,It*zt,Q*zt,nt*zt,o.color,o.symbolKeepAspect);if(i){var hc=n.painter.renderOneToVNode(fc);hc&&w.children.push(hc)}else Ny(D,fc)}}}}function Fy(e){if(!e||e.length===0)return[["rect"]];if(F(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!F(e[r])){t=!1;break}if(t)return Fy([e]);for(var n=[],r=0;r<e.length;++r)F(e[r])?n.push([e[r]]):n.push(e[r]);return n}function zy(e){if(!e||e.length===0)return[[0,0]];if(Tt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Tt(e[n])){r=!1;break}if(r)return zy([e]);for(var i=[],n=0;n<e.length;++n)if(Tt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=Y(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function CM(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Tt(e)){var t=Math.ceil(e);return[t,t]}var r=Y(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function MM(e){return Y(e,function(t){return Hy(t)})}function Hy(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}var DM=ih(AM);function AM(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=Sf(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Sf(i,t)}}})}var LM=1,IM=800,PM=900,EM=920,RM=1e3,OM=2e3,zd=5e3,Vy=1e3,kM=1100,Xh=2e3,Gy=3e3,BM=4e3,Ys=4500,NM=4600,FM=5e3,zM=6e3,Uy=7e3,HM={PROCESSOR:{SERIES_FILTER:IM,AXIS_STATISTICS:EM,FILTER:RM,STATISTIC:zd,STATISTICS:zd},VISUAL:{LAYOUT:Vy,PROGRESSIVE_LAYOUT:kM,GLOBAL:Xh,CHART:Gy,POST_CHART_LAYOUT:NM,COMPONENT:BM,BRUSH:FM,CHART_ITEM:Ys,ARIA:zM,DECAL:Uy}},bt="__flagInMainProcess",io="__mainProcessVersion",Dt="__pendingUpdate",Qu="__needsUpdateStatus",Hd=/^[a-zA-Z0-9_]+$/,ju="__connectUpdateStatus",Vd=0,VM=1,GM=2;function Wy(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return Xy(this,e,t)}}function Yy(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Xy(this,e,t)}}function Xy(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ye.prototype[t].apply(e,r)}var Zy=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ye),$y=Zy.prototype;$y.on=Yy("on");$y.off=Yy("off");var qr,Ju,ao,Ke,oo,tl,el,Ln,In,Gd,Ud,rl,Wd,so,Yd,qy,oe,Xd,Pn,Ky=(function(e){z(t,e);function t(r,n,i){var a=e.call(this,new UC)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a.__v_skip=!0,a._dom=r;var o="canvas",s="auto",u=!1;a[io]=1,i.ssr;var l=a._zr=Zc(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:G(i.useDirtyRect,u),useCoarsePointer:G(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Wh(_t(l.flush,l),17),a._updateTheme(n),a._locale=Bx(i.locale||Fm),a._coordSysMgr=new kh;var f=a._api=Yd(a);function h(c,v){return c.__prio-v.__prio}return To(ls,h),To(xf,h),a._scheduler=new Ay(a,f,xf,ls),a._messageCenter=new Zy,a._initEvents(),a.resize=_t(a.resize,a),l.animation.on("frame",a._onframe,a),Gd(l,a),Ud(l,a),xl(a),a}return t.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,n=this._model,i=this._api;if(Xd(this),this[Dt]){var a=this[Dt].silent;this[bt]=!0,Pn(this);try{qr(this),Ke.update.call(this,null,this[Dt].updateParams)}catch(u){throw this[bt]=!1,this[Dt]=null,u}this._zr.flush(),this[bt]=!1,this[Dt]=null,Ln.call(this,a),In.call(this,a)}else if(r.unfinished){var o=LM;do{r.unfinished=!1;var s=ee.getTime();r.performSeriesTasks(n),r.performDataProcessorTasks(n),tl(this,n),r.performVisualTasks(n),so(this,this._model,i,"remain",{}),o-=ee.getTime()-s}while(o>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,n,i){if(!this[bt]){if(this._disposed){this.id;return}var a,o,s;if(H(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[bt]=!0,Pn(this),!this._model||n){var u=new Sb(this._api),l=this._theme,f=this._model=new Hh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(r,{replaceMerge:o},bf);var h={seriesTransition:s,optionChanged:!0};if(i)this[Dt]={silent:a,updateParams:h},this[bt]=!1,this.getZr().wakeUp();else{try{qr(this),Ke.update.call(this,null,h)}catch(c){throw this[Dt]=null,this[bt]=!1,c}this._ssr||this._zr.flush(),this[Dt]=null,this[bt]=!1,Ln.call(this,a),In.call(this,a)}}},t.prototype.setTheme=function(r,n){if(!this[bt]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Dt]&&(a==null&&(a=this[Dt].silent),o=this[Dt].updateParams,this[Dt]=null),this[bt]=!0,Pn(this);try{this._updateTheme(r),i.setTheme(this._theme),qr(this),Ke.update.call(this,{type:"setTheme"},o)}catch(s){throw this[bt]=!1,s}this[bt]=!1,Ln.call(this,a),In.call(this,a)}}},t.prototype._updateTheme=function(r){F(r)&&(r=Qy[r]),r&&(r=rt(r),r&&sy(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||K.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return b(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;b(n,function(u){i.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 b(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Zd[i]){var u=s,l=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();b(Qi,function(_,S){if(_.group===i){var T=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(r)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:T,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=ee.createCanvas(),m=Zc(p,{renderer:n?"svg":"canvas"});if(m.resize({width:d,height:g}),n){var y="";return b(c,function(_){var S=_.left-u,T=_.top-l;y+='<g transform="translate('+S+","+T+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Mt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),b(c,function(_){var S=new pn({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});m.add(S)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,i){return oo(this,"convertToPixel",r,n,i)},t.prototype.convertToLayout=function(r,n,i){return oo(this,"convertToLayout",r,n,i)},t.prototype.convertFromPixel=function(r,n,i){return oo(this,"convertFromPixel",r,n,i)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=xu(i,r);return b(o,function(s,u){u.indexOf("Models")>=0&&b(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=xu(i,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?XC(s,u,n):ZC(s,n)},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;b(UM,function(i){var a=function(o){var s=r.getModel(),u=o.target,l,f=i==="globalout";if(f?l={}:u&&zi(u,function(g){var p=yt(g);if(p&&p.dataIndex!=null){var m=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,u)||{},!0}else if(p.eventData)return l=k({},p.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=i,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:l,model:v,view:d},r.trigger(i,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;b(wf,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),$C(n,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&&Hg(this.getDom(),$h,"");var n=this,i=n._api,a=n._model;b(n._componentsViews,function(o){o.dispose(a,i)}),b(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Qi[n.id]},t.prototype.resize=function(r){if(!this[bt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Dt]&&(a==null&&(a=this[Dt].silent),i=!0,this[Dt]=null),this[bt]=!0,Pn(this);try{i&&qr(this),Ke.update.call(this,{type:"resize",animation:k({duration:0},r&&r.animation)})}catch(o){throw this[bt]=!1,o}this[bt]=!1,Ln.call(this,a),In.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(H(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Cf[r]){var i=Cf[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},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 n=k({},r);return n.type=Tf[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(H(n)||(n={silent:!!n}),!!us[r.type]&&this._model){if(this[bt]){this._pendingActions.push(r);return}var i=n.silent;el.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&K.browser.weChat&&this._throttledZrFlush(),Ln.call(this,i),In.call(this,i)}},t.prototype.updateLabelLayout=function(){ue.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){qr=function(h){QC(h._model);var c=h._scheduler;c.restorePipelines(h._zr,h._model),c.prepareStageTasks(),Ju(h,!0),Ju(h,!1),c.plan()},Ju=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,m=h._zr,y=h._api,_=0;_<g.length;_++)g[_].__alive=!1;c?v.eachComponent(function(w,x){w!=="series"&&S(x)}):v.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=!1;var D="_ec_"+w.id+"_"+w.type,M=!x&&p[D];if(!M){var C=ke(w.type),A=c?Ue.getClass(C.main,C.sub):un.getClass(C.sub);M=new A,M.init(v,y),p[D]=M,g.push(M),m.add(M.group)}w.__viewId=M.__id=D,M.__alive=!0,M.__model=w,M.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(M,w,v,y)}for(var _=0;_<g.length;){var T=g[_];T.__alive?_++:(!c&&T.renderTask.dispose(),m.remove(T.group),T.dispose(v,y),g.splice(_,1),p[T.__id]===T&&delete p[T.__id],T.__id=T.group.__ecComponentInfo=null)}},ao=function(h,c,v,d,g){var p=h._model;if(p.setUpdatePayload(v),!d){b([].concat(h._componentsViews).concat(h._chartsViews),S);return}var m=NS(v,d,g),y=v.excludeSeriesId,_;y!=null&&(_=W(),b(Ut(y),function(T){var w=He(T,null);w!=null&&_.set(w,!0)})),p&&p.eachComponent(m,function(T){var w=_&&_.get(T.id)!=null;if(!w)if(Av(v))if(T instanceof hn)v.type===on&&!v.notBlur&&!T.get(["emphasis","disabled"])&&uw(T,v,h._api);else{var x=hh(T.mainType,T.componentIndex,v.name,h._api),D=x.focusSelf,M=x.dispatchers;v.type===on&&D&&!v.notBlur&&Jl(T.mainType,T.componentIndex,h._api),M&&b(M,function(C){v.type===on?Kl(C):Ql(C)})}else rf(v)&&T instanceof hn&&(hw(T,v,h._api),Mv(T),oe(h))},h),p&&p.eachComponent(m,function(T){var w=_&&_.get(T.id)!=null;w||S(h[d==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},h);function S(T){T&&T.__alive&&T[c]&&T[c](T.__model,p,h._api,v)}},Ke={prepareAndUpdate:function(h){qr(this),Ke.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(v){jC(v),v.setUpdatePayload(h),m.restoreData(v,h),m.performSeriesTasks(v),p.create(v,d),ue.trigger("coordsys:aftercreate",v,d),m.performDataProcessorTasks(v,h),tl(this,v),p.update(v,d),n(v),m.performVisualTasks(v,h);var y=v.get("backgroundColor")||"transparent";g.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),rl(this,v,d,h,c),ue.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=c._model,d=c._api;if(v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(m,y){if(m!==tm){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(y,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var p=W();v.eachSeries(function(m){var y=c._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var S=y.updateTransform(m,v,d,h);S&&S.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),c._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),so(c,v,d,h,{},p),ue.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),un.markUpdateMethod(h,"updateView"),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),rl(this,c,this._api,h,{}),ue.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()}),un.markUpdateMethod(h,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,g){if(d!=="series"){var p=c.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),ue.trigger("afterupdate",v,this._api))},updateLayout:function(h){Ke.update.call(this,h)}};function r(h,c,v,d,g){if(h._disposed){h.id;return}for(var p=h._model,m=h._coordSysMgr.getCoordinateSystems(),y,_=xu(p,v),S=0;S<m.length;S++){var T=m[S];if(T[c]&&(y=T[c](p,_,d,g))!=null)return y}}oo=r,tl=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},el=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,m=us[g],y=(m.update||"update").split(":"),_=y.pop(),S=y[0]!=null&&ke(y[0]);this[bt]=!0,Pn(this);var T=[h],w=!1;h.batch&&(w=!0,T=Y(h.batch,function(R){return R=pt(k({},R),h),R.batch=null,R}));var x=[],D,M=[],C=m.nonRefinedEventType,A=rf(h),I=Av(h);if(I&&cm(this._api),b(T,function(R){var N=m.action(R,d,v._api);if(m.refineEvent?M.push(N):D=N,D=D||k({},R),D.type=C,x.push(D),I){var X=rh(h),$=X.queryOptionMap,J=X.mainTypeSpecified,q=J?$.keys()[0]:"series";ao(v,_,R,q),oe(v)}else A?(ao(v,_,R,"series"),oe(v)):S&&ao(v,_,R,S.main,S.sub)}),_!=="none"&&!I&&!A&&!S)try{this[Dt]?(qr(this),Ke.update.call(this,h),this[Dt]=null):Ke[_].call(this,h)}catch(R){throw this[bt]=!1,R}if(w?D={type:C,escapeConnect:p,batch:x}:D=x[0],this[bt]=!1,!c){var L=void 0;if(m.refineEvent){var P=m.refineEvent(M,h,d,this._api).eventContent;tr(H(P)),L=pt({type:m.refinedEventType},P),L.fromAction=h.type,L.fromActionPayload=h,L.escapeConnect=!0}var E=this._messageCenter;E.trigger(D.type,D),L&&E.trigger(L.type,L)}},Ln=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();el.call(this,v,h)}},In=function(h){!h&&this.trigger("updated")},Gd=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Dt]&&!c._scheduler.unfinished&&!c._pendingActions.length?c.trigger("finished"):h.refresh()})},Ud=function(h,c){h.on("mouseover",function(v){var d=v.target,g=zi(d,ef);g&&(lw(g,v,c._api),oe(c))}).on("mouseout",function(v){var d=v.target,g=zi(d,ef);g&&(fw(g,v,c._api),oe(c))}).on("click",function(v){var d=v.target,g=zi(d,function(y){return yt(y).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=yt(g);c._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var S=_.get("zlevel")||0,T=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?v:c).push({zlevel:S,z:T,idx:_.componentIndex,type:y,key:w})}),d){var g=c.concat(v),p,m;To(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),b(g,function(y){var _=h.getComponent(y.type,y.idx),S=y.zlevel,T=y.key;p!=null&&(S=Math.max(p,S)),T?(S===p&&T!==m&&S++,m=T):m&&(S===p&&S++,m=""),p=S,_.setZLevel(S)})}}rl=function(h,c,v,d,g){i(c),Wd(h,c,v,d,g),b(h._chartsViews,function(p){p.__alive=!1}),so(h,c,v,d,g),b(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},Wd=function(h,c,v,d,g,p){b(p||h._componentsViews,function(m){var y=m.__model;l(y,m),m.render(y,c,v,d),u(y,m),f(y,m)})},so=function(h,c,v,d,g,p){var m=h._scheduler;g=k(g||{},{updatedSeries:c.getSeries()}),ue.trigger("series:beforeupdate",c,v,g);var y=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var T=S.renderTask;m.updatePayload(T,d),l(_,S),p&&p.get(_.uid)&&T.dirty(),T.perform(m.getPerformArgs(T))&&(y=!0),S.group.silent=!!_.get("silent"),s(_,S),Mv(_)}),m.unfinished=y||m.unfinished,ue.trigger("series:layoutlabels",c,v,g),ue.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];u(_,S),f(_,S)}),o(h,c),ue.trigger("series:afterupdate",c,v,g)},oe=function(h){h[Qu]=!0,h.getZr().wakeUp()},Pn=function(h){h[io]=(h[io]+1)%1e6},Xd=function(h){h[Qu]&&(h.getZr().storage.traverse(function(c){Xi(c)||a(c)}),h[Qu]=!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===Ps&&h.states.emphasis?c.push("emphasis"):h.hoverState===Is&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr;if(v.painter.type==="canvas"){var d=v.storage,g=0;d.traverse(function(m){m.isGroup||g++});var p=g>G(c.get("hoverLayerThreshold"),ry.hoverLayerThreshold)&&!K.node&&!K.worker;(h._usingTHL||p)&&(c.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=h._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Cm&&(S.hoverLayer=p?bm:xm)})}}),h._usingTHL=p)}}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=Em(h);c.eachRendered(function(d){return Rm(d,v.z,v.zlevel),!0})}}function l(h,c){c.eachRendered(function(v){if(!Xi(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"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Xi(m))return;if(m instanceof mt&&mw(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(d){m.stateTransition=p;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}m.__dirty&&a(m)}})}Yd=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){Kl(d,g),oe(h)},v.prototype.leaveEmphasis=function(d,g){Ql(d,g),oe(h)},v.prototype.enterBlur=function(d){sw(d),oe(h)},v.prototype.leaveBlur=function(d){um(d),oe(h)},v.prototype.enterSelect=function(d){lm(d),oe(h)},v.prototype.leaveSelect=function(d){fm(d),oe(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.getECUpdateCycleVersion=function(){return h[io]},v.prototype.usingTHL=function(){return h._usingTHL},v})(nm))(h)},qy=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[ju]=d}}b(Tf,function(v,d){h._messageCenter.on(d,function(g){if(Zd[h.group]&&h[ju]!==Vd){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),m=[];b(Qi,function(y){y!==h&&y.group===h.group&&m.push(y)}),c(m,Vd),b(m,function(y){y[ju]!==VM&&y.dispatchAction(p)}),c(m,GM)}})})}})(),t})(Ye),Zh=Ky.prototype;Zh.on=Wy("on");Zh.off=Wy("off");Zh.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var UM=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var us={},Tf={},wf={},xf=[],bf=[],ls=[],Qy={},Cf={},Qi={},Zd={},WM=+new Date-0,$h="_echarts_instance_";function YM(e,t,r){var n=!(r&&r.ssr);if(n){var i=XM(e);if(i)return i}var a=new Ky(e,t,r);return a.id="ec_"+WM++,Qi[a.id]=a,n&&Hg(e,$h,a.id),qy(a),ue.trigger("afterinit",a),a}function XM(e){return Qi[FS(e,$h)]}function jy(e,t){Qy[e]=t}function Jy(e){st(bf,e)<0&&bf.push(e)}function t0(e,t){Kh(xf,e,t,OM)}function ZM(e){qh("afterinit",e)}function $M(e){qh("afterupdate",e)}function qh(e,t){ue.on(e,t)}function fi(e,t,r){var n,i,a,o,s;j(t)&&(r=t,t=""),H(e)?(n=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(n=e,i=t);function u(f){return f.toLowerCase()}i=u(i||n);var l=a?u(n):i;us[n]||(tr(Hd.test(n)&&Hd.test(i)),a&&tr(i!==n),us[n]={actionType:n,refinedEventType:i,nonRefinedEventType:l,update:o,action:r,refineEvent:a},wf[i]=1,a&&s&&(wf[l]=1),Tf[l]=n)}function qM(e,t){kh.register(e,t)}function KM(e,t){Kh(ls,e,t,Vy,"layout")}function mn(e,t){Kh(ls,e,t,Gy,"visual")}var $d=[];function Kh(e,t,r,n,i,a){if((j(t)||H(t))&&(r=t,t=n),!(st($d,r)>=0)){$d.push(r);var o=Ay.wrapStageHandler(r,i);o.__prio=t,o.__raw=r,e.push(o)}}function e0(e,t){Cf[e]=t}function QM(e,t,r){var n=KC("registerMap");n&&n(e,t,r)}var jM=Jb;mn(Xh,IC);mn(Ys,PC);mn(Ys,EC);mn(Xh,WC);mn(Ys,YC);mn(Uy,DM);Jy(sy);t0(PM,Eb);e0("default",RC);fi({type:on,event:on,update:on},Nt);fi({type:Ao,event:Ao,update:Ao},Nt);fi({type:Jo,event:lh,update:Jo,action:Nt,refineEvent:Qh,publishNonRefinedEvent:!0});fi({type:ql,event:lh,update:ql,action:Nt,refineEvent:Qh,publishNonRefinedEvent:!0});fi({type:ts,event:lh,update:ts,action:Nt,refineEvent:Qh,publishNonRefinedEvent:!0});function Qh(e,t,r,n){return{eventContent:{selected:cw(r),isFromClick:t.isFromClick||!1}}}jy("default",{});jy("dark",Ey);function wi(e){return e==null?0:e.length||1}function qd(e){return e}var JM=(function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||qd,this._newKeyGetter=i||qd,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,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=wi(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],h=wi(l),c=wi(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[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,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=wi(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[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var u=r[s],l=wi(u);l===0?(r[s]=o,a&&n.push(s)):l===1?r[s]=[u,o]:u.push(o)}}},e})(),tD=(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 eD(e,t){var r={},n=r.encode={},i=W(),a=[],o=[],s={};b(e.dimensions,function(c){var v=e.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;nl(n,d)[g]=c,v.isExtraCoord||(i.set(d,1),nD(v.type)&&(a[0]=c),nl(s,d)[g]=e.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}em.each(function(p,m){var y=nl(n,m),_=v.otherDims[m];_!=null&&_!==!1&&(y[_]=v.name)})});var u=[],l={};i.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),r.dataDimsOnCoord=u,r.dataDimIndicesOnCoord=Y(u,function(c){return e.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new tD(s,t),r}function nl(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function rD(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function nD(e){return!(e==="ordinal"||e==="time")}var No=(function(){function e(t){this.otherDims={},t!=null&&k(this,t)}return e})(),iD=vt(),aD={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},r0=(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=i0(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return G(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=fy(this.source),n=!a0(t),i="",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)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=aD[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function n0(e){return e instanceof r0}function jh(e){for(var t=W(),r=0;r<(e||[]).length;r++){var n=e[r],i=H(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function i0(e){var t=iD(e);return t.dimNameMap||(t.dimNameMap=jh(e.dimensionsDefine))}function a0(e){return e>30}var xi=H,ur=Y,oD=typeof Int32Array>"u"?Array:Int32Array,sD="e\0\0",Kd=-1,uD=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],lD=["_approximateExtent"],Qd,uo,bi,Ci,il,Mi,al,fD=(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 n,i=!1;n0(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=F(h)?new No({name:h}):h instanceof No?h:new No(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]=[]),i&&(c.storeDimIndex=f),d.itemName===0&&(this._nameDimIdx=c.storeDimIndex),d.itemId===0&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=W();b(o,function(p){g.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 n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Tt(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(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof hf&&(a=t),!a){var o=this.dimensions,s=Vh(t)||Kt(t)?new hy(t,o.length):t;a=new hf;var u=ur(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=eD(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 n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=r[u],o&&al(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==yr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===ae;if(u&&!i.pure)for(var l=[],f=t;f<r;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&MS(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=He(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=He(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)al(this,f);Qd(this)}},e.prototype.getApproximateExtent=function(t,r){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),r)},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){xi(t)?k(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=bi(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return uo(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},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 n=this,i=this._store;return B(t)?i.getValues(ur(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;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 n=t&&this._invertedIndicesMap[t],i=n&&n[r];return i==null||isNaN(i)?Kd:i},e.prototype.each=function(t,r,n){j(t)&&(n=r,r=t,t=[]);var i=n||this,a=ur(Ci(t),this._getStoreDimIndex,this);this._store.each(a,i?_t(r,i):r)},e.prototype.filterSelf=function(t,r,n){j(t)&&(n=r,r=t,t=[]);var i=n||this,a=ur(Ci(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?_t(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=gt(t);return b(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){j(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=ur(Ci(t),this._getStoreDimIndex,this),s=Mi(this);return s._store=this._store.map(o,a?_t(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=ur(Ci(t),this._getStoreDimIndex,this);this._store.modify(o,a?_t(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Mi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=Mi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Mi(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new St(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new JM(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return uo(t,n)},function(n){return uo(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},xi(t)?k(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),B(a)?a=a.slice():xi(a)&&(a=k({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,xi(r)?k(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){xi(t)?k(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,n){this._itemLayouts[t]=n?k(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;qT(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){b(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ur(this.dimensions,this._getDimInfo,this),this.hostModel)),il(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];j(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Xf(arguments)))})},e.internalField=(function(){Qd=function(t){var r=t._invertedIndicesMap;b(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new oD(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Kd;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},bi=function(t,r,n){return He(t._getCategory(r,n),null)},uo=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=bi(t,t._idDimIdx,r)),n==null&&(n=sD+r),n},Ci=function(t){return B(t)||(t=t!=null?[t]:[]),t},Mi=function(t){var r=new e(t._schema?t._schema:ur(t.dimensions,t._getDimInfo,t),t.hostModel);return il(r,t),r},il=function(t,r){b(uD.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,b(lD,function(n){t[n]=rt(r[n])}),t._calculationInfo=k({},r._calculationInfo)},al=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],u=i[r];if(s==null&&a!=null&&(n[r]=s=bi(t,a,r)),u==null&&o!=null&&(i[r]=u=bi(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),i[r]=u}}})(),e})();function hD(e,t){Vh(e)||(e=uy(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=W(),a=[],o=cD(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&a0(o),u=n===e.dimensionsDefine,l=u?i0(e):jh(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=W(f),c=new gy(o),v=0;v<c.length;v++)c[v]=-1;function d(M){var C=c[M];if(C<0){var A=n[M],I=H(A)?A:{name:A},L=new No,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 E=a.length;return c[M]=E,L.storeDimIndex=M,a.push(L),L}return a[C]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(M,C){var A=Ut(M).slice();if(A.length===1&&!F(A[0])&&A[0]<0){h.set(C,!1);return}var I=h.set(C,[]);b(A,function(L,P){var E=F(L)?l.get(L):L;E!=null&&E<o&&(I[P]=E,p(d(E),C,P))})});var g=0;b(r,function(M){var C,A,I,L;if(F(M))C=M,L={};else{L=M,C=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=k({},L),L.ordinalMeta=P,A=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=h.get(C);if(E!==!1){if(E=Ut(E),!E.length)for(var R=0;R<(A&&A.length||1);R++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&E.push(g++)}b(E,function(N,X){var $=d(N);if(u&&L.type!=null&&($.type=L.type),p(pt($,L),C,X),$.name==null&&A){var J=A[X];!H(J)&&(J={name:J}),$.name=$.displayName=J.name,$.defaultTooltip=J.defaultTooltip}I&&pt($.otherDims,I)})}});function p(M,C,A){em.get(C)!=null?M.otherDims[C]=A:(M.coordDim=C,M.coordDimIndex=A,i.set(C,!0))}var m=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=m?y||1:0;var S=m||"value";function T(M){M.name==null&&(M.name=M.coordDim)}if(s)b(a,function(M){T(M)}),a.sort(function(M,C){return M.storeDimIndex-C.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),D=x.coordDim;D==null&&(x.coordDim=vD(S,i,_),x.coordDimIndex=0,(!m||y<=0)&&(x.isExtraCoord=!0),y--),T(x),x.type==null&&(iy(e,w)===Pt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return nh(a,function(M){return M.name},function(M,C){C>0&&(M.name=M.name+(C-1))}),new r0({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function cD(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return b(t,function(a){var o;H(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function vD(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var dD=(function(){function e(t){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=t}return e})();function pD(e){var t=e.get("coordinateSystem"),r=new dD(t),n=gD[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var gD={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",pe).models[0],a=e.getReferringComponents("yAxis",pe).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),En(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),En(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",pe).models[0];t.coordSysDims=["single"],r.set("single",i),En(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",pe).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),En(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),En(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];r.set(f,l),En(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})},matrix:function(e,t,r,n){var i=e.getReferringComponents("matrix",pe).models[0];t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function En(e){return e.get("type")==="category"}function mD(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;yD(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),l,f,h,c,v=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(b(a,function(S,T){F(S)&&(a[T]=S={name:S}),d(S)||(v=!1)}),b(a,function(S,T){u&&!S.isExtraCoord&&(!n&&!l&&S.ordinalMeta&&(l=S),!f&&d(S)&&(!v||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+e.id,c="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var g=f.coordDim,p=f.type,m=0;b(a,function(S){S.coordDim===g&&m++});var y={name:h,coordDim:g,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:c,coordDim:c,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(c,p),_.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function yD(e){return!n0(e.schema)}function _D(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function SD(e,t){return _D(e,t)?e.getCalculationInfo("stackResultDimension"):t}function TD(e,t){var r=e.get("coordinateSystem"),n=kh.get(r),i;return t&&t.coordSysDims&&(i=Y(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=rD(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function wD(e,t,r){var n,i;return r&&b(e,function(a,o){var s=a.coordDim,u=r.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Y2(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===ae;var o=pD(t),s=TD(t,o),u=r.useEncodeDefaulter,l=j(u)?u:u?Ct(lb,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=hD(i,f),c=wD(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=mD(t,{schema:h,store:v}),g=new fD(h,t);g.setCalculationInfo(d);var p=c!=null&&xD(i)?function(m,y,_,S){return S===c?_:this.defaultDimValueGetter(m,y,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function xD(e){if(e.sourceFormat===ae){var t=bD(e.data||[]);return!B(wa(t))}}function bD(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Me=(function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();Ds(Me);var CD=0,Mf=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++CD,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Y(n,MD);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!F(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},e})();function MD(e){return H(e)&&e.value!=null?e.value:e+""}var me=0,ca=1,DD={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},AD=gt(DD),fs=2,o0=3;function Jh(e,t,r){var n;return e=e||{},ID(e,r),{brk:n,mapper:e}}function s0(e,t){b(AD,function(r){e[r]=t[r]})}function u0(e,t){e.freeze=Nt}function va(e){return e.getExtentUnsafe(me,fs)}function hs(e,t){return e.getExtentUnsafe(ca,t)||e.getExtentUnsafe(me,t)}function LD(e){var t=hs(e,o0);return t[1]-t[0]}function Xs(e){var t=e.getExtentUnsafe(me,o0);return t[1]-t[0]}function ID(e,t){var r=e||{},n=[];return r._extents=n,n[me]=t?t.slice():Ee(),k(r,PD),r}var PD={needTransform:function(){return!1},normalize:function(e){var t=this._extents[ca]||this._extents[me];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[ca]||this._extents[me];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=hs(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[me].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){jd(this._extents,me,e,t)},setExtent2:function(e,t,r){var n=this._extents;n[e]||(n[e]=n[me].slice()),jd(n,e,t,r)},freeze:function(){}};function jd(e,t,r,n){jn(r,n)&&(e[t][0]=r,e[t][1]=n)}function l0(e){return cs(e)||ni(e)}function cs(e){return e.type==="interval"}function tc(e){return e.type==="time"}function ni(e){return e.type==="log"}function Xe(e){return e.type==="ordinal"}function ED(e){var t=jf(e),r=dn(10,t),n=er(e/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,at(n*r,-t)}function cn(e){return dr(e)+2}function lo(e,t){return ra(e)/ra(t)}function ol(e,t,r){var n=r&&r.lookup;if(n){for(var i=0;i<n.from.length;i++)if(e===n.from[i])return n.to[i]}return dn(t,e)}function f0(e,t,r){var n=e.slice();if(n[0]===n[1]){var i=r&&r.ctnShp;if(n[0]!==0){var a=Lt(n[0]);t[1]||(n[1]+=a/2),n[0]-=a/2}else i&&(n[0]=-1),n[1]=1}return(!rr(n[0])||!rr(n[1]))&&(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function RD(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function ec(e,t){return e=e||t,er(ht(e,1))}function h0(e,t,r){var n=va(e),i=n[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==n[0]&&u(n[0],!0,!0);for(var s=i;s<=n[1];s+=o)u(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&u(n[1],!0,!0);function u(l,f,h){r({value:l,offInterval:f},h)}}var c0=(function(e){z(t,e);function t(r){var n=e.call(this)||this;n.type="ordinal",n.parse=t.parse,s0(n,t.decoratedMethods);var i=r.ordinalMeta;i||(i=new Mf({})),B(i)&&(i=new Mf({categories:Y(i,function(o){return H(o)?o.value:o})})),n._ordinalMeta=i;var a=Jh(null,null,r.extent||[0,i.categories.length-1]);return n._mapper=a.mapper,u0(n),n}return t.parse=function(r){return r==null?r=NaN:F(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=er(r),r},t.prototype.getTicks=function(){var r=[];return h0(this,0,function(n){r.push(n)}),r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=ne(s,n.length);o<u;++o){var l=i[o]=n[o];a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i[o]=f,a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){var r=va(this._mapper);return r[1]-r[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(er(this._mapper.scale(r)))},transformIn:function(r,n){return this._mapper.transformIn(this._getTickNumber(r),n)},transformOut:function(r,n){return this.getRawOrdinalNumber(this._mapper.transformOut(r,n))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,n){return this._mapper.getExtentUnsafe(r,n)},setExtent:function(r,n){return this._mapper.setExtent(r,n)},setExtent2:function(r,n,i){return this._mapper.setExtent2(r,n,i)}},t})(Me);Me.registerClass(c0);function rc(e,t,r,n){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var u=i[s],l=i[s-1];if(!(l.break||u.break)){for(var f=0,h=[],c=u.value-l.value,v=c/t,d=cn(v);f<t-1;){var g=at(l.value+(f+1)*v,d);g>o[0]&&g<o[1]&&h.push(g),f++}var p=Hs();p&&p.pruneTicksByBreak("auto",h,r,function(m){return m},n,o),a.push(h)}}return a}var $n=(function(e){z(t,e);function t(r){var n=e.call(this)||this;n.type="interval",n.parse=t.parse,r=r||{};var i=Hm(n,r),a=Jh(n,i,null);return n.brk=a.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return t.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.getConfig=function(){return rt(this._cfg)},t.prototype.setConfig=function(r){var n=va(this);this._cfg=r=rt(r),r.niceExtent==null&&(r.niceExtent=n.slice()),r.intervalPrecision==null&&(r.intervalPrecision=cn(r.interval))},t.prototype.getTicks=function(r){r=r||{};var n=this._cfg,i=n.interval,a=va(this),o=n.niceExtent,s=n.intervalPrecision,u=Hs(),l=this.brk,f=u,h=[];if(!i)return h;r.breakTicks;var c=3e3;a[0]<o[0]&&h.push({value:r.expandToNicedExtent?at(o[0]-i,s):a[0]});for(var v=function(_,S){return er((S-_)/i)},d=n.intervalCount,g=o[0],p=0;;p++){if(d==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(p>d)break;g=ne(g,o[1]),p===d&&(g=o[1])}if(h.push({value:g}),g=at(g+i,s),l){var m=l.calcNiceTickMultiple(g,v);m>=0&&(g=at(g+m*i,s))}if(h.length>0&&g===h[h.length-1].value)break;if(h.length>c)return[]}var y=h.length?h[h.length-1].value:o[1];return a[1]>y&&h.push({value:r.expandToNicedExtent?at(y+i,s):a[1]}),h},t.prototype.getMinorTicks=function(r){return rc(this,r,Mh(this),this._cfg.interval)},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=dr(r.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var a=at(r.value,i,!0);return $m(a)},t.type="interval",t})(Me);Me.registerClass($n);var OD=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},v0=(function(e){z(t,e);function t(r){var n=e.call(this)||this;n.type="time",n.parse=t.parse,n._locale=r.locale,n._useUTC=r.useUTC,n._interval=0;var i=Hm(n,r),a=Jh(n,i,null);return n.brk=a.brk,n}return t.prototype.getLabel=function(r){return Vs(r.value,Wv[Xx($i(this._minLevelUnit))]||Wv.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(r,n,i){return Zx(r,n,i,this._locale,this._useUTC)},t.prototype.getTicks=function(r){var n=this._interval,i=va(this),a=this.brk,o=[];if(!n)return o;var s=this._useUTC;o=GD(this._minLevelUnit,this._approxInterval,s,i,Xs(this),a);var u=sn.length-1,l=0;return b(o,function(f){f.time&&(u=Math.min(u,st(sn,f.time.upperTimeUnit)),l=Math.max(l,f.time.level))}),o},t.prototype.getMinorTicks=function(r){return rc(this,r,Mh(this),this._interval)},t.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},t.parse=function(r){return Tt(r)?Math.round(r):+si(r)},t.type="time",t})(Me),fo=[["second",Dh],["minute",Ah],["hour",Zi],["quarter-day",Zi*6],["half-day",Zi*12],["day",ge*1.2],["half-week",ge*3.5],["week",ge*7],["month",ge*31],["quarter",ge*95],["half-year",Uv/2],["year",Uv]];function kD(e,t,r,n){return uf(new Date(t),e,n).getTime()===uf(new Date(r),e,n).getTime()}function BD(e,t){return e/=ge,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ND(e){var t=30*ge;return e/=t,e>6?6:e>3?3:e>2?2:1}function FD(e){return e/=Zi,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Jd(e,t){return e/=t?Ah:Dh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function zD(e){return ht(Jf(e,!0),1)}function HD(e,t,r){var n=Math.max(0,st(sn,t)-1);return uf(new Date(e),sn[n],r).getTime()}function VD(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function GD(e,t,r,n,i,a){var o=3e3,s=Gx,u=0;function l(R,N,X,$,J,q,tt){for(var et=VD(J,R),V=N,it=new Date(V);V<X&&V<=n[1]&&(tt.push({value:V}),!(u++>o));)if(it[J](it[$]()+R),V=it.getTime(),a){var ut=a.calcNiceTickMultiple(V,et);ut>0&&(it[J](it[$]()+ut*R),V=it.getTime())}tt.push({value:V,notAdd:V>n[1]})}function f(R,N,X){var $=[],J=!N.length;if(!kD($i(R),n[0],n[1],r)){J&&(N=[{value:HD(n[0],R,r)},{value:n[1]}]);for(var q=0;q<N.length-1;q++){var tt=N[q].value,et=N[q+1].value;if(tt!==et){var V=void 0,it=void 0,ut=void 0,jt=!1;switch(R){case"year":V=Math.max(1,Math.round(t/ge/365)),it=Vm(r),ut=$x(r);break;case"half-year":case"quarter":case"month":V=ND(t),it=Lh(r),ut=Gm(r);break;case"week":case"half-week":case"day":V=BD(t),it=Ih(r),ut=Um(r),jt=!0;break;case"half-day":case"quarter-day":case"hour":V=FD(t),it=Ph(r),ut=Wm(r);break;case"minute":V=Jd(t,!0),it=Eh(r),ut=Ym(r);break;case"second":V=Jd(t,!1),it=Rh(r),ut=Xm(r);break;case"millisecond":V=zD(t),it=Oh(r),ut=Zm(r);break}et>=n[0]&&tt<=n[1]&&l(V,tt,et,it,ut,jt,$),R==="year"&&X.length>1&&q===0&&X.unshift({value:X[0].value-V})}}for(var q=0;q<$.length;q++)X.push($[q])}}for(var h=[],c=[],v=0,d=0,g=0;g<s.length;++g){var p=$i(s[g]);if(Yx(s[g])){f(s[g],h[h.length-1]||[],c);var m=s[g+1]?$i(s[g+1]):null;if(p!==m){if(c.length){d=v,c.sort(function(R,N){return R.value-N.value});for(var y=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(y.push(c[_]),S>=n[0]&&S<=n[1]&&v++)}var T=i/t;if(v>T*1.5&&d>T/1.5||(h.push(y),v>T||e===s[g]))break}c=[]}}}for(var w=kt(Y(h,function(R){return kt(R,function(N){return N.value>=n[0]&&N.value<=n[1]&&!N.notAdd})}),function(R){return R.length>0}),x=w.length-1,D=[],g=0;g<w.length;++g)for(var M=w[g],C=0;C<M.length;++C){var A=Eo(M[C].value,r);D.push({value:M[C].value,time:{level:x-g,upperTimeUnit:A,lowerTimeUnit:A}})}nh(D,ZS,null),D.sort(function(R,N){return R.value-N.value});var I=D[0],L=D[D.length-1],P=Eo(n[0],r),E=Eo(n[1],r);return(!I||I.value>n[0])&&D.unshift({value:n[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!L||L.value<n[1])&&D.push({value:n[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),D}var UD=function(e,t){var r=e.getExtent();if(r[0]===r[1]&&(r[0]-=ge,r[1]+=ge),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-ge}e.setExtent(r[0],r[1]);var i=ec(t.splitNumber,10),a=Xs(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var u=fo.length,l=Math.min(OD(fo,a,0,u),u-1),f=fo[l][1],h=fo[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:h})};Me.registerClass(v0);var ho=0,co=1,d0=(function(e){z(t,e);function t(r){var n=e.call(this)||this;n.type="log",n.parse=$n.parse,n.base=r.logBase||10;var i=[],a=[];n._lookup={from:i,to:a},i[ho]=i[co]=a[ho]=a[co]=NaN,s0(n,t.mapperMethods),r.breakOption;var o={};return n.powStub=new $n({breakParsed:o.original}),n.intervalStub=new $n({breakParsed:o.transformed}),u0(n,n.intervalStub),n}return t.prototype.getTicks=function(r){var n=this.base,i=this.powStub,a=this.intervalStub,o=a.getExtent(),s=i.getExtent(),u={lookup:{from:o,to:s}};return Y(a.getTicks(r||{}),function(l){var f=l.value,h=ol(f,n,u),c;return{value:h,break:c}},this)},t.prototype.getMinorTicks=function(r){return rc(this,r,Mh(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(lo(r,this.base))},scale:function(r){return ol(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=lo(r,this.base),n&&n.depth===fs?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var i=n?n.depth:null;return tp.depth=i,ep.lookup=this._lookup,ol(i===fs?r:this.intervalStub.transformOut(r,tp),this.base,ep)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(me,r,n)},setExtent2:function(r,n,i){if(!(!jn(n,i)||n<=0||i<=0)){var a=rp,o=rp;if(r===me){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[ho]=n,a[co]=i);var u=this.base;this.intervalStub.setExtent2(r,o[ho]=lo(n,u),o[co]=lo(i,u))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return jn(n[0],n[1])&&Ge(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},t})(Me);Me.registerClass(d0);var tp={},ep={},rp=[],p0={value:1,category:1,time:1,log:1},g0=vt();function WD(e){var t=e.get("type");return(t==null||!qt(p0,t)&&!Me.getClass(t))&&(t="value"),t}function YD(e,t,r){var n;switch(t){case"category":return new c0({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Ee()});case"time":return new v0({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:n});case"log":return new d0({logBase:e.get("logBase"),breakOption:n});case"value":return new $n({breakOption:n});default:return new(Me.getClass(t)||$n)({})}}function XD(e,t,r){var n=e.getExtentUnsafe(me,null),i=n[0],a=n[1];return jn(i,a)?i===t||a===t?$D:i<t&&a>t?ZD:Df:Df}var ZD=1,$D=2,Df=3;function qD(e){g0(e).noOnMyZero=!0}function KD(e){return g0(e).noOnMyZero}function Zs(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=Ux(t);return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}else{if(F(t))return function(i){var a=e.scale.getLabel(i),o=t.replace("{value}",a??"");return o};if(j(t)){if(e.type==="category")return function(i,a){return t(vs(e,i),i.value-e.scale.getExtent()[0],null)};var n=Hs();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(vs(e,i),a,o)}}else return function(i){return e.scale.getLabel(i)}}}function vs(e,t){var r=e.scale;return Xe(r)?r.getLabel(t):t.value}function nc(e){var t=e.get("interval");return t??"auto"}function QD(e){return e.type==="category"&&nc(e.getLabelModel())===0}function jD(e,t){var r={};return b(e.mapDimensionsAll(t),function(n){r[SD(e,n)]=!0}),gt(r)}function ii(e){return e==="middle"||e==="center"}function da(e){return e.getShallow("show")}function JD(e,t,r){var n=e.get("breaks",!0);n==null}function m0(e,t,r,n,i,a){var o=ni(e),s=o?e.intervalStub:e;if(s.setExtent(n[0],n[1]),o){var u=e.powStub,l={depth:fs},f=e.transformOut(n[0],l),h=e.transformOut(n[1],l),c=RD(r,n);t[0]&&!c[0]&&(f=i[0]),t[1]&&!c[1]&&(h=i[1]),u.setExtent(f,h)}s.setConfig(a)}function $s(e,t){return Xe(e)?e.getRawOrdinalNumber(t.value):t.value}function y0(e,t){return Xe(e)&&!!t.get("boundaryGap")}var tA=(function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e})(),eA=YS(),np="|&",hi=vt(),rA=-2,X2=-1,nA=vt();function _0(e,t){var r=e.model,n=hi(li(r.ecModel)).keyed,i=n&&n.get(t);return i&&i.get(r.uid)}function iA(e,t){return T0(_0(e,t))}function aA(e,t){var r=[];return S0(e.model.ecModel,function(n){for(var i=0;i<t.length;i++)t[i]&&n.serByIdx[t[i].seriesIndex]&&r.push(T0(n))}),r}function S0(e,t){var r=hi(li(e)).keyed;r&&r.each(function(n,i){n.each(function(a,o){t(a,i,o)})})}function T0(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function oA(e,t){var r=e.model.ecModel,n=hi(li(r)).axSer;n&&w0(r,n.get(e.model.uid),t)}function Z2(e,t,r){var n=_0(e,t);n&&w0(e.model.ecModel,n.sers,r)}function w0(e,t,r){if(t)for(var n=0;n<t.length;n++){var i=t[n];e.isSeriesFiltered(i)||r(i)}}function $2(e,t,r){var n=hi(li(e)).keyed,i=n&&n.get(t);i&&i.each(function(a){r(a.axis)})}function x0(e,t){var r=e.model,n=hi(li(r.ecModel)).keys;n&&b(n.get(r.uid),function(i){t(i)})}function sA(e){var t=nA(JC(e)),r=t.keyed||(t.keyed=W());S0(e,function(n,i,a){var o=r.get(i)||r.set(i,W()),s=o.get(a)||o.set(a,{});n.metrics.liPosMinGap&&b0.liPosMinGap(e,n,s)})}function q2(e,t){b0[e]=t}var b0={};function ip(e,t,r){if(e){var n=t.ecModel,i=hi(li(n)),a=e.model.uid,o=i.axSer||(i.axSer=W()),s=o.get(a)||o.set(a,[]);s.push(t);var u=t.subType,l=t.getBaseAxis()===e,f=Lf.get(Af(u,l,r))||Lf.get(Af(u,l,null));if(f){var h=i.keyed||(i.keyed=W()),c=i.keys||(i.keys=W()),v=f.key,d=h.get(v)||h.set(v,W()),g=d.get(a);g||(g=d.set(a,{axis:e,sers:[],serByIdx:[]}),g.metrics=f.getMetrics(e),(c.get(a)||c.set(a,[])).push(v)),g.sers.push(t),g.serByIdx[t.seriesIndex]=t}}}function Af(e,t,r){return e+np+G(t,!0)+np+(r||"")}function K2(e,t){var r=Af(t.seriesType,t.baseAxis,t.coordSysType);Lf.set(r,t),eA(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:sA})})}var Lf=W(),uA=vt(),lA=1,Q2=2,fA=3,C0=(function(){function e(t,r,n,i,a){var o=Xe(t),s=o?r.getCategories().length:null,u;if(o){var l=r.getCategories(!0);u=l&&!l.length}var f=n.slice();(cs(t)||ni(t)||tc(t))&&(Vg(f,Di(t,r.get("dataMin",!0))),Gg(f,Di(t,r.get("dataMax",!0)))),US(f)||(f[0]=f[1]=NaN);var h=[],c=[!1,!1],v=r.get("min",!0);v==="dataMin"?(h[0]=f[0],c[0]=!0):(h[0]=Di(t,j(v)?v({min:f[0],max:f[1]}):v),c[0]=h[0]!=null);var d=r.get("max",!0);d==="dataMax"?(h[1]=f[1],c[1]=!0):(h[1]=Di(t,j(d)?d({min:f[0],max:f[1]}):d),c[1]=h[1]!=null);var g=hA(t,r),p=o?null:f[1]-f[0]||Math.abs(f[0]);h[0]==null&&(h[0]=o?u?f[0]:s?0:NaN:f[0]-g[0]*p),h[1]==null&&(h[1]=o?u?f[1]:s?s-1:NaN:f[1]+g[1]*p),!rr(h[0])&&(h[0]=NaN),!rr(h[1])&&(h[1]=NaN);var m=u||ea(h[0])||ea(h[1])||o&&!s,y=cs(t),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(h[0]>0&&h[1]>0&&!c[0]&&(h[0]=0),h[0]<0&&h[1]<0&&!c[1]&&(h[1]=0));var S=!1;h[0]>h[1]&&(h.reverse(),S=!0);var T=Di(t,r.get("startValue",!0)),w=T!=null;!Ge(T)&&i&&(T=t.getDefaultStartValue?t.getDefaultStartValue():0),Ge(T)&&(w||!y||_)&&(T<h[0]&&!c[0]?(h[0]=T,c[0]=!0):T>h[1]&&!c[1]&&(h[1]=T,c[1]=!0));var x=this._i={scale:t,dataMM:f,noZoomEffMM:h,zoomMM:[],fixMM:c,zoomFixMM:[!1,!1],startValue:T,isBlank:m,incl0:_,tggAxInv:S,ctnShp:a};ap(x,h)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,r=t.zoomMM,n=t.noZoomEffMM,i=t.zoomFixMM,a=t.fixMM,o={fixMM:a,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=i[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=i[1]=!0),ap(t,s),o},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,r){this._i.zoomMM[t]=r},e})();function ap(e,t){var r=e.scale,n=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],n),t[1]=r.sanitize(t[1],n),WS(t))}function Di(e,t){return t==null?null:ea(t)?NaN:e.parse(t)}function hA(e,t){var r;if(Xe(e))r=[0,0];else{var n=t.get("boundaryGap");typeof n=="boolean"&&(n=null),r=B(n)?n:[n,n]}return[op(r[0]),op(r[1])]}function op(e){return Qn(typeof e=="boolean"?0:e,1)||0}function M0(e){var t=uA(e.scale);return t.extent||(t.extent=Ee()),t}function cA(e,t){M0(e).dimIdxInCoord=t.get(e.dim)}function vA(e,t){var r=e.scale,n=e.model,i=e.dim;r.rawExtentInfo||dA(r,e,i,n,t)}function dA(e,t,r,n,i){var a=M0(t),o=a.extent,s=!1;oA(t,function(f){if(f.boxCoordinateSystem){var h=Jm(f).coord,c=a.dimIdxInCoord;if(c>=0){if(B(h)){var v=h[c];v!=null&&!B(v)&&VS(o,e.parse(v))}}}else if(f.coordinateSystem){var d=f.getData();if(d){var g=e.getFilter?e.getFilter():null;b(jD(d,r),function(p){GS(o,d.getApproximateExtent(p,g))})}f.__requireStartValue&&f.__requireStartValue(t)&&(s=!0)}});var u=gA(e,t,n),l=new C0(e,n,o,s,u);D0(e,l,i),a.extent=null}function pA(e,t){var r=e.scale;D0(r,new C0(r,e.model,t,!1,!1),fA)}function D0(e,t,r){e.rawExtentInfo=t,t.from=r}function j2(e,t){ic.set(e,t)}var ic=W();function A0(e,t,r,n,i){e.rawExtentInfo||pA({scale:e,model:t},Ee());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),n&&a.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),a}function gA(e,t,r){var n=y0(e,r),i=r.get("containShape",!0);if(i==null&&!n&&(i=!0),!i)return!1;var a=!1;return x0(t,function(o){a=!!ic.get(o)||a}),a}function mA(e,t,r,n){if(r.ctnShp){var i;if(x0(e,function(s){var u=ic.get(s);if(u){var l=u(e,n);l&&(i=i||[0,0],Vg(i,l[0]),Gg(i,l[1]),qD(e))}}),!!i){var a=t.getExtent();if(Xe(t))e.onBand||t.setExtent2(ca,ne(a[0],a[0]+i[0]),ht(a[1],a[1]+i[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=ne(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),r.zoomFixMM[1]||(o[1]=ht(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(ca,o[0],o[1])}}}}function sp(e,t){var r=ni(e),n=r?e.intervalStub:e,i=t.fixMinMax||[],a=r?e.getExtent():null,o=n.getExtent(),s=f0(o,i,t.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var u=r?_A(n,t):yA(n,t),l=u.intervalPrecision,f=u.interval,h=t.userInterval;h!=null&&(u.interval=h,u.intervalPrecision=cn(h)),i[0]||(s[0]=at(ln(s[0]/f)*f,l)),i[1]||(s[1]=at(Ta(s[1]/f)*f,l)),h!=null&&(u.niceExtent=s.slice()),m0(e,i,o,s,a,u)}function yA(e,t){var r=ec(t.splitNumber,5),n=Xs(e),i=t.minInterval,a=t.maxInterval,o=Jf(n/r,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=cn(o),u=e.getExtent(),l=[at(Ta(u[0]/o)*o,s),at(ln(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function _A(e,t){var r=ec(t.splitNumber,10),n=e.getExtent(),i=Xs(e),a=ht(Og(i),1),o=r/i*a;o<=.5&&(a*=10);var s=cn(a),u=[at(Ta(n[0]/a)*a,s),at(ln(n[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:u}}function up(e){var t=e.scale,r=e.model,n=r.axis,i=r.ecModel;SA(t,r,n,i)}function SA(e,t,r,n,i){var a=A0(e,t,n,r),o=cs(e)||tc(e);TA(e,{splitNumber:t.get("splitNumber"),fixMinMax:a.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:a}),r&&n&&mA(r,e,a,n)}function TA(e,t){wA[e.type](e,t)}var wA={interval:sp,log:sp,time:UD,ordinal:Nt},lp=[],xA={registerPreprocessor:Jy,registerProcessor:t0,registerPostInit:ZM,registerPostUpdate:$M,registerUpdateLifecycle:qh,registerAction:fi,registerCoordinateSystem:qM,registerLayout:KM,registerVisual:mn,registerTransform:jM,registerLoading:e0,registerMap:QM,registerImpl:qC,PRIORITY:HM,ComponentModel:ft,ComponentView:Ue,SeriesModel:hn,ChartView:un,registerComponentModel:function(e){ft.registerClass(e)},registerComponentView:function(e){Ue.registerClass(e)},registerSeriesModel:function(e){hn.registerClass(e)},registerChartView:function(e){un.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){ft.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){hS(e,t)}};function vn(e){if(B(e)){b(e,function(t){vn(t)});return}st(lp,e)>=0||(lp.push(e),j(e)&&(e={install:e}),e.install(xA))}var bA=vt(),ji=vt(),xe={estimate:1,determine:2};function ds(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function CA(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=e.scale;return{labels:Y(L0(r,n),function(i,a){return{formattedLabel:Zs(e)(i,a),rawLabel:n.getLabel(i),tick:i}})}}return e.type==="category"?DA(e,t):LA(e)}function MA(e,t,r){var n=e.scale,i=e.getTickModel().get("customValues");return i?{ticks:L0(i,n)}:e.type==="category"?AA(e,t):{ticks:n.getTicks(r)}}function L0(e,t){var r=t.getExtent(),n=[];return b(e,function(i){i=t.parse(i),i>=r[0]&&i<=r[1]&&n.push(i)}),nh(n,$S,null),Eg(n),Y(n,function(i){return{value:i}})}function DA(e,t){var r=e.getLabelModel(),n=I0(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function I0(e,t,r){var n=PA(e),i=nc(t),a=r.kind===xe.estimate;if(!a){var o=E0(n,i);if(o)return o}var s,u;j(i)?s=ps(e,i,!1):(u=i==="auto"?EA(e,r):i,s=ps(e,u,!1));var l={labels:s,labelCategoryInterval:u};return a?r.out.noPxChangeTryDetermine.push(function(){return If(n,i,l),!0}):If(n,i,l),l}function AA(e,t){var r=IA(e),n=nc(t),i=E0(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),j(n))a=ps(e,n,!0);else if(n==="auto"){var s=I0(e,e.getLabelModel(),ds(xe.determine));o=s.labelCategoryInterval,a=Y(s.labels,function(u){return u.tick})}else o=n,a=ps(e,o,!0);return If(r,n,{ticks:a,tickCategoryInterval:o})}function LA(e){var t=e.scale.getTicks(),r=Zs(e);return{labels:Y(t,function(n,i){return{formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tick:n}})}}var IA=P0("axisTick"),PA=P0("axisLabel");function P0(e){return function(r){return ji(r)[e]||(ji(r)[e]={list:[]})}}function E0(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function If(e,t,r){return e.list.push({key:t,value:r}),r}function EA(e,t){if(t.kind===xe.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return ji(e).autoInterval=r,!0}),r}var n=ji(e).autoInterval;return n??(ji(e).autoInterval=e.calculateCategoryInterval(t))}function RA(e,t){var r=t.kind,n=kA(e),i=Zs(e),a=(n.axisRotate-n.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,p=0;h<=s[1];h+=l){var m=0,y=0,_=Dg(i({value:h}),n.font,"center","top");m=_.width*1.3,y=_.height*1.3,g=Math.max(g,m,7),p=Math.max(p,y,7)}var S=g/v,T=p/d;isNaN(S)&&(S=1/0),isNaN(T)&&(T=1/0);var w=Math.max(0,Math.floor(Math.min(S,T)));if(r===xe.estimate)return t.out.noPxChangeTryDetermine.push(_t(OA,null,e,w,u)),w;var x=R0(e,w,u);return x??w}function OA(e,t,r){return R0(e,t,r)==null}function R0(e,t,r){var n=bA(e.model),i=e.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function kA(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 ps(e,t,r){var n=Zs(e),i=e.scale,a=[],o=j(t);return h0(i,o?0:t,function(s,u){var l=i.getLabel(s);if(o){var f=!!t(s.value,l);if(s.offInterval=!f,!f&&!u)return}a.push(r?s:{formattedLabel:n(s),rawLabel:l,tick:s})}),a}var BA=.8;function qs(e,t){t=t||{};var r={w:NaN,w2:NaN},n=e.scale,i=t.fromStat,a=t.min,o=LD(n);Ge(o)||(o=NaN);var s=e.getExtent(),u=Lt(s[1]-s[0]);return Xe(n)?NA(r,e,o,u):i&&FA(r,e,o,u,i),a!=null&&(r.w=Ge(r.w)?ht(a,r.w):a),r}function NA(e,t,r,n){var i=t.onBand,a=r+(i?1:0);a===0&&(a=1),e.w=n/a,!i&&r&&n&&(e.w2=e.w*r/n)}function FA(e,t,r,n,i){var a=!1,o=-1/0;b(i.key?[iA(t,i.key)]:aA(t,i.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),a=!1):u===rA&&(a=!0))}),Ge(r)&&r>0&&Ge(o)?(e.w=n/r*o,e.w2=o):a&&(e.w=n*BA,e.w2=e.w*r/n)}var fp=[0,1],zA=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this.scale;return t=n.normalize(n.parse(t)),qc(t,fp,hp(this),r)},e.prototype.coordToData=function(t,r){var n=qc(t,hp(this),fp,r);return this.scale.scale(n)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=MA(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=Y(n.ticks,function(s){return{coord:this.dataToCoord($s(this.scale,s)),tick:s}},this),a=r.get("alignWithLabel"),o=HA(this,i,a);return Y(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},e.prototype.getMinorTicksCoords=function(){if(Xe(this.scale))return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Y(n,function(a){return Y(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||ds(xe.determine),CA(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(){return qs(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||ds(xe.determine),RA(this,t)},e})();function hp(e){var t=e.getExtent();if(e.onBand){var r=t[1]-t[0],n=r/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function HA(e,t,r){var n=t.length;if(!e.onBand||r||!n)return!1;var i=qs(e).w;if(!i)return!1;b(t,function(s){s.coord-=i/2});var a=e.scale.getExtent(),o=t[n-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var cp=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],VA=1,gs=2,O0=VA|gs;function ms(e,t,r){r=r||O0,t?e.dirty|=r:e.dirty&=~r}function k0(e,t){return t=t||O0,e.dirty==null||!!(e.dirty&t)}function Cr(e){if(e)return k0(e)&&GA(e,e.label,e),e}function GA(e,t,r){var n=t.getComputedTransform();e.transform=wh(e.transform,n);var i=e.localRect=oa(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=Vn.textMargin);for(var h=0;h<4;h++)sl[h]=f===Vn.minMargin&&u&&u[h]!=null?u[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===Vn.textMargin&&es(i,sl,!1,!1);var c=e.rect=oa(e.rect,i);return n&&c.applyTransform(n),f===Vn.minMargin&&es(c,sl,!1,!1),e.axisAligned=Th(n),(e.label=e.label||{}).ignore=t.ignore,ms(e,!1),ms(e,!0,gs),e}var sl=[0,0,0,0];function UA(e,t,r){return e.transform=wh(e.transform,r),e.localRect=oa(e.localRect,t),e.rect=oa(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=Th(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function WA(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 n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,r)}}function vp(e,t){for(var r=0;r<cp.length;r++){var n=cp[r];e[n]==null&&(e[n]=t[n])}return Cr(e)}function dp(e){var t=e.obb;return(!t||k0(e,gs))&&(e.obb=t=t||new Sm,t.fromBoundingRect(e.localRect,e.transform),ms(e,!1,gs)),t}function J2(e,t,r,n,i){var a=e.length,o=cr[t],s=ti[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],p,m;y(),p<0&&T(-p,.8),m<0&&T(m,.8),y(),_(p,m,1),_(m,p,-1),y(),p<0&&w(-p),m<0&&w(m);function y(){p=d.rect[o]-r,m=n-g.rect[o]-g.rect[s]}function _(x,D,M){if(x<0){var C=Math.min(D,-x);if(C>0){S(C*M,0,a);var A=C+x;A<0&&T(-A*M,1)}else T(-x*M,1)}}function S(x,D,M){x!==0&&(f=!0);for(var C=D;C<M;C++){var A=e[C],I=A.rect;I[o]+=x,A.label[o]+=x}}function T(x,D){for(var M=[],C=0,A=1;A<a;A++){var I=e[A-1].rect,L=Math.max(e[A].rect[o]-I[o]-I[s],0);M.push(L),C+=L}if(C){var P=Math.min(Math.abs(x)/C,D);if(x>0)for(var A=0;A<a-1;A++){var E=M[A]*P;S(E,0,A+1)}else for(var A=a-1;A>0;A--){var E=M[A-1]*P;S(-E,A,a)}}}function w(x){var D=x<0?-1:1;x=Math.abs(x);for(var M=Math.ceil(x/(a-1)),C=0;C<a-1;C++)if(D>0?S(M,0,C+1):S(-M,a-C-1,a),x-=M,x<=0)return}return f}function YA(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 n=0;n<e.length;n++){var i=Cr(e[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,u=0;u<t.length;u++)if(ac(i,t[u],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(i)}}}function ac(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:dp(e).intersect(dp(t),r,n)}const XA=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function ZA(e){function t(r){return function(...i){if(!e.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(e.value[r],e.value,i)}}return XA.reduce((r,n)=>(r[n]=t(n),r),{})}function $A(e,t,r){yo([r,e,t],([n,i,a],o,s)=>{let u=null;if(n&&i&&a){const{offsetWidth:l,offsetHeight:f}=n,{throttle:h=100,onResize:c}=a===!0?{}:a;let v=!1;const d=()=>{i.resize(),c==null||c()},g=h?Wh(d,h):d;u=new ResizeObserver(()=>{!v&&(v=!0,n.offsetWidth===l&&n.offsetHeight===f)||n.offsetWidth===0||n.offsetHeight===0||g()}),u.observe(n)}s(()=>{u&&(u.disconnect(),u=null)})})}const qA={autoresize:[Boolean,Object]},KA=Symbol();function QA(e,t,r){const n=_o(KA,{}),i=Pi(()=>({...So(n),...r==null?void 0:r.value}));tg(()=>{const a=e.value;a&&(t.value?a.showLoading(i.value):a.hideLoading())})}const jA={loading:Boolean,loadingOptions:Object};function B0(){return typeof window<"u"&&typeof document<"u"}const JA=/^on[^a-z]/,N0=e=>JA.test(e);function tL(e){const t={};for(const r in e)N0(r)||(t[r]=e[r]);return t}function eL(e){const t=Number(e);return Number.isInteger(t)&&t>=0&&t<Math.pow(2,32)-1&&String(t)===e}function rL(e,t){const r=new Set(e),n=new Set(t);if(r.size!==n.size)return!1;for(const i of r)if(!n.has(i))return!1;return!0}function F0(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}const z0={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},nL=Object.keys(z0);function ul(e){return nL.some(t=>e===t||e.startsWith(t+"-"))}function iL(e,t){const r=B0()?document.createElement("div"):void 0,n=Ks({}),i=Ks({}),a=Ks({}),o=Sl(!1),s=()=>o.value&&r?_l(x_,{to:r},Object.entries(e).filter(([h])=>ul(h)).map(([h,c])=>{const v=h;return _l("div",{ref:d=>{d instanceof HTMLElement&&(n[v]=d)},style:{display:"contents"}},i[v]?c==null?void 0:c(a[v]):void 0)})):void 0;function u(h){return h!==null&&typeof h=="object"&&!Array.isArray(h)}function l(h){const c={...h},v=(d,g)=>{const p=d[g];if(Array.isArray(p))return d[g]=[...p],d[g];if(u(p))return d[g]={...p},d[g];if(p===void 0)return d[g]=eL(g)?[]:{},d[g]};return Object.keys(e).filter(d=>ul(d)).forEach(d=>{const[g,...p]=d.split("-"),m=z0[g];if(!m)return;const y=[...p,...m];if(y.length===0)return;let _=c;for(let S=0;S<y.length-1;S++)if(_=v(_,y[S]),!_)return;_[y[y.length-1]]=S=>(i[d]=!0,a[d]=S,n[d])}),c}let f=[];return T_(()=>{const h=Object.keys(e).filter(ul);rL(h,f)||(f.forEach(c=>{h.includes(c)||(delete a[c],delete i[c],delete n[c])}),f=h,t())}),eg(()=>{o.value=!0}),w_(()=>{r==null||r.remove()}),{teleportedSlots:s,patchOption:l}}let lr=null;const Pf="x-vue-echarts";function aL(){if(lr!=null)return lr;const e=globalThis.customElements;if(!B0()||!(e!=null&&e.get))return lr=!1,lr;if(!e.get(Pf))try{class t extends HTMLElement{constructor(){super(...arguments);cc(this,"__dispose",null)}disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}e.define(Pf,t)}catch{return lr=!1,lr}return lr=!0,lr}function oL(e){if(!F0(e))return;const t=e.id;if(typeof t=="string")return t;if(typeof t=="number"&&Number.isFinite(t))return String(t)}function pp(e){const t=e,r=Array.isArray(t.options)?t.options.length:0,n=Array.isArray(t.media)?t.media.length:0,i=Object.create(null),a=[],o=[];for(const s of Object.keys(t)){if(s==="options"||s==="media")continue;const u=t[s];if(Array.isArray(u)){const l=u,f=new Set;let h=0;for(let c=0;c<l.length;c++){const v=oL(l[c]);v!==void 0?f.add(v):h++}i[s]={idsSorted:f.size>0?Array.from(f).sort():[],noIdCount:h}}else F0(u)?a.push(s):u!==void 0&&o.push(s)}return a.length>1&&a.sort(),o.length>1&&o.sort(),{optionsLength:r,mediaLength:n,arrays:i,objects:a,scalars:o}}function gp(e,t){if(e.length===0)return[];if(t.length===0)return e.slice();const r=new Set(t),n=[];for(let i=0;i<e.length;i++){const a=e[i];r.has(a)||n.push(a)}return n}function sL(e,t){if(e.length===0)return!1;if(t.length===0)return!0;const r=new Set(t);for(let n=0;n<e.length;n++)if(!r.has(e[n]))return!0;return!1}function uL(e,t){const r=pp(t);if(!e)return{option:t,signature:r,plan:{notMerge:!1}};if(r.optionsLength<e.optionsLength)return{option:t,signature:r,plan:{notMerge:!0}};if(r.mediaLength<e.mediaLength)return{option:t,signature:r,plan:{notMerge:!0}};if(gp(e.scalars,r.scalars).length>0)return{option:t,signature:r,plan:{notMerge:!0}};const n=new Set,i=new Map,a=gp(e.objects,r.objects);for(let l=0;l<a.length;l++)i.set(a[l],null);for(const l of Object.keys(e.arrays)){const f=e.arrays[l];if(!f)continue;const h=r.arrays[l];if(!h){(f.idsSorted.length>0||f.noIdCount>0)&&(i.set(l,[]),n.add(l));continue}if(sL(f.idsSorted,h.idsSorted)){n.add(l);continue}h.noIdCount<f.noIdCount&&n.add(l)}let o=t,s=r;if(i.size>0){const l={...t};i.forEach((f,h)=>{l[h]=f}),o=l,s=pp(o)}const u=n.size>0?Array.from(n).sort():void 0;return{option:o,signature:s,plan:u?{notMerge:!1,replaceMerge:u}:{notMerge:!1}}}var mp=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
x-vue-echarts>:first-child,x-vue-echarts>:first-child>canvas{border-radius:inherit;}
`;if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const e=new CSSStyleSheet;e.replaceSync(mp),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}else{const e=document.createElement("style");e.textContent=mp,document.head.appendChild(e)}const lL=aL(),fL=Symbol(),hL=Symbol(),cL=Symbol();var vL=m_({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...qA,...jA},emits:{},slots:Object,setup(e,{attrs:t,expose:r,slots:n}){const i=Sl(),a=Sl(),o=_o(fL,null),s=_o(hL,null),u=_o(cL,null),{autoresize:l,manualUpdate:f,loading:h,loadingOptions:c}=y_(e),v=Pi(()=>e.theme||So(o)),d=Pi(()=>e.initOptions||So(s)||void 0),g=Pi(()=>e.updateOptions||So(u)),p=Pi(()=>tL(t)),m={},y=new Map,{teleportedSlots:_,patchOption:S}=iL(n,()=>{!f.value&&e.option&&a.value&&x(a.value,e.option)});let T;function w(I){const L={},P=((I==null?void 0:I.replaceMerge)??[]).filter(E=>E!=null);return P.length>0&&(L.replaceMerge=[...new Set(P)]),(I==null?void 0:I.notMerge)!==void 0&&(L.notMerge=I.notMerge),L}function x(I,L,P,E=!1){const R=S(L);if(E){I.setOption(R,P??{}),T=void 0;return}if(g.value){const $=P??g.value;I.setOption(R,$),T=void 0;return}const N=uL(T,R),X=w(N.plan);I.setOption(N.option,X),T=N.signature}Object.keys(t).filter(I=>N0(I)).forEach(I=>{if(I.indexOf("Native:")===2){const R=`on${I.charAt(9).toUpperCase()}${I.slice(10)}`;m[R]=t[I];return}let L=I.charAt(2).toLowerCase()+I.slice(3),P;L.indexOf("zr:")===0&&(P=!0,L=L.substring(3));let E;L.substring(L.length-4)==="Once"&&(E=!0,L=L.substring(0,L.length-4)),y.set({event:L,zr:P,once:E},t[I])});function D(){if(!i.value)return;const I=a.value=YM(i.value,v.value,d.value);e.group&&(I.group=e.group),y.forEach((E,{zr:R,once:N,event:X})=>{if(!E)return;const $=R?I.getZr():I;if(N){const J=E;let q=!1;E=(...tt)=>{q||(q=!0,J(...tt),$.off(X,E))}}$.on(X,E)});function L(){I&&!I.isDisposed()&&I.resize()}function P(){const{option:E}=e;if(f.value){E&&x(I,E,void 0,!0);return}E&&x(I,E)}l.value?S_(()=>{L(),P()}):P()}const M=(I,L,P)=>{if(!e.manualUpdate)return;const E=typeof L=="boolean"?{notMerge:L,lazyUpdate:P}:L;a.value&&x(a.value,I,E??void 0,!0)};function C(){a.value&&(a.value.dispose(),a.value=void 0),T=void 0}yo(()=>e.option,I=>{if(!I){T=void 0;return}f.value||a.value&&x(a.value,I)},{deep:!0}),yo([f,d],()=>{C(),D()},{deep:!0}),yo(v,I=>{var L;(L=a.value)==null||L.setTheme(I||{})},{deep:!0}),tg(()=>{e.group&&a.value&&(a.value.group=e.group)});const A=ZA(a);return QA(a,h,c),$A(a,l,i),eg(()=>{D()}),__(()=>{lL&&i.value?i.value.__dispose=C:C()}),r({setOption:M,root:i,chart:a,...A}),(()=>_l(Pf,{...p.value,...m,ref:i,class:["echarts",p.value.class]},_()))}}),tP=vL;function yp(e,t,r){var n=ee.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}function ll(e){return!e.__cursors.get(Tm)}function _p(e){var t=e.__cursors.get(Tm);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var H0=(function(e){z(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=Lo,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;i=i||$o,typeof r=="string"?o=yp(r,n,i):H(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(sg(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.afterBrush=function(){this.__prevIdx=_p(this)},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=yp("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new Z(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var T=new Z(0,0,0,0);T.copy(S),o.push(T)}else{for(var w=!1,x=1/0,D=0,M=0;M<o.length;++M){var C=o[M];if(C.intersect(S)){var A=new Z(0,0,0,0);A.copy(C),A.union(S),o[M]=A,w=!0;break}else if(u){l.copy(S),l.union(C);var I=S.width*S.height,L=C.width*C.height,P=l.width*l.height,E=P-I-L;E<x&&(x=E,D=M)}}if(u&&(o[D].union(S),w=!0),!w){var T=new Z(0,0,0,0);T.copy(S),o.push(T)}u||(u=o.length>=s)}}for(var h=_p(this),c=h.startIdx;c<h.endIdx;++c){var v=r[c];if(v){var d=v.shouldBePainted(i,a,!0,!0),g=v.__isRendered&&(v.__dirty&$t||!d)?v.getPrevPaintRect():null;g&&f(g);var p=d&&(v.__dirty&$t||!v.__isRendered)?v.getPaintRect():null;p&&f(p)}}for(var m=this.__prevIdx,c=m.startIdx;c<m.endIdx;++c){var v=n[c],d=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!d||!v.__zr)&&v.__isRendered){var g=v.getPrevPaintRect();g&&f(g)}}var y;do{y=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var _=c+1;_<o.length;)o[c].intersect(o[_])?(y=!0,o[c].union(o[_]),o.splice(_,1)):_++;c++}}while(y);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||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,p,m,y){if(o.clearRect(g,p,m,y),n&&n!=="transparent"){var _=void 0;if(Ts(n)){var S=n.global||n.__width===m&&n.__height===y;_=S&&n.__canvasGradient||yf(o,n,{x:0,y:0,width:m,height:y}),n.__canvasGradient=_,n.__width=m,n.__height=y}else V_(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=_f(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,m,y),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,m,y),o.restore())}!i||l?d(0,0,s,u):i.length&&b(i,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(Ye),Sp=1e5,Kr=314159,fl=void 0,dL=1,hl=2;function pL(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function gL(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}function Tp(e,t,r,n){var i=new H0(e,t,t.dpr);return i.zlevel=r,i.zlevel2=n,i.__builtin__=!0,V0(i),i}function V0(e){e.__cursorStack=[],e.__cursors=W()}function mL(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function yL(e,t){var r=e.__cursors,n=+t;return r.get(n)||(e.__cursorStack.push(n),r.set(n,mL({key:n})))}function vo(e,t){for(var r=e.__cursorStack,n=0;n<r.length;n++)t(e.__cursors.get(r[n]))}function cl(e,t){var r=e.layers;return r[t]||(r[t]=new Array(3))}function Rt(e,t,r){for(var n=e.layerStack,i=0;i<n.length;i++){var a=n[i].zl,o=n[i].zl2,s=e.layers[a][o];(!r||(!(r&Ji)||s.__builtin__)&&(!(r&Ef)||!s.__builtin__)&&(!(r&G0)||s!==e.hoverlayer))&&t(s,a,o,i)}}var Ji=1,Ef=2,G0=4,po=Ji|G0,_L=(function(){function e(t,r,n,i){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=k({},n||{}),this.dpr=n.devicePixelRatio||$o,this._singleCanvas=a,this.root=t;var o=t.style;if(o&&(sg(t),t.innerHTML=""),this.storage=r,this._prevDisplayList=[],a){var u=t,l=u.width,f=u.height;n.width!=null&&(l=n.width),n.height!=null&&(f=n.height),this.dpr=n.devicePixelRatio||1,u.width=l*this.dpr,u.height=f*this.dpr,this._width=l,this._height=f;var h=Tp(u,this,Kr,Lo);h.initContext(),this._insertLayer(h,Kr,Lo,!0),this._domRoot=t}else{this._width=no(t,0,n),this._height=no(t,1,n);var s=this._domRoot=gL(this._width,this._height);t.appendChild(s)}}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;t&&!H(t)?r={paintAll:!!t}:r=t||{};var n=G(r.refresh,!0),i=G(r.refreshHover,!1);if(i&&(this._hoverLayerDirty=hl),!n)return i&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return Rt(this._i,function(u,l,f,h){u.refresh&&u.refresh(h===0?s:null)},Ef),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},e.prototype._paintHoverList=function(t){var r=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=fl,n!==fl&&(!r&&n===hl&&(r=this._i.hoverlayer=this._ensureLayer(Sp)),!!r)){r.clear();for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=t.length;o<s;o++){var u=t[o];if(u.__inHover){a||(a=r.ctx,a.save());var l=u.__hoverStyle,f=void 0;l&&(f=u.style,u.style=l),en(a,u,i),l&&(u.style=f)}}a&&(Zn(a,i),a.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(Sp)},e.prototype.paintOne=function(t,r){Ny(t,r)},e.prototype._paintList=function(t,r,n){if(this._redrawId===n){var i=this._doPaintList(t,r);if(this._needsManuallyCompositing&&this._compositeManually(),i)Rt(this._i,function(o){o.afterBrush&&o.afterBrush()},po),this._paintHoverList(t);else{var a=this;Uo(function(){a._paintList(t,r,n)})}}},e.prototype._compositeManually=function(){var t=this._ensureLayer(Kr).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),Rt(this._i,function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)},Ji)},e.prototype._doPaintList=function(t,r){var n=this,i=!0;return Rt(this._i,function(a){var o=!1;if(vo(a,function(h){(h.drawIdx<h.endIdx||h.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=n._opts.useDirtyRect&&!ll(a)?a.createRepaintRects(t,r,n._width,n._height):null,u=n._i.layerStack[0],l=!0;if(a.__dirty){l=!1,a.__dirty=!1;var f=a.zlevel===u.zl&&a.zlevel2===u.zl2?n._backgroundColor:null;a.clear(!1,f,s)}vo(a,function(h){var c=n._paintPerCursor(a,h,t,s,l);i=i&&c})}},po),K.wxa&&Rt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),i},e.prototype._paintPerCursor=function(t,r,n,i,a){var o=t.ctx;if(i)if(!i.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,u=0;u<i.length;++u){var l=i[u];o.save(),o.beginPath(),o.rect(l.x*s,l.y*s,l.width*s,l.height*s),o.clip(),this._paintPerCursorInRect(t,r,n,l,a),o.restore()}else o.save(),this._paintPerCursorInRect(t,r,n,null,a),o.restore();return r.drawIdx>=r.endIdx},e.prototype._paintPerCursorInRect=function(t,r,n,i,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=t.ctx,u=ll(t),l=u&&ee.getTime(),f=r.drawIdx,h=r.notClearIdx,c=h>=0?Math.min(h,f):f;c<r.endIdx;c++){var v=n[c];if(!(c<f&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=hl),i!=null){var d=v.getPaintRect();d&&d.intersect(i)&&(en(s,v,o),v.setPrevPaintRect(d))}else en(s,v,o);if(u){var g=ee.getTime()-l;if(g>15){c++;break}}}}Zn(s,o),r.drawIdx=Math.max(c,f)},e.prototype.getLayer=function(t,r){return this._ensureLayer(t,0,r)},e.prototype._ensureLayer=function(t,r,n){r=r||0;var i=this._singleCanvas;i&&!this._needsManuallyCompositing&&(t=Kr,r=0);var a=cl(this._i,t)[r];return a||(a=Tp("zr_"+t+"."+r,this,t,r),this._layerConfig[t]&&lt(a,this._layerConfig[t],!0),(n||i&&t!==Kr)&&(a.virtual=!0),this._insertLayer(a,t,r,!1),a.initContext()),a},e.prototype.insertLayer=function(t,r){this._insertLayer(r,t,0,!1)},e.prototype._insertLayer=function(t,r,n,i){var a=this._i,o=a.layers,s=a.layerStack,u=this._domRoot,l=null;if(!(o[r]&&o[r][n])&&pL(t)){for(var f=s.length,h=0;h<f&&(s[h].zl<r||s[h].zl===r&&s[h].zl2<n);)h++;if(h>0&&(l=cl(a,s[h-1].zl)[s[h-1].zl2]),s.splice(h,0,{zl:r,zl2:n}),cl(a,r)[n]=t,!i&&!t.virtual)if(l){var c=l.dom;c.nextSibling?u.insertBefore(t.dom,c.nextSibling):u.appendChild(t.dom)}else u.firstChild?u.insertBefore(t.dom,u.firstChild):u.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(t,r){return Rt(this._i,function(n,i){t.call(r,n,i)})},e.prototype.eachBuiltinLayer=function(t,r){return Rt(this._i,function(n,i){t.call(r,n,i)},Ji)},e.prototype.eachOtherLayer=function(t,r){return Rt(this._i,function(n,i){t.call(r,n,i)},Ef)},e.prototype.getLayers=function(){var t={};return Rt(this._i,function(r,n,i){t[r.id]=r}),t},e.prototype._updateLayerStatus=function(t,r){var n=this;if(n._singleCanvas)for(var i=1;i<t.length;i++){var a=t[i];if(a.zlevel!==t[i-1].zlevel||a.incremental){n._needsManuallyCompositing=!0;break}}Rt(n._i,function(p){p.__dirty=!1,vo(p,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},po);for(var o,s=null,u=null,l=!1,f=0,h=t.length;f<h;f++){var a=t[f],c=a.zlevel,v=a.incremental,d=void 0;if(o!==c&&(o=c,l=!1),v?(l=!0,d=$w):d=l?Zw:Lo,(!s||c!==s.zlevel||d!==s.zlevel2)&&(s=n._ensureLayer(c,d),u=null,!s.__builtin__)){Yf("ZLevel "+c+" has been used by unknown layer "+s.id);continue}if((!u||v!==u.key)&&(u=yL(s,v),!u.used))if(u.used=!0,!r&&u.first===a.id){var g=f-u.startIdx;u.startIdx=f,u.drawIdx+=g,u.endIdx+=g}else s.__dirty=!0,u.first=a.id,u.startIdx=u.drawIdx=f,u.endIdx=f+1;u.endIdxNew=f+1,a.__dirty&$t&&!a.__inHover&&((!v||!a.notClear&&f<u.drawIdx)&&(s.__dirty=!0),v&&a.notClear&&u.notClearIdx<0&&(u.notClearIdx=f))}Rt(n._i,function(p){for(var m=p.__cursorStack,y=p.__cursors,_=m.length-1;_>=0;_--){var S=y.get(m[_]);if(!S.used)p.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var T=S.endIdxNew;(ll(p)?T<S.drawIdx:T!==S.endIdx||!T||t[T-1].id!==S.last)&&(p.__dirty=!0),S.endIdx=S.endIdxNew,S.last=T?t[T-1].id:NaN}}p.__dirty&&(vo(p,function(w){w.drawIdx=w.startIdx}),n._hoverLayerDirty===fl&&(n._hoverLayerDirty=dL))},po)},e.prototype.clear=function(){return Rt(this._i,function(t){t.clear(),V0(t)},Ji),this},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Rt(this._i,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?lt(n[t],r,!0):n[t]=r,Rt(this._i,function(i,a){lt(i,n[a],!0)})}},e.prototype.delLayer=function(t){for(var r=this._i.layerStack,n=this._i.layers,i=r.length-1;i>=0;i--){var a=r[i];if(a.zl===t){var o=n[t][a.zl2];if(o.__builtin__)continue;if(r.splice(i,1),n[t][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;t!=null&&(i.width=t),r!=null&&(i.height=r),t=no(a,0,i),r=no(a,1,i),n.style.display="",(this._width!==t||r!==this._height)&&(n.style.width=t+"px",n.style.height=r+"px",Rt(this._i,function(o){o.resize(t,r)}),this.refresh({paintAll:!0})),this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this._ensureLayer(Kr).resize(t,r)}return this},e.prototype.clearLayer=function(t){b(this._i.layers[t],function(r){r&&!r.__builtin__&&r.clear()})},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Kr][0].dom;var r=new H0("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;Rt(this._i,function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];en(n,f,o)}Zn(n,o)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function eP(e){e.registerPainter("canvas",_L)}function rP(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=ri(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(ri(e,t,r[o]));return a.join(" ")}}function nP(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!B(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var SL=typeof Float32Array!==ui?Float32Array:void 0,iP=typeof Float64Array!==ui?Float64Array:void 0;function aP(e){return TL({ctor:SL},e).arr}function TL(e,t){var r=e.arr,n=e.ctor;if(t>Kc&&(t=Kc),!r||e.typed&&r.length<t){var i=void 0;if(n)try{i=new n(t),e.typed=!0,r&&i.set(r)}catch{}if(!i&&(i=[],e.typed=!1,r))for(var a=0,o=r.length;a<o;a++)i[a]=r[a];e.arr=i}return e}function wL(e,t,r,n,i){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 Mt({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=j(i)?function(p){i(p,h)}:null;Bs(h,{shape:{width:u,height:l,x:o,y:s}},r,null,n,g)}return h}function xL(e,t,r){var n=e.getArea(),i=at(n.r0,1),a=at(n.r,1),o=new Os({shape:{cx:at(e.cx,1),cy:at(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Bs(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function oP(e,t,r,n,i){if(e){if(e.type==="polar")return xL(e,t,r);if(e.type==="cartesian2d")return wL(e,t,r,n,i)}else return null;return null}function sP(e,t){return e.type===t}var bL={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],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]}},CL=function(e){return Math.round(e.length/2)};function uP(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/v));var d=void 0;F(a)?d=bL[a]:j(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,CL))}}}}}var ML=(function(e){z(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(zA),DL=null;function AL(){return DL}var LL="expandAxisBreak",pr=Math.PI,IL=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],PL=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ai=vt(),U0=vt(),W0=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},e})();function EL(e,t,r,n){var i=r.axis,a=t.ensureRecord(r),o=[],s,u=oc(e.axisName)&&ii(e.nameLocation);b(n,function(d){var g=Cr(d);if(!(!g||g.label.ignore)){o.push(g);var p=a.transGroup;u&&(p.transform?ya(Ai,p.transform):ma(Ai),g.transform&&Vi(Ai,Ai,g.transform),Z.copy(go,g.localRect),go.applyTransform(Ai),s?s.union(go):Z.copy(s=new Z(0,0,0,0),go))}});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=i.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new Z(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Ai=Be(),go=new Z(0,0,0,0),Y0=function(e,t,r,n,i,a){if(ii(e.nameLocation)){var o=a.stOccupiedRect;o&&X0(UA({},o,a.transGroup.transform),n,i)}else Z0(a.labelInfoList,a.dirVec,n,i)};function X0(e,t,r){var n=new ct;ac(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&WA(t,n)}function Z0(e,t,r,n){for(var i=ct.dot(n,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||X0(s,r,n)}}var _r=(function(){function e(t,r,n,i){this.group=new re,this._axisModel=t,this._api=r,this._local={},this._shared=i||new W0(Y0),this._resetCfgDetermined(n)}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,n=r.getDefaultOption?r.getDefaultOption():{},i=G(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=G(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:G(t.nameDirection,1),tickDirection:G(t.tickDirection,1),labelDirection:G(t.labelDirection,1),labelOffset:G(t.labelOffset,0),silent:G(t.silent,!0),axisName:i,nameLocation:Gn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:oc(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new re({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 ct(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),b(RL,function(i){t[i]&&OL[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var i=Rg(r-t),a,o;return Ko(i)?(o=n>0?"top":"bottom",a="center"):Ko(i-pr)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<pr?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,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})(),RL=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],OL={axisLine:function(e,t,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var u=n.axis.getExtent(),l=a.transform,f=[u[0],0],h=[u[1],0],c=f[0]>h[0];l&&(ye(f,f,l),ye(h,h,l));var v=k({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&ns(n.axis.scale))AL().buildAxisBreakLine(n,i,a,d);else{var g=new xr(k({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));aa(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var p=n.get(["axisLine","symbol"]);if(p!=null){var m=n.get(["axisLine","symbolSize"]);F(p)&&(p=[p,p]),(F(m)||Tt(m))&&(m=[m,m]);var y=hM(n.get(["axisLine","symbolOffset"])||0,m),_=m[0],S=m[1];b([{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(T,w){if(p[w]!=="none"&&p[w]!=null){var x=Yh(p[w],-_/2,-S/2,_,S,v.stroke,!0),D=T.r+T.offset,M=c?h:f;x.attr({rotation:T.rotate,x:M[0]+D*Math.cos(e.rotation),y:M[1]-D*Math.sin(e.rotation),silent:!0,z2:11}),i.add(x)}})}}},axisTickLabelEstimate:function(e,t,r,n,i,a,o,s){var u=xp(t,i,s);u&&wp(e,t,r,n,i,a,o,xe.estimate)},axisTickLabelDetermine:function(e,t,r,n,i,a,o,s){var u=xp(t,i,s);u&&wp(e,t,r,n,i,a,o,xe.determine);var l=FL(e,i,a,n);NL(e,t.labelLayoutList,l),zL(e,i,a,n,e.tickDirection)},axisName:function(e,t,r,n,i,a,o,s){var u=r.ensureRecord(n);t.nameEl&&(i.remove(t.nameEl),t.nameEl=u.nameLayout=u.nameLocation=null);var l=e.axisName;if(oc(l)){var f=e.nameLocation,h=e.nameDirection,c=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),g=n.axis.inverse?-1:1,p=new ct(0,0),m=new ct(0,0);f==="start"?(p.x=d[0]-g*v,m.x=-g):f==="end"?(p.x=d[1]+g*v,m.x=g):(p.x=(d[0]+d[1])/2,p.y=e.labelOffset+h*v,m.y=h);var y=Be();m.transform(Kf(y,y,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*pr/180);var S,T;ii(f)?S=_r.innerTextLayout(e.rotation,_??e.rotation,h):(S=kL(e.rotation,f,_||0,d),T=e.raw.axisNameAvailableWidth,T!=null&&(T=Math.abs(T/Math.sin(S.rotation)),!isFinite(T)&&(T=null)));var w=c.getFont(),x=n.get("nameTruncate",!0)||{},D=x.ellipsis,M=Vo(e.raw.nameTruncateMaxWidth,x.maxWidth,T),C=s.nameMarginLevel||0,A=new ie({x:p.x,y:p.y,rotation:S.rotation,silent:_r.isLabelSilent(n),style:ei(c,{text:l,font:w,overflow:"truncate",width:M,ellipsis:D,fill:c.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Ns({el:A,componentModel:n,itemName:l}),A.__fullText=l,A.anid="name",n.get("triggerEvent")){var I=_r.makeAxisEventDataBase(n);I.targetType="axisName",I.name=l,yt(A).eventData=I}a.add(A),A.updateTransform(),t.nameEl=A;var L=u.nameLayout=Cr({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:ii(f)?IL[C]:PL[C]});if(u.nameLocation=f,i.add(A),A.decomposeTransform(),e.shouldNameMoveOverlap&&L){var P=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,L,m,P)}}}};function wp(e,t,r,n,i,a,o,s){q0(t)||HL(e,t,i,s,n,o);var u=t.labelLayoutList;VL(e,n,u,a),e.rotation;var l=e.optionHideOverlap;BL(n,u,l),l&&YA(kt(u,function(f){return f&&!f.label.ignore})),EL(e,r,n,u)}function kL(e,t,r,n){var i=Rg(r-e),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Ko(i-pr/2)?(o=u?"bottom":"top",a="center"):Ko(i-pr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<pr*1.5&&i>pr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function BL(e,t,r){var n=e.axis,i=e.get(["axisLabel","customValues"]);if(QD(n))return;function a(l,f,h){var c=Cr(t[f]),v=Cr(t[h]),d=n.scale;if(!(!c||!v)){if(l==null){if(!r&&i)return;var g=ai(c.label).labelInfo.tick;if(tc(d)&&g.notNice||Xe(d)&&g.offInterval){kn(c.label);return}}if(l===!1||c.suggestIgnore){kn(c.label);return}if(v.suggestIgnore){kn(v.label);return}var p=.1;if(!r){var m=[0,0,0,0];c=vp({marginForce:m},c),v=vp({marginForce:m},v)}ac(c,v,null,{touchThreshold:p})&&kn(l?v.label:c.label)}}var o=e.get(["axisLabel","showMinLabel"]),s=e.get(["axisLabel","showMaxLabel"]),u=t.length;a(o,0,1),a(s,u-1,u-2)}function NL(e,t,r){e.showMinorTicks||b(t,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=U0(a),s=ai(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){kn(a);return}}})}function kn(e){e&&(e.ignore=!0)}function $0(e,t,r,n,i){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&&(ye(o,o,t),ye(s,s,t));var f=new xr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});aa(f.shape,f.style.lineWidth),f.anid=i+"_"+e[u].tickValue,a.push(f);var h=U0(f);h.onBand=!!e[u].onBand,h.tickValue=e[u].tickValue}return a}function FL(e,t,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),u=e.tickDirection*a.get("length"),l=i.getTicksCoords(),f=$0(l,r.transform,u,pt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function zL(e,t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var u=o.getModel("lineStyle"),l=i*o.get("length"),f=pt(u.getLineStyle(),pt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=$0(s[h],r.transform,l,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function xp(e,t,r){if(q0(e)){var n=e.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),Rf(e,null,null,null))}return!0}function HL(e,t,r,n,i,a){var o=i.axis,s=Vo(e.raw.axisLabelShow,i.get(["axisLabel","show"])),u=new re;r.add(u);var l=ds(n);if(!s||o.scale.isBlank()){Rf(t,[],u,l);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(l),c=(Vo(e.raw.labelRotate,f.get("rotate"))||0)*pr/180,v=_r.innerTextLayout(e.rotation,c,e.labelDirection),d=i.getCategories&&i.getCategories(!0),g=[],p=i.get("triggerEvent"),m=1/0,y=-1/0;b(h,function(S,T){var w,x=S.tick,D=S.formattedLabel,M=S.rawLabel,C=f,A=$s(o.scale,x);if(d&&d[A]){var I=d[A];H(I)&&I.textStyle&&(C=new St(I.textStyle,f,i.ecModel))}var L=C.getTextColor()||i.get(["axisLine","lineStyle","color"]),P=C.getShallow("align",!0)||v.textAlign,E=G(C.getShallow("alignMinLabel",!0),P),R=G(C.getShallow("alignMaxLabel",!0),P),N=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||v.textVerticalAlign,X=G(C.getShallow("verticalAlignMinLabel",!0),N),$=G(C.getShallow("verticalAlignMaxLabel",!0),N),J=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);m=Math.min(m,J),y=Math.max(y,J);var q=new ie({x:0,y:0,rotation:0,silent:_r.isLabelSilent(i),z2:J,style:ei(C,{text:D,align:T===0?E:T===h.length-1?R:P,verticalAlign:T===0?X:T===h.length-1?$:N,fill:j(L)?L(o.type==="category"?M:o.type==="value"?A+"":A,T):L})});q.anid="label_"+A;var tt=ai(q);if(tt.labelInfo=S,tt.layoutRotation=v.rotation,Ns({el:q,componentModel:i,itemName:D,formatterParamsExtra:{isTruncated:function(){return q.isTruncated},value:M,tickIndex:T}}),p){var et=_r.makeAxisEventDataBase(i);et.targetType="axisLabel",et.value=M,et.tickIndex=T;var V=S.tick.break;if(V){var it=V.parsedBreak;et.break={start:it.vmin,end:it.vmax}}o.type==="category"&&(et.dataIndex=A),yt(q).eventData=et,V&&UL(i,a,q,V)}g.push(q),u.add(q)});var _=Y(g,function(S){return{label:S,priority:ai(S).labelInfo.tick.break?S.z2+(y-m+1):S.z2,defaultAttr:{ignore:S.ignore}}});Rf(t,_,u,l)}function q0(e){return!!e.labelLayoutList}function Rf(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function VL(e,t,r,n){var i=t.get(["axisLabel","margin"]);b(r,function(a,o){var s=Cr(a);if(s){var u=s.label,l=ai(u);s.suggestIgnore=u.ignore,u.ignore=!1,qo(Qe,GL);var f=t.axis;Qe.x=f.dataToCoord($s(f.scale,l.labelInfo.tick)),Qe.y=e.labelOffset+e.labelDirection*i,Qe.rotation=l.layoutRotation,n.add(Qe),Qe.updateTransform(),n.remove(Qe),Qe.decomposeTransform(),qo(u,Qe),u.markRedraw(),ms(s,!0),Cr(s)}})}var Qe=new Mt,GL=new Mt;function oc(e){return!!e}function UL(e,t,r,n){r.on("click",function(i){var a={type:LL,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function ys(e,t,r){r=r||{};var n=t.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,u=n.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])}i.position=[u==="y"?c[f[s]]:l[0],u==="x"?c[f[s]]:l[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?c[f[o]]-c[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Vo(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-g:g,i.z2=1,i}function lP(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function WL(e){var t={xAxisModel:null,yAxisModel:null};return b(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,pe).models[0];t[n]=a}),t}function YL(e,t,r,n,i,a){for(var o=ys(e,r),s=!1,u=!1,l=0;l<t.length;l++)l0(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 _r(r,n,o,i)}function XL(e,t,r){var n=ys(t,r);e.updateCfg(n)}var K0={left:0,right:0,top:0,bottom:0},_s=["25%","25%"],Fo="cartesian2d",ZL=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var i=Da(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&br(r.outerBounds,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&br(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:K0,outerBoundsContain:"all",outerBoundsClampWidth:_s[0],outerBoundsClampHeight:_s[1],backgroundColor:U.color.transparent,borderWidth:1,borderColor:U.color.neutral30},t})(ft),Of=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",pe).models[0]},t.type="cartesian2dAxis",t})(ft);We(Of,tA);var Q0={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:"auto",onZeroAxisIndex:null,lineStyle:{color:U.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:U.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:U.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[U.color.backgroundTint,U.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:U.color.neutral00,borderColor:U.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},$L=lt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Q0),sc=lt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:U.color.axisMinorSplitLine,width:1}}},Q0),qL=lt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},sc),KL=pt({logBase:10},sc);const QL={category:$L,value:sc,time:qL,log:KL};function bp(e,t,r,n){b(p0,function(i,a){var o=lt(lt({},QL[a],!0),n,!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=ua(this),v=c?Da(f):{},d=h.getTheme();lt(f,d.get(a+"Axis")),lt(f,this.getDefaultOption()),f.type=Cp(f),c&&br(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Mf.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){return{breaks:[]}},l.type=t+"Axis."+a,l.defaultOption=o,l})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Cp)}function Cp(e){return e.type||(e.data?"category":"value")}var jL=(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 Y(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),kt(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})(),zo=["x","y"];function Mp(e){return(e.type==="interval"||e.type==="time")&&!ns(e)}var JL=(function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Fo,r.dimensions=zo,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Mp(r)||!Mp(n))){var i=hs(r,null),a=hs(n,null),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[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]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=ya([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.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,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new Z(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ye(i,r,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(r[0]),l=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return ye(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,u=Math.max(i[0],i[1])-o+r;return new Z(a,o,s,u)},t})(jL);function tI(e,t){var r=e.scale,n=e.model,i=A0(r,n,n.ecModel,e),a=ni(r),o=ni(t)?t.intervalStub:t,s=a?r.intervalStub:r,u=r.base,l=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),h=l.length-1,c,v,d;if(h===1)c=v=0,d=1;else if(h===2){var g=Lt(l[0].value-l[1].value),p=Lt(l[1].value-l[2].value);c=v=0,g===p?d=2:(d=1,g<p?c=g/p:v=p/g)}else{var m=o.getConfig().interval;c=(1-(l[0].value-f[0].value)/m)%1,v=(1-(f[h].value-l[h].value)/m)%1,d=h-(c?1:0)-(v?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],S=[i.fixMM[0]||_,i.fixMM[1]||_],T=r.getExtent(),w=s.getExtent(),x=f0(w,S),D,M,C,A,I,L;function P(tt){for(var et=50,V=0;V<et&&!tt();V++)C=a?C*ht(u,2):ED(C),A=cn(C)}function E(){D=at(L-C*c,A)}function R(){M=at(I+C*v,A)}function N(){L=c?at(D+C*c,A):D}function X(){I=v?at(M-C*v,A):M}if(S[0]&&S[1]){D=x[0],M=x[1],C=(M-D)/(d+c+v);var $=e.getExtent(),J=Lt($[1]-$[0]);A=yS([M,D],J,.5/d),N(),X(),Ge(A)&&(C=at(C,A))}else{var q=x[1]-x[0];C=a?ht(Og(q),1):Jf(q/d,kg),A=cn(C),S[0]?(D=x[0],P(function(){if(N(),I=at(L+C*d,A),R(),M>=x[1])return!0})):S[1]?(M=x[1],P(function(){if(X(),L=at(I-C*d,A),E(),D<=x[0])return!0})):P(function(){L=at(Ta(x[0]/C)*C,A),I=at(ln(x[1]/C)*C,A);var tt=er((I-L)/C);if(tt<=d){var et=d-tt,V=void 0,it=i.incl0||a;if(it&&x[0]===0)V=[0,et];else if(it&&x[1]===0)V=[et,0];else{var ut=ln(et/2);V=et%2===0?[ut,ut]:D+M<x[0]+x[1]?[ut,ut+1]:[ut+1,ut]}if(L=at(L-C*V[0],A),I=at(I+C*V[1],A),E(),R(),D<=x[0]&&M>=x[1])return!0}})}m0(r,S,w,[D,M],T,{interval:C,intervalCount:d,intervalPrecision:A,niceExtent:[L,I]})}var Dp=[[3,1],[0,2]],eI=(function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zo,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;b(this._axesList,function(o){vA(o,lA);var s=o.scale;Xe(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=gt(o),u=[],l=s.length-1;l>=0;l--){var f=o[+s[l]];f.__alignTo?u.push(f):up(f)}b(u,function(h){nI(h,h.__alignTo)?up(h):tI(h,h.__alignTo.scale)})}i(n.x),i(n.y);var a={};b(n.x,function(o){Ap(n,"y",o,a)}),b(n.y,function(o){Ap(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=Nh(t,r),a=this._rect=fn(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,u=t.get("containLabel");if(j0(o,a),!n){var l=aI(a,s,o,u,r),f=void 0;if(u)f=Ep(a.clone(),"axisLabel",null,a,o,l,i);else{var h=oI(t,a,i),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=Ep(c,v,d,a,o,l,i))}J0(a,o,xe.determine,null,f,i),b(this._coordsList,function(g){g.calcAffineTransform()})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}H(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",pe).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",pe).models[0],a=t.gridModel,o=this._coordsList,s,u;if(r)s=r.coordinateSystem,st(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(i)u=this.getAxis("y",i.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,n){var i=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,b(s.x,function(f,h){b(s.y,function(c,v){var d="x"+h+"y"+v,g=new JL(d);g.master=i,g.model=t,i._coordsMap[d]=g,i._coordsList.push(g),g.addAxis(f),g.addAxis(c)})}),Ip(s.x),Ip(s.y);function l(f){return function(h,c){if(rI(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=WD(h),g=new ML(f,YD(h,d),[0,0],d,v);g.onBand=y0(g.scale,h),g.inverse=h.get("inverse"),h.axis=g,g.model=h,g.grid=a,g.index=c,a._axesList.push(g),s[f][c]=g,u[f]++}}}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return b(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);st(r,a)<0&&r.push(a),st(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o),b(o._axesList,function(s){cA(s,e.dimIdxMap)})}),t.eachSeries(function(i){var a,o;tb({targetModel:i,coordSysType:Fo,coordSysProvider:s});function s(){var u=WL(i),l=u.xAxisModel,f=u.yAxisModel;a=l.axis,o=f.axis;var h=l.getCoordSysModel(),c=h.coordinateSystem;return c.getCartesian(l.componentIndex,f.componentIndex)}a&&o&&(ip(a,i,Fo),ip(o,i,Fo))},this),n},e.dimensions=zo,e.dimIdxMap=jh(zo),e})();function rI(e,t){return e.getCoordSysModel()===t}function Ap(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Lp(s,i[u])&&(a=i[u]);else for(var l in i)if(qt(i,l)&&Lp(s,i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Lp(e,t){if(!t)return!1;var r=t.scale,n=XD(r,0),i=t&&t.type!=="category"&&t.type!=="time"&&n!==Df;return i&&e==="auto"&&KD(t)&&(i=!1),i}function Ip(e){for(var t=gt(e),r,n=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];l0(a.scale)&&JD(a.model,a.type)==null&&(a.model.get("alignTicks")&&a.model.get("interval")==null?n.push(a):r=a)}r||(r=n.pop()),r&&b(n,function(o){o.__alignTo=r})}function nI(e,t){return ns(e.scale)||ns(t.scale)||t.scale.getTicks().length<2}function iI(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}function j0(e,t){b(e.x,function(r){return Pp(r,t.x,t.width)}),b(e.y,function(r){return Pp(r,t.y,t.height)})}function Pp(e,t,r){var n=[0,r],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),iI(e,t)}function Ep(e,t,r,n,i,a,o){J0(n,i,xe.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),f(n,0,NaN),f(n,1,NaN);var u=z_(s,function(c){return c>0})==null;return es(n,s,!0,!0,r),j0(i,n),u;function l(c){b(i[cr[c]],function(v){if(da(v.model)){var d=a.ensureRecord(v.model),g=d.labelInfoList;if(g)for(var p=0;p<g.length;p++){var m=g[p],y=v.scale.normalize($s(v.scale,ai(m.label).labelInfo.tick));y=c===1?1-y:y,f(m.rect,c,y),f(m.rect,1-c,NaN)}var _=d.nameLayout;if(_){var y=ii(d.nameLocation)?.5:NaN;f(_.rect,c,y),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var g=e[cr[v]]-c[cr[v]],p=c[ti[v]]+c[cr[v]]-(e[ti[v]]+e[cr[v]]);g=h(g,1-d),p=h(p,d);var m=Dp[v][0],y=Dp[v][1];s[m]=ht(s[m],g),s[y]=ht(s[y],p)}function h(c,v){return c>0&&!ea(v)&&v>1e-4&&(c/=v),c}}function aI(e,t,r,n,i){var a=new W0(sI);return b(r,function(o){return b(o,function(s){if(da(s.model)){var u=!n;s.axisBuilder=YL(e,t,s.model,i,a,u)}})}),a}function J0(e,t,r,n,i,a){var o=r===xe.determine;b(t,function(l){return b(l,function(f){da(f.model)&&(XL(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};u(0),u(1);function u(l){s[cr[1-l]]=e[ti[l]]<=a.refContainer[ti[l]]*.5?0:1-l===1?2:1}b(t,function(l,f){return b(l,function(h){da(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function oI(e,t,r){var n,i=e.get("outerBoundsMode",!0);i==="same"?n=t.clone():(i==null||i==="auto")&&(n=fn(e.get("outerBounds",!0)||K0,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||st(["all","axisLabel"],a)<0?o="all":o=a;var s=[Wl(G(e.get("outerBoundsClampWidth",!0),_s[0]),t.width),Wl(G(e.get("outerBoundsClampHeight",!0),_s[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var sI=function(e,t,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";Y0(e,t,r,n,i,a),ii(e.nameLocation)||b(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Z0(s.labelInfoList,s.dirVec,n,i)})};function uI(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return lI(r,e,t),r.seriesInvolved&&hI(r,e),r}function lI(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];b(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=pa(s.model),l=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",n);if(b(s.getAxes(),Ct(g,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&b(d.baseAxes,Ct(g,v?"cross":!0,c)),v&&b(d.otherAxes,Ct(g,"cross",!1))}function g(p,m,y){var _=y.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!p&&!kf(_))){m==null&&(m=_.get("triggerTooltip")),_=p?fI(y,h,i,t,p,m):_;var T=_.get("snap"),w=_.get("triggerEmphasis"),x=pa(y.model),D=m||T||y.type==="category",M=e.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:w,involveSeries:D,snap:T,useHandle:kf(_),seriesModels:[],linkGroup:null};l[x]=M,e.seriesInvolved=e.seriesInvolved||D;var C=cI(a,y);if(C!=null){var A=o[C]||(o[C]={axesInfo:{}});A.axesInfo[x]=M,A.mapper=a[C].mapper,M.linkGroup=A}}}})}function fI(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};b(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),i==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&pt(l,h.textStyle)}}return e.model.getModel("axisPointer",new St(u,r,n))}function hI(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||b(e.coordSysAxesInfo[pa(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function cI(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(vl(a[n+"AxisId"],r.id)||vl(a[n+"AxisIndex"],r.componentIndex)||vl(a[n+"AxisName"],r.name))return i}}function vl(e,t){return e==="all"||B(e)&&st(e,t)>=0||e===t}function vI(e){var t=uc(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=kf(r);a==null&&(i.status=s?"show":"hide");var u=n.getExtent();(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function uc(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[pa(e)]}function dI(e){var t=uc(e);return t&&t.axisPointerModel}function kf(e){return!!e.get(["handle","show"])}function pa(e){return e.type+"||"+e.id}var Rp={},t_=(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,n,i,a){this.axisPointerClass&&vI(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=dI(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){Rp[r]=n},t.getAxisPointerClass=function(r){return r&&Rp[r]},t.type="axis",t})(Ue),Bf=vt();function pI(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(l.length){var f=s.length,h=Bf(e).splitAreaColors,c=W(),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 p=i.toGlobalCoord(l[0].coord),m=o.getAreaStyle();s=B(s)?s:[s];for(var d=1;d<l.length;d++){var y=i.toGlobalCoord(l[d].coord),_=void 0,S=void 0,T=void 0,w=void 0;i.isHorizontal()?(_=p,S=u.y,T=y-_,w=u.height,p=_+T):(_=u.x,S=p,T=u.width,w=y-S,p=S+w);var x=l[d-1].tickValue;x!=null&&c.set(x,v),t.add(new Mt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:T,height:w},style:pt({fill:s[v]},m),autoBatch:!0,silent:!0})),v=(v+1)%f}Bf(e).splitAreaColors=c}}}function gI(e){Bf(e).splitAreaColors=null}var mI=["splitArea","splitLine","minorSplitLine","breakArea"],e_=(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,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new re,this.group.add(this._axisGroup),!!da(r)){this._axisGroup.add(r.axis.axisBuilder.group),b(mI,function(u){r.get([u,"show"])&&yI[u](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||Lm(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){gI(this)},t.type="cartesianAxis",t})(t_),yI={splitLine:function(e,t,r,n,i){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=n.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],p=[],m=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,p[0]=_,p[1]=h.y+h.height):(g[0]=h.x,g[1]=_,p[0]=h.x+h.width,p[1]=_);var T=v++%u.length,w=new xr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:p[0],y2:p[1]},style:pt({stroke:u[T]},m),silent:!0});aa(w.shape,m.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),u=n.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 p=a.toGlobalCoord(f[d][g].coord);l?(h[0]=p,h[1]=u.y,c[0]=p,c[1]=u.y+u.height):(h[0]=u.x,h[1]=p,c[0]=u.x+u.width,c[1]=p);var m=new xr({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});aa(m.shape,v.lineWidth),t.add(m)}},splitArea:function(e,t,r,n,i){pI(e,t,r,n)},breakArea:function(e,t,r,n,i){r.axis.scale}},r_=(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})(e_),_I=(function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=r_.type,r}return t.type="yAxis",t})(e_),SI=(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,n){this.group.removeAll(),r.get("show")&&this.group.add(new Mt({shape:r.coordinateSystem.getRect(),style:pt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Ue),Op={offset:0};function TI(e){e.registerComponentView(SI),e.registerComponentModel(ZL),e.registerCoordinateSystem("cartesian2d",eI),bp(e,"x",Of,Op),bp(e,"y",Of,Op),e.registerComponentView(r_),e.registerComponentView(_I),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Qr=vt(),kp=rt,dl=_t,wI=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&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,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new re,this.createPointerEl(s,l,t,r),this.createLabelEl(s,l,t,r),n.getZr().add(s);else{var c=Ct(Bp,r,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,r)}Fp(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 n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&qs(i).w>s)return!0;if(o){var u=uc(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Qr(t).pointerEl=new yx[a.type](kp(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Qr(t).labelEl=new ie(kp(r.label));t.add(a),Np(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Qr(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Qr(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Np(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Sh(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){lg(l.event)},onmousedown:dl(this._onHandleDragMove,this,0,0),drift:dl(this._onHandleDragMove,this),ondragend:dl(this._onHandleDragEnd,this)}),n.add(i)),Fp(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");B(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,Cy(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Bp(this._axisPointerModel,!r&&this._moveAnimation,this._handle,pl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(pl(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(pl(i)),Qr(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.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(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),pf(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e})();function Bp(e,t,r,n){n_(Qr(r).lastProp,n)||(Qr(r).lastProp=n,t?Ma(r,n,e):(r.stopAnimation(),r.attr(n)))}function n_(e,t){if(H(e)&&H(t)){var r=!0;return b(t,function(n,i){r=r&&n_(e[i],n)}),!!r}else return e===t}function Np(e,t){e[t.get(["label","show"])?"show":"hide"]()}function pl(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Fp(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function xI(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function bI(e,t,r,n,i){var a=r.get("value"),o=i_(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),u=Gs(s.get("padding")||0),l=s.getFont(),f=Dg(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),CI(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:ei(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function CI(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-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 i_(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:vs(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};b(n,function(u){var l=r.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),F(o)?a=o.replace("{value}",a):j(o)&&(a=o(s))}return a}function a_(e,t,r){var n=Be();return Kf(n,n,r.rotation),Al(n,n,r.position),_h([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function MI(e,t,r,n,i,a){var o=_r.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),bI(t,n,i,a,{position:a_(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function DI(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function AI(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function LI(e,t,r){return qs(e,{fromStat:{sers:Y(t,function(n){return r.getSeriesByIndex(n.seriesIndex)})},min:1}).w}function II(e,t,r){return[ht(ne(t[0],t[1]),e-r/2),ne(e+r/2,ht(t[0],t[1]))]}var PI=(function(e){z(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=s.getGlobalExtent(),h=zp(u,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var v=xI(a),d=EI[l](s,c,f,h,a.get("seriesDataIndices"),a.ecModel);d.style=v,r.graphicKey=d.type,r.pointer=d}var g=ys(u.getRect(),i);MI(n,r,g,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=ys(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=a_(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=zp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=ne(u[1],h[f]),h[f]=ht(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})(wI);function zp(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var EI={line:function(e,t,r,n){var i=DI([t,n[0]],[t,n[1]],Hp(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,r,n,i,a){var o=LI(e,i,a),s=n[1]-n[0],u=II(t,r,o),l=u[0],f=u[1];return{type:"Rect",shape:AI([l,n[0]],[f-l,s],Hp(e))}}};function Hp(e){return e.dim==="x"?0:1}var RI=(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:U.color.border,width:1,type:"dashed"},shadowStyle:{color:U.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:U.color.neutral00,padding:[5,7,5,7],backgroundColor:U.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:U.color.accent40,throttle:40}},t})(ft),Je=vt(),OI=b;function o_(e,t,r){if(!K.node){var n=t.getZr();Je(n).records||(Je(n).records={}),kI(n,t);var i=Je(n).records[e]||(Je(n).records[e]={});i.handler=r}}function kI(e,t){if(Je(e).initialized)return;Je(e).initialized=!0,r("click",Ct(gl,"click")),r("mousemove",Ct(gl,"mousemove")),r("mousewheel",Ct(gl,"mousewheel")),r("globalout",NI);function r(n,i){e.on(n,function(a){var o=FI(t);OI(Je(e).records,function(s){s&&i(s,a,o.dispatchAction)}),BI(o.pendings,t)})}}function BI(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function NI(e,t,r){e.handler("leave",null,r)}function gl(e,t,r,n){t.handler(e,r,n)}function FI(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Nf(e,t){if(!K.node){var r=t.getZr(),n=(Je(r).records||{})[e];n&&(Je(r).records[e]=null)}}var zI=(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,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click|mousewheel";o_("axisPointer",i,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,n){Nf("axisPointer",n)},t.prototype.dispose=function(r,n){Nf("axisPointer",n)},t.type="axisPointer",t})(Ue);function s_(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=xa(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.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(Y(u.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Vp=vt();function HI(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Ho(i)&&(i=s_({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=Ho(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||Ho(i),c={},v={},d={list:[],map:{}},g={showPointer:Ct(GI,v),showTooltip:Ct(UI,d)};b(s.coordSysMap,function(m,y){var _=u||m.containPoint(i);b(s.coordSysAxesInfo[y],function(S,T){var w=S.axis,x=ZI(l,S);if(!h&&_&&(!l||x)){var D=x&&x.value;D==null&&!u&&(D=w.pointToData(i)),D!=null&&Gp(S,D,g,!1,c)}})});var p={};return b(f,function(m,y){var _=m.linkGroup;_&&!v[y]&&b(_.axesInfo,function(S,T){var w=v[T];if(S!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,Up(S),Up(m)))),p[m.key]=x}})}),b(p,function(m,y){Gp(f[y],m,g,!0,c)}),WI(v,f,c),YI(d,i,e,o),XI(f,o,r),c}}function Gp(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=VI(t,e),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&k(i,s[0]),!n&&e.snap&&a.containData(u)&&u!=null&&(t=u),r.showPointer(e,t,s),r.showTooltip(e,o,u)}}function VI(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return b(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,e,r);c=v.dataIndices,h=v.nestestValue}else{if(c=u.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(Ge(h)){var d=e-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,i=h,a.length=0),b(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function GI(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function UI(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=pa(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:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function WI(e,t,r){var n=r.axesInfo=[];b(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function YI(e,t,r,n){if(Ho(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function XI(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Vp(n)[i]||{},o=Vp(n)[i]={};b(e,function(f,h){var c=f.axisPointerModel.option;c.status==="show"&&f.triggerEmphasis&&b(c.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],u=[];function l(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}b(a,function(f,h){!o[h]&&u.push(l(f))}),b(o,function(f,h){!a[h]&&s.push(l(f))}),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 ZI(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Up(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Ho(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function u_(e){t_.registerAxisPointerClass("CartesianAxisPointer",PI),e.registerComponentModel(RI),e.registerComponentView(zI),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,{overallReset:function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=uI(t,r)}}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HI)}function fP(e){vn(TI),vn(u_)}function $I(e,t){var r=Gs(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var i=new Mt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var qI=(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|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:U.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:U.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:U.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:U.color.tertiary,fontSize:14}},t})(ft);function l_(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function f_(e){if(K.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var h_=f_(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),KI=f_(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function c_(e,t){if(!e)return t;t=qm(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function QI(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var jI=c_(KI,"transition"),lc=c_(h_,"transform"),JI="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(K.transform3dSupported?"will-change:transform;":"");function t2(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function e2(e,t,r){if(!F(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=sa(t);var a=t2(r),o=Math.max(Math.round(i)*1.5,6),s="",u=lc+":",l;st(["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+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function r2(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+e/2+"s "+n,a="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+n,a+=(a.length?",":"")+(K.transformSupported?""+lc+i:",left"+i+",top"+i)),jI+":"+a}function Wp(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!K.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=K.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+lc+":"+o+";":[["top",0],["left",0],[h_,o]]}function n2(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=G(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"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),b(["decoration","align"],function(l){var f=e.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function i2(e,t,r,n){var i=[],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=xy(e,"html"),v=l+"px "+f+"px "+s+"px "+u;return i.push("box-shadow:"+v),t&&a>0&&i.push(r2(a,r,n)),o&&i.push("background-color:"+o),b(["width","color","radius"],function(d){var g="border-"+d,p=qm(g),m=e.get(p);m!=null&&i.push(g+":"+m+(d==="color"?"":"px"))}),i.push(n2(h)),c!=null&&i.push("padding:"+Gs(c).join("px ")+"px"),i.join(";")+";"}function Yp(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&r1(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var a2=(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,K.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(F(a)?document.querySelector(a):ta(a)?a:j(a)&&a(t.getDom()));Yp(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();le(f,u,!0),l.dispatch("mousemove",u)}},n.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(),n=QI(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.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 n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=JI+i2(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Wp(a[0],a[1],!0)+("border-color:"+sa(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(F(a)&&n.get("trigger")==="item"&&!l_(n)&&(s=e2(n,i,a)),F(t))o.innerHTML=t+s;else if(t){o.innerHTML="",B(t)||(t=[t]);for(var u=0;u<t.length;u++)ta(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 n=this._styleCoord;if(Yp(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Wp(n[0],n[1]);b(a,function(o){i[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",K.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(_t(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;n1(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e})(),o2=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Zp(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,n,i,a){var o=this;H(t)&&Zt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new ie({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:xy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),b(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),b(["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(),n=Xp(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;Zp(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=hr(a.borderWidth||0),s=Xp(a);n.x=t+o+s.left,n.y=r+o+s.top,n.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(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function hr(e){return Math.max(0,e)}function Xp(e){var t=hr(e.shadowBlur||0),r=hr(e.shadowOffsetX||0),n=hr(e.shadowOffsetY||0);return{left:hr(t-r),right:hr(t+r),top:hr(t-n),bottom:hr(t+n)}}function Zp(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var s2=new Mt({shape:{x:-1,y:-1,width:2,height:2}}),u2=(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,n){if(!(K.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=zS(i.get("renderMode"));this._tooltipContent=a==="richText"?new o2(n):new a2(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(K.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Cy(this,"_updatePosition",50,"fixRate"):pf(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");o_("itemTooltip",this._api,_t(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(r.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||K.node||!i.getDom())){var o=$p(a,i);this._ticket="";var s=a.dataByCoordSys,u=c2(a,n,i);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=s2;f.x=a.x,f.y=a.y,f.update(),yt(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,n,i,a))return;var h=s_(a,n),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&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide($p(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),h=Li([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=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(i){var s=yt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var u,l;zi(i,function(f){if(f.tooltipDisabled)return u=l=null,!0;u||l||(yt(f).dataIndex!=null?u=f:yt(f).tooltipConfig!=null&&(l=f))},!0),u?this._showSeriesItemTooltip(r,u,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Li([n.tooltipOption],a),u=this._renderMode,l=[],f=fa("section",{blocks:[],noHeader:!0}),h=[],c=new qu;b(r,function(y){b(y.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),T=_.value,w=S.axis,x=w.scale.parse(T);if(!(!S||T==null)){var D=i_(T,w,i,_.seriesDataIndices,_.valueLabelOpt),M=fa("section",{header:D,noHeader:!Oe(D),sortBlocks:!0,blocks:[]});f.blocks.push(M),b(_.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),I=C.dataIndexInside,L=A.getDataParams(I);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=vs(S.axis,{value:x}),L.axisValueLabel=D,L.marker=c.makeTooltipMarker("item",sa(L.color),u);var P=fd(A.formatTooltip(I,!0,null)),E=P.frag;if(E){var R=Li([A],a).get("valueFormatter");M.blocks.push(R?k({valueFormatter:R},E):E)}P.text&&h.push(P.text),l.push(L)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=pd(f,c,u,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?`
`:"<br/>",m=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,m,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=yt(n),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=Li([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=l.getDataParams(f,h),y=new qu;m.marker=y.makeTooltipMarker("item",sa(m.color),v);var _=fd(l.formatTooltip(f,!1,h)),S=g.get("order"),T=g.get("valueFormatter"),w=_.frag,x=w?pd(T?k({valueFormatter:T},w):w,y,v,S,a.get("useUTC"),g.get("textStyle")):_.text,D="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,m,D,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=yt(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(F(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=rt(u),u.content=Yt(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=Li(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",m=new qu;this._showOrMove(d,function(){var y=rt(d.get("formatterParams")||{});this._showTooltipContent(d,g,y,p,r.offsetX,r.offsetY,r.position,n,m)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,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=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),g=d.color;if(c)if(F(c)){var p=r.ecModel.get("useUTC"),m=B(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;v=c,y&&(v=Vs(m.axisValue,v,p)),v=Km(v,i,!0)}else if(j(c)){var _=_t(function(S,T){S===this._ticket&&(h.setContent(T,f,r,g,u),this._updatePosition(r,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,r,g,u),h.show(r,g),this._updatePosition(r,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||B(n))return{color:a||o};if(!B(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||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),j(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),B(n))i=Bt(n[0],l),a=Bt(n[1],f);else if(H(n)){var g=n;g.width=h[0],g.height=h[1];var p=fn(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(F(n)&&u){var m=h2(n,d,h,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=l2(i,a,o,l,f,c?null:20,v?null:20);i=m[0],a=m[1]}if(c&&(i-=qp(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=qp(v)?h[1]/2:v==="bottom"?h[1]:0),l_(r)){var m=f2(i,a,o,l,f);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&b(i,function(s,u){var l=s.dataByAxis||[],f=r[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&b(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&b(g,function(m,y){var _=p[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&b(c.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],S=a[y];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){K.node||!n.getDom()||(pf(this,"_updatePosition"),this._tooltipContent.dispose(),Nf("itemTooltip",n),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t})(Ue);function Li(e,t,r){var n=t.ecModel,i;r?(i=new St(r,n,n),i=new St(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof St&&(o=o.get("tooltip",!0)),F(o)&&(o={formatter:o}),o&&(i=new St(o,i,n)))}return i}function $p(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function l2(e,t,r,n,i,a,o){var s=r.getSize(),u=s[0],l=s[1];return a!=null&&(e+u+a+2>n?e-=u+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function f2(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function h2(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(e){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-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 qp(e){return e==="center"||e==="middle"}function c2(e,t,r){var n=rh(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ba(t,i,n.get(i),{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=yt(l).tooltipConfig;if(f&&f.name===e.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function hP(e){vn(u_),e.registerComponentModel(qI),e.registerComponentView(u2),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nt)}var v2=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},Ff=(function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),B(n)&&b(n,function(a,o){F(a)&&(a={type:a}),n[o]=lt(a,v2(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();r.isSeriesFiltered(u)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&eh(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=W(),s=Y(a,function(u){return(F(u)||Tt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new St(u,this,this.ecModel))},this);this._data=kt(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;b(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;b(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;b(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&st(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:U.size.m,align:"auto",backgroundColor:U.color.transparent,borderColor:U.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:U.color.disabled,inactiveBorderColor:U.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:U.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:U.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:U.color.tertiary,borderWidth:1,borderColor:U.color.border},emphasis:{selectorLabel:{show:!0,color:U.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(ft),Rn=Ct,zf=b,mo=re,v_=(function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new mo),this.group.add(this._selectorGroup=new mo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var u=r.get("selector",!0),l=r.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,u,s,l);var f=Nh(r,i).refContainer,h=r.getBoxLayoutParams(),c=r.get("padding"),v=fn(h,f,c),d=this.layoutInner(r,o,v,a,u,l),g=fn(pt({width:d.width,height:d.height},h),f,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=$I(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this.getContentGroup(),f=W(),h=n.get("selectedMode"),c=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),zf(n.getData(),function(d,g){var p=this,m=d.get("name");if(!this.newlineDisabled&&(m===""||m===`
`)){var y=new mo;y.newline=!0,l.add(y);return}var _=i.getSeriesByName(m)[0];if(!f.get(m))if(_){var S=_.getData(),T=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),x=S.getVisual("style"),D=this._createItem(_,m,g,d,n,r,T,x,w,h,a);D.on("click",Rn(Kp,m,null,a,v)).on("mouseover",Rn(Hf,_.name,null,a,v)).on("mouseout",Rn(Vf,_.name,null,a,v)),i.ssr&&D.eachChild(function(M){var C=yt(M);C.seriesIndex=_.seriesIndex,C.dataIndex=g,C.ssrType="legend"}),c&&D.eachChild(function(M){p.packEventData(M,n,_,g,m)}),f.set(m,!0)}else i.eachRawSeries(function(M){var C=this;if(!f.get(m)&&M.legendVisualProvider){var A=M.legendVisualProvider;if(!A.containName(m))return;var I=A.indexOfName(m),L=A.getItemVisual(I,"style"),P=A.getItemVisual(I,"legendIcon"),E=Ne(L.fill);E&&E[3]===0&&(E[3]=.2,L=k(k({},L),{fill:_a(E,"rgba")}));var R=this._createItem(M,m,g,d,n,r,{},L,P,h,a);R.on("click",Rn(Kp,null,m,a,v)).on("mouseover",Rn(Hf,null,m,a,v)).on("mouseout",Rn(Vf,null,m,a,v)),i.ssr&&R.eachChild(function(N){var X=yt(N);X.seriesIndex=M.seriesIndex,X.dataIndex=g,X.ssrType="legend"}),c&&R.eachChild(function(N){C.packEventData(N,n,M,g,m)}),f.set(m,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};yt(r).eventData=s},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();zf(r,function(l){var f=l.type,h=new ie({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);_x(h,{normal:c,emphasis:v},{defaultText:l.title}),tf(h)})},t.prototype._createItem=function(r,n,i,a,o,s,u,l,f,h,c){var v=r.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=d2(f,a,u,l,v,p,c),T=new mo,w=a.getModel("textStyle");if(j(r.getLegendIcon)&&(!_||_==="inherit"))T.add(r.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;T.add(p2({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:y}))}var D=s==="left"?d+5:-5,M=s,C=o.get("formatter"),A=n;F(C)&&C?A=C.replace("{name}",n??""):j(C)&&(A=C(n));var I=p?w.getTextColor():a.get("inactiveColor");T.add(new ie({style:ei(w,{text:A,x:D,y:g/2,fill:I,align:M,verticalAlign:"middle"},{inheritColor:I})}));var L=new Mt({shape:T.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&Ns({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),T.add(L),T.eachChild(function(E){E.silent=!0}),L.silent=!h,this.getContentGroup().add(T),tf(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();qi(r.get("orient"),u,r.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){qi("horizontal",l,r.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",y=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[m]/2-c[m]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[m]=Math.max(f[m],c[m]),_[y]=Math.min(0,c[y]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Ue);function d2(e,t,r,n,i,a,o){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),zf(p,function(y,_){p[_]==="inherit"&&(p[_]=m[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:Sf(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:r).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,r),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function p2(e){var t=e.icon||"roundRect",r=Yh(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=U.color.neutral00,r.style.lineWidth=2),r}function Kp(e,t,r,n){Vf(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Hf(e,t,r,n)}function Hf(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Vf(e,t,r,n){r.usingTHL()||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function Ii(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),Qp(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){b(i,function(u,l){s[u?"select":"unSelect"](l)}),Qp(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Qp(e,t){var r=t||{};return b(e.getData(),function(n){var i=n.get("name");if(!(i===`
`||i==="")){var a=e.isSelected(i);qt(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function g2(e){e.registerAction("legendToggleSelect","legendselectchanged",Ct(Ii,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ct(Ii,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ct(Ii,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ct(Ii,"select")),e.registerAction("legendUnSelect","legendunselected",Ct(Ii,"unSelect"))}var m2=ih(y2);function y2(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function d_(e){e.registerComponentModel(Ff),e.registerComponentView(v_),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,m2),e.registerSubTypeDefaulter("legend",function(){return"plain"}),g2(e)}var _2=(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.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Da(r);e.prototype.init.call(this,r,n,i),jp(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),jp(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Rx(Ff.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:U.color.accent50,pageIconInactiveColor:U.color.accent10,pageIconSize:15,pageTextStyle:{color:U.color.tertiary},animationDurationUpdate:800}),t})(Ff);function jp(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,br(t,r,{type:"box",ignoreSize:!!i})}var Jp=re,ml=["width","height"],yl=["x","y"],S2=(function(e){z(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Jp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Jp)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,u){var l=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,u);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=B(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new ie({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var m=g+"DataIndex",y=Sh(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:_t(l._pageGo,l,m,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=g,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var u=this.getSelectorGroup(),l=r.getOrient().index,f=ml[l],h=yl[l],c=ml[1-l],v=yl[1-l];o&&qi("horizontal",u,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),g=u.getBoundingRect(),p=[-g.x,-g.y],m=rt(i);o&&(m[f]=i[f]-g[f]-d);var y=this._layoutContentAndController(r,a,m,l,f,c,v,h);if(o){if(s==="end")p[l]+=y[f]+d;else{var _=g[f]+d;p[l]-=_,y[h]-=_}y[f]+=g[f]+d,p[1-l]+=y[v]+y[c]/2-g[c]/2,y[c]=Math.max(y[c],g[c]),y[v]=Math.min(y[v],g[v]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;qi(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),qi("horizontal",c,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var m=[0,0],y=[-d.x,-d.y],_=G(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var S=r.get("pageButtonPosition",!0);S==="end"?y[a]+=i[o]-d[o]:m[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(m),c.setPosition(y);var T={x:0,y:0};if(T[o]=g?i[o]:v[o],T[s]=Math.max(v[s],d[s]),T[u]=Math.min(0,d[u]+y[1-a]),h.__rectSize=i[o],g){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=T[s],h.setClipPath(new Mt({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(D){D.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Ma(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?r:null),this._updatePageInfoView(r,x),T},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",F(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=ml[o],u=yl[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=l+1,m=g,y=g,_=null;p<=c;++p)_=S(f[p]),(!_&&y.e>m.s+a||_&&!T(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=m.i),++d.pageCount)),y=_;for(var p=l-1,m=g,y=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!T(y,_.s))&&m.i<y.i&&(y=m,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=m.i),++d.pageCount,++d.pageIndex),m=_;return d;function S(w){if(w){var x=w.getBoundingRect(),D=x[u]+w[u];return{s:D,e:D+x[s],i:w.__legendDataIndex}}}function T(w,x){return w.e>=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===r&&(n=s)}),n??a},t.type="legend.scroll",t})(v_);function T2(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function w2(e){vn(d_),e.registerComponentModel(_2),e.registerComponentView(S2),T2(e)}function cP(e){vn(d_),vn(w2)}export{B2 as $,np as A,Bt as B,Fo as C,wv as D,b as E,iP as F,qt as G,ne as H,ht as I,Y2 as J,hn as K,X2 as L,qS as M,Rx as N,U as O,ct as P,Ag as Q,Tt as R,wr as S,B as T,Y as U,Qn as V,Pm as W,Bs as X,Ma as Y,Jw as Z,z as _,ph as a,Jn as a$,xh as a0,re as a1,oP as a2,yt as a3,un as a4,Os as a5,Mt as a6,k as a7,N2 as a8,_x as a9,Gn as aA,U2 as aB,vn as aC,eP as aD,fP as aE,hP as aF,cP as aG,tP as aH,xr as aI,at as aJ,ei as aK,qT as aL,pn as aM,Yh as aN,z2 as aO,F as aP,j as aQ,A2 as aR,hD as aS,fD as aT,Kl as aU,Ql as aV,hM as aW,wm as aX,W2 as aY,Cm as aZ,H as a_,rP as aa,F2 as ab,nP as ac,O2 as ad,k2 as ae,sP as af,P2 as ag,mt as ah,Wh as ai,uP as aj,_t as ak,Ct as al,G2 as am,L2 as an,Jc as ao,vt as ap,H2 as aq,Z as ar,GA as as,J2 as at,E2 as au,V2 as av,xT as aw,qc as ax,rt as ay,ie as az,j_ as b,mg as b0,Vt as b1,sa as b2,xa as b3,R2 as b4,HS as b5,$s as b6,Uw as b7,wL as b8,xL as b9,Nh as bA,Da as bB,fn as bC,mf as bD,tf as bE,sx as bF,ux as bG,_h as bH,dh as bI,VS as ba,D2 as bb,Ee as bc,fi as bd,Nt as be,Em as bf,M2 as bg,lg as bh,Ye as bi,_S as bj,JC as bk,st as bl,lt as bm,I2 as bn,pe as bo,ft as bp,Ue as bq,WS as br,tc as bs,yS as bt,Ta as bu,ln as bv,vA as bw,Q2 as bx,Cy as by,pf as bz,q2 as c,pt as d,W as e,Eg as f,w0 as g,Xb as h,Ge as i,rA as j,Xe as k,C2 as l,qs as m,K2 as n,$2 as o,Yb as p,lP as q,G as r,_D as s,TL as t,aP as u,bC as v,YS as w,j2 as x,Z2 as y,Lt as z};