var r1=Object.defineProperty;var n1=(r,t,e)=>t in r?r1(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var $c=(r,t,e)=>n1(r,typeof t!="symbol"?t+"":t,e);import{d as dm,ab as xs,D as Ss,ac as i1,c as oi,ad as ws,k as va,ae as pm,v as gm,a0 as a1,a7 as Ns,U as o1,af as au,ag as s1,ah as l1,a8 as u1,j as f1,ai as qc}from"./JQJBiNWj.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 qf=function(r,t){return qf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},qf(r,t)};function F(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qf(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var h1=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),v1=function(){function r(){this.browser=new h1,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),it=new v1;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(it.wxa=!0,it.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?it.worker=!0:!it.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(it.node=!0,it.svgSupported=!0):c1(navigator.userAgent,it);function c1(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var mv=12,d1="sans-serif",Yr=mv+"px "+d1,p1=20,g1=100,y1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function m1(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-p1)/g1;t[n]=i}return t}var _1=m1(y1),mr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=mr.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||Yr),r.measureText(e);e=e||"",n=n||Yr;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||mv,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=_1[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},ym=_r(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),mm=_r(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),so=Object.prototype.toString,Rl=Array.prototype,x1=Rl.forEach,S1=Rl.filter,_v=Rl.slice,w1=Rl.map,Kc=(function(){}).constructor,So=Kc?Kc.prototype:null,xv="__proto__",b1=2311;function _m(){return b1++}function Sv(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function ut(r){if(r==null||typeof r!="object")return r;var t=r,e=so.call(r);if(e==="[object Array]"){if(!Ta(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=ut(r[n])}}else if(mm[e]){if(!Ta(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!ym[e]&&!Ta(r)&&!Fa(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==xv&&(t[o]=ut(r[o]))}return t}function ct(r,t,e){if(!Q(t)||!Q(r))return e?ut(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==xv){var i=r[n],a=t[n];Q(a)&&Q(i)&&!N(a)&&!N(i)&&!Fa(a)&&!Fa(i)&&!Qc(a)&&!Qc(i)&&!Ta(a)&&!Ta(i)?ct(i,a,e):(e||!(n in r))&&(r[n]=ut(t[n]))}return r}function O(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==xv&&(r[e]=t[e]);return r}function dt(r,t,e){for(var n=yt(t),i=0,a=n.length;i<a;i++){var o=n[i];r[o]==null&&(r[o]=t[o])}return r}function st(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function T1(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function ze(r,t,e){if(r="prototype"in r?r.prototype:r,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"&&r[a]==null&&(r[a]=t[a])}else dt(r,t)}function re(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,t,e){if(r&&t)if(r.forEach&&r.forEach===x1)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function $(r,t,e){if(!r)return[];if(!t)return wv(r);if(r.map&&r.map===w1)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function _r(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function kt(r,t,e){if(!r)return[];if(!t)return wv(r);if(r.filter&&r.filter===S1)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function C1(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function yt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function M1(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(_v.call(arguments)))}}var q=So&&rt(So.bind)?So.call.bind(So.bind):M1;function vt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(_v.call(arguments)))}}function N(r){return Array.isArray?Array.isArray(r):so.call(r)==="[object Array]"}function rt(r){return typeof r=="function"}function Z(r){return typeof r=="string"}function Kf(r){return so.call(r)==="[object String]"}function bt(r){return typeof r=="number"}function Q(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Qc(r){return!!ym[so.call(r)]}function se(r){return!!mm[so.call(r)]}function Fa(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function El(r){return r.colorStops!=null}function D1(r){return r.image!=null}function Va(r){return r!==r}function Si(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function J(r,t){return r??t}function zr(r,t,e){return r??t??e}function wv(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return _v.apply(r,t)}function kl(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Be(r,t){if(!r)throw new Error(t)}function Ke(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var xm="__ec_primitive__";function Qf(r){r[xm]=!0}function Ta(r){return r[xm]}var A1=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return yt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),Sm=typeof Map=="function";function L1(){return Sm?new Map:new A1}var I1=function(){function r(t){var e=N(t);this.data=L1();var n=this;t instanceof r?t.each(i):t&&T(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Sm?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function et(r){return new I1(r)}function P1(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function Ol(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&O(e,t),e}function wm(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function W(r,t){return r.hasOwnProperty(t)}function Yt(){}var R1=180/Math.PI;function Bi(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function E1(r){return[r[0],r[1]]}function jc(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function bm(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function k1(r){return Math.sqrt(O1(r))}function O1(r){return r[0]*r[0]+r[1]*r[1]}function ou(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function bv(r,t){var e=k1(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function jf(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Jf=jf;function B1(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var pi=B1;function su(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function Te(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function li(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function ui(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Gn=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),N1=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Gn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new Gn(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Gn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Gn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Gn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Gn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Fe=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}(),z1=Math.log(2);function th(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/z1);return r[e][l]}for(var u=n|1<<e,f=e+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)*r[e][c]*th(r,t-1,f,u,i|d,a),v++)}return a[o]=h,h}function Jc(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=th(e,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)*th(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var zs="___zrEVENTSAVED",lu=[];function F1(r,t,e,n,i){return eh(lu,t,n,i,!0)&&eh(r,e,lu[0],lu[1])}function V1(r,t){r&&e(r),t&&e(t);function e(n){var i=n[zs];i&&(i.clearMarkers&&i.clearMarkers(),delete n[zs])}}function eh(r,t,e,n,i){if(t.getBoundingClientRect&&it.domSupported&&!Tm(t)){var a=t[zs]||(t[zs]={}),o=H1(t,a),s=G1(o,a,i);if(s)return s(r,e,n),!0}return!1}function H1(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){T(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function G1(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?Jc(s,o):Jc(o,s))}function Tm(r){return r.nodeName.toUpperCase()==="CANVAS"}var W1=/([&<>"'])/g,U1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ie(r){return r==null?"":(r+"").replace(W1,function(t,e){return U1[e]})}var Y1=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,uu=[],X1=it.browser.firefox&&+it.browser.version.split(".")[0]<39;function rh(r,t,e,n){return e=e||{},n?td(r,t,e):X1&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):td(r,t,e),e}function td(r,t,e){if(it.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Tm(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(eh(uu,r,n,i)){e.zrX=uu[0],e.zrY=uu[1];return}}e.zrX=e.zrY=0}function Tv(r){return r||window.event}function ye(r,t,e){if(t=Tv(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&&rh(r,o,t,e)}else{rh(r,t,t,e);var a=Z1(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Y1.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Z1(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function $1(r,t,e,n){r.addEventListener(t,e,n)}function q1(r,t,e,n){r.removeEventListener(t,e,n)}var wi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function ed(r){return r.which===2||r.which===3}var K1=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=rh(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in fu)if(fu.hasOwnProperty(e)){var n=fu[e](this._track,t);if(n)return n}},r}();function rd(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Q1(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var fu={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=rd(n)/rd(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Q1(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Je(){return[1,0,0,1,0,0]}function Cv(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Cm(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ca(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Ha(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Mv(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function Mm(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function lo(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}var nt=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}(),Ln=Math.min,fi=Math.max,nh=Math.abs,nd=["x","y"],j1=["width","height"],en=new nt,rn=new nt,nn=new nt,an=new nt,le=Dm(),ca=le.minTv,ih=le.maxTv,Ma=[0,0],at=function(){function r(t,e,n,i){r.set(this,t,e,n,i)}return r.set=function(t,e,n,i,a){return i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),t.x=e,t.y=n,t.width=i,t.height=a,t},r.prototype.union=function(t){var e=Ln(t.x,this.x),n=Ln(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fi(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=fi(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=Je();return Ha(a,a,[-e.x,-e.y]),Mm(a,a,[n,i]),Ha(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e,n){return r.intersect(this,t,e,n)},r.intersect=function(t,e,n,i){n&&nt.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||!e)return!1;t instanceof r||(t=r.set(J1,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(tw,e.x,e.y,e.width,e.height));var s=!!n;le.reset(i,s);var l=le.touchThreshold,u=t.x+l,f=t.x+t.width-l,h=t.y+l,c=t.y+t.height-l,v=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||h>c||v>d||p>g)return!1;var y=!(f<v||d<u||c<p||g<h);return(s||a)&&(Ma[0]=1/0,Ma[1]=0,id(u,f,v,d,0,s,a,o),id(h,c,p,g,1,s,a,o),s&&nt.copy(n,y?le.useDir?le.dirMinTv:ca:ih)),y},r.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);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=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}en.x=nn.x=e.x,en.y=an.y=e.y,rn.x=an.x=e.x+e.width,rn.y=nn.y=e.y+e.height,en.transform(n),an.transform(n),rn.transform(n),nn.transform(n),t.x=Ln(en.x,rn.x,nn.x,an.x),t.y=Ln(en.y,rn.y,nn.y,an.y);var l=fi(en.x,rn.x,nn.x,an.x),u=fi(en.y,rn.y,nn.y,an.y);t.width=l-t.x,t.height=u-t.y},r}(),J1=new at(0,0,0,0),tw=new at(0,0,0,0);function id(r,t,e,n,i,a,o,s){var l=nh(t-e),u=nh(n-r),f=Ln(l,u),h=nd[i],c=nd[1-i],v=j1[i];t<e||n<r?l<u?(a&&(ih[h]=-l),s&&(o[h]=t,o[v]=0)):(a&&(ih[h]=u),s&&(o[h]=r,o[v]=0)):(o&&(o[h]=fi(r,e),o[v]=Ln(t,n)-o[h]),a&&(f<Ma[0]||le.useDir)&&(Ma[0]=Ln(f,Ma[0]),(l<u||!le.bidirectional)&&(ca[h]=l,ca[c]=0,le.useDir&&le.calcDirMTV()),(l>=u||!le.bidirectional)&&(ca[h]=-u,ca[c]=0,le.useDir&&le.calcDirMTV())))}function Dm(){var r=0,t=new nt,e=new nt,n={minTv:new nt,maxTv:new nt,useDir:!1,dirMinTv:new nt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=fi(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),e.copy(n.minTv),r=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(r),u=Math.cos(r),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,i(e.x)&&i(e.y)){o.set(0,0);return}(n.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function i(a){return nh(a)<1e-10}return n}var Am="silent";function ew(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:rw}}function rw(){wi(this.event)}var nw=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fe),Vi=function(){function r(t,e){this.x=t,this.y=e}return r}(),iw=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],hu=new at(0,0,0,0),Lm=function(r){F(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Vi(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new nw,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new N1(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(iw,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Im(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Vi(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Vi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];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(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=ew(n,e,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(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Vi(e,n);if(ad(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new at(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(hu.copy(c.getBoundingRect()),c.transform&&hu.applyTransform(c.transform),hu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(ad(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new K1);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Vi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Fe);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Lm.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=Im(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Jf(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function aw(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Am:!0}return!1}function ad(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=aw(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==Am)){t.target=o;break}}}function Im(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var Pm=32,Hi=7;function ow(r){for(var t=0;r>=Pm;)t|=r&1,r>>=1;return r+t}function od(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;sw(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function sw(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function sd(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function vu(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function cu(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function lw(r,t){var e=Hi,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){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 u(){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],p=i[v],g=n[v+1],y=i[v+1];i[v]=p+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=cu(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=vu(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?h(d,p,g,y):c(d,p,g,y)))}function h(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,x=v;if(r[x++]=r[_++],--g===0){for(y=0;y<d;y++)r[x+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[x+y]=r[_+y];r[x+g]=o[m];return}for(var S=e,w,b,C;;){w=0,b=0,C=!1;do if(t(r[_],o[m])<0){if(r[x++]=r[_++],b++,w=0,--g===0){C=!0;break}}else if(r[x++]=o[m++],w++,b=0,--d===1){C=!0;break}while((w|b)<S);if(C)break;do{if(w=cu(r[_],o,m,d,0,t),w!==0){for(y=0;y<w;y++)r[x+y]=o[m+y];if(x+=w,m+=w,d-=w,d<=1){C=!0;break}}if(r[x++]=r[_++],--g===0){C=!0;break}if(b=vu(o[m],r,_,g,0,t),b!==0){for(y=0;y<b;y++)r[x+y]=r[_+y];if(x+=b,_+=b,g-=b,g===0){C=!0;break}}if(r[x++]=o[m++],--d===1){C=!0;break}S--}while(w>=Hi||b>=Hi);if(C)break;S<0&&(S=0),S+=2}if(e=S,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[x+y]=r[_+y];r[x+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[x+y]=o[m+y]}}function c(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,x=p+g-1,S=0,w=0;if(r[x--]=r[m--],--d===0){for(S=x-(g-1),y=0;y<g;y++)r[S+y]=o[y];return}if(g===1){for(x-=d,m-=d,w=x+1,S=m+1,y=d-1;y>=0;y--)r[w+y]=r[S+y];r[x]=o[_];return}for(var b=e;;){var C=0,D=0,L=!1;do if(t(o[_],r[m])<0){if(r[x--]=r[m--],C++,D=0,--d===0){L=!0;break}}else if(r[x--]=o[_--],D++,C=0,--g===1){L=!0;break}while((C|D)<b);if(L)break;do{if(C=d-cu(o[_],r,v,d,d-1,t),C!==0){for(x-=C,m-=C,d-=C,w=x+1,S=m+1,y=C-1;y>=0;y--)r[w+y]=r[S+y];if(d===0){L=!0;break}}if(r[x--]=o[_--],--g===1){L=!0;break}if(D=g-vu(r[m],o,0,g,g-1,t),D!==0){for(x-=D,_-=D,g-=D,w=x+1,S=_+1,y=0;y<D;y++)r[w+y]=o[S+y];if(g<=1){L=!0;break}}if(r[x--]=r[m--],--d===0){L=!0;break}b--}while(C>=Hi||D>=Hi);if(L)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(x-=d,m-=d,w=x+1,S=m+1,y=d-1;y>=0;y--)r[w+y]=r[S+y];r[x]=o[_]}else{if(g===0)throw new Error;for(S=x-(g-1),y=0;y<g;y++)r[S+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function bs(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<Pm){a=od(r,e,n,t),sd(r,e,n,e+a,t);return}var o=lw(r,t),s=ow(i);do{if(a=od(r,e,n,t),a<s){var l=i;l>s&&(l=s),sd(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var tr=1,Ts=2,da=4,ld=!1;function du(){ld||(ld=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ud(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var uw=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ud}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,bs(n,ud)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||i)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=i,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.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|=tr),this._updateAndAddDisplayable(v,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(du(),d.z=0),isNaN(d.z2)&&(du(),d.z2=0),isNaN(d.zlevel)&&(du(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=st(this._roots,t);i>=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Fs;Fs=it.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Da={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Da.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Da.bounceIn(r*2)*.5:Da.bounceOut(r*2-1)*.5+.5}},wo=Math.pow,Fr=Math.sqrt,Rm=1e-8,Em=1e-4,fd=Fr(3),bo=1/3,$e=Bi(),xe=Bi(),gi=Bi();function Rr(r){return r>-1e-8&&r<Rm}function km(r){return r>Rm||r<-1e-8}function te(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function hd(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Om(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Rr(f)&&Rr(h))if(Rr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=h*h-4*f*c;if(Rr(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=Fr(p),_=f*s+1.5*o*(-h+m),x=f*s+1.5*o*(-h-m);_<0?_=-wo(-_,bo):_=wo(_,bo),x<0?x=-wo(-x,bo):x=wo(x,bo);var d=(-s-(_+x))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var S=(2*f*s-3*o*h)/(2*Fr(f*f*f)),w=Math.acos(S)/3,b=Fr(f),C=Math.cos(w),d=(-s-2*b*C)/(3*o),y=(-s+b*(C+fd*Math.sin(w)))/(3*o),D=(-s+b*(C-fd*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),D>=0&&D<=1&&(a[v++]=D)}}return v}function Bm(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Rr(o)){if(km(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Rr(f))i[0]=-a/(2*o);else if(f>0){var h=Fr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function Vs(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function fw(r,t,e,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,d,p,g,y;$e[0]=l,$e[1]=u;for(var m=0;m<1;m+=.05)xe[0]=te(r,e,i,o,m),xe[1]=te(t,n,a,s,m),g=pi($e,xe),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<Em);_++)d=h-c,p=h+c,xe[0]=te(r,e,i,o,d),xe[1]=te(t,n,a,s,d),g=pi(xe,$e),d>=0&&g<v?(h=d,v=g):(gi[0]=te(r,e,i,o,p),gi[1]=te(t,n,a,s,p),y=pi(gi,$e),p<=1&&y<v?(h=p,v=y):c*=.5);return Fr(v)}function hw(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,p=te(r,e,i,o,d),g=te(t,n,a,s,d),y=p-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=p,f=g}return h}function ae(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function vd(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function vw(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Rr(a)){if(km(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Rr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Fr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function Nm(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Hs(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function cw(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;$e[0]=o,$e[1]=s;for(var c=0;c<1;c+=.05){xe[0]=ae(r,e,i,c),xe[1]=ae(t,n,a,c);var v=pi($e,xe);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Em);d++){var p=u-f,g=u+f;xe[0]=ae(r,e,i,p),xe[1]=ae(t,n,a,p);var v=pi(xe,$e);if(p>=0&&v<h)u=p,h=v;else{gi[0]=ae(r,e,i,g),gi[1]=ae(t,n,a,g);var y=pi(gi,$e);g<=1&&y<h?(u=g,h=y):f*=.5}}return Fr(h)}function dw(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=ae(r,e,i,c),d=ae(t,n,a,c),p=v-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=v,l=d}return u}var pw=/cubic-bezier\(([0-9,\.e ]+)\)/;function zm(r){var t=r&&pw.exec(r);if(t){var e=t[1].split(","),n=+Ke(e[0]),i=+Ke(e[1]),a=+Ke(e[2]),o=+Ke(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Om(0,n,a,1,l,s)&&te(0,i,o,1,s[0])}}}var gw=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Yt,this.ondestroy=t.ondestroy||Yt,this.onrestart=t.onrestart||Yt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var 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 l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=rt(t)?t:Da[t]||zm(t)},r}(),Fm=function(){function r(t){this.value=t}return r}(),yw=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Fm(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),bi=function(){function r(t){this._list=new yw,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){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 l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Fm(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),cd={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 Vr(r){return r=Math.round(r),r<0?0:r>255?255:r}function mw(r){return r=Math.round(r),r<0?0:r>360?360:r}function Gs(r){return r<0?0:r>1?1:r}function pu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Vr(parseFloat(t)/100*255):Vr(parseInt(t,10))}function En(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Gs(parseFloat(t)/100):Gs(parseFloat(t))}function gu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function To(r,t,e){return r+(t-r)*e}function ge(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function ah(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Vm=new bi(20),Co=null;function Wn(r,t){Co&&ah(Co,t),Co=Vm.put(r,Co||t.slice())}function er(r,t){if(r){t=t||[];var e=Vm.get(r);if(e)return ah(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in cd)return ah(t,cd[n]),Wn(r,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)){ge(t,0,0,0,1);return}return ge(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),Wn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ge(t,0,0,0,1);return}return ge(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Wn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ge(t,+u[0],+u[1],+u[2],1):ge(t,0,0,0,1);f=En(u.pop());case"rgb":if(u.length>=3)return ge(t,pu(u[0]),pu(u[1]),pu(u[2]),u.length===3?f:En(u[3])),Wn(r,t),t;ge(t,0,0,0,1);return;case"hsla":if(u.length!==4){ge(t,0,0,0,1);return}return u[3]=En(u[3]),oh(u,t),Wn(r,t),t;case"hsl":if(u.length!==3){ge(t,0,0,0,1);return}return oh(u,t),Wn(r,t),t;default:return}}ge(t,0,0,0,1)}}function oh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=En(r[1]),i=En(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ge(t,Vr(gu(o,a,e+1/3)*255),Vr(gu(o,a,e)*255),Vr(gu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function _w(r){if(r){var t=r[0]/255,e=r[1]/255,n=r[2]/255,i=Math.min(t,e,n),a=Math.max(t,e,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-n)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function dd(r,t){var e=er(r);if(e){for(var n=0;n<3;n++)e[n]=e[n]*(1-t)|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return Gr(e,e.length===4?"rgba":"rgb")}}function yu(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return e[0]=Vr(To(o[0],s[0],l)),e[1]=Vr(To(o[1],s[1],l)),e[2]=Vr(To(o[2],s[2],l)),e[3]=Gs(To(o[3],s[3],l)),e}}function Hr(r,t,e,n){var i=er(r);if(r)return i=_w(i),t!=null&&(i[0]=mw(rt(t)?t(i[0]):t)),e!=null&&(i[1]=En(rt(e)?e(i[1]):e)),n!=null&&(i[2]=En(rt(n)?n(i[2]):n)),Gr(oh(i),"rgba")}function Hm(r,t){var e=er(r);if(e&&t!=null)return e[3]=Gs(t),Gr(e,"rgba")}function Gr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Ws(r,t){var e=er(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var pd=new bi(100);function gd(r){if(Z(r)){var t=pd.get(r);return t||(t=dd(r,-.1),pd.put(r,t)),t}else if(El(r)){var e=O({},r);return e.colorStops=$(r.colorStops,function(n){return{offset:n.offset,color:dd(n.color,-.1)}}),e}return r}function xw(r){return r.type==="linear"}function Sw(r){return r.type==="radial"}(function(){return it.hasGlobalWindow&&rt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var sh=Array.prototype.slice;function vr(r,t,e){return(t-r)*e+r}function mu(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=vr(t[a],e[a],n);return r}function ww(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=vr(t[o][s],e[o][s],n)}return r}function Mo(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function yd(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function bw(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function Tw(r,t,e){var n=r,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 l=a;l<o;l++)n.push(e===1?i[l]:sh.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(e===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Aa(r){if(re(r)){var t=r.length;if(re(r[0])){for(var e=[],n=0;n<t;n++)e.push(sh.call(r[n]));return e}return sh.call(r)}return r}function Cs(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function Cw(r){return re(r&&r[0])?2:1}var Do=0,Ms=1,Gm=2,pa=3,lh=4,uh=5,md=6;function _d(r){return r===lh||r===uh}function Ao(r){return r===Ms||r===Gm}var Gi=[0,0,0,0],Mw=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=md,l=e;if(re(e)){var u=Cw(e);s=u,(u===1&&!bt(e[0])||u===2&&!bt(e[0][0]))&&(o=!0)}else if(bt(e)&&!Va(e))s=Do;else if(Z(e))if(!isNaN(+e))s=Do;else{var f=er(e);f&&(l=f,s=pa)}else if(El(e)){var h=O({},l);h.colorStops=$(e.colorStops,function(v){return{offset:v.offset,color:er(v.color)}}),xw(e)?s=lh:Sw(e)&&(s=uh),l=h}a===0?this.valType=s:(s!==this.valType||s===md)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=rt(n)?n:Da[n]||zm(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ao(i),u=_d(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?Tw(c,v,i):u&&bw(c.colorStops,v.colorStops))}if(!s&&i!==uh&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===Do?n[f].additiveValue=n[f].value-d:i===pa?n[f].additiveValue=Mo([],n[f].value,d,-1):Ao(i)&&(n[f].additiveValue=i===Ms?Mo([],n[f].value,d,-1):yd([],n[f].value,d,-1))}},r.prototype.step=function(t,e){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,l=this.propName,u=a===pa,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=c(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:u?Gi:t[l];if((Ao(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(Ao(a))a===Ms?mu(m,v[i],d[i],y):ww(m,v[i],d[i],y);else if(_d(a)){var _=v[i],x=d[i],S=a===lh;t[l]={type:S?"linear":"radial",x:vr(_.x,x.x,y),y:vr(_.y,x.y,y),colorStops:$(_.colorStops,function(b,C){var D=x.colorStops[C];return{offset:vr(b.offset,D.offset,y),color:Cs(mu([],b.color,D.color,y))}}),global:x.global},S?(t[l].x2=vr(_.x2,x.x2,y),t[l].y2=vr(_.y2,x.y2,y)):t[l].r=vr(_.r,x.r,y)}else if(u)mu(m,v[i],d[i],y),n||(t[l]=Cs(m));else{var w=vr(v[i],d[i],y);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Do?t[n]=t[n]+i:e===pa?(er(t[n],Gi),Mo(Gi,Gi,i,1),t[n]=Cs(Gi)):e===Ms?Mo(t[n],t[n],i,1):e===Gm&&yd(t[n],t[n],i,1)},r}(),Dv=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Sv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,yt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new Mw(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===pa&&u&&(u=Cs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Aa(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Aa(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new gw({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,v);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return $(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){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()&&(e?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},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=Aa(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||yt(t);for(var n=0;n<e.length;n++){var i=e[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())}}}},r}();function hi(){return new Date().getTime()}var Dw=function(r){F(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=hi()-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,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Fs(n),!e._paused&&e.update())}Fs(n)},t.prototype.start=function(){this._running||(this._time=hi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=hi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=hi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Dv(e,n.loop);return this.addAnimator(i),i},t}(Fe),Aw=300,_u=it.domSupported,xu=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=$(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),xd={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Sd=!1;function fh(r){var t=r.pointerType;return t==="pen"||t==="touch"}function Lw(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Su(r){r&&(r.zrByTouch=!0)}function Iw(r,t){return ye(r.dom,new Pw(r,t),!0)}function Wm(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var Pw=function(){function r(t,e){this.stopPropagation=Yt,this.stopImmediatePropagation=Yt,this.preventDefault=Yt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ee={mousedown:function(r){r=ye(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ye(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ye(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ye(this.dom,r);var t=r.toElement||r.relatedTarget;Wm(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Sd=!0,r=ye(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Sd||(r=ye(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ye(this.dom,r),Su(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ee.mousemove.call(this,r),Ee.mousedown.call(this,r)},touchmove:function(r){r=ye(this.dom,r),Su(r),this.handler.processGesture(r,"change"),Ee.mousemove.call(this,r)},touchend:function(r){r=ye(this.dom,r),Su(r),this.handler.processGesture(r,"end"),Ee.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<Aw&&Ee.click.call(this,r)},pointerdown:function(r){Ee.mousedown.call(this,r)},pointermove:function(r){fh(r)||Ee.mousemove.call(this,r)},pointerup:function(r){Ee.mouseup.call(this,r)},pointerout:function(r){fh(r)||Ee.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){Ee[r]=function(t){t=ye(this.dom,t),this.trigger(r,t)}});var hh={pointermove:function(r){fh(r)||hh.mousemove.call(this,r)},pointerup:function(r){hh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function Rw(r,t){var e=t.domHandlers;it.pointerEventsSupported?T(xu.pointer,function(n){Ds(t,n,function(i){e[n].call(r,i)})}):(it.touchEventsSupported&&T(xu.touch,function(n){Ds(t,n,function(i){e[n].call(r,i),Lw(t)})}),T(xu.mouse,function(n){Ds(t,n,function(i){i=Tv(i),t.touching||e[n].call(r,i)})}))}function Ew(r,t){it.pointerEventsSupported?T(xd.pointer,e):it.touchEventsSupported||T(xd.mouse,e);function e(n){function i(a){a=Tv(a),Wm(r,a.target)||(a=Iw(r,a),t.domHandlers[n].call(r,a))}Ds(t,n,i,{capture:!0})}}function Ds(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,$1(r.domTarget,t,e,n)}function wu(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&q1(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var wd=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),kw=function(r){F(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new wd(e,Ee),_u&&(i._globalHandlerScope=new wd(document,hh)),Rw(i,i._localHandlerScope),i}return t.prototype.dispose=function(){wu(this._localHandlerScope),_u&&wu(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,_u&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?Ew(this,n):wu(n)}},t}(Fe),Um=1;it.hasGlobalWindow&&(Um=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Us=Um,vh=.4,ch="#333",dh="#ccc",Ow="#eee",bd=Cv,Bw=5e-5;function on(r){return r>Bw||r<-5e-5}var sn=[],Un=[],bu=Je(),Tu=Math.abs,Av=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return on(this.rotation)||on(this.x)||on(this.y)||on(this.scaleX-1)||on(this.scaleY-1)||on(this.skewX)||on(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(bd(n),this.invTransform=null);return}n=n||Je(),e?this.getLocalTransform(n):bd(n),t&&(e?Ca(n,t,n):Cm(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(sn);var n=sn[0]<0?-1:1,i=sn[1]<0?-1:1,a=((sn[0]-n)*e+n)/sn[0]||0,o=((sn[1]-i)*e+i)/sn[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Je(),lo(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],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),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Je(),Ca(Un,t.invTransform,e),e=Un);var n=this.originX,i=this.originY;(n||i)&&(bu[4]=n,bu[5]=i,Ca(Un,e,bu),Un[4]-=n,Un[5]-=i,e=Un),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Te(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Te(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&Tu(t[0]-1)>1e-10&&Tu(t[3]-1)>1e-10?Math.sqrt(Tu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){ph(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=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||l){var d=n+s,p=i+l;e[4]=-d*a-c*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Mv(e,e,u),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),ar=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ph(r,t){for(var e=0;e<ar.length;e++){var n=ar[e];r[n]=t[n]}}function rr(r){Lo||(Lo=new bi(100)),r=r||Yr;var t=Lo.get(r);return t||(t={font:r,strWidthCache:new bi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:mr.measureText("国",r).width,asciiCharWidth:mr.measureText("a",r).width},Lo.put(r,t)),t}var Lo;function Nw(r){if(!(Cu>=Td)){r=r||Yr;for(var t=[],e=+new Date,n=0;n<=127;n++)t[n]=mr.measureText(String.fromCharCode(n),r).width;var i=+new Date-e;return i>16?Cu=Td:i>2&&Cu++,t}}var Cu=0,Td=5;function Ym(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=Nw(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function nr(r,t){var e=r.strWidthCache,n=e.get(t);return n==null&&(n=mr.measureText(t,r.font).width,e.put(t,n)),n}function Cd(r,t,e,n){var i=nr(rr(t),r),a=Bl(t),o=Ti(0,i,e),s=kn(0,a,n),l=new at(o,s,i,a);return l}function Xm(r,t,e,n){var i=((r||"")+"").split(`
`),a=i.length;if(a===1)return Cd(i[0],t,e,n);for(var o=new at(0,0,0,0),s=0;s<i.length;s++){var l=Cd(i[s],t,e,n);s===0?o.copy(l):o.union(l)}return o}function Ti(r,t,e,n){return e==="right"?n?r+=t:r-=t:e==="center"&&(n?r+=t/2:r-=t/2),r}function kn(r,t,e,n){return e==="middle"?n?r+=t/2:r-=t/2:e==="bottom"&&(n?r+=t:r-=t),r}function Bl(r){return rr(r).stWideCharWidth}function Xr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Ys(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(n instanceof Array)l+=Xr(n[0],e.width),u+=Xr(n[1],e.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Mu="__zr_normal__",Du=ar.concat(["ignore"]),zw=_r(ar,function(r,t){return r[t]=!0,r},{ignore:!1}),Yn={},Fw=new at(0,0,0,0),Io=[],Nl=function(){function r(t){this.id=_m(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=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]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(e);var f=n.position!=null,h=n.autoOverflowArea,c=void 0;if((h||f)&&(c=Fw,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Yn,n,c):Ys(Yn,n,c),a.x=Yn.x,a.y=Yn.y,o=Yn.align,s=Yn.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,p=void 0;v==="center"?(d=c.width*.5,p=c.height*.5):(d=Xr(v[0],c.width),p=Xr(v[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+p+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=y.overflowRect=y.overflowRect||new at(0,0,0,0);a.getLocalTransform(Io),lo(Io,Io),at.copy(m,c),m.applyTransform(Io)}else y.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,x=void 0,S=void 0,w=void 0;_&&this.canBeInsideText()?(x=n.insideFill,S=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),w=!0)):(x=n.outsideFill,S=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),w=!0)),x=x||"#000",(x!==y.fill||S!==y.stroke||w!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=x,y.stroke=S,y.autoStroke=w,y.align=o,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=tr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?dh:ch},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&er(e);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,Gr(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},O(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Q(t))for(var n=t,i=yt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Mu)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Du)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Mu,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===Mu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Sv("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=st(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=st(i,t),o=st(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];O(e,a),a.textConfig&&(n=n||{},O(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=O({},i?this.textConfig:n.textConfig),O(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Du.length;f++){var h=Du[f],c=a&&zw[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(c?(u=!0,l[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?(e||n)[d]:e||n)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Av,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=tr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new Dv(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).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()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){Au(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){Au(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=Au(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=tr;function e(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();ze(Nl,Fe);ze(Nl,Av);function Au(r,t,e,n,i){e=e||{};var a=[];Zm(r,"",r,t,e,n,a,i);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function Lu(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function Vw(r){return re(r[0])}function Hw(r,t,e){if(re(t[e]))if(re(r[e])||(r[e]=[]),se(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),Lu(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(Vw(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Lu(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Lu(a,i,o);a.length=i.length}else r[e]=t[e]}function Gw(r,t){return r===t||re(r)&&re(t)&&Ww(r,t)}function Ww(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function Zm(r,t,e,n,i,a,o,s){for(var l=yt(n),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!Q(a),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(Q(m)&&!re(m)&&!El(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}Zm(r,y,e[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!h&&_)for(var x=0;x<d.length;x++){var S=d[x];if(S.targetName===t){var w=S.stopTracks(p);if(w){var b=st(d,S);d.splice(b,1)}}}if(i.force||(p=kt(p,function(M){return!Gw(n[M],e[M])}),_=p.length),_>0||i.force&&!o.length){var C=void 0,D=void 0,L=void 0;if(s){D={},c&&(C={});for(var x=0;x<_;x++){var y=p[x];D[y]=e[y],c?C[y]=n[y]:e[y]=n[y]}}else if(c){L={};for(var x=0;x<_;x++){var y=p[x];L[y]=Aa(e[y]),Hw(e,n,y)}}var S=new Dv(e,!1,!1,h?kt(d,function(R){return R.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),c&&C&&S.whenWithKeys(0,C,p),L&&S.whenWithKeys(0,L,p),S.whenWithKeys(u??500,s?D:n,p).delay(f||0),r.addAnimator(S,t),o.push(S)}}var Lt=function(r){F(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=st(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=st(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new at(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(at.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(Nl);Lt.prototype.type="group";/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var As={},$m={};function Uw(r){delete $m[r]}function Yw(r){if(!r)return!1;if(typeof r=="string")return Ws(r,1)<vh;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=Ws(t[i].color,1);return e/=n,e<vh}return!1}var Xw=function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new uw,o=n.renderer||"canvas";As[o]||(o=yt(As)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new As[o](e,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!it.node&&!it.worker&&!l?new kw(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?it.touchEventsSupported:!!f,c=44,v;h&&(v=J(n.pointerSize,c)),this.handler=new Lm(a,s,u,s.root,v),this.animation=new Dw({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Yw(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=hi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=hi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Lt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Uw(this.id))},r}();function Md(r,t){var e=new Xw(_m(),r,t);return $m[e.id]=e,e}function Zw(r,t){As[r]=t}var $w=1e-4,qm=20;function qw(r){return r.replace(/^\s+|\s+$/g,"")}var Ga=Math.min,ue=Math.max,Qe=Math.abs;function At(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}var xt=Kw;function Kw(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return gh(r,t,e)}function gh(r,t,e){return Z(r)?qw(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function $t(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),qm),r=(+r).toFixed(t),e?r:+r}function ga(r){return r.sort(function(t,e){return t-e}),r}function Ci(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Qw(r)}function Qw(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Km(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Qe(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function jw(r,t){var e=_r(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=$(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=$(i,function(v){return Math.floor(v)}),s=_r(o,function(v,d){return v+d},0),l=$(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return $(o,function(v){return v/n})}function Jw(r,t){var e=Math.max(Ci(r),Ci(t)),n=r+t;return e>qm?n:$t(n,e)}var Dd=9007199254740991;function Qm(r){var t=Math.PI*2;return(r%t+t)%t}function Xs(r){return r>-1e-4&&r<$w}var tb=/^(?:(\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 Ni(r){if(r instanceof Date)return r;if(Z(r)){var t=tb.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function eb(r){return Math.pow(10,Lv(r))}function Lv(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function jm(r,t){var e=Lv(r),n=Math.pow(10,e),i=r/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Zs(r){var t=parseFloat(r);return t==r&&(t!==0||!Z(r)||r.indexOf("x")<=0)?t:NaN}function rb(r){return!isNaN(Zs(r))}function Jm(){return Math.round(Math.random()*9)}function t0(r,t){return t===0?r:t0(t,r%t)}function Ad(r,t){return r==null?t:t==null?r:r*t/t0(r,t)}var nb="[ECharts] ",ib=typeof console<"u"&&console.warn&&console.log;function ab(r,t,e){ib&&console[r](nb+t)}function e0(r,t){ab("error",r)}function Ut(r){throw new Error(r)}var r0="series\0",ob="\0_ec_\0";function Ot(r){return r instanceof Array?r:r==null?[]:[r]}function $s(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Ld=["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 uo(r){return Q(r)&&!N(r)&&!(r instanceof Date)?r.value:r}function sb(r){return Q(r)&&!(r instanceof Array)}function lb(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=et();T(t,function(l,u){if(!Q(l)){t[u]=null;return}});var s=ub(r,o,e);return(n||i)&&fb(s,r,o,t),n&&hb(s,t),n||i?vb(s,t,i):a&&cb(s,t),db(s),s}function ub(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||Wa(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function fb(r,t,e,n){T(n,function(i,a){if(!(!i||i.id==null)){var o=La(i.id),s=e.get(o);if(s!=null){var l=r[s];Be(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function hb(r,t){T(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!Wa(e)&&!Wa(a)&&n0("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function vb(r,t,e){T(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||Wa(i.existing)||i.existing&&n.id!=null&&!n0("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function cb(r,t){T(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function db(r){var t=et();T(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),T(r,function(e){var n=e.newOption;Be(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),T(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(Q(a)){if(o.name=a.name!=null?La(a.name):i?i.name:r0+n,i)o.id=La(i.id);else if(a.id!=null)o.id=La(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function n0(r,t,e){var n=fe(t[r],null),i=fe(e[r],null);return n!=null&&i!=null&&n===i}function La(r){return fe(r,"")}function fe(r,t){return r==null?t:Z(r)?r:bt(r)||Kf(r)?r+"":t}function Iv(r){var t=r.name;return!!(t&&t.indexOf(r0))}function Wa(r){return r&&r.id!=null&&La(r.id).indexOf(ob)===0}function pb(r,t,e){T(r,function(n){var i=n.newOption;Q(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=gb(t,i,n.existing,e))})}function gb(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function fo(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return N(t.dataIndex)?$(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return N(t.name)?$(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ft(){var r="__ec_inner_"+yb++;return function(t){return t[r]||(t[r]={})}}var yb=Jm();function Iu(r,t,e){var n=Pv(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=e?e.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=ho(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Pv(r,t){var e;if(Z(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=et(),a={},o=!1;return T(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[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 ee={useDefault:!0,enableAll:!1,enableNone:!1},mb={useDefault:!1,enableAll:!0,enableNone:!0};function ho(r,t,e,n){n=n||ee;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(t))?[l]:[],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=r.queryComponents({mainType:t,index:i,id:a,name:o}),s}function i0(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function _b(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function xb(r){return r==="auto"?it.domSupported?"html":"richText":r||"html"}var Sb=".",ln="___EC__COMPONENT__CONTAINER___",a0="___EC__EXTENDED_CLASS___";function je(r){var t={main:"",sub:""};if(r){var e=r.split(Sb);t.main=e[0]||"",t.sub=e[1]||""}return t}function wb(r){Be(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function bb(r){return!!(r&&r[a0])}function Rv(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return Tb(n)?i=function(a){F(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},T1(i,this)),O(i.prototype,e),i[a0]=!0,i.extend=this.extend,i.superCall=Db,i.superApply=Ab,i.superClass=n,i}}function Tb(r){return rt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function o0(r,t){r.extend=t.extend}var Cb=Math.round(Math.random()*10);function Mb(r){var t=["__\0is_clz",Cb++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function Db(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function Ab(r,t,e){return this.superClass.prototype[t].apply(r,e)}function zl(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){wb(i),n.prototype.type=i;var a=je(i);if(!a.sub)t[a.main]=n;else if(a.sub!==ln){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[ln]&&(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},r.getClassesByMainType=function(n){var i=je(n),a=[],o=t[i.main];return o&&o[ln]?T(o,function(s,l){l!==ln&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=je(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return T(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=je(n),a=t[i.main];return a&&a[ln]};function e(n){var i=t[n.main];return(!i||!i[ln])&&(i=t[n.main]={},i[ln]=!0),i}}function Mi(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&st(i,l)>=0||a&&st(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var Lb=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Ib=Mi(Lb),Pb=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Ib(this,t,e)},r}(),yh=new bi(50);function Rb(r){if(typeof r=="string"){var t=yh.get(r);return t&&t.image}else return r}function s0(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=yh.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Fl(t)&&a.pending.push(o)):(t=mr.loadImage(r,Id,Id),t.__zrImageSrc=r,yh.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Id(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Fl(r){return r&&r.width&&r.height}var Pu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Eb(r,t,e,n,i,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);a=l0(e,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)u0(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function l0(r,t,e,n){n=n||{};var i=O({},n);e=J(e,"..."),i.maxIterations=J(n.maxIterations,2);var a=i.minChar=J(n.minChar,0),o=i.fontMeasureInfo=rr(t),s=o.asciiCharWidth;i.placeholder=J(n.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<a&&l>=s;u++)l-=s;var f=nr(o,e);return f>l&&(e="",f=0),l=r-f,i.ellipsis=e,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=r,i}function u0(r,t,e){var n=e.containerWidth,i=e.contentWidth,a=e.fontMeasureInfo;if(!n){r.textLine="",r.isTruncated=!1;return}var o=nr(a,t);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?kb(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=nr(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function kb(r,t,e){for(var n=0,i=0,a=r.length;i<a&&n<t;i++)n+=Ym(e,r.charCodeAt(i));return i}function Ob(r,t,e,n){var i=Ev(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=a==="truncate",h=Bl(u),c=J(t.lineHeight,h),v=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&e!=null&&(p=e-s);var g=t.height;g==null&&n!=null&&(g=n-l);var y;p!=null&&(a==="break"||a==="breakAll")?y=i?f0(i,t.font,p,a==="breakAll",0).lines:[]:y=i?i.split(`
`):[];var m=y.length*c;if(g==null&&(g=m),m>g&&v){var _=Math.floor(g/c);d=d||y.length>_,y=y.slice(0,_),m=y.length*c}if(i&&f&&p!=null)for(var x=l0(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),S={},w=0;w<y.length;w++)u0(S,y[w],x),y[w]=S.textLine,d=d||S.isTruncated;for(var b=g,C=0,D=rr(u),w=0;w<y.length;w++)C=Math.max(nr(D,y[w]),C);p==null&&(p=C);var L=p;return b+=l,L+=s,{lines:y,height:g,outerWidth:L,outerHeight:b,lineHeight:c,calculatedLineHeight:h,contentWidth:C,contentHeight:m,width:p,isTruncated:d}}var Bb=function(){function r(){}return r}(),Pd=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),Nb=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function zb(r,t,e,n,i){var a=new Nb,o=Ev(r);if(!o)return a;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-l);var h=t.height;h==null&&n!=null&&(h=n-u);for(var c=t.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=Pu.lastIndex=0,p;(p=Pu.exec(o))!=null;){var g=p.index;g>d&&Ru(a,o.substring(d,g),t,v),Ru(a,p[2],t,v,p[1]),d=Pu.lastIndex}d<o.length&&Ru(a,o.substring(d,o.length),t,v);var y=[],m=0,_=0,x=c==="truncate",S=t.lineOverflow==="truncate",w={};function b(Kt,Ht,ot){Kt.width=Ht,Kt.lineHeight=ot,m+=ot,_=Math.max(_,Ht)}t:for(var C=0;C<a.lines.length;C++){for(var D=a.lines[C],L=0,M=0,R=0;R<D.tokens.length;R++){var A=D.tokens[R],I=A.styleName&&t.rich[A.styleName]||{},P=A.textPadding=I.padding,E=P?P[1]+P[3]:0,B=A.font=I.font||t.font;A.contentHeight=Bl(B);var k=J(I.height,A.contentHeight);if(A.innerHeight=k,P&&(k+=P[0]+P[2]),A.height=k,A.lineHeight=zr(I.lineHeight,t.lineHeight,k),A.align=I&&I.align||i,A.verticalAlign=I&&I.verticalAlign||"middle",S&&h!=null&&m+A.lineHeight>h){var V=a.lines.length;R>0?(D.tokens=D.tokens.slice(0,R),b(D,M,L),a.lines=a.lines.slice(0,C+1)):a.lines=a.lines.slice(0,C),a.isTruncated=a.isTruncated||a.lines.length<V;break t}var z=I.width,U=z==null||z==="auto";if(typeof z=="string"&&z.charAt(z.length-1)==="%")A.percentWidth=z,y.push(A),A.contentWidth=nr(rr(B),A.text);else{if(U){var H=I.backgroundColor,tt=H&&H.image;tt&&(tt=Rb(tt),Fl(tt)&&(A.width=Math.max(A.width,tt.width*k/tt.height)))}var pt=x&&f!=null?f-M:null;pt!=null&&pt<A.width?!U||pt<E?(A.text="",A.width=A.contentWidth=0):(Eb(w,A.text,pt-E,B,t.ellipsis,{minChar:t.truncateMinChar}),A.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,A.width=A.contentWidth=nr(rr(B),A.text)):A.contentWidth=nr(rr(B),A.text)}A.width+=E,M+=A.width,I&&(L=Math.max(L,A.lineHeight))}b(D,M,L)}a.outerWidth=a.width=J(f,_),a.outerHeight=a.height=J(h,m),a.contentHeight=m,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var C=0;C<y.length;C++){var A=y[C],Nt=A.percentWidth;A.width=parseInt(Nt,10)/100*a.width}return a}function Ru(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,l=o.font||e.font,u=!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=Xr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),u=!0),n.accumWidth=d}else{var p=f0(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}f||(f=t.split(`
`));for(var g=rr(l),y=0;y<f.length;y++){var m=f[y],_=new Bb;if(_.styleName=i,_.text=m,_.isLineHolder=!m&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[y]:nr(g,m),!y&&!u){var x=(s[s.length-1]||(s[0]=new Pd)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(m||!S||a)&&x.push(_)}else s.push(new Pd([_]))}}function Fb(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Vb=_r(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Hb(r){return Fb(r)?!!Vb[r]:!0}function f0(r,t,e,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=rr(t),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=Ym(h,v.charCodeAt(0)),p=n?!1:!Hb(v);if(a.length?f+d>e:i+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):p?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,p?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Rd(r,t,e,n,i,a){if(r.baseX=e,r.baseY=n,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;at.set(Ed,Ti(e,o,i),kn(n,s,a),o,s),at.intersect(t,Ed,null,kd);var l=kd.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Ti(l.x,l.width,i,!0),r.baseY=kn(l.y,l.height,a,!0)}}var Ed=new at(0,0,0,0),kd={outIntersectRect:{},clamp:!0};function Ev(r){return r!=null?r+="":r=""}function Gb(r){var t=Ev(r.text),e=r.font,n=nr(rr(e),t),i=Bl(e);return mh(r,n,i,null)}function mh(r,t,e,n){var i=new at(Ti(r.x||0,t,r.textAlign),kn(r.y||0,e,r.textBaseline),t,e),a=n??(h0(r)?r.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function h0(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var _h="__zr_style_"+Math.round(Math.random()*10),On={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Vl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};On[_h]=!0;var Od=["z","z2","invisible"],Wb=["invisible"],Qr=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=yt(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Ub(this,e,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 l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=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,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new at(0,0,0,0)),n?at.applyTransform(e,i,n):e.copy(i),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new at(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:O(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Ts,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Ts)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Ol(On,e)},t.prototype.useStyle=function(e){e[_h]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[_h]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Od)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=yt(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=yt(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?Wb:Od,c=0;c<p.length;c++){var v=p[c];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return O(e,n),e},t.prototype.getAnimationStyleProps=function(){return Vl},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=tr|Ts}(),t}(Nl),Eu=new at(0,0,0,0),ku=new at(0,0,0,0);function Ub(r,t,e){return Eu.copy(r.getBoundingRect()),r.transform&&Eu.applyTransform(r.transform),ku.width=t,ku.height=e,!Eu.intersect(ku)}var Se=Math.min,we=Math.max,Ou=Math.sin,Bu=Math.cos,un=Math.PI*2,Po=Bi(),Ro=Bi(),Eo=Bi();function Bd(r,t,e,n,i,a){i[0]=Se(r,e),i[1]=Se(t,n),a[0]=we(r,e),a[1]=we(t,n)}var Nd=[],zd=[];function Yb(r,t,e,n,i,a,o,s,l,u){var f=Bm,h=te,c=f(r,e,i,o,Nd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,i,o,Nd[v]);l[0]=Se(d,l[0]),u[0]=we(d,u[0])}c=f(t,n,a,s,zd);for(var v=0;v<c;v++){var p=h(t,n,a,s,zd[v]);l[1]=Se(p,l[1]),u[1]=we(p,u[1])}l[0]=Se(r,l[0]),u[0]=we(r,u[0]),l[0]=Se(o,l[0]),u[0]=we(o,u[0]),l[1]=Se(t,l[1]),u[1]=we(t,u[1]),l[1]=Se(s,l[1]),u[1]=we(s,u[1])}function Xb(r,t,e,n,i,a,o,s){var l=Nm,u=ae,f=we(Se(l(r,e,i),1),0),h=we(Se(l(t,n,a),1),0),c=u(r,e,i,f),v=u(t,n,a,h);o[0]=Se(r,i,c),o[1]=Se(t,a,v),s[0]=we(r,i,c),s[1]=we(t,a,v)}function Zb(r,t,e,n,i,a,o,s,l){var u=li,f=ui,h=Math.abs(i-a);if(h%un<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,l[0]=r+e,l[1]=t+n;return}if(Po[0]=Bu(i)*e+r,Po[1]=Ou(i)*n+t,Ro[0]=Bu(a)*e+r,Ro[1]=Ou(a)*n+t,u(s,Po,Ro),f(l,Po,Ro),i=i%un,i<0&&(i=i+un),a=a%un,a<0&&(a=a+un),i>a&&!o?a+=un:i<a&&o&&(i+=un),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Eo[0]=Bu(v)*e+r,Eo[1]=Ou(v)*n+t,u(s,Eo,s),f(l,Eo,l))}var _t={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fn=[],hn=[],Ge=[],br=[],We=[],Ue=[],Nu=Math.min,zu=Math.max,vn=Math.cos,cn=Math.sin,lr=Math.abs,xh=Math.PI,Lr=xh*2,Fu=typeof Float32Array<"u",Wi=[];function Vu(r){var t=Math.round(r/xh*1e8)/1e8;return t%2*xh}function v0(r,t){var e=Vu(r[0]);e<0&&(e+=Lr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Lr?i=e+Lr:t&&e-i>=Lr?i=e-Lr:!t&&e>i?i=e+(Lr-Vu(e-i)):t&&e<i&&(i=e-(Lr-Vu(i-e))),r[0]=e,r[1]=i}var Di=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=lr(n/Us/t)||0,this._uy=lr(n/Us/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(_t.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=lr(t-this._xi),i=lr(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(_t.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(_t.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(_t.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Wi[0]=i,Wi[1]=a,v0(Wi,o),i=Wi[0],a=Wi[1];var s=a-i;return this.addData(_t.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=vn(a)*n+t,this._yi=cn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(_t.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(_t.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&Fu&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();var o=this.data;if(Fu&&(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<e;a++)for(var l=t[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},r.prototype.addData=function(t,e,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Fu&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ge[0]=Ge[1]=We[0]=We[1]=Number.MAX_VALUE,br[0]=br[1]=Ue[0]=Ue[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],n=t[o+1],i=e,a=n),s){case _t.M:e=i=t[o++],n=a=t[o++],We[0]=i,We[1]=a,Ue[0]=i,Ue[1]=a;break;case _t.L:Bd(e,n,t[o],t[o+1],We,Ue),e=t[o++],n=t[o++];break;case _t.C:Yb(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],We,Ue),e=t[o++],n=t[o++];break;case _t.Q:Xb(e,n,t[o++],t[o++],t[o],t[o+1],We,Ue),e=t[o++],n=t[o++];break;case _t.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];l&&(i=vn(v)*h+u,a=cn(v)*c+f),Zb(u,f,h,c,v,d,p,We,Ue),e=vn(d)*h+u,n=cn(d)*c+f;break;case _t.R:i=e=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];Bd(i,a,i+g,a+y,We,Ue);break;case _t.Z:e=i,n=a;break}li(Ge,Ge,We),ui(br,br,Ue)}return o===0&&(Ge[0]=Ge[1]=br[0]=br[1]=0),new at(Ge[0],Ge[1],br[0]-Ge[0],br[1]-Ge[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,l=o);var p=-1;switch(v){case _t.M:a=s=t[c++],o=l=t[c++];break;case _t.L:{var g=t[c++],y=t[c++],m=g-a,_=y-o;(lr(m)>n||lr(_)>i||c===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case _t.C:{var x=t[c++],S=t[c++],g=t[c++],y=t[c++],w=t[c++],b=t[c++];p=hw(a,o,x,S,g,y,w,b,10),a=w,o=b;break}case _t.Q:{var x=t[c++],S=t[c++],g=t[c++],y=t[c++];p=dw(a,o,x,S,g,y,10),a=g,o=y;break}case _t.A:var C=t[c++],D=t[c++],L=t[c++],M=t[c++],R=t[c++],A=t[c++],I=A+R;c+=1,d&&(s=vn(R)*L+C,l=cn(R)*M+D),p=zu(L,M)*Nu(Lr,Math.abs(A)),a=vn(I)*L+C,o=cn(I)*M+D;break;case _t.R:{s=a=t[c++],l=o=t[c++];var P=t[c++],E=t[c++];p=P*2+E*2;break}case _t.Z:{var m=s-a,_=l-o;p=Math.sqrt(m*m+_*_),a=s,o=l;break}}p>=0&&(u[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,p,g=0,y=0,m,_=0,x,S;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var w=0;w<o;){var b=n[w++],C=w===1;switch(C&&(u=n[w],f=n[w+1],s=u,l=f),b!==_t.L&&_>0&&(t.lineTo(x,S),_=0),b){case _t.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case _t.L:{h=n[w++],c=n[w++];var D=lr(h-u),L=lr(c-f);if(D>i||L>a){if(v){var M=d[y++];if(g+M>m){var R=(m-g)/M;t.lineTo(u*(1-R)+h*R,f*(1-R)+c*R);break t}g+=M}t.lineTo(h,c),u=h,f=c,_=0}else{var A=D*D+L*L;A>_&&(x=h,S=c,_=A)}break}case _t.C:{var I=n[w++],P=n[w++],E=n[w++],B=n[w++],k=n[w++],V=n[w++];if(v){var M=d[y++];if(g+M>m){var R=(m-g)/M;Vs(u,I,E,k,R,fn),Vs(f,P,B,V,R,hn),t.bezierCurveTo(fn[1],hn[1],fn[2],hn[2],fn[3],hn[3]);break t}g+=M}t.bezierCurveTo(I,P,E,B,k,V),u=k,f=V;break}case _t.Q:{var I=n[w++],P=n[w++],E=n[w++],B=n[w++];if(v){var M=d[y++];if(g+M>m){var R=(m-g)/M;Hs(u,I,E,R,fn),Hs(f,P,B,R,hn),t.quadraticCurveTo(fn[1],hn[1],fn[2],hn[2]);break t}g+=M}t.quadraticCurveTo(I,P,E,B),u=E,f=B;break}case _t.A:var z=n[w++],U=n[w++],H=n[w++],tt=n[w++],pt=n[w++],Nt=n[w++],Kt=n[w++],Ht=!n[w++],ot=H>tt?H:tt,j=lr(H-tt)>.001,lt=pt+Nt,X=!1;if(v){var M=d[y++];g+M>m&&(lt=pt+Nt*(m-g)/M,X=!0),g+=M}if(j&&t.ellipse?t.ellipse(z,U,H,tt,Kt,pt,lt,Ht):t.arc(z,U,ot,pt,lt,Ht),X)break t;C&&(s=vn(pt)*H+z,l=cn(pt)*tt+U),u=vn(lt)*H+z,f=cn(lt)*tt+U;break;case _t.R:s=u=n[w],l=f=n[w+1],h=n[w++],c=n[w++];var K=n[w++],Dt=n[w++];if(v){var M=d[y++];if(g+M>m){var mt=m-g;t.moveTo(h,c),t.lineTo(h+Nu(mt,K),c),mt-=K,mt>0&&t.lineTo(h+K,c+Nu(mt,Dt)),mt-=Dt,mt>0&&t.lineTo(h+zu(K-mt,0),c+Dt),mt-=K,mt>0&&t.lineTo(h,c+zu(Dt-mt,0));break t}g+=M}t.rect(h,c,K,Dt);break;case _t.Z:if(v){var M=d[y++];if(g+M>m){var R=(m-g)/M;t.lineTo(u*(1-R)+s*R,f*(1-R)+l*R);break t}g+=M}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=_t,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function Xn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-n)/(r-e),u=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function $b(r,t,e,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;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||u>r+h&&u>e+h&&u>i+h&&u>o+h||u<r-h&&u<e-h&&u<i-h&&u<o-h)return!1;var c=fw(r,t,e,n,i,a,o,s,u,f);return c<=h/2}function qb(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>r+u&&s>e+u&&s>i+u||s<r-u&&s<e-u&&s<i-u)return!1;var f=cw(r,t,e,n,i,a,s,l);return f<=u/2}var Fd=Math.PI*2;function ko(r){return r%=Fd,r<0&&(r+=Fd),r}var Ui=Math.PI*2;function Kb(r,t,e,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(n-i)%Ui<1e-4)return!0;if(a){var h=n;n=ko(i),i=ko(h)}else n=ko(n),i=ko(i);n>i&&(i+=Ui);var c=Math.atan2(l,s);return c<0&&(c+=Ui),c>=n&&c<=i||c+Ui>=n&&c+Ui<=i}function dn(r,t,e,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 l=o*(e-r)+r;return l===i?1/0:l>i?s:0}var Tr=Di.CMD,pn=Math.PI*2,Qb=1e-4;function jb(r,t){return Math.abs(r-t)<Qb}var jt=[-1,-1,-1],_e=[-1,-1];function Jb(){var r=_e[0];_e[0]=_e[1],_e[1]=r}function tT(r,t,e,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=Om(t,n,a,s,u,jt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=jt[p],y=g===0||g===1?.5:1,m=te(r,e,i,o,g);m<l||(c<0&&(c=Bm(t,n,a,s,_e),_e[1]<_e[0]&&c>1&&Jb(),v=te(t,n,a,s,_e[0]),c>1&&(d=te(t,n,a,s,_e[1]))),c===2?g<_e[0]?h+=v<t?y:-y:g<_e[1]?h+=d<v?y:-y:h+=s<d?y:-y:g<_e[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function eT(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=vw(t,n,a,s,jt);if(l===0)return 0;var u=Nm(t,n,a);if(u>=0&&u<=1){for(var f=0,h=ae(t,n,a,u),c=0;c<l;c++){var v=jt[c]===0||jt[c]===1?.5:1,d=ae(r,e,i,jt[c]);d<o||(jt[c]<u?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=jt[0]===0||jt[0]===1?.5:1,d=ae(r,e,i,jt[0]);return d<o?0:a<t?v:-v}}function rT(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);jt[0]=-l,jt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=pn-1e-4){n=0,i=pn;var f=a?1:-1;return o>=jt[0]+r&&o<=jt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=pn,i+=pn);for(var c=0,v=0;v<2;v++){var d=jt[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=pn+p),(p>=n&&p<=i||p+pn>=n&&p+pn<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function c0(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var p=a[d++],g=d===1;switch(p===Tr.M&&d>1&&(e||(s+=dn(l,u,f,h,n,i))),g&&(l=a[d],u=a[d+1],f=l,h=u),p){case Tr.M:f=a[d++],h=a[d++],l=f,u=h;break;case Tr.L:if(e){if(Xn(l,u,a[d],a[d+1],t,n,i))return!0}else s+=dn(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.C:if(e){if($b(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=tT(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.Q:if(e){if(qb(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=eT(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Tr.A:var y=a[d++],m=a[d++],_=a[d++],x=a[d++],S=a[d++],w=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(S)*_+y,v=Math.sin(S)*x+m,g?(f=c,h=v):s+=dn(l,u,c,v,n,i);var C=(n-y)*x/_+y;if(e){if(Kb(y,m,x,S,S+w,b,t,C,i))return!0}else s+=rT(y,m,x,S,S+w,b,C,i);l=Math.cos(S+w)*_+y,u=Math.sin(S+w)*x+m;break;case Tr.R:f=l=a[d++],h=u=a[d++];var D=a[d++],L=a[d++];if(c=f+D,v=h+L,e){if(Xn(f,h,c,h,t,n,i)||Xn(c,h,c,v,t,n,i)||Xn(c,v,f,v,t,n,i)||Xn(f,v,f,h,t,n,i))return!0}else s+=dn(c,h,c,v,n,i),s+=dn(f,v,f,h,n,i);break;case Tr.Z:if(e){if(Xn(l,u,f,h,t,n,i))return!0}else s+=dn(l,u,f,h,n,i);l=f,u=h;break}}return!e&&!jb(u,h)&&(s+=dn(l,u,f,h,n,i)||0),s!==0}function nT(r,t,e){return c0(r,0,!1,t,e)}function iT(r,t,e,n){return c0(r,t,!0,e,n)}var d0=dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},On),aT={style:dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Vl.style)},Hu=ar.concat(["invisible","culling","z","z2","zlevel","parent"]),St=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){e.buildPath(l,e.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<Hu.length;++s)i[Hu[s]]=this[Hu[s]];i.__dirty|=tr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=yt(e);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=e[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Z(e)){var n=Ws(e,0);return n>.5?ch:n>.2?Ow:dh}else if(e)return dh}return ch},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(Z(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Ws(e,0)<vh;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Di(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&da)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),iT(s,l/u,e,n)))return!0}if(this.hasFill())return nT(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=da,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:O(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&da)},t.prototype.createStyle=function(e){return Ol(d0,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=O({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=O({},i.shape),O(u,n.shape)):(u=O({},a?this.shape:i.shape),O(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=yt(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return aT},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(a){F(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ut(e.style)},o.prototype.getDefaultShape=function(){return ut(e.shape)},o}(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=tr|Ts|da}(),t}(Qr),oT=dt({strokeFirst:!0,font:Yr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},d0),qs=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return h0(this.style)},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Ol(oT,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Gb(this.style)),this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Qr);qs.prototype.type="tspan";var sT=dt({x:0,y:0},On),lT={style:dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Vl.style)};function uT(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var jr=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ol(sT,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=uT(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return lT},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new at(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Qr);jr.prototype.type="image";function fT(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-l,n),l!==0&&r.arc(e+i-l,n+l,l,-Math.PI/2,0),r.lineTo(e+i,n+a-u),u!==0&&r.arc(e+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var vi=Math.round;function p0(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(vi(n*2)===vi(i*2)&&(r.x1=r.x2=In(n,s,!0)),vi(a*2)===vi(o*2)&&(r.y1=r.y2=In(a,s,!0))),r}}function g0(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=In(n,s,!0),r.y=In(i,s,!0),r.width=Math.max(In(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(In(i+o,s,!1)-r.y,o===0?0:1)),r}}function In(r,t,e){if(!t)return r;var n=vi(r*2);return(n+vi(t))%2===0?n/2:(n+(e?1:-1))/2}var hT=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),vT={},Tt=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new hT},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=g0(vT,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?fT(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(St);Tt.prototype.type="rect";var Vd={fill:"#000"},Hd=2,Ye={},cT={style:dt({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},Vl.style)},zt=function(r){F(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Vd,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];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 e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,mT(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);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 e=new at(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Vd},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return O(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=yt(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},O(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return cT},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||Yr,i=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,l=e.align||a.align||"left",u=e.verticalAlign||a.verticalAlign||"top";Rd(Ye,a.overflowRect,o,s,l,u),o=Ye.baseX,s=Ye.baseY;var f=$d(e),h=Ob(f,e,Ye.outerWidth,Ye.outerHeight),c=Gu(e),v=!!e.backgroundColor,d=h.outerHeight,p=h.outerWidth,g=h.lines,y=h.lineHeight;this.isTruncated=!!h.isTruncated;var m=o,_=kn(s,h.contentHeight,u);if(c||i){var x=Ti(o,p,l),S=kn(s,d,u);c&&this._renderBackground(e,e,x,S,p,d)}_+=y/2,i&&(m=Zd(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,b=!1,C=!1,D=Xd("fill"in e?e.fill:(C=!0,a.fill)),L=Yd("stroke"in e?e.stroke:!v&&(!a.autoStroke||C)?(w=Hd,b=!0,a.stroke):null),M=e.textShadowBlur>0,R=0;R<g.length;R++){var A=this._getOrCreateChild(qs),I=A.createStyle();A.useStyle(I),I.text=g[R],I.x=m,I.y=_,I.textAlign=l,I.textBaseline="middle",I.opacity=e.opacity,I.strokeFirst=!0,M&&(I.shadowBlur=e.textShadowBlur||0,I.shadowColor=e.textShadowColor||"transparent",I.shadowOffsetX=e.textShadowOffsetX||0,I.shadowOffsetY=e.textShadowOffsetY||0),I.stroke=L,I.fill=D,L&&(I.lineWidth=e.lineWidth||w,I.lineDash=e.lineDash,I.lineDashOffset=e.lineDashOffset||0),I.font=n,Wd(I,e),_+=y,A.setBoundingRect(mh(I,h.contentWidth,h.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,n=this._defaultStyle,i=e.align||n.align,a=e.verticalAlign||n.verticalAlign,o=e.x||0,s=e.y||0;Rd(Ye,n.overflowRect,o,s,i,a),o=Ye.baseX,s=Ye.baseY;var l=$d(e),u=zb(l,e,Ye.outerWidth,Ye.outerHeight,i),f=u.width,h=u.outerWidth,c=u.outerHeight,v=e.padding;this.isTruncated=!!u.isTruncated;var d=Ti(o,h,i),p=kn(s,c,a),g=d,y=p;v&&(g+=v[3],y+=v[0]);var m=g+f;Gu(e)&&this._renderBackground(e,e,d,p,h,c);for(var _=!!e.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],w=S.tokens,b=w.length,C=S.lineHeight,D=S.width,L=0,M=g,R=m,A=b-1,I=void 0;L<b&&(I=w[L],!I.align||I.align==="left");)this._placeToken(I,e,C,y,M,"left",_),D-=I.width,M+=I.width,L++;for(;A>=0&&(I=w[A],I.align==="right");)this._placeToken(I,e,C,y,R,"right",_),D-=I.width,R-=I.width,A--;for(M+=(f-(M-g)-(m-R)-D)/2;L<=A;)I=w[L],this._placeToken(I,e,C,y,M+I.width/2,"center",_),M+=I.width,L++;y+=C}},t.prototype._placeToken=function(e,n,i,a,o,s,l){var u=n.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&Gu(u);c&&this._renderBackground(u,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=Zd(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(qs),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,x=!1,S=Xd("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Yd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Hd,x=!0,y.stroke):null),b=u.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,b&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||Yr,g.opacity=zr(u.opacity,n.opacity,1),Wd(g,u),w&&(g.lineWidth=zr(u.lineWidth,n.lineWidth,_),g.lineDash=J(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S),p.setBoundingRect(mh(g,e.contentWidth,e.contentHeight,x?0:null))},t.prototype._renderBackground=function(e,n,i,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,p,g;if(c||e.lineHeight||u&&f){p=this._getOrCreateChild(Tt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=J(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(jr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=J(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var x=(p||g).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=zr(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return yT(e)&&(n=[e.fontStyle,e.fontWeight,gT(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ke(n)||e.textFont||e.font},t}(Qr),dT={left:!0,right:1,center:1},pT={top:1,bottom:1,middle:1},Gd=["fontStyle","fontWeight","fontSize","fontFamily"];function gT(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?mv+"px":r+"px"}function Wd(r,t){for(var e=0;e<Gd.length;e++){var n=Gd[e],i=t[n];i!=null&&(r[n]=i)}}function yT(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function mT(r){return Ud(r),T(r.rich,Ud),r}function Ud(r){if(r){r.font=zt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||dT[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||pT[e]?e:"top";var n=r.padding;n&&(r.padding=kl(r.padding))}}function Yd(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Xd(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Zd(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function $d(r){var t=r.text;return t!=null&&(t+=""),t}function Gu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var ht=ft(),_T=function(r,t,e,n){if(n){var i=ht(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=ht(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},qd=1,Kd={},y0=ft(),kv=ft(),m0=0,Ov=1,Bv=2,Me=["emphasis","blur","select"],Ks=["normal","emphasis","blur","select"],vo=10,xT=9,Bn="highlight",Ls="downplay",Qs="select",Sh="unselect",js="toggleSelect",Nv="selectchanged";function Zn(r){return r!=null&&r!=="none"}function Hl(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function _0(r){Hl(r,"emphasis",Bv)}function x0(r){r.hoverState===Bv&&Hl(r,"normal",m0)}function zv(r){Hl(r,"blur",Ov)}function S0(r){r.hoverState===Ov&&Hl(r,"normal",m0)}function ST(r){r.selected=!0}function wT(r){r.selected=!1}function Qd(r,t,e){t(r,e)}function Sr(r,t,e){Qd(r,t,e),r.isGroup&&r.traverse(function(n){Qd(n,t,e)})}function bT(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function TT(r,t,e,n){var i=e&&st(e,"select")>=0,a=!1;if(r instanceof St){var o=y0(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Zn(s)||Zn(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=O({},n),u=O({},u),u.fill=s):!Zn(u.fill)&&Zn(s)?(a=!0,n=O({},n),u=O({},u),u.fill=gd(s)):!Zn(u.stroke)&&Zn(l)&&(a||(n=O({},n),u=O({},u)),u.stroke=gd(l)),n.style=u}}if(n&&n.z2==null){a||(n=O({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??vo)}return n}function CT(r,t,e){if(e&&e.z2==null){e=O({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??xT)}return e}function MT(r,t,e){var n=st(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:bT(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Wu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return TT(this,r,t,e);if(r==="blur")return MT(this,r,e);if(r==="select")return CT(this,r,e)}return e}function Js(r){r.stateProxy=Wu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Wu),e&&(e.stateProxy=Wu)}function jd(r,t){!C0(r,t)&&!r.__highByOuter&&Sr(r,_0)}function Jd(r,t){!C0(r,t)&&!r.__highByOuter&&Sr(r,x0)}function tl(r,t){r.__highByOuter|=1<<(t||0),Sr(r,_0)}function el(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Sr(r,x0)}function w0(r){Sr(r,zv)}function Fv(r){Sr(r,S0)}function b0(r){Sr(r,ST)}function T0(r){Sr(r,wT)}function C0(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function M0(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=kv(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){S0(u)}),s&&e.push(a)),o.isBlured=!1}),T(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function wh(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&Fv(c)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||zv(g)}),re(t))a(u.getData(),t);else if(Q(t))for(var d=yt(t),p=0;p<d.length;p++)a(u.getData(d[p]),t[d[p]]);l.push(u),kv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function bh(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){kv(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){zv(a)})}}}function DT(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=fo(i,t);a=(N(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=ht(o);wh(n,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&wh(n,f,h,e)}}}function Vv(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ht(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function AT(r,t,e){var n=ht(r),i=Vv(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&bh(n.componentMainType,n.componentIndex,e),T(a,function(s){return jd(s,t)})):(wh(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&bh(n.componentMainType,n.componentIndex,e),jd(r,t))}function LT(r,t,e){M0(e);var n=ht(r),i=Vv(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?T(i,function(a){return Jd(a,t)}):Jd(r,t)}function IT(r,t,e){if(Ch(t)){var n=t.dataType,i=r.getData(n),a=fo(i,t);N(a)||(a=[a]),r[t.type===js?"toggleSelect":t.type===Qs?"select":"unselect"](a,n)}}function tp(r){var t=r.getAllData();T(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?b0(a):T0(a)})})}function PT(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();T(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function rl(r,t,e){ci(r,!0),Sr(r,Js),Th(r,t,e)}function RT(r){ci(r,!1)}function co(r,t,e,n){n?RT(r):rl(r,t,e)}function Th(r,t,e){var n=ht(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var ep=["emphasis","blur","select"],ET={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function D0(r,t,e,n){e=e||"itemStyle";for(var i=0;i<ep.length;i++){var a=ep[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[ET[e]]()}}function ci(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Ua(r){return!!(r&&r.__highDownDispatcher)}function kT(r){var t=Kd[r];return t==null&&qd<=32&&(t=Kd[r]=qd++),t}function Ch(r){var t=r.type;return t===Qs||t===Sh||t===js}function rp(r){var t=r.type;return t===Bn||t===Ls}function OT(r){var t=y0(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var $n=Di.CMD,BT=[[],[],[]],np=Math.sqrt,NT=Math.atan2;function zT(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,l,u,f=$n.M,h=$n.C,c=$n.L,v=$n.R,d=$n.A,p=$n.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],y=t[5],m=np(t[0]*t[0]+t[1]*t[1]),_=np(t[2]*t[2]+t[3]*t[3]),x=NT(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=x,e[o++]+=x,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],Te(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Te(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var S=BT[l];S[0]=e[o++],S[1]=e[o++],Te(S,S,t),e[s++]=S[0],e[s++]=S[1]}}r.increaseVersion()}}var Uu=Math.sqrt,Oo=Math.sin,Bo=Math.cos,Yi=Math.PI;function ip(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Mh(r,t){return(r[0]*t[0]+r[1]*t[1])/(ip(r)*ip(t))}function ap(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Mh(r,t))}function op(r,t,e,n,i,a,o,s,l,u,f){var h=l*(Yi/180),c=Bo(h)*(r-e)/2+Oo(h)*(t-n)/2,v=-1*Oo(h)*(r-e)/2+Bo(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Uu(d),s*=Uu(d));var p=(i===a?-1:1)*Uu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=p*o*v/s,y=p*-s*c/o,m=(r+e)/2+Bo(h)*g-Oo(h)*y,_=(t+n)/2+Oo(h)*g+Bo(h)*y,x=ap([1,0],[(c-g)/o,(v-y)/s]),S=[(c-g)/o,(v-y)/s],w=[(-1*c-g)/o,(-1*v-y)/s],b=ap(S,w);if(Mh(S,w)<=-1&&(b=Yi),Mh(S,w)>=1&&(b=0),b<0){var C=Math.round(b/Yi*1e6)/1e6;b=Yi*2+C%2*Yi}f.addData(u,m,_,o,s,x,b,h,a)}var FT=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,VT=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function HT(r){var t=new Di;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=Di.CMD,l=r.match(FT);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(VT)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,x=void 0,S=void 0,w=void 0,b=void 0,C=e,D=n,L=void 0,M=void 0;switch(h){case"l":e+=v[g++],n+=v[g++],c=s.L,t.addData(c,e,n);break;case"L":e=v[g++],n=v[g++],c=s.L,t.addData(c,e,n);break;case"m":e+=v[g++],n+=v[g++],c=s.M,t.addData(c,e,n),i=e,a=n,h="l";break;case"M":e=v[g++],n=v[g++],c=s.M,t.addData(c,e,n),i=e,a=n,h="L";break;case"h":e+=v[g++],c=s.L,t.addData(c,e,n);break;case"H":e=v[g++],c=s.L,t.addData(c,e,n);break;case"v":n+=v[g++],c=s.L,t.addData(c,e,n);break;case"V":n=v[g++],c=s.L,t.addData(c,e,n);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],n=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n),e+=v[g-2],n+=v[g-1];break;case"S":y=e,m=n,L=t.len(),M=t.data,o===s.C&&(y+=e-M[L-4],m+=n-M[L-3]),c=s.C,C=v[g++],D=v[g++],e=v[g++],n=v[g++],t.addData(c,y,m,C,D,e,n);break;case"s":y=e,m=n,L=t.len(),M=t.data,o===s.C&&(y+=e-M[L-4],m+=n-M[L-3]),c=s.C,C=e+v[g++],D=n+v[g++],e+=v[g++],n+=v[g++],t.addData(c,y,m,C,D,e,n);break;case"Q":C=v[g++],D=v[g++],e=v[g++],n=v[g++],c=s.Q,t.addData(c,C,D,e,n);break;case"q":C=v[g++]+e,D=v[g++]+n,e+=v[g++],n+=v[g++],c=s.Q,t.addData(c,C,D,e,n);break;case"T":y=e,m=n,L=t.len(),M=t.data,o===s.Q&&(y+=e-M[L-4],m+=n-M[L-3]),e=v[g++],n=v[g++],c=s.Q,t.addData(c,y,m,e,n);break;case"t":y=e,m=n,L=t.len(),M=t.data,o===s.Q&&(y+=e-M[L-4],m+=n-M[L-3]),e+=v[g++],n+=v[g++],c=s.Q,t.addData(c,y,m,e,n);break;case"A":_=v[g++],x=v[g++],S=v[g++],w=v[g++],b=v[g++],C=e,D=n,e=v[g++],n=v[g++],c=s.A,op(C,D,e,n,w,b,_,x,S,c,t);break;case"a":_=v[g++],x=v[g++],S=v[g++],w=v[g++],b=v[g++],C=e,D=n,e+=v[g++],n+=v[g++],c=s.A,op(C,D,e,n,w,b,_,x,S,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=i,n=a),o=c}return t.toStatic(),t}var A0=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(St);function L0(r){return r.setData!=null}function I0(r,t){var e=HT(r),n=O({},t);return n.buildPath=function(i){var a=L0(i);if(a&&i.canSave()){i.appendPath(e);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&e.rebuildPath(o,1)}},n.applyTransform=function(i){zT(e,i),this.dirtyShape()},n}function GT(r,t){return new A0(I0(r,t))}function WT(r,t){var e=I0(r,t),n=function(i){F(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(A0);return n}function UT(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new St(t);return o.createPathProxy(),o.buildPath=function(s){if(L0(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var YT=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Gl=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new YT},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(St);Gl.prototype.type="circle";var XT=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Hv=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new XT},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(St);Hv.prototype.type="ellipse";var P0=Math.PI,Yu=P0*2,gn=Math.sin,qn=Math.cos,ZT=Math.acos,Xt=Math.atan2,sp=Math.abs,Ia=Math.sqrt,ya=Math.max,Xe=Math.min,Re=1e-4;function $T(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=h*l-f*u;if(!(c*c<Re))return c=(f*(t-a)-h*(r-i))/c,[r+c*l,t+c*u]}function No(r,t,e,n,i,a,o){var s=r-e,l=t-n,u=(o?a:-a)/Ia(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,p=n+h,g=(c+d)/2,y=(v+p)/2,m=d-c,_=p-v,x=m*m+_*_,S=i-a,w=c*p-d*v,b=(_<0?-1:1)*Ia(ya(0,S*S*x-w*w)),C=(w*_-m*b)/x,D=(-w*m-_*b)/x,L=(w*_+m*b)/x,M=(-w*m+_*b)/x,R=C-g,A=D-y,I=L-g,P=M-y;return R*R+A*A>I*I+P*P&&(C=L,D=M),{cx:C,cy:D,x0:-f,y0:-h,x1:C*(i/S-1),y1:D*(i/S-1)}}function qT(r){var t;if(N(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function KT(r,t){var e,n=ya(t.r,0),i=ya(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 l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=sp(u-l),d=v>Yu&&v%Yu;if(d>Re&&(v=d),!(n>Re))r.moveTo(f,h);else if(v>Yu-Re)r.moveTo(f+n*qn(l),h+n*gn(l)),r.arc(f,h,n,l,u,!c),i>Re&&(r.moveTo(f+i*qn(u),h+i*gn(u)),r.arc(f,h,i,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,x=void 0,S=void 0,w=void 0,b=void 0,C=void 0,D=void 0,L=void 0,M=void 0,R=void 0,A=void 0,I=void 0,P=n*qn(l),E=n*gn(l),B=i*qn(u),k=i*gn(u),V=v>Re;if(V){var z=t.cornerRadius;z&&(e=qT(z),p=e[0],g=e[1],y=e[2],m=e[3]);var U=sp(n-i)/2;if(_=Xe(U,y),x=Xe(U,m),S=Xe(U,p),w=Xe(U,g),D=b=ya(_,x),L=C=ya(S,w),(b>Re||C>Re)&&(M=n*qn(u),R=n*gn(u),A=i*qn(l),I=i*gn(l),v<P0)){var H=$T(P,E,A,I,M,R,B,k);if(H){var tt=P-H[0],pt=E-H[1],Nt=M-H[0],Kt=R-H[1],Ht=1/gn(ZT((tt*Nt+pt*Kt)/(Ia(tt*tt+pt*pt)*Ia(Nt*Nt+Kt*Kt)))/2),ot=Ia(H[0]*H[0]+H[1]*H[1]);D=Xe(b,(n-ot)/(Ht+1)),L=Xe(C,(i-ot)/(Ht-1))}}}if(!V)r.moveTo(f+P,h+E);else if(D>Re){var j=Xe(y,D),lt=Xe(m,D),X=No(A,I,P,E,n,j,c),K=No(M,R,B,k,n,lt,c);r.moveTo(f+X.cx+X.x0,h+X.cy+X.y0),D<b&&j===lt?r.arc(f+X.cx,h+X.cy,D,Xt(X.y0,X.x0),Xt(K.y0,K.x0),!c):(j>0&&r.arc(f+X.cx,h+X.cy,j,Xt(X.y0,X.x0),Xt(X.y1,X.x1),!c),r.arc(f,h,n,Xt(X.cy+X.y1,X.cx+X.x1),Xt(K.cy+K.y1,K.cx+K.x1),!c),lt>0&&r.arc(f+K.cx,h+K.cy,lt,Xt(K.y1,K.x1),Xt(K.y0,K.x0),!c))}else r.moveTo(f+P,h+E),r.arc(f,h,n,l,u,!c);if(!(i>Re)||!V)r.lineTo(f+B,h+k);else if(L>Re){var j=Xe(p,L),lt=Xe(g,L),X=No(B,k,M,R,i,-lt,c),K=No(P,E,A,I,i,-j,c);r.lineTo(f+X.cx+X.x0,h+X.cy+X.y0),L<C&&j===lt?r.arc(f+X.cx,h+X.cy,L,Xt(X.y0,X.x0),Xt(K.y0,K.x0),!c):(lt>0&&r.arc(f+X.cx,h+X.cy,lt,Xt(X.y0,X.x0),Xt(X.y1,X.x1),!c),r.arc(f,h,i,Xt(X.cy+X.y1,X.cx+X.x1),Xt(K.cy+K.y1,K.cx+K.x1),c),j>0&&r.arc(f+K.cx,h+K.cy,j,Xt(K.y1,K.x1),Xt(K.y0,K.x0),!c))}else r.lineTo(f+B,h+k),r.arc(f,h,i,u,l,c)}r.closePath()}}}var QT=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Jr=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new QT},t.prototype.buildPath=function(e,n){KT(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(St);Jr.prototype.type="sector";var jT=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Gv=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new jT},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(St);Gv.prototype.type="ring";function JT(r,t,e,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)li(f,f,r[c]),ui(h,h,r[c]);li(f,f,n[0]),ui(h,h,n[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){i.push(E1(r[c]));continue}else l=r[c-1],u=r[c+1];bm(a,u,l),ou(a,a,t);var p=jf(d,l),g=jf(d,u),y=p+g;y!==0&&(p/=y,g/=y),ou(o,a,-p),ou(s,a,g);var m=jc([],d,o),_=jc([],d,s);n&&(ui(m,m,f),li(m,m,h),ui(_,_,f),li(_,_,h)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function R0(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=JT(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}e&&r.closePath()}}var tC=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),po=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tC},t.prototype.buildPath=function(e,n){R0(e,n,!0)},t}(St);po.prototype.type="polygon";var eC=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),zi=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new eC},t.prototype.buildPath=function(e,n){R0(e,n,!1)},t}(St);zi.prototype.type="polyline";var rC={},nC=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),xr=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nC},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var l=p0(rC,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(e.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t}(St);xr.prototype.type="line";var ne=[],iC=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function lp(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?hd:te)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?hd:te)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?vd:ae)(r.x1,r.cpx1,r.x2,t),(e?vd:ae)(r.y1,r.cpy1,r.y2,t)]}var Wl=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iC},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(e.moveTo(i,a),f==null||h==null?(c<1&&(Hs(i,l,o,c,ne),l=ne[1],o=ne[2],Hs(a,u,s,c,ne),u=ne[1],s=ne[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(Vs(i,l,f,o,c,ne),l=ne[1],f=ne[2],o=ne[3],Vs(a,u,h,s,c,ne),u=ne[1],h=ne[2],s=ne[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return lp(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=lp(this.shape,e,!0);return bv(n,n)},t}(St);Wl.prototype.type="bezier-curve";var aC=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Ul=function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new aC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+i,h*o+a),e.arc(i,a,o,s,l,!u)},t}(St);Ul.prototype.type="arc";var E0=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),St.prototype.getBoundingRect.call(this)},t}(St),k0=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),oC=function(r){F(t,r);function t(e,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(k0),sC=function(r){F(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(k0),Xu=Math.min,lC=Math.max,zo=Math.abs,yn=[0,0],mn=[0,0],Vt=Dm(),Fo=Vt.minTv,Vo=Vt.maxTv,O0=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new nt;for(var n=0;n<2;n++)this._axes[n]=new nt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),e)for(var u=0;u<4;u++)n[u].transform(e);nt.sub(i[0],n[1],n[0]),nt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(t,e,n){var i=!0,a=!e;return e&&nt.set(e,0,0),Vt.reset(n,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a)||!a&&!Vt.negativeSize&&nt.copy(e,i?Vt.useDir?Vt.dirMinTv:Fo:Vo),i},r.prototype._intersectCheckOneSide=function(t,e,n,i){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,yn),t._getProjMinMaxOnAxis(o,e._corners,mn),Vt.negativeSize||yn[1]<mn[0]||yn[0]>mn[1]){if(a=!1,Vt.negativeSize||n)return a;var l=zo(mn[0]-yn[1]),u=zo(yn[0]-mn[1]);Xu(l,u)>Vo.len()&&(l<u?nt.scale(Vo,s,-l*i):nt.scale(Vo,s,u*i))}else if(!n){var l=zo(mn[0]-yn[1]),u=zo(yn[0]-mn[1]);(Vt.useDir||Xu(l,u)<Fo.len())&&((l<u||!Vt.bidirectional)&&(nt.scale(Fo,s,l*i),Vt.useDir&&Vt.calcDirMTV()),(l>=u||!Vt.bidirectional)&&(nt.scale(Fo,s,-u*i),Vt.useDir&&Vt.calcDirMTV()))}}return a},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(i)+a[t];s=Xu(f,s),l=lC(f,l)}n[0]=s+Vt.touchThreshold,n[1]=l-Vt.touchThreshold,Vt.negativeSize=n[1]<n[0]},r}(),uC=[],fC=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new at(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(uC)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,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(e,n))return!0}return!1},t}(Qr),hC=ft();function Wv(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=J(n.duration,200),f=J(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),rt(h)&&(h=h(e,i)),rt(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function Uv(r,t,e,n,i,a,o){var s=!1,l;rt(i)?(o=a,a=i,i=null):Q(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Wv(r,n,i,u?l||{}: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:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function De(r,t,e,n,i,a){Uv("update",r,t,e,n,i,a)}function pr(r,t,e,n,i,a){Uv("enter",r,t,e,n,i,a)}function Pa(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function B0(r,t,e,n,i,a){Pa(r)||Uv("leave",r,t,e,n,i,a)}function up(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),B0(r,{style:{opacity:0}},t,e,n)}function Ra(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||up(i,t,e,n)}):up(r,t,e,n)}function N0(r){hC(r).oldStyle=r.style}var Dh={},Pr=["x","y"],Ai=["width","height"];function vC(r){return St.extend(r)}var cC=WT;function dC(r,t){return cC(r,t)}function Ve(r,t){Dh[r]=t}function Ah(r){if(Dh.hasOwnProperty(r))return Dh[r]}function Ya(r,t,e,n){var i=GT(r,t);return e&&(n==="center"&&(e=F0(e,i.getBoundingRect())),V0(i,e)),i}function z0(r,t,e){var n=new jr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle(F0(t,a))}}});return n}function F0(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var pC=UT;function V0(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Xa(r,t){return p0(r,r,{lineWidth:t}),r}function gC(r,t){return g0(r,r,t),r}var yC=In;function H0(r,t){for(var e=Cv([]);r&&r!==t;)Ca(e,r.getLocalTransform(),e),r=r.parent;return e}function Za(r,t,e){return t&&!re(t)&&(t=Av.getLocalTransform(t)),e&&(t=lo([],t)),Te([],r,t)}function G0(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Qe(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Qe(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=Za(a,t,e),Qe(a[0])>Qe(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function fp(r){return!r.isGroup}function mC(r){return r.shape!=null}function W0(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){fp(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return mC(o)&&(s.shape=ut(o.shape)),s}var a=n(r);t.traverse(function(o){if(fp(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),De(o,l,e,ht(o).dataIndex)}}})}function _C(r,t){return $(r,function(e){var n=e[0];n=ue(n,t.x),n=Ga(n,t.x+t.width);var i=e[1];return i=ue(i,t.y),i=Ga(i,t.y+t.height),[n,i]})}function xC(r,t){var e=ue(r.x,t.x),n=Ga(r.x+r.width,t.x+t.width),i=ue(r.y,t.y),a=Ga(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function Yv(r,t,e){var n=O({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),dt(i,e),new jr(n)):Ya(r.replace("path://",""),n,e,"center")}function SC(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(U0(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function U0(r,t,e,n,i,a,o,s){var l=e-r,u=n-t,f=o-i,h=s-a,c=Zu(f,h,l,u);if(wC(c))return!1;var v=r-i,d=t-a,p=Zu(v,d,l,u)/c;if(p<0||p>1)return!1;var g=Zu(v,d,f,h)/c;return!(g<0||g>1)}function Zu(r,t,e,n){return r*n-e*t}function wC(r){return r<=1e-6&&r>=-1e-6}function nl(r,t,e,n,i){return t==null||(bt(t)?Ct[0]=Ct[1]=Ct[2]=Ct[3]=t:(Ct[0]=t[0],Ct[1]=t[1],Ct[2]=t[2],Ct[3]=t[3]),n&&(Ct[0]=ue(0,Ct[0]),Ct[1]=ue(0,Ct[1]),Ct[2]=ue(0,Ct[2]),Ct[3]=ue(0,Ct[3])),e&&(Ct[0]=-Ct[0],Ct[1]=-Ct[1],Ct[2]=-Ct[2],Ct[3]=-Ct[3]),hp(r,Ct,"x","width",3,1,i&&i[0]||0),hp(r,Ct,"y","height",0,2,i&&i[1]||0)),r}var Ct=[0,0,0,0];function hp(r,t,e,n,i,a,o){var s=t[a]+t[i],l=r[n];r[n]+=s,o=ue(0,Ga(o,l)),r[n]<o?(r[n]=o,r[e]+=t[i]>=0?-t[i]:t[a]>=0?l+t[a]:Qe(s)>1e-8?(l-o)*t[i]/s:0):r[e]-=t[i]}function Yl(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=Z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(yt(l),function(f){W(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ht(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:dt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Lh(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function go(r,t){if(r)if(N(r))for(var e=0;e<r.length;e++)Lh(r[e],t);else Lh(r,t)}function Xv(r){return!r||Qe(r[1])<Ho&&Qe(r[2])<Ho||Qe(r[0])<Ho&&Qe(r[3])<Ho}var Ho=1e-5;function $a(r,t){return r?at.copy(r,t):t.clone()}function Zv(r,t){return t?Cm(r||Je(),t):void 0}function Li(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function bC(r){var t=-1/0,e=1/0;Lh(r,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<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function $v(r,t,e){Y0(r,t,e,-1/0)}function Y0(r,t,e,n){if(r.ignoreModelZ)return n;var i=r.getTextContent(),a=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)n=ue(Y0(s[l],t,e,n),n);else r.z=t,r.zlevel=e,n=ue(r.z2||0,n);if(i&&(i.z=t,i.zlevel=e,isFinite(n)&&(i.z2=n+2)),a){var u=r.textGuideLineConfig;a.z=t,a.zlevel=e,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Ve("circle",Gl);Ve("ellipse",Hv);Ve("sector",Jr);Ve("ring",Gv);Ve("polygon",po);Ve("polyline",zi);Ve("rect",Tt);Ve("line",xr);Ve("bezierCurve",Wl);Ve("arc",Ul);const TC=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ul,BezierCurve:Wl,BoundingRect:at,Circle:Gl,CompoundPath:E0,Ellipse:Hv,Group:Lt,Image:jr,IncrementalDisplayable:fC,Line:xr,LinearGradient:oC,OrientedBoundingRect:O0,Path:St,Point:nt,Polygon:po,Polyline:zi,RadialGradient:sC,Rect:Tt,Ring:Gv,Sector:Jr,Text:zt,WH:Ai,XY:Pr,applyTransform:Za,calcZ2Range:bC,clipPointsByRect:_C,clipRectByRect:xC,createIcon:Yv,ensureCopyRect:$a,ensureCopyTransform:Zv,expandOrShrinkRect:nl,extendPath:dC,extendShape:vC,getShapeClass:Ah,getTransform:H0,groupTransition:W0,initProps:pr,isBoundingRectAxisAligned:Xv,isElementRemoved:Pa,lineLineIntersect:U0,linePolygonIntersect:SC,makeImage:z0,makePath:Ya,mergePath:pC,registerShape:Ve,removeElement:B0,removeElementWithFadeOut:Ra,resizePath:V0,retrieveZInfo:Li,setTooltipConfig:Yl,subPixelOptimize:yC,subPixelOptimizeLine:Xa,subPixelOptimizeRect:gC,transformDirection:G0,traverseElements:go,traverseUpdateZ:$v,updateProps:De},Symbol.toStringTag,{value:"Module"}));var Xl={};function CC(r,t){for(var e=0;e<Me.length;e++){var n=Me[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function vp(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=rt(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var l={normal:s},u=0;u<Me.length;u++){var f=Me[u],h=t[f];l[f]=J(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function yo(r,t,e,n){e=e||Xl;for(var i=r instanceof zt,a=!1,o=0;o<Ks.length;o++){var s=t[Ks[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new zt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=vp(e,t),f=t.normal,h=!!f.getShallow("show"),c=he(f,n,e,!1,!i);c.text=u.normal,i||r.setTextConfig(il(f,e,!1));for(var o=0;o<Me.length;o++){var v=Me[o],s=t[v];if(s){var d=l.ensureState(v),p=!!J(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=he(s,n,e,!0,!i),d.style.text=u[v],!i){var g=r.ensureState(v);g.textConfig=il(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(qv(l).setLabelText=function(y){var m=vp(e,t,y);CC(l,m)})}else l&&(l.ignore=!0);r.dirty()}function mo(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<Me.length;n++){var i=Me[n];e[i]=r.getModel([i,t])}return e}function he(r,t,e,n,i){var a={};return MC(a,r,e,n,i),t&&O(a,t),a}function il(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=J(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?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=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function MC(r,t,e,n,i){e=e||Xl;var a=t.ecModel,o=a&&a.option.textStyle,s=DC(t),l;if(s){l={};var u="richInheritPlainLabel",f=J(t.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=t.getModel(["rich",h]);gp(l[h]={},c,o,t,f,e,n,i,!1,!0)}}l&&(r.rich=l);var v=t.get("overflow");v&&(r.overflow=v);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=t.get("minMargin");if(g!=null)g=bt(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=di.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=kl(y),p.__marginType=di.textMargin)}gp(r,t,o,null,null,e,n,i,!0,!1)}function DC(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Xl).rich;if(e){t=t||{};for(var n=yt(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var cp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],pp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gp(r,t,e,n,i,a,o,s,l,u){e=!o&&e||Xl;var f=a&&a.inheritColor,h=t.getShallow("color"),c=t.getShallow("textBorderColor"),v=J(t.getShallow("opacity"),e.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(h=h||e.color,c=c||e.textBorderColor),h!=null&&(r.fill=h),c!=null&&(r.stroke=c);var d=J(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var p=J(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var g=J(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&v==null&&!u&&(v=a&&a.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&a.inheritColor&&(r.fill=a.inheritColor);for(var y=0;y<cp.length;y++){var m=cp[y],_=i!==!1&&n?zr(t.getShallow(m),n.getShallow(m),e[m]):J(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var y=0;y<dp.length;y++){var m=dp[y],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(r.verticalAlign=x)}if(!l||!a.disableBox){for(var y=0;y<pp.length;y++){var m=pp[y],_=t.getShallow(m);_!=null&&(r[m]=_)}var S=t.getShallow("borderType");S!=null&&(r.borderDash=S),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function X0(r,t){var e=t&&t.getModel("textStyle");return Ke([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var qv=ft();function AC(r,t,e,n){if(r){var i=qv(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var di={minMargin:1,textMargin:2},LC=["textStyle","color"],$u=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],qu=new zt,IC=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(LC):null)},r.prototype.getFont=function(){return X0({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<$u.length;n++)e[$u[n]]=this.getShallow($u[n]);return qu.useStyle(e),qu.update(),qu.getBoundingRect()},r}(),Z0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],PC=Mi(Z0),RC=function(){function r(){}return r.prototype.getLineStyle=function(t){return PC(this,t)},r}(),$0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],EC=Mi($0),kC=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return EC(this,t,e)},r}(),Mt=function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){ct(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(ut(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!it.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var 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&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r}();Rv(Mt);Mb(Mt);ze(Mt,RC);ze(Mt,kC);ze(Mt,Pb);ze(Mt,IC);var OC=Math.round(Math.random()*10);function Zl(r){return[r||"",OC++].join("_")}function BC(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=je(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=je(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function NC(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(T(a,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],p=!!c[v];p&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),T(d.successor,p?y:g)}T(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,g(m)}};function e(a){var o={},s=[];return T(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),T(h,function(c){st(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);st(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return T(a,function(l){st(o,l)>=0&&s.push(l)}),s}}function $l(r,t){return ct(ct({},r,!0),t,!0)}const zC={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:". "}}}},FC={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 al="ZH",Kv="EN",yi=Kv,Is={},Qv={},q0=it.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||yi).toUpperCase();return r.indexOf(al)>-1?al:yi}():yi;function K0(r,t){r=r.toUpperCase(),Qv[r]=new Mt(t),Is[r]=t}function VC(r){if(Z(r)){var t=Is[r.toUpperCase()]||{};return r===al||r===Kv?ut(t):ct(ut(t),ut(Is[yi]),!1)}else return ct(ut(r),ut(Is[yi]),!1)}function HC(r){return Qv[r]}function GC(){return Qv[yi]}K0(Kv,zC);K0(al,FC);var WC=null;function ol(){return WC}var jv=1e3,Jv=jv*60,Ea=Jv*60,be=Ea*24,yp=be*365,UC={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})/},Ps={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},YC="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Go="{yyyy}-{MM}-{dd}",mp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Go,hour:Go+" "+Ps.hour,minute:Go+" "+Ps.minute,second:Go+" "+Ps.second,millisecond:YC},Nn=["year","month","day","hour","minute","second","millisecond"],XC=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ZC(r){return!Z(r)&&!rt(r)?$C(r):r}function $C(r){r=r||{};var t={},e=!0;return T(Nn,function(n){e&&(e=r[n]==null)}),T(Nn,function(n,i){var a=r[n];t[n]={};for(var o=null,s=i;s>=0;s--){var l=Nn[s],u=Q(a)&&!N(a)?a[l]:a,f=void 0;N(u)?(f=u.slice(),o=f[0]||""):Z(u)?(o=u,f=[o]):(o==null?o=Ps[n]:UC[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function Cr(r,t){return r+="","0000".substr(0,t-r.length)+r}function ka(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function qC(r){return r===ka(r)}function KC(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ql(r,t,e,n){var i=Ni(r),a=i[Q0(e)](),o=i[tc(e)]()+1,s=Math.floor((o-1)/3)+1,l=i[ec(e)](),u=i["get"+(e?"UTC":"")+"Day"](),f=i[rc(e)](),h=(f-1)%12+1,c=i[nc(e)](),v=i[ic(e)](),d=i[ac(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof Mt?n:HC(n||q0)||GC(),m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),S=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Cr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,Cr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Cr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Cr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Cr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Cr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Cr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Cr(d,3)).replace(/{S}/g,d+"")}function QC(r,t,e,n,i){var a=null;if(Z(e))a=e;else if(rt(e)){var o={time:r.time,level:r.time.level},s=ol();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),a=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=sl(r.value,i);a=e[f][f][0]}}return ql(new Date(r.value),a,i,n)}function sl(r,t){var e=Ni(r),n=e[tc(t)]()+1,i=e[ec(t)](),a=e[rc(t)](),o=e[nc(t)](),s=e[ic(t)](),l=e[ac(t)](),u=l===0,f=u&&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":u?"second":"millisecond"}function Ih(r,t,e){switch(t){case"year":r[j0(e)](0);case"month":r[J0(e)](1);case"day":r[t_(e)](0);case"hour":r[e_(e)](0);case"minute":r[r_(e)](0);case"second":r[n_(e)](0)}return r}function Q0(r){return r?"getUTCFullYear":"getFullYear"}function tc(r){return r?"getUTCMonth":"getMonth"}function ec(r){return r?"getUTCDate":"getDate"}function rc(r){return r?"getUTCHours":"getHours"}function nc(r){return r?"getUTCMinutes":"getMinutes"}function ic(r){return r?"getUTCSeconds":"getSeconds"}function ac(r){return r?"getUTCMilliseconds":"getMilliseconds"}function jC(r){return r?"setUTCFullYear":"setFullYear"}function j0(r){return r?"setUTCMonth":"setMonth"}function J0(r){return r?"setUTCDate":"setDate"}function t_(r){return r?"setUTCHours":"setHours"}function e_(r){return r?"setUTCMinutes":"setMinutes"}function r_(r){return r?"setUTCSeconds":"setSeconds"}function n_(r){return r?"setUTCMilliseconds":"setMilliseconds"}function i_(r){if(!rb(r))return Z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function a_(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Kl=kl;function Ph(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ke(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Ni(r):r;if(isNaN(+l)){if(s)return"-"}else return ql(l,n,e)}if(t==="ordinal")return Kf(r)?i(r):bt(r)&&a(r)?r+"":"-";var u=Zs(r);return a(u)?i_(u):Kf(r)?i(r):typeof r=="boolean"?r+"":"-"}var _p=["a","b","c","d","e","f","g"],Ku=function(r,t){return"{"+r+(t??"")+"}"};function o_(r,t,e){N(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=_p[a];r=r.replace(Ku(o),Ku(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];r=r.replace(Ku(_p[l],s),e?ie(u):u)}return r}function JC(r,t){var e=Z(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.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:'+ie(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ie(n)+";"+(t||"")+'"></span>';var o=e.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 qa(r,t){return t=t||"transparent",Z(r)?r:Q(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Rh(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Rs={},Qu={},oc=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=n(Rs),this._normalMasterList=n(Qu);function n(i,a){var o=[];return T(i,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){T(this._normalMasterList,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Rs[t]=e;return}Qu[t]=e},r.get=function(t){return Qu[t]||Rs[t]},r}();function tM(r){return!!Rs[r]}var Eh={coord:1,coord2:2};function eM(r){s_.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var s_=et();function rM(r){var t=r.getShallow("coord",!0),e=Eh.coord;if(t==null){var n=s_.get(r.type);n&&n.getCoord2&&(e=Eh.coord2,t=n.getCoord2(r))}return{coord:t,from:e}}var cr={none:0,dataCoordSys:1,boxCoordSys:2};function nM(r,t){var e=r.getShallow("coordinateSystem"),n=r.getShallow("coordinateSystemUsage",!0),i=cr.none;if(e){var a=r.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=cr.dataCoordSys,a||(i=cr.none)):n==="box"&&(i=cr.boxCoordSys,!a&&!tM(e)&&(i=cr.none))}return{coordSysType:e,kind:i}}function iM(r){var t=r.targetModel,e=r.coordSysType,n=r.coordSysProvider,i=r.isDefaultDataCoordSys,a=nM(t),o=a.kind,s=a.coordSysType;if(i&&o!==cr.dataCoordSys&&(o=cr.dataCoordSys,s=e),o===cr.none||s!==e)return!1;var l=n(e,t);return l?(o===cr.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var Es=T,aM=["left","right","top","bottom","width","height"],Wo=[["width","left","right"],["height","top","bottom"]];function sc(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=a+p,v>n||l.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>i||l.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Oa=sc;vt(sc,"vertical");vt(sc,"horizontal");function oM(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function sM(r,t){var e=zn(r,t,{enableLayoutOnlyByCenter:!0}),n=r.getBoxLayoutParams(),i,a;if(e.type===ma.point)a=e.refPoint,i=Ae(n,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=N(o)?o:[o,o];i=Ae(n,e.refContainer),a=e.boxCoordFrom===Eh.coord2?e.refPoint:[xt(s[0],i.width)+i.x,xt(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function lM(r,t){var e=sM(r,t),n=e.viewRect,i=e.center,a=r.get("radius");N(a)||(a=[0,a]);var o=xt(n.width,t.getWidth()),s=xt(n.height,t.getHeight()),l=Math.min(o,s),u=xt(a[0],l/2),f=xt(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function Ae(r,t,e){e=Kl(e||0);var n=t.width,i=t.height,a=xt(r.left,n),o=xt(r.top,i),s=xt(r.right,n),l=xt(r.bottom,i),u=xt(r.width,n),f=xt(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-e[3];break;case"right":a=n-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new at((t.x||0)+a+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}var ma={rect:1,point:2};function zn(r,t,e){var n,i,a,o=r.boxCoordinateSystem,s;if(o){var l=rM(r),u=l.coord,f=l.from;if(o.dataToLayout){a=ma.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=ma.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=ma.rect),a===ma.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 uM(r,t,e,n,i,a){a=a||r,a.x=r.x,a.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Ae(dt({width:o.width,height:o.height},t),e,n),u=l.x-o.x,f=l.y-o.y;return a.x+=u,a.y+=f,a===r&&r.markRedraw(),!0}function Ka(r){var t=r.layoutMode||r.constructor.layoutMode;return Q(t)?t:t?{type:t}:null}function Zr(r,t,e){var n=e&&e.ignoreSize;!N(n)&&(n=[n,n]);var i=o(Wo[0],0),a=o(Wo[1],1);l(Wo[0],r,i),l(Wo[1],r,a);function o(u,f){var h={},c=0,v={},d=0,p=2;if(Es(u,function(m){v[m]=r[m]}),Es(u,function(m){W(t,m)&&(h[m]=v[m]=t[m]),s(h,m)&&c++,s(v,m)&&d++}),n[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!c)return v;if(c>=p)return h;for(var g=0;g<u.length;g++){var y=u[g];if(!W(h,y)&&W(r,y)){h[y]=r[y];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){Es(u,function(c){f[c]=h[c]})}}function Fi(r){return fM({},r)}function fM(r,t){return t&&r&&Es(aM,function(e){W(t,e)&&(r[e]=t[e])}),r}var hM=ft(),gt=function(r){F(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Zl("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Ka(this),a=i?Fi(e):{},o=n.getTheme();ct(e,o.get(this.mainType)),ct(e,this.getDefaultOption()),i&&Zr(e,a,i)},t.prototype.mergeOption=function(e,n){ct(this.option,e,!0);var i=Ka(this);i&&Zr(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!bb(e))return e.defaultOption;var n=hM(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=ct(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return ho(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return oM(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Mt);o0(gt,Mt);zl(gt);BC(gt);NC(gt,vM);function vM(r){var t=[];return T(gt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=$(t,function(e){return je(e).main}),r!=="dataset"&&st(t,"dataset")<=0&&t.unshift("dataset"),t}var G={color:{},darkColor:{},size:{}},It=G.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)"};O(It,{primary:It.neutral80,secondary:It.neutral70,tertiary:It.neutral60,quaternary:It.neutral50,disabled:It.neutral20,border:It.neutral30,borderTint:It.neutral20,borderShade:It.neutral40,background:It.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:It.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:It.neutral70,axisLineTint:It.neutral40,axisTick:It.neutral70,axisTickMinor:It.neutral60,axisLabel:It.neutral70,axisSplitLine:It.neutral15,axisMinorSplitLine:It.neutral05});for(var _n in It)if(It.hasOwnProperty(_n)){var xp=It[_n];_n==="theme"?G.darkColor.theme=It.theme.slice():_n==="highlight"?G.darkColor.highlight="rgba(255,231,130,0.4)":_n.indexOf("accent")===0?G.darkColor[_n]=Hr(xp,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):G.darkColor[_n]=Hr(xp,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}G.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var l_="";typeof navigator<"u"&&(l_=navigator.platform||"");var Kn="rgba(0, 0, 0, 0.2)",u_=G.color.theme[0],cM=Hr(u_,null,null,.9);const dM={darkMode:"auto",colorBy:"series",color:G.color.theme,gradientColor:[cM,u_],aria:{decal:{decals:[{color:Kn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Kn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Kn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Kn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Kn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Kn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:l_.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 f_=et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),ce="original",qt="arrayRows",Ie="objectRows",He="keyedColumns",Wr="typedArray",h_="unknown",ir="column",Fn="row",Gt={Must:1,Might:2,Not:3},v_=ft();function pM(r){v_(r).datasetMap=et()}function gM(r,t,e){var n={},i=lc(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,l=v_(s).datasetMap,u=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),T(r,function(p,g){var y=Q(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),n[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});T(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function yM(r,t,e){var n={},i=lc(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Ie||a===He)&&T(o,function(f,h){(Q(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var p=d_(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(p);var g=p===Gt.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===Gt.Not)&&(f.n=v),y(f)&&c[f.n]!==Gt.Not)return f;g||(p===Gt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function lc(r){var t=r.get("data",!0);if(!t)return ho(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ee).models[0]}function mM(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:ho(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ee).models}function c_(r,t){return d_(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function d_(r,t,e,n,i,a){var o,s=5;if(se(r))return Gt.Not;var l,u;if(n){var f=n[a];Q(f)?(l=f.name,u=f.type):Z(f)&&(l=f)}if(u!=null)return u==="ordinal"?Gt.Must:Gt.Not;if(t===qt){var h=r;if(e===Fn){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=x(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=x(d[a]))!=null)return o}}else if(t===Ie){var p=r;if(!l)return Gt.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=x(g[l]))!=null)return o}}else if(t===He){var y=r;if(!l)return Gt.Not;var c=y[l];if(!c||se(c))return Gt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=x(c[v]))!=null)return o}else if(t===ce)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=uo(g);if(!N(_))return Gt.Not;if((o=x(_[a]))!=null)return o}function x(S){var w=Z(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return w?Gt.Might:Gt.Not;if(w&&S!=="-")return Gt.Must}return Gt.Not}var _M=et();function xM(r,t,e){var n=_M.get(t);if(!n)return e;var i=n(r);return i?e.concat(i):e}var Sp=ft(),SM=ft(),uc=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Ot(this.get("color",!0)),a=this.get("colorLayer",!0);return p_(this,Sp,i,a,t,e,n)},r.prototype.clearColorPalette=function(){TM(this,Sp)},r}();function wM(r,t,e,n){var i=Ot(r.get(["aria","decal","decals"]));return p_(r,SM,i,null,t,e,n)}function bM(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function p_(r,t,e,n,i,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?e:bM(n,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function TM(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Uo,Xi,wp,bp="\0_ec_inner",CM=1,fc=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Mt(a),this._locale=new Mt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Mp(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Mp(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?wp(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=et(),u=n&&n.replaceMergeMainTypeMap;pM(this),T(e,function(h,c){h!=null&&(gt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?ut(h):ct(i[c],h,!0))}),u&&u.each(function(h,c){gt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),gt.topologicalTravel(s,gt.getAllClassMainTypes(),f,this);function f(h){var c=xM(this,h,Ot(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=lb(v,c,d);pb(p,h,gt),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;T(p,function(x,S){var w=x.existing,b=x.newOption;if(!b)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=h==="series",D=gt.getClass(h,x.keyInfo.subType,!C);if(!D)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===D)w.name=x.keyInfo.name,w.mergeOption(b,this),w.optionUpdated(b,!1);else{var L=O({componentIndex:S},x.keyInfo);w=new D(b,this,this,L),O(w,L),x.brandNew&&(w.__requireNewView=!0),w.init(b,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Uo(this)}this._seriesIndices||Uo(this)},t.prototype.getOption=function(){var e=ut(this.option);return T(e,function(n,i){if(gt.hasClass(i)){for(var a=Ot(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Wa(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[bp],e},t.prototype.setTheme=function(e){this._theme=new Mt(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);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(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],T(Ot(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Tp("id",a,s):o!=null?l=Tp("name",o,s):l=kt(s,function(u){return!!u}),Cp(l,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):kt(this._componentsMap.get(i),function(u){return!!u});return l(Cp(o,e));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?kt(u,e.filter):u}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(rt(e)){var o=n,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=Z(e)?a.get(e):Q(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=fe(e,null);return kt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return kt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return kt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Xi(this),T(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){T(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){Xi(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return T(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return Xi(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Xi(this);var i=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=et(i)},t.prototype.restoreData=function(e){Uo(this);var n=this._componentsMap,i=[];n.each(function(a,o){gt.hasClass(o)&&i.push(o)}),gt.topologicalTravel(i,gt.getAllClassMainTypes(),function(a){T(n.get(a),function(o){o&&(a!=="series"||!MM(o,e))&&o.restoreData()})})},t.internalField=function(){Uo=function(e){var n=e._seriesIndices=[];T(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=et(n)},Xi=function(e){},wp=function(e,n){e.option={},e.option[bp]=CM,e._componentsMap=et({series:[]}),e._componentsCount=et();var i=n.aria;Q(i)&&i.enabled==null&&(i.enabled=!0),DM(n,e._theme.option),ct(n,dM,!1),e._mergeOption(n,null)}}(),t}(Mt);function MM(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function DM(r,t){var e=r.color&&!r.colorLayer;T(t,function(n,i){i==="colorLayer"&&e||i==="color"&&r.color||gt.hasClass(i)||(typeof n=="object"?r[i]=r[i]?ct(r[i],n,!1):ut(n):r[i]==null&&(r[i]=n))})}function Tp(r,t,e){if(N(t)){var n=et();return T(t,function(a){if(a!=null){var o=fe(a,null);o!=null&&n.set(a,!0)}}),kt(e,function(a){return a&&n.get(a[r])})}else{var i=fe(t,null);return kt(e,function(a){return a&&i!=null&&a[r]===i})}}function Cp(r,t){return t.hasOwnProperty("subType")?kt(r,function(e){return e&&e.subType===t.subType}):r}function Mp(r){var t=et();return r&&T(Ot(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ze(fc,uc);var AM=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],g_=function(){function r(t){T(AM,function(e){this[e]=q(t[e],t)},this)}return r}(),LM=/^(min|max)?(.+)$/,IM=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(T(Ot(t.series),function(o){o&&o.data&&se(o.data)&&Qf(o.data)}),T(Ot(t.dataset),function(o){o&&o.source&&se(o.source)&&Qf(o.source)})),t=ut(t);var i=this._optionBackup,a=PM(t,e,!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},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],ut(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=ut(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)RM(i[l].query,e,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!kM(o,this._currentMediaIndices)&&(s=$(o,function(f){return ut(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function PM(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&N(u)&&T(u,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),T(l,function(v){return c(v)}),T(n,function(v){return c(v.option)});function c(v){T(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function RM(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return T(r,function(a,o){var s=o.match(LM);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();EM(n[u],a,l)||(i=!1)}}),i}function EM(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function kM(r,t){return r.join(",")===t.join(",")}var Pe=T,Qa=Q,Dp=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ju(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Dp.length;e<n;e++){var i=Dp[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?ct(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?ct(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Zt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,dt(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function _a(r){Zt(r,"itemStyle"),Zt(r,"lineStyle"),Zt(r,"areaStyle"),Zt(r,"label"),Zt(r,"labelLine"),Zt(r,"upperLabel"),Zt(r,"edgeLabel")}function Et(r,t){var e=Qa(r)&&r[t],n=Qa(e)&&e.textStyle;if(n)for(var i=0,a=Ld.length;i<a;i++){var o=Ld[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function me(r){r&&(_a(r),Et(r,"label"),r.emphasis&&Et(r.emphasis,"label"))}function OM(r){if(Qa(r)){ju(r),_a(r),Et(r,"label"),Et(r,"upperLabel"),Et(r,"edgeLabel"),r.emphasis&&(Et(r.emphasis,"label"),Et(r.emphasis,"upperLabel"),Et(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(ju(t),me(t));var e=r.markLine;e&&(ju(e),me(e));var n=r.markArea;n&&me(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!se(a))for(var o=0;o<a.length;o++)me(a[o]);T(r.categories,function(u){_a(u)})}if(i&&!se(i))for(var o=0;o<i.length;o++)me(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)me(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)N(l[o])?(me(l[o][0]),me(l[o][1])):me(l[o]);r.type==="gauge"?(Et(r,"axisLabel"),Et(r,"title"),Et(r,"detail")):r.type==="treemap"?(Zt(r.breadcrumb,"itemStyle"),T(r.levels,function(u){_a(u)})):r.type==="tree"&&_a(r.leaves)}}function ur(r){return N(r)?r:r?[r]:[]}function Ap(r){return(N(r)?r[0]:r)||{}}function BM(r,t){Pe(ur(r.series),function(n){Qa(n)&&OM(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Pe(e,function(n){Pe(ur(r[n]),function(i){i&&(Et(i,"axisLabel"),Et(i.axisPointer,"label"))})}),Pe(ur(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Et(i,"axisLabel"),Et(i&&i.axisPointer,"label")}),Pe(ur(r.calendar),function(n){Zt(n,"itemStyle"),Et(n,"dayLabel"),Et(n,"monthLabel"),Et(n,"yearLabel")}),Pe(ur(r.radar),function(n){Et(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)}),Pe(ur(r.geo),function(n){Qa(n)&&(me(n),Pe(ur(n.regions),function(i){me(i)}))}),Pe(ur(r.timeline),function(n){me(n),Zt(n,"label"),Zt(n,"itemStyle"),Zt(n,"controlStyle",!0);var i=n.data;N(i)&&T(i,function(a){Q(a)&&(Zt(a,"label"),Zt(a,"itemStyle"))})}),Pe(ur(r.toolbox),function(n){Zt(n,"iconStyle"),Pe(n.feature,function(i){Zt(i,"iconStyle")})}),Et(Ap(r.axisPointer),"label"),Et(Ap(r.tooltip).axisPointer,"label")}function NM(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function zM(r,t,e,n){for(var i=t.split(","),a=r,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]]=e)}function Lp(r){r&&T(FM,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var FM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],VM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ju=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Zi(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Ju.length;e++){var n=Ju[e][1],i=Ju[e][0];t[n]!=null&&(t[i]=t[n])}}function Ip(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Pp(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function HM(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function y_(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&y_(r[e].children,t)}function m_(r,t){BM(r,t),r.series=Ot(r.series),T(r.series,function(e){if(Q(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Ip(e.label);var i=e.data;if(i&&!se(i))for(var a=0;a<i.length;a++)Ip(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=NM(e,"pointer.color");o!=null&&zM(e,"itemStyle.color",o)}else if(n==="bar"){Zi(e),Zi(e.backgroundStyle),Zi(e.emphasis);var i=e.data;if(i&&!se(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Zi(i[a]),Zi(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),Pp(e),y_(e.data,Pp)}else n==="graph"||n==="sankey"?HM(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&dt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Lp(e)}}),r.dataRange&&(r.visualMap=r.dataRange),T(VM,function(e){var n=r[e];n&&(N(n)||(n=[n]),T(n,function(i){Lp(i)}))})}function GM(r){var t=et();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),t.each(function(e){if(e.length!==0){var n=e[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&e.reverse(),T(e,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),WM(e)}})}function WM(r){T(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,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 p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=Jw(c,m),p=m;break}}}return n[0]=c,n[1]=p,n})})}var Ql=function(){function r(t){this.data=t.data||(t.sourceFormat===He?{}:[]),this.sourceFormat=t.sourceFormat||h_,this.seriesLayoutBy=t.seriesLayoutBy||ir,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&c_(this,n)===Gt.Must&&(i.type="ordinal")}}return r}();function hc(r){return r instanceof Ql}function kh(r,t,e){e=e||x_(r);var n=t.seriesLayoutBy,i=YM(r,e,n,t.sourceHeader,t.dimensions),a=new Ql({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:ut(t)});return a}function __(r){return new Ql({data:r,sourceFormat:se(r)?Wr:ce})}function UM(r){return new Ql({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ut(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function x_(r){var t=h_;if(se(r))t=Wr;else if(N(r)){r.length===0&&(t=qt);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(N(i)||se(i)){t=qt;break}else if(Q(i)){t=Ie;break}}}}else if(Q(r)){for(var a in r)if(W(r,a)&&re(r[a])){t=He;break}}return t}function YM(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:Rp(i),startIndex:o,dimensionsDetectedCount:a};if(t===qt){var s=r;n==="auto"||n==null?Ep(function(u){u!=null&&u!=="-"&&(Z(u)?o==null&&(o=1):o=0)},e,s,10):o=bt(n)?n:n?1:0,!i&&o===1&&(i=[],Ep(function(u,f){i[f]=u!=null?u+"":""},e,s,1/0)),a=i?i.length:e===Fn?s.length:s[0]?s[0].length:null}else if(t===Ie)i||(i=XM(r));else if(t===He)i||(i=[],T(r,function(u,f){i.push(f)}));else if(t===ce){var l=uo(r[0]);a=N(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Rp(i),dimensionsDetectedCount:a}}function XM(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return yt(e)}function Rp(r){if(r){var t=et();return $(r,function(e,n){e=Q(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.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 Ep(r,t,e,n){if(t===Fn)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function S_(r){var t=r.sourceFormat;return t===Ie||t===He}var xn,Sn,wn,bn,kp,Op,w_=function(){function r(t,e){var n=hc(t)?t:__(t);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===Wr&&(this._offset=0,this._dimSize=e,this._data=i),Op(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Op=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=kp[vc(u,f)];if(O(o,v),u===Wr)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=b_(u,f);o.getItem=q(d,null,s,h,c);var p=T_(u,f);o.count=q(p,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};kp=(t={},t[qt+"_"+ir]={pure:!0,appendData:a},t[qt+"_"+Fn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ie]={pure:!0,appendData:a},t[He]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[ce]={appendData:a},t[Wr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Yo=function(r){N(r)||e0("series.data or dataset.source must be an array.")};xn={},xn[qt+"_"+ir]=Yo,xn[qt+"_"+Fn]=Yo,xn[Ie]=Yo,xn[He]=function(r,t){for(var e=0;e<t.length;e++){var n=t[e].name;n==null&&e0("dimension name must not be null/undefined.")}},xn[ce]=Yo;var Bp=function(r,t,e,n){return r[n]},ZM=(Sn={},Sn[qt+"_"+ir]=function(r,t,e,n){return r[n+t]},Sn[qt+"_"+Fn]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},Sn[Ie]=Bp,Sn[He]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;a[o]=l?l[n]:null}return a},Sn[ce]=Bp,Sn);function b_(r,t){var e=ZM[vc(r,t)];return e}var Np=function(r,t,e){return r.length},$M=(wn={},wn[qt+"_"+ir]=function(r,t,e){return Math.max(0,r.length-t)},wn[qt+"_"+Fn]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},wn[Ie]=Np,wn[He]=function(r,t,e){var n=e[0].name,i=n!=null?r[n]:null;return i?i.length:0},wn[ce]=Np,wn);function T_(r,t){var e=$M[vc(r,t)];return e}var tf=function(r,t,e){return r[t]},qM=(bn={},bn[qt]=tf,bn[Ie]=function(r,t,e){return r[e]},bn[He]=tf,bn[ce]=function(r,t,e){var n=uo(r);return n instanceof Array?n[t]:n},bn[Wr]=tf,bn);function C_(r){var t=qM[r];return t}function vc(r,t){return r===qt?r+"_"+t:r}function Ii(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return C_(a)(n,o,s)}else{var l=n;return a===ce&&(l=uo(n)),l}}}}var KM=/\{@(.+?)\}/g,cc=function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.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:e,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&N(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(rt(a))return l.status=e,l.dimensionIndex=i,a(l);if(Z(a)){var f=o_(a,l);return f.replace(KM,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=Ii(s,t,d);if(o&&N(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Ii(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function zp(r){var t,e;return Q(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Ba(r){return new QM(r)}var QM=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.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,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var p=this._progress;if(N(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){Fp.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Fp.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),N(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Fp=function(){var r,t,e,n,i,a={reset:function(l,u,f,h){t=l,r=u,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%i*e+Math.ceil(t/i),u=t>=r?null:l<n?l:t;return t++,u}}();function mi(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!bt(r)&&r!=null&&r!=="-"&&(r=+Ni(r)),r==null||r===""?NaN:Number(r))}et({number:function(r){return parseFloat(r)},time:function(r){return+Ni(r)},trim:function(r){return Z(r)?Ke(r):r}});var jM=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=bt(t)?t:Zs(t),i=bt(e)?e:Zs(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Z(t),l=Z(e);s&&(n=l?t:0),l&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),JM=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return mi(t,e)},r}();function tD(r,t){var e=new JM,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==ir&&Ut(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";W(l,y)&&Ut(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=b_(i,ir);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(n,a,s,p)},e.getRawData=q(eD,null,r)),e.cloneRawData=q(rD,null,r);var c=T_(i,ir);e.count=q(c,null,n,a,s);var v=C_(i);e.retrieveValue=function(p,g){var y=h(n,a,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return e.getDimensionInfo=q(nD,null,s,l),e.cloneAllDimensionInfo=q(iD,null,s),e}function eD(r){var t=r.sourceFormat;if(!dc(t)){var e="";Ut(e)}return r.data}function rD(r){var t=r.sourceFormat,e=r.data;if(!dc(t)){var n="";Ut(n)}if(t===qt){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===Ie){for(var i=[],a=0,o=e.length;a<o;a++)i.push(O({},e[a]));return i}}function nD(r,t,e){if(e!=null){if(bt(e)||!isNaN(e)&&!W(t,e))return r[e];if(W(t,e))return t[e]}}function iD(r){return ut(r)}var M_=et();function aD(r){r=ut(r);var t=r.type,e="";t||Ut(e);var n=t.split(":");n.length!==2&&Ut(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,M_.set(t,r)}function oD(r,t,e){var n=Ot(r),i=n.length,a="";i||Ut(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=sD(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function sD(r,t,e,n){var i="";t.length||Ut(i),Q(r)||Ut(i);var a=r.type,o=M_.get(a);o||Ut(i);var s=$(t,function(u){return tD(u,o)}),l=Ot(o.transform({upstream:s[0],upstreamList:s,config:ut(r.config)}));return $(l,function(u,f){var h="";Q(u)||Ut(h),u.data||Ut(h);var c=x_(u.data);dc(c)||Ut(h);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:ir,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:ir,sourceHeader:0,dimensions:u.dimensions};return kh(u.data,v,null)})}function dc(r){return r===qt||r===Ie}var jl="undefined",lD=typeof Uint32Array===jl?Array:Uint32Array,uD=typeof Uint16Array===jl?Array:Uint16Array,D_=typeof Int32Array===jl?Array:Int32Array,Vp=typeof Float64Array===jl?Array:Float64Array,A_={float:Vp,int:D_,ordinal:Array,number:Array,time:Vp},ef;function Qn(r){return r>65535?lD:uD}function jn(){return[1/0,-1/0]}function fD(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Hp(r,t,e,n,i){var a=A_[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(n)}var Oh=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=et()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=ef[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],S_(i),this._dimensions=$(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new A_[e||"float"](this._rawCount),this._rawExtent[a]=jn(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=jn());for(var l=a[t],u=o;u<s;u++){var f=n[u]=e.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=i[u];Hp(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],p=ef.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=jn()),Hp(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,l);else for(var c=[],v=t;v<e;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(c,u[d],v,d);p[v]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=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],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[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(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=Qn(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Qn(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var p=h[f][d];v=e(p,c)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][d];s[g]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=yt(t),a=i.length;if(!a)return this;var o=e.count(),s=Qn(e._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=v[i[0]],y=0;y<n;y++){var m=g[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],x=t[i[1]][0],S=t[i[1]][1],y=0;y<n;y++){var m=g[y],w=_[y];(m>=h&&m<=c||isNaN(m))&&(w>=x&&w<=S||isNaN(w))&&(l[u++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var b=e.getRawIndex(y),m=v[i[0]][b];(m>=h&&m<=c||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var C=!0,b=e.getRawIndex(y),D=0;D<a;D++){var L=i[D],m=v[L][b];(m<t[L][0]||m>t[L][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=jn();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=i[e[v]][c];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=i[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(Qn(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(m+=S)}m/=g-p;var w=d,b=Math.min(d+l,o),C=d-1,D=a[u];f=-1,c=w;for(var L=-1,M=0,_=w;_<b;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){M++,L<0&&(L=x);continue}h=Math.abs((C-y)*(S-D)-(C-_)*(m-D)),h>f&&(f=h,c=x)}M>0&&M<b-w&&(v[s++]=Math.min(L,c),c=Math.max(L,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/e),o=i[t],s=this.count(),l=new(Qn(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,h=f+g),m>d&&(d=m,v=f+g)}var _=this.getRawIndex(h),x=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=jn(),c=new(Qn(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){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:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=jn();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&_r(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?fD(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ut(this._extent),t._rawExtent=ut(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return mi(e[a],this._dimensions[a])}ef={arrayRows:t,objectRows:function(e,n,i,a){return mi(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return mi(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),hD=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(Xo(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=se(s)?Wr:ce,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=J(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=J(h.sourceHeader,c.sourceHeader),p=J(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;i=g?[kh(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[kh(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Gp(a)}var o,s=[],l=[];return T(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&Gp(h),s.push(f),l.push(u._getVersionSign())}),n?o=oD(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[UM(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Xo(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,n):(s=new Oh,s.initData(new w_(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Xo(t)){var e=lc(t);return e?[e.getSourceManager()]:[]}else return $(mM(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(Xo(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r}();function Xo(r){return r.mainType==="series"}function Gp(r){throw new Error(r)}var vD="line-height:1";function L_(r){var t=r.lineHeight;return t==null?vD:"line-height:"+ie(t+"")+"px"}function I_(r,t){var e=r.color||G.color.tertiary,n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||G.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ie(n+"")+"px;color:"+ie(e)+";font-weight:"+ie(i+""),valueStyle:"font-size:"+ie(o+"")+"px;color:"+ie(a)+";font-weight:"+ie(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var cD=[0,10,20,30],dD=["",`
`,`

`,`


`];function $r(r,t){return t.type=r,t}function Bh(r){return r.type==="section"}function P_(r){return Bh(r)?pD:gD}function R_(r){if(Bh(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return T(r.blocks,function(i){var a=R_(i);a>=t&&(t=a+ +(n&&(!a||Bh(i)&&!i.noHeader)))}),t}return 0}function pD(r,t,e,n){var i=t.noHeader,a=yD(R_(t)),o=[],s=t.blocks||[];Be(!s||N(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(W(u,l)){var f=new jM(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(p,g){var y=t.valueFormatter,m=P_(p)(y?O(O({},r),{valueFormatter:y}):r,p,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Nh(n,o.join(""),i?e:a.html);if(i)return h;var c=Ph(t.header,"ordinal",r.useUTC),v=I_(n,r.renderMode).nameStyle,d=L_(n);return r.renderMode==="richText"?E_(r,c,v)+a.richText+h:Nh(n,'<div style="'+v+";"+d+';">'+ie(c)+"</div>"+h,e)}function gD(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(x){return x=N(x)?x:[x],$(x,function(S,w){return Ph(S,N(v)?v[w]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||G.color.secondary,i),c=a?"":Ph(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=I_(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":E_(r,c,m))+(o?"":xD(r,d,p,g,_)):Nh(n,(s?"":h)+(a?"":mD(c,!s,m))+(o?"":_D(d,p,g,_)),e)}}function Wp(r,t,e,n,i,a){if(r){var o=P_(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function yD(r){return{html:cD[r],richText:dD[r]}}function Nh(r,t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0",a=L_(r);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function mD(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+ie(r)+"</span>"}function _D(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=N(r)?r:[r],'<span style="'+a+";"+n+'">'+$(r,function(o){return ie(o)}).join("&nbsp;&nbsp;")+"</span>"}function E_(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function xD(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(N(t)?t.join("  "):t,a)}function SD(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return qa(n)}function k_(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var rf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Jm()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=JC({color:e,type:t,renderMode:n,markerId:i});return Z(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};N(e)?T(e,function(a){return O(n,a)}):O(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function wD(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=N(s),u=SD(t,e),f,h,c,v;if(o>1||l&&!o){var d=bD(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=Ii(i,e,a[0]),h=p.type}else v=f=l?s[0]:s;var g=Iv(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return $r("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[$r("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ke(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function bD(r,t,e,n,i){var a=t.getData(),o=_r(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?T(n,function(h){f(Ii(a,e,h),h)}):T(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push($r("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Mr=ft();function Zo(r,t){return r.getName(t)||r.getId(t)}var TD="__universalTransitionEnabled",Le=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Ba({count:MD,reset:DD}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=Mr(this).sourceManager=new hD(this);a.prepareSource();var o=this.getInitialData(e,i);Yp(o,this),this.dataTask.context.data=o,Mr(this).dataBeforeProcessed=o,Up(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Ka(this),a=i?Fi(e):{},o=this.subType;gt.hasClass(o)&&(o+="Series"),ct(e,n.getTheme().get(this.subType)),ct(e,this.getDefaultOption()),$s(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Zr(e,a,i)},t.prototype.mergeOption=function(e,n){e=ct(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Ka(this);i&&Zr(this.option,e,i);var a=Mr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);Yp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Mr(this).dataBeforeProcessed=o,Up(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!se(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&$s(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=zh(this);if(n){var i=n.context.data;return e==null||!i.getLinkedData?i:i.getLinkedData(e)}else return Mr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=zh(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}Mr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return et(e)},t.prototype.getSourceManager=function(){return Mr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Mr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(n,function(d,p){var g=l.dataToCoord(d),y=u-g,m=Math.abs(y);m<=a&&((m<h||m===h&&y>=0&&c<0)&&(h=m,c=y,v=0),y===c&&(f[v++]=p))}),f.length=v,f},t.prototype.formatTooltip=function(e,n,i){return wD({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(it.node&&!(e&&e.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(e,n,i){var a=this.ecModel,o=uc.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,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<e.length;s++){var l=e[s],u=Zo(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[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 e=this._selectedDataIndicesMap,n=yt(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Zo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[TD])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Q(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],c=Zo(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=Zo(e,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return gt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(gt);ze(Le,cc);ze(Le,uc);o0(Le,gt);function Up(r){var t=r.name;Iv(r)||(r.name=CD(r)||t)}function CD(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return T(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function MD(r){return r.model.getRawData().count()}function DD(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),AD}function AD(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Yp(r,t){T(P1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,vt(LD,t))})}function LD(r,t){var e=zh(r);return e&&e.setOutputEnd((t||this).count()),t}function zh(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var ve=function(){function r(){this.group=new Lt,this.uid=Zl("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Rv(ve);zl(ve);function O_(){var r=ft();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var B_=ft(),ID=O_(),Oe=function(){function r(){this.group=new Lt,this.uid=Zl("viewChart"),this.renderTask=Ba({plan:PD,reset:RD}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Zp(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Zp(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){go(this.group,t)},r.markUpdateMethod=function(t,e){B_(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Xp(r,t,e){r&&Ua(r)&&(t==="emphasis"?tl:el)(r,e)}function Zp(r,t,e){var n=fo(r,t),i=t&&t.highlightKey!=null?kT(t.highlightKey):null;n!=null?T(Ot(n),function(a){Xp(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Xp(a,e,i)})}Rv(Oe);zl(Oe);function PD(r){return ID(r.model)}function RD(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&B_(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,n,i),ED[l]}var ED={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},ll="\0__throttleOriginMethod",$p="\0__throttleRate",qp="\0__throttleType";function Jl(r,t,e){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var p=f||t,g=f||e;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(h,p):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 tu(r,t,e,n){var i=r[t];if(i){var a=i[ll]||i,o=i[qp],s=i[$p];if(s!==e||o!==n){if(e==null)return r[t]=a;i=r[t]=Jl(a,e,n==="debounce"),i[ll]=a,i[qp]=n,i[$p]=e}return i}}function ul(r,t){var e=r[t];e&&e[ll]&&(e.clear&&e.clear(),r[t]=e[ll])}var Kp=ft(),Qp={itemStyle:Mi($0,!0),lineStyle:Mi(Z0,!0)},kD={lineStyle:"stroke",itemStyle:"fill"};function N_(r,t){var e=r.visualStyleMapper||Qp[t];return e||(console.warn("Unknown style type '"+t+"'."),Qp.itemStyle)}function z_(r,t){var e=r.visualDrawType||kD[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var OD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=N_(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=z_(r,n),u=o[l],f=rt(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||rt(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||rt(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=O({},o);g[l]=f(p),v.setItemVisual(d,"style",g)}}}},$i=new Mt,BD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=N_(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){$i.option=l[n];var u=i($i),f=o.ensureUniqueItemVisual(s,"style");O(f,u),$i.option.decal&&(o.setItemVisual(s,"decal",$i.option.decal),$i.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},ND={performRawSeries:!0,overallReset:function(r){var t=et();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Kp(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Kp(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=z_(e,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},$o=Math.PI;function zD(r,t){t=t||{},dt(t,{text:"loading",textColor:G.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:G.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Lt,n=new Tt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new zt({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 Tt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Ul({shape:{startAngle:-$o/2,endAngle:-$o/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:$o*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:$o*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var F_=function(){function r(t,e,n,i){this._stageTaskMap=et(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=et();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;T(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Be(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;T(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=et(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Ba({plan:WD,reset:UD,count:XD}));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)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||Ba({reset:FD});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=et(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Be(!t.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,T(n.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,Ba({reset:VD,onDirty:GD})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return rt(t)&&(t={overallReset:t,seriesType:ZD(t)}),t.uid=Zl("stageHandler"),e&&(t.visualType=e),t},r}();function FD(r){r.overallReset(r.ecModel,r.api,r.payload)}function VD(r){return r.overallProgress&&HD}function HD(){this.agent.dirty(),this.getDownstream().dirty()}function GD(){this.agent&&this.agent.dirty()}function WD(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function UD(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ot(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?$(t,function(e,n){return V_(n)}):YD}var YD=V_(0);function V_(r){return function(t,e){var n=e.data,i=e.resetDefines[r];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 XD(r){return r.data.count()}function ZD(r){fl=null;try{r(ja,H_)}catch{}return fl}var ja={},H_={},fl;G_(ja,fc);G_(H_,g_);ja.eachSeriesByType=ja.eachRawSeriesByType=function(r){fl=r};ja.eachComponent=function(r){r.mainType==="series"&&r.subType&&(fl=r.subType)};function G_(r,t){for(var e in t.prototype)r[e]=Yt}var Y=G.darkColor,$D=Y.background,qi=function(){return{axisLine:{lineStyle:{color:Y.axisLine}},splitLine:{lineStyle:{color:Y.axisSplitLine}},splitArea:{areaStyle:{color:[Y.backgroundTint,Y.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Y.axisMinorSplitLine}},axisLabel:{color:Y.axisLabel},axisName:{}}},jp={label:{color:Y.secondary},itemStyle:{borderColor:Y.borderTint},dividerLineStyle:{color:Y.border}},W_={darkMode:!0,color:Y.theme,backgroundColor:$D,axisPointer:{lineStyle:{color:Y.border},crossStyle:{color:Y.borderShade},label:{color:Y.tertiary}},legend:{textStyle:{color:Y.secondary},pageTextStyle:{color:Y.tertiary}},textStyle:{color:Y.secondary},title:{textStyle:{color:Y.primary},subtextStyle:{color:Y.quaternary}},toolbox:{iconStyle:{borderColor:Y.accent50}},tooltip:{backgroundColor:Y.neutral20,defaultBorderColor:Y.border,textStyle:{color:Y.tertiary}},dataZoom:{borderColor:Y.accent10,textStyle:{color:Y.tertiary},brushStyle:{color:Y.backgroundTint},handleStyle:{color:Y.neutral00,borderColor:Y.accent20},moveHandleStyle:{color:Y.accent40},emphasis:{handleStyle:{borderColor:Y.accent50}},dataBackground:{lineStyle:{color:Y.accent30},areaStyle:{color:Y.accent20}},selectedDataBackground:{lineStyle:{color:Y.accent50},areaStyle:{color:Y.accent30}}},visualMap:{textStyle:{color:Y.secondary},handleStyle:{borderColor:Y.neutral30}},timeline:{lineStyle:{color:Y.accent10},label:{color:Y.tertiary},controlStyle:{color:Y.accent30,borderColor:Y.accent30}},calendar:{itemStyle:{color:Y.neutral00,borderColor:Y.neutral20},dayLabel:{color:Y.tertiary},monthLabel:{color:Y.secondary},yearLabel:{color:Y.secondary}},matrix:{x:jp,y:jp,backgroundColor:{borderColor:Y.axisLine},body:{itemStyle:{borderColor:Y.borderTint}}},timeAxis:qi(),logAxis:qi(),valueAxis:qi(),categoryAxis:qi(),line:{symbol:"circle"},graph:{color:Y.theme},gauge:{title:{color:Y.secondary},axisLine:{lineStyle:{color:[[1,Y.neutral05]]}},axisLabel:{color:Y.axisLabel},detail:{color:Y.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Y.background}},radar:function(){var r=qi();return r.axisName={color:Y.axisLabel},r.axisLine.lineStyle.color=Y.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:Y.neutral20,textStyle:{color:Y.secondary}},emphasis:{itemStyle:{color:Y.neutral30}}}},sunburst:{itemStyle:{borderColor:Y.background}},map:{itemStyle:{borderColor:Y.border,areaColor:Y.neutral10},label:{color:Y.tertiary},emphasis:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}},select:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}}},geo:{itemStyle:{borderColor:Y.border,areaColor:Y.neutral10},emphasis:{label:{color:Y.primary},itemStyle:{areaColor:Y.highlight}},select:{label:{color:Y.primary},itemStyle:{color:Y.highlight}}}};W_.categoryAxis.splitLine.show=!1;var qD=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(Z(t)){var a=je(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){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 l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Fh=["symbol","symbolSize","symbolRotate","symbolOffset"],Jp=Fh.concat(["symbolKeepAspect"]),KD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Fh.length;o++){var s=Fh[o],l=r.get(s);rt(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var u=yt(i);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];h.setItemVisual(c,g,i[g](v,d))}}return{dataEach:a?f:null}}},QD={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Jp.length;s++){var l=Jp[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?n:null}}};function jD(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function U_(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function JD(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=O({},i),o.dispatchAction(O(i,{type:n[1],seriesIndex:e(a,i)}))})})}function Jn(r,t,e,n,i){var a=r+t;e.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=fo(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:N(c)?h.getName(c[0]):h.getName(c),selected:Z(l)?l:O({},l)})}})}function tA(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Jn("map","selectchanged",t,i,n),Jn("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Jn("map","selected",t,i,n),Jn("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Jn("map","unselected",t,i,n),Jn("pie","unselected",t,i,n))})}function xa(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var eA=Math.round(Math.random()*9),rA=typeof Object.defineProperty=="function",nA=function(){function r(){this._id="__ec_inner_"+eA++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return rA?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),iA=St.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),aA=St.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),oA=St.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),sA=St.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),lA={line:xr,rect:Tt,roundRect:Tt,square:Tt,circle:Gl,diamond:aA,pin:oA,arrow:sA,triangle:iA},uA={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},hl={};T(lA,function(r,t){hl[t]=new r});var fA=St.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Ys(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=hl[n];i||(n="rect",i=hl[n]),uA[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function hA(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||G.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Pi(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=z0(r.slice(8),new at(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=Ya(r.slice(7),{},new at(t,e,n,i),o?"center":"cover"):l=new fA({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=hA,a&&l.setColor(a),l}function Y_(r){return N(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function pc(r,t){if(r!=null)return N(r)||(r=[r,r]),[xt(r[0],t[0])||0,xt(J(r[1],r[0]),t[1])||0]}function Pn(r){return isFinite(r)}function vA(r,t,e){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*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=Pn(n)?n:0,i=Pn(i)?i:1,a=Pn(a)?a:0,o=Pn(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function cA(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*i+e.y,l=l*a),o=Pn(o)?o:.5,s=Pn(s)?s:.5,l=l>=0&&Pn(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Vh(r,t,e){for(var n=t.type==="radial"?cA(r,t,e):vA(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function dA(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function qo(r){return parseInt(r,10)}function Ko(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||qo(s[n])||qo(r.style[n]))-(qo(s[a])||0)-(qo(s[o])||0)|0}function pA(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:bt(r)?[r]:N(r)?r:null}function X_(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&pA(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=$(e,function(a){return a/i}),n/=i)}return[e,n]}var gA=new Di(!0);function vl(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function tg(r){return typeof r=="string"&&r!=="none"}function cl(r){var t=r.fill;return t!=null&&t!=="none"}function eg(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function rg(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Hh(r,t,e){var n=s0(t.image,t.__image,e);if(Fl(n)){var i=r.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)*R1),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function yA(r,t,e,n){var i,a=vl(e),o=cl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||gA,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,p=a&&!!v.colorStops,g=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,x=void 0,S=void 0,w=void 0;(d||p)&&(w=t.getBoundingRect()),d&&(m=h?Vh(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?Vh(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(x=h||!t.__canvasFillPattern?Hh(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=x),y&&(S=h||!t.__canvasStrokePattern?Hh(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(x?r.fillStyle=x:o=!1),p?r.strokeStyle=_:y&&(S?r.strokeStyle=S:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var C,D;r.setLineDash&&e.lineDash&&(i=X_(t),C=i[0],D=i[1]);var L=!0;(u||h&da)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),L=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),L&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=D),n||(e.strokeFirst?(a&&rg(r,e),o&&eg(r,e)):(o&&eg(r,e),a&&rg(r,e))),C&&r.setLineDash([])}function mA(r,t,e){var n=t.__image=s0(e.image,t.__image,t,t.onload);if(!(!n||!Fl(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(n,u,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(n,u,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function _A(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Yr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=X_(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(vl(e)&&r.strokeText(i,e.x,e.y),cl(e)&&r.fillText(i,e.x,e.y)):(cl(e)&&r.fillText(i,e.x,e.y),vl(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var ng=["shadowBlur","shadowOffsetX","shadowOffsetY"],ig=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Z_(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){oe(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?On.opacity:o}(n||t.blend!==e.blend)&&(a||(oe(r,i),a=!0),r.globalCompositeOperation=t.blend||On.blend);for(var s=0;s<ng.length;s++){var l=ng[s];(n||t[l]!==e[l])&&(a||(oe(r,i),a=!0),r[l]=r.dpr*(t[l]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(oe(r,i),a=!0),r.shadowColor=t.shadowColor||On.shadowColor),a}function ag(r,t,e,n,i){var a=Ja(t,i.inHover),o=n?null:e&&Ja(e,i.inHover)||{};if(a===o)return!1;var s=Z_(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(oe(r,i),s=!0),tg(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(oe(r,i),s=!0),tg(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(oe(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(oe(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<ig.length;f++){var h=ig[f],c=h[0];(n||a[c]!==o[c])&&(s||(oe(r,i),s=!0),r[c]=a[c]||h[1])}return s}function xA(r,t,e,n,i){return Z_(r,Ja(t,i.inHover),e&&Ja(e,i.inHover),n,i)}function $_(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function SA(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),$_(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function wA(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var og=1,sg=2,lg=3,ug=4;function bA(r){var t=cl(r),e=vl(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function oe(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function Ja(r,t){return t&&r.__hoverStyle||r.style}function q_(r,t){Rn(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Rn(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||dA(a,o))&&(o&&o.length&&(oe(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(oe(r,e),r.save(),SA(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof St&&t.autoBatch&&bA(t.style);s||wA(i,u.transform)?(oe(r,e),$_(r,t)):f||oe(r,e);var h=Ja(t,e.inHover);t instanceof St?(e.lastDrawType!==og&&(l=!0,e.lastDrawType=og),ag(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),yA(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof qs?(e.lastDrawType!==lg&&(l=!0,e.lastDrawType=lg),ag(r,t,u,l,e),_A(r,t,h)):t instanceof jr?(e.lastDrawType!==sg&&(l=!0,e.lastDrawType=sg),xA(r,t,u,l,e),mA(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==ug&&(l=!0,e.lastDrawType=ug),TA(r,t,e)),f&&n&&oe(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function TA(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rn(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Rn(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var nf=new nA,fg=new bi(100),hg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&nf.delete(r);var a=nf.get(r);if(a)return a;var o=dt(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,nf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<hg.length;++c){var v=o[hg[c]];if(v!=null&&!N(v)&&!Z(v)&&!bt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=fg.get(d);p&&(i?u.svgElement=p:u.image=p)}var g=Q_(o.dashArrayX),y=CA(o.dashArrayY),m=K_(o.symbol),_=MA(g),x=j_(y),S=!i&&mr.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=D(),C;S&&(S.width=b.width*e,S.height=b.height*e,C=S.getContext("2d")),L(),h&&fg.put(d,S||w),u.image=S,u.svgElement=w,u.svgWidth=b.width,u.svgHeight=b.height;function D(){for(var M=1,R=0,A=_.length;R<A;++R)M=Ad(M,_[R]);for(var I=1,R=0,A=m.length;R<A;++R)I=Ad(I,m[R].length);M*=I;var P=x*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(P,o.maxTileHeight))}}function L(){C&&(C.clearRect(0,0,S.width,S.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,S.width,S.height)));for(var M=0,R=0;R<y.length;++R)M+=y[R];if(M<=0)return;for(var A=-x,I=0,P=0,E=0;A<b.height;){if(I%2===0){for(var B=P/2%m.length,k=0,V=0,z=0;k<b.width*2;){for(var U=0,R=0;R<g[E].length;++R)U+=g[E][R];if(U<=0)break;if(V%2===0){var H=(1-o.symbolSize)*.5,tt=k+g[E][V]*H,pt=A+y[I]*H,Nt=g[E][V]*o.symbolSize,Kt=y[I]*o.symbolSize,Ht=z/2%m[B].length;ot(tt,pt,Nt,Kt,m[B][Ht])}k+=g[E][V],++z,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}A+=y[I],++P,++I,I===y.length&&(I=0)}function ot(j,lt,X,K,Dt){var mt=i?1:e,wt=Pi(Dt,j*mt,lt*mt,X*mt,K*mt,o.color,o.symbolKeepAspect);if(i){var Rt=n.painter.renderOneToVNode(wt);Rt&&w.children.push(Rt)}else q_(C,wt)}}}}function K_(r){if(!r||r.length===0)return[["rect"]];if(Z(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!Z(r[e])){t=!1;break}if(t)return K_([r]);for(var n=[],e=0;e<r.length;++e)Z(r[e])?n.push([r[e]]):n.push(r[e]);return n}function Q_(r){if(!r||r.length===0)return[[0,0]];if(bt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!bt(r[n])){e=!1;break}if(e)return Q_([r]);for(var i=[],n=0;n<r.length;++n)if(bt(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=$(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function CA(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(bt(r)){var t=Math.ceil(r);return[t,t]}var e=$(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function MA(r){return $(r,function(t){return j_(t)})}function j_(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function DA(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=dl(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=dl(i,t)}}})}var ke=new Fe,J_={};function AA(r,t){J_[r]=t}function LA(r){return J_[r]}var tx={};function IA(r,t){tx[r]=t}function PA(r){return tx[r]}var RA=1,EA=800,kA=900,OA=1e3,BA=2e3,NA=5e3,ex=1e3,zA=1100,gc=2e3,rx=3e3,FA=4e3,eu=4500,VA=4600,HA=5e3,GA=6e3,nx=7e3,WA={PROCESSOR:{FILTER:OA,SERIES_FILTER:EA,STATISTIC:NA},VISUAL:{LAYOUT:ex,PROGRESSIVE_LAYOUT:zA,GLOBAL:gc,CHART:rx,POST_CHART_LAYOUT:VA,COMPONENT:FA,BRUSH:HA,CHART_ITEM:eu,ARIA:GA,DECAL:nx}},Bt="__flagInMainProcess",Qo="__mainProcessVersion",Ft="__pendingUpdate",af="__needsUpdateStatus",vg=/^[a-zA-Z0-9_]+$/,of="__connectUpdateStatus",cg=0,UA=1,YA=2;function ix(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return ox(this,r,t)}}function ax(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ox(this,r,t)}}function ox(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Fe.prototype[t].apply(r,e)}var sx=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Fe),lx=sx.prototype;lx.on=ax("on");lx.off=ax("off");var Tn,sf,jo,fr,Jo,lf,uf,ti,ei,dg,pg,ff,gg,ts,yg,ux,de,mg,ri,fx=function(r){F(t,r);function t(e,n,i){var a=r.call(this,new qD)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=e;var o="canvas",s="auto",l=!1;a[Qo]=1,i.ssr;var u=a._zr=Md(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:J(i.useDirtyRect,l),useCoarsePointer:J(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Jl(q(u.flush,u),17),a._updateTheme(n),a._locale=VC(i.locale||q0),a._coordSysMgr=new oc;var f=a._api=yg(a);function h(c,v){return c.__prio-v.__prio}return bs(gl,h),bs(Uh,h),a._scheduler=new F_(a,f,Uh,gl),a._messageCenter=new sx,a._initEvents(),a.resize=q(a.resize,a),u.animation.on("frame",a._onframe,a),dg(u,a),pg(u,a),Qf(a),a}return t.prototype._onframe=function(){if(!this._disposed){mg(this);var e=this._scheduler;if(this[Ft]){var n=this[Ft].silent;this[Bt]=!0,ri(this);try{Tn(this),fr.update.call(this,null,this[Ft].updateParams)}catch(l){throw this[Bt]=!1,this[Ft]=null,l}this._zr.flush(),this[Bt]=!1,this[Ft]=null,ti.call(this,n),ei.call(this,n)}else if(e.unfinished){var i=RA,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),lf(this,a),e.performVisualTasks(a),ts(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Bt]){if(this._disposed){this.id;return}var a,o,s;if(Q(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Bt]=!0,ri(this),!this._model||n){var l=new IM(this._api),u=this._theme,f=this._model=new fc;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Yh);var h={seriesTransition:s,optionChanged:!0};if(i)this[Ft]={silent:a,updateParams:h},this[Bt]=!1,this.getZr().wakeUp();else{try{Tn(this),fr.update.call(this,null,h)}catch(c){throw this[Ft]=null,this[Bt]=!1,c}this._ssr||this._zr.flush(),this[Ft]=null,this[Bt]=!1,ti.call(this,a),ei.call(this,a)}}},t.prototype.setTheme=function(e,n){if(!this[Bt]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[Ft]&&(a==null&&(a=this[Ft].silent),o=this[Ft].updateParams,this[Ft]=null),this[Bt]=!0,ri(this);try{this._updateTheme(e),i.setTheme(this._theme),Tn(this),fr.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Bt]=!1,s}this[Bt]=!1,ti.call(this,a),ei.call(this,a)}}},t.prototype._updateTheme=function(e){Z(e)&&(e=hx[e]),e&&(e=ut(e),e&&m_(e,!0),this._theme=e)},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||it.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,n=e.storage.getDisplayList();return T(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;T(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(_g[i]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();T(Na,function(_,x){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ut(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:S,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,p=h-u,g=mr.createCanvas(),y=Md(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return T(c,function(_){var x=_.left-l,S=_.top-u;m+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Tt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),T(c,function(_){var x=new jr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n,i){return Jo(this,"convertToPixel",e,n,i)},t.prototype.convertToLayout=function(e,n,i){return Jo(this,"convertToLayout",e,n,i)},t.prototype.convertFromPixel=function(e,n,i){return Jo(this,"convertFromPixel",e,n,i)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=Iu(i,e);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=Iu(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?jD(s,l,n):U_(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(XA,function(i){var a=function(o){var s=e.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&xa(l,function(p){var g=ht(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=O({},g.eventData),!0},!0),u){var h=u.componentType,c=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=u.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=i,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},e.trigger(i,u)}};a.zrEventfulCallAtLast=!0,e._zr.on(i,a,e)});var n=this._messageCenter;T(Wh,function(i,a){n.on(a,function(o){e.trigger(a,o)})}),tA(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 e=this.getDom();e&&i0(this.getDom(),mc,"");var n=this,i=n._api,a=n._model;T(n._componentsViews,function(o){o.dispose(a,i)}),T(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 Na[n.id]},t.prototype.resize=function(e){if(!this[Bt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[Ft]&&(a==null&&(a=this[Ft].silent),i=!0,this[Ft]=null),this[Bt]=!0,ri(this);try{i&&Tn(this),fr.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Bt]=!1,o}this[Bt]=!1,ti.call(this,a),ei.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Q(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Xh[e]){var i=Xh[e](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(e){var n=O({},e);return n.type=Gh[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Q(n)||(n={silent:!!n}),!!pl[e.type]&&this._model){if(this[Bt]){this._pendingActions.push(e);return}var i=n.silent;uf.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&it.browser.weChat&&this._throttledZrFlush(),ti.call(this,i),ei.call(this,i)}},t.prototype.updateLabelLayout=function(){ke.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Tn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),sf(h,!0),sf(h,!1),c.plan()},sf=function(h,c){for(var v=h._model,d=h._scheduler,p=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;c?v.eachComponent(function(w,b){w!=="series"&&x(b)}):v.eachSeries(x);function x(w){var b=w.__requireNewView;w.__requireNewView=!1;var C="_ec_"+w.id+"_"+w.type,D=!b&&g[C];if(!D){var L=je(w.type),M=c?ve.getClass(L.main,L.sub):Oe.getClass(L.sub);D=new M,D.init(v,m),g[C]=D,p.push(D),y.add(D.group)}w.__viewId=D.__id=C,D.__alive=!0,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(D,w,v,m)}for(var _=0;_<p.length;){var S=p[_];S.__alive?_++:(!c&&S.renderTask.dispose(),y.remove(S.group),S.dispose(v,m),p.splice(_,1),g[S.__id]===S&&delete g[S.__id],S.__id=S.group.__ecComponentInfo=null)}},jo=function(h,c,v,d,p){var g=h._model;if(g.setUpdatePayload(v),!d){T([].concat(h._componentsViews).concat(h._chartsViews),S);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,x;_!=null&&(x=et(),T(Ot(_),function(w){var b=fe(w,null);b!=null&&x.set(b,!0)})),g&&g.eachComponent(m,function(w){var b=x&&x.get(w.id)!=null;if(!b)if(rp(v))if(w instanceof Le)v.type===Bn&&!v.notBlur&&!w.get(["emphasis","disabled"])&&DT(w,v,h._api);else{var C=Vv(w.mainType,w.componentIndex,v.name,h._api),D=C.focusSelf,L=C.dispatchers;v.type===Bn&&D&&!v.notBlur&&bh(w.mainType,w.componentIndex,h._api),L&&T(L,function(M){v.type===Bn?tl(M):el(M)})}else Ch(v)&&w instanceof Le&&(IT(w,v,h._api),tp(w),de(h))},h),g&&g.eachComponent(m,function(w){var b=x&&x.get(w.id)!=null;b||S(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function S(w){w&&w.__alive&&w[c]&&w[c](w.__model,g,h._api,v)}},fr={prepareAndUpdate:function(h){Tn(this),fr.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,h),lf(this,v),g.update(v,d),n(v),y.performVisualTasks(v,h);var m=v.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),ff(this,v,d,h,c),ke.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,v,d,h);x&&x.update&&p.push(_)}else p.push(_)}});var g=et();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),ts(this,v,d,h,{},g),ke.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),Oe.markUpdateMethod(h,"updateView"),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),ff(this,c,this._api,h,{}),ke.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()}),Oe.markUpdateMethod(h,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,c._api,h)}}),v.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,v,c._api,h)}),ke.trigger("afterupdate",v,this._api))},updateLayout:function(h){fr.update.call(this,h)}};function e(h,c,v,d,p){if(h._disposed){h.id;return}for(var g=h._model,y=h._coordSysMgr.getCoordinateSystems(),m,_=Iu(g,v),x=0;x<y.length;x++){var S=y[x];if(S[c]&&(m=S[c](g,_,d,p))!=null)return m}}Jo=e,lf=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},uf=function(h,c){var v=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=pl[p],m=(y.update||"update").split(":"),_=m.pop(),x=m[0]!=null&&je(m[0]);this[Bt]=!0,ri(this);var S=[h],w=!1;h.batch&&(w=!0,S=$(h.batch,function(E){return E=dt(O({},E),h),E.batch=null,E}));var b=[],C,D=[],L=y.nonRefinedEventType,M=Ch(h),R=rp(h);if(R&&M0(this._api),T(S,function(E){var B=y.action(E,d,v._api);if(y.refineEvent?D.push(B):C=B,C=C||O({},E),C.type=L,b.push(C),R){var k=Pv(h),V=k.queryOptionMap,z=k.mainTypeSpecified,U=z?V.keys()[0]:"series";jo(v,_,E,U),de(v)}else M?(jo(v,_,E,"series"),de(v)):x&&jo(v,_,E,x.main,x.sub)}),_!=="none"&&!R&&!M&&!x)try{this[Ft]?(Tn(this),fr.update.call(this,h),this[Ft]=null):fr[_].call(this,h)}catch(E){throw this[Bt]=!1,E}if(w?C={type:L,escapeConnect:g,batch:b}:C=b[0],this[Bt]=!1,!c){var A=void 0;if(y.refineEvent){var I=y.refineEvent(D,h,d,this._api).eventContent;Be(Q(I)),A=dt({type:y.refinedEventType},I),A.fromAction=h.type,A.fromActionPayload=h,A.escapeConnect=!0}var P=this._messageCenter;P.trigger(C.type,C),A&&P.trigger(A.type,A)}},ti=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();uf.call(this,v,h)}},ei=function(h){!h&&this.trigger("updated")},dg=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Ft]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},pg=function(h,c){h.on("mouseover",function(v){var d=v.target,p=xa(d,Ua);p&&(AT(p,v,c._api),de(c))}).on("mouseout",function(v){var d=v.target,p=xa(d,Ua);p&&(LT(p,v,c._api),de(c))}).on("click",function(v){var d=v.target,p=xa(d,function(m){return ht(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ht(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.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(m,_){var x=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?v:c).push({zlevel:x,z:S,idx:_.componentIndex,type:m,key:w})}),d){var p=c.concat(v),g,y;bs(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(p,function(m){var _=h.getComponent(m.type,m.idx),x=m.zlevel,S=m.key;g!=null&&(x=Math.max(g,x)),S?(x===g&&S!==y&&x++,y=S):y&&(x===g&&x++,y=""),g=x,_.setZLevel(x)})}}ff=function(h,c,v,d,p){i(c),gg(h,c,v,d,p),T(h._chartsViews,function(g){g.__alive=!1}),ts(h,c,v,d,p),T(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},gg=function(h,c,v,d,p,g){T(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,d),l(m,y),f(m,y)})},ts=function(h,c,v,d,p,g){var y=h._scheduler;p=O(p||{},{updatedSeries:c.getSeries()}),ke.trigger("series:beforeupdate",c,v,p);var m=!1;c.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;y.updatePayload(S,d),u(_,x),g&&g.get(_.uid)&&S.dirty(),S.perform(y.getPerformArgs(S))&&(m=!0),x.group.silent=!!_.get("silent"),s(_,x),tp(_)}),y.unfinished=m||y.unfinished,ke.trigger("series:layoutlabels",c,v,p),ke.trigger("series:transition",c,v,p),c.eachSeries(function(_){var x=h._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(h,c),ke.trigger("series:afterupdate",c,v,p)},de=function(h){h[af]=!0,h.getZr().wakeUp()},ri=function(h){h[Qo]=(h[Qo]+1)%1e3},mg=function(h){h[af]&&(h.getZr().storage.traverse(function(c){Pa(c)||a(c)}),h[af]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Bv&&h.states.emphasis?c.push("emphasis"):h.hoverState===Ov&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>c.get("hoverLayerThreshold")&&!it.node&&!it.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(h,c){if(!h.preventAutoZ){var v=Li(h);c.eachRendered(function(d){return $v(d,v.z,v.zlevel),!0})}}function u(h,c){c.eachRendered(function(v){if(!Pa(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.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(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Pa(y))return;if(y instanceof St&&OT(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=g),x&&(x.stateTransition=g)}y.__dirty&&a(y)}})}yg=function(h){return new(function(c){F(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 p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){tl(d,p),de(h)},v.prototype.leaveEmphasis=function(d,p){el(d,p),de(h)},v.prototype.enterBlur=function(d){w0(d),de(h)},v.prototype.leaveBlur=function(d){Fv(d),de(h)},v.prototype.enterSelect=function(d){b0(d),de(h)},v.prototype.leaveSelect=function(d){T0(d),de(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return h[Qo]},v}(g_))(h)},ux=function(h){function c(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[of]=d}}T(Gh,function(v,d){h._messageCenter.on(d,function(p){if(_g[h.group]&&h[of]!==cg){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];T(Na,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,cg),T(y,function(m){m[of]!==UA&&m.dispatchAction(g)}),c(y,YA)}})})}}(),t}(Fe),yc=fx.prototype;yc.on=ix("on");yc.off=ix("off");yc.one=function(r,t,e){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(r,i)}this.on.call(this,r,i,e)};var XA=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var pl={},Gh={},Wh={},Uh=[],Yh=[],gl=[],hx={},Xh={},Na={},_g={},ZA=+new Date-0,mc="_echarts_instance_";function $A(r,t,e){var n=!(e&&e.ssr);if(n){var i=qA(r);if(i)return i}var a=new fx(r,t,e);return a.id="ec_"+ZA++,Na[a.id]=a,n&&i0(r,mc,a.id),ux(a),ke.trigger("afterinit",a),a}function qA(r){return Na[_b(r,mc)]}function vx(r,t){hx[r]=t}function cx(r){st(Yh,r)<0&&Yh.push(r)}function dx(r,t){xc(Uh,r,t,BA)}function KA(r){_c("afterinit",r)}function QA(r){_c("afterupdate",r)}function _c(r,t){ke.on(r,t)}function Vn(r,t,e){var n,i,a,o,s;rt(t)&&(e=t,t=""),Q(r)?(n=r.type,i=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),a=r.refineEvent):(n=r,i=t);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;pl[n]||(Be(vg.test(n)&&vg.test(i)),a&&Be(i!==n),pl[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:e,refineEvent:a},Wh[i]=1,a&&s&&(Wh[u]=1),Gh[u]=n)}function jA(r,t){oc.register(r,t)}function JA(r,t){xc(gl,r,t,ex,"layout")}function Hn(r,t){xc(gl,r,t,rx,"visual")}var xg=[];function xc(r,t,e,n,i){if((rt(t)||Q(t))&&(e=t,t=n),!(st(xg,e)>=0)){xg.push(e);var a=F_.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function px(r,t){Xh[r]=t}function tL(r,t,e){var n=LA("registerMap");n&&n(r,t,e)}var eL=aD;Hn(gc,OD);Hn(eu,BD);Hn(eu,ND);Hn(gc,KD);Hn(eu,QD);Hn(nx,DA);cx(m_);dx(kA,GM);px("default",zD);Vn({type:Bn,event:Bn,update:Bn},Yt);Vn({type:Ls,event:Ls,update:Ls},Yt);Vn({type:Qs,event:Nv,update:Qs,action:Yt,refineEvent:Sc,publishNonRefinedEvent:!0});Vn({type:Sh,event:Nv,update:Sh,action:Yt,refineEvent:Sc,publishNonRefinedEvent:!0});Vn({type:js,event:Nv,update:js,action:Yt,refineEvent:Sc,publishNonRefinedEvent:!0});function Sc(r,t,e,n){return{eventContent:{selected:PT(e),isFromClick:t.isFromClick||!1}}}vx("default",{});vx("dark",W_);function Ki(r){return r==null?0:r.length||1}function Sg(r){return r}var wc=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Sg,this._newKeyGetter=i||Sg,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Ki(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=Ki(u),c=Ki(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=Ki(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,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),!!e){var l=e[s],u=Ki(l);u===0?(e[s]=o,a&&n.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),rL=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function nL(r,t){var e={},n=e.encode={},i=et(),a=[],o=[],s={};T(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var p=v.coordDimIndex;hf(n,d)[p]=c,v.isExtraCoord||(i.set(d,1),aL(v.type)&&(a[0]=c),hf(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}f_.each(function(g,y){var m=hf(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};i.each(function(c,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=$(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;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,e.userOutput=new rL(s,t),e}function hf(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function iL(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function aL(r){return!(r==="ordinal"||r==="time")}var ks=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}(),oL=ft(),sL={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gx=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=_x(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return J(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=S_(this.source),n=!xx(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=sL[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function yx(r){return r instanceof gx}function mx(r){for(var t=et(),e=0;e<(r||[]).length;e++){var n=r[e],i=Q(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function _x(r){var t=oL(r);return t.dimNameMap||(t.dimNameMap=mx(r.dimensionsDefine))}function xx(r){return r>30}var Qi=Q,Dr=$,lL=typeof Int32Array>"u"?Array:Int32Array,uL="e\0\0",wg=-1,fL=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],hL=["_approximateExtent"],bg,es,ji,Ji,vf,ta,cf,_i=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;yx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=Z(h)?new ks({name:h}):h instanceof ks?h:new ks(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,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]);var p=f;bt(c.storeDimIndex)&&(p=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=et();T(o,function(y){g.set(a[y].storeDimIndex,y)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(bt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof Oh&&(a=t),!a){var o=this.dimensions,s=hc(t)||re(t)?new w_(t,o.length):t;a=new Oh;var l=Dr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=nL(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=e[l],o&&cf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Wr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===ce;if(l&&!i.pure)for(var u=[],f=t;f<e;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&sb(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=fe(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=fe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)cf(this,f);bg(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Qi(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=ji(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return es(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return N(t)?i.getValues(Dr(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return i==null||isNaN(i)?wg:i},r.prototype.each=function(t,e,n){rt(t)&&(n=e,e=t,t=[]);var i=n||this,a=Dr(Ji(t),this._getStoreDimIndex,this);this._store.each(a,i?q(e,i):e)},r.prototype.filterSelf=function(t,e,n){rt(t)&&(n=e,e=t,t=[]);var i=n||this,a=Dr(Ji(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?q(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=yt(t);return T(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){rt(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=Dr(Ji(t),this._getStoreDimIndex,this),s=ta(this);return s._store=this._store.map(o,a?q(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=Dr(Ji(t),this._getStoreDimIndex,this);this._store.modify(o,a?q(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=ta(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.minmaxDownSample=function(t,e){var n=ta(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=ta(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Mt(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new wc(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return es(t,n)},function(n){return es(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Qi(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),N(a)?a=a.slice():Qi(a)&&(a=O({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Qi(e)?O(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Qi(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;_T(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Dr(this.dimensions,this._getDimInfo,this),this.hostModel)),vf(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];rt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(wv(arguments)))})},r.internalField=function(){bg=function(t){var e=t._invertedIndicesMap;T(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new lL(o.categories.length);for(var l=0;l<n.length;l++)n[l]=wg;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},ji=function(t,e,n){return fe(t._getCategory(e,n),null)},es=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=ji(t,t._idDimIdx,e)),n==null&&(n=uL+e),n},Ji=function(t){return N(t)||(t=t!=null?[t]:[]),t},ta=function(t){var e=new r(t._schema?t._schema:Dr(t.dimensions,t._getDimInfo,t),t.hostModel);return vf(e,t),e},vf=function(t,e){T(fL.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,T(hL,function(n){t[n]=ut(e[n])}),t._calculationInfo=O({},e._calculationInfo)},cf=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],l=i[e];if(s==null&&a!=null&&(n[e]=s=ji(t,a,e)),l==null&&o!=null&&(i[e]=l=ji(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[e]=l}}}(),r}();function bc(r,t){hc(r)||(r=__(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=et(),a=[],o=cL(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xx(o),l=n===r.dimensionsDefine,u=l?_x(r):mx(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=et(f),c=new D_(o),v=0;v<c.length;v++)c[v]=-1;function d(D){var L=c[D];if(L<0){var M=n[D],R=Q(M)?M:{name:M},A=new ks,I=R.name;I!=null&&u.get(I)!=null&&(A.name=A.displayName=I),R.type!=null&&(A.type=R.type),R.displayName!=null&&(A.displayName=R.displayName);var P=a.length;return c[D]=P,A.storeDimIndex=D,a.push(A),A}return a[L]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(D,L){var M=Ot(D).slice();if(M.length===1&&!Z(M[0])&&M[0]<0){h.set(L,!1);return}var R=h.set(L,[]);T(M,function(A,I){var P=Z(A)?u.get(A):A;P!=null&&P<o&&(R[I]=P,g(d(P),L,I))})});var p=0;T(e,function(D){var L,M,R,A;if(Z(D))L=D,A={};else{A=D,L=A.name;var I=A.ordinalMeta;A.ordinalMeta=null,A=O({},A),A.ordinalMeta=I,M=A.dimsDef,R=A.otherDims,A.name=A.coordDim=A.coordDimIndex=A.dimsDef=A.otherDims=null}var P=h.get(L);if(P!==!1){if(P=Ot(P),!P.length)for(var E=0;E<(M&&M.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&P.push(p++)}T(P,function(B,k){var V=d(B);if(l&&A.type!=null&&(V.type=A.type),g(dt(V,A),L,k),V.name==null&&M){var z=M[k];!Q(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}R&&dt(V.otherDims,R)})}});function g(D,L,M){f_.get(L)!=null?D.otherDims[L]=M:(D.coordDim=L,D.coordDimIndex=M,i.set(L,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function S(D){D.name==null&&(D.name=D.coordDim)}if(s)T(a,function(D){S(D)}),a.sort(function(D,L){return D.storeDimIndex-L.storeDimIndex});else for(var w=0;w<o;w++){var b=d(w),C=b.coordDim;C==null&&(b.coordDim=dL(x,i,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),S(b),b.type==null&&(c_(r,w)===Gt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return vL(a),new gx({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function vL(r){for(var t=et(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function cL(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return T(t,function(a){var o;Q(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function dL(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var pL=function(){function r(t){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=t}return r}();function gL(r){var t=r.get("coordinateSystem"),e=new pL(t),n=yL[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var yL={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",ee).models[0],a=r.getReferringComponents("yAxis",ee).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),ni(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ni(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",ee).models[0];t.coordSysDims=["single"],e.set("single",i),ni(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",ee).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),ni(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),ni(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];e.set(f,u),ni(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,n){var i=r.getReferringComponents("matrix",ee).models[0];t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");e.set("x",a),e.set("y",o),n.set("x",a),n.set("y",o)}};function ni(r){return r.get("type")==="category"}function mL(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;_L(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(T(a,function(m,_){Z(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;T(a,function(m){m.coordDim===v&&p++});var g={name:h,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function _L(r){return!yx(r.schema)}function Tc(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Sx(r,t){return Tc(r,t)?r.getCalculationInfo("stackResultDimension"):t}function xL(r,t){var e=r.get("coordinateSystem"),n=oc.get(e),i;return t&&t.coordSysDims&&(i=$(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=iL(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function SL(r,t,e){var n,i;return e&&T(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Cc(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===ce;var o=gL(t),s=xL(t,o),l=e.useEncodeDefaulter,u=rt(l)?l:l?vt(gM,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=bc(i,f),c=SL(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=mL(t,{schema:h,store:v}),p=new _i(h,t);p.setCalculationInfo(d);var g=c!=null&&wL(i)?function(y,m,_,x){return x===c?_:this.defaultDimValueGetter(y,m,_,x)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function wL(r){if(r.sourceFormat===ce){var t=bL(r.data||[]);return!N(uo(t))}}function bL(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function Zh(r){return r.type==="interval"||r.type==="log"}function TL(r,t,e,n,i){var a={},o=a.interval=jm(t/e);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=to(o),l=a.niceTickExtent=[$t(Math.ceil(r[0]/o)*o,s),$t(Math.floor(r[1]/o)*o,s)];return CL(l,r),a}function df(r){var t=Math.pow(10,Lv(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,$t(e*t)}function to(r){return Ci(r)+2}function Tg(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function CL(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Tg(r,0,t),Tg(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Mc(r,t){return r>=t[0]&&r<=t[1]}var ML=function(){function r(){this.normalize=Cg,this.scale=Mg}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=q(t.normalize,t),this.scale=q(t.scale,t)):(this.normalize=Cg,this.scale=Mg)},r}();function Cg(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Mg(r,t){return r*(t[1]-t[0])+t[0]}function $h(r,t,e){var n=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/n,Math.log(e?t[1]:Math.max(0,t[1]))/n]}var tn=function(){function r(t){this._calculator=new ML,this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},r.prototype.setBreaksFromOption=function(t){},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();zl(tn);var DL=0,qh=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++DL,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&$(n,AL);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Z(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},r}();function AL(r){return Q(r)&&r.value!=null?r.value:r+""}var bx=function(r){F(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new qh({})),N(i)&&(i=new qh({categories:$(i,function(a){return Q(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:Z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return Mc(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(tn);tn.registerClass(bx);var Ar=$t,Ri=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return Mc(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=to(e)},t.prototype.getTicks=function(e){e=e||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=ol(),l=[];if(!n)return l;e.breakTicks;var u=1e4;i[0]<a[0]&&(e.expandToNicedExtent?l.push({value:Ar(a[0]-n,o)}):l.push({value:i[0]}));for(var f=function(d,p){return Math.round((p-d)/n)},h=a[0];h<=a[1];){if(l.push({value:h}),h=Ar(h+n,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(h,f);c>=0&&(h=Ar(h+c*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:a[1];return i[1]>v&&(e.expandToNicedExtent?l.push({value:Ar(v+n,o)}):l.push({value:i[1]})),e.breakTicks,l},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],h=s.value-l.value,c=h/e,v=to(c);u<e-1;){var d=Ar(l.value+(u+1)*c,v);d>a[0]&&d<a[1]&&f.push(d),u++}var p=ol();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,a),i.push(f)}}return i},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=Ci(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Ar(e.value,i,!0);return i_(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=TL(a,o,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval,s=this._intervalPrecision;e.fixMin||(n[0]=Ar(Math.floor(n[0]/o)*o,s)),e.fixMax||(n[1]=Ar(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t}(tn);tn.registerClass(Ri);var Tx=typeof Float32Array<"u",LL=Tx?Float32Array:Array;function pf(r){return N(r)?Tx?new Float32Array(r):r:new LL(r)}var Kh="__ec_stack_";function Cx(r){return r.get("stack")||Kh+r.seriesIndex}function Dc(r){return r.dim+r.index}function IL(r){var t=[],e=r.axis,n="axis0";if(e.type==="category"){for(var i=e.getBandWidth(),a=0;a<r.count;a++)t.push(dt({bandWidth:i,axisKey:n,stackId:Kh+a},r));for(var o=Ax(t),s=[],a=0;a<r.count;a++){var l=o[n][Kh+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Mx(r,t){var e=[];return t.eachSeriesByType(r,function(n){Lx(n)&&e.push(n)}),e}function PL(r){var t={};T(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function Dx(r){var t=PL(r),e=[];return T(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=xt(n.get("barWidth"),s),p=xt(n.get("barMaxWidth"),s),g=xt(n.get("barMinWidth")||(Ix(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap"),_=n.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:Dc(a),stackId:Cx(n)})}),Ax(e)}function Ax(r){var t={};T(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return T(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=yt(a).length;s=Math.max(35-l*4,15)+"%"}var u=xt(s,o),f=xt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),T(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var x=y.width;m&&(x=Math.min(x,m)),_&&(x=Math.max(x,_)),y.width=x,h-=x+f*x,c--}else{var x=v;m&&m<x&&(x=Math.min(m,h)),_&&_>x&&(x=_),x!==v&&(y.width=x,h-=x+f*x,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,p;T(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;T(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function RL(r,t,e){if(r&&t){var n=r[Dc(t)];return n}}function EL(r,t){var e=Mx(r,t),n=Dx(e);T(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Cx(i),u=n[Dc(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function kL(r){return{seriesType:r,plan:O_(),reset:function(t){if(Lx(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Tc(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=OL(i,a),d=Ix(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,x){for(var S=_.count,w=d&&pf(S*3),b=d&&l&&pf(S*3),C=d&&pf(S),D=n.master.getRect(),L=c?D.width:D.height,M,R=x.getStore(),A=0;(M=_.next())!=null;){var I=R.get(h?g:o,M),P=R.get(s,M),E=v,B=void 0;h&&(B=+I-R.get(o,M));var k=void 0,V=void 0,z=void 0,U=void 0;if(c){var H=n.dataToPoint([I,P]);if(h){var tt=n.dataToPoint([B,P]);E=tt[0]}k=E,V=H[1]+m,z=H[0]-E,U=y,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var H=n.dataToPoint([P,I]);if(h){var tt=n.dataToPoint([P,B]);E=tt[1]}k=H[0]+m,V=E,z=y,U=H[1]-E,Math.abs(U)<p&&(U=(U<=0?-1:1)*p)}d?(w[A]=k,w[A+1]=V,w[A+2]=c?z:U,b&&(b[A]=c?D.x:k,b[A+1]=c?V:D.y,b[A+2]=L),C[M]=M):x.setItemLayout(M,{x:k,y:V,width:z,height:U}),A+=3}d&&x.setLayout({largePoints:w,largeDataIndices:C,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function Lx(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Ix(r){return r.pipelineContext&&r.pipelineContext.large}function OL(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var BL=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},Px=function(r){F(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return ql(e.value,mp[KC(ka(this._minLevelUnit))]||mp.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return QC(e,n,i,o,a)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=sl(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=UL(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=sl(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=Nn.length-1,h=0;return T(a,function(c){f=Math.min(f,st(Nn,c.time.upperTimeUnit)),h=Math.max(h,c.time.level)}),a},t.prototype.calcNiceExtent=function(e){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=be,n[1]+=be),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-be}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=rs.length,s=Math.min(BL(rs,this._approxInterval,0,o),o-1);this._interval=rs[s][1],this._intervalPrecision=to(this._interval),this._minLevelUnit=rs[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return bt(e)?e:+Ni(e)},t.prototype.contain=function(e){return Mc(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(Ri),rs=[["second",jv],["minute",Jv],["hour",Ea],["quarter-day",Ea*6],["half-day",Ea*12],["day",be*1.2],["half-week",be*3.5],["week",be*7],["month",be*31],["quarter",be*95],["half-year",yp/2],["year",yp]];function NL(r,t,e,n){return Ih(new Date(t),r,n).getTime()===Ih(new Date(e),r,n).getTime()}function zL(r,t){return r/=be,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function FL(r){var t=30*be;return r/=t,r>6?6:r>3?3:r>2?2:1}function VL(r){return r/=Ea,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Dg(r,t){return r/=t?Jv:jv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function HL(r){return jm(r)}function GL(r,t,e){var n=Math.max(0,st(Nn,t)-1);return Ih(new Date(r),Nn[n],e).getTime()}function WL(r,t){var e=new Date(0);e[r](1);var n=e.getTime();e[r](1+t);var i=e.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function UL(r,t,e,n,i,a){var o=1e4,s=XC,l=0;function u(A,I,P,E,B,k,V){for(var z=WL(B,A),U=I,H=new Date(U);U<P&&U<=n[1]&&(V.push({value:U}),!(l++>o));)if(H[B](H[E]()+A),U=H.getTime(),a){var tt=a.calcNiceTickMultiple(U,z);tt>0&&(H[B](H[E]()+tt*A),U=H.getTime())}V.push({value:U,notAdd:!0})}function f(A,I,P){var E=[],B=!I.length;if(!NL(ka(A),n[0],n[1],e)){B&&(I=[{value:GL(n[0],A,e)},{value:n[1]}]);for(var k=0;k<I.length-1;k++){var V=I[k].value,z=I[k+1].value;if(V!==z){var U=void 0,H=void 0,tt=void 0,pt=!1;switch(A){case"year":U=Math.max(1,Math.round(t/be/365)),H=Q0(e),tt=jC(e);break;case"half-year":case"quarter":case"month":U=FL(t),H=tc(e),tt=j0(e);break;case"week":case"half-week":case"day":U=zL(t),H=ec(e),tt=J0(e),pt=!0;break;case"half-day":case"quarter-day":case"hour":U=VL(t),H=rc(e),tt=t_(e);break;case"minute":U=Dg(t,!0),H=nc(e),tt=e_(e);break;case"second":U=Dg(t,!1),H=ic(e),tt=r_(e);break;case"millisecond":U=HL(t),H=ac(e),tt=n_(e);break}z>=n[0]&&V<=n[1]&&u(U,V,z,H,tt,pt,E),A==="year"&&P.length>1&&k===0&&P.unshift({value:P[0].value-U})}}for(var k=0;k<E.length;k++)P.push(E[k])}}for(var h=[],c=[],v=0,d=0,p=0;p<s.length;++p){var g=ka(s[p]);if(qC(s[p])){f(s[p],h[h.length-1]||[],c);var y=s[p+1]?ka(s[p+1]):null;if(g!==y){if(c.length){d=v,c.sort(function(A,I){return A.value-I.value});for(var m=[],_=0;_<c.length;++_){var x=c[_].value;(_===0||c[_-1].value!==x)&&(m.push(c[_]),x>=n[0]&&x<=n[1]&&v++)}var S=i/t;if(v>S*1.5&&d>S/1.5||(h.push(m),v>S||r===s[p]))break}c=[]}}}for(var w=kt($(h,function(A){return kt(A,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(A){return A.length>0}),b=[],C=w.length-1,p=0;p<w.length;++p)for(var D=w[p],L=0;L<D.length;++L){var M=sl(D[L].value,e);b.push({value:D[L].value,time:{level:C-p,upperTimeUnit:M,lowerTimeUnit:M}})}b.sort(function(A,I){return A.value-I.value});for(var R=[],p=0;p<b.length;++p)(p===0||b[p].value!==b[p-1].value)&&R.push(b[p]);return R}tn.registerClass(Px);var Qh=$t,YL=Math.floor,XL=Math.ceil,ns=Math.pow,is=Math.log,Rx=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Ri,e}return t.prototype.getTicks=function(e){e=e||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=r.prototype.getTicks.call(this,e),o=this.base;return this._originalScale._innerGetBreaks(),$(a,function(s){var l=s.value,u=null,f=ns(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var h;return u!=null&&(f=gf(f,u)),{value:f,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,n){this._originalScale.setExtent(e,n);var i=$h(this.base,[e,n]);r.prototype.setExtent.call(this,i[0],i[1])},t.prototype.getExtent=function(){var e=this.base,n=r.prototype.getExtent.call(this);n[0]=ns(e,n[0]),n[1]=ns(e,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=gf(n[0],i[0])),this._fixMax&&(n[1]=gf(n[1],i[1])),n},t.prototype.unionExtentFromData=function(e,n){this._originalScale.unionExtentFromData(e,n);var i=$h(this.base,e.getApproximateExtent(n),!0);this._innerUnionExtent(i)},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=eb(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Qh(XL(n[0]/a)*a),Qh(YL(n[1]/a)*a)];this._interval=a,this._intervalPrecision=to(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=is(e)/is(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=is(e)/is(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),ns(this.base,e)},t.prototype.setBreaksFromOption=function(e){},t.type="log",t}(Ri);function gf(r,t){return Qh(r,Ci(t))}tn.registerClass(Rx);var ZL=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;rt(o)?this._modelMinNum=as(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=as(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(rt(s)?this._modelMaxNum=as(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=as(t,s)),i)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=N(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Xr(u[0],1),Xr(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Va(s)||Va(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[qL[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=$L[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),$L={min:"_determinedMin",max:"_determinedMax"},qL={min:"_dataMin",max:"_dataMax"};function Ex(r,t,e){var n=r.rawExtentInfo;return n||(n=new ZL(r,t,e),r.rawExtentInfo=n,n)}function as(r,t){return t==null?null:Va(t)?NaN:r.parse(t)}function kx(r,t){var e=r.type,n=Ex(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=Mx("bar",o),l=!1;if(T(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=Dx(s),f=KL(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function KL(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=RL(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;T(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function Ag(r,t){var e=t,n=kx(r,e),i=n.extent,a=e.get("splitNumber");r instanceof Rx&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(Nx(e)),r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function QL(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new bx({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Px({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(tn.getClass(t)||Ri)}}function jL(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function _o(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=ZC(t);return function(i,a){return r.scale.getFormattedLabel(i,a,e)}}else{if(Z(t))return function(i){var a=r.scale.getLabel(i),o=t.replace("{value}",a??"");return o};if(rt(t)){if(r.type==="category")return function(i,a){return t(yl(r,i),i.value-r.scale.getExtent()[0],null)};var n=ol();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(yl(r,i),a,o)}}else return function(i){return r.scale.getLabel(i)}}}function yl(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function Ac(r){var t=r.get("interval");return t??"auto"}function Ox(r){return r.type==="category"&&Ac(r.getLabelModel())===0}function Bx(r,t){var e={};return T(r.mapDimensionsAll(t),function(n){e[Sx(r,n)]=!0}),yt(e)}function JL(r,t,e){t&&T(Bx(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}function Ei(r){return r==="middle"||r==="center"}function eo(r){return r.getShallow("show")}function Nx(r){var t=r.get("breaks",!0);t==null}var t2=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Lg=[],e2={registerPreprocessor:cx,registerProcessor:dx,registerPostInit:KA,registerPostUpdate:QA,registerUpdateLifecycle:_c,registerAction:Vn,registerCoordinateSystem:jA,registerLayout:JA,registerVisual:Hn,registerTransform:eL,registerLoading:px,registerMap:tL,registerImpl:AA,PRIORITY:WA,ComponentModel:gt,ComponentView:ve,SeriesModel:Le,ChartView:Oe,registerComponentModel:function(r){gt.registerClass(r)},registerComponentView:function(r){ve.registerClass(r)},registerSeriesModel:function(r){Le.registerClass(r)},registerChartView:function(r){Oe.registerClass(r)},registerCustomSeries:function(r,t){IA(r,t)},registerSubTypeDefaulter:function(r,t){gt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Zw(r,t)}};function or(r){if(N(r)){T(r,function(t){or(t)});return}st(Lg,r)>=0||(Lg.push(r),rt(r)&&(r={install:r}),r.install(e2))}var r2=ft(),za=ft(),Ne={estimate:1,determine:2};function ml(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function zx(r,t){var e=$(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function n2(r,t){var e=r.getLabelModel().get("customValues");if(e){var n=_o(r),i=r.scale.getExtent(),a=zx(r,e),o=kt(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:$(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?a2(r,t):s2(r)}function i2(r,t,e){var n=r.getTickModel().get("customValues");if(n){var i=r.scale.getExtent(),a=zx(r,n);return{ticks:kt(a,function(o){return o>=i[0]&&o<=i[1]})}}return r.type==="category"?o2(r,t):{ticks:$(r.scale.getTicks(e),function(o){return o.value})}}function a2(r,t){var e=r.getLabelModel(),n=Fx(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:n}function Fx(r,t,e){var n=u2(r),i=Ac(t),a=e.kind===Ne.estimate;if(!a){var o=Hx(n,i);if(o)return o}var s,l;rt(i)?s=Ux(r,i):(l=i==="auto"?f2(r,e):i,s=Wx(r,l));var u={labels:s,labelCategoryInterval:l};return a?e.out.noPxChangeTryDetermine.push(function(){return jh(n,i,u),!0}):jh(n,i,u),u}function o2(r,t){var e=l2(r),n=Ac(t),i=Hx(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),rt(n))a=Ux(r,n,!0);else if(n==="auto"){var s=Fx(r,r.getLabelModel(),ml(Ne.determine));o=s.labelCategoryInterval,a=$(s.labels,function(l){return l.tickValue})}else o=n,a=Wx(r,o,!0);return jh(e,n,{ticks:a,tickCategoryInterval:o})}function s2(r){var t=r.scale.getTicks(),e=_o(r);return{labels:$(t,function(n,i){return{formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var l2=Vx("axisTick"),u2=Vx("axisLabel");function Vx(r){return function(e){return za(e)[r]||(za(e)[r]={list:[]})}}function Hx(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function jh(r,t,e){return r.list.push({key:t,value:e}),e}function f2(r,t){if(t.kind===Ne.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return za(r).autoInterval=e,!0}),e}var n=za(r).autoInterval;return n??(za(r).autoInterval=r.calculateCategoryInterval(t))}function h2(r,t){var e=t.kind,n=c2(r),i=_o(r),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var h=s[0],c=r.dataToCoord(h+1)-r.dataToCoord(h),v=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),p=0,g=0;h<=s[1];h+=u){var y=0,m=0,_=Xm(i({value:h}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var x=p/v,S=g/d;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(x,S)));if(e===Ne.estimate)return t.out.noPxChangeTryDetermine.push(q(v2,null,r,w,l)),w;var b=Gx(r,w,l);return b??w}function v2(r,t,e){return Gx(r,t,e)==null}function Gx(r,t,e){var n=r2(r.model),i=r.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-e)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=e,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function c2(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Wx(r,t,e){var n=_o(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Ox(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&p(a[0]);for(var d=u;d<=a[1];d+=l)p(d);v&&d-l!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function Ux(r,t,e){var n=r.scale,i=_o(r),a=[];return T(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var Ig=[0,1],d2=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Km(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Pg(n,i.count())),At(t,Ig,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Pg(n,i.count()));var a=At(t,n,Ig,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=i2(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=n.ticks,a=$(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return p2(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=$(n,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(t){return t=t||ml(Ne.determine),n2(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(t){return t=t||ml(Ne.determine),h2(this,t)},r}();function Pg(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function p2(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;T(t,function(v){v.coord-=u/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function c(v,d){return v=$t(v),d=$t(d),h?v>d:v<d}}function Yx(r,t,e,n,i,a,o,s){var l=i-r,u=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;d*=c;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}var Er=new nt,Pt=new nt,Wt=new nt,kr=new nt,qe=new nt,_l=[],Jt=new nt;function g2(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Er.fromArray(r[0]),Pt.fromArray(r[1]),Wt.fromArray(r[2]),nt.sub(kr,Er,Pt),nt.sub(qe,Wt,Pt);var e=kr.len(),n=qe.len();if(!(e<.001||n<.001)){kr.scale(1/e),qe.scale(1/n);var i=kr.dot(qe),a=Math.cos(t);if(a<i){var o=Yx(Pt.x,Pt.y,Wt.x,Wt.y,Er.x,Er.y,_l);Jt.fromArray(_l),Jt.scaleAndAdd(qe,o/Math.tan(Math.PI-t));var s=Wt.x!==Pt.x?(Jt.x-Pt.x)/(Wt.x-Pt.x):(Jt.y-Pt.y)/(Wt.y-Pt.y);if(isNaN(s))return;s<0?nt.copy(Jt,Pt):s>1&&nt.copy(Jt,Wt),Jt.toArray(r[1])}}}}function y2(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Er.fromArray(r[0]),Pt.fromArray(r[1]),Wt.fromArray(r[2]),nt.sub(kr,Pt,Er),nt.sub(qe,Wt,Pt);var n=kr.len(),i=qe.len();if(!(n<.001||i<.001)){kr.scale(1/n),qe.scale(1/i);var a=kr.dot(t),o=Math.cos(e);if(a<o){var s=Yx(Pt.x,Pt.y,Wt.x,Wt.y,Er.x,Er.y,_l);Jt.fromArray(_l);var l=Math.PI/2,u=Math.acos(qe.dot(t)),f=l+u-e;if(f>=l)nt.copy(Jt,Wt);else{Jt.scaleAndAdd(qe,s/Math.tan(Math.PI/2-f));var h=Wt.x!==Pt.x?(Jt.x-Pt.x)/(Wt.x-Pt.x):(Jt.y-Pt.y)/(Wt.y-Pt.y);if(isNaN(h))return;h<0?nt.copy(Jt,Pt):h>1&&nt.copy(Jt,Wt)}Jt.toArray(r[1])}}}}function yf(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function m2(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=Jf(n[0],n[1]),a=Jf(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=su([],n[1],n[0],o/i),l=su([],n[1],n[2],o/a),u=su([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function _2(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Ks.length;l++){var u=Ks[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:J(i.states[u]&&i.states[u].ignore,s);if(v||!J(c,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&yf(n,!0,u,f);continue}n||(n=new zi,r.setTextGuideLine(n),!h&&(s||!o)&&yf(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),yf(n,!1,u,f)}}if(n){dt(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=m2}}function x2(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<Me.length;n++){var i=Me[n];e[i]=r.getModel([i,t])}return e}var Rg=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],S2=1,xl=2,Xx=S2|xl;function Sl(r,t,e){e=e||Xx,t?r.dirty|=e:r.dirty&=~e}function Zx(r,t){return t=t||Xx,r.dirty==null||!!(r.dirty&t)}function qr(r){if(r)return Zx(r)&&$x(r,r.label,r),r}function $x(r,t,e){var n=t.getComputedTransform();r.transform=Zv(r.transform,n);var i=r.localRect=$a(r.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=di.textMargin);for(var h=0;h<4;h++)mf[h]=f===di.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===di.textMargin&&nl(i,mf,!1,!1);var c=r.rect=$a(r.rect,i);return n&&c.applyTransform(n),f===di.minMargin&&nl(c,mf,!1,!1),r.axisAligned=Xv(n),(r.label=r.label||{}).ignore=t.ignore,Sl(r,!1),Sl(r,!0,xl),r}var mf=[0,0,0,0];function w2(r,t,e){return r.transform=Zv(r.transform,e),r.localRect=$a(r.localRect,t),r.rect=$a(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=Xv(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function b2(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var n=r.rect;n&&(n.x+=t.x,n.y+=t.y);var i=r.obb;i&&i.fromBoundingRect(r.localRect,e)}}function Eg(r,t){for(var e=0;e<Rg.length;e++){var n=Rg[e];r[n]==null&&(r[n]=t[n])}return qr(r)}function kg(r){var t=r.obb;return(!t||Zx(r,xl))&&(r.obb=t=t||new O0,t.fromBoundingRect(r.localRect,r.transform),Sl(r,!1,xl)),t}function T2(r,t,e,n,i){var a=r.length,o=Pr[t],s=Ai[t];if(a<2)return!1;r.sort(function(b,C){return b.rect[o]-C.rect[o]});for(var l=0,u,f=!1,h=0;h<a;h++){var c=r[h],v=c.rect;u=v[o]-l,u<0&&(v[o]-=u,c.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[a-1],g,y;m(),g<0&&S(-g,.8),y<0&&S(y,.8),m(),_(g,y,1),_(y,g,-1),m(),g<0&&w(-g),y<0&&w(y);function m(){g=d.rect[o]-e,y=n-p.rect[o]-p.rect[s]}function _(b,C,D){if(b<0){var L=Math.min(C,-b);if(L>0){x(L*D,0,a);var M=L+b;M<0&&S(-M*D,1)}else S(-b*D,1)}}function x(b,C,D){b!==0&&(f=!0);for(var L=C;L<D;L++){var M=r[L],R=M.rect;R[o]+=b,M.label[o]+=b}}function S(b,C){for(var D=[],L=0,M=1;M<a;M++){var R=r[M-1].rect,A=Math.max(r[M].rect[o]-R[o]-R[s],0);D.push(A),L+=A}if(L){var I=Math.min(Math.abs(b)/L,C);if(b>0)for(var M=0;M<a-1;M++){var P=D[M]*I;x(P,0,M+1)}else for(var M=a-1;M>0;M--){var P=D[M-1]*I;x(-P,M,a)}}}function w(b){var C=b<0?-1:1;b=Math.abs(b);for(var D=Math.ceil(b/(a-1)),L=0;L<a-1;L++)if(C>0?x(D,0,L+1):x(-D,a-L-1,a),b-=D,b<=0)return}return f}function C2(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<r.length;n++){var i=qr(r[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<t.length;l++)if(Lc(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(a),o&&e(o)):t.push(i)}}}function Lc(r,t,e,n){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,n)?!1:r.axisAligned&&t.axisAligned?!0:kg(r).intersect(kg(t),e,n)}const M2=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function D2(r){function t(n){return(...i)=>{if(!r.value)throw new Error("ECharts is not initialized yet.");return r.value[n].apply(r.value,i)}}function e(){const n=Object.create(null);return M2.forEach(i=>{n[i]=t(i)}),n}return e()}function A2(r,t,e){va([e,r,t],([n,i,a],o,s)=>{let l=null;if(n&&i&&a){const{offsetWidth:u,offsetHeight:f}=n,h=a===!0?{}:a,{throttle:c=100,onResize:v}=h;let d=!1;const p=()=>{i.resize(),v==null||v()},g=c?Jl(p,c):p;l=new ResizeObserver(()=>{!d&&(d=!0,n.offsetWidth===u&&n.offsetHeight===f)||n.offsetWidth===0||n.offsetHeight===0||g()}),l.observe(n)}s(()=>{l&&(l.disconnect(),l=null)})})}const L2={autoresize:[Boolean,Object]},I2=Symbol();function P2(r,t,e){const n=Ss(I2,{}),i=oi(()=>({...ws(n),...e==null?void 0:e.value}));pm(()=>{const a=r.value;a&&(t.value?a.showLoading(i.value):a.hideLoading())})}const R2={loading:Boolean,loadingOptions:Object},E2=/^on[^a-z]/,qx=r=>E2.test(r);function k2(r){const t={};for(const e in r)qx(e)||(t[e]=r[e]);return t}function O2(r){const t=Number(r);return Number.isInteger(t)&&t>=0&&t<Math.pow(2,32)-1&&String(t)===r}function B2(r,t){const e=new Set(r),n=new Set(t);if(e.size!==n.size)return!1;for(const i of e)if(!n.has(i))return!1;return!0}const Kx={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},N2=Object.keys(Kx);function _f(r){return N2.some(t=>r===t||r.startsWith(t+"-"))}function z2(r,t){const e=typeof window<"u"?document.createElement("div"):void 0,n=au({}),i=au({}),a=au({}),o=xs(!1),s=()=>o.value?Ns(u1,{to:e},Object.entries(r).filter(([f])=>_f(f)).map(([f,h])=>{const c=f,v=i[c]?h==null?void 0:h(a[c]):void 0;return Ns("div",{ref:d=>n[c]=d,style:{display:"contents"}},v)})):void 0;function l(f){const h={...f};return Object.keys(r).filter(c=>_f(c)).forEach(c=>{const v=c.split("-"),d=v.shift();v.push(...Kx[d]);let p=h;for(let g=0;g<v.length-1;g++){const y=v[g],m=p[y];p[y]=m?Array.isArray(m)?[...m]:{...m}:O2(y)?[]:{},p=p[y]}p[v[v.length-1]]=g=>(i[c]=!0,a[c]=g,n[c])}),h}let u=[];return s1(()=>{const f=Object.keys(r).filter(_f);B2(f,u)||(u.forEach(h=>{f.includes(h)||(delete a[h],delete i[h],delete n[h])}),u=f,t())}),gm(()=>{o.value=!0}),l1(()=>{e==null||e.remove()}),{teleportedSlots:s,patchOption:l}}let ea=null;const Jh="x-vue-echarts";function F2(){if(ea!=null)return ea;if(typeof HTMLElement>"u"||typeof customElements>"u")return ea=!1;try{class r extends HTMLElement{constructor(){super(...arguments);$c(this,"__dispose",null)}disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(Jh)==null&&customElements.define(Jh,r)}catch{return ea=!1}return ea=!0}var Og="x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}";if(typeof document<"u")if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const r=new CSSStyleSheet;r.replaceSync(Og),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]}else{const r=document.createElement("style");r.textContent=Og,document.head.appendChild(r)}const V2=F2(),H2=Symbol(),G2=Symbol(),W2=Symbol();var U2=dm({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...L2,...R2},emits:{},slots:Object,inheritAttrs:!1,setup(r,{attrs:t,expose:e,slots:n}){const i=xs(),a=xs(),o=xs(),s=Ss(H2,null),l=Ss(G2,null),u=Ss(W2,null),{autoresize:f,manualUpdate:h,loading:c,loadingOptions:v}=i1(r),d=oi(()=>o.value||r.option||null),p=oi(()=>r.theme||ws(s)||{}),g=oi(()=>r.initOptions||ws(l)||{}),y=oi(()=>r.updateOptions||ws(u)||{}),m=oi(()=>k2(t)),_={},x=new Map,{teleportedSlots:S,patchOption:w}=z2(n,()=>{!h.value&&r.option&&a.value&&a.value.setOption(w(r.option),y.value)});Object.keys(t).filter(A=>qx(A)).forEach(A=>{if(A.indexOf("Native:")===2){const B=`on${A.charAt(9).toUpperCase()}${A.slice(10)}`;_[B]=t[A];return}let I=A.charAt(2).toLowerCase()+A.slice(3),P;I.indexOf("zr:")===0&&(P=!0,I=I.substring(3));let E;I.substring(I.length-4)==="Once"&&(E=!0,I=I.substring(0,I.length-4)),x.set({event:I,zr:P,once:E},t[A])});function b(A){if(!i.value)return;const I=a.value=$A(i.value,p.value,g.value);r.group&&(I.group=r.group),x.forEach((B,{zr:k,once:V,event:z})=>{if(!B)return;const U=k?I.getZr():I;if(V){const H=B;B=(...tt)=>{H(...tt),U.off(z,B)}}U.on(z,B)});function P(){I&&!I.isDisposed()&&I.resize()}function E(){const B=A||d.value;B&&I.setOption(w(B),y.value)}f.value?o1(()=>{P(),E()}):E()}const C=(A,I,P)=>{const E=typeof I=="boolean"?{notMerge:I,lazyUpdate:P}:I;r.manualUpdate&&(o.value=A),a.value?a.value.setOption(w(A),E):b(A)};function D(){a.value&&(a.value.dispose(),a.value=void 0)}let L=null;va(h,A=>{typeof L=="function"&&(L(),L=null),A||(L=va(()=>r.option,(I,P)=>{I&&(a.value?a.value.setOption(w(I),{notMerge:I!==P,...y.value}):b())},{deep:!0}))},{immediate:!0}),va(g,()=>{D(),b()},{deep:!0}),va(p,A=>{var I;(I=a.value)==null||I.setTheme(A)},{deep:!0}),pm(()=>{r.group&&a.value&&(a.value.group=r.group)});const M=D2(a);return P2(a,c,v),A2(a,f,i),gm(()=>{b()}),a1(()=>{V2&&i.value?i.value.__dispose=D:D()}),e({...{setOption:C,root:i,chart:a},...M}),()=>Ns(Jh,{...m.value,..._,ref:i,class:["echarts",m.value.class]},S())}}),Y2=U2;function Bg(r,t,e){var n=mr.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",r)),n.width=i*e,n.height=a*e,n}var xf=function(r){F(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||Us,typeof e=="string"?o=Bg(e,n,i):Q(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(wm(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.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Bg("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new at(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new at(0,0,0,0);_.copy(m),o.push(_)}else{for(var x=!1,S=1/0,w=0,b=0;b<o.length;++b){var C=o[b];if(C.intersect(m)){var D=new at(0,0,0,0);D.copy(C),D.union(m),o[b]=D,x=!0;break}else if(l){u.copy(m),u.union(C);var L=m.width*m.height,M=C.width*C.height,R=u.width*u.height,A=R-L-M;A<S&&(S=A,w=b)}}if(l&&(o[w].union(m),x=!0),!x){var _=new at(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&tr||!v)?c.getPrevPaintRect():null;d&&f(d);var p=v&&(c.__dirty&tr||!c.__isRendered)?c.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(El(n)){var x=n.global||n.__width===y&&n.__height===m;_=x&&n.__canvasGradient||Vh(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else D1(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Hh(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!i||u?d(0,0,s,l):i.length&&T(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t}(Fe),Ng=1e5,Cn=314159,os=.01,X2=.001;function Z2(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function $2(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var q2=function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=O({},n||{}),this.dpr=n.devicePixelRatio||Us,this._singleCanvas=a,this.root=t;var o=t.style;o&&(wm(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new xf(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[Cn]=v,v.zlevel=Cn,s.push(Cn),this._domRoot=t}else{this._width=Ko(t,0,n),this._height=Ko(t,1,n);var u=this._domRoot=$2(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Ng)),a||(a=n.ctx,a.save()),Rn(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Ng)},r.prototype.paintOne=function(t,e){q_(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Fs(function(){l._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Cn).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,c=function(p){var g=a[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,x=!n&&g.incremental&&Date.now,S=x&&Date.now(),w=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,w,m);else if(_===g.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&g.clear(!1,w,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var C,D=function(A){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<g.__endIndex;C++){var P=t[C];if(P.__inHover&&(h=!0),i._doPaintEl(P,g,o,A,I,C===g.__endIndex-1),x){var E=Date.now()-S;if(E>15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=g.__endIndex;else for(var L=v.dpr,M=0;M<m.length;++M){var R=m[M];y.save(),y.beginPath(),y.rect(R.x*L,R.y*L,R.width*L,R.height*L),y.clip(),D(R),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=C,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return it.wxa&&T(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Rn(s,t,a,o),t.setPrevPaintRect(l))}else Rn(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Cn);var n=this._layers[t];return n||(n=new xf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ct(n,this._layerConfig[t],!0):this._layerConfig[t-os]&&ct(n,this._layerConfig[t-os],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&Z2(e)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+X2,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?os:0),this._needsManuallyCompositing),f.__builtin__||Sv("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),i.__dirty&tr&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?ct(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+os){var o=this._layers[a];ct(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(st(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=Ko(a,0,i),e=Ko(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Cn).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Cn].dom;var e=new xf("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(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},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Rn(n,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function K2(r){r.registerPainter("canvas",q2)}function tv(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ii(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(Ii(r,t,e[o]));return a.join(" ")}}function Q2(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!N(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}function j2(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new Tt({shape:{x:o,y:s,width:l,height:u}});return h}function J2(r,t,e){var n=r.getArea(),i=$t(n.r0,1),a=$t(n.r,1),o=new Jr({shape:{cx:$t(r.cx,1),cy:$t(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return o}function Qx(r,t,e,n,i){if(r){if(r.type==="polar")return J2(r);if(r.type==="cartesian2d")return j2(r,t,e)}else return null;return null}function Ic(r,t){return r.type===t}var tI={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},eI=function(r){return Math.round(r.length/2)};function rI(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.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(u.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Z(a)?d=tI[a]:rt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/v,d,eI))}}}}}var ev=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Cc(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)T(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,x=1,S=0;S<d.length;S++){var w=d[S].coord,b=S===d.length-1?d[S-1].tickValue+x:d[S].tickValue;if(b===g){_=w;break}else if(b<g)m=w;else if(m!=null&&b>g){_=(w+m)/2;break}S===1&&(x=b-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t}(Le);Le.registerClass(ev);var nI=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Cc(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=$l(ev.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:G.color.primary,borderWidth:2}},realtimeSort:!1}),t}(ev),iI=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),zg=function(r){F(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new iI},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(p*o+i,g*o+a),e.arc(p*u+i,g*u+a,l,-Math.PI+f,f,!c)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,h,!c),e.arc(y*u+i,m*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(i,a,o,h,f,c)},t}(St);function aI(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Ys(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,x=Math.sin,S=f+c*_(p),w=h+c*x(p),b="left",C="top";switch(s){case"startArc":S=f+(v-l)*_(y),w=h+(v-l)*x(y),b="center",C="top";break;case"insideStartArc":S=f+(v+l)*_(y),w=h+(v+l)*x(y),b="center",C="bottom";break;case"startAngle":S=f+d*_(p)+ss(p,l+m,!1),w=h+d*x(p)+ls(p,l+m,!1),b="right",C="middle";break;case"insideStartAngle":S=f+d*_(p)+ss(p,-l+m,!1),w=h+d*x(p)+ls(p,-l+m,!1),b="left",C="middle";break;case"middle":S=f+d*_(y),w=h+d*x(y),b="center",C="middle";break;case"endArc":S=f+(c+l)*_(y),w=h+(c+l)*x(y),b="center",C="bottom";break;case"insideEndArc":S=f+(c-l)*_(y),w=h+(c-l)*x(y),b="center",C="top";break;case"endAngle":S=f+d*_(g)+ss(g,l+m,!0),w=h+d*x(g)+ls(g,l+m,!0),b="left",C="middle";break;case"insideEndAngle":S=f+d*_(g)+ss(g,-l+m,!0),w=h+d*x(g)+ls(g,-l+m,!0),b="right",C="middle";break;default:return Ys(n,i,a)}return n=n||{},n.x=S,n.y=w,n.align=b,n.verticalAlign=C,n}}function oI(r,t,e,n){if(bt(n)){r.setTextConfig({rotation:n});return}else if(N(t)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function ss(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ls(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Sa(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;N(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:$(n,function(a){return Xr(a,i)})}}var Sf=Math.max,wf=Math.min;function sI(r,t){var e=r.getArea&&r.getArea();if(Ic(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var lI=function(r){F(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){go(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=uI(e,u);v&&this._enableRealtimeSort(v,s,i);var d=e.get("clip",!0)||v,p=sI(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],S=this._backgroundEls,w=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function C(M){var R=us[u.type](s,M);if(!R)return null;var A=gI(u,h,R);return A.useStyle(m.getItemStyle()),u.type==="cartesian2d"?A.setShape("r",_):A.setShape("cornerRadius",_),x[M]=A,A}s.diff(l).add(function(M){var R=s.getItemModel(M),A=us[u.type](s,M,R);if(A&&(y&&C(M),!(!s.hasValue(M)||!Wg[u.type](A)))){var I=!1;d&&(I=Fg[u.type](p,A));var P=Vg[u.type](e,s,M,A,h,c,f.model,!1,g);v&&(P.forceLabelAnimation=!0),Ug(P,s,M,R,A,e,h,u.type==="polar"),w?P.attr({shape:A}):v?Hg(v,c,P,A,M,h,!1,!1):pr(P,{shape:A},e,M),s.setItemGraphicEl(M,P),o.add(P),P.ignore=I}}).update(function(M,R){var A=s.getItemModel(M),I=us[u.type](s,M,A);if(I){if(y){var P=void 0;S.length===0?P=C(R):(P=S[R],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),x[M]=P);var E=us[u.type](s,M),B=Jx(h,E,u);De(P,{shape:B},c,M)}var k=l.getItemGraphicEl(R);if(!s.hasValue(M)||!Wg[u.type](I)){o.remove(k);return}var V=!1;d&&(V=Fg[u.type](p,I),V&&o.remove(k));var z=k&&(k.type==="sector"&&g||k.type==="sausage"&&!g);if(z&&(k&&Ra(k,e,R),k=null),k?N0(k):k=Vg[u.type](e,s,M,I,h,c,f.model,!0,g),v&&(k.forceLabelAnimation=!0),b){var U=k.getTextContent();if(U){var H=qv(U);H.prevValue!=null&&(H.prevValue=H.value)}}else Ug(k,s,M,A,I,e,h,u.type==="polar");w?k.attr({shape:I}):v?Hg(v,c,k,I,M,h,!0,b):De(k,{shape:I},e,M,null),s.setItemGraphicEl(M,k),k.ignore=V,o.add(k)}}).remove(function(M){var R=l.getItemGraphicEl(M);R&&Ra(R,e,M)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Lt);D.removeAll();for(var L=0;L<x.length;++L)D.add(x[L]);o.add(D),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),Xg(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),Xg(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&Qx(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:$(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ra(a,e,ht(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Oe),Fg={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=Sf(t.x,r.x),s=wf(t.x+t.width,i),l=Sf(t.y,r.y),u=wf(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=wf(t.r,r.r),a=Sf(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Vg={cartesian2d:function(r,t,e,n,i,a,o,s,l){var u=new Tt({shape:O({},n),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,t,e,n,i,a,o,s,l){var u=!i&&l?zg:Jr,f=new u({shape:n,z2:1});f.name="item";var h=jx(i);if(f.calculateTextPosition=aI(h,{isRoundCap:u===zg}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?De:pr)(f,{shape:d},a)}return f}};function uI(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Hg(r,t,e,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?De:pr)(e,{shape:l},t,i,null);var f=t?r.baseAxis.model:null;(o?De:pr)(e,{shape:u},f,i)}function Gg(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var fI=["x","y","width","height"],hI=["cx","cy","r","startAngle","endAngle"],Wg={cartesian2d:function(r){return!Gg(r,fI)},polar:function(r){return!Gg(r,hI)}},us={cartesian2d:function(r,t,e){var n=r.getItemLayout(t);if(!n)return null;var i=e?cI(e,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function vI(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function jx(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function Ug(r,t,e,n,i,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=Sa(n.getModel("itemStyle"),f,!0);O(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=mo(n);yo(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:tv(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,oI(r,g==="outside"?v:g,jx(o),n.get(["label","rotate"]))}AC(p,d,a.getRawValue(e),function(m){return Q2(t,m)});var y=n.getModel(["emphasis"]);co(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),D0(r,n),vI(i)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function cI(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var dI=function(){function r(){}return r}(),Yg=function(r){F(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new dI},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(St);function Xg(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Yg({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new Yg({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,ht(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",Zg),h.on("mousemove",Zg)),e&&e.push(h)}var Zg=Jl(function(r){var t=this,e=pI(t,r.offsetX,r.offsetY);ht(t).dataIndex=e>=0?e:null},30,!1);function pI(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Jx(r,t,e){if(Ic(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function gI(r,t,e){var n=r.type==="polar"?Jr:Tt;return new n({shape:Jx(t,e,r),silent:!0,z2:0})}function yI(r){r.registerChartView(lI),r.registerSeriesModel(nI),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(EL,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kL("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,rI("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var $g=Math.PI*2,fs=Math.PI/180;function mI(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=lM(n,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,h=o.viewRect,c=-n.get("startAngle")*fs,v=n.get("endAngle"),d=n.get("padAngle")*fs;v=v==="auto"?c-$g:-v*fs;var p=n.get("minAngle")*fs,g=p+d,y=0;i.each(a,function(B){!isNaN(B)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,x=n.get("clockwise"),S=n.get("roseType"),w=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var C=x?1:-1,D=[c,v],L=C*d/2;v0(D,!x),c=D[0],v=D[1];var M=tS(n);M.startAngle=c,M.endAngle=v,M.clockwise=x,M.cx=s,M.cy=l,M.r=u,M.r0=f;var R=Math.abs(v-c),A=R,I=0,P=c;if(i.setLayout({viewRect:h,r:u}),i.each(a,function(B,k){var V;if(isNaN(B)){i.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:s,cy:l,r0:f,r:S?NaN:u});return}S!=="area"?V=m===0&&w?_:B*_:V=R/y,V<g?(V=g,A-=g):I+=B;var z=P+C*V,U=0,H=0;d>V?(U=P+C*V/2,H=U):(U=P+L,H=z-L),i.setItemLayout(k,{angle:V,startAngle:U,endAngle:H,clockwise:x,cx:s,cy:l,r0:f,r:S?At(B,b,[f,u]):u}),P=z}),A<$g&&y)if(A<=.001){var E=R/y;i.each(a,function(B,k){if(!isNaN(B)){var V=i.getItemLayout(k);V.angle=E;var z=0,U=0;E<d?(z=c+C*(k+1/2)*E,U=z):(z=c+C*k*E+L,U=c+C*(k+1)*E-L),V.startAngle=z,V.endAngle=U}})}else _=A/I,P=c,i.each(a,function(B,k){if(!isNaN(B)){var V=i.getItemLayout(k),z=V.angle===g?g:B*_,U=0,H=0;z<d?(U=P+C*z/2,H=U):(U=P+L,H=P+C*z-L),V.startAngle=U,V.endAngle=H,P+=C*z}})})}var tS=ft();function _I(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var xI=Math.PI/180;function qg(r,t,e,n,i,a,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],x=Math.abs(_.label.y-e),S=n+_.len,w=S*S,b=Math.sqrt(Math.abs((1-x*x/y)*w)),C=t+(b+_.len2)*i,D=C-_.label.x,L=_.targetTextWidth-D*i;eS(_,L,!0),_.label.x=C}}function h(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],x=_.label.y>e?y:g,S=Math.abs(_.label.y-e);if(S>=x.maxY){var w=_.label.x-t-_.len2*i,b=n+_.len,C=Math.abs(w)<b?Math.sqrt(S*S/(1-w*w/b/b)):b;x.rB=C,x.maxY=S}x.list.push(_)}f(g),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}T2(r,1,l,l+o)&&h(r)}function SI(r,t,e,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;bf(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!bf(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+i-h-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,eS(d,g,!1)}}qg(u,t,e,n,1,i,a,o,s,h),qg(l,t,e,n,-1,i,a,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!bf(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,x=v.style.backgroundColor?0:_,S=d.rect.width+x,w=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+S+d.labelDistance:p[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+w),p[1][1]=p[2][1]=v.y}}}function eS(r,t,e){if(r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||e){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var c=t-l,v=t<f?c:e?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",v)}rS(a,n)}}}function rS(r,t){Kg.rect=r,$x(Kg,t,wI)}var wI={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Kg={};function bf(r){return r.position==="center"}function bI(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*xI,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var b in w.states)if(w.states[b].ignore===!1)return!0;return!1}t.each(function(w){var b=t.getItemGraphicEl(w),C=b.shape,D=b.getTextContent(),L=b.getTextGuideLine(),M=t.getItemModel(w),R=M.getModel("label"),A=R.get("position")||M.get(["emphasis","label","position"]),I=R.get("distanceToLabelLine"),P=R.get("alignTo"),E=xt(R.get("edgeDistance"),u),B=R.get("bleedMargin");B==null&&(B=Math.min(u,c)>200?10:2);var k=M.getModel("labelLine"),V=k.get("length");V=xt(V,u);var z=k.get("length2");if(z=xt(z,u),Math.abs(C.endAngle-C.startAngle)<o){T(D.states,v),D.ignore=!0,L&&(T(L.states,v),L.ignore=!0);return}if(d(D)){var U=(C.startAngle+C.endAngle)/2,H=Math.cos(U),tt=Math.sin(U),pt,Nt,Kt,Ht;n=C.cx,i=C.cy;var ot=A==="inside"||A==="inner";if(A==="center")pt=C.cx,Nt=C.cy,Ht="center";else{var j=(ot?(C.r+C.r0)/2*H:C.r*H)+n,lt=(ot?(C.r+C.r0)/2*tt:C.r*tt)+i;if(pt=j+H*3,Nt=lt+tt*3,!ot){var X=j+H*(V+l-C.r),K=lt+tt*(V+l-C.r),Dt=X+(H<0?-1:1)*z,mt=K;P==="edge"?pt=H<0?f+E:f+u-E:pt=Dt+(H<0?-I:I),Nt=mt,Kt=[[j,lt],[X,K],[Dt,mt]]}Ht=ot?"center":P==="edge"?H>0?"right":"left":H>0?"left":"right"}var wt=Math.PI,Rt=0,Qt=R.get("rotate");if(bt(Qt))Rt=Qt*(wt/180);else if(A==="center")Rt=0;else if(Qt==="radial"||Qt===!0){var wr=H<0?-U+wt:-U;Rt=wr}else if(Qt==="tangential"&&A!=="outside"&&A!=="outer"){var sr=Math.atan2(H,tt);sr<0&&(sr=wt*2+sr);var xo=tt>0;xo&&(sr=wt+sr),Rt=sr-wt}if(a=!!Rt,D.x=pt,D.y=Nt,D.rotation=Rt,D.setStyle({verticalAlign:"middle"}),ot){D.setStyle({align:Ht});var iu=D.states.select;iu&&(iu.x+=D.x,iu.y+=D.y)}else{var nu=new at(0,0,0,0);rS(nu,D),e.push({label:D,labelLine:L,position:A,len:V,len2:z,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new nt(H,tt),linePoints:Kt,textAlign:Ht,labelDistance:I,labelAlignTo:P,edgeDistance:E,bleedMargin:B,rect:nu,unconstrainedWidth:nu.width,labelStyleWidth:D.style.width})}b.setTextConfig({inside:ot})}}),!a&&r.get("avoidLabelOverlap")&&SI(e,n,i,l,u,c,f,h);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(T(y.states,v),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var S=g.linePoints;_||!S?(T(m.states,v),m.ignore=!0):(g2(S,g.minTurnAngle),y2(S,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:S}),y.__hostTarget.textGuideLineConfig={anchor:new nt(S[0][0],S[0][1])})}}}var TI=function(r){F(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new zt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,l=e.getItemModel(n),u=l.getModel("emphasis"),f=e.getItemLayout(n),h=O(Sa(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(pr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,pr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),pr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,De(o,{shape:{endAngle:f.endAngle}},s,n))}else N0(o),De(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),D0(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Sa(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:p,y:g,shape:Sa(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:Sa(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&O(m.ensureState("select"),{x:p,y:g}),O(_.ensureState("select"),{x:p,y:g}),co(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;yo(a,mo(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new zi,this.setTextGuideLine(v)),_2(this,x2(o),{stroke:u,opacity:zr(s.get(["lineStyle","opacity"]),f,1)})}},t}(Jr),CI=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=tS(e),v=new Jr({shape:ut(c)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new TI(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Ra(p,e,d)}).execute(),bI(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(Oe);function MI(r,t,e){t=N(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=bc(n,t).dimensions,a=new _i(i,r);return a.initData(n,e),a}var DI=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}(),AI=ft(),nS=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new DI(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return MI(this,{coordDimensions:["value"],encodeDefaulter:vt(yM,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=AI(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=jw(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){$s(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Le);eM({fullType:nS.type,getCoord2:function(r){return r.getShallow("center")}});function LI(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(bt(o)&&!isNaN(o)&&o<0)})}}}function II(r){r.registerChartView(CI),r.registerSeriesModel(nS),JD("pie",r.registerAction),r.registerLayout(vt(mI,"pie")),r.registerProcessor(_I("pie")),r.registerProcessor(LI("pie"))}var iS={left:0,right:0,top:0,bottom:0},wl=["25%","25%"],PI=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,n){var i=Fi(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&Zr(e.outerBounds,i)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Zr(this.option.outerBounds,e.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:iS,outerBoundsContain:"all",outerBoundsClampWidth:wl[0],outerBoundsClampHeight:wl[1],backgroundColor:G.color.transparent,borderWidth:1,borderColor:G.color.neutral30},t}(gt),rv=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ee).models[0]},t.type="cartesian2dAxis",t}(gt);ze(rv,t2);var aS={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:G.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:G.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:G.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[G.color.backgroundTint,G.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:G.color.neutral00,borderColor:G.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},RI=ct({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},aS),Pc=ct({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:G.color.axisMinorSplitLine,width:1}}},aS),EI=ct({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pc),kI=dt({logBase:10},Pc);const OI={category:RI,value:Pc,time:EI,log:kI};var BI={value:1,category:1,time:1,log:1},NI=null;function zI(){return NI}function Qg(r,t,e,n){T(BI,function(i,a){var o=ct(ct({},OI[a],!0),n,!0),s=function(l){F(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Ka(this),v=c?Fi(f):{},d=h.getTheme();ct(f,d.get(a+"Axis")),ct(f,this.getDefaultOption()),f.type=jg(f),c&&Zr(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=qh.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",jg)}function jg(r){return r.type||(r.data?"category":"value")}var FI=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return $(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),kt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),nv=["x","y"];function Jg(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var VI=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=nv,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Jg(e)||!Jg(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=lo([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new at(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Te(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(e[0]),u=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n,i){if(i=i||[],this._invTransform)return Te(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,l=Math.max(i[0],i[1])-o+e;return new at(a,o,s,l)},t}(FI),HI=function(r){F(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(d2),GI="expandAxisBreak",Or=Math.PI,WI=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],UI=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],ro=ft(),oS=ft(),sS=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,i=this.recordMap,a=i[e]||(i[e]=[]);return a[n]||(a[n]={ready:{}})},r}();function YI(r,t,e,n){var i=e.axis,a=t.ensureRecord(e),o=[],s,l=Rc(r.axisName)&&Ei(r.nameLocation);T(n,function(d){var p=qr(d);if(!(!p||p.label.ignore)){o.push(p);var g=a.transGroup;l&&(g.transform?lo(ra,g.transform):Cv(ra),p.transform&&Ca(ra,ra,p.transform),at.copy(hs,p.localRect),hs.applyTransform(ra),s?s.union(hs):at.copy(s=new at(0,0,0,0),hs))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var h=i.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new at(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ra=Je(),hs=new at(0,0,0,0),lS=function(r,t,e,n,i,a){if(Ei(r.nameLocation)){var o=a.stOccupiedRect;o&&uS(w2({},o,a.transGroup.transform),n,i)}else fS(a.labelInfoList,a.dirVec,n,i)};function uS(r,t,e){var n=new nt;Lc(r,t,n,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&b2(t,n)}function fS(r,t,e,n){for(var i=nt.dot(n,t)>=0,a=0,o=r.length;a<o;a++){var s=r[i?a:o-1-a];s.label.ignore||uS(s,e,n)}}var Ur=function(){function r(t,e,n,i){this.group=new Lt,this._axisModel=t,this._api=e,this._local={},this._shared=i||new sS(lS),this._resetCfgDetermined(n)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=J(t.axisName,e.get("name")),a=e.get("nameMoveOverlap");(a==null||a==="auto")&&(a=J(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:J(t.nameDirection,1),tickDirection:J(t.tickDirection,1),labelDirection:J(t.labelDirection,1),labelOffset:J(t.labelOffset,0),silent:J(t.silent,!0),axisName:i,nameLocation:zr(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Rc(i)&&a,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new Lt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new nt(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(XI,function(i){t[i]&&ZI[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})}),this},r.innerTextLayout=function(t,e,n){var i=Qm(e-t),a,o;return Xs(i)?(o=n>0?"top":"bottom",a="center"):Xs(i-Or)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Or?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),XI=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],ZI={axisLine:function(r,t,e,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],h=[l[1],0],c=f[0]>h[0];u&&(Te(f,f,u),Te(h,h,u));var v=O({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())zI().buildAxisBreakLine(n,i,a,d);else{var p=new xr(O({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));Xa(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);Z(g)&&(g=[g,g]),(Z(y)||bt(y))&&(y=[y,y]);var m=pc(n.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];T([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(S,w){if(g[w]!=="none"&&g[w]!=null){var b=Pi(g[w],-_/2,-x/2,_,x,v.stroke,!0),C=S.r+S.offset,D=c?h:f;b.attr({rotation:S.rotate,x:D[0]+C*Math.cos(r.rotation),y:D[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),i.add(b)}})}}},axisTickLabelEstimate:function(r,t,e,n,i,a,o,s){var l=ey(t,i,s);l&&ty(r,t,e,n,i,a,o,Ne.estimate)},axisTickLabelDetermine:function(r,t,e,n,i,a,o,s){var l=ey(t,i,s);l&&ty(r,t,e,n,i,a,o,Ne.determine);var u=QI(r,i,a,n);KI(r,t.labelLayoutList,u),jI(r,i,a,n,r.tickDirection)},axisName:function(r,t,e,n,i,a,o,s){var l=e.ensureRecord(n);t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(Rc(u)){var f=r.nameLocation,h=r.nameDirection,c=n.getModel("nameTextStyle"),v=n.get("nameGap")||0,d=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new nt(0,0),y=new nt(0,0);f==="start"?(g.x=d[0]-p*v,y.x=-p):f==="end"?(g.x=d[1]+p*v,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+h*v,y.y=h);var m=Je();y.transform(Mv(m,m,r.rotation));var _=n.get("nameRotate");_!=null&&(_=_*Or/180);var x,S;Ei(f)?x=Ur.innerTextLayout(r.rotation,_??r.rotation,h):(x=$I(r.rotation,f,_||0,d),S=r.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var w=c.getFont(),b=n.get("nameTruncate",!0)||{},C=b.ellipsis,D=Si(r.raw.nameTruncateMaxWidth,b.maxWidth,S),L=s.nameMarginLevel||0,M=new zt({x:g.x,y:g.y,rotation:x.rotation,silent:Ur.isLabelSilent(n),style:he(c,{text:u,font:w,overflow:"truncate",width:D,ellipsis:C,fill:c.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:c.get("align")||x.textAlign,verticalAlign:c.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Yl({el:M,componentModel:n,itemName:u}),M.__fullText=u,M.anid="name",n.get("triggerEvent")){var R=Ur.makeAxisEventDataBase(n);R.targetType="axisName",R.name=u,ht(M).eventData=R}a.add(M),M.updateTransform(),t.nameEl=M;var A=l.nameLayout=qr({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:Ei(f)?WI[L]:UI[L]});if(l.nameLocation=f,i.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&A){var I=e.ensureRecord(n);e.resolveAxisNameOverlap(r,e,n,A,y,I)}}}};function ty(r,t,e,n,i,a,o,s){vS(t)||JI(r,t,i,s,n,o);var l=t.labelLayoutList;tP(r,n,l,a),r.rotation;var u=r.optionHideOverlap;qI(n,l,u),u&&C2(kt(l,function(f){return f&&!f.label.ignore})),YI(r,e,n,l)}function $I(r,t,e,n){var i=Qm(e-r),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Xs(i-Or/2)?(o=l?"bottom":"top",a="center"):Xs(i-Or*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Or*1.5&&i>Or/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function qI(r,t,e){if(Ox(r.axis))return;function n(s,l,u){var f=qr(t[l]),h=qr(t[u]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){wa(f.label);return}if(h.suggestIgnore){wa(h.label);return}var c=.1;if(!e){var v=[0,0,0,0];f=Eg({marginForce:v},f),h=Eg({marginForce:v},h)}Lc(f,h,null,{touchThreshold:c})&&wa(s?h.label:f.label)}}var i=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]),o=t.length;n(i,0,1),n(a,o-1,o-2)}function KI(r,t,e){r.showMinorTicks||T(t,function(n){if(n&&n.label.ignore)for(var i=0;i<e.length;i++){var a=e[i],o=oS(a),s=ro(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){wa(a);return}}})}function wa(r){r&&(r.ignore=!0)}function hS(r,t,e,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Te(o,o,t),Te(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});Xa(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f);var h=oS(f);h.onBand=!!r[l].onBand,h.tickValue=r[l].tickValue}return a}function QI(r,t,e,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=i.getTicksCoords(),f=hS(u,e.transform,l,dt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function jI(r,t,e,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!r.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=dt(l.getLineStyle(),dt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=hS(s[h],e.transform,u,f,"minorticks_"+h),v=0;v<c.length;v++)t.add(c[v])}}function ey(r,t,e){if(vS(r)){var n=r.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(e.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(t.remove(r.labelGroup),iv(r,null,null,null))}return!0}function JI(r,t,e,n,i,a){var o=i.axis,s=Si(r.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new Lt;e.add(l);var u=ml(n);if(!s||o.scale.isBlank()){iv(t,[],l,u);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(u),c=(Si(r.raw.labelRotate,f.get("rotate"))||0)*Or/180,v=Ur.innerTextLayout(r.rotation,c,r.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],g=i.get("triggerEvent"),y=1/0,m=-1/0;T(h,function(x,S){var w,b=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(x.tickValue):x.tickValue,C=x.formattedLabel,D=x.rawLabel,L=f;if(d&&d[b]){var M=d[b];Q(M)&&M.textStyle&&(L=new Mt(M.textStyle,f,i.ecModel))}var R=L.getTextColor()||i.get(["axisLine","lineStyle","color"]),A=L.getShallow("align",!0)||v.textAlign,I=J(L.getShallow("alignMinLabel",!0),A),P=J(L.getShallow("alignMaxLabel",!0),A),E=L.getShallow("verticalAlign",!0)||L.getShallow("baseline",!0)||v.textVerticalAlign,B=J(L.getShallow("verticalAlignMinLabel",!0),E),k=J(L.getShallow("verticalAlignMaxLabel",!0),E),V=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);y=Math.min(y,V),m=Math.max(m,V);var z=new zt({x:0,y:0,rotation:0,silent:Ur.isLabelSilent(i),z2:V,style:he(L,{text:C,align:S===0?I:S===h.length-1?P:A,verticalAlign:S===0?B:S===h.length-1?k:E,fill:rt(R)?R(o.type==="category"?D:o.type==="value"?b+"":b,S):R})});z.anid="label_"+b;var U=ro(z);if(U.break=x.break,U.tickValue=b,U.layoutRotation=v.rotation,Yl({el:z,componentModel:i,itemName:C,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:D,tickIndex:S}}),g){var H=Ur.makeAxisEventDataBase(i);H.targetType="axisLabel",H.value=D,H.tickIndex=S,x.break&&(H.break={start:x.break.parsedBreak.vmin,end:x.break.parsedBreak.vmax}),o.type==="category"&&(H.dataIndex=b),ht(z).eventData=H,x.break&&rP(i,a,z,x.break)}p.push(z),l.add(z)});var _=$(p,function(x){return{label:x,priority:ro(x).break?x.z2+(m-y+1):x.z2,defaultAttr:{ignore:x.ignore}}});iv(t,_,l,u)}function vS(r){return!!r.labelLayoutList}function iv(r,t,e,n){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=n}function tP(r,t,e,n){var i=t.get(["axisLabel","margin"]);T(e,function(a,o){var s=qr(a);if(s){var l=s.label,u=ro(l);s.suggestIgnore=l.ignore,l.ignore=!1,ph(hr,eP),hr.x=t.axis.dataToCoord(u.tickValue),hr.y=r.labelOffset+r.labelDirection*i,hr.rotation=u.layoutRotation,n.add(hr),hr.updateTransform(),n.remove(hr),hr.decomposeTransform(),ph(l,hr),l.markRedraw(),Sl(s,!0),qr(s)}})}var hr=new Tt,eP=new Tt;function Rc(r){return!!r}function rP(r,t,e,n){e.on("click",function(i){var a={type:GI,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(a)})}function bl(r,t,e){e=e||{};var n=t.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,c=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[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=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="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),Si(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function nP(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function ry(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,ee).models[0];t[n]=a}),t}function iP(r,t,e,n,i,a){for(var o=bl(r,e),s=!1,l=!1,u=0;u<t.length;u++)Zh(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new Ur(e,n,o,i)}function aP(r,t,e){var n=bl(t,e);r.updateCfg(n)}function oP(r,t,e){var n=Ri.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,{expandToNicedExtent:!0}),o=i.length-1,s=n.getInterval.call(e),l=kx(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;r.type==="log"&&(u=$h(r.base,u,!0)),r.setBreaksFromOption(Nx(t)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var v=n.getInterval.call(r),d=u[0],p=u[1];if(f&&h)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=df(v),p=u[0]+v*o;else if(h)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=df(v),d=u[1]-v*o;else{var g=r.getTicks().length-1;g>o&&(v=df(v));var y=v*o;p=Math.ceil(u[1]/v)*v,d=$t(p-y),d<0&&u[0]>=0?(d=0,p=$t(y)):p>0&&u[1]<=0&&(p=0,d=-$t(y))}var m=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;n.setExtent.call(r,d+v*m,p+v*_),n.setInterval.call(r,v),(m||_)&&n.setNiceExtent.call(r,d+v,p-v)}var ny=[[3,1],[0,2]],sP=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=nv,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=yt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,p=v.scale;Zh(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Ag(p,d),Zh(p)&&(s=v))}f.length&&(s||(s=f.pop(),Ag(s.scale,s.model)),T(f,function(g){oP(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};T(n.x,function(o){iy(n,"y",o,a)}),T(n.y,function(o){iy(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=zn(t,e),a=this._rect=Ae(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(cS(o,a),!n){var u=uP(a,s,o,l,e),f=void 0;if(l)f=sy(a.clone(),"axisLabel",null,a,o,u,i);else{var h=fP(t,a,i),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=sy(c,v,d,a,o,u,i))}dS(a,o,Ne.determine,null,f,i)}T(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Q(t)&&(e=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===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",ee).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",ee).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,st(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(c,v){var d="x"+h+"y"+v,p=new VI(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(c)})});function u(f){return function(h,c){if(Tf(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new HI(f,QL(h),[0,0],h.get("type"),v),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){T(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(nP(i)){var a=ry(i),o=a.xAxisModel,s=a.yAxisModel;if(!Tf(o,e)||!Tf(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){T(Bx(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return T(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);st(e,a)<0&&e.push(a),st(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){iM({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=ry(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},r.dimensions=nv,r}();function Tf(r,t){return r.getCoordSysModel()===t}function iy(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)ay(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&ay(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function ay(r){return r&&r.type!=="category"&&r.type!=="time"&&jL(r)}function lP(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}function cS(r,t){T(r.x,function(e){return oy(e,t.x,t.width)}),T(r.y,function(e){return oy(e,t.y,t.height)})}function oy(r,t,e){var n=[0,e],i=r.inverse?1:0;r.setExtent(n[i],n[1-i]),lP(r,t)}function sy(r,t,e,n,i,a,o){dS(n,i,Ne.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=C1(s,function(c){return c>0})==null;return nl(n,s,!0,!0,e),cS(i,n),l;function u(c){T(i[Pr[c]],function(v){if(eo(v.model)){var d=a.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=v.scale.normalize(ro(y.label).tickValue);m=c===1?1-m:m,f(y.rect,c,m),f(y.rect,1-c,NaN)}var _=d.nameLayout;if(_){var m=Ei(d.nameLocation)?.5:NaN;f(_.rect,c,m),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var p=r[Pr[v]]-c[Pr[v]],g=c[Ai[v]]+c[Pr[v]]-(r[Ai[v]]+r[Pr[v]]);p=h(p,1-d),g=h(g,d);var y=ny[v][0],m=ny[v][1];s[y]=ue(s[y],p),s[m]=ue(s[m],g)}function h(c,v){return c>0&&!Va(v)&&v>1e-4&&(c/=v),c}}function uP(r,t,e,n,i){var a=new sS(hP);return T(e,function(o){return T(o,function(s){if(eo(s.model)){var l=!n;s.axisBuilder=iP(r,t,s.model,i,a,l)}})}),a}function dS(r,t,e,n,i,a){var o=e===Ne.determine;T(t,function(u){return T(u,function(f){eo(f.model)&&(aP(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Pr[1-u]]=r[Ai[u]]<=a.refContainer[Ai[u]]*.5?0:1-u===1?2:1}T(t,function(u,f){return T(u,function(h){eo(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function fP(r,t,e){var n,i=r.get("outerBoundsMode",!0);i==="same"?n=t.clone():(i==null||i==="auto")&&(n=Ae(r.get("outerBounds",!0)||iS,e.refContainer));var a=r.get("outerBoundsContain",!0),o;a==null||a==="auto"||st(["all","axisLabel"],a)<0?o="all":o=a;var s=[gh(J(r.get("outerBoundsClampWidth",!0),wl[0]),t.width),gh(J(r.get("outerBoundsClampHeight",!0),wl[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var hP=function(r,t,e,n,i,a){var o=e.axis.dim==="x"?"y":"x";lS(r,t,e,n,i,a),Ei(r.nameLocation)||T(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&fS(s.labelInfoList,s.dirVec,n,i)})};function vP(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cP(e,r,t),e.seriesInvolved&&pP(e,r),e}function cP(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];T(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=no(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(T(s.getAxes(),vt(p,!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)&&T(d.baseAxes,vt(p,v?"cross":!0,c)),v&&T(d.otherAxes,vt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),x=_.get("show");if(!(!x||x==="auto"&&!g&&!av(_))){y==null&&(y=_.get("triggerTooltip")),_=g?dP(m,h,i,t,g,y):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),b=no(m.model),C=y||S||m.type==="category",D=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:w,involveSeries:C,snap:S,useHandle:av(_),seriesModels:[],linkGroup:null};u[b]=D,r.seriesInvolved=r.seriesInvolved||C;var L=gP(a,m);if(L!=null){var M=o[L]||(o[L]={axesInfo:{}});M.axesInfo[b]=D,M.mapper=a[L].mapper,D.linkGroup=M}}}})}function dP(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(c){l[c]=ut(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&dt(u,h.textStyle)}}return r.model.getModel("axisPointer",new Mt(l,e,n))}function pP(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[no(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function gP(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(Cf(a[n+"AxisId"],e.id)||Cf(a[n+"AxisIndex"],e.componentIndex)||Cf(a[n+"AxisName"],e.name))return i}}function Cf(r,t){return r==="all"||N(r)&&st(r,t)>=0||r===t}function yP(r){var t=Ec(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=av(e);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Ec(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[no(r)]}function mP(r){var t=Ec(r);return t&&t.axisPointerModel}function av(r){return!!r.get(["handle","show"])}function no(r){return r.type+"||"+r.id}var ly={},pS=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&yP(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=mP(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){ly[e]=n},t.getAxisPointerClass=function(e){return e&&ly[e]},t.type="axis",t}(ve),ov=ft();function _P(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,h=ov(r).splitAreaColors,c=et(),v=0;if(h)for(var d=0;d<u.length;d++){var p=h.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=N(s)?s:[s];for(var d=1;d<u.length;d++){var m=i.toGlobalCoord(u[d].coord),_=void 0,x=void 0,S=void 0,w=void 0;i.isHorizontal()?(_=g,x=l.y,S=m-_,w=l.height,g=_+S):(_=l.x,x=g,S=l.width,w=m-x,g=x+w);var b=u[d-1].tickValue;b!=null&&c.set(b,v),t.add(new Tt({anid:b!=null?"area_"+b:null,shape:{x:_,y:x,width:S,height:w},style:dt({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}ov(r).splitAreaColors=c}}}function xP(r){ov(r).splitAreaColors=null}var SP=["splitArea","splitLine","minorSplitLine","breakArea"],gS=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Lt,this.group.add(this._axisGroup),!!eo(e)){this._axisGroup.add(e.axis.axisBuilder.group),T(SP,function(l){e.get([l,"show"])&&wP[l](this,this._axisGroup,e,e.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||W0(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){xP(this)},t.type="cartesianAxis",t}(pS),wP={splitLine:function(r,t,e,n,i){var a=e.axis;if(!a.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=N(l)?l:[l];for(var h=n.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=a.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var x=d[m].tickValue;c?(p[0]=_,p[1]=h.y,g[0]=_,g[1]=h.y+h.height):(p[0]=h.x,p[1]=_,g[0]=h.x+h.width,g[1]=_);var S=v++%l.length,w=new xr({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:dt({stroke:l[S]},y),silent:!0});Xa(w.shape,y.lineWidth),t.add(w)}}}},minorSplitLine:function(r,t,e,n,i){var a=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],c=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=a.toGlobalCoord(f[d][p].coord);u?(h[0]=g,h[1]=l.y,c[0]=g,c[1]=l.y+l.height):(h[0]=l.x,h[1]=g,c[0]=l.x+l.width,c[1]=g);var y=new xr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:v,silent:!0});Xa(y.shape,v.lineWidth),t.add(y)}},splitArea:function(r,t,e,n,i){_P(r,t,e,n)},breakArea:function(r,t,e,n,i){e.axis.scale}},yS=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(gS),bP=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=yS.type,e}return t.type="yAxis",t}(gS),TP=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new Tt({shape:e.coordinateSystem.getRect(),style:dt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ve),uy={offset:0};function CP(r){r.registerComponentView(TP),r.registerComponentModel(PI),r.registerCoordinateSystem("cartesian2d",sP),Qg(r,"x",rv,uy),Qg(r,"y",rv,uy),r.registerComponentView(yS),r.registerComponentView(bP),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var MP=ft();function fy(r,t){return!!MP(r)[t]}Vn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Yt);var DP={axisPointer:1,tooltip:1,brush:1};function AP(r,t,e){var n=t.getComponentByElement(r.topTarget);if(!n||n===e||DP.hasOwnProperty(n.mainType))return!1;var i=n.coordinateSystem;if(!i||i.model===e)return!1;var a=Li(n),o=Li(e);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var mS=function(r){F(t,r);function t(e){var n=r.call(this)||this;n._zr=e;var i=q(n._mousedownHandler,n),a=q(n._mousemoveHandler,n),o=q(n._mouseupHandler,n),s=q(n._mousewheelHandler,n),l=q(n._pinchHandler,n);return n.enable=function(u,f){var h=f.zInfo,c=Li(h.component),v=c.z,d=c.zlevel,p={component:h.component,z:v,zlevel:d,z2:J(h.z2,-1/0)},g=O({},f.triggerInfo);this._opt=dt(O({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(ia(e,"mousedown",i,p),ia(e,"mousemove",a,p),ia(e,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(ia(e,"mousewheel",s,p),ia(e,"pinch",l,p)))},n.disable=function(){this._enabled=!1,aa(e,"mousedown",i),aa(e,"mousemove",a),aa(e,"mouseup",o),aa(e,"mousewheel",s),aa(e,"pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,n,i){var a=this._opt,o=a.zInfoParsed;if(AP(e,a.api,o.component))return!1;var s=a.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,n,i)),u&&s.isInClip&&!s.isInClip(e,n,i)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,n,i,a){var o=e.target;if(!o&&this._checkPointer(e,n,i))return"grab";if(a)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(ed(e)||na(e))){for(var n=e.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=e.offsetX,a=e.offsetY;this._checkPointer(e,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var n=this._zr;if(!(e.gestureEvent==="pinch"||fy(n,"globalPan")||na(e))){var i=e.offsetX,a=e.offsetY;if(!this._dragging||!Os("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,i,a,!1);o&&n.setCursorStyle(o);return}n.setCursorStyle("grabbing");var s=this._x,l=this._y,u=i-s,f=a-l;this._x=i,this._y=a,this._opt.preventDefaultMouseMove&&wi(e.event),e.__ecRoamConsumed=!0,hy(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:i,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!na(e)){var n=this._zr;if(!ed(e)){this._dragging=!1;var i=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);i&&n.setCursorStyle(i)}}},t.prototype._mousewheelHandler=function(e){if(!na(e)){var n=Os("zoomOnMouseWheel",e,this._opt),i=Os("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(fy(this._zr,"globalPan")||na(e))){var n=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:n,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,n,i,a,o){e._checkPointer(a,o.originX,o.originY)&&(wi(a.event),a.__ecRoamConsumed=!0,hy(e,n,i,a,o))},t}(Fe);function na(r){return r.__ecRoamConsumed}var LP=ft();function ru(r){var t=LP(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function ia(r,t,e,n){for(var i=ru(r),a=i.roam,o=a[t]=a[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-n.zlevel||l.z-n.z||l.z2-n.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:n}),IP(r,t)}function aa(r,t,e){for(var n=ru(r),i=n.roam[t]||[],a=0;a<i.length;a++)if(i[a].listener===e){i.splice(a,1),i.length||PP(r,t);return}}function IP(r,t){var e=ru(r);e.uniform[t]||r.on(t,e.uniform[t]=function(n){var i=e.roam[t];if(i)for(var a=0;a<i.length;a++)i[a].listener(n)})}function PP(r,t){var e=ru(r),n=e.uniform;n[t]&&(r.off(t,n[t]),n[t]=null)}function hy(r,t,e,n,i){i.isAvailableBehavior=q(Os,null,e,n),r.trigger(t,i)}function Os(r,t,e){var n=e[r];return!r||n&&(!Z(n)||t.event[n+"Key"])}var Ce=ft();function RP(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,_S(t,e,r),T(e,function(n){T(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,vt(EP,r))})}),t.wrapMethod("cloneShallow",vt(OP,r)),T(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,vt(kP,r))}),Be(e[t.dataType]===t)}function EP(r,t){if(zP(this)){var e=O({},Ce(this).datas);e[this.dataType]=t,_S(t,e,r)}else kc(t,this.dataType,Ce(this).mainData,r);return t}function kP(r,t){return r.struct&&r.struct.update(),t}function OP(r,t){return T(Ce(t).datas,function(e,n){e!==t&&kc(e.cloneShallow(),n,t,r)}),t}function BP(r){var t=Ce(this).mainData;return r==null||t==null?t:Ce(t).datas[r]}function NP(){var r=Ce(this).mainData;return r==null?[{data:r}]:$(yt(Ce(r).datas),function(t){return{type:t,data:Ce(r).datas[t]}})}function zP(r){return Ce(r).mainData===r}function _S(r,t,e){Ce(r).datas={},T(t,function(n,i){kc(n,i,r,e)})}function kc(r,t,e,n){Ce(e).datas[t]=r,Ce(r).mainData=e,r.dataType=t,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=r),r.getLinkedData=BP,r.getLinkedDataAll=NP}var FP=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,n){rt(t)&&(n=e,e=t,t=null),t=t||{},Z(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=e.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,e,n);i==="postorder"&&e.call(n,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].getNodeById(t);if(a)return a}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var a=n[e].contains(t);if(a)return a}},r.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),VP=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,n){var i=new r(e),a=[],o=1;s(t);function s(f,h){var c=f.value;o=Math.max(o,N(c)?c.length:1),a.push(f);var v=new FP(fe(f.name,""),i);h?HP(v,h):i.root=v,i._nodes.push(v);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],v)}i.root.updateDepthAndHeight(0);var l=bc(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new _i(l,e);return u.initData(a),n&&n(u),RP({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},r}();function HP(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}function Oc(r,t,e){if(r&&st(t,r.type)>=0){var n=e.getData().tree.root,i=r.targetNode;if(Z(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=r.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function xS(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function SS(r,t){var e=xS(r);return st(e,t)>=0}function wS(r,t){for(var e=[];r;){var n=r.dataIndex;e.push({name:r.name,dataIndex:n,value:t.getRawValue(n)}),r=r.parentNode}return e.reverse(),e}var vy=["treemapZoomToNode","treemapRender","treemapMove"];function GP(r){for(var t=0;t<vy.length;t++)r.registerAction({type:vy[t],update:"updateView"},Yt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"treemap",query:e},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Oc(e,s,a);if(l){var u=a.getViewRoot();u&&(e.direction=SS(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function WP(r){var t=r.getData(),e=t.tree,n={};e.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=wM(r.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var UP=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,n){var i={name:e.name,children:e.data};bS(i);var a=e.levels||[],o=this.designatedVisualItemStyle={},s=new Mt({itemStyle:o},this,n);a=e.levels=YP(a,n);var l=$(a||[],function(h){return new Mt(h,s,n)},this),u=VP.createTree(i,this,f);function f(h){h.wrapMethod("getItemModel",function(c,v){var d=u.getNodeByDataIndex(v),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return $r("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=wS(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},O(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var n=this._idIndexMap;n||(n=this._idIndexMap=et(),this._idIndexMapCount=0);var i=n.get(e);return i==null&&n.set(e,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var n=this.getRawData().tree.root;(!e||e!==n&&!n.contains(e))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){WP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:G.size.l,top:G.size.xxxl,right:G.size.l,bottom:G.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:G.size.m,emptyItemWidth:25,itemStyle:{color:G.color.backgroundShade,textStyle:{color:G.color.secondary}},emphasis:{itemStyle:{color:G.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:G.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:G.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Le);function bS(r){var t=0;T(r.children,function(n){bS(n);var i=n.value;N(i)&&(i=i[0]),t+=i});var e=r.value;N(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),N(r.value)?r.value[0]=e:r.value=e}function YP(r,t){var e=Ot(t.get("color")),n=Ot(t.get(["aria","decal","decals"]));if(e){r=r||[];var i,a;T(r,function(s){var l=new Mt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(a=!0)});var o=r[0]||(r[0]={});return i||(o.color=e.slice()),!a&&n&&(o.decal=n.slice()),r}}var XP=8,cy=8,Mf=5,ZP=function(){function r(t){this.group=new Lt,t.add(this.group)}return r.prototype.render=function(t,e,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),h=zn(t,e).refContainer,c={left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},v={emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=Ae(c,h);this._prepare(n,v,u),this._renderContent(t,v,d,s,l,u,f,i),uM(o,c,h)}},r.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var a=fe(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+XP*2,e.emptyItemWidth);e.totalWidth+=s+cy,e.renderList.push({node:i,text:a,width:s})}},r.prototype._renderContent=function(t,e,n,i,a,o,s,l){for(var u=0,f=e.emptyItemWidth,h=t.get(["breadcrumb","height"]),c=e.totalWidth,v=e.renderList,d=a.getModel("itemStyle").getItemStyle(),p=v.length-1;p>=0;p--){var g=v[p],y=g.node,m=g.width,_=g.text;c>n.width&&(c-=m-f,m=f,_=null);var x=new po({shape:{points:$P(u,0,m,h,p===v.length-1,p===0)},style:dt(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new zt({style:he(o,{text:_})}),textConfig:{position:"inside"},z2:vo*1e4,onclick:vt(l,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=he(s,{text:_}),x.ensureState("emphasis").style=d,co(x,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(x),qP(x,t,y),u+=m+cy}},r.prototype.remove=function(){this.group.removeAll()},r}();function $P(r,t,e,n,i,a){var o=[[i?r:r-Mf,t],[r+e,t],[r+e,t+n],[i?r:r-Mf,t+n]];return!a&&o.splice(2,0,[r+e+Mf,t+n/2]),!i&&o.push([r,t+n/2]),o}function qP(r,t,e){ht(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&wS(e,t)}}var KP=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:a}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function QP(){return new KP}var sv=Lt,dy=Tt,py=3,gy="label",yy="upperLabel",jP=vo*10,JP=vo*2,tR=vo*3,Mn=Mi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),my=function(r){var t=Mn(r);return t.stroke=t.fill=t.lineWidth=null,t},Tl=ft(),eR=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=oa(),e}return t.prototype.render=function(e,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(st(o,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=Oc(a,s,e),u=a&&a.type,f=e.layoutInfo,h=!this._oldTree,c=this._storage,v=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,d=this._giveContainerGroup(f),p=e.get("animation"),g=this._doRender(d,e,v);p&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,v):g.renderFinally(),this._resetController(i),this._renderBreadcrumb(e,i,l)}},t.prototype._giveContainerGroup=function(e){var n=this._containerGroup;return n||(n=this._containerGroup=new sv,this._initEvents(n),this.group.add(n)),n.x=e.x,n.y=e.y,n},t.prototype._doRender=function(e,n,i){var a=n.getData().tree,o=this._oldTree,s=oa(),l=oa(),u=this._storage,f=[];function h(m,_,x,S){return rR(n,l,u,i,s,f,m,_,x,S)}p(a.root?[a.root]:[],o&&o.root?[o.root]:[],e,a===o||!o,0);var c=g(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var v=this.seriesModel.layoutInfo,d=a.root.getLayout();d.width===v.width&&d.height===v.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:c,renderFinally:y};function p(m,_,x,S,w){S?(_=m,T(m,function(D,L){!D.isRemoved()&&C(L,L)})):new wc(_,m,b,b).add(C).update(C).remove(vt(C,null)).execute();function b(D){return D.getId()}function C(D,L){var M=D!=null?m[D]:null,R=L!=null?_[L]:null,A=h(M,R,x,w);A&&p(M&&M.viewChildren||[],R&&R.viewChildren||[],A,S,w+1)}}function g(m){var _=oa();return m&&T(m,function(x,S){var w=_[S];T(x,function(b){b&&(w.push(b),Tl(b).willDelete=!0)})}),_}function y(){T(c,function(m){T(m,function(_){_.parent&&_.parent.remove(_)})}),T(f,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(rt(o)?0:o)||0,u=(rt(s)?null:s)||"cubicOut",f=QP();T(n.willDeleteEls,function(h,c){T(h,function(v,d){if(!v.invisible){var p=v.parent,g,y=Tl(p);if(a&&a.direction==="drillDown")g=p===a.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=c==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),T(this._storage,function(h,c){T(h,function(v,d){var p=n.lastsForAnimation[c][d],g={};p&&(v instanceof Lt?p.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=p.oldX,v.y=p.oldY):(p.oldShape&&(g.shape=O({},v.shape),v.setShape(p.oldShape)),p.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(q(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(e){var n=this,i=this._controller,a=this._controllerHost;a||(this._controllerHost={target:this.group},a=this._controllerHost);var o=this.seriesModel;i||(i=this._controller=new mS(e.getZr()),i.on("pan",q(this._onPan,this)),i.on("zoom",q(this._onZoom,this))),i.enable(o.get("roam"),{api:e,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,l,u){var f=n._containerGroup;return f?f.getBoundingRect().contain(l-f.x,u-f.y):!1}}}),a.zoomLimit=o.get("scaleLimit"),a.zoom=o.get("zoom")},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>py||Math.abs(e.dy)>py)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(e){var n=e.originX,i=e.originY,a=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var h=f.zoom=f.zoom||1;if(h*=a,u){var c=u.min||0,v=u.max||1/0;h=Math.max(Math.min(v,h),c)}var d=h/f.zoom;f.zoom=h;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var g=Je();Ha(g,g,[-n,-i]),Mm(g,g,[d,d]),Ha(g,g,[n,i]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var n=this;e.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Rh(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,n,i){var a=this;i||(i=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new ZP(this.group))).render(e,n,i.node,function(o){a._state!=="animating"&&(SS(e.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=oa(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Oe);function oa(){return{nodeGroup:[],background:[],content:[]}}function rR(r,t,e,n,i,a,o,s,l,u){if(!o)return;var f=o.getLayout(),h=r.getData(),c=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,x=f.upperHeight,S=_&&_.length,w=c.getModel("itemStyle"),b=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),D=c.getModel(["select","itemStyle"]),L=w.get("borderRadius")||0,M=Nt("nodeGroup",sv);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),Tl(M).nodeWidth=v,Tl(M).nodeHeight=d,f.isAboveViewRoot)return M;var R=Nt("background",dy,u,JP);R&&z(M,R,S&&f.upperLabelHeight);var A=c.getModel("emphasis"),I=A.get("focus"),P=A.get("blurScope"),E=A.get("disabled"),B=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(S)Ua(M)&&ci(M,!1),R&&(ci(R,!E),h.setItemGraphicEl(o.dataIndex,R),Th(R,B,P));else{var k=Nt("content",dy,u,tR);k&&U(M,k),R.disableMorphing=!0,R&&Ua(R)&&ci(R,!1),ci(M,!E),h.setItemGraphicEl(o.dataIndex,M);var V=c.getShallow("cursor");V&&k.attr("cursor",V),Th(M,B,P)}return M;function z(ot,j,lt){var X=ht(j);if(X.dataIndex=o.dataIndex,X.seriesIndex=r.seriesIndex,j.setShape({x:0,y:0,width:v,height:d,r:L}),g)H(j);else{j.invisible=!1;var K=o.getVisual("style"),Dt=K.stroke,mt=my(w);mt.fill=Dt;var wt=Mn(b);wt.fill=b.get("borderColor");var Rt=Mn(C);Rt.fill=C.get("borderColor");var Qt=Mn(D);if(Qt.fill=D.get("borderColor"),lt){var wr=v-2*p;tt(j,Dt,K.opacity,{x:p,y:0,width:wr,height:x})}else j.removeTextContent();j.setStyle(mt),j.ensureState("emphasis").style=wt,j.ensureState("blur").style=Rt,j.ensureState("select").style=Qt,Js(j)}ot.add(j)}function U(ot,j){var lt=ht(j);lt.dataIndex=o.dataIndex,lt.seriesIndex=r.seriesIndex;var X=Math.max(v-2*p,0),K=Math.max(d-2*p,0);if(j.culling=!0,j.setShape({x:p,y:p,width:X,height:K,r:L}),g)H(j);else{j.invisible=!1;var Dt=o.getVisual("style"),mt=Dt.fill,wt=my(w);wt.fill=mt,wt.decal=Dt.decal;var Rt=Mn(b),Qt=Mn(C),wr=Mn(D);tt(j,mt,Dt.opacity,null),j.setStyle(wt),j.ensureState("emphasis").style=Rt,j.ensureState("blur").style=Qt,j.ensureState("select").style=wr,Js(j)}ot.add(j)}function H(ot){!ot.invisible&&a.push(ot)}function tt(ot,j,lt,X){var K=c.getModel(X?yy:gy),Dt=fe(c.get("name"),null),mt=K.getShallow("show");yo(ot,mo(c,X?yy:gy),{defaultText:mt?Dt:null,inheritColor:j,defaultOpacity:lt,labelFetcher:r,labelDataIndex:o.dataIndex});var wt=ot.getTextContent();if(wt){var Rt=wt.style,Qt=kl(Rt.padding||0);X&&(ot.setTextConfig({layoutRect:X}),wt.disableLabelLayout=!0),wt.beforeUpdate=function(){var sr=Math.max((X?X.width:ot.shape.width)-Qt[1]-Qt[3],0),xo=Math.max((X?X.height:ot.shape.height)-Qt[0]-Qt[2],0);(Rt.width!==sr||Rt.height!==xo)&&wt.setStyle({width:sr,height:xo})},Rt.truncateMinChar=2,Rt.lineOverflow="truncate",pt(Rt,X,f);var wr=wt.getState("emphasis");pt(wr?wr.style:null,X,f)}}function pt(ot,j,lt){var X=ot?ot.text:null;if(!j&&lt.isLeafRoot&&X!=null){var K=r.get("drillDownIcon",!0);ot.text=K?K+" "+X:X}}function Nt(ot,j,lt,X){var K=m!=null&&e[ot][m],Dt=i[ot];return K?(e[ot][m]=null,Kt(Dt,K)):g||(K=new j,K instanceof Qr&&(K.z2=nR(lt,X)),Ht(Dt,K)),t[ot][y]=K}function Kt(ot,j){var lt=ot[y]={};j instanceof sv?(lt.oldX=j.x,lt.oldY=j.y):lt.oldShape=O({},j.shape)}function Ht(ot,j){var lt=ot[y]={},X=o.parentNode,K=j instanceof Lt;if(X&&(!n||n.direction==="drillDown")){var Dt=0,mt=0,wt=i.background[X.getRawIndex()];!n&&wt&&wt.oldShape&&(Dt=wt.oldShape.width,mt=wt.oldShape.height),K?(lt.oldX=0,lt.oldY=mt):lt.oldShape={x:Dt,y:mt,width:0,height:0}}lt.fadein=!K}}function nR(r,t){return r*jP+t}var io=T,iR=Q,Cl=-1,Bc=function(){function r(t){var e=t.mappingMethod,n=t.type,i=this.option=ut(t);this.type=n,this.mappingMethod=e,this._normalizeData=sR[e];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(Df(i),aR(i)):e==="category"?i.categories?oR(i):Df(i,!0):(Be(e!=="linear"||i.dataExtent),Df(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return q(this._normalizeData,this)},r.listVisualTypes=function(){return yt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,n){Q(t)?T(t,e,n):e.call(n,t)},r.mapVisual=function(t,e,n){var i,a=N(t)?[]:Q(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(t){var e={},n;return t&&io(r.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(e[a]=t[a],n=!0)}),n?e:null},r.prepareVisualTypes=function(t){if(N(t))t=t.slice();else if(iR(t)){var e=[];io(t,function(n,i){e.push(i)}),t=e}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,n){for(var i,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||Z(l)&&l===t+"")return o;n&&c(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(cs(h[1],t,f[1]))return o}else if(f[1]===1/0){if(cs(h[0],f[0],t))return o}else if(cs(h[0],f[0],t)&&cs(h[1],t,f[1]))return o;n&&c(f[0],o),n&&c(f[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:i;function c(v,d){var p=Math.abs(v-t);p<a&&(a=p,i=d)}},r.visualHandlers={color:{applyVisual:sa("color"),getColorMapper:function(){var t=this.option;return q(t.mappingMethod==="category"?function(e,n){return!n&&(e=this._normalizeData(e)),ba.call(this,e)}:function(e,n,i){var a=!!i;return!n&&(e=this._normalizeData(e)),i=yu(e,t.parsedVisual,i),a?i:Gr(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Gr(yu(t,this.option.parsedVisual),"rgba")},category:ba,piecewise:function(t,e){var n=uv.call(this,e);return n==null&&(n=Gr(yu(t,this.option.parsedVisual),"rgba")),n},fixed:Dn}},colorHue:vs(function(t,e){return Hr(t,e)}),colorSaturation:vs(function(t,e){return Hr(t,null,e)}),colorLightness:vs(function(t,e){return Hr(t,null,null,e)}),colorAlpha:vs(function(t,e){return Hm(t,e)}),decal:{applyVisual:sa("decal"),_normalizedToVisual:{linear:null,category:ba,piecewise:null,fixed:null}},opacity:{applyVisual:sa("opacity"),_normalizedToVisual:lv([0,1])},liftZ:{applyVisual:sa("liftZ"),_normalizedToVisual:{linear:Dn,category:Dn,piecewise:Dn,fixed:Dn}},symbol:{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:_y,category:ba,piecewise:function(t,e){var n=uv.call(this,e);return n==null&&(n=_y.call(this,t)),n},fixed:Dn}},symbolSize:{applyVisual:sa("symbolSize"),_normalizedToVisual:lv([0,1])}},r}();function aR(r){var t=r.pieceList;r.hasSpecialVisual=!1,T(t,function(e,n){e.originIndex=n,e.visual!=null&&(r.hasSpecialVisual=!0)})}function oR(r){var t=r.categories,e=r.categoryMap={},n=r.visual;if(io(t,function(o,s){e[o]=s}),!N(n)){var i=[];Q(n)?io(n,function(o,s){var l=e[s];i[l??Cl]=o}):i[Cl]=n,n=TS(r,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete e[t[a]],t.pop())}function Df(r,t){var e=r.visual,n=[];Q(e)?io(e,function(a){n.push(a)}):e!=null&&n.push(e);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),TS(r,n)}function vs(r){return{applyVisual:function(t,e,n){var i=this.mapValueToVisual(t);n("color",r(e("color"),i))},_normalizedToVisual:lv([0,1])}}function _y(r){var t=this.option.visual;return t[Math.round(At(r,[0,1],[0,t.length-1],!0))]||{}}function sa(r){return function(t,e,n){n(r,this.mapValueToVisual(t))}}function ba(r){var t=this.option.visual;return t[this.option.loop&&r!==Cl?r%t.length:r]}function Dn(){return this.option.visual[0]}function lv(r){return{linear:function(t){return At(t,r,this.option.visual,!0)},category:ba,piecewise:function(t,e){var n=uv.call(this,e);return n==null&&(n=At(t,r,this.option.visual,!0)),n},fixed:Dn}}function uv(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var n=Bc.findPieceIndex(r,e),i=e[n];if(i&&i.visual)return i.visual[this.type]}}function TS(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=$(t,function(e){var n=er(e);return n||[0,0,0,1]})),t}var sR={linear:function(r){return At(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Bc.findPieceIndex(r,t,!0);if(e!=null)return At(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Cl},fixed:Yt};function cs(r,t,e){return r?t<=e:t<e}var lR="itemStyle",CS=ft();const uR={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||MS(e,{},r.getViewRoot().getAncestors(),r)}};function MS(r,t,e,n){var i=r.getModel(),a=r.getLayout(),o=r.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(lR),l=fR(s,t,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),h=s.get("borderColorSaturation"),c;h!=null&&(c=xy(l),f=hR(h,c)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)c=xy(l),u.fill=c;else{var d=vR(r,i,a,s,l,v);T(v,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var y=cR(i,l,p,g,d,n);MS(p,y,e,n)}})}}}function fR(r,t,e){var n=O({},t),i=e.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=r.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function xy(r){var t=Af(r,"color");if(t){var e=Af(r,"colorAlpha"),n=Af(r,"colorSaturation");return n&&(t=Hr(t,null,null,n)),e&&(t=Hm(t,e)),t}}function hR(r,t){return t!=null?Hr(t,null,null,r):null}function Af(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function vR(r,t,e,n,i,a){if(!(!a||!a.length)){var o=Lf(t,"color")||i.color!=null&&i.color!=="none"&&(Lf(t,"colorAlpha")||Lf(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};h.type==="color"&&(f==="index"||f==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var c=new Bc(h);return CS(c).drColorMappingBy=f,c}}}function Lf(r,t){var e=r.get(t);return N(e)&&e.length?{name:t,range:e}:null}function cR(r,t,e,n,i,a){var o=O({},t);if(i){var s=i.type,l=s==="color"&&CS(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var ao=Math.max,Ml=Math.min,Sy=Si,Nc=T,DS=["itemStyle","borderWidth"],dR=["itemStyle","gapWidth"],pR=["upperLabel","show"],gR=["upperLabel","height"];const yR={seriesType:"treemap",reset:function(r,t,e,n){var i=r.option,a=zn(r,e).refContainer,o=Ae(r.getBoxLayoutParams(),a),s=i.size||[],l=xt(Sy(o.width,s[0]),a.width),u=xt(Sy(o.height,s[1]),a.height),f=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],c=Oc(n,h,r),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),p=xS(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?bR(r,c,d,l,u):v?[v.width,v.height]:[l,u],y=i.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:i.squareRatio,sort:y,leafDepth:i.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),AS(d,m,!1,0),_=d.getLayout(),Nc(p,function(S,w){var b=(p[w+1]||d).getValue();S.setLayout(O({dataExtent:[b,b],borderWidth:0,upperHeight:0},_))})}var x=r.getData().tree.root;x.setLayout(TR(o,v,c),!0),r.setLayoutInfo(o),LS(x,new at(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function AS(r,t,e,n){var i,a;if(!r.isRemoved()){var o=r.getLayout();i=o.width,a=o.height;var s=r.getModel(),l=s.get(DS),u=s.get(dR)/2,f=IS(s),h=Math.max(l,f),c=l-u,v=h-u;r.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),i=ao(i-2*c,0),a=ao(a-c-v,0);var d=i*a,p=mR(r,s,d,t,e,n);if(p.length){var g={x:c,y:v,width:i,height:a},y=Ml(i,a),m=1/0,_=[];_.area=0;for(var x=0,S=p.length;x<S;){var w=p[x];_.push(w),_.area+=w.getLayout().area;var b=wR(_,y,t.squareRatio);b<=m?(x++,m=b):(_.area-=_.pop().getLayout().area,wy(_,y,g,u,!1),y=Ml(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&wy(_,y,g,u,!0),!e){var C=s.get("childrenVisibleMin");C!=null&&d<C&&(e=!0)}for(var x=0,S=p.length;x<S;x++)AS(p[x],t,e,n+1)}}}function mR(r,t,e,n,i,a){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return r.viewChildren=[];o=kt(o,function(v){return!v.isRemoved()}),xR(o,s);var u=SR(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=_R(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,h=o.length;f<h;f++){var c=o[f].getValue()/u.sum*e;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function _R(r,t,e,n,i){if(!n)return e;for(var a=r.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/e*t<a&&(s=l,e-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),e}function xR(r,t){return t&&r.sort(function(e,n){var i=t==="asc"?e.getValue()-n.getValue():n.getValue()-e.getValue();return i===0?t==="asc"?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:i}),r}function SR(r,t,e){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],Nc(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function wR(r,t,e){for(var n=0,i=1/0,a=0,o=void 0,s=r.length;a<s;a++)o=r[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=r.area*r.area,u=t*t*e;return l?ao(u*n/l,l/(u*i)):1/0}function wy(r,t,e,n,i){var a=t===e.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=e[s[a]],f=t?r.area/t:0;(i||f>e[l[o]])&&(f=e[l[o]]);for(var h=0,c=r.length;h<c;h++){var v=r[h],d={},p=f?v.getLayout().area/f:0,g=d[l[o]]=ao(f-2*n,0),y=e[s[a]]+e[l[a]]-u,m=h===c-1||y<p?y:p,_=d[l[a]]=ao(m-2*n,0);d[s[o]]=e[s[o]]+Ml(n,g/2),d[s[a]]=u+Ml(n,_/2),u+=m,v.setLayout(d,!0)}e[s[o]]+=f,e[l[o]]-=f}function bR(r,t,e,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===e)return o;for(var s,l=n*i,u=l*r.option.zoomToNodeRatio;s=a.parentNode;){for(var f=0,h=s.children,c=0,v=h.length;c<v;c++)f+=h[c].getValue();var d=a.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(DS),y=Math.max(g,IS(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>Dd&&(u=Dd),a=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,i*m]}function TR(r,t,e){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!e)return n;var i=e.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function LS(r,t,e,n,i){var a=r.getLayout(),o=e[i],s=o&&o===r;if(!(o&&!s||i===e.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new at(t.x-a.x,t.y-a.y,t.width,t.height);Nc(r.viewChildren||[],function(u){LS(u,l,e,n,i+1)})}}function IS(r){return r.get(pR)?r.get(gR):0}function CR(r){r.registerSeriesModel(UP),r.registerChartView(eR),r.registerVisual(uR),r.registerLayout(yR),GP(r)}var by=xr.prototype,If=Wl.prototype,PS=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(PS);function Pf(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var MR=function(r){F(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:G.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new PS},t.prototype.buildPath=function(e,n){Pf(n)?by.buildPath.call(this,e,n):If.buildPath.call(this,e,n)},t.prototype.pointAt=function(e){return Pf(this.shape)?by.pointAt.call(this,e):If.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var n=this.shape,i=Pf(n)?[n.x2-n.x1,n.y2-n.y1]:If.tangentAt.call(this,e);return bv(i,i)},t}(St),Rf=["fromSymbol","toSymbol"];function Ty(r){return"_"+r+"Type"}function Cy(r,t,e){var n=t.getItemVisual(e,r);if(!n||n==="none")return n;var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Y_(i),u=pc(o||0,l);return n+l+u+(a||"")+(s||"")}function My(r,t,e){var n=t.getItemVisual(e,r);if(!(!n||n==="none")){var i=t.getItemVisual(e,r+"Size"),a=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Y_(i),u=pc(o||0,l),f=Pi(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,f.name=r,f}}function DR(r){var t=new MR({name:"line",subPixelOptimize:!0});return fv(t.shape,r),t}function fv(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var AR=function(r){F(t,r);function t(e,n,i){var a=r.call(this)||this;return a._createLine(e,n,i),a}return t.prototype._createLine=function(e,n,i){var a=e.hostModel,o=e.getItemLayout(n),s=e.getItemVisual(n,"z2"),l=DR(o);l.shape.percent=0,pr(l,{z2:J(s,0),shape:{percent:1}},a,n),this.add(l),T(Rf,function(u){var f=My(u,e,n);this.add(f),this[Ty(u)]=Cy(u,e,n)},this),this._updateCommonStl(e,n,i)},t.prototype.updateData=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(n),l={shape:{}};fv(l.shape,s),De(o,l,a,n),T(Rf,function(u){var f=Cy(u,e,n),h=Ty(u);if(this[h]!==f){this.remove(this.childOfName(u));var c=My(u,e,n);this.add(c)}this[h]=f},this),this._updateCommonStl(e,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,n,i){var a=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,f=i&&i.labelStatesModels,h=i&&i.emphasisDisabled,c=i&&i.focus,v=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(n),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=p.get("disabled"),c=p.get("focus"),v=p.get("blurScope"),f=mo(d)}var g=e.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(Rf,function(w){var b=this.childOfName(w);if(b){b.setColor(y),b.style.opacity=g.opacity;for(var C=0;C<Me.length;C++){var D=Me[C],L=o.getState(D);if(L){var M=L.style||{},R=b.ensureState(D),A=R.style||(R.style={});M.stroke!=null&&(A[b.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(A.opacity=M.opacity)}}b.markRedraw()}},this);var m=a.getRawValue(n);yo(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(w,b){return a.getFormattedLabel(w,b,e.dataType)}},inheritColor:y||G.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(n):isFinite(m)?$t(m):m)+""});var _=this.getTextContent();if(_){var x=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var S=x.get("distance");N(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),co(this,c,v,h)},t.prototype.highlight=function(){tl(this)},t.prototype.downplay=function(){el(this)},t.prototype.updateLayout=function(e,n){this.setLinePoints(e.getItemLayout(n))},t.prototype.setLinePoints=function(e){var n=this.childOfName("line");fv(n.shape,e),n.dirty()},t.prototype.beforeUpdate=function(){var e=this,n=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),a=e.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),h=l.pointAt(u),c=bm([],h,f);bv(c,c);function v(L,M){var R=L.__specifiedRotation;if(R==null){var A=l.tangentAt(M);L.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(A[1],A[0]))}else L.attr("rotation",R)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(h),v(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var d=void 0,p=void 0,g=a.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,x=l.tangentAt(_),S=[x[1],-x[0]],w=l.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var b=x[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var C=-Math.atan2(x[1],x[0]);h[0]<f[0]&&(C=Math.PI+C),a.rotation=C}var D=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=m,p="top";break;default:D=0,p="middle"}switch(a.__position){case"end":a.x=c[0]*y+h[0],a.y=c[1]*m+h[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":a.x=-c[0]*y+f[0],a.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*b+f[0],a.y=f[1]+D,d=x[0]<0?"right":"left",a.originX=-y*b,a.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=w[0],a.y=w[1]+D,d="center",a.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*b+h[0],a.y=h[1]+D,d=x[0]>=0?"right":"left",a.originX=y*b,a.originY=-D;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||d})}},t}(Lt),LR=function(){function r(t){this.group=new Lt,this._LineCtor=t||AR}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=Dy(t);t.diff(a).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Dy(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function n(s){!s.isGroup&&!IR(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(Ef(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){go(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,n){var i=t.getItemLayout(e);if(Ef(i)){var a=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,a),this.group.add(a)}},r.prototype._doUpdate=function(t,e,n,i,a){var o=t.getItemGraphicEl(n);if(!Ef(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,a):o=new this._LineCtor(e,i,a),e.setItemGraphicEl(i,o),this.group.add(o)},r}();function IR(r){return r.animators&&r.animators.length>0}function Dy(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:mo(t)}}function Ay(r){return isNaN(r[0])||isNaN(r[1])}function Ef(r){return r&&!Ay(r[0])&&!Ay(r[1])}function oo(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=ii(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=ii(s,[0,o]),i=a=ii(s,[i,a]),n=0}t[0]=ii(t[0],e),t[1]=ii(t[1],e);var l=kf(t,n);t[n]+=r;var u=i||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[n]=ii(t[n],f);var h;return h=kf(t,n),i!=null&&(h.sign!==l.sign||h.span<i)&&(t[1-n]=t[n]+l.sign*i),h=kf(t,n),a!=null&&h.span>a&&(t[1-n]=t[n]+h.sign*a),t}function kf(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function ii(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Ly={color:"fill",borderColor:"stroke"},PR={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},gr=ft(),RR=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,n){return Cc(null,this)},t.prototype.getDataParams=function(e,n,i){var a=r.prototype.getDataParams.call(this,e,n);return i&&(a.info=gr(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Le);function ER(r,t){return t=t||[0,0],$(["x","y"],function(e,n){var i=this.getAxis(e),a=t[n],o=r[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function kR(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:q(ER,r)}}}function OR(r,t){return t=t||[0,0],$([0,1],function(e){var n=t[e],i=r[e]/2,a=[],o=[];return a[e]=n-i,o[e]=n+i,a[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)}function BR(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:q(OR,r)}}}function NR(r,t){var e=this.getAxis(),n=t instanceof Array?t[0]:t,i=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(n-i)-e.dataToCoord(n+i))}function zR(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:q(NR,r)}}}function FR(r,t){return t=t||[0,0],$(["Radius","Angle"],function(e,n){var i="get"+e+"Axis",a=this[i](),o=t[n],s=r[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function VR(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),s=r.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:q(FR,r)}}}function HR(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(n,i){return r.dataToPoint(n,i)},layout:function(n,i){return r.dataToLayout(n,i)}}}}function GR(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,n){return r.dataToPoint(e,n)},layout:function(e,n){return r.dataToLayout(e,n)}}}}function WR(r,t,e,n){return r&&(r.legacy||r.legacy!==!1&&!e&&!n&&t!=="tspan"&&(t==="text"||W(r,"text")))}function UR(r,t,e){var n=r,i,a,o;if(t==="text")o=n;else{o={},W(n,"text")&&(o.text=n.text),W(n,"rich")&&(o.rich=n.rich),W(n,"textFill")&&(o.fill=n.textFill),W(n,"textStroke")&&(o.stroke=n.textStroke),W(n,"fontFamily")&&(o.fontFamily=n.fontFamily),W(n,"fontSize")&&(o.fontSize=n.fontSize),W(n,"fontStyle")&&(o.fontStyle=n.fontStyle),W(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=W(n,"textPosition");e?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),W(n,"textPosition")&&(i.position=n.textPosition),W(n,"textOffset")&&(i.offset=n.textOffset),W(n,"textRotation")&&(i.rotation=n.textRotation),W(n,"textDistance")&&(i.distance=n.textDistance)}return Iy(o,r),T(o.rich,function(l){Iy(l,l)}),{textConfig:i,textContent:a}}function Iy(r,t){t&&(t.font=t.textFont||t.font,W(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),W(t,"textAlign")&&(r.align=t.textAlign),W(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),W(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),W(t,"textWidth")&&(r.width=t.textWidth),W(t,"textHeight")&&(r.height=t.textHeight),W(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),W(t,"textPadding")&&(r.padding=t.textPadding),W(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),W(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),W(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),W(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),W(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),W(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),W(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function Py(r,t,e){var n=r;n.textPosition=n.textPosition||e.position||"inside",e.offset!=null&&(n.textOffset=e.offset),e.rotation!=null&&(n.textRotation=e.rotation),e.distance!=null&&(n.textDistance=e.distance);var i=n.textPosition.indexOf("inside")>=0,a=r.fill||G.color.neutral99;Ry(n,t);var o=n.textFill==null;return i?o&&(n.textFill=e.insideFill||G.color.neutral00,!n.textStroke&&e.insideStroke&&(n.textStroke=e.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||e.outsideFill||G.color.neutral00),!n.textStroke&&e.outsideStroke&&(n.textStroke=e.outsideStroke)),n.text=t.text,n.rich=t.rich,T(t.rich,function(s){Ry(s,s)}),n}function Ry(r,t){t&&(W(t,"fill")&&(r.textFill=t.fill),W(t,"stroke")&&(r.textStroke=t.fill),W(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),W(t,"font")&&(r.font=t.font),W(t,"fontStyle")&&(r.fontStyle=t.fontStyle),W(t,"fontWeight")&&(r.fontWeight=t.fontWeight),W(t,"fontSize")&&(r.fontSize=t.fontSize),W(t,"fontFamily")&&(r.fontFamily=t.fontFamily),W(t,"align")&&(r.textAlign=t.align),W(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),W(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),W(t,"width")&&(r.textWidth=t.width),W(t,"height")&&(r.textHeight=t.height),W(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),W(t,"padding")&&(r.textPadding=t.padding),W(t,"borderColor")&&(r.textBorderColor=t.borderColor),W(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),W(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),W(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),W(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),W(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),W(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),W(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),W(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),W(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),W(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var RS={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ey=yt(RS);_r(ar,function(r,t){return r[t]=1,r},{});ar.join(", ");var Dl=["","style","shape","extra"],ki=ft();function zc(r,t,e,n,i){var a=r+"Animation",o=Wv(r,n,i)||{},s=ki(t).userDuring;return o.duration>0&&(o.during=s?q(QR,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,e[a]),o}function YR(r,t,e,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=e.isAnimationEnabled(),l=ki(r),u=t.style;l.userDuring=t.during;var f={},h={};if(JR(r,t,h),r.type==="compound")for(var c=r.shape.paths,v=t.shape.paths,d=0;d<v.length;d++){var p=v[d];Of("shape",p,c[d])}else Of("shape",t,h),Of("extra",t,h);if(!a&&s&&(jR(r,t,f),ky("shape",r,t,f),ky("extra",r,t,f),tE(r,t,u,f)),h.style=u,ZR(r,h,o),qR(r,t),s)if(a){var g={};T(Dl,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),O(m?g[m]:g,_.enterFrom))});var y=zc("enter",r,t,e,i);y.duration>0&&r.animateFrom(g,y)}else $R(r,t,i||0,e,f);XR(r,t),u?r.dirty():r.markRedraw()}function XR(r,t){for(var e=ki(r).leaveToProps,n=0;n<Dl.length;n++){var i=Dl[n],a=i?t[i]:t;a&&a.leaveTo&&(e||(e=ki(r).leaveToProps={}),i&&(e[i]=e[i]||{}),O(i?e[i]:e,a.leaveTo))}}function Fc(r,t,e,n){if(r){var i=r.parent,a=ki(r).leaveToProps;if(a){var o=zc("update",r,t,e,0);o.done=function(){i&&i.remove(r)},r.animateTo(a,o)}else i&&i.remove(r)}}function xi(r){return r==="all"}function ZR(r,t,e){var n=t.style;if(!r.isGroup&&n){if(e){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}t&&(t.style=null,t&&r.attr(t),t.style=n)}function $R(r,t,e,n,i){if(i){var a=zc("update",r,t,n,e);a.duration>0&&r.animateFrom(i,a)}}function qR(r,t){W(t,"silent")&&(r.silent=t.silent),W(t,"ignore")&&(r.ignore=t.ignore),r instanceof Qr&&W(t,"invisible")&&(r.invisible=t.invisible),r instanceof St&&W(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var Ze={},KR={setTransform:function(r,t){return Ze.el[r]=t,this},getTransform:function(r){return Ze.el[r]},setShape:function(r,t){var e=Ze.el,n=e.shape||(e.shape={});return n[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=Ze.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=Ze.el,n=e.style;return n&&(n[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=Ze.el.style;if(t)return t[r]},setExtra:function(r,t){var e=Ze.el.extra||(Ze.el.extra={});return e[r]=t,this},getExtra:function(r){var t=Ze.el.extra;if(t)return t[r]}};function QR(){var r=this,t=r.el;if(t){var e=ki(t).userDuring,n=r.userDuring;if(e!==n){r.el=r.userDuring=null;return}Ze.el=t,n(KR)}}function ky(r,t,e,n){var i=e[r];if(i){var a=t[r],o;if(a){var s=e.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),xi(l))O(o,a);else for(var u=Ot(l),f=0;f<u.length;f++){var h=u[f],c=a[h];o[h]=c}else if(xi(s)||st(s,r)>=0){!o&&(o=n[r]={});for(var v=yt(a),f=0;f<v.length;f++){var h=v[f],c=a[h];eE(i[h],c)&&(o[h]=c)}}}}}function Of(r,t,e){var n=t[r];if(n)for(var i=e[r]={},a=yt(n),o=0;o<a.length;o++){var s=a[o];i[s]=Aa(n[s])}}function jR(r,t,e){for(var n=t.transition,i=xi(n)?ar:Ot(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function JR(r,t,e){for(var n=0;n<Ey.length;n++){var i=Ey[n],a=RS[i],o=t[i];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var n=0;n<ar.length;n++){var s=ar[n];t[s]!=null&&(e[s]=t[s])}}function tE(r,t,e,n){if(e){var i=r.style,a;if(i){var o=e.transition,s=t.transition;if(o&&!xi(o)){var l=Ot(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],h=i[f];a[f]=h}}else if(r.getAnimationStyleProps&&(xi(s)||xi(o)||st(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!a&&(a=n.style={});for(var d=yt(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var h=i[f];a[f]=h}}}}}}}function eE(r,t){return re(r)?r!==t:r!=null&&isFinite(r)}var ES=ft(),rE=["percent","easing","shape","style","extra"];function nE(r){r.stopAnimation("keyframe"),r.attr(ES(r))}function kS(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(N(t)){T(t,function(s){kS(r,s,e)});return}var n=t.keyframes,i=t.duration;if(e&&i==null){var a=Wv("enter",e,0);i=a&&a.duration}if(!(!n||!i)){var o=ES(r);T(Dl,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),T(n,function(u){var f=r.animators,h=s?u[s]:u;if(h){var c=yt(h);if(s||(c=kt(c,function(p){return st(rE,p)<0})),!!c.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;T(c,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(i*u.percent,h,c,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var yr="emphasis",Br="normal",Vc="blur",Hc="select",Kr=[Br,yr,Vc,Hc],Bf={normal:["itemStyle"],emphasis:[yr,"itemStyle"],blur:[Vc,"itemStyle"],select:[Hc,"itemStyle"]},Nf={normal:["label"],emphasis:[yr,"label"],blur:[Vc,"label"],select:[Hc,"label"]},iE=["x","y"],aE="e\0\0",pe={normal:{},emphasis:{},blur:{},select:{}},oE={cartesian2d:kR,geo:BR,single:zR,polar:VR,calendar:HR,matrix:GR};function hv(r){return r instanceof St}function vv(r){return r instanceof Qr}function sE(r,t){t.copyTransform(r),vv(t)&&vv(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,hv(t)&&hv(r)&&t.setShape(r.shape))}var lE=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=Oy(e,s,n,i);o||l.removeAll(),s.diff(o).add(function(h){zf(i,null,h,u(h,a),e,l,s)}).remove(function(h){var c=o.getItemGraphicEl(h);c&&Fc(c,gr(c).option,e)}).update(function(h,c){var v=o.getItemGraphicEl(c);zf(i,v,h,u(h,a),e,l,s)}).execute();var f=e.get("clip",!0)?Qx(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,n,i,a,o){var s=n.getData(),l=Oy(n,s,i,a),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var h=e.start;h<e.end;h++){var c=zf(null,null,h,l(h,o),n,this.group,s);c&&(c.traverse(f),u.push(c))}},t.prototype.eachRendered=function(e){go(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(Oe);function Gc(r){var t=r.type,e;if(t==="path"){var n=r.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=NS(n);e=Ya(a,null,i,n.layout||"center"),gr(e).customPathData=a}else if(t==="image")e=new jr({}),gr(e).customImagePath=r.style.image;else if(t==="text")e=new zt({});else if(t==="group")e=new Lt;else if(t==="compoundPath"){var n=r.shape;if(!n||!n.paths){var o="";Ut(o)}var s=$(n.paths,function(f){if(f.type==="path")return Ya(f.shape.pathData,f,null);var h=Ah(f.type);if(!h){var c="";Ut(c)}return new h});e=new E0({shape:{paths:s}})}else{var l=Ah(t);if(!l){var o="";Ut(o)}e=new l}return gr(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Wc(r,t,e,n,i,a,o){nE(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=iE);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;W(u,"textFill")&&(u.fill=u.textFill),W(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,h=hv(t)?l.decal:null;r&&h&&(h.dirty=!0,f=dl(h,r)),l.__decalPattern=f}if(vv(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}YR(t,n,a,{dataIndex:e,isInit:o,clearStyle:!0}),kS(t,n.keyframeAnimation,a)}function OS(r,t,e,n,i){var a=t.isGroup?null:t,o=i&&i[r].cfg;if(a){var s=a.ensureState(r);if(n===!1){var l=a.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),Js(a)}}function uE(r,t,e){if(!r.isGroup){var n=r,i=e.currentZ,a=e.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Kr.length;s++)fE(n,t,Kr[s])}}function fE(r,t,e){var n=e===Br,i=n?t:Al(t,e),a=i?i.z2:null,o;a!=null&&(o=n?r:r.ensureState(e),o.z2=a||0)}function Oy(r,t,e,n){var i=r.get("renderItem");if(typeof i=="string"){var a=PA(i);a&&(i=a)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):oE[o.type](o));for(var l=dt({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:b,ordinalRawValue:w,styleEmphasis:C,visual:M,barLayout:R,currentSeriesIndices:A,font:I},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:hE(r.getData()),itemPayload:r.get("itemPayload")||{}},f,h,c={},v={},d={},p={},g=0;g<Kr.length;g++){var y=Kr[g];d[y]=r.getModel(Bf[y]),p[y]=r.getModel(Nf[y])}function m(P){return P===f?h||(h=t.getItemModel(P)):t.getItemModel(P)}function _(P,E){return t.hasItemOption?P===f?c[E]||(c[E]=m(P).getModel(Bf[E])):m(P).getModel(Bf[E]):d[E]}function x(P,E){return t.hasItemOption?P===f?v[E]||(v[E]=m(P).getModel(Nf[E])):m(P).getModel(Nf[E]):p[E]}return function(P,E){return f=P,h=null,c={},v={},i&&i(dt({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:E?E.type:null},u),l)};function S(P,E){return E==null&&(E=f),t.getStore().get(t.getDimensionIndex(P||0),E)}function w(P,E){E==null&&(E=f),P=P||0;var B=t.getDimensionInfo(P);if(!B){var k=t.getDimensionIndex(P);return k>=0?t.getStore().get(k,E):void 0}var V=t.get(B.name,E),z=B&&B.ordinalMeta;return z?z.categories[V]:V}function b(P,E){E==null&&(E=f);var B=t.getItemVisual(E,"style"),k=B&&B.fill,V=B&&B.opacity,z=_(E,Br).getItemStyle();k!=null&&(z.fill=k),V!=null&&(z.opacity=V);var U={inheritColor:Z(k)?k:G.color.neutral99},H=x(E,Br),tt=he(H,null,U,!1,!0);tt.text=H.getShallow("show")?J(r.getFormattedLabel(E,Br),tv(t,E)):null;var pt=il(H,U,!1);return L(P,z),z=Py(z,tt,pt),P&&D(z,P),z.legacy=!0,z}function C(P,E){E==null&&(E=f);var B=_(E,yr).getItemStyle(),k=x(E,yr),V=he(k,null,null,!0,!0);V.text=k.getShallow("show")?zr(r.getFormattedLabel(E,yr),r.getFormattedLabel(E,Br),tv(t,E)):null;var z=il(k,null,!0);return L(P,B),B=Py(B,V,z),P&&D(B,P),B.legacy=!0,B}function D(P,E){for(var B in E)W(E,B)&&(P[B]=E[B])}function L(P,E){P&&(P.textFill&&(E.textFill=P.textFill),P.textPosition&&(E.textPosition=P.textPosition))}function M(P,E){if(E==null&&(E=f),W(Ly,P)){var B=t.getItemVisual(E,"style");return B?B[Ly[P]]:null}if(W(PR,P))return t.getItemVisual(E,P)}function R(P){if(o.type==="cartesian2d"){var E=o.getBaseAxis();return IL(dt({axis:E},P))}}function A(){return e.getCurrentSeriesIndices()}function I(P){return X0(P,e)}}function hE(r){var t={};return T(r.dimensions,function(e){var n=r.getDimensionInfo(e);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=r.getDimensionIndex(e)}}),t}function zf(r,t,e,n,i,a,o){if(!n){a.remove(t);return}var s=Uc(r,t,e,n,i,a);return s&&o.setItemGraphicEl(e,s),s&&co(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Uc(r,t,e,n,i,a){var o=-1,s=t;t&&BS(t,n,i)&&(o=st(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Gc(n),s&&sE(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),n.tooltipDisabled&&(u.tooltipDisabled=!0),pe.normal.cfg=pe.normal.conOpt=pe.emphasis.cfg=pe.emphasis.conOpt=pe.blur.cfg=pe.blur.conOpt=pe.select.cfg=pe.select.conOpt=null,pe.isLegacy=!1,cE(u,e,n,i,l,pe),vE(u,e,n,i,l),Wc(r,u,e,n,pe,i,l),W(n,"info")&&(gr(u).info=n.info);for(var f=0;f<Kr.length;f++){var h=Kr[f];if(h!==Br){var c=Al(n,h),v=Yc(n,c,h);OS(h,u,c,v,pe)}}return uE(u,n,i),n.type==="group"&&dE(r,u,e,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function BS(r,t,e){var n=gr(r),i=t.type,a=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&mE(a)&&NS(a)!==n.customPathData||i==="image"&&W(o,"image")&&o.image!==n.customImagePath}function vE(r,t,e,n,i){var a=e.clipPath;if(a===!1)r&&r.getClipPath()&&r.removeClipPath();else if(a){var o=r.getClipPath();o&&BS(o,a,n)&&(o=null),o||(o=Gc(a),r.setClipPath(o)),Wc(null,o,t,a,null,n,i)}}function cE(r,t,e,n,i,a){if(!(r.isGroup||r.type==="compoundPath")){By(e,null,a),By(e,yr,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Gc(o),r.setTextContent(f)),Wc(null,f,t,o,null,n,i);for(var h=o&&o.style,c=0;c<Kr.length;c++){var v=Kr[c];if(v!==Br){var d=a[v].conOpt;OS(v,f,d,Yc(o,d,v),null)}}h?f.dirty():f.markRedraw()}}}}function By(r,t,e){var n=t?Al(r,t):r,i=t?Yc(r,n,yr):r.style,a=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?t?Al(s,t):s:null;if(i&&(e.isLegacy||WR(i,a,!!o,!!l))){e.isLegacy=!0;var u=UR(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var h=t?e[t]:e.normal;h.cfg=o,h.conOpt=l}function Al(r,t){return t?r?r[t]:null:r}function Yc(r,t,e){var n=t&&t.style;return n==null&&e===yr&&r&&(n=r.styleEmphasis),n}function dE(r,t,e,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){gE({api:r,oldChildren:t.children()||[],newChildren:a||[],dataIndex:e,seriesModel:i,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var h=a[f],c=t.childAt(f);h?(h.ignore==null&&(h.ignore=!1),Uc(r,c,e,h,i,t)):c.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);pE(t,d,i)}}}function pE(r,t,e){t&&Fc(t,gr(r).option,e)}function gE(r){new wc(r.oldChildren,r.newChildren,Ny,Ny,r).add(zy).update(zy).remove(yE).execute()}function Ny(r,t){var e=r&&r.name;return e??aE+t}function zy(r,t){var e=this.context,n=r!=null?e.newChildren[r]:null,i=t!=null?e.oldChildren[t]:null;Uc(e.api,i,e.dataIndex,n,e.seriesModel,e.group)}function yE(r){var t=this.context,e=t.oldChildren[r];e&&Fc(e,gr(e).option,t.seriesModel)}function NS(r){return r&&(r.pathData||r.d)}function mE(r){return r&&(W(r,"pathData")||W(r,"d"))}function _E(r){r.registerChartView(lE),r.registerSeriesModel(RR)}var An=ft(),Fy=ut,Ff=q,xE=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Lt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),n.getZr().add(s);else{var c=vt(Vy,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}Gy(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Ec(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=An(t).pointerEl=new TC[a.type](Fy(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=An(t).labelEl=new zt(Fy(e.label));t.add(a),Hy(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=An(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=An(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Hy(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.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=Yv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){wi(u.event)},onmousedown:Ff(this._onHandleDragMove,this,0,0),drift:Ff(this._onHandleDragMove,this),ondragend:Ff(this._onHandleDragEnd,this)}),n.add(i)),Gy(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");N(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,tu(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Vy(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Vf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Vf(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Vf(i)),An(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ul(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function Vy(r,t,e,n){zS(An(e).lastProp,n)||(An(e).lastProp=n,t?De(e,n,r):(e.stopAnimation(),e.attr(n)))}function zS(r,t){if(Q(r)&&Q(t)){var e=!0;return T(t,function(n,i){e=e&&zS(r[i],n)}),!!e}else return r===t}function Hy(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Vf(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Gy(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}function SE(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function wE(r,t,e,n,i){var a=e.get("value"),o=FS(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Kl(s.get("padding")||0),u=s.getFont(),f=Xm(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=v),p==="middle"&&(h[1]-=v/2),bE(h,c,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:he(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function bE(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function FS(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:yl(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(n,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Z(o)?a=o.replace("{value}",a):rt(o)&&(a=o(s))}return a}function VS(r,t,e){var n=Je();return Mv(n,n,e.rotation),Ha(n,n,e.position),Za([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function TE(r,t,e,n,i,a){var o=Ur.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),wE(t,n,i,a,{position:VS(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function CE(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function ME(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var DE=function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=Wy(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=SE(a),v=AE[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=bl(l.getRect(),i);TE(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=bl(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=VS(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Wy(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(xE);function Wy(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var AE={line:function(r,t,e){var n=CE([t,e[0]],[t,e[1]],Uy(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:ME([t-n/2,e[0]],[n,i],Uy(r))}}};function Uy(r){return r.dim==="x"?0:1}var LE=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:G.color.border,width:1,type:"dashed"},shadowStyle:{color:G.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:G.color.neutral00,padding:[5,7,5,7],backgroundColor:G.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:G.color.accent40,throttle:40}},t}(gt),dr=ft(),IE=T;function HS(r,t,e){if(!it.node){var n=t.getZr();dr(n).records||(dr(n).records={}),PE(n,t);var i=dr(n).records[r]||(dr(n).records[r]={});i.handler=e}}function PE(r,t){if(dr(r).initialized)return;dr(r).initialized=!0,e("click",vt(Yy,"click")),e("mousemove",vt(Yy,"mousemove")),e("globalout",EE);function e(n,i){r.on(n,function(a){var o=kE(t);IE(dr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),RE(o.pendings,t)})}}function RE(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function EE(r,t,e){r.handler("leave",null,e)}function Yy(r,t,e,n){t.handler(r,e,n)}function kE(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function cv(r,t){if(!it.node){var e=t.getZr(),n=(dr(e).records||{})[r];n&&(dr(e).records[r]=null)}}var OE=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";HS("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,n){cv("axisPointer",n)},t.prototype.dispose=function(e,n){cv("axisPointer",n)},t.type="axisPointer",t}(ve);function GS(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=fo(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(a.getValues($(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var Xy=ft();function BE(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||q(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Bs(i)&&(i=GS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Bs(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||Bs(i),c={},v={},d={list:[],map:{}},p={showPointer:vt(zE,v),showTooltip:vt(FE,d)};T(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);T(s.coordSysAxesInfo[m],function(x,S){var w=x.axis,b=WE(u,x);if(!h&&_&&(!u||b)){var C=b&&b.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Zy(x,C,p,!1,c)}})});var g={};return T(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&T(_.axesInfo,function(x,S){var w=v[S];if(x!==y&&w){var b=w.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,$y(x),$y(y)))),g[y.key]=b}})}),T(g,function(y,m){Zy(f[m],y,p,!0,c)}),VE(v,f,c),HE(d,i,r,o),GE(f,o,e),c}}function Zy(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=NE(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&O(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function NE(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.indicesOfNearest(n,f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,a.length=0),T(c,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function zE(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function FE(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=no(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.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 VE(r,t,e){var n=e.axesInfo=[];T(t,function(i,a){var o=i.axisPointerModel.option,s=r[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 HE(r,t,e,n){if(Bs(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function GE(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Xy(n)[i]||{},o=Xy(n)[i]={};T(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];T(a,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function WE(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function $y(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function Bs(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function WS(r){pS.registerAxisPointerClass("CartesianAxisPointer",DE),r.registerComponentModel(LE),r.registerComponentView(OE),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=vP(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},BE)}function UE(r){or(CP),or(WS)}var qy=["x","y","radius","angle","single"],YE=["cartesian2d","polar","singleAxis"];function XE(r){var t=r.get("coordinateSystem");return st(YE,t)>=0}function Nr(r){return r+"Axis"}function ZE(r,t){var e=et(),n=[],i=et();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}function US(r){var t=r.ecModel,e={infoList:[],infoMap:et()};return r.eachTargetAxis(function(n,i){var a=t.getComponent(Nr(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var Hf=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Ll=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Ky(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Ky(e);ct(this.option,e,!0),ct(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=et(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return T(qy,function(i){var a=this.getReferringComponents(Nr(i),mb);if(a.specified){n=!0;var o=new Hf;T(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(h){var c=new Hf;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",ee).models[0];v&&T(u,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",ee).models[0]&&c.add(d.componentIndex)})}}}a&&T(qy,function(u){if(a){var f=i.findComponents({mainType:Nr(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Hf;h.add(f[0].componentIndex),e.set(u,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(Nr(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){T(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(Nr(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;T(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(gt);function Ky(r){var t={};return T(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var YS=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t}(ve),si=T,Qy=ga,$E=function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(XE(e)){var n=Nr(this._dimName),i=e.getReferringComponents(n,ee).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ut(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;si(["start","end"],function(c,v){var d=t[c],p=t[c+"Value"];a[v]==="percent"?(d==null&&(d=o[v]),p=i.parse(At(d,o,e))):(u=!0,p=p==null?e[v]:i.parse(p),d=At(p,e,o)),l[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),Qy(l),Qy(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(c,v,d,p,g){var y=g?"Span":"ValueSpan";oo(0,c,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=At(c[m],d,p,!0),g&&(v[m]=i.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=qE(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;si(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var h=u.getStore(),c=$(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=h.get(c[y],v),_=!isNaN(m),x=m<o[0],S=m>o[1];if(_&&!x&&!S)return!0;_&&(g=!0),x&&(d=!0),S&&(p=!0)}return g&&d&&p})}else si(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});si(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;si(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=At(n[0]+o,n,[0,100],!0):a!=null&&(o=At(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=Km(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function qE(r,t,e){var n=[1/0,-1/0];si(e,function(o){JL(n,o.getData(),t)});var i=r.getAxisModel(),a=Ex(i.axis.scale,i,n).calculate();return[a.min,a.max]}var KE={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(Nr(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new $E(i,a,s,r),e.push(o.__dzAxisProxy))});var n=et();return T(e,function(i){T(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function QE(r){r.registerAction("dataZoom",function(t,e){var n=ZE(e,t);T(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var jy=!1;function XS(r){jy||(jy=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,KE),QE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function jE(r,t){var e=Kl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var i=new Tt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var JE=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:G.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:G.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:G.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:G.color.tertiary,fontSize:14}},t}(gt);function ZS(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function $S(r){if(it.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var qS=$S(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),tk=$S(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function KS(r,t){if(!r)return t;t=a_(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function ek(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var rk=KS(tk,"transition"),Xc=KS(qS,"transform"),nk="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(it.transform3dSupported?"will-change:transform;":"");function ik(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function ak(r,t,e){if(!Z(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=qa(t);var a=ik(e),o=Math.max(Math.round(i)*1.5,6),s="",l=Xc+":",u;st(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*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;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function ok(r,t,e){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return e&&(i=" "+r/2+"s "+n,a="opacity"+i+",visibility"+i),t||(i=" "+r+"s "+n,a+=(a.length?",":"")+(it.transformSupported?""+Xc+i:",left"+i+",top"+i)),rk+":"+a}function Jy(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!it.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=it.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Xc+":"+o+";":[["top",0],["left",0],[qS,o]]}function sk(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=J(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function lk(r,t,e,n){var i=[],a=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),h=r.getModel("textStyle"),c=k_(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+v),t&&a>0&&i.push(ok(a,e,n)),o&&i.push("background-color:"+o),T(["width","color","radius"],function(d){var p="border-"+d,g=a_(p),y=r.get(g);y!=null&&i.push(p+":"+y+(d==="color"?"":"px"))}),i.push(sk(h)),c!=null&&i.push("padding:"+Kl(c).join("px ")+"px"),i.join(";")+";"}function tm(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&F1(r,o,e,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var uk=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,it.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(Z(a)?document.querySelector(a):Fa(a)?a:rt(a)&&a(t.getDom()));tm(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(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();ye(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=ek(e,"position"),i=e.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")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=nk+lk(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Jy(a[0],a[1],!0)+("border-color:"+qa(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Z(a)&&n.get("trigger")==="item"&&!ZS(n)&&(s=ak(n,i,a)),Z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var l=0;l<t.length;l++)Fa(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(tm(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=Jy(n[0],n[1]);T(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",it.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;V1(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},r}(),fk=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),rm(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;Q(t)&&Ut(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new zt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:k_(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=em(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;rm(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=Ir(a.borderWidth||0),s=em(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Ir(r){return Math.max(0,r)}function em(r){var t=Ir(r.shadowBlur||0),e=Ir(r.shadowOffsetX||0),n=Ir(r.shadowOffsetY||0);return{left:Ir(t-e),right:Ir(t+e),top:Ir(t-n),bottom:Ir(t+n)}}function rm(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var hk=new Tt({shape:{x:-1,y:-1,width:2,height:2}}),vk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(it.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=xb(i.get("renderMode"));this._tooltipContent=a==="richText"?new fk(n):new uk(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,n,i){if(!(it.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?tu(this,"_updatePosition",50,"fixRate"):ul(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");HS("itemTooltip",this._api,q(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 e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||it.node||!i.getDom())){var o=nm(a,i);this._ticket="";var s=a.dataByCoordSys,l=gk(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=hk;f.x=a.x,f.y=a.y,f.update(),ht(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=GS(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(e,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(nm(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=la([f.getItemModel(s),u,(u.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(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=ht(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;xa(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ht(f).dataIndex!=null?l=f:ht(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=q(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=la([n.tooltipOption],a),l=this._renderMode,u=[],f=$r("section",{blocks:[],noHeader:!0}),h=[],c=new rf;T(e,function(m){T(m.dataByAxis,function(_){var x=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!x||S==null)){var w=FS(S,x.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=$r("section",{header:w,noHeader:!Ke(w),sortBlocks:!0,blocks:[]});f.blocks.push(b),T(_.seriesDataIndices,function(C){var D=i.getSeriesByIndex(C.seriesIndex),L=C.dataIndexInside,M=D.getDataParams(L);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=yl(x.axis,{value:S}),M.axisValueLabel=w,M.marker=c.makeTooltipMarker("item",qa(M.color),l);var R=zp(D.formatTooltip(L,!0,null)),A=R.frag;if(A){var I=la([D],a).get("valueFormatter");b.blocks.push(I?O({valueFormatter:I},A):A)}R.text&&h.push(R.text),u.push(M)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),p=Wp(f,c,l,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=l==="richText"?`

`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ht(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,p=la([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new rf;y.marker=m.makeTooltipMarker("item",qa(y.color),v);var _=zp(u.formatTooltip(f,!1,h)),x=p.get("order"),S=p.get("valueFormatter"),w=_.frag,b=w?Wp(S?O({valueFormatter:S},w):w,m,v,x,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=ht(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Z(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=ut(l),l.content=ie(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,d=la(h,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new rf;this._showOrMove(d,function(){var m=ut(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(c)if(Z(c)){var g=e.ecModel.get("useUTC"),y=N(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=ql(y.axisValue,v,g)),v=o_(v,i,!0)}else if(rt(c)){var _=q(function(x,S){x===this._ticket&&(h.setContent(S,f,e,p,l),this._updatePosition(e,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,p,l),h.show(e,p),this._updatePosition(e,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(e,n,i,a,o){if(i==="axis"||N(n))return{color:a||o};if(!N(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),rt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),N(n))i=xt(n[0],u),a=xt(n[1],f);else if(Q(n)){var p=n;p.width=h[0],p.height=h[1];var g=Ae(p,{width:u,height:f});i=g.x,a=g.y,c=null,v=null}else if(Z(n)&&l){var y=pk(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=ck(i,a,o,u,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=im(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=im(v)?h[1]/2:v==="bottom"?h[1]:0),ZS(e)){var y=dk(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&T(i,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&T(u,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&T(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],x=a[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){it.node||!n.getDom()||(ul(this,"_updatePosition"),this._tooltipContent.dispose(),cv("itemTooltip",n))},t.type="tooltip",t}(ve);function la(r,t,e){var n=t.ecModel,i;e?(i=new Mt(e,n,n),i=new Mt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),Z(o)&&(o={formatter:o}),o&&(i=new Mt(o,i,n)))}return i}function nm(r,t){return r.dispatchAction||q(t.dispatchAction,t)}function ck(r,t,e,n,i,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function dk(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function pk(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function im(r){return r==="center"||r==="middle"}function gk(r,t,e){var n=Pv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ho(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ht(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function yk(r){or(WS),r.registerComponentModel(JE),r.registerComponentView(vk),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Yt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Yt)}var mk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:G.size.m,backgroundColor:G.color.transparent,borderColor:G.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:G.color.primary},subtextStyle:{fontSize:12,color:G.color.quaternary}},t}(gt),_k=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=J(e.get("textBaseline"),e.get("textVerticalAlign")),f=new zt({style:he(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new zt({style:he(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Rh(d,"_"+e.get("target"))}),p&&v.on("click",function(){Rh(p,"_"+e.get("subtarget"))}),ht(f).eventData=ht(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=zn(e,i),x=Ae(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),a.x=x.x,a.y=x.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var w=x.margin,b=e.getItemStyle(["color","opacity"]);b.fill=e.get("backgroundColor");var C=new Tt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});a.add(C)}},t.type="title",t}(ve);function xk(r){r.registerComponentModel(mk),r.registerComponentView(_k)}function Sk(r,t){if(!r)return!1;for(var e=N(r)?r:[r],n=0;n<e.length;n++)if(e[n]&&e[n][t])return!0;return!1}function ds(r){$s(r,"label",["show"])}var ps=ft(),Oi=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(it.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,n){this._mergeOption(e,n,!1,!1)},t.prototype._mergeOption=function(e,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=ps(s)[o];if(!l||!l.data){ps(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&ds(l),T(l.data,function(f){f instanceof Array?(ds(f[0]),ds(f[1])):ds(f)}),u=this.createMarkerModelFromSeries(l,this,n),O(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ps(s)[o]=u},this)},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.getRawValue(e),s=a.getName(e);return $r("section",{header:this.name,blocks:[$r("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,n){var i=cc.prototype.getDataParams.call(this,e,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(e,n){return ps(e)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(gt);ze(Oi,cc.prototype);function wk(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function bk(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function gs(r,t,e,n,i,a,o){var s=[],l=Tc(t,i),u=l?t.getCalculationInfo("stackResultDimension"):i,f=Il(t,u,r),h=t.hostModel,c=h.indicesOfNearest(e,u,f)[0];s[a]=t.get(n,c),s[o]=t.get(u,c);var v=t.get(i,c),d=Ci(t.get(i,c));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,v]}var ys={min:vt(gs,"min"),max:vt(gs,"max"),average:vt(gs,"average"),median:vt(gs,"median")};function am(r,t){if(t){var e=r.getData(),n=r.coordinateSystem,i=n&&n.dimensions;if(!bk(t)&&!N(t.coord)&&N(i)){var a=QS(t,e,n,r);if(t=ut(t),t.type&&ys[t.type]&&a.baseAxis&&a.valueAxis){var o=st(i,a.baseAxis.dim),s=st(i,a.valueAxis.dim),l=ys[t.type](e,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!N(i)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&ys[t.type]){var f=n.getOtherAxis(u);f&&(t.value=Il(e,e.mapDimension(f.dim),t.type))}}else for(var h=t.coord,c=0;c<2;c++)ys[h[c]]&&(h[c]=Il(e,e.mapDimension(i[c]),h[c]));return t}}function QS(r,t,e,n){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(Tk(n,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function Tk(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function om(r,t){return r&&r.containData&&t.coord&&!wk(t)?r.containData(t.coord):!0}function Ck(r,t){return r?function(e,n,i,a){var o=a<2?e.coord&&e.coord[a]:e.value;return mi(o,t[a])}:function(e,n,i,a){return mi(e.value,t[a])}}function Il(r,t,e){if(e==="average"){var n=0,i=0;return r.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Gf=ft(),Mk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=et()},t.prototype.render=function(e,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){Gf(s).keep=!1}),n.eachSeries(function(s){var l=Oi.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!Gf(s).keep&&a.group.remove(s.group)}),Dk(n,o,this.type)},t.prototype.markKeep=function(e){Gf(e).keep=!0},t.prototype.toggleBlurSeries=function(e,n){var i=this;T(e,function(a){var o=Oi.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?w0(l):Fv(l))})}})},t.type="marker",t}(ve);function Dk(r,t,e){r.eachSeries(function(n){var i=Oi.getMarkerModelFromSeries(n,e),a=t.get(n.id);if(i&&a&&a.group){var o=Li(i),s=o.z,l=o.zlevel;$v(a.group,s,l)}})}var Ak=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Oi),ms=ft(),Lk=function(r,t,e,n){var i=r.getData(),a;if(N(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Si(n.yAxis,n.xAxis);else{var u=QS(n,i,t,r);s=u.valueAxis;var f=Sx(i,u.valueDataDim);l=Il(i,f,o)}var h=s.dim==="x"?0:1,c=1-h,v=ut(n),d={coord:[]};v.type=null,v.coord=[],v.coord[c]=-1/0,d.coord[c]=1/0;var p=e.get("precision");p>=0&&bt(l)&&(l=+l.toFixed(Math.min(p,20))),v.coord[h]=d.coord[h]=l,a=[v,d,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var g=[am(r,a[0]),am(r,a[1]),O({},a[2])];return g[2].type=g[2].type||null,ct(g[2],g[0]),ct(g[2],g[1]),g};function Pl(r){return!isNaN(r)&&!isFinite(r)}function sm(r,t,e,n){var i=1-r,a=n.dimensions[r];return Pl(t[i])&&Pl(e[i])&&t[r]===e[r]&&n.getAxis(a).containData(t[r])}function Ik(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,n=t[1].coord;if(e&&n&&(sm(1,e,n,r)||sm(0,e,n,r)))return!0}return om(r,t[0])&&om(r,t[1])}function Wf(r,t,e,n,i){var a=n.coordinateSystem,o=r.getItemModel(t),s,l=xt(o.get("x"),i.getWidth()),u=xt(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=a.dimensions,h=r.get(f[0],t),c=r.get(f[1],t);s=a.dataToPoint([h,c])}if(Ic(a,"cartesian2d")){var v=a.getAxis("x"),d=a.getAxis("y"),f=a.dimensions;Pl(r.get(f[0],t))?s[0]=v.toGlobalCoord(v.getExtent()[e?0:1]):Pl(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var Pk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,n,i){n.eachSeries(function(a){var o=Oi.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=ms(o).from,u=ms(o).to;l.each(function(f){Wf(l,f,!0,a,i),Wf(u,f,!1,a,i)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,n,i,a){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new LR);this.group.add(f.group);var h=Rk(o,e,n),c=h.from,v=h.to,d=h.line;ms(n).from=c,ms(n).to=v,n.setData(d);var p=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");N(p)||(p=[p,p]),N(g)||(g=[g,g]),N(y)||(y=[y,y]),N(m)||(m=[m,m]),h.from.each(function(x){_(c,x,!0),_(v,x,!1)}),d.each(function(x){var S=d.getItemModel(x),w=S.getModel("lineStyle").getLineStyle();d.setItemLayout(x,[c.getItemLayout(x),v.getItemLayout(x)]);var b=S.get("z2");w.stroke==null&&(w.stroke=c.getItemVisual(x,"style").fill),d.setItemVisual(x,{z2:J(b,0),fromSymbolKeepAspect:c.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(x,"symbolOffset"),fromSymbolRotate:c.getItemVisual(x,"symbolRotate"),fromSymbolSize:c.getItemVisual(x,"symbolSize"),fromSymbol:c.getItemVisual(x,"symbol"),toSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(x,"symbolOffset"),toSymbolRotate:v.getItemVisual(x,"symbolRotate"),toSymbolSize:v.getItemVisual(x,"symbolSize"),toSymbol:v.getItemVisual(x,"symbol"),style:w})}),f.updateData(d),h.line.eachItemGraphicEl(function(x){ht(x).dataModel=n,x.traverse(function(S){ht(S).dataModel=n})});function _(x,S,w){var b=x.getItemModel(S);Wf(x,S,w,e,a);var C=b.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=U_(l,"color")),x.setItemVisual(S,{symbolKeepAspect:b.get("symbolKeepAspect"),symbolOffset:J(b.get("symbolOffset",!0),m[w?0:1]),symbolRotate:J(b.get("symbolRotate",!0),y[w?0:1]),symbolSize:J(b.get("symbolSize"),g[w?0:1]),symbol:J(b.get("symbol",!0),p[w?0:1]),style:C})}this.markKeep(f),f.group.silent=n.get("silent")||e.get("silent")},t.type="markLine",t}(Mk);function Rk(r,t,e){var n;r?n=$(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return O(O({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new _i(n,e),a=new _i(n,e),o=new _i([],e),s=$(e.get("data"),vt(Lk,t,r,e));r&&(s=kt(s,vt(Ik,r)));var l=Ck(!!r,n);return i.initData($(s,function(u){return u[0]}),null,l),a.initData($(s,function(u){return u[1]}),null,l),o.initData($(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function Ek(r){r.registerComponentModel(Ak),r.registerComponentView(Pk),r.registerPreprocessor(function(t){Sk(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var kk=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},dv=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),N(n)&&T(n,function(a,o){Z(a)&&(a={type:a}),n[o]=ct(a,kk(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&Iv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=et(),s=$(a,function(l){return(Z(l)||bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Mt(l,this,this.ecModel))},this);this._data=kt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;T(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;T(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;T(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&st(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:G.size.m,align:"auto",backgroundColor:G.color.transparent,borderColor:G.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:G.color.disabled,inactiveBorderColor:G.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:G.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:G.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:G.color.tertiary,borderWidth:1,borderColor:G.color.border},emphasis:{selectorLabel:{show:!0,color:G.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(gt),ai=vt,pv=T,_s=Lt,jS=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new _s),this.group.add(this._selectorGroup=new _s),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,l,s,u);var f=zn(e,i).refContainer,h=e.getBoxLayoutParams(),c=e.get("padding"),v=Ae(h,f,c),d=this.layoutInner(e,o,v,a,l,u),p=Ae(dt({width:d.width,height:d.height},h),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=jE(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this.getContentGroup(),f=et(),h=n.get("selectedMode"),c=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),pv(n.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
`)){var m=new _s;m.newline=!0,u.add(m);return}var _=i.getSeriesByName(y)[0];if(!f.get(y))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},w=x.getVisual("legendIcon"),b=x.getVisual("style"),C=this._createItem(_,y,p,d,n,e,S,b,w,h,a);C.on("click",ai(lm,y,null,a,v)).on("mouseover",ai(gv,_.name,null,a,v)).on("mouseout",ai(yv,_.name,null,a,v)),i.ssr&&C.eachChild(function(D){var L=ht(D);L.seriesIndex=_.seriesIndex,L.dataIndex=p,L.ssrType="legend"}),c&&C.eachChild(function(D){g.packEventData(D,n,_,p,y)}),f.set(y,!0)}else i.eachRawSeries(function(D){var L=this;if(!f.get(y)&&D.legendVisualProvider){var M=D.legendVisualProvider;if(!M.containName(y))return;var R=M.indexOfName(y),A=M.getItemVisual(R,"style"),I=M.getItemVisual(R,"legendIcon"),P=er(A.fill);P&&P[3]===0&&(P[3]=.2,A=O(O({},A),{fill:Gr(P,"rgba")}));var E=this._createItem(D,y,p,d,n,e,{},A,I,h,a);E.on("click",ai(lm,null,y,a,v)).on("mouseover",ai(gv,null,y,a,v)).on("mouseout",ai(yv,null,y,a,v)),i.ssr&&E.eachChild(function(B){var k=ht(B);k.seriesIndex=D.seriesIndex,k.dataIndex=p,k.ssrType="legend"}),c&&E.eachChild(function(B){L.packEventData(B,n,D,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype.packEventData=function(e,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};ht(e).eventData=s},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();pv(e,function(u){var f=u.type,h=new zt({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"]);yo(h,{normal:c,emphasis:v},{defaultText:u.title}),rl(h)})},t.prototype._createItem=function(e,n,i,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=Ok(f,a,l,u,v,g,c),S=new _s,w=a.getModel("textStyle");if(rt(e.getLegendIcon)&&(!_||_==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;S.add(Bk({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:x.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,D=s,L=o.get("formatter"),M=n;Z(L)&&L?M=L.replace("{name}",n??""):rt(L)&&(M=L(n));var R=g?w.getTextColor():a.get("inactiveColor");S.add(new zt({style:he(w,{text:M,x:C,y:p/2,fill:R,align:D,verticalAlign:"middle"},{inheritColor:R})}));var A=new Tt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Yl({el:A,componentModel:o,itemName:n,itemTooltipOption:I.option}),S.add(A),S.eachChild(function(P){P.silent=!0}),A.silent=!h,this.getContentGroup().add(S),rl(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Oa(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Oa("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-p]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ve);function Ok(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),pv(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:dl(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:e).opacity),s(u,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Bk(r){var t=r.icon||"roundRect",e=Pi(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=G.color.neutral00,e.style.lineWidth=2),e}function lm(r,t,e,n){yv(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),gv(r,t,e,n)}function JS(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function gv(r,t,e,n){JS(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function yv(r,t,e,n){JS(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function Nk(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function ua(r,t,e){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),um(s,i),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){T(i,function(l,u){s[l?"select":"unSelect"](u)}),um(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function um(r,t){var e=t||{};return T(r.getData(),function(n){var i=n.get("name");if(!(i===`
`||i==="")){var a=r.isSelected(i);W(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function zk(r){r.registerAction("legendToggleSelect","legendselectchanged",vt(ua,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",vt(ua,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",vt(ua,"inverseSelect")),r.registerAction("legendSelect","legendselected",vt(ua,"select")),r.registerAction("legendUnSelect","legendunselected",vt(ua,"unSelect"))}function t1(r){r.registerComponentModel(dv),r.registerComponentView(jS),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Nk),r.registerSubTypeDefaulter("legend",function(){return"plain"}),zk(r)}var Fk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=Fi(e);r.prototype.init.call(this,e,n,i),fm(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),fm(this,this.option,e)},t.type="legend.scroll",t.defaultOption=$l(dv.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:G.color.accent50,pageIconInactiveColor:G.color.accent10,pageIconSize:15,pageTextStyle:{color:G.color.tertiary},animationDurationUpdate:800}),t}(dv);function fm(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,Zr(t,e,{type:"box",ignoreSize:!!i})}var hm=Lt,Uf=["width","height"],Yf=["x","y"],Vk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new hm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new hm)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=N(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new zt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Yv(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:q(u._pageGo,u,y,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Uf[u],h=Yf[u],c=Uf[1-u],v=Yf[1-u];o&&Oa("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ut(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,c,v,h);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-u]+=m[v]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[v]=Math.min(m[v],p[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Oa(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),Oa("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var x=e.get("pageButtonPosition",!0);x==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var S={x:0,y:0};if(S[o]=p?i[o]:v[o],S[s]=Math.max(v[s],d[s]),S[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=S[s],h.setClipPath(new Tt({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&De(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),S},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Z(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Uf[o],l=Yf[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],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 p=x(h);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=x(f[g]),(!_&&m.e>y.s+a||_&&!S(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=x(f[g]),(!_||!S(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(w){if(w){var b=w.getBoundingRect(),C=b[l]+w[l];return{s:C,e:C+b[s],i:w.__legendDataIndex}}}function S(w,b){return w.e>=b&&w.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(n=s)}),n??a},t.type="legend.scroll",t}(jS);function Hk(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Gk(r){or(t1),r.registerComponentModel(Fk),r.registerComponentView(Vk),Hk(r)}function Wk(r){or(t1),or(Gk)}var Uk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=$l(Ll.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ll),Zc=ft();function Yk(r,t,e){Zc(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=e)})}function Xk(r,t){for(var e=Zc(r).coordSysRecordMap,n=e.keys(),i=0;i<n.length;i++){var a=n[i],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||e1(e,o))}}}function e1(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function Zk(r,t){var e={model:t,containsPoint:vt(qk,t),dispatchAction:vt($k,r),dataZoomInfoMap:null,controller:null},n=e.controller=new mS(r.getZr());return T(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function $k(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function qk(r,t,e,n){return r.coordinateSystem.containPoint([e,n])}function Kk(r,t,e){var n,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;a[i+u]>a[i+n]&&(n=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:n,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function Qk(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=Zc(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=et());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=US(a);T(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Zk(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=et());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){e1(i,a);return}var f=Kk(l,a,e);o.enable(f.controlType,f.opt),tu(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var jk=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,n,i){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Yk(i,e,{pan:q(Xf.pan,this),zoom:q(Xf.zoom,this),scrollMove:q(Xf.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Xk(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(YS),Xf={zoom:function(r,t,e,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=Zf[t](null,[n.originX,n.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(oo(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:vm(function(r,t,e,n,i,a){var o=Zf[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:vm(function(r,t,e,n,i,a){var o=Zf[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function vm(r){return function(t,e,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,n,i);if(oo(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Zf={grid:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,n,i){var a=e.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,n,i){var a=e.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function Jk(r){XS(r),r.registerComponentModel(Uk),r.registerComponentView(jk),Qk(r)}var tO=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=$l(Ll.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:G.color.accent10,borderRadius:0,backgroundColor:G.color.transparent,dataBackground:{lineStyle:{color:G.color.accent30,width:.5},areaStyle:{color:G.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:G.color.accent40,width:.5},areaStyle:{color:G.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:G.color.neutral00,borderColor:G.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:G.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:G.color.tertiary},brushSelect:!0,brushStyle:{color:G.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:G.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Ll),fa=Tt,eO=1,$f=30,rO=7,ha="horizontal",cm="vertical",nO=5,iO=["line","bar","candlestick","scatter"],aO={easing:"cubicOut",duration:100,delay:0},oO=function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,n){this.api=n,this._onBrush=q(this._onBrush,this),this._onBrushEnd=q(this._onBrushEnd,this)},t.prototype.render=function(e,n,i,a){if(r.prototype.render.apply(this,arguments),tu(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){ul(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Lt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,n=this.api,i=e.get("brushSelect"),a=i?rO:0,o=zn(e,n).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===ha?{right:o.width-s.x-s.width,top:o.height-$f-l-a,width:s.width,height:$f}:{right:l,top:s.y,width:$f,height:s.height},f=Fi(e.option);T(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var h=Ae(f,o);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===cm&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ha&&!o?{scaleY:l?1:-1,scaleX:1}:i===ha&&o?{scaleY:l?1:-1,scaleX:-1}:i===cm&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=n.x-u.x,e.y=n.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=e.get("brushSelect");i.add(new fa({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new fa({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:q(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var n=this._size,i=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(e.thisDim),c=o.getDataExtent(l),v=(c[1]-c[0])*.3;c=[c[0]-v,c[1]+v];var d=[0,n[1]],p=[0,n[0]],g=[[n[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=n[0]/(h[1]-h[0]),x=e.thisAxis.type==="time",S=-m,w=Math.round(o.count()/n[0]),b;o.each([e.thisDim,l],function(R,A,I){if(w>0&&I%w){x||(S+=m);return}S=x?(+R-h[0])*_:S+m;var P=A==null||isNaN(A)||A==="",E=P?0:At(A,c,d,!0);P&&!b&&I?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!P&&b&&(g.push([S,0]),y.push([S,0])),P||(g.push([S,E]),y.push([S,E])),b=P}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var C=this.dataZoomModel;function D(R){var A=C.getModel(R?"selectedDataBackground":"dataBackground"),I=new Lt,P=new po({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new zi({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return I.add(P),I.add(E),I}for(var L=0;L<3;L++){var M=D(L===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,n=e.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!i&&!(n!==!0&&st(iO,u.get("type"))<0)){var f=a.getComponent(Nr(o),s).axis,h=sO(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h);var d=u.getData().mapDimension(o);i={thisAxis:f,series:u,thisDim:d,otherDim:h,otherAxisInverse:c}}},this)},this),i}},t.prototype._renderHandle=function(){var e=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),c=n.filler=new fa({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new fa({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:eO,fill:G.color.transparent}})),T([0,1],function(_){var x=l.get("handleIcon");!hl[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=Pi(x,-1,0,2,2,null,!0);S.attr({cursor:lO(this._orient),draggable:!0,drift:q(this._onDragMove,this,_),ondragend:q(this._onDragEnd,this),onmouseover:q(this._showDataInfo,this,!0),onmouseout:q(this._showDataInfo,this,!1),z2:5});var w=S.getBoundingRect(),b=l.get("handleSize");this._handleHeight=xt(b,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),rl(S);var C=l.get("handleColor");C!=null&&(S.style.fill=C),o.add(i[_]=S);var D=l.getModel("textStyle"),L=l.get("handleLabel")||{},M=L.show||!1;e.add(a[_]=new zt({silent:!0,invisible:!M,style:he(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=c;if(h){var d=xt(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Tt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=n.moveHandleIcon=Pi(l.get("moveHandleIcon"),-g/2,-g/2,g,g,G.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=n.moveZone=new Tt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:q(this._onDragMove,this,"all"),ondragstart:q(this._showDataInfo,this,!0),ondragend:q(this._onDragEnd,this),onmouseover:q(this._showDataInfo,this,!0),onmouseout:q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[At(e[0],[0,100],n,!0),At(e[1],[0,100],n,!0)]},t.prototype._updateInterval=function(e,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];oo(n,a,o,i.get("zoomLock")?"all":e,s.minSpan!=null?At(s.minSpan,l,o,!0):null,s.maxSpan!=null?At(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=ga([At(a[0],o,l,!0),At(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var n=this._displayables,i=this._handleEnds,a=ga(i.slice()),o=this._size;T([0,1],function(v){var d=n.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:i[v]+(v?-1:1),y:o[1]/2-p/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new Tt,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var c=ga(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=H0(i.handles[d].parent,this.group),g=G0(d===0?"right":"left",p),y=this._handleWidth/2+nO,m=Za([c[d]+(d===0?-y:y),this._size[1]/2],p);a[d].setStyle({x:m[0],y:m[1],verticalAlign:o===ha?"middle":g,align:o===ha?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=e==null||isNaN(e)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return rt(a)?a(e,s):Z(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=e||this._dragging?o:i,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,n,i,a){this._dragging=!0,wi(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Za([n,i],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var n=e.offsetX,i=e.offsetY;this._brushStart=new nt(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[i.x,i.x+i.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();oo(0,l,o,0,u.minSpan!=null?At(u.minSpan,s,o,!0):null,u.maxSpan!=null?At(u.maxSpan,s,o,!0):null),this._range=ga([At(l[0],o,s,!0),At(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(wi(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new fa({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,n),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?aO:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var e,n=US(this.dataZoomModel).infoList;if(!e&&n.length){var i=n[0].model.coordinateSystem;e=i.getRect&&i.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(YS);function sO(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function lO(r){return r==="vertical"?"ns-resize":"ew-resize"}function uO(r){r.registerComponentModel(tO),r.registerComponentView(oO),XS(r)}function fO(r){or(Jk),or(uO)}or([K2,II,yI,CR,_E,yk,Wk,xk,UE,Ek,fO]);const hO=["setOption","getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"],dO=dm({inheritAttrs:!1,setup(r,{attrs:t,slots:e,expose:n}){const i=f1(null),a=Object.fromEntries(hO.map(o=>[o,(...s)=>{var l;return((l=i.value)==null?void 0:l[o]).call(l,...s)}]));return n({...a,root:qc(()=>{var o;return(o=i.value)==null?void 0:o.root}),chart:qc(()=>{var o;return(o=i.value)==null?void 0:o.chart})}),()=>Ns(Y2,{...t,ref:i},e)}});export{dO as _};
