import{d as Io,c as xt,e as ut,b as Qr,a as Y,t as Pt,w as Tt,r as Kr,o as et,j as ke,F as qy,v as Ky,p as ld,y as ud,B as Qy,z as fd,k as tt,u as Jy,G as Mr,s as Ae,q as Le,f as kf,m as Of,A as oe,H as jy,ab as Dr,n as ci}from"./index-p1BAR2Hc.js";import{d as tm,H as em,P as rm,l as im,K as nm,W as am}from"./icons-CbZw_MCi.js";import{_ as Ro}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{f as om,a as sm}from"./datetime-P3V4sQaP.js";import{u as lm}from"./auth-BqcbSIN_.js";const um={class:"account-section-state"},fm=Io({__name:"AccountSectionState",props:{message:{}},emits:["retry"],setup(r,{emit:t}){const e=t;return(i,n)=>{const a=Kr("el-button");return et(),xt("div",um,[ut(Qr(tm),{size:20}),Y("div",null,[n[1]||(n[1]=Y("strong",null,"加载失败",-1)),Y("p",null,Pt(r.message),1)]),ut(a,{onClick:n[0]||(n[0]=o=>e("retry"))},{default:Tt(()=>[...n[2]||(n[2]=[ke("重新加载",-1)])]),_:1})])}}}),Ji=Ro(fm,[["__scopeId","data-v-3f7cb980"]]),hm={key:0,class:"record-list"},vm={key:1,class:"empty-state"},cm=Io({__name:"PointRecordList",props:{records:{},emptyText:{}},setup(r){function t(i){return Number(i||0).toFixed(2)}function e(i){return Number(i.change_amount||0)>0}return(i,n)=>r.records.length?(et(),xt("div",hm,[(et(!0),xt(qy,null,Ky(r.records,a=>(et(),xt("div",{key:a.id,class:"record-row"},[Y("div",null,[Y("strong",null,Pt(a.remark||"积分变动"),1),Y("time",null,Pt(Qr(om)(a.created_at)),1)]),Y("strong",{class:ld({income:e(a)})},Pt(e(a)?"+":"-")+Pt(t(a.amount)),3),Y("span",null,"余额 "+Pt(t(a.balance_after)),1)]))),128))])):(et(),xt("div",vm,Pt(r.emptyText),1))}}),Bf=Ro(cm,[["__scopeId","data-v-e56592aa"]]);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Cl=function(r,t){return Cl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Cl(r,t)};function rt(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cl(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var dm=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),pm=function(){function r(){this.browser=new dm,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),X=new pm;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(X.wxa=!0,X.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?X.worker=!0:!X.hasGlobalWindow||"Deno"in window?(X.node=!0,X.svgSupported=!0):gm(navigator.userAgent,X);function gm(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var xu=12,ym="sans-serif",ai=xu+"px "+ym,mm=20,_m=100,wm="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Sm(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function Xm(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?Hf(s,o):Hf(o,s))}function md(r){return r.nodeName.toUpperCase()==="CANVAS"}var $m=/([&<>"'])/g,Zm={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ut(r){return r==null?"":(r+"").replace($m,function(t,e){return Zm[e]})}var qm=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vs=[],Km=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function Rl(r,t,e,i){return e=e||{},i?Gf(r,t,e):Km&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Gf(r,t,e),e}function Gf(r,t,e){if(X.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(md(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Il(vs,r,i,n)){e.zrX=vs[0],e.zrY=vs[1];return}}e.zrX=e.zrY=0}function Au(r){return r||window.event}function fe(r,t,e){if(t=Au(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Rl(r,o,t,e)}else{Rl(r,t,t,e);var a=Qm(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&qm.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Qm(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function Jm(r,t,e,i){r.addEventListener(t,e,i)}function jm(r,t,e,i){r.removeEventListener(t,e,i)}var _d=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},t0=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o1&&i&&i.length>1){var a=Wf(i)/Wf(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=e0(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Bi(){return[1,0,0,1,0,0]}function Lu(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function r0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ni(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function El(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Pu(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function i0(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Iu(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}var ht=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}(),ha=Math.min,va=Math.max,Ar=new ht,Lr=new ht,Pr=new ht,Ir=new ht,ji=new ht,tn=new ht,at=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=ha(t.x,this.x),i=ha(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=va(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=va(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=Bi();return El(a,a,[-e.x,-e.y]),i0(a,a,[i,n]),El(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,yd&&(d=w,g=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ar.x=Pr.x=e.x,Ar.y=Ir.y=e.y,Lr.x=Ir.x=e.x+e.width,Lr.y=Pr.y=e.y+e.height,Ar.transform(i),Ir.transform(i),Lr.transform(i),Pr.transform(i),t.x=ha(Ar.x,Lr.x,Pr.x,Ir.x),t.y=ha(Ar.y,Lr.y,Pr.y,Ir.y);var l=va(Ar.x,Lr.x,Pr.x,Ir.x),u=va(Ar.y,Lr.y,Pr.y,Ir.y);t.width=l-t.x,t.height=u-t.y},r}(),wd="silent";function n0(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:a0}}function a0(){_d(this.event)}var o0=function(r){lt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ge),en=function(){function r(t,e){this.x=t,this.y=e}return r}(),s0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ds=new at(0,0,0,0),Sd=function(r){lt(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new en(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new o0,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Gm(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(s0,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=bd(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new en(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new en(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=n0(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new en(e,i);if(Uf(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new at(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(ds.copy(c.getBoundingRect()),c.transform&&ds.applyTransform(c.transform),ds.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,y=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function l0(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?wd:!0}return!1}function Uf(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=l0(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==wd)){t.target=o;break}}}function bd(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var xd=32,rn=7;function u0(r){for(var t=0;r>=xd;)t|=r&1,r>>=1;return r+t}function Yf(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n=0;)n++;return n-t}function f0(r,t,e){for(e--;t>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function ps(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function gs(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;ls&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function h0(r,t){var e=rn,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]=rn||x>=rn);if(M)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(g=0;g=0;g--)r[S+g]=r[b+g];r[w]=o[_];return}for(var x=e;;){var M=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[w--]=r[m--],M++,C=0,--d===0){A=!0;break}}else if(r[w--]=o[_--],C++,M=0,--p===1){A=!0;break}while((M|C)=0;g--)r[S+g]=r[b+g];if(d===0){A=!0;break}}if(r[w--]=o[_--],--p===1){A=!0;break}if(C=p-ps(r[m],o,0,p,p-1,t),C!==0){for(w-=C,_-=C,p-=C,S=w+1,b=_+1,g=0;g=rn||C>=rn);if(A)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(w-=d,m-=d,S=w+1,b=m+1,g=d-1;g>=0;g--)r[S+g]=r[b+g];r[w]=o[_]}else{if(p===0)throw new Error;for(b=w-(p-1),g=0;gs&&(l=s),Xf(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var re=1,_n=2,Ai=4,$f=!1;function ys(){$f||($f=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Zf(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var v0=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Zf}return r.prototype.traverse=function(t,e){for(var i=0;i0&&(f.__clipPaths=[]),isNaN(f.z)&&(ys(),f.z=0),isNaN(f.z2)&&(ys(),f.z2=0),isNaN(f.zlevel)&&(ys(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),so;so=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Dn={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Dn.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Dn.bounceIn(r*2)*.5:Dn.bounceOut(r*2-1)*.5+.5}},ca=Math.pow,yr=Math.sqrt,lo=1e-8,Td=1e-4,qf=yr(3),da=1/3,Oe=Xi(),ce=Xi(),Fi=Xi();function pr(r){return r>-lo&&rlo||r<-lo}function Rt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function Kf(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function uo(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(pr(f)&&pr(h))if(pr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(pr(y)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(y>0){var m=yr(y),_=f*s+1.5*o*(-h+m),w=f*s+1.5*o*(-h-m);_<0?_=-ca(-_,da):_=ca(_,da),w<0?w=-ca(-w,da):w=ca(w,da);var d=(-s-(_+w))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*yr(f*f*f)),S=Math.acos(b)/3,x=yr(f),M=Math.cos(S),d=(-s-2*x*M)/(3*o),g=(-s+x*(M+qf*Math.sin(S)))/(3*o),C=(-s+x*(M-qf*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),C>=0&&C<=1&&(a[v++]=C)}}return v}function Md(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(pr(o)){if(Cd(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(pr(f))n[0]=-a/(2*o);else if(f>0){var h=yr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function fo(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function c0(r,t,e,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,d,y,p,g;Oe[0]=l,Oe[1]=u;for(var m=0;m<1;m+=.05)ce[0]=Rt(r,e,n,o,m),ce[1]=Rt(t,i,a,s,m),p=Oi(Oe,ce),p=0&&p=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(pr(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=yr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Dd(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function ho(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function g0(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;Oe[0]=o,Oe[1]=s;for(var c=0;c<1;c+=.05){ce[0]=Yt(r,e,n,c),ce[1]=Yt(t,i,a,c);var v=Oi(Oe,ce);v=0&&v=1?1:uo(0,i,a,1,l,s)&&Rt(0,n,o,1,s[0])}}}var _0=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Zt,this.ondestroy=t.ondestroy||Zt,this.onrestart=t.onrestart||Zt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:Dn[t]||Ad(t)},r}(),Ld=function(){function r(t){this.value=t}return r}(),w0=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new Ld(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),aa=function(){function r(t){this._list=new w0,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Ld(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Jf={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function mr(r){return r=Math.round(r),r<0?0:r>255?255:r}function kl(r){return r<0?0:r>1?1:r}function ms(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?mr(parseFloat(t)/100*255):mr(parseInt(t,10))}function An(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?kl(parseFloat(t)/100):kl(parseFloat(t))}function _s(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function pa(r,t,e){return r+(t-r)*e}function ue(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Ol(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Pd=new aa(20),ga=null;function pi(r,t){ga&&Ol(ga,t),ga=Pd.put(r,ga||t.slice())}function _r(r,t){if(r){t=t||[];var e=Pd.get(r);if(e)return Ol(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Jf)return Ol(t,Jf[i]),pi(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ue(t,0,0,0,1);return}return ue(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),pi(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ue(t,0,0,0,1);return}return ue(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),pi(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ue(t,+u[0],+u[1],+u[2],1):ue(t,0,0,0,1);f=An(u.pop());case"rgb":if(u.length>=3)return ue(t,ms(u[0]),ms(u[1]),ms(u[2]),u.length===3?f:An(u[3])),pi(r,t),t;ue(t,0,0,0,1);return;case"hsla":if(u.length!==4){ue(t,0,0,0,1);return}return u[3]=An(u[3]),jf(u,t),pi(r,t),t;case"hsl":if(u.length!==3){ue(t,0,0,0,1);return}return jf(u,t),pi(r,t),t;default:return}}ue(t,0,0,0,1)}}function jf(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=An(r[1]),n=An(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ue(t,mr(_s(o,a,e+1/3)*255),mr(_s(o,a,e)*255),mr(_s(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function th(r,t){var e=_r(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Ru(e,e.length===4?"rgba":"rgb")}}function S0(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=_r(t[n]),s=_r(t[a]),l=i-n,u=Ru([mr(pa(o[0],s[0],l)),mr(pa(o[1],s[1],l)),mr(pa(o[2],s[2],l)),kl(pa(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function Ru(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function vo(r,t){var e=_r(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var eh=new aa(100);function rh(r){if(H(r)){var t=eh.get(r);return t||(t=th(r,-.1),eh.put(r,t)),t}else if(ko(r)){var e=B({},r);return e.colorStops=$(r.colorStops,function(i){return{offset:i.offset,color:th(i.color,-.1)}}),e}return r}function b0(r){return r.type==="linear"}function x0(r){return r.type==="radial"}(function(){return X.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Bl=Array.prototype.slice;function qe(r,t,e){return(t-r)*e+r}function ws(r,t,e,i){for(var n=t.length,a=0;ai?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)i.length=o;else for(var l=a;l=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=nh,l=e;if(Kt(e)){var u=D0(e);s=u,(u===1&&!St(e[0])||u===2&&!St(e[0][0]))&&(o=!0)}else if(St(e)&&!oo(e))s=ma;else if(H(e))if(!isNaN(+e))s=ma;else{var f=_r(e);f&&(l=f,s=wn)}else if(ko(e)){var h=B({},l);h.colorStops=$(e.colorStops,function(v){return{offset:v.offset,color:_r(v.color)}}),b0(e)?s=Nl:x0(e)&&(s=Fl),l=h}a===0?this.valType=s:(s!==this.valType||s===nh)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=q(i)?i:Dn[i]||Ad(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(y,p){return y.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=_a(n),u=ah(n),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,g=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var m=i?this._additiveValue:u?nn:t[l];if((_a(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=g<1?v.rawValue:d.rawValue;else if(_a(a))a===Ka?ws(m,v[n],d[n],g):T0(m,v[n],d[n],g);else if(ah(a)){var _=v[n],w=d[n],b=a===Nl;t[l]={type:b?"linear":"radial",x:qe(_.x,w.x,g),y:qe(_.y,w.y,g),colorStops:$(_.colorStops,function(x,M){var C=w.colorStops[M];return{offset:qe(x.offset,C.offset,g),color:qa(ws([],x.color,C.color,g))}}),global:w.global},b?(t[l].x2=qe(_.x2,w.x2,g),t[l].y2=qe(_.y2,w.y2,g)):t[l].r=qe(_.r,w.r,g)}else if(u)ws(m,v[n],d[n],g),i||(t[l]=qa(m));else{var S=qe(v[n],d[n],g);i?this._additiveValue=S:t[l]=S}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===ma?t[i]=t[i]+n:e===wn?(_r(t[i],nn),ya(nn,nn,n,1),t[i]=qa(nn)):e===Ka?ya(t[i],t[i],n,1):e===Id&&ih(t[i],t[i],n,1)},r}(),Eu=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Mu("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,_t(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Za(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Za(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Ri(){return new Date().getTime()}var L0=function(r){lt(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Ri()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(so(i),!e._paused&&e.update())}so(i)},t.prototype.start=function(){this._running||(this._time=Ri(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ri(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ri()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new Eu(e,i.loop);return this.addAnimator(n),n},t}(Ge),P0=300,Ss=X.domSupported,bs=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=$(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),oh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},sh=!1;function zl(r){var t=r.pointerType;return t==="pen"||t==="touch"}function I0(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function xs(r){r&&(r.zrByTouch=!0)}function R0(r,t){return fe(r.dom,new E0(r,t),!0)}function Rd(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var E0=function(){function r(t,e){this.stopPropagation=Zt,this.stopImmediatePropagation=Zt,this.preventDefault=Zt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),xe={mousedown:function(r){r=fe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=fe(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=fe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=fe(this.dom,r);var t=r.toElement||r.relatedTarget;Rd(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){sh=!0,r=fe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){sh||(r=fe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=fe(this.dom,r),xs(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),xe.mousemove.call(this,r),xe.mousedown.call(this,r)},touchmove:function(r){r=fe(this.dom,r),xs(r),this.handler.processGesture(r,"change"),xe.mousemove.call(this,r)},touchend:function(r){r=fe(this.dom,r),xs(r),this.handler.processGesture(r,"end"),xe.mouseup.call(this,r),+new Date-+this.__lastTouchMomentfh||r<-fh}var Er=[],gi=[],Cs=Bi(),Ms=Math.abs,ku=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Rr(this.rotation)||Rr(this.x)||Rr(this.y)||Rr(this.scaleX-1)||Rr(this.scaleY-1)||Rr(this.skewX)||Rr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(uh(i),this.invTransform=null);return}i=i||Bi(),e?this.getLocalTransform(i):uh(i),t&&(e?Ni(i,t,i):r0(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Er);var i=Er[0]<0?-1:1,n=Er[1]<0?-1:1,a=((Er[0]-i)*e+i)/Er[0]||0,o=((Er[1]-n)*e+n)/Er[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Bi(),Iu(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Bi(),Ni(gi,t.invTransform,e),e=gi);var i=this.originX,n=this.originY;(i||n)&&(Cs[4]=i,Cs[5]=n,Ni(gi,e,Cs),gi[4]-=i,gi[5]-=n,e=gi),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&me(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&me(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Ms(t[0]-1)>1e-10&&Ms(t[3]-1)>1e-10?Math.sqrt(Ms(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){F0(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,y=n+l;e[4]=-d*a-c*y*o,e[5]=-y*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Pu(e,e,u),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Vn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function F0(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function kd(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=oi(i[0],e.width),u+=oi(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Ds="__zr_normal__",As=Vn.concat(["ignore"]),z0=Yi(Vn,function(r,t){return r[t]=!0,r},{ignore:!1}),yi={},H0=new at(0,0,0,0),Bo=function(){function r(t){this.id=cd(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var f=H0;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(yi,i,f):kd(yi,i,f),a.x=yi.x,a.y=yi.y,o=yi.align,s=yi.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=oi(h[0],f.width),v=oi(h[1],f.height)),u=!0,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,_=void 0;y&&this.canBeInsideText()?(g=i.insideFill,m=i.insideStroke,(g==null||g==="auto")&&(g=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(g),_=!0)):(g=i.outsideFill,m=i.outsideStroke,(g==null||g==="auto")&&(g=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(g),_=!0)),g=g||"#000",(g!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=g,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=re,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wl:Gl},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&_r(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Ru(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(G(t))for(var i=t,n=_t(i),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Ds,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Ds,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(vt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Mu("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~re),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,d);var y=this._textContent,p=this._textGuide;y&&y.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~re)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=vt(n,t),o=vt(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,y){e.during(y)});for(var c=0;c0||n.force&&!o.length){var M=void 0,C=void 0,A=void 0;if(s){C={},c&&(M={});for(var w=0;w<_;w++){var g=y[w];C[g]=e[g],c?M[g]=i[g]:e[g]=i[g]}}else if(c){A={};for(var w=0;w<_;w++){var g=y[w];A[g]=Za(e[g]),G0(e,i,g)}}var b=new Eu(e,!1,!1,h?Nt(d,function(L){return L.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&M&&b.whenWithKeys(0,M,y),A&&b.whenWithKeys(0,A,y),b.whenWithKeys(u??500,s?C:i,y).delay(f||0),r.addAnimator(b,t),o.push(b)}}var Jt=function(r){lt(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=vt(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=vt(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function Ht(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?q0(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Dt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Nd),r=(+r).toFixed(t),e?r:+r}function Ke(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return K0(r)}function K0(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function Q0(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function J0(r,t){var e=Math.max(Ke(r),Ke(t)),i=r+t;return e>Nd?i:Dt(i,e)}function Fd(r){var t=Math.PI*2;return(r%t+t)%t}function po(r){return r>-dh&&r=10&&t++,t}function zd(r,t){var e=Nu(r),i=Math.pow(10,e),n=r/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function go(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function e_(r){return!isNaN(go(r))}function Hd(){return Math.round(Math.random()*9)}function Vd(r,t){return t===0?r:Vd(t,r%t)}function gh(r,t){return r==null?t:t==null?r:r*t/Vd(r,t)}function Xt(r){throw new Error(r)}function yh(r,t,e){return(t-r)*e+r}var Gd="series\0",r_="\0_ec_\0";function Vt(r){return r instanceof Array?r:r==null?[]:[r]}function mh(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i=0||a&&vt(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var C_=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],M_=Wn(C_),D_=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return M_(this,t,e)},r}(),Ul=new aa(50);function A_(r){if(typeof r=="string"){var t=Ul.get(r);return t&&t.image}else return r}function Zd(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Ul.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Fo(t)&&a.pending.push(o)):(t=Ui.loadImage(r,wh,wh),t.__zrImageSrc=r,Ul.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function wh(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=ie(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Kd(r,t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i){r.textLine="",r.isTruncated=!1;return}var o=ie(t,n);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?P_(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=ie(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function P_(r,t,e,i){for(var n=0,a=0,o=r.length;ad&&u){var y=Math.floor(d/s);f=f||c.length>y,c=c.slice(0,y)}if(r&&a&&h!=null)for(var p=qd(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g={},m=0;ms&&Es(e,r.substring(s,u),t,o),Es(e,l[2],t,o,l[1]),s=Rs.lastIndex}sn){var I=e.lines.length;S>0?(_.tokens=_.tokens.slice(0,S),g(_,b,w),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length0&&d+i.accumWidth>i.width&&(f=t.split(` `),u=!0),i.accumWidth=d}else{var y=Qd(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+v,h=y.linesWidths,f=y.lines}}else f=t.split(` `);for(var p=0;p=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var B_=Yi(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function N_(r){return O_(r)?!!B_[r]:!0}function Qd(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;he:n+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var Yl="__zr_style_"+Math.round(Math.random()*10),ri={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},zo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ri[Yl]=!0;var bh=["z","z2","invisible"],F_=["invisible"],la=function(r){lt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=_t(e),n=0;n1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(wa[0]=Ns(n)*e+r,wa[1]=Bs(n)*i+t,Sa[0]=Ns(a)*e+r,Sa[1]=Bs(a)*i+t,u(s,wa,Sa),f(l,wa,Sa),n=n%Or,n<0&&(n=n+Or),a=a%Or,a<0&&(a=a+Or),n>a&&!o?a+=Or:nn&&(ba[0]=Ns(v)*e+r,ba[1]=Bs(v)*i+t,u(s,ba,s),f(l,ba,l))}var nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Br=[],Nr=[],Pe=[],nr=[],Ie=[],Re=[],Fs=Math.min,zs=Math.max,Fr=Math.cos,zr=Math.sin,$e=Math.abs,Xl=Math.PI,cr=Xl*2,Hs=typeof Float32Array<"u",an=[];function Vs(r){var t=Math.round(r/Xl*1e8)/1e8;return t%2*Xl}function W_(r,t){var e=Vs(r[0]);e<0&&(e+=cr);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=cr?n=e+cr:t&&e-n>=cr?n=e-cr:!t&&e>n?n=e+(cr-Vs(e-n)):t&&e0&&(this._ux=$e(i/co/t)||0,this._uy=$e(i/co/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(nt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=$e(t-this._xi),n=$e(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(nt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(nt.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(nt.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),an[0]=n,an[1]=a,W_(an,o),n=an[0],a=an[1];var s=a-n;return this.addData(nt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Fr(a)*i+t,this._yi=zr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(nt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(nt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Hs&&(this.data=new Float32Array(e));for(var i=0;if.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Pe[0]=Pe[1]=Ie[0]=Ie[1]=Number.MAX_VALUE,nr[0]=nr[1]=Re[0]=Re[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;oi||$e(_)>n||c===e-1)&&(y=Math.sqrt(m*m+_*_),a=p,o=g);break}case nt.C:{var w=t[c++],b=t[c++],p=t[c++],g=t[c++],S=t[c++],x=t[c++];y=d0(a,o,w,b,p,g,S,x,10),a=S,o=x;break}case nt.Q:{var w=t[c++],b=t[c++],p=t[c++],g=t[c++];y=y0(a,o,w,b,p,g,10),a=p,o=g;break}case nt.A:var M=t[c++],C=t[c++],A=t[c++],D=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,d&&(s=Fr(L)*A+M,l=zr(L)*D+C),y=zs(A,D)*Fs(cr,Math.abs(I)),a=Fr(P)*A+M,o=zr(P)*D+C;break;case nt.R:{s=a=t[c++],l=o=t[c++];var E=t[c++],k=t[c++];y=E*2+k*2;break}case nt.Z:{var m=s-a,_=l-o;y=Math.sqrt(m*m+_*_),a=s,o=l;break}}y>=0&&(u[h++]=y,f+=y)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,y,p=0,g=0,m,_=0,w,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=e*y,!m)))t:for(var S=0;S0&&(t.lineTo(w,b),_=0),x){case nt.M:s=u=i[S++],l=f=i[S++],t.moveTo(u,f);break;case nt.L:{h=i[S++],c=i[S++];var C=$e(h-u),A=$e(c-f);if(C>n||A>a){if(v){var D=d[g++];if(p+D>m){var L=(m-p)/D;t.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break t}p+=D}t.lineTo(h,c),u=h,f=c,_=0}else{var I=C*C+A*A;I>_&&(w=h,b=c,_=I)}break}case nt.C:{var P=i[S++],E=i[S++],k=i[S++],V=i[S++],F=i[S++],N=i[S++];if(v){var D=d[g++];if(p+D>m){var L=(m-p)/D;fo(u,P,k,F,L,Br),fo(f,E,V,N,L,Nr),t.bezierCurveTo(Br[1],Nr[1],Br[2],Nr[2],Br[3],Nr[3]);break t}p+=D}t.bezierCurveTo(P,E,k,V,F,N),u=F,f=N;break}case nt.Q:{var P=i[S++],E=i[S++],k=i[S++],V=i[S++];if(v){var D=d[g++];if(p+D>m){var L=(m-p)/D;ho(u,P,k,L,Br),ho(f,E,V,L,Nr),t.quadraticCurveTo(Br[1],Nr[1],Br[2],Nr[2]);break t}p+=D}t.quadraticCurveTo(P,E,k,V),u=k,f=V;break}case nt.A:var Z=i[S++],U=i[S++],it=i[S++],ot=i[S++],pt=i[S++],mt=i[S++],te=i[S++],Ye=!i[S++],Xe=it>ot?it:ot,Ft=$e(it-ot)>.001,At=pt+mt,W=!1;if(v){var D=d[g++];p+D>m&&(At=pt+mt*(m-p)/D,W=!0),p+=D}if(Ft&&t.ellipse?t.ellipse(Z,U,it,ot,te,pt,At,Ye):t.arc(Z,U,Xe,pt,At,Ye),W)break t;M&&(s=Fr(pt)*it+Z,l=zr(pt)*ot+U),u=Fr(At)*it+Z,f=zr(At)*ot+U;break;case nt.R:s=u=i[S],l=f=i[S+1],h=i[S++],c=i[S++];var K=i[S++],ne=i[S++];if(v){var D=d[g++];if(p+D>m){var Lt=m-p;t.moveTo(h,c),t.lineTo(h+Fs(Lt,K),c),Lt-=K,Lt>0&&t.lineTo(h+K,c+Fs(Lt,ne)),Lt-=ne,Lt>0&&t.lineTo(h+zs(K-Lt,0),c+ne),Lt-=K,Lt>0&&t.lineTo(h,c+zs(ne-Lt,0));break t}p+=D}t.rect(h,c,K,ne);break;case nt.Z:if(v){var D=d[g++];if(p+D>m){var L=(m-p)/D;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}p+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=nt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function mi(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||or+s&&a>e+s||at+h&&f>i+h&&f>a+h&&f>s+h||fr+h&&u>e+h&&u>n+h&&u>o+h||ut+u&&l>i+u&&l>a+u||lr+u&&s>e+u&&s>n+u||se||f+un&&(n+=on);var c=Math.atan2(l,s);return c<0&&(c+=on),c>=i&&c<=n||c+on>=i&&c+on<=n}function Hr(r,t,e,i,n,a){if(a>t&&a>i||an?s:0}var ar=li.CMD,Vr=Math.PI*2,$_=1e-4;function Z_(r,t){return Math.abs(r-t)<$_}var zt=[-1,-1,-1],ve=[-1,-1];function q_(){var r=ve[0];ve[0]=ve[1],ve[1]=r}function K_(r,t,e,i,n,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u1&&q_(),v=Rt(t,i,a,s,ve[0]),c>1&&(d=Rt(t,i,a,s,ve[1]))),c===2?pt&&s>i&&s>a||s=0&&u<=1){for(var f=0,h=Yt(t,i,a,u),c=0;ce||s<-e)return 0;var l=Math.sqrt(e*e-s*s);zt[0]=-l,zt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Vr-1e-4){i=0,n=Vr;var f=a?1:-1;return o>=zt[0]+r&&o<=zt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Vr,n+=Vr);for(var c=0,v=0;v<2;v++){var d=zt[v];if(d+r>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=Vr+y),(y>=i&&y<=n||y+Vr>=i&&y+Vr<=n)&&(y>Math.PI/2&&y1&&(e||(s+=Hr(l,u,f,h,i,n))),p&&(l=a[d],u=a[d+1],f=l,h=u),y){case ar.M:f=a[d++],h=a[d++],l=f,u=h;break;case ar.L:if(e){if(mi(l,u,a[d],a[d+1],t,i,n))return!0}else s+=Hr(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case ar.C:if(e){if(U_(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=K_(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case ar.Q:if(e){if(Y_(l,u,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=Q_(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case ar.A:var g=a[d++],m=a[d++],_=a[d++],w=a[d++],b=a[d++],S=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(b)*_+g,v=Math.sin(b)*w+m,p?(f=c,h=v):s+=Hr(l,u,c,v,i,n);var M=(i-g)*w/_+g;if(e){if(X_(g,m,w,b,b+S,x,t,M,n))return!0}else s+=J_(g,m,w,b,b+S,x,M,n);l=Math.cos(b+S)*_+g,u=Math.sin(b+S)*w+m;break;case ar.R:f=l=a[d++],h=u=a[d++];var C=a[d++],A=a[d++];if(c=f+C,v=h+A,e){if(mi(f,h,c,h,t,i,n)||mi(c,h,c,v,t,i,n)||mi(c,v,f,v,t,i,n)||mi(f,v,f,h,t,i,n))return!0}else s+=Hr(c,h,c,v,i,n),s+=Hr(f,v,f,h,i,n);break;case ar.Z:if(e){if(mi(l,u,f,h,t,i,n))return!0}else s+=Hr(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!Z_(u,h)&&(s+=Hr(l,u,f,h,i,n)||0),s!==0}function j_(r,t,e){return Jd(r,0,!1,t,e)}function t1(r,t,e,i){return Jd(r,t,!0,e,i)}var jd=st({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ri),e1={style:st({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zo.style)},Gs=Vn.concat(["invisible","culling","z","z2","zlevel","parent"]),dt=function(r){lt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Gl:i>.2?N0:Wl}else if(e)return Wl}return Gl},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(H(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=vo(e,0)0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ai)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),t1(s,l/u,e,i)))return!0}if(this.hasFill())return j_(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ai,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:B(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ai)},t.prototype.createStyle=function(e){return Oo(jd,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=B({},n.shape),B(u,i.shape)):(u=B({},a?this.shape:n.shape),B(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=_t(u),c=0;c0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Oo(r1,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=Ou(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(la);yo.prototype.type="tspan";var i1=st({x:0,y:0},ri),n1={style:st({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zo.style)};function a1(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Tr=function(r){lt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Oo(i1,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=a1(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return n1},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new at(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(la);Tr.prototype.type="image";function o1(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Ei=Math.round;function tp(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Ei(i*2)===Ei(n*2)&&(r.x1=r.x2=jr(i,s,!0)),Ei(a*2)===Ei(o*2)&&(r.y1=r.y2=jr(a,s,!0))),r}}function ep(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=jr(i,s,!0),r.y=jr(n,s,!0),r.width=Math.max(jr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(jr(n+o,s,!1)-r.y,o===0?0:1)),r}}function jr(r,t,e){if(!t)return r;var i=Ei(r*2);return(i+Ei(t))%2===0?i/2:(i+(e?1:-1))/2}var s1=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),l1={},qt=function(r){lt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new s1},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=ep(l1,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?o1(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(dt);qt.prototype.type="rect";var Dh={fill:"#000"},Ah=2,u1={style:st({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},zo.style)},Me=function(r){lt(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Dh,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P=0&&(P=S[I],P.align==="right");)this._placeToken(P,e,M,g,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(a-(D-p)-(m-L)-C)/2;A<=I;)P=S[A],this._placeToken(P,e,M,g,D+P.width/2,"center",_),D+=P.width,A++;g+=M}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&Ws(u);c&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=kh(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var y=this._getOrCreateChild(yo),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,w=Eh("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,g.fill)),b=Rh("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!g.autoStroke||m)?(_=Ah,g.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,S&&(p.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,p.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||ai,p.opacity=Xa(u.opacity,i.opacity,1),Ph(p,u),b&&(p.lineWidth=Xa(u.lineWidth,i.lineWidth,_),p.lineDash=J(u.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=b),w&&(p.fill=w);var x=e.contentWidth,M=e.contentHeight;y.setBoundingRect(new at(Sn(p.x,x,p.textAlign),Li(p.y,M,p.textBaseline),x,M))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,y,p;if(c||e.lineHeight||u&&f){y=this._getOrCreateChild(qt),y.useStyle(y.createStyle()),y.style.fill=null;var g=y.shape;g.x=n,g.y=a,g.width=o,g.height=s,g.r=v,y.dirtyShape()}if(c){var m=y.style;m.fill=l||null,m.fillOpacity=J(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Tr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var m=y.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=J(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var w=(y||p).style;w.shadowBlur=e.shadowBlur||0,w.shadowColor=e.shadowColor||"transparent",w.shadowOffsetX=e.shadowOffsetX||0,w.shadowOffsetY=e.shadowOffsetY||0,w.opacity=Xa(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return c1(e)&&(i=[e.fontStyle,e.fontWeight,v1(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Be(i)||e.textFont||e.font},t}(la),f1={left:!0,right:1,center:1},h1={top:1,bottom:1,middle:1},Lh=["fontStyle","fontWeight","fontSize","fontFamily"];function v1(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?xu+"px":r+"px"}function Ph(r,t){for(var e=0;e=0,a=!1;if(r instanceof dt){var o=rp(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(_i(s)||_i(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=B({},i),u=B({},u),u.fill=s):!_i(u.fill)&&_i(s)?(a=!0,i=B({},i),u=B({},u),u.fill=rh(s)):!_i(u.stroke)&&_i(l)&&(a||(i=B({},i),u=B({},u)),u.stroke=rh(l)),i.style=u}}if(i&&i.z2==null){a||(i=B({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??g1)}return i}function b1(r,t,e){if(e&&e.z2==null){e=B({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??y1)}return e}function x1(r,t,e){var i=vt(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:w1(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:i?n:a.opacity*.1},o),e.style=o),e}function Us(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return S1(this,r,t,e);if(r==="blur")return x1(this,r,e);if(r==="select")return b1(this,r,e)}return e}function T1(r){r.stateProxy=Us;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Us),e&&(e.stateProxy=Us)}function Vh(r,t){!up(r,t)&&!r.__highByOuter&&rr(r,ip)}function Gh(r,t){!up(r,t)&&!r.__highByOuter&&rr(r,np)}function mo(r,t){r.__highByOuter|=1<<(t||0),rr(r,ip)}function _o(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&rr(r,np)}function C1(r){rr(r,Gu)}function op(r){rr(r,ap)}function sp(r){rr(r,m1)}function lp(r){rr(r,_1)}function up(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function fp(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=Hu(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){ap(u)}),s&&e.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function $l(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function I1(r,t,e){hp(r,!0),rr(r,T1),E1(r,t,e)}function R1(r){hp(r,!1)}function ql(r,t,e,i){i?R1(r):I1(r,t,e)}function E1(r,t,e){var i=yt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var Uh=["emphasis","blur","select"],k1={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yh(r,t,e,i){e=e||"itemStyle";for(var n=0;n1&&(o*=Ys(d),s*=Ys(d));var y=(n===a?-1:1)*Ys((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=y*o*v/s,g=y*-s*c/o,m=(r+e)/2+Ca(h)*p-Ta(h)*g,_=(t+i)/2+Ta(h)*p+Ca(h)*g,w=qh([1,0],[(c-p)/o,(v-g)/s]),b=[(c-p)/o,(v-g)/s],S=[(-1*c-p)/o,(-1*v-g)/s],x=qh(b,S);if(Jl(b,S)<=-1&&(x=sn),Jl(b,S)>=1&&(x=0),x<0){var M=Math.round(x/sn*1e6)/1e6;x=sn*2+M%2*sn}f.addData(u,m,_,o,s,w,x,h,a)}var H1=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,V1=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function G1(r){var t=new li;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=li.CMD,l=r.match(H1);if(!l)return t;for(var u=0;uP*P+E*E&&(M=A,C=D),{cx:M,cy:C,x0:-f,y0:-h,x1:M*(n/b-1),y1:C*(n/b-1)}}function K1(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Q1(r,t){var e,i=bn(t.r,0),n=bn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Qh(u-l),d=v>Xs&&v%Xs;if(d>be&&(v=d),!(i>be))r.moveTo(f,h);else if(v>Xs-be)r.moveTo(f+i*Si(l),h+i*Gr(l)),r.arc(f,h,i,l,u,!c),n>be&&(r.moveTo(f+n*Si(u),h+n*Gr(u)),r.arc(f,h,n,u,l,c));else{var y=void 0,p=void 0,g=void 0,m=void 0,_=void 0,w=void 0,b=void 0,S=void 0,x=void 0,M=void 0,C=void 0,A=void 0,D=void 0,L=void 0,I=void 0,P=void 0,E=i*Si(l),k=i*Gr(l),V=n*Si(u),F=n*Gr(u),N=v>be;if(N){var Z=t.cornerRadius;Z&&(e=K1(Z),y=e[0],p=e[1],g=e[2],m=e[3]);var U=Qh(i-n)/2;if(_=Ee(U,g),w=Ee(U,m),b=Ee(U,y),S=Ee(U,p),C=x=bn(_,w),A=M=bn(b,S),(x>be||M>be)&&(D=i*Si(u),L=i*Gr(u),I=n*Si(l),P=n*Gr(l),vbe){var Ft=Ee(g,C),At=Ee(m,C),W=Ma(I,P,E,k,i,Ft,c),K=Ma(D,L,V,F,i,At,c);r.moveTo(f+W.cx+W.x0,h+W.cy+W.y0),C0&&r.arc(f+W.cx,h+W.cy,Ft,Et(W.y0,W.x0),Et(W.y1,W.x1),!c),r.arc(f,h,i,Et(W.cy+W.y1,W.cx+W.x1),Et(K.cy+K.y1,K.cx+K.x1),!c),At>0&&r.arc(f+K.cx,h+K.cy,At,Et(K.y1,K.x1),Et(K.y0,K.x0),!c))}else r.moveTo(f+E,h+k),r.arc(f,h,i,l,u,!c);if(!(n>be)||!N)r.lineTo(f+V,h+F);else if(A>be){var Ft=Ee(y,A),At=Ee(p,A),W=Ma(V,F,D,L,n,-At,c),K=Ma(E,k,I,P,n,-Ft,c);r.lineTo(f+W.cx+W.x0,h+W.cy+W.y0),A0&&r.arc(f+W.cx,h+W.cy,At,Et(W.y0,W.x0),Et(W.y1,W.x1),!c),r.arc(f,h,n,Et(W.cy+W.y1,W.cx+W.x1),Et(K.cy+K.y1,K.cx+K.x1),c),Ft>0&&r.arc(f+K.cx,h+K.cy,Ft,Et(K.y1,K.x1),Et(K.y0,K.x0),!c))}else r.lineTo(f+V,h+F),r.arc(f,h,n,u,l,c)}r.closePath()}}}var J1=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),Uo=function(r){lt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new J1},t.prototype.buildPath=function(e,i){Q1(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(dt);Uo.prototype.type="sector";var j1=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Yu=function(r){lt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new j1},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(dt);Yu.prototype.type="ring";function tw(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(i){var a=tw(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;sUr[1]){if(s=!1,a)return s;var f=Math.abs(Ur[0]-Wr[1]),h=Math.abs(Wr[0]-Ur[1]);Math.min(f,h)>n.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function ui(r,t,e,i,n,a){qu("update",r,t,e,i,n,a)}function ua(r,t,e,i,n,a){qu("enter",r,t,e,i,n,a)}function En(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function tv(r){return!r.isGroup}function Tw(r){return r.shape!=null}function bp(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){tv(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Tw(o)&&(s.shape=B({},o.shape)),s}var a=i(r);t.traverse(function(o){if(tv(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),ui(o,l,e,yt(o).dataIndex)}}})}function Cw(r,t){return $(r,function(e){var i=e[0];i=bo(i,t.x),i=xo(i,t.x+t.width);var n=e[1];return n=bo(n,t.y),n=xo(n,t.y+t.height),[i,n]})}function Mw(r,t){var e=bo(r.x,t.x),i=xo(r.x+r.width,t.x+t.width),n=bo(r.y,t.y),a=xo(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function xp(r,t,e){var i=B({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),st(n,e),new Tr(i)):Ku(r.replace("path://",""),i,e,"center")}function Dw(r,t,e,i,n){for(var a=0,o=n[n.length-1];a1)return!1;var p=$s(v,d,f,h)/c;return!(p<0||p>1)}function $s(r,t,e,i){return r*i-e*t}function Aw(r){return r<=1e-6&&r>=-1e-6}function Ju(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=H(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(_t(l),function(f){Gi(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=yt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:st({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function ev(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ju(r,t){if(r)if(z(r))for(var e=0;e=0&&s.push(l)}),s}}const Ww={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:". "}}}},Uw={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 To="ZH",ef="EN",zi=ef,eo={},rf={},Lp=X.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||zi).toUpperCase();return r.indexOf(To)>-1?To:zi}():zi;function Pp(r,t){r=r.toUpperCase(),rf[r]=new Mt(t),eo[r]=t}function Yw(r){if(H(r)){var t=eo[r.toUpperCase()]||{};return r===To||r===ef?j(t):ct(j(t),j(eo[zi]),!1)}else return ct(j(r),j(eo[zi]),!1)}function Xw(r){return rf[r]}function $w(){return rf[zi]}Pp(ef,Ww);Pp(To,Uw);var nf=1e3,af=nf*60,kn=af*60,ge=kn*24,lv=ge*365,xn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},La="{yyyy}-{MM}-{dd}",uv={year:"{yyyy}",month:"{yyyy}-{MM}",day:La,hour:La+" "+xn.hour,minute:La+" "+xn.minute,second:La+" "+xn.second,millisecond:xn.none},Ks=["year","month","day","hour","minute","second","millisecond"],Ip=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function or(r,t){return r+="","0000".substr(0,t-r.length)+r}function Hi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Zw(r){return r===Hi(r)}function qw(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zo(r,t,e,i){var n=tr(r),a=n[of(e)](),o=n[Vi(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[qo(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Xn(e)](),h=(f-1)%12+1,c=n[Ko(e)](),v=n[Qo(e)](),d=n[Jo(e)](),y=f>=12?"pm":"am",p=y.toUpperCase(),g=i instanceof Mt?i:Xw(i||Lp)||$w(),m=g.getModel("time"),_=m.get("month"),w=m.get("monthAbbr"),b=m.get("dayOfWeek"),S=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,or(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,or(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,or(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,or(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,or(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,or(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,or(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,or(d,3)).replace(/{S}/g,d+"")}function Kw(r,t,e,i,n){var a=null;if(H(e))a=e;else if(q(e))a=e(r.value,t,{level:r.level});else{var o=B({},xn);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Zo(new Date(r.value),a,n,i)}function Rp(r,t){var e=tr(r),i=e[Vi(t)]()+1,n=e[qo(t)](),a=e[Xn(t)](),o=e[Ko(t)](),s=e[Qo(t)](),l=e[Jo(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function fv(r,t,e){var i=St(r)?tr(r):r;switch(t=t||Rp(r,e),t){case"year":return i[of(e)]();case"half-year":return i[Vi(e)]()>=6?1:0;case"quarter":return Math.floor((i[Vi(e)]()+1)/4);case"month":return i[Vi(e)]();case"day":return i[qo(e)]();case"half-day":return i[Xn(e)]()/24;case"hour":return i[Xn(e)]();case"minute":return i[Ko(e)]();case"second":return i[Qo(e)]();case"millisecond":return i[Jo(e)]()}}function of(r){return r?"getUTCFullYear":"getFullYear"}function Vi(r){return r?"getUTCMonth":"getMonth"}function qo(r){return r?"getUTCDate":"getDate"}function Xn(r){return r?"getUTCHours":"getHours"}function Ko(r){return r?"getUTCMinutes":"getMinutes"}function Qo(r){return r?"getUTCSeconds":"getSeconds"}function Jo(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Qw(r){return r?"setUTCFullYear":"setFullYear"}function Ep(r){return r?"setUTCMonth":"setMonth"}function kp(r){return r?"setUTCDate":"setDate"}function Op(r){return r?"setUTCHours":"setHours"}function Bp(r){return r?"setUTCMinutes":"setMinutes"}function Np(r){return r?"setUTCSeconds":"setSeconds"}function Fp(r){return r?"setUTCMilliseconds":"setMilliseconds"}function zp(r){if(!e_(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Hp(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var sf=dd;function tu(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Be(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?tr(r):r;if(isNaN(+l)){if(s)return"-"}else return Zo(l,i,e)}if(t==="ordinal")return Ml(r)?n(r):St(r)&&a(r)?r+"":"-";var u=go(r);return a(u)?zp(u):Ml(r)?n(r):typeof r=="boolean"?r+"":"-"}var hv=["a","b","c","d","e","f","g"],Qs=function(r,t){return"{"+r+(t??"")+"}"};function Vp(r,t,e){z(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function fi(r,t){return t=t||"transparent",H(r)?r:G(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var ro=T,jw=["left","right","top","bottom","width","height"],Pa=[["width","left","right"],["height","top","bottom"]];function Gp(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var y=f.width+(c?-c.x+f.x:0);v=a+y,v>i||l.newline?(a=0,v=y,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>n||l.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}ye(Gp,"vertical");ye(Gp,"horizontal");function Wp(r,t,e){e=sf(e||0);var i=t.width,n=t.height,a=Ht(r.left,i),o=Ht(r.top,n),s=Ht(r.right,i),l=Ht(r.bottom,n),u=Ht(r.width,i),f=Ht(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-a),isNaN(f)&&(f=n-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=i-s-u-c),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new at(a+e[3],o+e[0],u,f);return d.margin=e,d}function $n(r){var t=r.layoutMode||r.constructor.layoutMode;return G(t)?t:t?{type:t}:null}function Zn(r,t,e){var i=e&&e.ignoreSize;!z(i)&&(i=[i,i]);var n=o(Pa[0],0),a=o(Pa[1],1);u(Pa[0],r,n),u(Pa[1],r,a);function o(f,h){var c={},v=0,d={},y=0,p=2;if(ro(f,function(_){d[_]=r[_]}),ro(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&y++}),i[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(y===p||!v)return d;if(v>=p)return c;for(var g=0;g=0;l--)s=ct(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return sa(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Mt);$d(ft,Mt);No(ft);Vw(ft);Gw(ft,rS);function rS(r){var t=[];return T(ft.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=$(t,function(e){return Ne(e).main}),r!=="dataset"&&vt(t,"dataset")<=0&&t.unshift("dataset"),t}var Up="";typeof navigator<"u"&&(Up=navigator.platform||"");var bi="rgba(0, 0, 0, 0.2)";const iS={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:bi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:bi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:bi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:bi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:bi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:bi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Up.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 Yp=Q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),_e="original",jt="arrayRows",We="objectRows",ir="keyedColumns",wr="typedArray",Xp="unknown",Je="column",$i="row",ee={Must:1,Might:2,Not:3},$p=It();function nS(r){$p(r).datasetMap=Q()}function aS(r,t,e){var i={},n=Zp(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=$p(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),T(r,function(y,p){var g=G(y)?y:r[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),i[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});T(r,function(y,p){var g=y.name,m=d(y);if(f==null){var _=c.valueWayDim;v(i[g],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(i[g],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(i[g],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(y,p,g){for(var m=0;mt)return r[i];return r[e-1]}function hS(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:fS(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function vS(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ia,ln,cv,dv="\0_ec_inner",cS=1,ff=function(r){rt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new Mt(a),this._locale=new Mt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=yv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,yv(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?cv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Q(),u=i&&i.replaceMergeMainTypeMap;nS(this),T(e,function(h,c){h!=null&&(ft.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?j(h):ct(n[c],h,!0))}),u&&u.each(function(h,c){ft.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ft.topologicalTravel(s,ft.getAllClassMainTypes(),f,this);function f(h){var c=uS(this,h,Vt(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=n_(v,c,d);h_(y,h,ft),n[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],m=0,_;T(y,function(w,b){var S=w.existing,x=w.newOption;if(!x)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var M=h==="series",C=ft.getClass(h,w.keyInfo.subType,!M);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===C)S.name=w.keyInfo.name,S.mergeOption(x,this),S.optionUpdated(x,!1);else{var A=B({componentIndex:b},w.keyInfo);S=new C(x,this,this,A),B(S,A),w.brandNew&&(S.__requireNewView=!0),S.init(x,this,this),S.optionUpdated(null,!0)}}S?(p.push(S.option),g.push(S),m++):(p.push(void 0),g.push(void 0))},this),n[h]=p,a.set(h,g),o.set(h,m),h==="series"&&Ia(this)}this._seriesIndices||Ia(this)},t.prototype.getOption=function(){var e=j(this.option);return T(e,function(i,n){if(ft.hasClass(n)){for(var a=Vt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Gn(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[dv],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function bS(r,t){return r.join(",")===t.join(",")}var we=T,qn=G,mv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function js(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=mv.length;e=0;p--){var g=r[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=J0(c,m),y=m;break}}}return i[0]=c,i[1]=y,i})})}var jo=function(){function r(t){this.data=t.data||(t.sourceFormat===ir?{}:[]),this.sourceFormat=t.sourceFormat||Xp,this.seriesLayoutBy=t.seriesLayoutBy||Je,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;iy&&(y=_)}v[0]=d,v[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};Cv=(t={},t[jt+"_"+Je]={pure:!0,appendData:a},t[jt+"_"+$i]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[We]={pure:!0,appendData:a},t[ir]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[_e]={appendData:a},t[wr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(y=o.interpolatedValue[p])}return y!=null?y+"":""})}},r.prototype.getRawValue=function(t,e){return Wi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Lv(r){var t,e;return G(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function On(r){return new HS(r)}var HS=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v1&&i>0?s:o}};return a;function o(){return t=r?null:ln?-this._resultLT:0},r}(),GS=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return io(t,e)},r}();function WS(r,t){var e=new GS,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Je&&Xt(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(y,p){var g=y.name,m={index:p,name:g,displayName:y.displayName};if(s.push(m),g!=null){var _="";Gi(l,g)&&Xt(_),l[g]=m}});else for(var f=0;f65535?QS:JS}function Ti(){return[1/0,-1/0]}function jS(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Rv(r,t,e,i,n){var a=lg[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;up[1]&&(p[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=$(o,function(m){return m.property}),f=0;fg[1]&&(g[1]=p)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&it)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a=h&&m<=c||isNaN(m))&&(l[u++]=y),y++}d=!0}else if(a===2){for(var p=v[n[0]],_=v[n[1]],w=t[n[1]][0],b=t[n[1]][1],g=0;g=h&&m<=c||isNaN(m))&&(S>=w&&S<=b||isNaN(S))&&(l[u++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g=h&&m<=c||isNaN(m))&&(l[u++]=x)}else for(var g=0;gt[A][1])&&(M=!1)}M&&(l[u++]=e.getRawIndex(g))}return ug[1]&&(g[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(xi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;df&&(f=h,c=w)}D>0&&Ds&&(y=s-f);for(var p=0;pd&&(d=m,v=f+p)}var _=this.getRawIndex(h),w=this.getRawIndex(v);hf-d&&(l=f-d,s.length=l);for(var y=0;yh[1]&&(h[1]=g),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();al&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return io(e[a],this._dimensions[a])}rl={arrayRows:t,objectRows:function(e,i,n,a){return io(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return io(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),tb=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(Ra(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Qt(s)?wr:_e,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=J(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=J(h.sourceHeader,c.sourceHeader),y=J(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;n=p?[eu(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},l)]:[]}else{var g=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=g.get("source",!0);n=[eu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&Ev(a)}var o,s=[],l=[];return T(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&Ev(h),s.push(f),l.push(u._getVersionSign())}),i?o=qS(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[RS(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return T(r.blocks,function(n){var a=vg(n);a>=t&&(t=a+ +(i&&(!a||iu(n)&&!n.noHeader)))}),t}return 0}function nb(r,t,e,i){var n=t.noHeader,a=ob(vg(t)),o=[],s=t.blocks||[];je(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Gi(u,l)){var f=new VS(u[l],null);s.sort(function(y,p){return f.evaluate(y.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(y,p){var g=t.valueFormatter,m=hg(y)(g?B(B({},r),{valueFormatter:g}):r,y,p>0?a.html:0,i);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):nu(i,o.join(""),n?e:a.html);if(n)return h;var c=tu(t.header,"ordinal",r.useUTC),v=fg(i,r.renderMode).nameStyle,d=ug(i);return r.renderMode==="richText"?cg(r,c,v)+a.richText+h:nu(i,'
'+Ut(c)+"
"+h,e)}function ab(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(w){return w=z(w)?w:[w],$(w,function(b,S){return tu(b,z(v)?v[S]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":tu(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),y=!s||!a,p=!s&&a,g=fg(i,n),m=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":h)+(a?"":cg(r,c,m))+(o?"":ub(r,d,y,p,_)):nu(i,(s?"":h)+(a?"":sb(c,!s,m))+(o?"":lb(d,y,p,_)),e)}}function kv(r,t,e,i,n,a){if(r){var o=hg(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function ob(r){return{html:rb[r],richText:ib[r]}}function nu(r,t,e){var i='
',n="margin: "+e+"px 0 0",a=ug(r);return'
'+t+i+"
"}function sb(r,t,e){var i=t?"margin-left:2px":"";return''+Ut(r)+""}function lb(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],''+$(r,function(o){return Ut(o)}).join("  ")+""}function cg(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function ub(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,a)}function fb(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return fi(i)}function dg(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var il=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Hd()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=Jw({color:e,type:t,renderMode:i,markerId:n});return H(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};z(e)?T(e,function(a){return B(i,a)}):B(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function hb(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=z(s),u=fb(t,e),f,h,c,v;if(o>1||l&&!o){var d=vb(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=n.getDimensionInfo(a[0]);v=f=Wi(n,e,a[0]),h=y.type}else v=f=l?s[0]:s;var p=Ud(t),g=p&&t.name||"",m=n.getName(e),_=i?g:m;return Kn("section",{header:g,noHeader:i||!p,sortParam:v,blocks:[Kn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Be(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function vb(r,t,e,i,n){var a=t.getData(),o=Yi(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(h){f(Wi(a,e,h),h)}):T(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Kn("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var sr=It();function Ea(r,t){return r.getName(t)||r.getId(t)}var cb="__universalTransitionEnabled",xr=function(r){rt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=On({count:pb,reset:gb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=sr(this).sourceManager=new tb(this);a.prepareSource();var o=this.getInitialData(e,n);Bv(o,this),this.dataTask.context.data=o,sr(this).dataBeforeProcessed=o,Ov(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=$n(this),a=n?lf(e):{},o=this.subType;ft.hasClass(o)&&(o+="Series"),ct(e,i.getTheme().get(this.subType)),ct(e,this.getDefaultOption()),mh(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Zn(e,a,n)},t.prototype.mergeOption=function(e,i){e=ct(this.option,e,!0),this.fillDataTextStyle(e.data);var n=$n(this);n&&Zn(this.option,e,n);var a=sr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Bv(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,sr(this).dataBeforeProcessed=o,Ov(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Qt(e))for(var i=["show"],n=0;nthis.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=uf.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Ea(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cb])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){G(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f0&&this._innerSelect(e,i)}},t.registerClass=function(e){return ft.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ft);Ve(xr,zS);Ve(xr,uf);$d(xr,ft);function Ov(r){var t=r.name;Ud(r)||(r.name=db(r)||t)}function db(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return T(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function pb(r){return r.model.getRawData().count()}function gb(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),yb}function yb(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Bv(r,t){T(Em(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ye(mb,t))})}function mb(r,t){var e=au(r);return e&&e.setOutputEnd((t||this).count()),t}function au(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var er=function(){function r(){this.group=new Jt,this.uid=$o("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();zu(er);No(er);function pg(){var r=It();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var gg=It(),_b=pg(),ze=function(){function r(){this.group=new Jt,this.uid=$o("viewChart"),this.renderTask=On({plan:wb,reset:Sb}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Fv(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&Fv(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){ju(this.group,t)},r.markUpdateMethod=function(t,e){gg(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Nv(r,t,e){r&&Kl(r)&&(t==="emphasis"?mo:_o)(r,e)}function Fv(r,t,e){var i=si(r,t),n=t&&t.highlightKey!=null?O1(t.highlightKey):null;i!=null?T(Vt(i),function(a){Nv(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){Nv(a,e,n)})}zu(ze);No(ze);function wb(r){return _b(r.model)}function Sb(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&gg(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),bb[l]}var bb={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Co="\0__throttleOriginMethod",zv="\0__throttleRate",Hv="\0__throttleType";function yg(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function mg(r,t,e,i){var n=r[t];if(n){var a=n[Co]||n,o=n[Hv],s=n[zv];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=yg(a,e,i==="debounce"),n[Co]=a,n[Hv]=i,n[zv]=e}return n}}function ou(r,t){var e=r[t];e&&e[Co]&&(e.clear&&e.clear(),r[t]=e[Co])}var Vv=It(),Gv={itemStyle:Wn(Ap,!0),lineStyle:Wn(Dp,!0)},xb={lineStyle:"stroke",itemStyle:"fill"};function _g(r,t){var e=r.visualStyleMapper||Gv[t];return e||(console.warn("Unknown style type '"+t+"'."),Gv.itemStyle)}function wg(r,t){var e=r.visualDrawType||xb[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var Tb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=_g(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=wg(r,i),u=o[l],f=q(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=r.getDataParams(d),p=B({},o);p[l]=f(y),v.setItemVisual(d,"style",p)}}}},fn=new Mt,Cb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=_g(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){fn.option=l[i];var u=n(fn),f=o.ensureUniqueItemVisual(s,"style");B(f,u),fn.option.decal&&(o.setItemVisual(s,"decal",fn.option.decal),fn.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Mb={performRawSeries:!0,overallReset:function(r){var t=Q();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),Vv(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=Vv(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=wg(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},ka=Math.PI;function Db(r,t){t=t||{},st(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Jt,i=new qt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Me({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new qt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Yo({shape:{startAngle:-ka/2,endAngle:-ka/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:ka*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ka*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Sg=function(){function r(t,e,i,n){this._stageTaskMap=Q(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Q();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";je(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;T(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(n,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var y=o.getPerformArgs(c,n.block);d.each(function(p){p.perform(y)}),c.perform(y)&&(a=!0)}else h&&h.each(function(p,g){s(n,p)&&p.dirty();var m=o.getPerformArgs(p,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,i),p.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||On({plan:Rb,reset:Eb,count:Ob}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||On({reset:Ab});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Q(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";je(!t.createOnAllSeries,v),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):(h=!1,T(i.getSeries(),d));function d(y){var p=y.uid,g=l.set(p,s&&s.get(p)||(c=!0,On({reset:Lb,onDirty:Ib})));g.context={model:y,overallProgress:h},g.agent=o,g.__block=h,a._pipe(y,g)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:Bb(t)}),t.uid=$o("stageHandler"),e&&(t.visualType=e),t},r}();function Ab(r){r.overallReset(r.ecModel,r.api,r.payload)}function Lb(r){return r.overallProgress&&Pb}function Pb(){this.agent.dirty(),this.getDownstream().dirty()}function Ib(){this.agent&&this.agent.dirty()}function Rb(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function Eb(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Vt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?$(t,function(e,i){return bg(i)}):kb}var kb=bg(0);function bg(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),su=["symbol","symbolSize","symbolRotate","symbolOffset"],Xv=su.concat(["symbolKeepAspect"]),zb={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o=0&&ti(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function uu(r,t,e){for(var i=t.type==="radial"?ix(r,t,e):rx(r,t,e),n=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:St(r)?[r]:z(r)?r:null}function Dg(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&ax(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=$(e,function(a){return a/n}),i/=n)}return[e,i]}var ox=new li(!0);function Do(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function $v(r){return typeof r=="string"&&r!=="none"}function Ao(r){var t=r.fill;return t!=null&&t!=="none"}function Zv(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function qv(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function fu(r,t,e){var i=Zd(t.image,t.__image,e);if(Fo(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*km),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function sx(r,t,e,i){var n,a=Do(e),o=Ao(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||ox,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,y=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,m=void 0,_=void 0,w=void 0,b=void 0,S=void 0;(d||y)&&(S=t.getBoundingRect()),d&&(m=h?uu(r,c,S):t.__canvasFillGradient,t.__canvasFillGradient=m),y&&(_=h?uu(r,v,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(w=h||!t.__canvasFillPattern?fu(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(b=h||!t.__canvasStrokePattern?fu(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),d?r.fillStyle=m:p&&(w?r.fillStyle=w:o=!1),y?r.strokeStyle=_:g&&(b?r.strokeStyle=b:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var M,C;r.setLineDash&&e.lineDash&&(n=Dg(t),M=n[0],C=n[1]);var A=!0;(u||h&Ai)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,l?s:1),M&&(r.setLineDash(M),r.lineDashOffset=C),i||(e.strokeFirst?(a&&qv(r,e),o&&Zv(r,e)):(o&&Zv(r,e),a&&qv(r,e))),M&&r.setLineDash([])}function lx(r,t,e){var i=t.__image=Zd(e.image,t.__image,t,t.onload);if(!(!i||!Fo(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(i,u,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function ux(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||ai,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=Dg(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Do(e)&&r.strokeText(n,e.x,e.y),Ao(e)&&r.fillText(n,e.x,e.y)):(Ao(e)&&r.fillText(n,e.x,e.y),Do(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Kv=["shadowBlur","shadowOffsetX","shadowOffsetY"],Qv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ag(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){$t(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?ri.opacity:o}(i||t.blend!==e.blend)&&(a||($t(r,n),a=!0),r.globalCompositeOperation=t.blend||ri.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[kt]){if(this._disposed){this.id;return}var a,o,s;if(G(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[kt]=!0,!this._model||i){var l=new mS(this._api),u=this._theme,f=this._model=new ff;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},vu);var h={seriesTransition:s,optionChanged:!0};if(n)this[Wt]={silent:a,updateParams:h},this[kt]=!1,this.getZr().wakeUp();else{try{Mi(this),lr.update.call(this,null,h)}catch(c){throw this[Wt]=null,this[kt]=!1,c}this._ssr||this._zr.flush(),this[Wt]=null,this[kt]=!1,hn.call(this,a),vn.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||X.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(X.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;T(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(cc[n]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();T(Nn,function(_,w){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(j(e)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:b,left:S.left,top:S.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,y=h-u,p=Ui.createCanvas(),g=ch(p,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:y}),i){var m="";return T(c,function(_){var w=_.left-l,b=_.top-u;m+=''+_.dom+""}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new qt({shape:{x:0,y:0,width:d,height:y},style:{fill:e.connectedBackgroundColor}})),T(c,function(_){var w=new Tr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(w)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return ll(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return ll(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=Is(n,e);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Is(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Vb(s,l,i):Gb(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(Ox,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&Cn(s,function(d){var y=yt(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return l=p&&p.getDataParams(y.dataIndex,y.dataType,s)||{},!0}else if(y.eventData)return l=B({},y.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),T(Bn,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),T(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),Wb(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Yd(this.getDom(),yf,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Nn[i.id]},t.prototype.resize=function(e){if(!this[kt]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Wt]&&(a==null&&(a=this[Wt].silent),n=!0,this[Wt]=null),this[kt]=!0;try{n&&Mi(this),lr.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[kt]=!1,o}this[kt]=!1,hn.call(this,a),vn.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(G(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!cu[e]){var n=cu[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=B({},e);return i.type=Bn[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(G(i)||(i={silent:!!i}),!!Lo[e.type]&&this._model){if(this[kt]){this._pendingActions.push(e);return}var n=i.silent;fl.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&X.browser.weChat&&this._throttledZrFlush(),hn.call(this,n),vn.call(this,n)}},t.prototype.updateLabelLayout=function(){Te.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Mi=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),sl(h,!0),sl(h,!1),c.plan()},sl=function(h,c){for(var v=h._model,d=h._scheduler,y=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!X.node&&!X.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(y){return l(y,v,d,-1/0),!0})}}function l(h,c,v,d){var y=h.getTextContent(),p=h.getTextGuideLine(),g=h.isGroup;if(g)for(var m=h.childrenRef(),_=0;_0?{duration:y,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(En(g))return;if(g instanceof dt&&B1(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=p;var _=g.getTextContent(),w=g.getTextGuideLine();_&&(_.stateTransition=p),w&&(w.stateTransition=p)}g.__dirty&&n(g)}})}hc=function(h){return new(function(c){rt(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var y=d.__ecComponentInfo;if(y!=null)return h._model.getComponent(y.mainType,y.index);d=d.parent}},v.prototype.enterEmphasis=function(d,y){mo(d,y),se(h)},v.prototype.leaveEmphasis=function(d,y){_o(d,y),se(h)},v.prototype.enterBlur=function(d){C1(d),se(h)},v.prototype.leaveBlur=function(d){op(d),se(h)},v.prototype.enterSelect=function(d){sp(d),se(h)},v.prototype.leaveSelect=function(d){lp(d),se(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Kp))(h)},Wg=function(h){function c(v,d){for(var y=0;y=0)){dc.push(e);var a=Sg.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function qg(r,t){cu[r]=t}function Wx(r,t,e){var i=_x("registerMap");i&&i(r,t,e)}var Ux=ZS;hi(pf,Tb);hi(es,Cb);hi(es,Mb);hi(pf,zb);hi(es,Hb);hi(Ng,yx);$g(Jp);Zg(xx,PS);qg("default",Db);Zi({type:ii,event:ii,update:ii},Zt);Zi({type:ja,event:ja,update:ja},Zt);Zi({type:Pn,event:Pn,update:Pn},Zt);Zi({type:to,event:to,update:to},Zt);Zi({type:In,event:In,update:In},Zt);Xg("light",Nb);Xg("dark",Cg);function cn(r){return r==null?0:r.length||1}function pc(r){return r}var Yx=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||pc,this._newKeyGetter=n||pc,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var dn=G,ur=$,Jx=typeof Int32Array>"u"?Array:Int32Array,jx="e\0\0",gc=-1,tT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],eT=["_approximateExtent"],yc,Ha,pn,gn,cl,yn,dl,rT=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;Qg(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===_e;if(l&&!n.pure)for(var u=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),z(a)?a=a.slice():dn(a)&&(a=B({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,dn(e)?B(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){dn(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;p1(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ur(this.dimensions,this._getDimInfo,this),this.hostModel)),cl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];q(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Du(arguments)))})},r.internalField=function(){yc=function(t){var e=t._invertedIndicesMap;T(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new Jx(o.categories.length);for(var l=0;l1&&(l+="__ec__"+f),n[e]=l}}}(),r}();function iT(r,t){vf(r)||(r=jp(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Q(),a=[],o=aT(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ty(o),l=i===r.dimensionsDefine,u=l?jg(r):Jg(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Q(f),c=new sg(o),v=0;v0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function aT(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return T(t,function(a){var o;G(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function oT(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var sT=function(){function r(t){this.coordSysDims=[],this.axisMap=Q(),this.categoryAxisMap=Q(),this.coordSysName=t}return r}();function lT(r){var t=r.get("coordinateSystem"),e=new sT(t),i=uT[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var uT={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",Ce).models[0],a=r.getReferringComponents("yAxis",Ce).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Di(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Di(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",Ce).models[0];t.coordSysDims=["single"],e.set("single",n),Di(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",Ce).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Di(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Di(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Di(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Di(r){return r.get("type")==="category"}function fT(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;hT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(T(a,function(m,_){H(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;T(a,function(m){m.coordDim===v&&y++});var p={name:h,coordDim:v,coordDimIndex:y,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:c,coordDim:c,coordDimIndex:y+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function hT(r){return!Qg(r.schema)}function ta(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function vT(r,t){return ta(r,t)?r.getCalculationInfo("stackResultDimension"):t}function cT(r,t){var e=r.get("coordinateSystem"),i=hf.get(e),n;return t&&t.coordSysDims&&(n=$(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=Zx(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function dT(r,t,e){var i,n;return e&&T(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function pT(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;n=i.getSource(),a=n.sourceFormat===_e;var o=lT(t),s=cT(t,o),l=e.useEncodeDefaulter,u=q(l)?l:l?ye(aS,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=iT(n,f),c=dT(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=fT(t,{schema:h,store:v}),y=new rT(h,t);y.setCalculationInfo(d);var p=c!=null&&gT(n)?function(g,m,_,w){return w===c?_:this.defaultDimValueGetter(g,m,_,w)}:null;return y.hasItemOption=!1,y.initData(a?n:v,null,p),y}function gT(r){if(r.sourceFormat===_e){var t=yT(r.data||[]);return!z(oa(t))}}function yT(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();No(Ue);var mT=0,du=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++mT}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&$(i,_T);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!H(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Q(this.categories))},r}();function _T(r){return G(r)&&r.value!=null?r.value:r+""}function pu(r){return r.type==="interval"||r.type==="log"}function wT(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=zd(a/t);e!=null&&oi&&(o=n.interval=i);var s=n.intervalPrecision=ey(o),l=n.niceTickExtent=[Dt(Math.ceil(r[0]/o)*o,s),Dt(Math.floor(r[1]/o)*o,s)];return ST(l,r),n}function pl(r){var t=Math.pow(10,Nu(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Dt(e*t)}function ey(r){return Ke(r)+2}function mc(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function ST(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),mc(r,0,t),mc(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function rs(r,t){return r>=t[0]&&r<=t[1]}function is(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function ns(r,t){return r*(t[1]-t[0])+t[0]}var wf=function(r){rt(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new du({})),z(n)&&(n=new du({categories:$(n,function(a){return G(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),rs(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),is(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(ns(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Ue);Ue.registerClass(wf);var Zr=Dt,qi=function(r){rt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return rs(e,this._extent)},t.prototype.normalize=function(e){return is(e,this._extent)},t.prototype.scale=function(e){return ns(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ey(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:Zr(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function DT(r){var t=MT(r),e=[];return T(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Ht(i.get("barWidth"),s),y=Ht(i.get("barMaxWidth"),s),p=Ht(i.get("barMinWidth")||(IT(i)?.5:1),s),g=i.get("barGap"),m=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:y,barMinWidth:p,barGap:g,barCategoryGap:m,axisKey:iy(a),stackId:TT(i)})}),AT(e)}function AT(r){var t={};T(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var c=i.barMinWidth;c&&(l[u].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return T(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=_t(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ht(s,o),f=Ht(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),T(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var w=g.width;m&&(w=Math.min(w,m)),_&&(w=Math.max(w,_)),g.width=w,h-=w+f*w,c--}else{var w=v;m&&mw&&(w=_),w!==v&&(g.width=w,h-=w+f*w,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,y;T(a,function(g,m){g.width||(g.width=v),y=g,d+=g.width*(1+f)}),y&&(d-=y.width*f);var p=-d/2;T(a,function(g,m){e[n][m]=e[n][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),e}function LT(r,t,e){if(r&&t){var i=r[iy(t)];return i}}function PT(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function IT(r){return r.pipelineContext&&r.pipelineContext.large}var RT=function(r,t,e,i){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var s=Va.length,l=Math.min(RT(Va,this._approxInterval,0,s),s-1);this._interval=Va[l][1],this._minLevelUnit=Va[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return St(e)?e:+tr(e)},t.prototype.contain=function(e){return rs(this.parse(e),this._extent)},t.prototype.normalize=function(e){return is(this.parse(e),this._extent)},t.prototype.scale=function(e){return ns(e,this._extent)},t.type="time",t}(qi),Va=[["second",nf],["minute",af],["hour",kn],["quarter-day",kn*6],["half-day",kn*12],["day",ge*1.2],["half-week",ge*3.5],["week",ge*7],["month",ge*31],["quarter",ge*95],["half-year",lv/2],["year",lv]];function ET(r,t,e,i){var n=tr(t),a=tr(e),o=function(d){return fv(n,d,i)===fv(a,d,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function kT(r,t){return r/=ge,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function OT(r){var t=30*ge;return r/=t,r>6?6:r>3?3:r>2?2:1}function BT(r){return r/=kn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function _c(r,t){return r/=t?af:nf,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function NT(r){return zd(r)}function FT(r,t,e){var i=new Date(r);switch(Hi(t)){case"year":case"month":i[Ep(e)](0);case"day":i[kp(e)](1);case"hour":i[Op(e)](0);case"minute":i[Bp(e)](0);case"second":i[Np(e)](0),i[Fp(e)](0)}return i.getTime()}function zT(r,t,e,i){var n=1e4,a=Ip,o=0;function s(A,D,L,I,P,E,k){for(var V=new Date(D),F=D,N=V[I]();F1&&E===0&&L.unshift({value:L[0].value-F})}}for(var E=0;E=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(p),h>_||r===a[v]))break}f=[]}}}for(var w=Nt($(u,function(A){return Nt(A,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(A){return A.length>0}),b=[],S=w.length-1,v=0;v0;)a*=10;var s=[Dt(GT(i[0]/a)*a),Dt(VT(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Fn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Se(e)/Se(this.base),rs(e,this._extent)},t.prototype.normalize=function(e){return e=Se(e)/Se(this.base),is(e,this._extent)},t.prototype.scale=function(e){return e=ns(e,this._extent),Ga(this.base,e)},t.type="log",t}(Ue),ay=Sf.prototype;ay.getMinorTicks=Fn.getMinorTicks;ay.getLabel=Fn.getLabel;function Wa(r,t){return HT(r,Ke(t))}Ue.registerClass(Sf);var WT=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[YT[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=UT[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),UT={min:"_determinedMin",max:"_determinedMax"},YT={min:"_dataMin",max:"_dataMax"};function XT(r,t,e){var i=r.rawExtentInfo;return i||(i=new WT(r,t,e),r.rawExtentInfo=i,i)}function Ua(r,t){return t==null?null:oo(t)?NaN:r.parse(t)}function oy(r,t){var e=r.type,i=XT(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=CT("bar",o),l=!1;if(T(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=DT(s),f=$T(n,a,t,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function $T(r,t,e,i){var n=e.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=LT(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;T(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function Sc(r,t){var e=t,i=oy(r,e),n=i.extent,a=e.get("splitNumber");r instanceof Sf&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ZT(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wf({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new ny({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ue.getClass(t)||qi)}}function qT(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Ki(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):H(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a??"");return o}}(t):q(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(bf(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function bf(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function KT(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof wf?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=Ki(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f=0||(bc.push(r),q(r)&&(r={install:r}),r.install(tC))}var ra=It();function ly(r,t){var e=$(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function eC(r){var t=r.getLabelModel().get("customValues");if(t){var e=Ki(r),i=r.scale.getExtent(),n=ly(r,t),a=Nt(n,function(o){return o>=i[0]&&o<=i[1]});return{labels:$(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?iC(r):aC(r)}function rC(r,t){var e=r.getTickModel().get("customValues");if(e){var i=r.scale.getExtent(),n=ly(r,e);return{ticks:Nt(n,function(a){return a>=i[0]&&a<=i[1]})}}return r.type==="category"?nC(r,t):{ticks:$(r.scale.getTicks(),function(a){return a.value})}}function iC(r){var t=r.getLabelModel(),e=uy(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function uy(r,t){var e=fy(r,"labels"),i=xf(t),n=hy(e,i);if(n)return n;var a,o;return q(i)?a=dy(r,i):(o=i==="auto"?oC(r):i,a=cy(r,o)),vy(e,i,{labels:a,labelCategoryInterval:o})}function nC(r,t){var e=fy(r,"ticks"),i=xf(t),n=hy(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),q(i))a=dy(r,i,!0);else if(i==="auto"){var s=uy(r,r.getLabelModel());o=s.labelCategoryInterval,a=$(s.labels,function(l){return l.tickValue})}else o=i,a=cy(r,o,!0);return vy(e,i,{ticks:a,tickCategoryInterval:o})}function aC(r){var t=r.scale.getTicks(),e=Ki(r);return{labels:$(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function fy(r,t){return ra(r)[t]||(ra(r)[t]=[])}function hy(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),c=0,v=0;l<=a[1];l+=s){var d=0,y=0,p=Ou(e({value:l}),t.font,"center","top");d=p.width*1.3,y=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,y,7)}var g=c/f,m=v/h;isNaN(g)&&(g=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(g,m))),w=ra(r.model),b=r.getExtent(),S=w.lastAutoInterval,x=w.lastTickCount;return S!=null&&x!=null&&Math.abs(S-_)<=1&&Math.abs(x-o)<=1&&S>_&&w.axisExtent0===b[0]&&w.axisExtent1===b[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=b[0],w.axisExtent1=b[1]),_}function lC(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function cy(r,t,e){var i=Ki(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=sy(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&y(a[0]);for(var d=u;d<=a[1];d+=l)y(d);v&&d-l!==a[1]&&y(a[1]);function y(p){var g={value:p};s.push(e?p:{formattedLabel:i(g),rawLabel:n.getLabel(g),tickValue:p})}return s}function dy(r,t,e){var i=r.scale,n=Ki(r),a=[];return T(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var xc=[0,1],uC=function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Q0(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),Tc(i,n.count())),ph(t,xc,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Tc(i,n.count()));var a=ph(t,i,xc,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=rC(this,e),n=i.ticks,a=$(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return fC(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=$(i,function(a){return $(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return eC(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return sC(this)},r}();function Tc(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function fC(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;T(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Dt(v),d=Dt(d),h?v>d:v-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(xr);function py(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Wi(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o=0&&i.push(t[a])}return i.join(" ")}var Tf=function(r){rt(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=Jn(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=pC,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mo(this.childAt(0))},t.prototype.downplay=function(){_o(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):ui(c,v,s,i),dw(c)}if(this._updateCommon(e,i,l,n,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ua(c,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,y,p,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,y=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),y=tf(m),p=_.getShallow("scale"),g=m.getShallow("cursor")}var w=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var b=Mg(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var S=e.getItemVisual(i,"style"),x=S.fill;if(s instanceof Tr){var M=s.style;s.useStyle(B({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},S))}else s.__isEmptyBrush?s.useStyle(B({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(i,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Cp(s,y,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:x,defaultOpacity:S.opacity});function L(E){return D?e.getName(E):py(e,E)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),ql(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=yt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&So(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();So(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return ex(e.getItemVisual(i,"symbolSize"))},t}(Jt);function pC(r,t){this.parent.drift(r,t)}function gl(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Cc(r){return r!=null&&!G(r)&&(r={isIgnore:r}),r||{}}function Mc(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:tf(t),cursorStyle:t.get("cursor")}}var gC=function(){function r(t){this.group=new Jt,this._SymbolCtor=t||Tf}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Cc(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Mc(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var c=f(h);if(gl(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!gl(t,d,h,e)){i.remove(v);return}var y=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==y)i.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):ui(v,g,n)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Mc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Cc(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=i[0]:i[1]<0&&(e=i[1]),e}function yy(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function mC(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function _C(r,t,e,i,n,a,o,s){for(var l=mC(r,t),u=[],f=[],h=[],c=[],v=[],d=[],y=[],p=gy(n,t,o),g=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||y<0)break;if(ni(g,m)){if(l){y+=a;continue}break}if(y===e)r[a>0?"moveTo":"lineTo"](g,m),h=g,c=m;else{var _=g-u,w=m-f;if(_*_+w*w<.5){y+=a;continue}if(o>0){for(var b=y+a,S=t[b*2],x=t[b*2+1];S===g&&x===m&&p=i||ni(S,x))v=g,d=m;else{A=S-u,D=x-f;var P=g-u,E=S-g,k=m-f,V=x-m,F=void 0,N=void 0;if(s==="x"){F=Math.abs(P),N=Math.abs(E);var Z=A>0?1:-1;v=g-Z*F*o,d=m,L=g+Z*N*o,I=m}else if(s==="y"){F=Math.abs(k),N=Math.abs(V);var U=D>0?1:-1;v=g,d=m-U*F*o,L=g,I=m+U*N*o}else F=Math.sqrt(P*P+k*k),N=Math.sqrt(E*E+V*V),C=N/(N+F),v=g-A*o*(1-C),d=m-D*o*(1-C),L=g+A*o*C,I=m+D*o*C,L=fr(L,hr(S,g)),I=fr(I,hr(x,m)),L=hr(L,fr(S,g)),I=hr(I,fr(x,m)),A=L-g,D=I-m,v=g-A*F/N,d=m-D*F/N,v=fr(v,hr(u,g)),d=fr(d,hr(f,m)),v=hr(v,fr(u,g)),d=hr(d,fr(f,m)),A=g-v,D=m-d,L=g+A*N/F,I=m+D*N/F}r.bezierCurveTo(h,c,v,d,g,m),h=L,c=I}else r.lineTo(g,m)}u=g,f=m,y+=a}return p}var my=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),wC=function(r){rt(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new my},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&ni(n[o*2-2],n[o*2-1]);o--);for(;a=0){var w=u?(d-l)*_+l:(v-s)*_+s;return u?[e,w]:[w,e]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],y=a[h++],p=a[h++],g=a[h++],m=a[h++];var b=u?uo(s,v,y,g,e,f):uo(l,d,p,m,e,f);if(b>0)for(var S=0;S=0){var w=u?Rt(l,d,p,m,x):Rt(s,v,y,g,x);return u?[e,w]:[w,e]}}s=g,l=m;break}}},t}(dt),SC=function(r){rt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(my),bC=function(r){rt(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new SC},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&ni(n[s*2-2],n[s*2-1]);s--);for(;ot){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function AC(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=t.getAxis(n),u=$(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=DC(u,n==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,y=c[0].coord-d,p=c[v-1].coord+d,g=p-y;if(g<.001)return"transparent";T(c,function(_){_.offset=(_.coord-y)/g}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new mp(0,0,0,0,c,!0);return m[n]=y,m[n+"2"]=p,m}}}function LC(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&PC(a,t))){var o=t.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function PC(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;oi)return!1;return!0}function IC(r,t){return isNaN(r)||isNaN(t)}function RC(r){for(var t=r.length/2;t>0&&IC(r[t*2-2],r[t*2-1]);t--);return t-1}function Ic(r,t){return[r[t*2],r[t*2+1]]}function EC(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function _y(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var N=d.getState("emphasis").style;N.lineWidth=+d.style.lineWidth+1}yt(d).seriesIndex=e.seriesIndex,ql(d,k,V,F);var Z=Pc(e.get("smooth")),U=e.get("smoothMonotone");if(d.setShape({smooth:Z,smoothMonotone:U,connectNulls:x}),y){var it=s.getCalculationInfo("stackedOnSeries"),ot=0;y.useStyle(st(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),it&&(ot=Pc(it.get("smooth"))),y.setShape({smooth:Z,stackedOnSmooth:ot,smoothMonotone:U,connectNulls:x}),Yh(y,e,"areaStyle"),yt(y).seriesIndex=e.seriesIndex,ql(y,k,V,F)}var pt=this._changePolyState;s.eachItemGraphicEl(function(mt){mt&&(mt.onHoverStateChange=pt)}),this._polyline.onHoverStateChange=pt,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,i){yt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=si(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;u=new Tf(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ze.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=si(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ze.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;Hh(this._polyline,e),i&&Hh(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new wC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new bC({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");q(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=q(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var y=v;if(y){var p=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(n)if(o){var w=n,b=i.pointToCoord(p);a?(g=w.startAngle,m=w.endAngle,_=-b[1]/180*Math.PI):(g=w.r0,m=w.r,_=b[0])}else{var S=n;a?(g=S.x,m=S.x+S.width,_=v.x):(g=S.y+S.height,m=S.y,_=v.y)}var x=m===g?0:(_-g)/(m-g);l&&(x=1-x);var M=q(h)?h(d):f*x+c,C=y.getSymbolPath(),A=C.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:M}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(_y(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Me({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=RC(l);f>=0&&(Cp(s,tf(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?dC(o,v):py(o,h)},enableTextSetter:!0},kC(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),d=s.get("precision"),y=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,_=i.shape,w=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?y:0)*(m?-1:1),S=(g?0:-y)*(m?-1:1),x=g?"x":"y",M=EC(h,w,x),C=M.range,A=C[1]-C[0],D=void 0;if(A>=1){if(A>1&&!v){var L=Ic(h,C[0]);u.attr({x:L[0]+b,y:L[1]+S}),o&&(D=c.getRawValue(C[0]))}else{var L=f.getPointOn(w,x);L&&u.attr({x:L[0]+b,y:L[1]+S});var I=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=g_(n,d,I,P,M.t))}a.lastFrameIndex=C[0]}else{var E=e===1||a.lastFrameIndex>0?C[0]:0,L=Ic(h,E);o&&(D=c.getRawValue(E)),u.attr({x:L[0]+b,y:L[1]+S})}if(o){var k=Mp(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=_C(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,y=c.next,p=c.stackedOnNext;if(o&&(d=vr(c.stackedOnCurrent,c.current,n,o,l),v=vr(c.current,null,n,o,l),p=vr(c.stackedOnNext,c.next,n,o,l),y=vr(c.next,null,n,o,l)),Lc(v,y)>3e3||f&&Lc(d,p)>3e3){u.stopAnimation(),u.setShape({points:y}),f&&(f.stopAnimation(),f.setShape({points:y,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var g={shape:{points:y}};c.current!==v&&(g.shape.__points=c.next),u.stopAnimation(),ui(u,g,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),ui(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,w=0;w<_.length;w++){var b=_[w].cmd;if(b==="="){var S=e.getItemGraphicEl(_[w].idx1);S&&m.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,M=0;Mt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;H(a)?d=NC[a]:q(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,FC))}}}}}function HC(r){r.registerChartView(OC),r.registerSeriesModel(cC),r.registerLayout(BC("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,zC("line"))}var VC=function(r){rt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ft),yu=function(r){rt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ce).models[0]},t.type="cartesian2dAxis",t}(ft);Ve(yu,jT);var wy={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},GC=ct({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},wy),Cf=ct({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},wy),WC=ct({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Cf),UC=st({logBase:10},Cf);const YC={category:GC,value:Cf,time:WC,log:UC};var XC={value:1,category:1,time:1,log:1};function Rc(r,t,e,i){T(XC,function(n,a){var o=ct(ct({},YC[a],!0),i,!0),s=function(l){rt(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=$n(this),v=c?lf(f):{},d=h.getTheme();ct(f,d.get(a+"Axis")),ct(f,this.getDefaultOption()),f.type=Ec(f),c&&Zn(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=du.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Ec)}function Ec(r){return r.type||(r.data?"category":"value")}var $C=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return $(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Nt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),mu=["x","y"];function kc(r){return r.type==="interval"||r.type==="time"}var ZC=function(r){rt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=mu,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!kc(e)||!kc(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-n[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Iu([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new at(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return me(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return me(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,l=Math.max(n[0],n[1])-o+e;return new at(a,o,s,l)},t}($C),qC=function(r){rt(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(uC);function _u(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var y=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(y,d[1]),d[0])}a.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Hn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-g:g,a.z2=1,a}function Oc(r){return r.get("coordinateSystem")==="cartesian2d"}function Bc(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Ce).models[0];t[i]=a}),t}var ml=Math.log;function KC(r,t,e){var i=qi.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=oy(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=ml(r.base);u=[ml(u[0])/c,ml(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=i.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=i.getInterval.call(r),y=u[0],p=u[1];if(f&&h)d=(p-y)/o;else if(f)for(p=u[0]+d*o;pu[0]&&isFinite(y)&&isFinite(u[0]);)d=pl(d),y=u[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=pl(d));var m=d*o;p=Math.ceil(u[1]/d)*d,y=Dt(p-m),y<0&&u[0]>=0?(y=0,p=Dt(m)):p>0&&u[1]<=0&&(p=0,y=-Dt(m))}var _=(n[0].value-a[0].value)/s,w=(n[o].value-a[o].value)/s;i.setExtent.call(r,y+d*_,p+d*w),i.setInterval.call(r,d),(_||w)&&i.setNiceExtent.call(r,y+d,p-d)}var QC=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=mu,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=_t(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,y=v.scale;pu(y)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Sc(y,d),pu(y)&&(s=v))}f.length&&(s||(s=f.pop(),Sc(s.scale,s.model)),T(f,function(p){KC(p.scale,p.model,s.scale)}))}}n(i.x),n(i.y);var a={};T(i.x,function(o){Nc(i,"y",o,a)}),T(i.y,function(o){Nc(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=Wp(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(T(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=KT(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),T(this._coordsList,function(u){u.calcAffineTransform()});function l(){T(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),JC(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}G(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n0?"top":"bottom",a="center"):po(n-gr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),zc={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(me(s,s,o),me(l,l,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new br({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Un(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);H(c)&&(c=[c,c]),(H(v)||St(v))&&(v=[v,v]);var d=Mg(t.get(["axisLine","symbolOffset"])||0,v),y=v[0],p=v[1];T([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,m){if(c[m]!=="none"&&c[m]!=null){var _=Jn(c[m],-y/2,-p/2,y,p,f.stroke,!0),w=g.r+g.offset,b=u?l:s;_.attr({rotation:g.rotate,x:b[0]+w*Math.cos(r.rotation),y:b[1]-w*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=eM(e,i,t,r),a=iM(e,i,t,r);if(tM(t,a,n),rM(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=hC($(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));vC(o)}},axisName:function(r,t,e,i){var n=Hn(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,Vc(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*gr/180);var d;Vc(a)?c=Sr.innerTextLayout(r.rotation,v??r.rotation,o):(c=jC(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var y=s.getFont(),p=t.get("nameTruncate",!0)||{},g=p.ellipsis,m=Hn(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Me({x:h[0],y:h[1],rotation:c.rotation,silent:Sr.isLabelSilent(t),style:Yn(s,{text:n,font:y,overflow:"truncate",width:m,ellipsis:g,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Ju({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var w=Sr.makeAxisEventDataBase(t);w.targetType="axisName",w.name=n,yt(_).eventData=w}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function jC(r,t,e,i){var n=Fd(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return po(n-gr/2)?(o=l?"bottom":"top",a="center"):po(n-gr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",ngr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function tM(r,t,e){if(!sy(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];i===!1?(le(a),le(u)):Hc(a,o)&&(i?(le(o),le(f)):(le(a),le(u))),n===!1?(le(s),le(h)):Hc(l,s)&&(n?(le(l),le(c)):(le(s),le(h)))}}function le(r){r&&(r.ignore=!0)}function Hc(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=Lu([]);return Pu(n,n,-r.rotation),e.applyTransform(Ni([],n,r.getLocalTransform())),i.applyTransform(Ni([],n,t.getLocalTransform())),e.intersect(i)}}function Vc(r){return r==="middle"||r==="center"}function Sy(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l=0||r===t}function uM(r){var t=Mf(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=wu(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),os)return!0;if(o){var l=Mf(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=Jr(t).pointerEl=new Lw[a.type](Uc(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Jr(t).labelEl=new Me(Uc(e.label));t.add(a),Xc(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Jr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=Jr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),Xc(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=xp(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_d(u.event)},onmousedown:Sl(this._onHandleDragMove,this,0,0),drift:Sl(this._onHandleDragMove,this),ondragend:Sl(this._onHandleDragEnd,this)}),i.add(n)),$c(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,mg(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Yc(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(bl(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(bl(n)),Jr(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ou(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function Yc(r,t,e,i){Cy(Jr(e).lastProp,i)||(Jr(e).lastProp=i,t?ui(e,i,r):(e.stopAnimation(),e.attr(i)))}function Cy(r,t){if(G(r)&&G(t)){var e=!0;return T(t,function(i,n){e=e&&Cy(r[n],i)}),!!e}else return r===t}function Xc(r,t){r[t.get(["label","show"])?"show":"hide"]()}function bl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function $c(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function wM(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function SM(r,t,e,i,n){var a=e.get("value"),o=My(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=sf(s.get("padding")||0),u=s.getFont(),f=Ou(o,u),h=n.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=v),y==="middle"&&(h[1]-=v/2),bM(h,c,v,i);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Yn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function bM(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function My(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:bf(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),H(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function Dy(r,t,e){var i=Bi();return Pu(i,i,e.rotation),El(i,i,e.position),Qu([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function xM(r,t,e,i,n,a){var o=Sr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),SM(t,i,n,a,{position:Dy(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function TM(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function CM(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var MM=function(r){rt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=Zc(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=wM(a),v=DM[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=_u(l.model,n);xM(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=_u(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Dy(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Zc(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(_M);function Zc(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var DM={line:function(r,t,e){var i=TM([t,e[0]],[t,e[1]],qc(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:CM([t-i/2,e[0]],[i,n],qc(r))}}};function qc(r){return r.dim==="x"?0:1}var AM=function(r){rt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ft),Qe=It(),LM=T;function Ay(r,t,e){if(!X.node){var i=t.getZr();Qe(i).records||(Qe(i).records={}),PM(i,t);var n=Qe(i).records[r]||(Qe(i).records[r]={});n.handler=e}}function PM(r,t){if(Qe(r).initialized)return;Qe(r).initialized=!0,e("click",ye(Kc,"click")),e("mousemove",ye(Kc,"mousemove")),e("globalout",RM);function e(i,n){r.on(i,function(a){var o=EM(t);LM(Qe(r).records,function(s){s&&n(s,a,o.dispatchAction)}),IM(o.pendings,t)})}}function IM(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function RM(r,t,e){r.handler("leave",null,e)}function Kc(r,t,e,i){t.handler(r,e,i)}function EM(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function bu(r,t){if(!X.node){var e=t.getZr(),i=(Qe(e).records||{})[r];i&&(Qe(e).records[r]=null)}}var kM=function(r){rt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Ay("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){bu("axisPointer",i)},t.prototype.dispose=function(e,i){bu("axisPointer",i)},t.type="axisPointer",t}(er);function Ly(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=si(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(y)||[]}else e=l.dataToPoint(a.getValues($(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var Qc=It();function OM(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||wt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){ao(n)&&(n=Ly({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=ao(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||ao(n),c={},v={},d={list:[],map:{}},y={showPointer:ye(NM,v),showTooltip:ye(FM,d)};T(s.coordSysMap,function(g,m){var _=l||g.containPoint(n);T(s.coordSysAxesInfo[m],function(w,b){var S=w.axis,x=GM(u,w);if(!h&&_&&(!u||x)){var M=x&&x.value;M==null&&!l&&(M=S.pointToData(n)),M!=null&&Jc(w,M,y,!1,c)}})});var p={};return T(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&T(_.axesInfo,function(w,b){var S=v[b];if(w!==g&&S){var x=S.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,jc(w),jc(g)))),p[g.key]=x}})}),T(p,function(g,m){Jc(f[m],g,y,!0,c)}),zM(v,f,c),HM(d,n,r,o),VM(f,o,e),c}}function Jc(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=BM(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function BM(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,y=Math.abs(d);y<=o&&((y=0&&s<0)&&(o=y,s=d,n=h,a.length=0),T(c,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:n}}function NM(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function FM(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=ia(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function zM(r,t,e){var i=e.axesInfo=[];T(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function HM(r,t,e,i){if(ao(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function VM(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=Qc(i)[n]||{},o=Qc(i)[n]={};T(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];T(a,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function GM(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function jc(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function ao(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Py(r){by.registerAxisPointerClass("CartesianAxisPointer",MM),r.registerComponentModel(AM),r.registerComponentView(kM),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=nM(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},OM)}function WM(r){ea(mM),ea(Py)}var UM=function(r){rt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ft);function Iy(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Ry(r){if(X.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'
'}function QM(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=X.transformSupported?","+Df+i:",left"+i+",top"+i),$M+":"+n}function td(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!X.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=X.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+Df+":"+o+";":[["top",0],["left",0],[Ey,o]]}function JM(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=J(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function jM(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=dg(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&n&&i.push(QM(n,e)),a&&i.push("background-color:"+a),T(["width","color","radius"],function(v){var d="border-"+v,y=Hp(d),p=r.get(y);p!=null&&i.push(d+":"+p+(v==="color"?"":"px"))}),i.push(JM(f)),h!=null&&i.push("padding:"+sf(h).join("px ")+"px"),i.join(";")+";"}function ed(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&Um(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var tD=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,X.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(H(a)?document.querySelector(a):zn(a)?a:q(a)&&a(t.getDom()));ed(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();fe(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=XM(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=ZM+jM(t,!this._firstShow,this._longHide)+td(a[0],a[1],!0)+("border-color:"+fi(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(a)&&i.get("trigger")==="item"&&!Iy(i)&&(s=KM(i,n,a)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||X.node||!n.getDom())){var o=nd(a,n);this._ticket="";var s=a.dataByCoordSys,l=sD(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=rD;f.x=a.x,f.y=a.y,f.update(),yt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=Ly(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(nd(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=mn([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=yt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Cn(n,function(f){if(yt(f).dataIndex!=null)return l=f,!0;if(yt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=wt(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=mn([i.tooltipOption],a),l=this._renderMode,u=[],f=Kn("section",{blocks:[],noHeader:!0}),h=[],c=new il;T(e,function(m){T(m.dataByAxis,function(_){var w=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!w||b==null)){var S=My(b,w.axis,n,_.seriesDataIndices,_.valueLabelOpt),x=Kn("section",{header:S,noHeader:!Be(S),sortBlocks:!0,blocks:[]});f.blocks.push(x),T(_.seriesDataIndices,function(M){var C=n.getSeriesByIndex(M.seriesIndex),A=M.dataIndexInside,D=C.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=bf(w.axis,{value:b}),D.axisValueLabel=S,D.marker=c.makeTooltipMarker("item",fi(D.color),l);var L=Lv(C.formatTooltip(A,!0,null)),I=L.frag;if(I){var P=mn([C],a).get("valueFormatter");x.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),y=kv(f,c,l,d,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var p=l==="richText"?` `:"
",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=yt(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,y=mn([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,h),m=new il;g.marker=m.makeTooltipMarker("item",fi(g.color),v);var _=Lv(u.formatTooltip(f,!1,h)),w=y.get("order"),b=y.get("valueFormatter"),S=_.frag,x=S?kv(b?B({valueFormatter:b},S):S,m,v,w,a.get("useUTC"),y.get("textStyle")):_.text,M="item_"+u.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,x,g,M,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=yt(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(H(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=j(l),l.content=Ut(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,d=mn(h,this._tooltipModel,v?{position:v}:null),y=d.get("content"),p=Math.random()+"",g=new il;this._showOrMove(d,function(){var m=j(d.get("formatterParams")||{});this._showTooltipContent(d,y,m,p,e.offsetX,e.offsetY,e.position,i,g)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),y=d.color;if(c)if(H(c)){var p=e.ecModel.get("useUTC"),g=z(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,m&&(v=Zo(g.axisValue,v,p)),v=Vp(v,n,!0)}else if(q(c)){var _=wt(function(w,b){w===this._ticket&&(h.setContent(b,f,e,y,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,y,l),h.show(e,y),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||z(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),q(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(i))n=Ht(i[0],u),a=Ht(i[1],f);else if(G(i)){var y=i;y.width=h[0],y.height=h[1];var p=Wp(y,{width:u,height:f});n=p.x,a=p.y,c=null,v=null}else if(H(i)&&l){var g=oD(i,d,h,e.get("borderWidth"));n=g[0],a=g[1]}else{var g=nD(n,a,o,u,f,c?null:20,v?null:20);n=g[0],a=g[1]}if(c&&(n-=ad(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=ad(v)?h[1]/2:v==="bottom"?h[1]:0),Iy(e)){var g=aD(n,a,o,u,f);n=g[0],a=g[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&T(u,function(c,v){var d=h[v]||{},y=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&y.length===p.length,o&&T(y,function(g,m){var _=p[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(g){var m=g.seriesIndex,_=i[m],w=a[m];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){X.node||!i.getDom()||(ou(this,"_updatePosition"),this._tooltipContent.dispose(),bu("itemTooltip",i))},t.type="tooltip",t}(er);function mn(r,t,e){var i=t.ecModel,n;e?(n=new Mt(e,i,i),n=new Mt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Mt&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(n=new Mt(o,n,i)))}return n}function nd(r,t){return r.dispatchAction||wt(t.dispatchAction,t)}function nD(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function aD(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function oD(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function ad(r){return r==="center"||r==="middle"}function sD(r,t,e){var i=Fu(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=sa(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=yt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function lD(r){ea(Py),r.registerComponentModel(UM),r.registerComponentView(iD),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Zt)}function od(r,t,e){var i=Ui.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var xl=function(r){lt(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||co,typeof e=="string"?o=od(e,i,n):G(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(yd(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=od("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new at(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new at(0,0,0,0);_.copy(m),o.push(_)}else{for(var w=!1,b=1/0,S=0,x=0;x=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&g.restore()};if(m)if(m.length===0)M=p.__endIndex;else for(var A=v.dpr,D=0;D0&&t>n[0]){for(l=0;lt);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?Ya:0),this._needsManuallyCompositing),f.__builtin__||Mu("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),n.__dirty&re&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,T(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?ct(i[t],e,!0):i[t]=e;for(var n=0;n12?Math.ceil(t.labels.length/6)-1:0;i==null||i.setOption({color:[a("--web-chart-primary")],tooltip:{trigger:"axis",backgroundColor:a("--web-chart-tooltip-bg"),borderColor:a("--web-chart-tooltip-line"),textStyle:{color:a("--web-chart-tooltip-text")}},grid:{left:42,right:18,top:36,bottom:28},xAxis:{type:"category",boundaryGap:!1,data:t.labels,axisLine:{lineStyle:{color:a("--web-chart-axis-line")}},axisLabel:{color:a("--web-chart-axis-text"),interval:s}},yAxis:{type:"value",minInterval:1,name:"积分",nameTextStyle:{color:a("--web-chart-axis-text")},axisLabel:{color:a("--web-chart-axis-text")},splitLine:{lineStyle:{color:a("--web-chart-split-line")}}},series:[{type:"line",smooth:!0,symbol:"circle",symbolSize:5,lineStyle:{width:2},data:t.values}]})}return ud(()=>{e.value&&(i=Nx(e.value),o(),n=new ResizeObserver(()=>i==null?void 0:i.resize()),n.observe(e.value))}),Qy(()=>[t.labels,t.values],o,{deep:!0}),fd(()=>{n==null||n.disconnect(),i==null||i.dispose()}),(s,l)=>(et(),xt("div",{ref_key:"element",ref:e,class:"consumption-chart"},null,512))}}),pD=Ro(dD,[["__scopeId","data-v-5638acf7"]]),gD={class:"web-page account-view"},yD={class:"account-dashboard"},mD={class:"summary-grid"},_D={class:"account-card balance-card"},wD={key:0},SD={key:1,class:"metric-grid"},bD={class:"account-card profile-card"},xD={key:1,class:"profile-main"},TD={class:"avatar-control"},CD=["title","disabled"],MD=["src"],DD={key:1},AD={class:"profile-copy"},LD={class:"username-field"},PD={key:1,class:"username-display"},ID={class:"account-card redeem-card"},RD={class:"redeem-field"},ED={class:"account-card chart-card"},kD={key:0},OD={key:2,class:"empty-state"},BD={class:"account-card records-card"},ND={key:0},FD={class:"dialog-record-list"},zD={class:"avatar-preview"},HD=["src"],Tl=10,VD=Io({__name:"AccountView",setup(r){const t=lm(),e=Jy(),i=tt(!0),n=tt(!1),a=tt(!1),o=tt(!1),s=tt(!1),l=tt(!1),u=tt(!1),f=tt(!1),h=tt(""),c=tt(""),v=tt(""),d=tt(""),y=tt(!1),p=tt(!1),g=tt(!1),m=tt(!1),_=tt(""),w=tt(!1),b=tt(!1),S=tt(!1),x=tt(),M=tt(),C=tt(),A=tt(""),D=tt(!1),L=tt(""),I=tt([]),P=tt([]),E=tt([]),k=tt(0),V=tt(1),F=Of({username:""}),N=Of({originalPassword:"",newPassword:"",confirmPassword:""}),Z={originalPassword:[{required:!0,message:"请输入原密码",trigger:"blur"}],newPassword:[{required:!0,message:"请输入新密码",trigger:"blur"},{min:8,max:128,message:"密码长度必须为 8~128 位",trigger:"blur"}],confirmPassword:[{required:!0,message:"请再次输入新密码",trigger:"blur"},{validator:(O,R,gt)=>R===N.newPassword?gt():gt(new Error("两次输入的新密码不一致")),trigger:"blur"}]},U=oe(()=>t.account),it=oe(()=>I.value.map(O=>sm(O.day))),ot=oe(()=>I.value.map(O=>Number(O.consumption))),pt=oe(()=>ot.value.reduce((O,R)=>O+R,0).toFixed(2)),mt=oe(()=>ot.value.some(O=>O>0)),te=oe(()=>{var O;return Number(((O=U.value)==null?void 0:O.point_balance)||0).toFixed(2)}),Ye=oe(()=>{var O;return Number(((O=U.value)==null?void 0:O.today_consumption)||0).toFixed(2)}),Xe=oe(()=>{var O;return Number((O=U.value)==null?void 0:O.daily_limit)===9999}),Ft=oe(()=>{var O;return Xe.value?"不限制":Number(((O=U.value)==null?void 0:O.daily_limit)||0).toFixed(2)}),At=oe(()=>{var O,R;return Xe.value?"不限制":Math.max(Number(((O=U.value)==null?void 0:O.daily_limit)||0)-Number(((R=U.value)==null?void 0:R.today_consumption)||0),0).toFixed(2)}),W=oe(()=>{var O;return Number(((O=U.value)==null?void 0:O.avatar_max_size_bytes)||0)}),K=oe(()=>W.value>0?`支持 JPEG、PNG、WebP,文件不超过 ${(W.value/1024/1024).toFixed(0)} MB`:"头像上传暂不可用");async function ne(){var O,R;n.value=!0,h.value="";try{const{data:gt}=await Dr.get("/account");t.account=gt.data,F.username=String(((O=U.value)==null?void 0:O.username)||((R=U.value)==null?void 0:R.account)||""),l.value=!0}catch(gt){l.value=!1,h.value=ci(gt).message}finally{n.value=!1}}async function Lt(){a.value=!0,c.value="";try{const{data:O}=await Dr.get("/usage/30-days");I.value=Array.isArray(O.data)?O.data:[],u.value=!0}catch(O){u.value=!1,c.value=ci(O).message}finally{a.value=!1}}async function Qi(O){const{data:R}=await Dr.get("/usage/consumption-records",{params:{page:O,page_size:Tl}});return R.data}async function vi(){o.value=!0,v.value="";try{const O=await Qi(1);P.value=Array.isArray(O.items)?O.items:[],k.value=Number(O.total||0),f.value=!0}catch(O){f.value=!1,v.value=ci(O).message}finally{o.value=!1}}async function as(O=V.value){s.value=!0,d.value="";try{const R=await Qi(O);E.value=Array.isArray(R.items)?R.items:[],k.value=Number(R.total||0),V.value=Number(R.page||O)}catch(R){d.value=ci(R).message}finally{s.value=!1}}async function Oy(){i.value=!0,await Promise.allSettled([ne(),Lt(),vi()]),i.value=!1}function By(){var O,R;return String(((O=U.value)==null?void 0:O.username)||((R=U.value)==null?void 0:R.account)||"JH").slice(0,2).toUpperCase()}function Ny(){var O,R;F.username=String(((O=U.value)==null?void 0:O.username)||((R=U.value)==null?void 0:R.account)||""),_.value="",m.value=!0}function Fy(){_.value="",m.value=!1}async function zy(){const O=F.username.trim();if([...O].length<5||[...O].length>12){_.value="用户名长度必须为 5~12 个字符";return}_.value="",p.value=!0;try{const{data:R}=await Dr.patch("/account/profile",{username:O});t.account={...U.value,...R.data},t.updateCachedProfile({username:R.data.username}),m.value=!1,e.success("用户名已更新")}catch(R){const gt=ci(R);_.value=gt.message,e.error(gt.message,gt.copyText,"用户名修改失败")}finally{p.value=!1}}function Hy(){var O;W.value>0&&((O=x.value)==null||O.click())}function Vy(O){var ae;const R=O.target,gt=(ae=R.files)==null?void 0:ae[0];if(R.value="",!!gt){if(!["image/jpeg","image/png","image/webp"].includes(gt.type)){e.warning("头像仅支持 JPEG、PNG 或 WebP 图片");return}if(W.value<=0||gt.size>W.value){e.warning(K.value);return}os(),C.value=gt,A.value=URL.createObjectURL(gt),w.value=!0}}async function Gy(){if(C.value){y.value=!0;try{const O=new FormData;O.append("file",C.value);const{data:R}=await Dr.post("/account/avatar",O,{headers:{"Content-Type":"multipart/form-data"}});t.account&&(t.account={...t.account,avatar_url:R.data.avatar_url}),t.updateCachedProfile({avatar_url:R.data.avatar_url}),w.value=!1,e.success("头像已更新")}catch(O){ss(O,"头像修改失败")}finally{y.value=!1}}}function os(){A.value&&URL.revokeObjectURL(A.value),A.value="",C.value=void 0}function Wy(){Object.assign(N,{originalPassword:"",newPassword:"",confirmPassword:""}),b.value=!0}async function Uy(){var O;if(await((O=M.value)==null?void 0:O.validate().catch(()=>!1))){g.value=!0;try{await Dr.put("/account/password",{original_password:N.originalPassword,new_password:N.newPassword}),b.value=!1,e.success("密码已修改")}catch(R){ss(R,"密码修改失败")}finally{g.value=!1}}}async function Yy(){if(L.value.trim()){D.value=!0;try{const{data:O}=await Dr.post("/redemption/redeem",{code:L.value});e.success(`兑换成功,已到账 ${Number(O.data.points).toFixed(2)} 积分`),L.value="",await Promise.allSettled([ne(),Lt(),vi()]),S.value&&await as(V.value)}catch(O){ss(O,"兑换失败")}finally{D.value=!1}}}function Xy(){V.value=1,E.value=[...P.value],d.value="",S.value=!0}function ss(O,R){const gt=ci(O);e.error(gt.message,gt.copyText,R)}return ud(Oy),fd(os),(O,R)=>{var Af,Lf,Pf,If,Rf;const gt=Kr("el-input"),ae=Kr("el-button"),$y=Kr("el-pagination"),ls=Kr("el-dialog"),us=Kr("el-form-item"),Zy=Kr("el-form"),Cr=jy("loading");return Mr((et(),xt("div",gD,[Y("div",yD,[Y("section",mD,[Y("article",_D,[Y("header",null,[R[14]||(R[14]=Y("h2",null,"创作额度",-1)),l.value?(et(),xt("span",wD,"每日限额 "+Pt(Ft.value),1)):Ae("",!0)]),h.value?(et(),Le(Ji,{key:0,class:"card-state",message:h.value,onRetry:ne},null,8,["message"])):l.value?Mr((et(),xt("div",SD,[Y("div",null,[R[15]||(R[15]=Y("span",null,"可用积分",-1)),Y("strong",null,Pt(te.value),1)]),Y("div",null,[R[16]||(R[16]=Y("span",null,"今日消耗",-1)),Y("strong",null,Pt(Ye.value),1)]),Y("div",null,[R[17]||(R[17]=Y("span",null,"今日剩余可用",-1)),Y("strong",null,Pt(At.value),1)])])),[[Cr,n.value]]):Ae("",!0)]),Y("article",bD,[R[21]||(R[21]=Y("header",null,[Y("h2",null,"账户资料")],-1)),h.value?(et(),Le(Ji,{key:0,class:"card-state",message:h.value,onRetry:ne},null,8,["message"])):l.value?Mr((et(),xt("div",xD,[Y("div",TD,[Mr((et(),xt("button",{class:"avatar-button",type:"button",title:K.value,disabled:y.value||W.value<=0,onClick:Hy},[(Af=U.value)!=null&&Af.avatar_url?(et(),xt("img",{key:0,src:U.value.avatar_url,alt:""},null,8,MD)):(et(),xt("span",DD,Pt(By()),1)),Y("i",null,[ut(Qr(em),{size:14})])],8,CD)),[[Cr,y.value]])]),Y("input",{ref_key:"avatarInput",ref:x,class:"avatar-input",type:"file",accept:"image/jpeg,image/png,image/webp",onChange:Vy},null,544),Y("div",AD,[m.value?(et(),xt("form",{key:0,class:"username-edit",onSubmit:kf(zy,["prevent"])},[Y("div",LD,[ut(gt,{modelValue:F.username,"onUpdate:modelValue":R[0]||(R[0]=bt=>F.username=bt),modelModifiers:{trim:!0},maxlength:"12","show-word-limit":"",onInput:R[1]||(R[1]=bt=>_.value="")},null,8,["modelValue"]),Y("small",{class:ld({error:_.value})},Pt(_.value||"用户名长度为 5~12 个字符"),3)]),ut(ae,{"native-type":"submit",loading:p.value},{default:Tt(()=>[...R[18]||(R[18]=[ke("保存",-1)])]),_:1},8,["loading"]),ut(ae,{"native-type":"button",disabled:p.value,onClick:Fy},{default:Tt(()=>[...R[19]||(R[19]=[ke("取消",-1)])]),_:1},8,["disabled"])],32)):(et(),xt("div",PD,[Y("strong",null,Pt(((Lf=U.value)==null?void 0:Lf.username)||((Pf=U.value)==null?void 0:Pf.account)),1),Y("button",{type:"button",title:"修改用户名",onClick:Ny},[ut(Qr(rm),{size:16})])])),Y("p",null,"UID "+Pt(((If=U.value)==null?void 0:If.uid)||"--")+" · 账号 "+Pt(((Rf=U.value)==null?void 0:Rf.account)||"--"),1)]),ut(ae,{class:"password-button",onClick:Wy},{default:Tt(()=>[ut(Qr(im),{size:16}),R[20]||(R[20]=ke("修改密码",-1))]),_:1})])),[[Cr,n.value]]):Ae("",!0)]),Y("article",ID,[R[23]||(R[23]=Y("header",null,[Y("h2",null,"兑换码")],-1)),Y("form",{class:"redeem-form",onSubmit:kf(Yy,["prevent"])},[Y("div",RD,[ut(gt,{modelValue:L.value,"onUpdate:modelValue":R[2]||(R[2]=bt=>L.value=bt),modelModifiers:{trim:!0},maxlength:"64",placeholder:"请输入兑换码"},{prefix:Tt(()=>[ut(Qr(nm),{size:16})]),_:1},8,["modelValue"])]),ut(ae,{"native-type":"submit",type:"primary",disabled:!L.value.trim()||D.value,loading:D.value},{default:Tt(()=>[ut(Qr(am),{size:16}),R[22]||(R[22]=ke("立即兑换",-1))]),_:1},8,["disabled","loading"])],32)])]),Mr((et(),xt("section",ED,[Y("header",null,[Y("div",null,[R[24]||(R[24]=Y("h2",null,"近 30 日消耗",-1)),u.value?(et(),xt("p",kD,"合计 "+Pt(pt.value)+" 积分",1)):Ae("",!0)])]),c.value?(et(),Le(Ji,{key:0,class:"section-state",message:c.value,onRetry:Lt},null,8,["message"])):u.value&&mt.value?(et(),Le(pD,{key:1,labels:it.value,values:ot.value},null,8,["labels","values"])):u.value?(et(),xt("div",OD," 近 30 日暂无积分消耗 ")):Ae("",!0)])),[[Cr,a.value&&!i.value]]),Mr((et(),xt("section",BD,[Y("header",null,[Y("div",null,[R[25]||(R[25]=Y("h2",null,"积分变动记录",-1)),f.value?(et(),xt("p",ND,"共 "+Pt(k.value)+" 条记录",1)):Ae("",!0)]),f.value&&k.value>0?(et(),Le(ae,{key:0,text:"",onClick:Xy},{default:Tt(()=>[...R[26]||(R[26]=[ke("查看全部",-1)])]),_:1})):Ae("",!0)]),v.value?(et(),Le(Ji,{key:0,class:"section-state",message:v.value,onRetry:vi},null,8,["message"])):f.value?(et(),Le(Bf,{key:1,class:"records-summary",records:P.value,"empty-text":"暂无积分变动记录,兑换或使用创作能力后会在这里显示"},null,8,["records"])):Ae("",!0)])),[[Cr,o.value&&!i.value]])]),ut(ls,{modelValue:S.value,"onUpdate:modelValue":R[5]||(R[5]=bt=>S.value=bt),title:"积分变动记录",width:"min(820px, calc(100vw - 32px))","align-center":"",class:"web-dialog records-dialog"},{footer:Tt(()=>[k.value>Tl?(et(),Le($y,{key:0,"current-page":V.value,"onUpdate:currentPage":R[4]||(R[4]=bt=>V.value=bt),"page-size":Tl,"pager-count":5,total:k.value,layout:"prev, pager, next",onCurrentChange:as},null,8,["current-page","total"])):Ae("",!0)]),default:Tt(()=>[Mr((et(),xt("div",FD,[d.value?(et(),Le(Ji,{key:0,message:d.value,onRetry:R[3]||(R[3]=bt=>as())},null,8,["message"])):(et(),Le(Bf,{key:1,records:E.value,"empty-text":"暂无积分变动记录"},null,8,["records"]))])),[[Cr,s.value]])]),_:1},8,["modelValue"]),ut(ls,{modelValue:w.value,"onUpdate:modelValue":R[7]||(R[7]=bt=>w.value=bt),title:"确认头像",width:"min(420px, calc(100vw - 32px))","align-center":"",class:"web-dialog",onClosed:os},{footer:Tt(()=>[ut(ae,{disabled:y.value,onClick:R[6]||(R[6]=bt=>w.value=!1)},{default:Tt(()=>[...R[27]||(R[27]=[ke("取消",-1)])]),_:1},8,["disabled"]),ut(ae,{type:"primary",loading:y.value,onClick:Gy},{default:Tt(()=>[...R[28]||(R[28]=[ke("确认上传",-1)])]),_:1},8,["loading"])]),default:Tt(()=>[Y("div",zD,[A.value?(et(),xt("img",{key:0,src:A.value,alt:""},null,8,HD)):Ae("",!0),Y("p",null,Pt(K.value),1)])]),_:1},8,["modelValue"]),ut(ls,{modelValue:b.value,"onUpdate:modelValue":R[12]||(R[12]=bt=>b.value=bt),title:"修改密码",width:"min(460px, calc(100vw - 32px))","align-center":"",class:"web-dialog",onClosed:R[13]||(R[13]=bt=>{var Ef;return(Ef=M.value)==null?void 0:Ef.resetFields()})},{footer:Tt(()=>[ut(ae,{onClick:R[11]||(R[11]=bt=>b.value=!1)},{default:Tt(()=>[...R[29]||(R[29]=[ke("取消",-1)])]),_:1}),ut(ae,{type:"primary",loading:g.value,onClick:Uy},{default:Tt(()=>[...R[30]||(R[30]=[ke("保存",-1)])]),_:1},8,["loading"])]),default:Tt(()=>[ut(Zy,{ref_key:"passwordFormRef",ref:M,model:N,rules:Z,"label-position":"top"},{default:Tt(()=>[ut(us,{label:"原密码",prop:"originalPassword"},{default:Tt(()=>[ut(gt,{modelValue:N.originalPassword,"onUpdate:modelValue":R[8]||(R[8]=bt=>N.originalPassword=bt),type:"password","show-password":""},null,8,["modelValue"])]),_:1}),ut(us,{label:"新密码(8~128 位)",prop:"newPassword"},{default:Tt(()=>[ut(gt,{modelValue:N.newPassword,"onUpdate:modelValue":R[9]||(R[9]=bt=>N.newPassword=bt),type:"password","show-password":""},null,8,["modelValue"])]),_:1}),ut(us,{label:"确认新密码",prop:"confirmPassword"},{default:Tt(()=>[ut(gt,{modelValue:N.confirmPassword,"onUpdate:modelValue":R[10]||(R[10]=bt=>N.confirmPassword=bt),type:"password","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])),[[Cr,i.value]])}}}),$D=Ro(VD,[["__scopeId","data-v-0b55773f"]]);export{$D as default};