import{p as N,s as Dn,q as V,o as F,I as le,b4 as Xa,l as k,a1 as O,g as b,j as Ee,E as j,O as Re,v as ht,W as nt,_ as K,k as Bc,h as P,n as W,b as Ce,L as oe,b5 as Ro,aL as Wn,X as at,J as qa,aK as tr,a$ as br,b0 as Tr,aa as Fc,ae as Vc,ac as ma,b6 as ko,b7 as Po,b8 as Nu,aj as Oo,b9 as Lo,ab as Uc,ba as No,M as Bo,ao as Fo,ak as Vo,P as Ye,bb as zc,B as st,bc as Gc,a5 as Hc,a as Kn,f as Xe,aO as xi,aJ as Bu,ay as Yc,aX as Fu,az as Vu,aY as Uu,aN as Wc,a6 as zu,bd as Kc,c as q,R as pt,C as Xc,G as Xn,Z as Or,a4 as Gu,aG as qn,U as qc,r as pe,m as Ut,e as Ae,d as Ei,a7 as Za,be as ke,i as Ne,bf as In,$ as Zc,a0 as St,aQ as Zn,Q as $c,bg as Qc,as as gn,w as Jc,y as jc,bh as Uo,bi as _a,bj as ev,bk as tv,am as $a,S as rv,bl as nv,bm as zo,ax as av}from"./graphic-DeMuFa6Q.js";var Go=1e-4,xn=20,R_=14;function iv(e){return e.replace(/^\s+|\s+$/g,"")}var qe=Math.min,ee=Math.max,_e=Math.abs,ut=Math.round,zt=Math.floor,$n=Math.ceil,Gt=Math.pow,Ft=Math.log,Lr=Math.LN10,ov=Math.PI,sv=Math.random;function Ho(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],u=i-a,f=s-o;if(u===0)return f===0?o:(o+s)/2;if(n)if(u>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/u*f+o}var De=uv;function uv(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return lv(e,t,r)}function lv(e,t,r){return N(e)?Hu(e)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function k_(e){return N(e)&&Hu(e)}function Hu(e){return!!iv(e).match(/%$/)}function ve(e,t,r){return isNaN(t)?r?""+e:+e:(t=qe(ee(0,t),xn),e=(+e).toFixed(t),r?e:+e)}function P_(e,t,r){return t==null&&(t=10),ve(e,t,r)}function Yu(e){return e.sort(function(t,r){return t-r}),e}function dt(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(ut(e*t)/t===e)return r}return fv(e)}function fv(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return ee(0,o-n)}function O_(e,t){var r=zt(Ft(e[1]-e[0])/Lr),n=ut(Ft(_e(t[1]-t[0]))/Lr),a=qe(ee(-r+n,0),xn);return isFinite(a)?a:xn}function L_(e,t,r){var n=_e(e[1]-e[0]);if(!isFinite(n)||n===0)return NaN;var a=Ft(2*_e(r||1)*_e(n))/Lr,i=Ft(_e(t))/Lr,o=ee(0,$n(-a+i));return isFinite(o)||(o=NaN),o}function N_(e,t,r){if(!e[t])return 0;var n=cv(e,r);return n[t]||0}function cv(e,t){var r=Dn(e,function(c,d){return c+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Gt(10,t),a=V(e,function(c){return(isNaN(c)?0:c)/r*n*100}),i=n*100,o=V(a,function(c){return zt(c)}),s=Dn(o,function(c,d){return c+d},0),u=V(a,function(c,d){return c-o[d]});sf&&(f=u[l],v=l);++o[v],u[v]=0,++s}return V(o,function(c){return c/n})}function vv(e,t){var r=ee(dt(e),dt(t)),n=e+t;return r>xn?n:ve(n,r)}var B_=Gt(2,53)-1;function F_(e){var t=ov*2;return(e%t+t)%t}function V_(e){return e>-Go&&e=10&&t++,t}var pv=2;function Wu(e,t){var r=Ai(e),n=Gt(10,r),a=e/n,i;return t===pv?i=1:t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,ve(e,-r)}function U_(e,t){var r=(e.length-1)*t+1,n=zt(r),a=+e[n-1],i=r-n;return i?a+i*(e[n]-a):a}function z_(e){e.sort(function(u,f){return s(u,f,0)?-1:1});for(var t=-1/0,r=1,n=0;n0?t.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},e})();function q_(e){e.option=e.parentModel=e.ecModel=null}function et(){return[1/0,-1/0]}function Ov(e,t){lt(t)&&(te[1]&&(e[1]=t))}function el(e,t){lt(t)&&te[1]&&(e[1]=t)}function Lv(e,t){ir(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function lt(e){return e!=null&&isFinite(e)}function ir(e,t){return lt(e)&<(t)&&e<=t}function Nv(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Bv(e){ir(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Fv(){var e="__ec_once_"+Vv++;return function(t,r){Re(t,e)||(t[e]=1,r())}}var Vv=Ri();function ki(e,t,r){var n=O(),a=0;b(e,function(i){var o=t(i),s=n.get(o)||0;r&&r(i,s),!s&&!r&&(e[a++]=i),n.set(o,s+1)}),r||(e.length=a)}function Uv(e){return e.value+""}function zv(e){return e+""}function Z_(e,t){return j(t,!0)?e.seriesIndex+2:0}function Gv(e,t,r){var n=e.getData().count();return{progressiveRender:r.progressiveEnabled&&t.incrementalPrepareRender&&n>=r.threshold,large:e.get("large")&&n>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function $_(e,t){return{seriesType:e,overallReset:t}}function rl(e){return{overallReset:e}}var Hv=".",Ct="___EC__COMPONENT__CONTAINER___",nl="___EC__EXTENDED_CLASS___";function tt(e){var t={main:"",sub:""};if(e){var r=e.split(Hv);t.main=r[0]||"",t.sub=r[1]||""}return t}function Yv(e){nt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Wv(e){return!!(e&&e[nl])}function Pi(e,t){e.$constructor=e,e.extend=function(r){var n=this,a;return Kv(n)?a=(function(i){K(o,i);function o(){return i.apply(this,arguments)||this}return o})(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Bc(a,this)),P(a.prototype,r),a[nl]=!0,a.extend=this.extend,a.superCall=Zv,a.superApply=$v,a.superClass=n,a}}function Kv(e){return W(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function al(e,t){e.extend=t.extend}var Xv=Math.round(Math.random()*10);function qv(e){var t=["__\0is_clz",Xv++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Zv(e,t){for(var r=[],n=2;n=0||i&&Ee(i,u)<0)){var f=n.getShallow(u,t);f!=null&&(o[e[s][0]]=f)}}return o}}var Qv=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Jv=Br(Qv),jv=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Jv(this,t,r)},e})(),xe=ne(),eh=function(e,t,r,n){if(n){var a=xe(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=xe(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},ra="undefined",il="series",ol=O(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",be="arrayRows",Ve="objectRows",$e="keyedColumns",gt="typedArray",sl="unknown",rt="column",Yt="row",Q_="Roam",th=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ul=(function(){function e(t){b(th,function(r){this[r]=Ce(t[r],t)},this)}return e})();function rh(e,t){return t.mainType===il?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var qo=1,Zo={},ll=ne(),Oi=ne(),Li=0,na=1,aa=2,_t=["emphasis","blur","select"],$o=["normal","emphasis","blur","select"],nh=10,ah=9,Ot="highlight",yn="downplay",En="select",Qa="unselect",An="toggleSelect",Ni="selectchanged";function Kt(e){return e!=null&&e!=="none"}function ia(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function fl(e){ia(e,"emphasis",aa)}function cl(e){e.hoverState===aa&&ia(e,"normal",Li)}function Bi(e){ia(e,"blur",na)}function vl(e){e.hoverState===na&&ia(e,"normal",Li)}function ih(e){e.selected=!0}function oh(e){e.selected=!1}function Qo(e,t,r){t(e,r)}function ft(e,t,r){Qo(e,t,r),e.isGroup&&e.traverse(function(n){Qo(n,t,r)})}function J_(e,t){switch(t){case"emphasis":e.hoverState=aa;break;case"normal":e.hoverState=Li;break;case"blur":e.hoverState=na;break;case"select":e.selected=!0}}function sh(e,t,r,n){for(var a=e.style,i={},o=0;o=0,i=!1;if(e instanceof oe){var o=ll(e),s=a&&o.selectFill||o.normalFill,u=a&&o.selectStroke||o.normalStroke;if(Kt(s)||Kt(u)){n=n||{};var f=n.style||{};f.fill==="inherit"?(i=!0,n=P({},n),f=P({},f),f.fill=s):!Kt(f.fill)&&Kt(s)?(i=!0,n=P({},n),f=P({},f),f.fill=Ro(s)):!Kt(f.stroke)&&Kt(u)&&(i||(n=P({},n),f=P({},f)),f.stroke=Ro(u)),n.style=f}}if(n&&n.z2==null){i||(n=P({},n));var v=e.z2EmphasisLift;n.z2=e.z2+(v??nh)}return n}function lh(e,t,r){if(r&&r.z2==null){r=P({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??ah)}return r}function fh(e,t,r){var n=Ee(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:sh(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=P({},r),o=P({opacity:n?a:i.opacity*.1},o),r.style=o),r}function ba(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return uh(this,e,t,r);if(e==="blur")return fh(this,e,r);if(e==="select")return lh(this,e,r)}return r}function ch(e){e.stateProxy=ba;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=ba),r&&(r.stateProxy=ba)}function Jo(e,t){!gl(e,t)&&!e.__highByOuter&&ft(e,fl)}function jo(e,t){!gl(e,t)&&!e.__highByOuter&&ft(e,cl)}function Ja(e,t){e.__highByOuter|=1<<(t||0),ft(e,fl)}function ja(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ft(e,cl)}function vh(e){ft(e,Bi)}function hl(e){ft(e,vl)}function dl(e){ft(e,ih)}function pl(e){ft(e,oh)}function gl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function yl(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=Oi(i),s=rh(e,i),u=a==="series";!u&&n.push(s),o.isBlured&&(s.group.traverse(function(f){vl(f)}),u&&r.push(i)),o.isBlured=!1}),b(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function ei(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(f,v){for(var l=0;l0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function mh(e,t,r){ml(e,!0),ft(e,ch),Sh(e,t,r)}function _h(e){ml(e,!1)}function j_(e,t,r,n){n?_h(e):mh(e,t,r)}function Sh(e,t,r){var n=xe(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var ts=["emphasis","blur","select"],bh={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function e0(e,t,r,n){r=r||"itemStyle";for(var a=0;a1&&(o*=Ta(d),s*=Ta(d));var g=(a===i?-1:1)*Ta((o*o*(s*s)-o*o*(c*c)-s*s*(h*h))/(o*o*(c*c)+s*s*(h*h)))||0,p=g*o*c/s,y=g*-s*h/o,m=(e+r)/2+Xr(l)*p-Kr(l)*y,_=(t+n)/2+Kr(l)*p+Xr(l)*y,S=is([1,0],[(h-p)/o,(c-y)/s]),T=[(h-p)/o,(c-y)/s],C=[(-1*h-p)/o,(-1*c-y)/s],I=is(T,C);if(ai(T,C)<=-1&&(I=fr),ai(T,C)>=1&&(I=0),I<0){var x=Math.round(I/fr*1e6)/1e6;I=fr*2+x%2*fr}v.addData(f,m,_,o,s,S,I,l,i)}var Ih=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xh=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Eh(e){var t=new qa;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=qa.CMD,u=e.match(Ih);if(!u)return t;for(var f=0;fU*U+z*z&&(x=D,M=E),{cx:x,cy:M,x0:-v,y0:-l,x1:x*(a/T-1),y1:M*(a/T-1)}}function Bh(e){var t;if(k(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function Fh(e,t){var r,n=Cr(t.r,0),a=Cr(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var u=t.startAngle,f=t.endAngle;if(!(isNaN(u)||isNaN(f))){var v=t.cx,l=t.cy,h=!!t.clockwise,c=ss(f-u),d=c>Ca&&c%Ca;if(d>We&&(c=d),!(n>We))e.moveTo(v,l);else if(c>Ca-We)e.moveTo(v+n*qt(u),l+n*Mt(u)),e.arc(v,l,n,u,f,!h),a>We&&(e.moveTo(v+a*qt(f),l+a*Mt(f)),e.arc(v,l,a,f,u,h));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,T=void 0,C=void 0,I=void 0,x=void 0,M=void 0,D=void 0,E=void 0,L=void 0,A=void 0,U=void 0,z=n*qt(u),R=n*Mt(u),G=a*qt(f),Q=a*Mt(f),H=c>We;if(H){var se=t.cornerRadius;se&&(r=Bh(se),g=r[0],p=r[1],y=r[2],m=r[3]);var ae=ss(n-a)/2;if(_=je(ae,y),S=je(ae,m),T=je(ae,g),C=je(ae,p),M=I=Cr(_,S),D=x=Cr(T,C),(I>We||x>We)&&(E=n*qt(f),L=n*Mt(f),A=a*qt(u),U=a*Mt(u),cWe){var ze=je(y,M),Ge=je(m,M),B=qr(A,U,z,R,n,ze,h),Y=qr(E,L,G,Q,n,Ge,h);e.moveTo(v+B.cx+B.x0,l+B.cy+B.y0),M0&&e.arc(v+B.cx,l+B.cy,ze,ye(B.y0,B.x0),ye(B.y1,B.x1),!h),e.arc(v,l,n,ye(B.cy+B.y1,B.cx+B.x1),ye(Y.cy+Y.y1,Y.cx+Y.x1),!h),Ge>0&&e.arc(v+Y.cx,l+Y.cy,Ge,ye(Y.y1,Y.x1),ye(Y.y0,Y.x0),!h))}else e.moveTo(v+z,l+R),e.arc(v,l,n,u,f,!h);if(!(a>We)||!H)e.lineTo(v+G,l+Q);else if(D>We){var ze=je(g,D),Ge=je(p,D),B=qr(G,Q,E,L,a,-Ge,h),Y=qr(z,R,A,U,a,-ze,h);e.lineTo(v+B.cx+B.x0,l+B.cy+B.y0),D0&&e.arc(v+B.cx,l+B.cy,Ge,ye(B.y0,B.x0),ye(B.y1,B.x1),!h),e.arc(v,l,a,ye(B.cy+B.y1,B.cx+B.x1),ye(Y.cy+Y.y1,Y.cx+Y.x1),h),ze>0&&e.arc(v+Y.cx,l+Y.cy,ze,ye(Y.y1,Y.x1),ye(Y.y0,Y.x0),!h))}else e.lineTo(v+G,l+Q),e.arc(v,l,a,f,u,h)}e.closePath()}}}var Vh=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),Ui=(function(e){K(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Vh},t.prototype.buildPath=function(r,n){Fh(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(oe);Ui.prototype.type="sector";var Uh=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),zi=(function(e){K(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Uh},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t})(oe);zi.prototype.type="ring";function zh(e,t,r,n){var a=[],i=[],o=[],s=[],u,f,v,l;if(n){v=[1/0,1/0],l=[-1/0,-1/0];for(var h=0,c=e.length;h=2){if(n){var i=zh(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var u=i[s*2],f=i[s*2+1],v=a[(s+1)%o];e.bezierCurveTo(u[0],u[1],f[0],f[1],v[0],v[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,l=a.length;sDt[1]){if(i=!1,ce.negativeSize||n)return i;var u=Zr(Dt[0]-wt[1]),f=Zr(wt[0]-Dt[1]);Ma(u,f)>Qr.len()&&(u=f||!ce.bidirectional)&&(Ye.scale($r,s,-f*a),ce.useDir&&ce.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,u=o,f=1;f0){var l=v.duration,h=v.delay,c=v.easing,d={duration:l,delay:h||0,easing:c,done:i,force:!!i||!!o,setToFinal:!f,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function Ki(e,t,r,n,a,i){Wi("update",e,t,r,n,a,i)}function wl(e,t,r,n,a,i){Wi("enter",e,t,r,n,a,i)}function Er(e){if(!e.__zr)return!0;for(var t=0;t_e(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function fs(e){return!e.isGroup}function pd(e){return e.shape!=null}function gd(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(u){fs(u)&&u.anid&&(s[u.anid]=u)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return pd(o)&&(s.shape=q(o.shape)),s}var i=n(e);t.traverse(function(o){if(fs(o)&&o.anid){var s=i[o.anid];if(s){var u=a(o);o.attr(a(s)),Ki(o,u,r,xe(o).dataIndex)}}})}function yd(e,t){return V(e,function(r){var n=r[0];n=ee(n,t.x),n=qe(n,t.x+t.width);var a=r[1];return a=ee(a,t.y),a=qe(a,t.y+t.height),[n,a]})}function md(e,t){var r=ee(e.x,t.x),n=qe(e.x+e.width,t.x+t.width),a=ee(e.y,t.y),i=qe(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function _d(e,t,r){var n=P({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Xe(a,r),new Kn(n)):Xi(e.replace("path://",""),n,r,"center")}function Sd(e,t,r,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var p=wa(c,d,v,l)/h;return!(p<0||p>1)}function wa(e,t,r,n){return e*n-r*t}function bd(e){return e<=1e-6&&e>=-1e-6}function Td(e,t,r,n,a){return t==null||(le(t)?X[0]=X[1]=X[2]=X[3]=t:(X[0]=t[0],X[1]=t[1],X[2]=t[2],X[3]=t[3]),n&&(X[0]=ee(0,X[0]),X[1]=ee(0,X[1]),X[2]=ee(0,X[2]),X[3]=ee(0,X[3])),r&&(X[0]=-X[0],X[1]=-X[1],X[2]=-X[2],X[3]=-X[3]),cs(e,X,"x","width",3,1,a&&a[0]||0),cs(e,X,"y","height",0,2,a&&a[1]||0)),e}var X=[0,0,0,0];function cs(e,t,r,n,a,i,o){var s=t[i]+t[a],u=e[n];e[n]+=s,o=ee(0,qe(o,u)),e[n]=0?-t[a]:t[i]>=0?u+t[i]:_e(s)>1e-8?(u-o)*t[a]/s:0):e[r]-=t[a]}function Cd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=N(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var u=e.formatterParamsExtra;u&&b(at(u),function(v){Re(s,v)||(s[v]=u[v],s.$vars.push(v))});var f=xe(e.el);f.componentMainType=i,f.componentIndex=o,f.tooltipConfig={name:n,option:Xe({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function oi(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Ll(e,t){if(e)if(k(e))for(var r=0;rt&&(t=o),ot&&(r=t=0),{min:r,max:t}}function Bl(e,t,r){Fl(e,t,r,-1/0)}function Fl(e,t,r,n){if(e.ignoreModelZ)return n;var a=e.getTextContent(),i=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),u=0;u=0&&s.push(u)}),s}}function u0(e,t){return pe(pe({},e,!0),t,!0)}const Hd={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:". "}}}},Yd={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 Rn="ZH",Zi="EN",rr=Zi,mn={},$i={},Gl=ht.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||rr).toUpperCase();return e.indexOf(Rn)>-1?Rn:rr})():rr;function Hl(e,t){e=e.toUpperCase(),$i[e]=new Se(t),mn[e]=t}function Wd(e){if(N(e)){var t=mn[e.toUpperCase()]||{};return e===Rn||e===Zi?q(t):pe(q(t),q(mn[rr]),!1)}else return pe(q(e),q(mn[rr]),!1)}function Kd(e){return $i[e]}function Xd(){return $i[rr]}Hl(Zi,Hd);Hl(Rn,Yd);var qd=null;function ca(){return qd}function Yl(e,t){t.breakOption;var r=t.breakParsed;return r}function Qi(e){var t=e.brk;return t?t.breaks:[]}function l0(e){var t=e.brk;return t?t.hasBreaks():!1}var Ji=1e3,ji=Ji*60,Ar=ji*60,Be=Ar*24,_s=Be*365,Zd={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})/},_n={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},$d="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",jr="{yyyy}-{MM}-{dd}",Ss={year:"{yyyy}",month:"{yyyy}-{MM}",day:jr,hour:jr+" "+_n.hour,minute:jr+" "+_n.minute,second:jr+" "+_n.second,millisecond:$d},Lt=["year","month","day","hour","minute","second","millisecond"],Qd=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Jd(e){return!N(e)&&!W(e)?jd(e):e}function jd(e){e=e||{};var t={},r=!0;return b(Lt,function(n){r&&(r=e[n]==null)}),b(Lt,function(n,a){var i=e[n];t[n]={};for(var o=null,s=a;s>=0;s--){var u=Lt[s],f=F(i)&&!k(i)?i[u]:i,v=void 0;k(f)?(v=f.slice(),o=v[0]||""):N(f)?(o=f,v=[o]):(o==null?o=_n[n]:Zd[u].test(o)||(o=t[u][u][0]+" "+o),v=[o],r&&(v[1]="{primary|"+o+"}")),t[n][u]=v}}),t}function Te(e,t){return e+="","0000".substr(0,t-e.length)+e}function Rr(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function ep(e){return e===Rr(e)}function tp(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function eo(e,t,r,n){var a=Ht(e),i=a[Wl(r)](),o=a[to(r)]()+1,s=Math.floor((o-1)/3)+1,u=a[ro(r)](),f=a["get"+(r?"UTC":"")+"Day"](),v=a[no(r)](),l=(v-1)%12+1,h=a[ao(r)](),c=a[io(r)](),d=a[oo(r)](),g=v>=12?"pm":"am",p=g.toUpperCase(),y=n instanceof Se?n:Kd(n||Gl)||Xd(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),T=m.get("dayOfWeek"),C=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Te(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Te(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Te(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,T[f]).replace(/{ee}/g,C[f]).replace(/{e}/g,f+"").replace(/{HH}/g,Te(v,2)).replace(/{H}/g,v+"").replace(/{hh}/g,Te(l+"",2)).replace(/{h}/g,l+"").replace(/{mm}/g,Te(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Te(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Te(d,3)).replace(/{S}/g,d+"")}function rp(e,t,r,n,a){var i=null;if(N(r))i=r;else if(W(r)){var o={time:e.time,level:e.time?e.time.level:0},s=ca();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),i=r(e.value,t,o)}else{var u=e.time;if(u){var f=r[u.lowerTimeUnit][u.upperTimeUnit];i=f[Math.min(u.level,f.length-1)]||""}else{var v=Sn(e.value,a);i=r[v][v][0]}}return eo(new Date(e.value),i,a,n)}function Sn(e,t){var r=Ht(e),n=r[to(t)]()+1,a=r[ro(t)](),i=r[no(t)](),o=r[ao(t)](),s=r[io(t)](),u=r[oo(t)](),f=u===0,v=f&&s===0,l=v&&o===0,h=l&&i===0,c=h&&a===1,d=c&&n===1;return d?"year":c?"month":h?"day":l?"hour":v?"minute":f?"second":"millisecond"}function ui(e,t,r){switch(t){case"year":e[Kl(r)](0);case"month":e[Xl(r)](1);case"day":e[ql(r)](0);case"hour":e[Zl(r)](0);case"minute":e[$l(r)](0);case"second":e[Ql(r)](0)}return e}function Wl(e){return e?"getUTCFullYear":"getFullYear"}function to(e){return e?"getUTCMonth":"getMonth"}function ro(e){return e?"getUTCDate":"getDate"}function no(e){return e?"getUTCHours":"getHours"}function ao(e){return e?"getUTCMinutes":"getMinutes"}function io(e){return e?"getUTCSeconds":"getSeconds"}function oo(e){return e?"getUTCMilliseconds":"getMilliseconds"}function np(e){return e?"setUTCFullYear":"setFullYear"}function Kl(e){return e?"setUTCMonth":"setMonth"}function Xl(e){return e?"setUTCDate":"setDate"}function ql(e){return e?"setUTCHours":"setHours"}function Zl(e){return e?"setUTCMinutes":"setMinutes"}function $l(e){return e?"setUTCSeconds":"setSeconds"}function Ql(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Jl(e){if(!gv(e))return N(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function f0(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ap=Gu;function li(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(v){return v&&qn(v)?v:"-"}function i(v){return mt(v)}var o=t==="time",s=e instanceof Date;if(o||s){var u=o?Ht(e):e;if(isNaN(+u)){if(s)return"-"}else return eo(u,n,r)}if(t==="ordinal")return Xa(e)?a(e):le(e)&&i(e)?e+"":"-";var f=yt(e);return i(f)?Jl(f):Xa(e)?a(e):typeof e=="boolean"?e+"":"-"}var bs=["a","b","c","d","e","f","g"],xa=function(e,t){return"{"+e+(t??"")+"}"};function ip(e,t,r){k(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function v0(e,t,r){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd yyyy`);var n=Ht(t),a=r?"getUTC":"get",i=n[a+"FullYear"](),o=n[a+"Month"]()+1,s=n[a+"Date"](),u=n[a+"Hours"](),f=n[a+"Minutes"](),v=n[a+"Seconds"](),l=n[a+"Milliseconds"]();return e=e.replace("MM",Te(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Te(i%100+"",2)).replace("dd",Te(s,2)).replace("d",s).replace("hh",Te(u,2)).replace("h",u).replace("mm",Te(f,2)).replace("m",f).replace("ss",Te(v,2)).replace("s",v).replace("SSS",Te(l,3)),e}function h0(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function sp(e,t){return t=t||"transparent",N(e)?e:F(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function d0(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var bn={},Ea={},so=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(bn),this._normalMasterList=n(Ea);function n(a,i){var o=[];return b(a,function(s,u){var f=s.create(t,r);o=o.concat(f||[])}),o}},e.prototype.update=function(t,r){b(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){bn[t]=r;return}Ea[t]=r},e.get=function(t){return Ea[t]||bn[t]},e})();function up(e){return!!bn[e]}var lp=1,jl=2;function p0(e){ef.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var ef=O();function tf(e){var t=e.getShallow("coord",!0),r=lp;if(t==null){var n=ef.get(e.type);n&&n.getCoord2&&(r=jl,t=n.getCoord2(e))}return{coord:t,from:r}}var nr=0,Tn=1,fp=2;function cp(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),a=nr;if(r){var i=e.mainType==="series";n==null&&(n=i?"data":"box"),n==="data"?(a=Tn,i||(a=nr)):n==="box"&&(a=fp,!i&&!up(r)&&(a=nr))}return{coordSysType:r,kind:a}}function g0(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,a=e.isDefaultDataCoordSys;e.allowNotFound;var i=cp(t),o=i.kind,s=i.coordSysType;if(a&&o!==Tn&&(o=Tn,s=r),o===nr||s!==r)return nr;var u=n(r,t);return u?(o===Tn?t.coordinateSystem=u:t.boxCoordinateSystem=u,o):nr}var y0=function(e,t){var r=t.getReferringComponents(e,jn).models[0];return r&&r.coordinateSystem},Cn=b,vp=["left","right","top","bottom","width","height"],Pt=[["width","left","right"],["height","top","bottom"]];function uo(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(u,f){var v=u.getBoundingRect(),l=t.childAt(f+1),h=l&&l.getBoundingRect(),c,d;if(e==="horizontal"){var g=v.width+(h?-h.x+v.x:0);c=i+g,c>n||u.newline?(i=0,c=g,o+=s+r,s=v.height):s=Math.max(s,v.height)}else{var p=v.height+(h?-h.y+v.y:0);d=o+p,d>a||u.newline?(i+=s+r,o=0,d=p,s=v.width):s=Math.max(s,v.width)}u.newline||(u.x=i,u.y=o,u.markRedraw(),e==="horizontal"?i=c+r:o=d+r)})}var m0=uo;Ei(uo,"vertical");Ei(uo,"horizontal");function hp(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function dp(e,t){var r=pp(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),a,i;if(r.type===wr.point)i=r.refPoint,a=kn(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=k(o)?o:[o,o];a=kn(n,r.refContainer),i=r.boxCoordFrom===jl?r.refPoint:[De(s[0],a.width)+a.x,De(s[1],a.height)+a.y]}return{viewRect:a,center:i}}function _0(e,t){var r=dp(e,t),n=r.viewRect,a=r.center,i=e.get("radius");k(i)||(i=[0,i]);var o=De(n.width,t.getWidth()),s=De(n.height,t.getHeight()),u=Math.min(o,s),f=De(i[0],u/2),v=De(i[1],u/2);return{cx:a[0],cy:a[1],r0:f,r:v,viewRect:n}}function kn(e,t,r){r=ap(r||0);var n=t.width,a=t.height,i=De(e.left,n),o=De(e.top,a),s=De(e.right,n),u=De(e.bottom,a),f=De(e.width,n),v=De(e.height,a),l=r[2]+r[0],h=r[1]+r[3],c=e.aspect;switch(isNaN(f)&&(f=n-s-h-i),isNaN(v)&&(v=a-u-l-o),c!=null&&(isNaN(f)&&isNaN(v)&&(c>n/a?f=n*.8:v=a*.8),isNaN(f)&&(f=c*v),isNaN(v)&&(v=f/c)),isNaN(i)&&(i=n-s-f-h),isNaN(o)&&(o=a-u-v-l),e.left||e.right){case"center":i=n/2-f/2-r[3];break;case"right":i=n-f-h;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-v/2-r[0];break;case"bottom":o=a-v-l;break}i=i||0,o=o||0,isNaN(f)&&(f=n-h-i-(s||0)),isNaN(v)&&(v=a-l-o-(u||0));var d=new st((t.x||0)+i+r[3],(t.y||0)+o+r[0],f,v);return d.margin=r,d}function S0(e,t,r){var n=e.getShallow("preserveAspect",!0);if(!n)return t;var a=t.width/t.height;if(Math.abs(Math.atan(r)-Math.atan(a))<1e-9)return t;var i=e.getShallow("preserveAspectAlign",!0),o=e.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},u=n==="cover";return a>r&&!u||a=g)return l;for(var p=0;p=0;u--)s=pe(s,a[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return ea(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){return hp(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(Se);al($,Se);ta($);zd($);Gd($,mp);function mp(e){var t=[];return b($.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=V(t,function(r){return tt(r).main}),e!=="dataset"&&Ee(t,"dataset")<=0&&t.unshift("dataset"),t}var Me={color:{},darkColor:{},size:{}},J=Me.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)"};P(J,{primary:J.neutral80,secondary:J.neutral70,tertiary:J.neutral60,quaternary:J.neutral50,disabled:J.neutral20,border:J.neutral30,borderTint:J.neutral20,borderShade:J.neutral40,background:J.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:J.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:J.neutral70,axisLineTint:J.neutral40,axisTick:J.neutral70,axisTickMinor:J.neutral60,axisLabel:J.neutral70,axisSplitLine:J.neutral15,axisMinorSplitLine:J.neutral05});for(var It in J)if(J.hasOwnProperty(It)){var Ts=J[It];It==="theme"?Me.darkColor.theme=J.theme.slice():It==="highlight"?Me.darkColor.highlight="rgba(255,231,130,0.4)":It.indexOf("accent")===0?Me.darkColor[It]=Za(Ts,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Me.darkColor[It]=Za(Ts,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}Me.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var nf="";typeof navigator<"u"&&(nf=navigator.platform||"");var Zt="rgba(0, 0, 0, 0.2)",af=Me.color.theme[0],_p=Za(af,null,null,.9);const of={darkMode:"auto",colorBy:"series",color:Me.color.theme,gradientColor:[_p,af],aria:{decal:{decals:[{color:Zt,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zt,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zt,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zt,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zt,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zt,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nf.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 de={Must:1,Might:2,Not:3},sf=ne();function Sp(e){sf(e).datasetMap=O()}function C0(e,t,r){var n={},a=lo(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,u=sf(s).datasetMap,f=a.uid+"_"+r.seriesLayoutBy,v,l;e=e.slice(),b(e,function(g,p){var y=F(g)?g:e[p]={name:g};y.type==="ordinal"&&v==null&&(v=p,l=d(y)),n[y.name]=[]});var h=u.get(f)||u.set(f,{categoryWayDim:l,valueWayDim:0});b(e,function(g,p){var y=g.name,m=d(g);if(v==null){var _=h.valueWayDim;c(n[y],_,m),c(o,_,m),h.valueWayDim+=m}else if(v===p)c(n[y],0,m),c(i,0,m);else{var _=h.categoryWayDim;c(n[y],_,m),c(o,_,m),h.categoryWayDim+=m}});function c(g,p,y){for(var m=0;mt)return e[n];return e[r-1]}function ff(e,t,r,n,a,i,o){i=i||e;var s=t(i),u=s.paletteIdx||0,f=s.paletteNameMap=s.paletteNameMap||{};if(f.hasOwnProperty(a))return f[a];var v=o==null||!n?r:Mp(n,o);if(v=v||r,!(!v||!v.length)){var l=v[u];return a&&(f[a]=l),s.paletteIdx=(u+1)%v.length,l}}function wp(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var en,cr,Ms,ws="\0_ec_inner",Dp=1,co=(function(e){K(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Se(i),this._locale=new Se(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){var i=xs(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,xs(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");!this.option||r==="recreate"?Ms(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var u=i.getMediaOption(this);u.length&&b(u,function(f){a=!0,this._mergeOption(f,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],u=O(),f=n&&n.replaceMergeMainTypeMap;Sp(this),b(r,function(l,h){l!=null&&($.hasClass(h)?h&&(s.push(h),u.set(h,!0)):a[h]=a[h]==null?q(l):pe(a[h],l,!0))}),f&&f.each(function(l,h){$.hasClass(h)&&!u.get(h)&&(s.push(h),u.set(h,!0))}),$.topologicalTravel(s,$.getAllClassMainTypes(),v,this);function v(l){var h=Tp(this,l,ge(r[l])),c=i.get(l),d=c?f&&f.get(l)?"replaceMerge":"normalMerge":"replaceAll",g=bv(c,h,d);xv(g,l,$),a[l]=null,i.set(l,null),o.set(l,0);var p=[],y=[],m=0,_;b(g,function(S,T){var C=S.existing,I=S.newOption;if(!I)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var x=l==="series",M=$.getClass(l,S.keyInfo.subType,!x);if(!M)return;if(l==="tooltip"){if(_)return;_=!0}if(C&&C.constructor===M)C.name=S.keyInfo.name,C.mergeOption(I,this),C.optionUpdated(I,!1);else{var D=P({componentIndex:T},S.keyInfo);C=new M(I,this,this,D),P(C,D),S.brandNew&&(C.__requireNewView=!0),C.init(I,this,this),C.optionUpdated(null,!0)}}C?(p.push(C.option),y.push(C),m++):(p.push(void 0),y.push(void 0))},this),a[l]=p,i.set(l,y),o.set(l,m),l==="series"&&en(this)}this._seriesIndices||en(this)},t.prototype.getOption=function(){var r=q(this.option);return b(r,function(n,a){if($.hasClass(a)){for(var i=ge(n),o=i.length,s=!1,u=o-1;u>=0;u--)i[u]&&!Nr(i[u])?s=!0:(i[u]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[ws],r},t.prototype.setTheme=function(r){this._theme=new Se(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function Op(e,t){return e.join(",")===t.join(",")}var He=b,Fr=F,Es=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Aa(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Es.length;r0?r[o-1].seriesModel:null)}),Yp(r)}})}function Yp(e){b(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(f,v,l){var h=o.get(t.stackedDimension,l);if(isNaN(h))return a;var c,d;s?d=o.getRawIndex(l):c=o.get(t.stackedByDimension,l);for(var g=NaN,p=r-1;p>=0;p--){var y=e[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&h>=0&&m>0||u==="samesign"&&h<=0&&m<0){h=vv(h,m),g=m;break}}}return n[0]=h,n[1]=g,n})})}var va=(function(){function e(t){this.data=t.data||(t.sourceFormat===$e?{}:[]),this.sourceFormat=t.sourceFormat||sl,this.seriesLayoutBy=t.seriesLayoutBy||rt,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;ng&&(g=_)}c[0]=d,c[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};Ns=(t={},t[be+"_"+rt]={pure:!0,appendData:i},t[be+"_"+Yt]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ve]={pure:!0,appendData:i},t[$e]={pure:!0,appendData:function(o){var s=this._data;b(o,function(u,f){for(var v=s[f]||(s[f]=[]),l=0;l<(u||[]).length;l++)v.push(u[l])})}},t[Ze]={appendData:i},t[gt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Ln(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function I0(e){var t,r;return F(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function kr(e){return new jp(e)}var jp=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=v(this._modBy),s=this._modDataCount||0,u=v(t&&t.modBy),f=t&&t.modDataCount||0;(o!==u||s!==f)&&(i="reset");function v(m){return!(m>=1)&&(m=1),m}var l;(this._dirty||i==="reset")&&(this._dirty=!1,l=this._doReset(n)),this._modBy=u,this._modDataCount=f;var h=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(l||c1&&n>0?s:o}};return i;function o(){return t=e?null:ut},gte:function(e,t){return e>=t}},tg=(function(){function e(t,r){if(!le(r)){var n="";Ie(n)}this._opFn=Sf[t],this._rvalFloat=yt(r)}return e.prototype.evaluate=function(t){return le(t)?this._opFn(t,this._rvalFloat):this._opFn(yt(t),this._rvalFloat)},e})(),rg=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=le(t)?t:yt(t),a=le(r)?r:yt(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=N(t),u=N(r);s&&(n=u?t:0),u&&(a=s?r:0)}return na?-this._resultLT:0},e})(),ng=(function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=yt(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=yt(t)===this._rvalFloat)}return this._isEQ?r:!r},e})();function E0(e,t){return e==="eq"||e==="ne"?new ng(e==="eq",t):Re(Sf,e)?new tg(e,t):null}function ag(e){var t="",r=-1/0,n=-1/0,a=1/0,i=1/0;return e&&(e.g!=null&&(t+="G"+e.g,r=e.g),e.ge!=null&&(t+="GE"+e.ge,n=e.ge),e.l!=null&&(t+="L"+e.l,a=e.l),e.le!=null&&(t+="LE"+e.le,i=e.le)),{key:t,g:r,ge:n,l:a,le:i}}function ig(e,t){return t>e.g&&t>=e.ge&&t65535?pg:gg}function yg(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Gs(e,t,r,n,a){var i=Cf[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var u=new i(n),f=0;fp[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,f=V(o,function(m){return m.property}),v=0;vy[1]&&(y[1]=p)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)i=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=l&&m<=h||isNaN(m))&&(u[f++]=g),g++}d=!0}else if(i===2){for(var p=c[a[0]],_=c[a[1]],S=t[a[1]][0],T=t[a[1]][1],y=0;y=l&&m<=h||isNaN(m))&&(C>=S&&C<=T||isNaN(C))&&(u[f++]=g),g++}d=!0}}if(!d)if(i===1)for(var y=0;y=l&&m<=h||isNaN(m))&&(u[f++]=I)}else for(var y=0;yt[D][1])&&(x=!1)}x&&(u[f++]=r.getRawIndex(y))}return fy[1]&&(y[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,u=Math.floor(1/r),f=this.getRawIndex(0),v,l,h,c=new($t(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));c[s++]=f;for(var d=1;dv&&(v=l,h=S)}E>0&&Es&&(g=s-v);for(var p=0;pd&&(d=m,c=v+p)}var _=this.getRawIndex(l),S=this.getRawIndex(c);lv-d&&(u=v-d,s.length=u);for(var g=0;gl[1]&&(l[1]=y),h[c++]=m}return i._count=c,i._indices=h,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();ic&&(c=p))}return u[v]=[h,c]},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,a,i){return Mn(r[i],this._dimensions[i])}Pa={arrayRows:t,objectRows:function(r,n,a,i){return Mn(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Mn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}})(),e})(),mg=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(rn(t)){var o=t,s=void 0,u=void 0,f=void 0;if(n){var v=r[0];v.prepareSource(),f=v.getSource(),s=f.data,u=f.sourceFormat,i=[v._getVersionSign()]}else s=o.get("data",!0),u=ke(s)?gt:Ze,i=[];var l=this._getSourceMetaRawOption()||{},h=f&&f.metaRawOption||{},c=j(l.seriesLayoutBy,h.seriesLayoutBy)||null,d=j(l.sourceHeader,h.sourceHeader),g=j(l.dimensions,h.dimensions),p=c!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||g;a=p?[ci(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(r);a=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);a=[ci(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(a!=null){var i="";t.length!==1&&Hs(i)}var o,s=[],u=[];return b(t,function(f){f.prepareSource();var v=f.getSource(a||0),l="";a!=null&&!v&&Hs(l),s.push(v),u.push(f._getVersionSign())}),n?o=hg(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[Wp(s[0])]),{sourceList:o,upstreamSignList:u}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return b(e.blocks,function(a){var i=If(a);i>=t&&(t=i+ +(n&&(!i||di(a)&&!a.noHeader)))}),t}return 0}function Tg(e,t,r,n){var a=t.noHeader,i=Mg(If(t)),o=[],s=t.blocks||[];nt(!s||k(s)),s=s||[];var u=e.orderMode;if(t.sortBlocks&&u){s=s.slice();var f={valueAsc:"asc",valueDesc:"desc"};if(Re(f,u)){var v=new rg(f[u],null);s.sort(function(g,p){return v.evaluate(g.sortParam,p.sortParam)})}else u==="seriesDesc"&&s.reverse()}b(s,function(g,p){var y=t.valueFormatter,m=Df(g)(y?P(P({},e),{valueFormatter:y}):e,g,p>0?i.html:0,n);m!=null&&o.push(m)});var l=e.renderMode==="richText"?o.join(i.richText):pi(n,o.join(""),a?r:i.html);if(a)return l;var h=li(t.header,"ordinal",e.useUTC),c=wf(n,e.renderMode).nameStyle,d=Mf(n);return e.renderMode==="richText"?xf(e,h,c)+i.richText+l:pi(n,'
'+Ae(h)+"
"+l,r)}function Cg(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,u=t.name,f=e.useUTC,v=t.valueFormatter||e.valueFormatter||function(S){return S=k(S)?S:[S],V(S,function(T,C){return li(T,k(c)?c[C]:c,f)})};if(!(i&&o)){var l=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Me.color.secondary,a),h=i?"":li(u,"ordinal",f),c=t.valueType,d=o?[]:v(t.value,t.rawDataIndex),g=!s||!i,p=!s&&i,y=wf(n,a),m=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":l)+(i?"":xf(e,h,m))+(o?"":Ig(e,d,g,p,_)):pi(n,(s?"":l)+(i?"":wg(h,!s,m))+(o?"":Dg(d,g,p,_)),r)}}function R0(e,t,r,n,a,i){if(e){var o=Df(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function Mg(e){return{html:Sg[e],richText:bg[e]}}function pi(e,t,r){var n='
',a="margin: "+r+"px 0 0",i=Mf(e);return'
'+t+n+"
"}function wg(e,t,r){var n=t?"margin-left:2px":"";return''+Ae(e)+""}function Dg(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=k(e)?e:[e],''+V(e,function(o){return Ae(o)}).join("  ")+""}function xf(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Ig(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(k(t)?t.join(" "):t,i)}function xg(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return sp(n)}function k0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var P0=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ri()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=op({color:r,type:t,renderMode:n,markerId:a});return N(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};k(r)?b(r,function(i){return P(n,i)}):P(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e})();function Eg(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),u=k(s),f=xg(t,r),v,l,h,c;if(o>1||u&&!o){var d=Ag(s,t,r,i,f);v=d.inlineValues,l=d.inlineValueTypes,h=d.blocks,c=d.inlineValues[0]}else if(o){var g=a.getDimensionInfo(i[0]);c=v=Ln(a,r,i[0]),l=g.type}else c=v=u?s[0]:s;var p=Qu(t),y=p&&t.name||"",m=a.getName(r),_=n?y:m;return hi("section",{header:y,noHeader:n||!p,sortParam:c,blocks:[hi("nameValue",{markerType:"item",markerColor:f,name:_,noName:!qn(_),value:v,valueType:l,rawDataIndex:a.getRawIndex(r)})].concat(h||[])})}function Ag(e,t,r,n,a){var i=t.getData(),o=Dn(e,function(l,h,c){var d=i.getDimensionInfo(c);return l=l||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],f=[];n.length?b(n,function(l){v(Ln(i,r,l),l)}):b(e,v);function v(l,h){var c=i.getDimensionInfo(h);!c||c.otherDims.tooltip===!1||(o?f.push(hi("nameValue",{markerType:"subItem",markerColor:a,name:c.displayName,value:l,valueType:c.type})):(s.push(l),u.push(c.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:f}}var ct=ne();function nn(e,t){return e.getName(t)||e.getId(t)}var Rg="__universalTransitionEnabled",Vt=(function(e){K(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=kr({count:Pg,reset:Og}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=ct(this).sourceManager=new mg(this);i.prepareSource();var o=this.getInitialData(r,a);Ws(o,this),this.dataTask.context.data=o,ct(this).dataBeforeProcessed=o,Ys(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=Pn(this),i=a?rf(r):{},o=this.subType;$.hasClass(o)&&(o+="Series"),pe(r,n.getTheme().get(this.subType)),pe(r,this.getDefaultOption()),Ko(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&On(r,i,a)},t.prototype.mergeOption=function(r,n){r=pe(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Pn(this);a&&On(this.option,r,a);var i=ct(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Ws(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ct(this).dataBeforeProcessed=o,Ys(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!ke(r))for(var n=["show"],a=0;a=0&&h<0)&&(l=T,h=S,c=0),S===h&&(v[c++]=p))}return v.length=c,v},t.prototype.formatTooltip=function(r,n,a){return Eg({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ht.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=fo.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[nn(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Rg])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){F(o.selectedMap)||(o.selectedMap={});for(var f=o.selectedMap,v=0;v0&&this._innerSelect(r,n)}},t.registerClass=function(r){return $.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})($);Ut(Vt,Jp);Ut(Vt,fo);al(Vt,$);function Ys(e){var t=e.name;Qu(e)||(e.name=kg(e)||t)}function kg(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return b(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function Pg(e){return e.model.getRawData().count()}function Og(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Lg}function Lg(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ws(e,t){b(Zc(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ei(Ng,t))})}function Ng(e,t){var r=gi(e);return r&&r.setOutputEnd((t||this).count()),t}function gi(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}var Vr=(function(){function e(){this.group=new Xn,this.uid=fa("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();Pi(Vr);ta(Vr);function Bg(){var e=ne();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Ef=ne(),Fg=Bg(),Nt=(function(){function e(){this.group=new Xn,this.uid=fa("viewChart"),this.renderTask=kr({plan:Vg,reset:Ug}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&Xs(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);i&&Xs(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){Ll(this.group,t)},e.markUpdateMethod=function(t,r){Ef(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Ks(e,t,r){e&&ri(e)&&(t==="emphasis"?Ja:ja)(e,r)}function Xs(e,t,r){var n=Jn(e,t),a=t&&t.highlightKey!=null?Th(t.highlightKey):null;n!=null?b(ge(n),function(i){Ks(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){Ks(i,r,a)})}Pi(Nt);ta(Nt);function Vg(e){return Fg(e.model)}function Ug(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Ef(a).updateMethod,u=i?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,r,n,a),zg[u]}var zg={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Nn="\0__throttleOriginMethod",qs="\0__throttleRate",Zs="\0__throttleType";function Af(e,t,r){var n,a=0,i=0,o=null,s,u,f,v;t=t||0;function l(){i=new Date().getTime(),o=null,e.apply(u,f||[])}var h=function(){for(var c=[],d=0;d=0?l():o=setTimeout(l,-s),a=n};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(c){v=c},h}function O0(e,t,r,n){var a=e[t];if(a){var i=a[Nn]||a,o=a[Zs],s=a[qs];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=Af(i,r,n==="debounce"),a[Nn]=i,a[Zs]=n,a[qs]=r}return a}}function L0(e,t){var r=e[t];r&&r[Nn]&&(r.clear&&r.clear(),e[t]=r[Nn])}var $s=ne(),Qs={itemStyle:Br(zl,!0),lineStyle:Br(Ul,!0)},Gg={lineStyle:"stroke",itemStyle:"fill"};function Rf(e,t){var r=e.visualStyleMapper||Qs[t];return r||(console.warn("Unknown style type '"+t+"'."),Qs.itemStyle)}function kf(e,t){var r=e.visualDrawType||Gg[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Hg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=Rf(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var u=kf(e,n),f=o[u],v=W(f)?f:null,l=o.fill==="auto"||o.stroke==="auto";if(!o[u]||v||l){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[u]||(o[u]=h,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||W(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||W(o.stroke)?h:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",u),!t.isSeriesFiltered(e)&&v)return r.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var g=e.getDataParams(d),p=P({},o);p[u]=v(g),c.setItemVisual(d,"style",p)}}}},hr=new Se,Yg={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=Rf(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){hr.option=u[n];var f=a(hr),v=o.ensureUniqueItemVisual(s,"style");P(v,f),hr.option.decal&&(o.setItemVisual(s,"decal",hr.option.decal),hr.option.decal.dirty=!0),i in f&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Wg={performRawSeries:!0,overallReset:function(e){var t=O();e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.type+"-"+r.getColorBy();$s(r).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(r){if(!r.isColorBySeries()){var n=r.getRawData(),a={},i=r.getData(),o=$s(r).scope,s=r.visualStyleAccessPath||"itemStyle",u=kf(r,s);i.each(function(f){var v=i.getRawIndex(f);a[v]=f}),n.each(function(f){var v=a[f],l=i.getItemVisual(v,"colorFromPalette");if(l){var h=i.ensureUniqueItemVisual(v,"style"),c=n.getName(f)||f+"",d=n.count();h[u]=r.getColorFromPalette(c,o,d)}})}})}},an=Math.PI;function Kg(e,t){t=t||{},Xe(t,{text:"loading",textColor:Me.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Me.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Xn,n=new pt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new Or({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new pt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new ua({shape:{startAngle:-an/2,endAngle:-an/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:an*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:an*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,f=(e.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),v=e.getHeight()/2;t.showSpinner&&o.setShape({cx:f,cy:v}),i.setShape({x:f-u,y:v-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Pf=(function(){function e(t,r,n,a){this._stageTaskMap=O(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.__preparePipelineContext?t.__preparePipelineContext(r,n):Gv(t,r,n);t.pipelineContext=n.context=a},e.prototype.restorePipelines=function(t,r){var n=this,a=n._pipelineMap=O();r.eachSeries(function(i){var o=t.painter.type==="canvas"&&i.getProgressive(),s=i.uid;a.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;b(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";nt(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;b(t,function(u,f){if(!(a.visualType&&a.visualType!==u.visualType)){var v=o._stageTaskMap.get(u.uid),l=v.seriesTaskMap,h=v.overallTask;if(h){var c,d=h.agentStubMap;d.each(function(p){s(a,p)&&(p.dirty(),c=!0)}),c&&h.dirty(),o.updatePayload(h,n);var g=o.getPerformArgs(h,a.block);d.each(function(p){p.perform(g)}),h.perform(g)&&(i=!0)}else l&&l.each(function(p,y){s(a,p)&&p.dirty();var m=o.getPerformArgs(p,a.block);m.skip=!u.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(i=!0)})}});function s(u,f){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(f.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=O(),u=t.seriesType,f=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(v):u?n.eachRawSeriesByType(u,v):f&&f(n,a).each(v);function v(l){var h=l.uid,c=s.set(h,o&&o.get(h)||kr({plan:Qg,reset:Jg,count:ey}));c.context={model:l,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(l,c)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||kr({reset:Xg});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,u=o.agentStubMap=O(),f=t.seriesType,v=t.getTargetSeries,l=t.dirtyOnOverallProgress,h=!1,c="";nt(!t.createOnAllSeries,c),f?n.eachRawSeriesByType(f,d):v?v(n,a).each(d):b(n.getSeries(),d);function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(h=!0,kr({reset:qg,onDirty:$g})));y.context={model:g,dirtyOnOverallProgress:l},y.agent=o,y.__block=l,i._pipe(g,y)}h&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return W(t)&&(t={overallReset:t,seriesType:ty(t)}),t.uid=fa("stageHandler"),r&&(t.visualType=r),t},e})();function Xg(e){e.overallReset(e.ecModel,e.api,e.payload)}function qg(e){return e.dirtyOnOverallProgress&&Zg}function Zg(){this.agent.dirty(),this.getDownstream().dirty()}function $g(){this.agent&&this.agent.dirty()}function Qg(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Jg(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ge(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?V(t,function(r,n){return Of(n)}):jg}var jg=Of(0);function Of(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i0&&c===f.length-h.length){var d=f.slice(0,c);d!=="data"&&(r.mainType=d,r[h.toLowerCase()]=u,v=!0)}}s.hasOwnProperty(f)&&(n[f]=u,v=!0),v||(a[f]=u)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=r.cptQuery,f=r.dataQuery;return v(u,o,"mainType")&&v(u,o,"subType")&&v(u,o,"index","componentIndex")&&v(u,o,"name")&&v(u,o,"id")&&v(f,i,"name")&&v(f,i,"dataIndex")&&v(f,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function v(l,h,c,d){return l[c]==null||h[d||c]===l[c]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),yi=["symbol","symbolSize","symbolRotate","symbolOffset"],eu=yi.concat(["symbolKeepAspect"]),ny={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,a){if(!this[ie]){if(this._disposed){this.id;return}var i,o,s;if(F(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ie]=!0,er(this),!this._model||n){var u=new Ap(this._api),f=this._theme,v=this._model=new co;v.scheduler=this._scheduler,v.ssr=this._ssr,v.init(null,null,null,f,this._locale,u)}this._model.setOption(r,{replaceMerge:o},Ti);var l={seriesTransition:s,optionChanged:!0};if(a)this[fe]={silent:i,updateParams:l},this[ie]=!1,this.getZr().wakeUp();else{try{kt(this),ot.update.call(this,null,l)}catch(h){throw this[fe]=null,this[ie]=!1,h}this._ssr||this._zr.flush(),this[fe]=null,this[ie]=!1,Jt.call(this,i),jt.call(this,i)}}},t.prototype.setTheme=function(r,n){if(!this[ie]){if(this._disposed){this.id;return}var a=this._model;if(a){var i=n&&n.silent,o=null;this[fe]&&(i==null&&(i=this[fe].silent),o=this[fe].updateParams,this[fe]=null),this[ie]=!0,er(this);try{this._updateTheme(r),a.setTheme(this._theme),kt(this),ot.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ie]=!1,s}this[ie]=!1,Jt.call(this,i),jt.call(this,i)}}},t.prototype._updateTheme=function(r){N(r)&&(r=ec[r]),r&&(r=q(r),r&&vf(r,!0),this._theme=r)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ht.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return b(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;b(n,function(u){a.eachComponent({mainType:u},function(f){var v=o._componentsMap[f.__viewId];v.group.ignore||(i.push(v),v.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return b(i,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(zn[a]){var u=s,f=s,v=-s,l=-s,h=[],c=r&&r.pixelRatio||this.getDevicePixelRatio();b(Bt,function(_,S){if(_.group===a){var T=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(q(r)),C=_.getDom().getBoundingClientRect();u=i(C.left,u),f=i(C.top,f),v=o(C.right,v),l=o(C.bottom,l),h.push({dom:T,left:C.left,top:C.top})}}),u*=c,f*=c,v*=c,l*=c;var d=v-u,g=l-f,p=gn.createCanvas(),y=Uo(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return b(h,function(_){var S=_.left-u,T=_.top-f;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new pt({shape:{x:0,y:0,width:d,height:g},style:{fill:r.connectedBackgroundColor}})),b(h,function(_){var S=new Kn({style:{x:_.left*c-u,y:_.top*c-f,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,a){return ln(this,"convertToPixel",r,n,a)},t.prototype.convertToLayout=function(r,n,a){return ln(this,"convertToLayout",r,n,a)},t.prototype.convertFromPixel=function(r,n,a){return ln(this,"convertFromPixel",r,n,a)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var a=this._model,i,o=Sa(a,r);return b(o,function(s,u){u.indexOf("Models")>=0&&b(s,function(f){var v=f.coordinateSystem;if(v&&v.containPoint)i=i||!!v.containPoint(n);else if(u==="seriesModels"){var l=this._chartsMap[f.__viewId];l&&l.containPoint&&(i=i||l.containPoint(n,f))}},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=Sa(a,r,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),u=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return u!=null?iy(s,u,n):oy(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;b(Gy,function(a){var i=function(o){var s=r.getModel(),u=o.target,f,v=a==="globalout";if(v?f={}:u&&on(u,function(g){var p=xe(g);if(p&&p.dataIndex!=null){var y=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return f=y&&y.getDataParams(p.dataIndex,p.dataType,u)||{},!0}else if(p.eventData)return f=P({},p.eventData),!0},!0),f){var l=f.componentType,h=f.componentIndex;(l==="markLine"||l==="markPoint"||l==="markArea")&&(l="series",h=f.seriesIndex);var c=l&&h!=null&&s.getComponent(l,h),d=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];f.event=o,f.type=a,r._$eventProcessor.eventInfo={targetEl:u,packedEvent:f,model:c,view:d},r.trigger(a,f)}};i.zrEventfulCallAtLast=!0,r._zr.on(a,i,r)});var n=this._messageCenter;b(Si,function(a,i){n.on(i,function(o){r.trigger(i,o)})}),sy(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&ju(this.getDom(),mo,"");var n=this,a=n._api,i=n._model;b(n._componentsViews,function(o){o.dispose(i,a)}),b(n._chartsViews,function(o){o.dispose(i,a)}),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 Bt[n.id]},t.prototype.resize=function(r){if(!this[ie]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[fe]&&(i==null&&(i=this[fe].silent),a=!0,this[fe]=null),this[ie]=!0,er(this);try{a&&kt(this),ot.update.call(this,{type:"resize",animation:P({duration:0},r&&r.animation)})}catch(o){throw this[ie]=!1,o}this[ie]=!1,Jt.call(this,i),jt.call(this,i)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(F(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Ci[r]){var a=Ci[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=P({},r);return n.type=_i[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(F(n)||(n={silent:!!n}),!!Vn[r.type]&&this._model){if(this[ie]){this._pendingActions.push(r);return}var a=n.silent;Va.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&ht.browser.weChat&&this._throttledZrFlush(),Jt.call(this,a),jt.call(this,a)}},t.prototype.updateLabelLayout=function(){Oe.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){kt=function(l){ly(l._model);var h=l._scheduler;h.restorePipelines(l._zr,l._model),h.prepareStageTasks(),Ba(l,!0),Ba(l,!1),h.plan()},Ba=function(l,h){for(var c=l._model,d=l._scheduler,g=h?l._componentsViews:l._chartsViews,p=h?l._componentsMap:l._chartsMap,y=l._zr,m=l._api,_=0;_j(h.get("hoverLayerThreshold"),of.hoverLayerThreshold)&&!ht.node&&!ht.worker;(l._usingTHL||p)&&(h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=l._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==El&&(S.hoverLayer=p?xl:Il)})}}),l._usingTHL=p)}}function s(l,h){var c=l.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function u(l,h){if(!l.preventAutoZ){var c=Nl(l);h.eachRendered(function(d){return Bl(d,c.z,c.zlevel),!0})}}function f(l,h){h.eachRendered(function(c){if(!Er(c)){var d=c.getTextContent(),g=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function v(l,h){var c=l.getModel("stateAnimation"),d=l.isAnimationEnabled(),g=c.get("duration"),p=g>0?{duration:g,delay:c.get("delay"),easing:c.get("easing")}:null;h.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Er(y))return;if(y instanceof oe&&Ch(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&i(y)}})}fu=function(l){return new((function(h){K(c,h);function c(){return h!==null&&h.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return l._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return l._model.getComponent(g.mainType,g.index);d=d.parent}},c.prototype.enterEmphasis=function(d,g){Ja(d,g),Pe(l)},c.prototype.leaveEmphasis=function(d,g){ja(d,g),Pe(l)},c.prototype.enterBlur=function(d){vh(d),Pe(l)},c.prototype.leaveBlur=function(d){hl(d),Pe(l)},c.prototype.enterSelect=function(d){dl(d),Pe(l)},c.prototype.leaveSelect=function(d){pl(d),Pe(l)},c.prototype.getModel=function(){return l.getModel()},c.prototype.getViewOfComponentModel=function(d){return l.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return l.getViewOfSeriesModel(d)},c.prototype.getECUpdateCycleVersion=function(){return l[sn]},c.prototype.usingTHL=function(){return l._usingTHL},c})(ul))(l)},jf=function(l){function h(c,d){for(var g=0;g=0)){vu.push(r);var o=Pf.wrapStageHandler(r,a);o.__prio=t,o.__raw=r,e.push(o)}}function ic(e,t){Ci[e]=t}function $0(e){jc({createCanvas:e})}function $y(e,t,r){var n=Vf("registerMap");n&&n(e,t,r)}function Q0(e){var t=Vf("getMap");return t&&t(e)}var Qy=vg;Wt(go,Hg);Wt(da,Yg);Wt(da,Wg);Wt(go,ny);Wt(da,ay);Wt(Xf,Dy);nc(vf);ac(Ay,Gp);ic("default",Kg);ur({type:Ot,event:Ot,update:Ot},St);ur({type:yn,event:yn,update:yn},St);ur({type:En,event:Ni,update:En,action:St,refineEvent:bo,publishNonRefinedEvent:!0});ur({type:Qa,event:Ni,update:Qa,action:St,refineEvent:bo,publishNonRefinedEvent:!0});ur({type:An,event:Ni,update:An,action:St,refineEvent:bo,publishNonRefinedEvent:!0});function bo(e,t,r,n){return{eventContent:{selected:yh(r),isFromClick:t.isFromClick||!1}}}rc("default",{});rc("dark",Bf);var J0={};function pr(e){return e==null?0:e.length||1}function hu(e){return e}var Jy=(function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||hu,this._newKeyGetter=a||hu,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o1){var v=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(v,o)}else f===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s1&&h===1)this._updateManyToOne&&this._updateManyToOne(v,f),a[u]=null;else if(l===1&&h>1)this._updateOneToMany&&this._updateOneToMany(v,f),a[u]=null;else if(l===1&&h===1)this._update&&this._update(v,f),a[u]=null;else if(l>1&&h>1)this._updateManyToMany&&this._updateManyToMany(v,f),a[u]=null;else if(l>1)for(var c=0;c1)for(var s=0;s30}var gr=F,vt=V,am=typeof Int32Array>"u"?Array:Int32Array,im="e\0\0",du=-1,om=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],sm=["_approximateExtent"],pu,cn,yr,mr,Ga,_r,Ha,eS=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,a=!1;sc(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},u=!1,f={},v=0;v=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,u=s===Ze;if(u&&!a.pure)for(var f=[],v=t;v0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),k(i)?i=i.slice():gr(i)&&(i=P({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,gr(r)?P(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){gr(t)?P(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?P(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;eh(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){b(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:vt(this.dimensions,this._getDimInfo,this),this.hostModel)),Ga(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];W(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(tv(arguments)))})},e.internalField=(function(){pu=function(t){var r=t._invertedIndicesMap;b(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new am(o.categories.length);for(var u=0;u1&&(u+="__ec__"+v),a[r]=u}}})(),e})();function tS(e,t){return um(e,t).dimensions}function um(e,t){vo(e)||(e=hf(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=O(),i=[],o=lm(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&fc(o),u=n===e.dimensionsDefine,f=u?lc(e):uc(n),v=t.encodeDefine;!v&&t.encodeDefaulter&&(v=t.encodeDefaulter(e,o));for(var l=O(v),h=new Tf(o),c=0;c0&&(M.name=M.name+(D-1))}),new oc({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function lm(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return b(t,function(i){var o;F(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function fm(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}function rS(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;cm(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var u=!!(e&&e.get("stack")),f,v,l,h,c=!0;function d(S){return S.type!=="ordinal"&&S.type!=="time"}if(b(i,function(S,T){N(S)&&(i[T]=S={name:S}),d(S)||(c=!1)}),b(i,function(S,T){u&&!S.isExtraCoord&&(!n&&!f&&S.ordinalMeta&&(f=S),!v&&d(S)&&(!c||S.coordDim!=="x"&&S.coordDim!=="angle")&&(!a||a===S.coordDim)&&(v=S))}),v&&!n&&!f&&(n=!0),v){l="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,f&&(f.createInvertedIndices=!0);var g=v.coordDim,p=v.type,y=0;b(i,function(S){S.coordDim===g&&y++});var m={name:l,coordDim:g,coordDimIndex:y,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:h,coordDim:h,coordDimIndex:y+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(h,p),_.storeDimIndex=s.ensureCalculationDimension(l,p)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:v&&v.name,stackedByDimension:f&&f.name,isStackedByIndex:n,stackedOverDimension:h,stackResultDimension:l}}function cm(e){return!sc(e.schema)}function vm(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function hm(e,t){return vm(e,t)?e.getCalculationInfo("stackResultDimension"):t}var Je=(function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();ta(Je);var dm=0,gu=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++dm,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&V(n,pm);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!N(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=O(this.categories))},e})();function pm(e){return F(e)&&e.value!=null?e.value:e+""}var Fe=0,zr=1,gm={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},ym=at(gm),Gn=2,cc=3;function To(e,t,r){var n;return e=e||{},_m(e,r),{brk:n,mapper:e}}function vc(e,t){b(ym,function(r){e[r]=t[r]})}function hc(e,t){e.freeze=St}function Gr(e){return e.getExtentUnsafe(Fe,Gn)}function dc(e,t){return e.getExtentUnsafe(zr,t)||e.getExtentUnsafe(Fe,t)}function mm(e){var t=dc(e,cc);return t[1]-t[0]}function pa(e){var t=e.getExtentUnsafe(Fe,cc);return t[1]-t[0]}function _m(e,t){var r=e||{},n=[];return r._extents=n,n[Fe]=t?t.slice():et(),P(r,Sm),r}var Sm={needTransform:function(){return!1},normalize:function(e){var t=this._extents[zr]||this._extents[Fe];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[zr]||this._extents[Fe];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=dc(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[Fe].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){yu(this._extents,Fe,e,t)},setExtent2:function(e,t,r){var n=this._extents;n[e]||(n[e]=n[Fe].slice()),yu(n,e,t,r)},freeze:function(){}};function yu(e,t,r,n){ir(r,n)&&(e[t][0]=r,e[t][1]=n)}function nS(e){return Hn(e)||ga(e)}function Hn(e){return e.type==="interval"}function pc(e){return e.type==="time"}function ga(e){return e.type==="log"}function bt(e){return e.type==="ordinal"}function aS(e){var t=Ai(e),r=Gt(10,t),n=ut(e/r);return n?n===2?n=3:n===3?n=5:n*=2:n=1,ve(n*r,-t)}function Hr(e){return dt(e)+2}function vn(e,t){return Ft(e)/Ft(t)}function Ya(e,t,r){var n=r&&r.lookup;if(n){for(var a=0;a1&&i/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==n[0]&&u(n[0],!0,!0);for(var s=a;s<=n[1];s+=o)u(s,!1,s===n[0]||s===n[1]);s-o!==n[1]&&u(n[1],!0,!0);function u(f,v,l){r({value:f,offInterval:v},l)}}var yc=(function(e){K(t,e);function t(r){var n=e.call(this)||this;n.type="ordinal",n.parse=t.parse,vc(n,t.decoratedMethods);var a=r.ordinalMeta;a||(a=new gu({})),k(a)&&(a=new gu({categories:V(a,function(o){return F(o)?o.value:o})})),n._ordinalMeta=a;var i=To(null,null,r.extent||[0,a.categories.length-1]);return n._mapper=i.mapper,hc(n),n}return t.parse=function(r){return r==null?r=NaN:N(r)?(r=this._ordinalMeta.getOrdinal(r),r==null&&(r=NaN)):r=ut(r),r},t.prototype.getTicks=function(){var r=[];return gc(this,0,function(n){r.push(n)}),r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=qe(s,n.length);o=0&&r=0&&r=0&&ro[0]&&go[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(p>d)break;g=qe(g,o[1]),p===d&&(g=o[1])}if(l.push({value:g}),g=ve(g+a,s),f){var y=f.calcNiceTickMultiple(g,c);y>=0&&(g=ve(g+y*a,s))}if(l.length>0&&g===l[l.length-1].value)break;if(l.length>h)return[]}var m=l.length?l[l.length-1].value:o[1];return i[1]>m&&l.push({value:r.expandToNicedExtent?ve(m+a,s):i[1]}),l},t.prototype.getMinorTicks=function(r){return Mo(this,r,Qi(this),this._cfg.interval)},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=dt(r.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var i=ve(r.value,a,!0);return Jl(i)},t.type="interval",t})(Je);Je.registerClass(ar);var Cm=function(e,t,r,n){for(;r>>1;e[a][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Dm(e){var t=30*Be;return e/=t,e>6?6:e>3?3:e>2?2:1}function Im(e){return e/=Ar,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function mu(e,t){return e/=t?ji:Ji,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function xm(e){return ee(Wu(e,!0),1)}function Em(e,t,r){var n=Math.max(0,Ee(Lt,t)-1);return ui(new Date(e),Lt[n],r).getTime()}function Am(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var a=r.getTime()-n;return function(i,o){return Math.max(0,Math.round((o-i)/a))}}function Rm(e,t,r,n,a,i){var o=3e3,s=Qd,u=0;function f(R,G,Q,H,se,ae,ue){for(var Ue=Am(se,R),Z=G,te=new Date(Z);Zo));)if(te[se](te[H]()+R),Z=te.getTime(),i){var he=i.calcNiceTickMultiple(Z,Ue);he>0&&(te[se](te[H]()+he*R),Z=te.getTime())}ue.push({value:Z,notAdd:Z>n[1]})}function v(R,G,Q){var H=[],se=!G.length;if(!Mm(Rr(R),n[0],n[1],r)){se&&(G=[{value:Em(n[0],R,r)},{value:n[1]}]);for(var ae=0;ae=n[0]&&ue<=n[1]&&f(Z,ue,Ue,te,he,Tt,H),R==="year"&&Q.length>1&&ae===0&&Q.unshift({value:Q[0].value-Z})}}for(var ae=0;ae=n[0]&&S<=n[1]&&c++)}var T=a/t;if(c>T*1.5&&d>T/1.5||(l.push(m),c>T||e===s[g]))break}h=[]}}}for(var C=Ne(V(l,function(R){return Ne(R,function(G){return G.value>=n[0]&&G.value<=n[1]&&!G.notAdd})}),function(R){return R.length>0}),I=C.length-1,x=[],g=0;gn[0])&&x.unshift({value:n[0],time:{level:0,upperTimeUnit:U,lowerTimeUnit:U},notNice:!0}),(!A||A.values&&(i=s);var u=hn.length,f=Math.min(Cm(hn,i,0,u),u-1),v=hn[f][1],l=hn[Math.max(f-1,0)][0];e.setTimeInterval({approxInterval:i,interval:v,minLevelUnit:l})};Je.registerClass(mc);var dn=0,pn=1,_c=(function(e){K(t,e);function t(r){var n=e.call(this)||this;n.type="log",n.parse=ar.parse,n.base=r.logBase||10;var a=[],i=[];n._lookup={from:a,to:i},a[dn]=a[pn]=i[dn]=i[pn]=NaN,vc(n,t.mapperMethods),r.breakOption;var o={};return n.powStub=new ar({breakParsed:o.original}),n.intervalStub=new ar({breakParsed:o.transformed}),hc(n,n.intervalStub),n}return t.prototype.getTicks=function(r){var n=this.base,a=this.powStub,i=this.intervalStub,o=i.getExtent(),s=a.getExtent(),u={lookup:{from:o,to:s}};return V(i.getTicks(r||{}),function(f){var v=f.value,l=Ya(v,n,u),h;return{value:l,break:h}},this)},t.prototype.getMinorTicks=function(r){return Mo(this,r,Qi(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(r,n){return this.intervalStub.getLabel(r,n)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(vn(r,this.base))},scale:function(r){return Ya(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,n){return r=vn(r,this.base),n&&n.depth===Gn?r:this.intervalStub.transformIn(r,n)},transformOut:function(r,n){var a=n?n.depth:null;return _u.depth=a,Su.lookup=this._lookup,Ya(a===Gn?r:this.intervalStub.transformOut(r,_u),this.base,Su)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,n){this.setExtent2(Fe,r,n)},setExtent2:function(r,n,a){if(!(!ir(n,a)||n<=0||a<=0)){var i=bu,o=bu;if(r===Fe){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(r,i[dn]=n,i[pn]=a);var u=this.base;this.intervalStub.setExtent2(r,o[dn]=vn(n,u),o[pn]=vn(a,u))}},getFilter:function(){return{g:0}},sanitize:function(r,n){return ir(n[0],n[1])&&mt(r)&&r<=0&&(r=n[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,n){return n===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,n)}},t})(Je);Je.registerClass(_c);var _u={},Su={},bu=[],Pm={value:1,category:1,time:1,log:1},Sc=ne();function iS(e){var t=e.get("type");return(t==null||!Re(Pm,t)&&!Je.getClass(t))&&(t="value"),t}function oS(e,t,r){var n;switch(t){case"category":return new yc({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:et()});case"time":return new mc({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:n});case"log":return new _c({logBase:e.get("logBase"),breakOption:n});case"value":return new ar({breakOption:n});default:return new(Je.getClass(t)||ar)({})}}function sS(e,t,r){var n=e.getExtentUnsafe(Fe,null),a=n[0],i=n[1];return ir(a,i)?a===t||i===t?Lm:at?Om:Tu:Tu}var Om=1,Lm=2,Tu=3;function Nm(e){Sc(e).noOnMyZero=!0}function uS(e){return Sc(e).noOnMyZero}function ya(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=Jd(t);return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}else{if(N(t))return function(a){var i=e.scale.getLabel(a),o=t.replace("{value}",i??"");return o};if(W(t)){if(e.type==="category")return function(a,i){return t(Cu(e,a),a.value-e.scale.getExtent()[0],null)};var n=ca();return function(a,i){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,a.break)),t(Cu(e,a),i,o)}}else return function(a){return e.scale.getLabel(a)}}}function Cu(e,t){var r=e.scale;return bt(r)?r.getLabel(t):t.value}function wo(e){var t=e.get("interval");return t??"auto"}function lS(e){return e.type==="category"&&wo(e.getLabelModel())===0}function Bm(e,t){var r={};return b(e.mapDimensionsAll(t),function(n){r[hm(e,n)]=!0}),at(r)}function fS(e){return e==="middle"||e==="center"}function cS(e){return e.getShallow("show")}function vS(e,t,r){var n=e.get("breaks",!0);n==null}function Fm(e,t,r,n,a,i){var o=ga(e),s=o?e.intervalStub:e;if(s.setExtent(n[0],n[1]),o){var u=e.powStub,f={depth:Gn},v=e.transformOut(n[0],f),l=e.transformOut(n[1],f),h=Tm(r,n);t[0]&&!h[0]&&(v=a[0]),t[1]&&!h[1]&&(l=a[1]),u.setExtent(v,l)}s.setConfig(i)}function Vm(e,t){return bt(e)?e.getRawOrdinalNumber(t.value):t.value}function Um(e,t){return bt(e)&&!!t.get("boundaryGap")}var hS=(function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e})(),zm=Fv(),Mu="|&",lr=ne(),Gm=-2,dS=-1,Hm=ne();function Do(e,t){var r=e.model,n=lr(sr(r.ecModel)).keyed,a=n&&n.get(t);return a&&a.get(r.uid)}function Ym(e,t){return Tc(Do(e,t))}function Wm(e,t){var r=[];return bc(e.model.ecModel,function(n){for(var a=0;a0&&l[1]>0&&!h[0]&&(l[0]=0),l[0]<0&&l[1]<0&&!h[1]&&(l[1]=0));var S=!1;l[0]>l[1]&&(l.reverse(),S=!0);var T=Sr(t,r.get("startValue",!0)),C=T!=null;!mt(T)&&a&&(T=t.getDefaultStartValue?t.getDefaultStartValue():0),mt(T)&&(C||!m||_)&&(Tl[1]&&!h[1]&&(l[1]=T,h[1]=!0));var I=this._i={scale:t,dataMM:v,noZoomEffMM:l,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:T,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i};wu(I,l)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,r=t.zoomMM,n=t.noZoomEffMM,a=t.zoomFixMM,i=t.fixMM,o={fixMM:i,zoomFixMM:a,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],i[0]=a[0]=!0),r[1]!=null&&(s[1]=r[1],i[1]=a[1]=!0),wu(t,s),o},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,r){this._i.zoomMM[t]=r},e})();function wu(e,t){var r=e.scale,n=e.dataMM;r.sanitize&&(t[0]=r.sanitize(t[0],n),t[1]=r.sanitize(t[1],n),Bv(t))}function Sr(e,t){return t==null?null:$a(t)?NaN:e.parse(t)}function $m(e,t){var r;if(bt(e))r=[0,0];else{var n=t.get("boundaryGap");typeof n=="boolean"&&(n=null),r=k(n)?n:[n,n]}return[Du(r[0]),Du(r[1])]}function Du(e){return rv(typeof e=="boolean"?0:e,1)||0}function Dc(e){var t=qm(e.scale);return t.extent||(t.extent=et()),t}function CS(e,t){Dc(e).dimIdxInCoord=t.get(e.dim)}function MS(e,t){var r=e.scale,n=e.model,a=e.dim;r.rawExtentInfo||Qm(r,e,a,n,t)}function Qm(e,t,r,n,a){var i=Dc(t),o=i.extent,s=!1;Km(t,function(v){if(v.boxCoordinateSystem){var l=tf(v).coord,h=i.dimIdxInCoord;if(h>=0){if(k(l)){var c=l[h];c!=null&&!k(c)&&Ov(o,e.parse(c))}}}else if(v.coordinateSystem){var d=v.getData();if(d){var g=e.getFilter?e.getFilter():null;b(Bm(d,r),function(p){Lv(o,d.getApproximateExtent(p,g))})}v.__requireStartValue&&v.__requireStartValue(t)&&(s=!0)}});var u=e_(e,t,n),f=new wc(e,n,o,s,u);Ic(e,f,a),i.extent=null}function Jm(e,t){var r=e.scale;Ic(r,new wc(r,e.model,t,!1,!1),Zm)}function Ic(e,t,r){e.rawExtentInfo=t,t.from=r}function wS(e,t){xo.set(e,t)}var xo=O();function jm(e,t,r,n,a){e.rawExtentInfo||Jm({scale:e,model:t},a||et());var i=e.rawExtentInfo.makeFinal(),o=i.effMM;return e.setExtent(o[0],o[1]),e.setBlank(i.isBlank),n&&i.tggAxInv&&r&&!r.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),i}function e_(e,t,r){var n=Um(e,r),a=r.get("containShape",!0);if(a==null&&!n&&(a=!0),!a)return!1;var i=!1;return Cc(t,function(o){i=!!xo.get(o)||i}),i}function t_(e,t,r,n){if(r.ctnShp){var a;if(Cc(e,function(s){var u=xo.get(s);if(u){var f=u(e,n);f&&(a=a||[0,0],el(a,f[0]),tl(a,f[1]),Nm(e))}}),!!a){var i=t.getExtent();if(bt(t))e.onBand||t.setExtent2(zr,qe(i[0],i[0]+a[0]),ee(i[1],i[1]+a[1]));else{var o=i.slice();r.zoomFixMM[0]||(o[0]=qe(o[0],t.transformOut(t.transformIn(o[0],null)+a[0],null))),r.zoomFixMM[1]||(o[1]=ee(o[1],t.transformOut(t.transformIn(o[1],null)+a[1],null))),(o[0]i[1])&&t.setExtent2(zr,o[0],o[1])}}}}function Iu(e,t){var r=ga(e),n=r?e.intervalStub:e,a=t.fixMinMax||[],i=r?e.getExtent():null,o=n.getExtent(),s=bm(o,a,t.rawExtentResult);n.setExtent(s[0],s[1]),s=n.getExtent();var u=r?n_(n,t):r_(n,t),f=u.intervalPrecision,v=u.interval,l=t.userInterval;l!=null&&(u.interval=l,u.intervalPrecision=Hr(l)),a[0]||(s[0]=ve(zt(s[0]/v)*v,f)),a[1]||(s[1]=ve($n(s[1]/v)*v,f)),l!=null&&(u.niceExtent=s.slice()),Fm(e,a,o,s,i,u)}function r_(e,t){var r=Co(t.splitNumber,5),n=pa(e),a=t.minInterval,i=t.maxInterval,o=Wu(n/r,!0);a!=null&&oi&&(o=i);var s=Hr(o),u=e.getExtent(),f=[ve($n(u[0]/o)*o,s),ve(zt(u[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:f}}function n_(e,t){var r=Co(t.splitNumber,10),n=e.getExtent(),a=pa(e),i=ee(dv(a),1),o=r/a*i;o<=.5&&(i*=10);var s=Hr(i),u=[ve($n(n[0]/i)*i,s),ve(zt(n[1]/i)*i,s)];return{intervalPrecision:s,interval:i,niceExtent:u}}function DS(e){var t=e.scale,r=e.model,n=r.axis,a=r.ecModel;a_(t,r,n,a,null)}function a_(e,t,r,n,a){var i=jm(e,t,n,r,a),o=Hn(e)||pc(e);i_(e,{splitNumber:t.get("splitNumber"),fixMinMax:i.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:i}),r&&n&&t_(r,e,i,n)}function i_(e,t){o_[e.type](e,t)}var o_={interval:Iu,log:Iu,time:km,ordinal:St},xu=[],s_={registerPreprocessor:nc,registerProcessor:ac,registerPostInit:Ky,registerPostUpdate:Xy,registerUpdateLifecycle:_o,registerAction:ur,registerCoordinateSystem:qy,registerLayout:Zy,registerVisual:Wt,registerTransform:Qy,registerLoading:ic,registerMap:$y,registerImpl:uy,PRIORITY:Vy,ComponentModel:$,ComponentView:Vr,SeriesModel:Vt,ChartView:Nt,registerComponentModel:function(e){$.registerClass(e)},registerComponentView:function(e){Vr.registerClass(e)},registerSeriesModel:function(e){Vt.registerClass(e)},registerChartView:function(e){Nt.registerClass(e)},registerCustomSeries:function(e,t){zf(e,t)},registerSubTypeDefaulter:function(e,t){$.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){nv(e,t)}};function u_(e){if(k(e)){b(e,function(t){u_(t)});return}Ee(xu,e)>=0||(xu.push(e),W(e)&&(e={install:e}),e.install(s_))}var l_=1e-8;function Eu(e,t){return Math.abs(e-t)a&&(n=o,a=u)}if(n)return c_(n.exterior);var f=this.getBoundingRect();return[f.x+f.width/2,f.y+f.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return b(o,function(s){s.type==="polygon"?Ru(s.exterior,a,i,r):b(s.points,function(u){Ru(u,a,i,r)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),n=new st(a[0],a[1],i[0]-a[0],i[1]-a[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),a=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),u=u>>1^-(u&1),s+=a,u+=i,a=s,i=u,n.push([s/r,u/r])}return n}function xS(e,t){return e=h_(e),V(Ne(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,a=r.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new ku(o[0],o.slice(1)));break;case"MultiPolygon":b(a.coordinates,function(u){u[0]&&i.push(new ku(u[0],u.slice(1)))});break;case"LineString":i.push(new Pu([a.coordinates]));break;case"MultiLineString":i.push(new Pu(a.coordinates))}var s=new v_(n[t||"name"],i,n.cp);return s.properties=n,s})}var d_=ne(),Pr=ne(),or={estimate:1,determine:2};function Di(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function p_(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=e.scale;return{labels:V(Ac(r,n),function(a,i){return{formattedLabel:ya(e)(a,i),rawLabel:n.getLabel(a),tick:a}})}}return e.type==="category"?y_(e,t):__(e)}function g_(e,t,r){var n=e.scale,a=e.getTickModel().get("customValues");return a?{ticks:Ac(a,n)}:e.type==="category"?m_(e,t):{ticks:n.getTicks(r)}}function Ac(e,t){var r=t.getExtent(),n=[];return b(e,function(a){a=t.parse(a),a>=r[0]&&a<=r[1]&&n.push(a)}),ki(n,zv,null),Yu(n),V(n,function(a){return{value:a}})}function y_(e,t){var r=e.getLabelModel(),n=Rc(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function Rc(e,t,r){var n=b_(e),a=wo(t),i=r.kind===or.estimate;if(!i){var o=Pc(n,a);if(o)return o}var s,u;W(a)?s=Yn(e,a,!1):(u=a==="auto"?T_(e,r):a,s=Yn(e,u,!1));var f={labels:s,labelCategoryInterval:u};return i?r.out.noPxChangeTryDetermine.push(function(){return Ii(n,a,f),!0}):Ii(n,a,f),f}function m_(e,t){var r=S_(e),n=wo(t),a=Pc(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),W(n))i=Yn(e,n,!0);else if(n==="auto"){var s=Rc(e,e.getLabelModel(),Di(or.determine));o=s.labelCategoryInterval,i=V(s.labels,function(u){return u.tick})}else o=n,i=Yn(e,o,!0);return Ii(r,n,{ticks:i,tickCategoryInterval:o})}function __(e){var t=e.scale.getTicks(),r=ya(e);return{labels:V(t,function(n,a){return{formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tick:n}})}}var S_=kc("axisTick"),b_=kc("axisLabel");function kc(e){return function(r){return Pr(r)[e]||(Pr(r)[e]={list:[]})}}function Pc(e,t){for(var r=0;rv&&(f=Math.max(1,Math.floor(u/v)));for(var l=s[0],h=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),g=0,p=0;l<=s[1];l+=f){var y=0,m=0,_=av(a({value:l}),n.font,"center","top");y=_.width*1.3,m=_.height*1.3,g=Math.max(g,y,7),p=Math.max(p,m,7)}var S=g/c,T=p/d;isNaN(S)&&(S=1/0),isNaN(T)&&(T=1/0);var C=Math.max(0,Math.floor(Math.min(S,T)));if(r===or.estimate)return t.out.noPxChangeTryDetermine.push(Ce(M_,null,e,C,u)),C;var I=Oc(e,C,u);return I??C}function M_(e,t,r){return Oc(e,t,r)==null}function Oc(e,t,r){var n=d_(e.model),a=e.getExtent(),i=n.lastAutoInterval,o=n.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-r)<=1&&i>t&&n.axisExtent0===a[0]&&n.axisExtent1===a[1])return i;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=a[0],n.axisExtent1=a[1]}function w_(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Yn(e,t,r){var n=ya(e),a=e.scale,i=[],o=W(t);return gc(a,o?0:t,function(s,u){var f=a.getLabel(s);if(o){var v=!!t(s.value,f);if(s.offInterval=!v,!v&&!u)return}i.push(r?s:{formattedLabel:n(s),rawLabel:f,tick:s})}),i}var D_=.8;function Lc(e,t){t=t||{};var r={w:NaN,w2:NaN},n=e.scale,a=t.fromStat,i=t.min,o=mm(n);mt(o)||(o=NaN);var s=e.getExtent(),u=_e(s[1]-s[0]);return bt(n)?I_(r,e,o,u):a&&x_(r,e,o,u,a),i!=null&&(r.w=mt(r.w)?ee(i,r.w):i),r}function I_(e,t,r,n){var a=t.onBand,i=r+(a?1:0);i===0&&(i=1),e.w=n/i,!a&&r&&n&&(e.w2=e.w*r/n)}function x_(e,t,r,n,a){var i=!1,o=-1/0;b(a.key?[Ym(t,a.key)]:Wm(t,a.sers||[]),function(s){var u=s.liPosMinGap;u!=null&&(u>0?(u>o&&(o=u),i=!1):u===Gm&&(i=!0))}),mt(r)&&r>0&&mt(o)?(e.w=n/r*o,e.w2=o):i&&(e.w=n*D_,e.w2=e.w*r/n)}var Ou=[0,1],ES=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this.scale;return t=n.normalize(n.parse(t)),Ho(t,Ou,Lu(this),r)},e.prototype.coordToData=function(t,r){var n=Ho(t,Lu(this),Ou,r);return this.scale.scale(n)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=g_(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),a=V(n.ticks,function(s){return{coord:this.dataToCoord(Vm(this.scale,s)),tick:s}},this),i=r.get("alignWithLabel"),o=E_(this,a,i);return V(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},e.prototype.getMinorTicksCoords=function(){if(bt(this.scale))return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=V(n,function(i){return V(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(t){return t=t||Di(or.determine),p_(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){return Lc(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||Di(or.determine),C_(this,t)},e})();function Lu(e){var t=e.getExtent();if(e.onBand){var r=t[1]-t[0],n=r/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function E_(e,t,r){var n=t.length;if(!e.onBand||r||!n)return!1;var a=Lc(e).w;if(!a)return!1;b(t,function(s){s.coord-=a/2});var i=e.scale.getExtent(),o=t[n-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+a,tick:{value:i[1]+1}}),!0}export{hd as $,hS as A,dv as B,Ai as C,z_ as D,F_ as E,P_ as F,eo as G,ui as H,ua as I,Yi as J,oa as K,Vi as L,Se as M,jh as N,sa as O,qh as P,Gi as Q,Hi as R,Zh as S,zi as T,Ui as U,yd as V,md as W,_d as X,sd as Y,id as Z,ud as _,vs as a,Pv as a$,wl as a0,Al as a1,Xi as a2,ld as a3,Qe as a4,kl as a5,Ki as a6,Jl as a7,h0 as a8,v0 as a9,Zy as aA,ic as aB,Hl as aC,$y as aD,Ky as aE,Xy as aF,nc as aG,ac as aH,rc as aI,Qy as aJ,_o as aK,Wt as aL,$0 as aM,Af as aN,u_ as aO,z0 as aP,$o as aQ,_t as aR,Me as aS,ve as aT,sp as aU,e0 as aV,j_ as aW,Jn as aX,J_ as aY,a0 as aZ,i0 as a_,ip as aa,op as ab,ap as ac,f0 as ad,Nt as ae,$ as af,Vr as ag,Vt as ah,ES as ai,eS as aj,Vy as ak,Y0 as al,J0 as am,G0 as an,W0 as ao,Wy as ap,K0 as aq,q0 as ar,tc as as,X0 as at,Q0 as au,H0 as av,xS as aw,ur as ax,qy as ay,Z0 as az,tS as b,gS as b$,qi as b0,Vm as b1,Ov as b2,et as b3,Bg as b4,yS as b5,Fv as b6,wS as b7,bt as b8,Lc as b9,na as bA,Dl as bB,ch as bC,pp as bD,il as bE,D0 as bF,ge as bG,b0 as bH,Jy as bI,d0 as bJ,ri as bK,ml as bL,Sh as bM,Br as bN,so as bO,Eg as bP,g0 as bQ,S0 as bR,R_ as bS,eh as bT,s0 as bU,Ja as bV,ja as bW,K_ as bX,j0 as bY,C0 as bZ,SS as b_,qe as ba,ee as bb,pS as bc,_e as bd,Gv as be,u0 as bf,Ll as bg,rd as bh,r0 as bi,o0 as bj,Z_ as bk,M0 as bl,cv as bm,Ko as bn,ne as bo,p0 as bp,$_ as bq,_0 as br,B0 as bs,xg as bt,hi as bu,n0 as bv,V0 as bw,nh as bx,Ke as by,um as bz,oS as c,R0 as c$,be as c0,Ie as c1,vd as c2,U0 as c3,Ad as c4,El as c5,jn as c6,nu as c7,hs as c8,Pd as c9,ad as cA,gu as cB,yc as cC,X_ as cD,q_ as cE,lv as cF,bv as cG,gp as cH,vp as cI,cy as cJ,Y_ as cK,Bv as cL,pc as cM,L_ as cN,$n as cO,zt as cP,TS as cQ,fa as cR,m0 as cS,Sa as cT,w0 as cU,G_ as cV,k0 as cW,W_ as cX,on as cY,P0 as cZ,I0 as c_,F0 as ca,Ze as cb,Qn as cc,hf as cd,O0 as ce,L0 as cf,Pl as cg,Cu as ch,mt as ci,_S as cj,MS as ck,DS as cl,Um as cm,bS as cn,Cd as co,gd as cp,ov as cq,fd as cr,rf as cs,T0 as ct,On as cu,c0 as cv,Kd as cw,Td as cx,y0 as cy,nd as cz,iS as d,cS as d$,Ju as d0,ea as d1,ki as d2,iy as d3,N0 as d4,Au as d5,Sd as d6,rl as d7,Jp as d8,i_ as d9,ra as dA,fS as dB,l0 as dC,lS as dD,Di as dE,or as dF,nS as dG,mS as dH,ag as dI,dS as dJ,Io as dK,ig as dL,Gm as dM,Mu as dN,Pn as dO,Pm as dP,dc as dQ,jm as dR,ga as dS,bm as dT,Hr as dU,Fm as dV,aS as dW,ut as dX,pv as dY,CS as dZ,uc as d_,Mn as da,vh as db,hl as dc,Nl as dd,Bl as de,oy as df,Qu as dg,mi as dh,dd as di,H_ as dj,Id as dk,hp as dl,x0 as dm,E0 as dn,rg as dp,Ve as dq,mg as dr,A0 as ds,rt as dt,Dd as du,wd as dv,ms as dw,Md as dx,Qh as dy,Ln as dz,rS as e,sS as e0,Tu as e1,uS as e2,vS as e3,Co as e4,ar as e5,Ah as e6,IS as e7,v_ as e8,xd as e9,rh as ea,Ed as eb,k_ as ec,Rv as ed,Q_ as ee,t0 as ef,cp as eg,fp as eh,vv as ei,td as ej,Cy as f,hm as g,mh as h,vm as i,xe as j,kn as k,B_ as l,Yu as m,N_ as n,O_ as o,dt as p,fv as q,gv as r,a_ as s,V_ as t,Ho as u,Wu as v,yt as w,Ht as x,De as y,U_ as z};