import{_ as i0}from"./InfiniteScroll.95076f5b.js";import{E as Wd,r as n0,L as a0,bz as ps,s as mn,t as Fu,v as Et,aa as $r,B as St,F as Ci,G as He,C as jf,ac as th,A as o0,Q as Qa,ad as eh,bj as s0,al as Ud,U as u0,_ as l0,ae as f0,a as h0,z as we,as as v0,aq as rh,bi as gs,bA as c0,a_ as d0,D as p0,at as g0,bl as y0}from"./index.d567e818.js";import{Q as m0}from"./QPopupProxy.46412439.js";import{Q as ys}from"./QItemLabel.a23702fb.js";import{Q as ih}from"./QBadge.0148a953.js";import{R as ms}from"./const.1363c01a.js";import{u as _0}from"./cart.1a37de40.js";import{u as S0}from"./infiniteScroll.ebd16b39.js";import"./QSpinnerDots.afac0abd.js";import"./touch.70a9dd44.js";import"./selection.dc3c322d.js";import"./sorry.e0a2c349.js";import"./QMenu.14ef6e6d.js";/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var zu=function(r,t){return zu=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])},zu(r,t)};function et(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");zu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var w0=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),T0=function(){function r(){this.browser=new w0,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!="undefined"}return r}(),Wr=new T0;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Wr.wxa=!0,Wr.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Wr.worker=!0:typeof navigator=="undefined"?(Wr.node=!0,Wr.svgSupported=!0):x0(navigator.userAgent,Wr);function x0(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!="undefined",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!="undefined";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 X=Wr,$l=12,b0="sans-serif",ei=$l+"px "+b0,C0=20,M0=100,D0="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function A0(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e=0)s=o*e.length;else for(var u=0;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",n[l]+":0",i[1-u]+":auto",n[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function J0(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&n?n:(t.srcCoords=o,t[i]=e?sh(s,o):sh(o,s))}function Qd(r){return r.nodeName.toUpperCase()==="CANVAS"}var j0=/([&<>"'])/g,t_={"&":"&","<":"<",">":">",'"':""","'":"'"};function ae(r){return r==null?"":(r+"").replace(j0,function(t,e){return t_[e]})}var e_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ws=[],r_=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function Xu(r,t,e,i){return e=e||{},i?lh(r,t,e):r_&&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):lh(r,t,e),e}function lh(r,t,e){if(X.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Qd(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if($u(ws,r,i,n)){e.zrX=ws[0],e.zrY=ws[1];return}}e.zrX=e.zrY=0}function Ql(r){return r||window.event}function re(r,t,e){if(t=Ql(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&&Xu(r,o,t,e)}else{Xu(r,t,t,e);var a=i_(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&e_.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function i_(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 n_(r,t,e,i){r.addEventListener(t,e,i)}function a_(r,t,e,i){r.removeEventListener(t,e,i)}var Jd=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},o_=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=fh(i)/fh(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=s_(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function zn(){return[1,0,0,1,0,0]}function Jl(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function u_(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 Bi(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],u=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]=u,r}function qu(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 jl(r,t,e){var i=t[0],n=t[2],a=t[4],o=t[1],s=t[3],u=t[5],l=Math.sin(e),f=Math.cos(e);return r[0]=i*f+o*l,r[1]=-i*l+o*f,r[2]=n*f+s*l,r[3]=-n*l+f*s,r[4]=f*a+l*u,r[5]=f*u-l*a,r}function l_(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 $o(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*i;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-i*u,r[3]=e*u,r[4]=(i*s-o*n)*u,r[5]=(a*n-e*s)*u,r):null}var f_=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}(),U=f_,da=Math.min,pa=Math.max,mr=new U,_r=new U,Sr=new U,wr=new U,Ki=new U,Qi=new U,h_=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=da(t.x,this.x),i=da(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=pa(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=pa(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=zn();return qu(a,a,[-e.x,-e.y]),l_(a,a,[i,n]),qu(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,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,yd&&(d=S,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}mr.x=Sr.x=e.x,mr.y=wr.y=e.y,_r.x=wr.x=e.x+e.width,_r.y=Sr.y=e.y+e.height,mr.transform(i),wr.transform(i),_r.transform(i),Sr.transform(i),t.x=da(mr.x,_r.x,Sr.x,wr.x),t.y=da(mr.y,_r.y,Sr.y,wr.y);var u=pa(mr.x,_r.x,Sr.x,wr.x),l=pa(mr.y,_r.y,Sr.y,wr.y);t.width=u-t.x,t.height=l-t.y},r}(),J=h_,jd="silent";function v_(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:c_}}function c_(){Jd(this.event)}var d_=function(r){at(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}(ke),Ji=function(){function r(t,e){this.x=t,this.y=e}return r}(),p_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xs=new J(0,0,0,0),tp=function(r){at(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Ji(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new d_,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new X0(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(p_,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=ep(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Ji(i,n):this.findHover(i,n),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"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 Ji(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=v_(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(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Ji(e,i);if(hh(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new J(e-l,i-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(xs.copy(c.getBoundingRect()),c.transform&&xs.applyTransform(c.transform),xs.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 g_(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?jd:!0}return!1}function hh(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=g_(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==jd)){t.target=o;break}}}function ep(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var y_=tp,rp=32,ji=7;function m_(r){for(var t=0;r>=rp;)t|=r&1,r>>=1;return r+t}function vh(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 __(r,t,e){for(e--;t>>1,n(a,r[u])<0?s=u:o=u+1;var l=i-o;switch(l){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(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function bs(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])>0){for(s=i-n;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}else{for(s=n+1;us&&(u=s);var l=o;o=n-u,u=n-l}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function Cs(r,t,e,i,n,a){var o=0,s=0,u=1;if(a(r,t[e+n])<0){for(s=n+1;us&&(u=s);var l=o;o=n-u,u=n-l}else{for(s=i-n;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=n,u+=n}for(o++;o>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function S_(r,t){var e=ji,i,n,a=0;r.length;var o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]n[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&n[v-1]=ji||x>=ji);if(b)break;T<0&&(T=0),T+=2}if(e=T,e<1&&(e=1),d===1){for(g=0;g=0;g--)r[w+g]=r[T+g];r[S]=o[_];return}for(var x=e;;){var b=0,C=0,D=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],b++,C=0,--d===0){D=!0;break}}else if(r[S--]=o[_--],C++,b=0,--p===1){D=!0;break}while((b|C)=0;g--)r[w+g]=r[T+g];if(d===0){D=!0;break}}if(r[S--]=o[_--],--p===1){D=!0;break}if(C=p-bs(r[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,w=S+1,T=_+1,g=0;g=ji||C>=ji);if(D)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,m-=d,w=S+1,T=m+1,g=d-1;g>=0;g--)r[w+g]=r[T+g];r[S]=o[_]}else{if(p===0)throw new Error;for(T=S-(p-1),g=0;gs&&(u=s),ch(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var Zt=1,_n=2,Mi=4,dh=!1;function Ms(){dh||(dh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ph(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var w_=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ph}return r.prototype.traverse=function(t,e){for(var i=0;i0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ms(),f.z=0),isNaN(f.z2)&&(Ms(),f.z2=0),isNaN(f.zlevel)&&(Ms(),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}(),T_=w_,ip;ip=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 Zu=ip,eo={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-eo.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?eo.bounceIn(r*2)*.5:eo.bounceOut(r*2-1)*.5+.5}},np=eo,ga=Math.pow,hr=Math.sqrt,mo=1e-8,ap=1e-4,gh=hr(3),ya=1/3,De=Yi(),oe=Yi(),Ni=Yi();function ur(r){return r>-mo&&rmo||r<-mo}function wt(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 yh(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function _o(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-n,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(ur(f)&&ur(h))if(ur(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var y=h*h-4*f*c;if(ur(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=hr(y),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ga(-_,ya):_=ga(_,ya),S<0?S=-ga(-S,ya):S=ga(S,ya);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var T=(2*f*s-3*o*h)/(2*hr(f*f*f)),w=Math.acos(T)/3,x=hr(f),b=Math.cos(w),d=(-s-2*x*b)/(3*o),g=(-s+x*(b+gh*Math.sin(w)))/(3*o),C=(-s+x*(b-gh*Math.sin(w)))/(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 sp(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,u=0;if(ur(o)){if(op(a)){var l=-s/a;l>=0&&l<=1&&(n[u++]=l)}}else{var f=a*a-4*o*s;if(ur(f))n[0]=-a/(2*o);else if(f>0){var h=hr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function gr(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,u=(i-e)*n+e,l=(s-o)*n+o,f=(u-s)*n+s,h=(f-l)*n+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=i}function up(r,t,e,i,n,a,o,s,u,l,f){var h,c=.005,v=1/0,d,y,p,g;De[0]=u,De[1]=l;for(var m=0;m<1;m+=.05)oe[0]=wt(r,e,n,o,m),oe[1]=wt(t,i,a,s,m),p=Oi(De,oe),p=0&&p=0&&l<=1&&(n[u++]=l)}}else{var f=o*o-4*a*s;if(ur(f)){var l=-o/(2*a);l>=0&&l<=1&&(n[u++]=l)}else if(f>0){var h=hr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(n[u++]=l),c>=0&&c<=1&&(n[u++]=c)}}return u}function lp(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function So(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 fp(r,t,e,i,n,a,o,s,u){var l,f=.005,h=1/0;De[0]=o,De[1]=s;for(var c=0;c<1;c+=.05){oe[0]=Lt(r,e,n,c),oe[1]=Lt(t,i,a,c);var v=Oi(De,oe);v=0&&v=1?1:_o(0,i,a,1,u,s)&&wt(0,n,o,1,s[0])}}}var D_=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||Vt,this.ondestroy=t.ondestroy||Vt,this.onrestart=t.onrestart||Vt,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 u=n%i;this._startTime=t-u,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=Y(t)?t:np[t]||hp(t)},r}(),A_=D_,vp=function(){function r(t){this.value=t}return r}(),L_=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new vp(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}(),I_=function(){function r(t){this._list=new L_,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 u=i.head;i.remove(u),delete n[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new vp(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}(),sa=I_,_h={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function vr(r){return r=Math.round(r),r<0?0:r>255?255:r}function Ku(r){return r<0?0:r>1?1:r}function Ds(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?vr(parseFloat(t)/100*255):vr(parseInt(t,10))}function Dn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ku(parseFloat(t)/100):Ku(parseFloat(t))}function As(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 ma(r,t,e){return r+(t-r)*e}function ee(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Qu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var cp=new sa(20),_a=null;function hi(r,t){_a&&Qu(_a,t),_a=cp.put(r,_a||t.slice())}function cr(r,t){if(!!r){t=t||[];var e=cp.get(r);if(e)return Qu(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in _h)return Qu(t,_h[i]),hi(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)){ee(t,0,0,0,1);return}return ee(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),hi(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ee(t,0,0,0,1);return}return ee(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),hi(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var u=i.substr(0,o),l=i.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?ee(t,+l[0],+l[1],+l[2],1):ee(t,0,0,0,1);f=Dn(l.pop());case"rgb":if(l.length>=3)return ee(t,Ds(l[0]),Ds(l[1]),Ds(l[2]),l.length===3?f:Dn(l[3])),hi(r,t),t;ee(t,0,0,0,1);return;case"hsla":if(l.length!==4){ee(t,0,0,0,1);return}return l[3]=Dn(l[3]),Sh(l,t),hi(r,t),t;case"hsl":if(l.length!==3){ee(t,0,0,0,1);return}return Sh(l,t),hi(r,t),t;default:return}}ee(t,0,0,0,1)}}function Sh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Dn(r[1]),n=Dn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ee(t,vr(As(o,a,e+1/3)*255),vr(As(o,a,e)*255),vr(As(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function wh(r,t){var e=cr(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return tf(e,e.length===4?"rgba":"rgb")}}function P_(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=cr(t[n]),s=cr(t[a]),u=i-n,l=tf([vr(ma(o[0],s[0],u)),vr(ma(o[1],s[1],u)),vr(ma(o[2],s[2],u)),Ku(ma(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:n,rightIndex:a,value:i}:l}}function tf(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 wo(r,t){var e=cr(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function R_(r){return r.type==="linear"}function E_(r){return r.type==="radial"}(function(){return X.hasGlobalWindow&&Y(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var Ju=Array.prototype.slice;function ze(r,t,e){return(t-r)*e+r}function Ls(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 u=a;u=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=xh,u=e;if(Ut(e)){var l=N_(e);s=l,(l===1&&!vt(e[0])||l===2&&!vt(e[0][0]))&&(o=!0)}else if(vt(e)&&!yo(e))s=wa;else if(z(e))if(!isNaN(+e))s=wa;else{var f=cr(e);f&&(u=f,s=Sn)}else if(Uo(e)){var h=k({},u);h.colorStops=G(e.colorStops,function(v){return{offset:v.offset,color:cr(v.color)}}),R_(e)?s=ju:E_(e)&&(s=tl),u=h}a===0?this.valType=s:(s!==this.valType||s===xh)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=Y(i)?i:np[i]||hp(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,u=Ta(n),l=bh(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:l?tn:t[u];if((Ta(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=g<1?v.rawValue:d.rawValue;else if(Ta(a))a===no?Ls(m,v[n],d[n],g):k_(m,v[n],d[n],g);else if(bh(a)){var _=v[n],S=d[n],T=a===ju;t[u]={type:T?"linear":"radial",x:ze(_.x,S.x,g),y:ze(_.y,S.y,g),colorStops:G(_.colorStops,function(x,b){var C=S.colorStops[b];return{offset:ze(x.offset,C.offset,g),color:io(Ls([],x.color,C.color,g))}}),global:S.global},T?(t[u].x2=ze(_.x2,S.x2,g),t[u].y2=ze(_.y2,S.y2,g)):t[u].r=ze(_.r,S.r,g)}else if(l)Ls(m,v[n],d[n],g),i||(t[u]=io(m));else{var w=ze(v[n],d[n],g);i?this._additiveValue=w:t[u]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===wa?t[i]=t[i]+n:e===Sn?(cr(t[i],tn),Sa(tn,tn,n,1),t[i]=io(tn)):e===no?Sa(t[i],t[i],n,1):e===dp&&Th(t[i],t[i],n,1)},r}(),z_=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){Zl("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,ht(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,ro(l),n),this._trackKeys.push(s)}u.addKeyframe(t,ro(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}(),ef=z_;function Ii(){return new Date().getTime()}var H_=function(r){at(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=Ii()-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&&(Zu(i),!e._paused&&e.update())}Zu(i)},t.prototype.start=function(){this._running||(this._time=Ii(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ii(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ii()-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 ef(e,i.loop);return this.addAnimator(n),n},t}(ke),G_=H_,V_=300,Is=X.domSupported,Ps=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=G(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),Ch={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Mh=!1;function el(r){var t=r.pointerType;return t==="pen"||t==="touch"}function W_(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 Rs(r){r&&(r.zrByTouch=!0)}function U_(r,t){return re(r.dom,new Y_(r,t),!0)}function pp(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 Y_=function(){function r(t,e){this.stopPropagation=Vt,this.stopImmediatePropagation=Vt,this.preventDefault=Vt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),ge={mousedown:function(r){r=re(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=re(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=re(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=re(this.dom,r);var t=r.toElement||r.relatedTarget;pp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Mh=!0,r=re(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Mh||(r=re(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=re(this.dom,r),Rs(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),ge.mousemove.call(this,r),ge.mousedown.call(this,r)},touchmove:function(r){r=re(this.dom,r),Rs(r),this.handler.processGesture(r,"change"),ge.mousemove.call(this,r)},touchend:function(r){r=re(this.dom,r),Rs(r),this.handler.processGesture(r,"end"),ge.mouseup.call(this,r),+new Date-+this.__lastTouchMomentLh||r<-Lh}var xr=[],vi=[],ks=zn(),Os=Math.abs,ua=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 Tr(this.rotation)||Tr(this.x)||Tr(this.y)||Tr(this.scaleX-1)||Tr(this.scaleY-1)||Tr(this.skewX)||Tr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&Ah(i);return}i=i||zn(),e?this.getLocalTransform(i):Ah(i),t&&(e?Bi(i,t,i):u_(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(xr);var i=xr[0]<0?-1:1,n=xr[1]<0?-1:1,a=((xr[0]-i)*e+i)/xr[0]||0,o=((xr[1]-n)*e+n)/xr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||zn(),$o(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&&(Bi(vi,t.invTransform,e),e=vi);var i=this.originX,n=this.originY;(i||n)&&(ks[4]=i,ks[5]=n,Bi(vi,e,ks),vi[4]-=i,vi[5]-=n,e=vi),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&&le(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&le(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Os(t[0]-1)>1e-10&&Os(t[3]-1)>1e-10?Math.sqrt(Os(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Q_(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,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||u){var d=i+s,y=n+u;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,l&&jl(e,e,l),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}(),Hn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Q_(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function yp(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(i instanceof Array)u+=ri(i[0],e.width),l+=ri(i[1],e.height),f=null,h=null;else switch(i){case"left":u-=n,l+=s,f="right",h="middle";break;case"right":u+=n+o,l+=s,h="middle";break;case"top":u+=o/2,l-=n,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+n,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=n,l+=s,h="middle";break;case"insideRight":u+=o-n,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=n,f="center";break;case"insideBottom":u+=o/2,l+=a-n,f="center",h="bottom";break;case"insideTopLeft":u+=n,l+=n;break;case"insideTopRight":u+=o-n,l+=n,f="right";break;case"insideBottomLeft":u+=n,l+=a-n,h="bottom";break;case"insideBottomRight":u+=o-n,l+=a-n,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var Bs="__zr_normal__",Ns=Hn.concat(["ignore"]),J_=Ui(Hn,function(r,t){return r[t]=!0,r},{ignore:!1}),ci={},j_=new J(0,0,0,0),af=function(){function r(t){this.id=Xd(),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,u=!1;a.parent=n?this:null;var l=!1;if(a.copyTransform(e),i.position!=null){var f=j_;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ci,i,f):yp(ci,i,f),a.x=ci.x,a.y=ci.y,o=ci.align,s=ci.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=ri(h[0],f.width),v=ri(h[1],f.height)),l=!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],l||(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)&&(u=!0,p.fill=g,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=Zt,u&&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()?al:nl},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&cr(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,tf(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||{},k(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(H(t))for(var i=t,n=ht(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(Bs,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===Bs,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(it(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Zl("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&u&&u.duration>0,u);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&=~Zt),l}}},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 u=0;u0,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&=~Zt)}},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=it(n,t),o=it(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 b=void 0,C=void 0,D=void 0;if(s){C={},c&&(b={});for(var S=0;S<_;S++){var g=y[S];C[g]=e[g],c?b[g]=i[g]:e[g]=i[g]}}else if(c){D={};for(var S=0;S<_;S++){var g=y[S];D[g]=ro(e[g]),e1(e,i,g)}}var T=new ef(e,!1,!1,h?Tt(d,function(L){return L.targetName===t}):null);T.targetName=t,n.scope&&(T.scope=n.scope),c&&b&&T.whenWithKeys(0,b,y),D&&T.whenWithKeys(0,D,y),T.whenWithKeys(l==null?500:l,s?C:i,y).delay(f||0),r.addAnimator(T,t),o.push(T)}}var _p=af,Sp=function(r){at(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=it(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=it(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.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){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)/u*l+o}function bt(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 z(r)?u1(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function mt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Tp),r=(+r).toFixed(t),e?r:+r}function Ge(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 l1(r)}function l1(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 f1(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 h1(r,t){var e=Math.max(Ge(r),Ge(t)),i=r+t;return e>Tp?i:mt(i,e)}function xp(r){var t=Math.PI*2;return(r%t+t)%t}function xo(r){return r>-Eh&&r=10&&t++,t}function bp(r,t){var e=of(r),i=Math.pow(10,e),n=r/i,a;return t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function bo(r){var t=parseFloat(r);return t==r&&(t!==0||!z(r)||r.indexOf("x")<=0)?t:NaN}function d1(r){return!isNaN(bo(r))}function Cp(){return Math.round(Math.random()*9)}function Mp(r,t){return t===0?r:Mp(t,r%t)}function Oh(r,t){return r==null?t:t==null?r:r*t/Mp(r,t)}function Ft(r){throw new Error(r)}function Bh(r,t,e){return(t-r)*e+r}var Dp="series\0",p1="\0_ec_\0";function _t(r){return r instanceof Array?r:r==null?[]:[r]}function Nh(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&&it(a,u)<0)){var l=i.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var N1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],F1=Vn(N1),z1=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return F1(this,t,e)},r}(),ol=new sa(50);function H1(r){if(typeof r=="string"){var t=ol.get(r);return t&&t.image}else return r}function kp(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=ol.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!qo(t)&&a.pending.push(o)):(t=Wi.loadImage(r,zh,zh),t.__zrImageSrc=r,ol.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function zh(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;u++)s-=o;var l=Kt(e,t);return l>s&&(e="",l=0),s=r-l,n.ellipsis=e,n.ellipsisWidth=l,n.contentWidth=s,n.containerWidth=r,n}function Bp(r,t){var e=t.containerWidth,i=t.font,n=t.contentWidth;if(!e)return"";var a=Kt(r,i);if(a<=e)return r;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?V1(r,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=Kt(r,i)}return r===""&&(r=t.placeholder),r}function V1(r,t,e,i){for(var n=0,a=0,o=r.length;av&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var y=Op(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&Vs(e,r.substring(s,l),t,o),Vs(e,u[2],t,o,u[1]),s=Gs.lastIndex}sn){T>0?(m.tokens=m.tokens.slice(0,T),p(m,S,_),e.lines=e.lines.slice(0,g+1)):e.lines=e.lines.slice(0,g);break t}var L=x.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")w.percentWidth=L,f.push(w),w.contentWidth=Kt(w.text,D);else{if(I){var P=x.backgroundColor,E=P&&P.image;E&&(E=H1(E),qo(E)&&(w.width=Math.max(w.width,E.width*A/E.height)))}var R=d&&i!=null?i-S:null;R!=null&&R0&&d+i.accumWidth>i.width&&(f=t.split(` `),l=!0),i.accumWidth=d}else{var y=Np(t,u,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=33&&t<=383}var q1=Ui(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Z1(r){return X1(r)?!!q1[r]:!0}function Np(r,t,e,i,n){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;he:n+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var sl="__zr_style_"+Math.round(Math.random()*10),Qr={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}};Qr[sl]=!0;var Gh=["z","z2","invisible"],K1=["invisible"],Q1=function(r){at(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=ht(e),n=0;n1e-4){s[0]=r-e,s[1]=t-i,u[0]=r+e,u[1]=t+i;return}if(xa[0]=$s(n)*e+r,xa[1]=Ys(n)*i+t,ba[0]=$s(a)*e+r,ba[1]=Ys(a)*i+t,l(s,xa,ba),f(u,xa,ba),n=n%Cr,n<0&&(n=n+Cr),a=a%Cr,a<0&&(a=a+Cr),n>a&&!o?a+=Cr:nn&&(Ca[0]=$s(v)*e+r,Ca[1]=Ys(v)*i+t,l(s,Ca,s),f(u,Ca,u))}var rt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Mr=[],Dr=[],Te=[],Qe=[],xe=[],be=[],Xs=Math.min,qs=Math.max,Ar=Math.cos,Lr=Math.sin,Ne=Math.abs,ul=Math.PI,ar=ul*2,Zs=typeof Float32Array!="undefined",en=[];function Ks(r){var t=Math.round(r/ul*1e8)/1e8;return t%2*ul}function rS(r,t){var e=Ks(r[0]);e<0&&(e+=ar);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=ar?n=e+ar:t&&e-n>=ar?n=e-ar:!t&&e>n?n=e+(ar-Ks(e-n)):t&&e0&&(this._ux=Ne(i/To/t)||0,this._uy=Ne(i/To/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(rt.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=Ne(t-this._xi),n=Ne(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(rt.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(rt.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(rt.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(),en[0]=n,en[1]=a,rS(en,o),n=en[0],a=en[1];var s=a-n;return this.addData(rt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Ar(a)*i+t,this._yi=Lr(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(rt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(rt.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)&&Zs&&(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(){Te[0]=Te[1]=xe[0]=xe[1]=Number.MAX_VALUE,Qe[0]=Qe[1]=be[0]=be[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;oi||Ne(_)>n||c===e-1)&&(y=Math.sqrt(m*m+_*_),a=p,o=g);break}case rt.C:{var S=t[c++],T=t[c++],p=t[c++],g=t[c++],w=t[c++],x=t[c++];y=x_(a,o,S,T,p,g,w,x,10),a=w,o=x;break}case rt.Q:{var S=t[c++],T=t[c++],p=t[c++],g=t[c++];y=C_(a,o,S,T,p,g,10),a=p,o=g;break}case rt.A:var b=t[c++],C=t[c++],D=t[c++],A=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,t[c++],d&&(s=Ar(L)*D+b,u=Lr(L)*A+C),y=qs(D,A)*Xs(ar,Math.abs(I)),a=Ar(P)*D+b,o=Lr(P)*A+C;break;case rt.R:{s=a=t[c++],u=o=t[c++];var E=t[c++],R=t[c++];y=E*2+R*2;break}case rt.Z:{var m=s-a,_=u-o;y=Math.sqrt(m*m+_*_),a=s,o=u;break}}y>=0&&(l[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,u,l,f,h,c,v=e<1,d,y,p=0,g=0,m,_=0,S,T;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,y=this._pathLen,m=e*y,!m))return;t:for(var w=0;w0&&(t.lineTo(S,T),_=0),x){case rt.M:s=l=i[w++],u=f=i[w++],t.moveTo(l,f);break;case rt.L:{h=i[w++],c=i[w++];var C=Ne(h-l),D=Ne(c-f);if(C>n||D>a){if(v){var A=d[g++];if(p+A>m){var L=(m-p)/A;t.lineTo(l*(1-L)+h*L,f*(1-L)+c*L);break t}p+=A}t.lineTo(h,c),l=h,f=c,_=0}else{var I=C*C+D*D;I>_&&(S=h,T=c,_=I)}break}case rt.C:{var P=i[w++],E=i[w++],R=i[w++],F=i[w++],B=i[w++],O=i[w++];if(v){var A=d[g++];if(p+A>m){var L=(m-p)/A;gr(l,P,R,B,L,Mr),gr(f,E,F,O,L,Dr),t.bezierCurveTo(Mr[1],Dr[1],Mr[2],Dr[2],Mr[3],Dr[3]);break t}p+=A}t.bezierCurveTo(P,E,R,F,B,O),l=B,f=O;break}case rt.Q:{var P=i[w++],E=i[w++],R=i[w++],F=i[w++];if(v){var A=d[g++];if(p+A>m){var L=(m-p)/A;So(l,P,R,L,Mr),So(f,E,F,L,Dr),t.quadraticCurveTo(Mr[1],Dr[1],Mr[2],Dr[2]);break t}p+=A}t.quadraticCurveTo(P,E,R,F),l=R,f=F;break}case rt.A:var V=i[w++],j=i[w++],nt=i[w++],ot=i[w++],st=i[w++],Ct=i[w++],ft=i[w++],ve=!i[w++],Be=nt>ot?nt:ot,Mt=Ne(nt-ot)>.001,yt=st+Ct,W=!1;if(v){var A=d[g++];p+A>m&&(yt=st+Ct*(m-p)/A,W=!0),p+=A}if(Mt&&t.ellipse?t.ellipse(V,j,nt,ot,ft,st,yt,ve):t.arc(V,j,Be,st,yt,ve),W)break t;b&&(s=Ar(st)*nt+V,u=Lr(st)*ot+j),l=Ar(yt)*nt+V,f=Lr(yt)*ot+j;break;case rt.R:s=l=i[w],u=f=i[w+1],h=i[w++],c=i[w++];var Z=i[w++],yr=i[w++];if(v){var A=d[g++];if(p+A>m){var Pt=m-p;t.moveTo(h,c),t.lineTo(h+Xs(Pt,Z),c),Pt-=Z,Pt>0&&t.lineTo(h+Z,c+Xs(Pt,yr)),Pt-=yr,Pt>0&&t.lineTo(h+qs(Z-Pt,0),c+yr),Pt-=Z,Pt>0&&t.lineTo(h,c+qs(yr-Pt,0));break t}p+=A}t.rect(h,c,Z,yr);break;case rt.Z:if(v){var A=d[g++];if(p+A>m){var L=(m-p)/A;t.lineTo(l*(1-L)+s*L,f*(1-L)+u*L);break t}p+=A}t.closePath(),l=s,f=u}}},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=rt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}(),$e=iS;function di(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,u=0,l=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&&l>e+h&&l>n+h&&l>o+h||lt+l&&u>i+l&&u>a+l||ur+l&&s>e+l&&s>n+l||se||f+ln&&(n+=rn);var c=Math.atan2(u,s);return c<0&&(c+=rn),c>=i&&c<=n||c+rn>=i&&c+rn<=n}function Ir(r,t,e,i,n,a){if(a>t&&a>i||an?s:0}var Je=$e.CMD,Pr=Math.PI*2,sS=1e-4;function uS(r,t){return Math.abs(r-t)t&&l>i&&l>a&&l>s||l1&&lS(),v=wt(t,i,a,s,ne[0]),c>1&&(d=wt(t,i,a,s,ne[1]))),c===2?pt&&s>i&&s>a||s=0&&l<=1){for(var f=0,h=Lt(t,i,a,l),c=0;ce||s<-e)return 0;var u=Math.sqrt(e*e-s*s);kt[0]=-u,kt[1]=u;var l=Math.abs(i-n);if(l<1e-4)return 0;if(l>=Pr-1e-4){i=0,n=Pr;var f=a?1:-1;return o>=kt[0]+r&&o<=kt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Pr,n+=Pr);for(var c=0,v=0;v<2;v++){var d=kt[v];if(d+r>o){var y=Math.atan2(s,d),f=a?1:-1;y<0&&(y=Pr+y),(y>=i&&y<=n||y+Pr>=i&&y+Pr<=n)&&(y>Math.PI/2&&y1&&(e||(s+=Ir(u,l,f,h,i,n))),p&&(u=a[d],l=a[d+1],f=u,h=l),y){case Je.M:f=a[d++],h=a[d++],u=f,l=h;break;case Je.L:if(e){if(di(u,l,a[d],a[d+1],t,i,n))return!0}else s+=Ir(u,l,a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Je.C:if(e){if(nS(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=fS(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Je.Q:if(e){if(aS(u,l,a[d++],a[d++],a[d],a[d+1],t,i,n))return!0}else s+=hS(u,l,a[d++],a[d++],a[d],a[d+1],i,n)||0;u=a[d++],l=a[d++];break;case Je.A:var g=a[d++],m=a[d++],_=a[d++],S=a[d++],T=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(T)*_+g,v=Math.sin(T)*S+m,p?(f=c,h=v):s+=Ir(u,l,c,v,i,n);var b=(i-g)*S/_+g;if(e){if(oS(g,m,S,T,T+w,x,t,b,n))return!0}else s+=vS(g,m,S,T,T+w,x,b,n);u=Math.cos(T+w)*_+g,l=Math.sin(T+w)*S+m;break;case Je.R:f=u=a[d++],h=l=a[d++];var C=a[d++],D=a[d++];if(c=f+C,v=h+D,e){if(di(f,h,c,h,t,i,n)||di(c,h,c,v,t,i,n)||di(c,v,f,v,t,i,n)||di(f,v,f,h,t,i,n))return!0}else s+=Ir(c,h,c,v,i,n),s+=Ir(f,v,f,h,i,n);break;case Je.Z:if(e){if(di(u,l,f,h,t,i,n))return!0}else s+=Ir(u,l,f,h,i,n);u=f,l=h;break}}return!e&&!uS(l,h)&&(s+=Ir(u,l,f,h,i,n)||0),s!==0}function cS(r,t,e){return zp(r,0,!1,t,e)}function dS(r,t,e,i){return zp(r,t,!0,e,i)}var Hp=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qr),pS={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Zo.style)},Qs=Hn.concat(["invisible","culling","z","z2","zlevel","parent"]),gS=function(r){at(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(u){e.buildPath(u,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?nl:i>.2?K_:al}else if(e)return al}return nl},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(z(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=wo(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&Mi)&&(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 u=i.strokeNoScale?this.getLineScale():1,l=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/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 u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),dS(s,u/l,e,i)))return!0}if(this.hasFill())return cS(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Mi,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:k(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Mi)},t.prototype.createStyle=function(e){return Yo(Hp,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=k({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var u=!(i&&a),l;if(i&&i.shape?o?a?l=i.shape:(l=k({},n.shape),k(l,i.shape)):(l=k({},a?this.shape:n.shape),k(l,i.shape)):u&&(l=n.shape),l)if(o){this.shape=k({},this.shape);for(var f={},h=ht(l),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 Yo(yS,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=rf(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}($i);Gp.prototype.type="tspan";var ll=Gp,mS=q({x:0,y:0},Qr),_S={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Zo.style)};function SS(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Vp=function(r){at(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Yo(mS,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=SS(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 _S},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}($i);Vp.prototype.type="image";var si=Vp;function wS(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,u,l,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>n&&(h=s+u,s*=n/h,u*=n/h),l+f>n&&(h=l+f,l*=n/h,f*=n/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-u,i),u!==0&&r.arc(e+n-u,i+u,u,-Math.PI/2,0),r.lineTo(e+n,i+a-l),l!==0&&r.arc(e+n-l,i+a-l,l,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 Pi=Math.round;function Wp(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&&(Pi(i*2)===Pi(n*2)&&(r.x1=r.x2=Xr(i,s,!0)),Pi(a*2)===Pi(o*2)&&(r.y1=r.y2=Xr(a,s,!0))),r}}function Up(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=Xr(i,s,!0),r.y=Xr(n,s,!0),r.width=Math.max(Xr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Xr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Xr(r,t,e){if(!t)return r;var i=Pi(r*2);return(i+Pi(t))%2===0?i/2:(i+(e?1:-1))/2}var TS=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),xS={},Yp=function(r){at(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new TS},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var u=Up(xS,i,this.style);n=u.x,a=u.y,o=u.width,s=u.height,u.r=i.r,i=u}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?wS(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Q);Yp.prototype.type="rect";var Wt=Yp,$h={fill:"#000"},Xh=2,bS={style:q({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)},$p=function(r){at(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$h,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=w[I],P.align==="right");)this._placeToken(P,e,b,g,L,"right",_),C-=P.width,L-=P.width,I--;for(A+=(a-(A-p)-(m-L)-C)/2;D<=I;)P=w[D],this._placeToken(P,e,b,g,A+P.width/2,"center",_),A+=P.width,D++;g+=b}},t.prototype._placeToken=function(e,i,n,a,o,s,u){var l=i.rich[e.styleName]||{};l.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&&Js(l);c&&this._renderBackground(l,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=jh(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var y=this._getOrCreateChild(ll),p=y.createStyle();y.useStyle(p);var g=this._defaultStyle,m=!1,_=0,S=Jh("fill"in l?l.fill:"fill"in i?i.fill:(m=!0,g.fill)),T=Qh("stroke"in l?l.stroke:"stroke"in i?i.stroke:!v&&!u&&(!g.autoStroke||m)?(_=Xh,g.stroke):null),w=l.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,w&&(p.shadowBlur=l.textShadowBlur||i.textShadowBlur||0,p.shadowColor=l.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||ei,p.opacity=Ja(l.opacity,i.opacity,1),Zh(p,l),T&&(p.lineWidth=Ja(l.lineWidth,i.lineWidth,_),p.lineDash=K(l.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=T),S&&(p.fill=S);var x=e.contentWidth,b=e.contentHeight;y.setBoundingRect(new J(wn(p.x,x,p.textAlign),Di(p.y,b,p.textBaseline),x,b))},t.prototype._renderBackground=function(e,i,n,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,y,p;if(c||e.lineHeight||l&&f){y=this._getOrCreateChild(Wt),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=u||null,m.fillOpacity=K(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(si),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=n,_.y=a,_.width=o,_.height=s}if(l&&f){var m=y.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=K(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 S=(y||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Ja(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return AS(e)&&(i=[e.fontStyle,e.fontWeight,DS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Ae(i)||e.textFont||e.font},t}($i),CS={left:!0,right:1,center:1},MS={top:1,bottom:1,middle:1},qh=["fontStyle","fontWeight","fontSize","fontFamily"];function DS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?$l+"px":r+"px"}function Zh(r,t){for(var e=0;e=0,a=!1;if(r instanceof Q){var o=Xp(r),s=n&&o.selectFill||o.normalFill,u=n&&o.selectStroke||o.normalStroke;if(pi(s)||pi(u)){i=i||{};var l=i.style||{};l.fill==="inherit"?(a=!0,i=k({},i),l=k({},l),l.fill=s):!pi(l.fill)&&pi(s)?(a=!0,i=k({},i),l=k({},l),l.fill=nv(s)):!pi(l.stroke)&&pi(u)&&(a||(i=k({},i),l=k({},l)),l.stroke=nv(u)),i.style=l}}if(i&&i.z2==null){a||(i=k({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f!=null?f:PS)}return i}function NS(r,t,e){if(e&&e.z2==null){e=k({},e);var i=r.z2SelectLift;e.z2=r.z2+(i!=null?i:RS)}return e}function FS(r,t,e){var i=it(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:OS(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=k({},e),o=k({opacity:i?n:a.opacity*.1},o),e.style=o),e}function js(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return BS(this,r,t,e);if(r==="blur")return FS(this,r,e);if(r==="select")return NS(this,r,e)}return e}function zS(r){r.stateProxy=js;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=js),e&&(e.stateProxy=js)}function sv(r,t){!tg(r,t)&&!r.__highByOuter&&qe(r,qp)}function uv(r,t){!tg(r,t)&&!r.__highByOuter&&qe(r,Zp)}function Mo(r,t){r.__highByOuter|=1<<(t||0),qe(r,qp)}function Do(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&qe(r,Zp)}function HS(r){qe(r,hf)}function Qp(r){qe(r,Kp)}function Jp(r){qe(r,ES)}function jp(r){qe(r,kS)}function tg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function eg(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=lf(a),s=n==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(u),o.isBlured&&(u.group.traverse(function(l){Kp(l)}),s&&e.push(a)),o.isBlured=!1}),M(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function fl(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function $S(r,t,e){rg(r,!0),qe(r,zS),qS(r,t,e)}function XS(r){rg(r,!1)}function vl(r,t,e,i){i?XS(r):$S(r,t,e)}function qS(r,t,e){var i=ut(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var fv=["emphasis","blur","select"],ZS={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function hv(r,t,e,i){e=e||"itemStyle";for(var n=0;n1&&(o*=tu(d),s*=tu(d));var y=(n===a?-1:1)*tu((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+Da(h)*p-Ma(h)*g,_=(t+i)/2+Ma(h)*p+Da(h)*g,S=pv([1,0],[(c-p)/o,(v-g)/s]),T=[(c-p)/o,(v-g)/s],w=[(-1*c-p)/o,(-1*v-g)/s],x=pv(T,w);if(pl(T,w)<=-1&&(x=nn),pl(T,w)>=1&&(x=0),x<0){var b=Math.round(x/nn*1e6)/1e6;x=nn*2+b%2*nn}f.addData(l,m,_,o,s,S,x,h,a)}var tw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,ew=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rw(r){var t=new $e;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=$e.CMD,u=r.match(tw);if(!u)return t;for(var l=0;lP*P+E*E&&(b=D,C=A),{cx:b,cy:C,x0:-f,y0:-h,x1:b*(n/T-1),y1:C*(n/T-1)}}function fw(r){var t;if(N(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function hw(r,t){var e,i=Tn(t.r,0),n=Tn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=yv(l-u),d=v>eu&&v%eu;if(d>pe&&(v=d),!(i>pe))r.moveTo(f,h);else if(v>eu-pe)r.moveTo(f+i*yi(u),h+i*Rr(u)),r.arc(f,h,i,u,l,!c),n>pe&&(r.moveTo(f+n*yi(l),h+n*Rr(l)),r.arc(f,h,n,l,u,c));else{var y=void 0,p=void 0,g=void 0,m=void 0,_=void 0,S=void 0,T=void 0,w=void 0,x=void 0,b=void 0,C=void 0,D=void 0,A=void 0,L=void 0,I=void 0,P=void 0,E=i*yi(u),R=i*Rr(u),F=n*yi(l),B=n*Rr(l),O=v>pe;if(O){var V=t.cornerRadius;V&&(e=fw(V),y=e[0],p=e[1],g=e[2],m=e[3]);var j=yv(i-n)/2;if(_=Ce(j,g),S=Ce(j,m),T=Ce(j,y),w=Ce(j,p),C=x=Tn(_,S),D=b=Tn(T,w),(x>pe||b>pe)&&(A=i*yi(l),L=i*Rr(l),I=n*yi(u),P=n*Rr(u),vpe){var Mt=Ce(g,C),yt=Ce(m,C),W=Aa(I,P,E,R,i,Mt,c),Z=Aa(A,L,F,B,i,yt,c);r.moveTo(f+W.cx+W.x0,h+W.cy+W.y0),C0&&r.arc(f+W.cx,h+W.cy,Mt,Dt(W.y0,W.x0),Dt(W.y1,W.x1),!c),r.arc(f,h,i,Dt(W.cy+W.y1,W.cx+W.x1),Dt(Z.cy+Z.y1,Z.cx+Z.x1),!c),yt>0&&r.arc(f+Z.cx,h+Z.cy,yt,Dt(Z.y1,Z.x1),Dt(Z.y0,Z.x0),!c))}else r.moveTo(f+E,h+R),r.arc(f,h,i,u,l,!c);if(!(n>pe)||!O)r.lineTo(f+F,h+B);else if(D>pe){var Mt=Ce(y,D),yt=Ce(p,D),W=Aa(F,B,A,L,n,-yt,c),Z=Aa(E,R,I,P,n,-Mt,c);r.lineTo(f+W.cx+W.x0,h+W.cy+W.y0),D0&&r.arc(f+W.cx,h+W.cy,yt,Dt(W.y0,W.x0),Dt(W.y1,W.x1),!c),r.arc(f,h,n,Dt(W.cy+W.y1,W.cx+W.x1),Dt(Z.cy+Z.y1,Z.cx+Z.x1),c),Mt>0&&r.arc(f+Z.cx,h+Z.cy,Mt,Dt(Z.y1,Z.x1),Dt(Z.y0,Z.x0),!c))}else r.lineTo(f+F,h+B),r.arc(f,h,n,l,u,c)}r.closePath()}}}var vw=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}(),hg=function(r){at(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new vw},t.prototype.buildPath=function(e,i){hw(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Q);hg.prototype.type="sector";var Wn=hg,cw=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),vg=function(r){at(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new cw},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}(Q);vg.prototype.type="ring";var cg=vg;function dw(r,t,e,i){var n=[],a=[],o=[],s=[],u,l,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(i){var a=dw(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 u=a[s*2],l=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;skr[1]){if(s=!1,a)return s;var f=Math.abs(kr[0]-Er[1]),h=Math.abs(Er[0]-kr[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:!l,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 Re(r,t,e,i,n,a){mf("update",r,t,e,i,n,a)}function Xe(r,t,e,i,n,a){mf("enter",r,t,e,i,n,a)}function Fi(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 Sv(r){return!r.isGroup}function Ww(r){return r.shape!=null}function Dg(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(u){Sv(u)&&u.anid&&(s[u.anid]=u)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Ww(o)&&(s.shape=k({},o.shape)),s}var a=i(r);t.traverse(function(o){if(Sv(o)&&o.anid){var s=a[o.anid];if(s){var u=n(o);o.attr(n(s)),Re(o,u,e,ut(o).dataIndex)}}})}function Uw(r,t){return G(r,function(e){var i=e[0];i=Io(i,t.x),i=Po(i,t.x+t.width);var n=e[1];return n=Io(n,t.y),n=Po(n,t.y+t.height),[i,n]})}function Yw(r,t){var e=Io(r.x,t.x),i=Po(r.x+r.width,t.x+t.width),n=Io(r.y,t.y),a=Po(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 Ag(r,t,e){var i=k({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),q(n,e),new si(i)):_f(r.replace("path://",""),i,e,"center")}function $w(r,t,e,i,n){for(var a=0,o=n[n.length-1];a1)return!1;var p=ru(v,d,f,h)/c;return!(p<0||p>1)}function ru(r,t,e,i){return r*i-e*t}function Xw(r){return r<=1e-6&&r>=-1e-6}function Ig(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=z(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&M(ht(u),function(f){Gi(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ut(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:i,option:q({content:i,formatterParams:s},n)}}function wv(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function wf(r,t){if(r)if(N(r))for(var e=0;e=0&&s.push(u)}),s}}var lT={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"}},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:". "}}}},fT={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}},Ro="ZH",xf="EN",$n=xf,lo={},bf={},Og=X.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Ro)>-1?Ro:$n}():$n;function Bg(r,t){r=r.toUpperCase(),bf[r]=new Ot(t),lo[r]=t}function hT(r){if(z(r)){var t=lo[r.toUpperCase()]||{};return r===Ro||r===xf?tt(t):lt(tt(t),tt(lo[$n]),!1)}else return lt(tt(r),tt(lo[$n]),!1)}function vT(r){return bf[r]}function cT(){return bf[$n]}Bg(xf,lT);Bg(Ro,fT);var Cf=1e3,Mf=Cf*60,Rn=Mf*60,se=Rn*24,Dv=se*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}"},Pa="{yyyy}-{MM}-{dd}",Av={year:"{yyyy}",month:"{yyyy}-{MM}",day:Pa,hour:Pa+" "+xn.hour,minute:Pa+" "+xn.minute,second:Pa+" "+xn.second,millisecond:xn.none},au=["year","month","day","hour","minute","second","millisecond"],Ng=["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 zi(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 dT(r){return r===zi(r)}function pT(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function is(r,t,e,i){var n=Ye(r),a=n[Df(e)](),o=n[Hi(e)]()+1,s=Math.floor((o-1)/3)+1,u=n[ns(e)](),l=n["get"+(e?"UTC":"")+"Day"](),f=n[Xn(e)](),h=(f-1)%12+1,c=n[as(e)](),v=n[os(e)](),d=n[ss(e)](),y=i instanceof Ot?i:vT(i||Og)||cT(),p=y.getModel("time"),g=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Or(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Or(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Or(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Or(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Or(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Or(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Or(d,3)).replace(/{S}/g,d+"")}function gT(r,t,e,i,n){var a=null;if(z(e))a=e;else if(Y(e))a=e(r.value,t,{level:r.level});else{var o=k({},xn);if(r.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(N(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 is(new Date(r.value),a,n,i)}function Fg(r,t){var e=Ye(r),i=e[Hi(t)]()+1,n=e[ns(t)](),a=e[Xn(t)](),o=e[as(t)](),s=e[os(t)](),u=e[ss(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Lv(r,t,e){var i=vt(r)?Ye(r):r;switch(t=t||Fg(r,e),t){case"year":return i[Df(e)]();case"half-year":return i[Hi(e)]()>=6?1:0;case"quarter":return Math.floor((i[Hi(e)]()+1)/4);case"month":return i[Hi(e)]();case"day":return i[ns(e)]();case"half-day":return i[Xn(e)]()/24;case"hour":return i[Xn(e)]();case"minute":return i[as(e)]();case"second":return i[os(e)]();case"millisecond":return i[ss(e)]()}}function Df(r){return r?"getUTCFullYear":"getFullYear"}function Hi(r){return r?"getUTCMonth":"getMonth"}function ns(r){return r?"getUTCDate":"getDate"}function Xn(r){return r?"getUTCHours":"getHours"}function as(r){return r?"getUTCMinutes":"getMinutes"}function os(r){return r?"getUTCSeconds":"getSeconds"}function ss(r){return r?"getUTCMilliseconds":"getMilliseconds"}function yT(r){return r?"setUTCFullYear":"setFullYear"}function zg(r){return r?"setUTCMonth":"setMonth"}function Hg(r){return r?"setUTCDate":"setDate"}function Gg(r){return r?"setUTCHours":"setHours"}function Vg(r){return r?"setUTCMinutes":"setMinutes"}function Wg(r){return r?"setUTCSeconds":"setSeconds"}function Ug(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Yg(r){if(!d1(r))return z(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function $g(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 Af=qd;function ml(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Ae(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?Ye(r):r;if(isNaN(+u)){if(s)return"-"}else return is(u,i,e)}if(t==="ordinal")return Hu(r)?n(r):vt(r)&&a(r)?r+"":"-";var l=bo(r);return a(l)?Yg(l):Hu(r)?n(r):typeof r=="boolean"?r+"":"-"}var Iv=["a","b","c","d","e","f","g"],ou=function(r,t){return"{"+r+(t==null?"":t)+"}"};function Xg(r,t,e){N(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 ai(r,t){return t=t||"transparent",z(r)?r:H(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}var fo=M,_T=["left","right","top","bottom","width","height"],Ra=[["width","left","right"],["height","top","bottom"]];function qg(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(u,l){var f=u.getBoundingRect(),h=t.childAt(l+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||u.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||u.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}ue(qg,"vertical");ue(qg,"horizontal");function Zg(r,t,e){e=Af(e||0);var i=t.width,n=t.height,a=bt(r.left,i),o=bt(r.top,n),s=bt(r.right,i),u=bt(r.bottom,n),l=bt(r.width,i),f=bt(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=i-s-c-a),isNaN(f)&&(f=n-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>i/n?l=i*.8:f=n*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=i-s-l-c),isNaN(o)&&(o=n-u-f-h),r.left||r.right){case"center":a=i/2-l/2-e[3];break;case"right":a=i-l-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(l)&&(l=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(u||0));var d=new J(a+e[3],o+e[0],l,f);return d.margin=e,d}function qn(r){var t=r.layoutMode||r.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Zn(r,t,e){var i=e&&e.ignoreSize;!N(i)&&(i=[i,i]);var n=o(Ra[0],0),a=o(Ra[1],1);l(Ra[0],r,n),l(Ra[1],r,a);function o(f,h){var c={},v=0,d={},y=0,p=2;if(fo(f,function(_){d[_]=r[_]}),fo(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&y++}),i[h])return u(t,f[1])?d[f[2]]=null:u(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;u--)s=lt(s,n[u],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return fa(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}(Ot);Ep(Xi,Ot);Xo(Xi);sT(Xi);uT(Xi,TT);function TT(r){var t=[];return M(Xi.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=G(t,function(e){return Le(e).main}),r!=="dataset"&&it(t,"dataset")<=0&&t.unshift("dataset"),t}var dt=Xi,Kg="";typeof navigator!="undefined"&&(Kg=navigator.platform||"");var mi="rgba(0, 0, 0, 0.2)",xT={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Kg.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},Qg=$(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),he="original",Yt="arrayRows",Oe="objectRows",Ze="keyedColumns",dr="typedArray",Jg="unknown",We="column",qi="row",Xt={Must:1,Might:2,Not:3},jg=ct();function bT(r){jg(r).datasetMap=$()}function CT(r,t,e){var i={},n=ty(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,u=jg(s).datasetMap,l=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(y,p){var g=H(y)?y:r[p]={name:y};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),i[g.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(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 PT(r,t,e,i,n,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(n))return l[n];var f=o==null||!i?e:IT(i,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return n&&(l[n]=h),s.paletteIdx=(u+1)%f.length,h}}function RT(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ea,an,Rv,Ev="\0_ec_inner",ET=1,ry=function(r){et(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 Ot(a),this._locale=new Ot(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=Bv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Bv(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"?Rv(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 u=a.getMediaOption(this);u.length&&M(u,function(l){n=!0,this._mergeOption(l,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=[],u=$(),l=i&&i.replaceMergeMainTypeMap;bT(this),M(e,function(h,c){h!=null&&(dt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):n[c]=n[c]==null?tt(h):lt(n[c],h,!0))}),l&&l.each(function(h,c){dt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),dt.topologicalTravel(s,dt.getAllClassMainTypes(),f,this);function f(h){var c=LT(this,h,_t(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",y=y1(v,c,d);b1(y,h,dt),n[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],m=0,_;M(y,function(S,T){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var b=h==="series",C=dt.getClass(h,S.keyInfo.subType,!b);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var D=k({componentIndex:T},S.keyInfo);w=new C(x,this,this,D),k(w,D),S.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),m++):(p.push(void 0),g.push(void 0))},this),n[h]=p,a.set(h,g),o.set(h,m),h==="series"&&Ea(this)}this._seriesIndices||Ea(this)},t.prototype.getOption=function(){var e=tt(this.option);return M(e,function(i,n){if(dt.hasClass(n)){for(var a=_t(i),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Gn(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[Ev],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 UT(r,t){return r.join(",")===t.join(",")}var YT=HT,ce=M,Kn=H,Nv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function uu(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,i=Nv.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(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=h1(c,m),y=m;break}}}return i[0]=c,i[1]=y,i})})}var us=function(){function r(t){this.data=t.data||(t.sourceFormat===Ze?{}:[]),this.sourceFormat=t.sourceFormat||Jg,this.seriesLayoutBy=t.seriesLayoutBy||We,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};Uv=(t={},t[Yt+"_"+We]={pure:!0,appendData:a},t[Yt+"_"+qi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Oe]={pure:!0,appendData:a},t[Ze]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[he]={appendData:a},t[dr]={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 Vi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function qv(r){var t,e;return H(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function En(r){return new lx(r)}var lx=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,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(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=u,this._modDataCount=l;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:un?-this._resultLT:0},r}(),hx=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 ho(t,e)},r}();function vx(r,t){var e=new hx,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==We&&Ft(o);var s=[],u={},l=r.dimensionsDefine;if(l)M(l,function(y,p){var g=y.name,m={index:p,name:g,displayName:y.displayName};if(s.push(m),g!=null){var _="";Gi(u,g)&&Ft(_),u[g]=m}});else for(var f=0;f65535?Sx:Tx}function _i(){return[1/0,-1/0]}function xx(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Qv(r,t,e,i,n){var a=py[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var u=new a(i),l=0;lp[1]&&(p[1]=y)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=G(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,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,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))&&(u[l++]=y),y++}d=!0}else if(a===2){for(var p=v[n[0]],_=v[n[1]],S=t[n[1]][0],T=t[n[1]][1],g=0;g=h&&m<=c||isNaN(m))&&(w>=S&&w<=T||isNaN(w))&&(u[l++]=y),y++}d=!0}}if(!d)if(a===1)for(var g=0;g=h&&m<=c||isNaN(m))&&(u[l++]=x)}else for(var g=0;gt[D][1])&&(b=!1)}b&&(u[l++]=e.getRawIndex(g))}return lg[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,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(sn(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=S)}A>0&&Af-d&&(u=f-d,s.length=u);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();au&&(u=h)}return o=[s,u],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 ho(e[a],this._dimensions[a])}hu={arrayRows:t,objectRows:function(e,i,n,a){return ho(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return ho(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),bx=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(ka(t)){var o=t,s=void 0,u=void 0,l=void 0;if(i){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=Qt(s)?dr:he,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=K(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=K(h.sourceHeader,c.sourceHeader),y=K(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||y;n=p?[_l(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:y},u)]:[]}else{var g=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=g.get("source",!0);n=[_l(_,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&&Jv(a)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(n||0),h="";n!=null&&!f&&Jv(h),s.push(f),u.push(l._getVersionSign())}),i?o=mx(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[ex(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return M(r.blocks,function(n){var a=_y(n);a>=t&&(t=a+ +(i&&(!a||wl(n)&&!n.noHeader)))}),t}return 0}function Dx(r,t,e,i){var n=t.noHeader,a=Lx(_y(t)),o=[],s=t.blocks||[];Ue(!s||N(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Gi(l,u)){var f=new fx(l[u],null);s.sort(function(d,y){return f.evaluate(d.sortParam,y.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(d,y){var p=t.valueFormatter,g=my(d)(p?k(k({},r),{valueFormatter:p}):r,d,y>0?a.html:0,i);g!=null&&o.push(g)});var h=r.renderMode==="richText"?o.join(a.richText):Tl(o.join(""),n?e:a.html);if(n)return h;var c=ml(t.header,"ordinal",r.useUTC),v=yy(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Sy(r,c,v)+a.richText+h:Tl('
'+ae(c)+"
"+h,e)}function Ax(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=N(S)?S:[S],G(S,function(T,w){return ml(T,N(v)?v[w]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":ml(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value),y=!s||!a,p=!s&&a,g=yy(i,n),m=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":h)+(a?"":Sy(r,c,m))+(o?"":Rx(r,d,y,p,_)):Tl((s?"":h)+(a?"":Ix(c,!s,m))+(o?"":Px(d,y,p,_)),e)}}function jv(r,t,e,i,n,a){if(!!r){var o=my(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Lx(r){return{html:Cx[r],richText:Mx[r]}}function Tl(r,t){var e='
',i="margin: "+t+"px 0 0";return'
'+r+e+"
"}function Ix(r,t,e){var i=t?"margin-left:2px":"";return''+ae(r)+""}function Px(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=N(r)?r:[r],''+G(r,function(o){return ae(o)}).join("  ")+""}function Sy(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Rx(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(N(t)?t.join(" "):t,a)}function Ex(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ai(i)}function wy(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var vu=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Cp()}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=mT({color:e,type:t,renderMode:i,markerId:n});return z(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};N(e)?M(e,function(a){return k(i,a)}):k(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function kx(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),u=N(s),l=Ex(t,e),f,h,c,v;if(o>1||u&&!o){var d=Ox(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var y=n.getDimensionInfo(a[0]);v=f=Vi(n,e,a[0]),h=y.type}else v=f=u?s[0]:s;var p=Lp(t),g=p&&t.name||"",m=n.getName(e),_=i?g:m;return Qn("section",{header:g,noHeader:i||!p,sortParam:v,blocks:[Qn("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ae(_),value:f,valueType:h})].concat(c||[])})}function Ox(r,t,e,i,n){var a=t.getData(),o=Ui(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];i.length?M(i,function(h){f(Vi(a,e,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(Qn("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var je=ct();function Oa(r,t){return r.getName(t)||r.getId(t)}var vo="__universalTransitionEnabled",fs=function(r){et(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=En({count:Nx,reset:Fx}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=je(this).sourceManager=new bx(this);a.prepareSource();var o=this.getInitialData(e,n);ec(o,this),this.dataTask.context.data=o,je(this).dataBeforeProcessed=o,tc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=qn(this),a=n?Lf(e):{},o=this.subType;dt.hasClass(o)&&(o+="Series"),lt(e,i.getTheme().get(this.subType)),lt(e,this.getDefaultOption()),Nh(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Zn(e,a,n)},t.prototype.mergeOption=function(e,i){e=lt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=qn(this);n&&Zn(this.option,e,n);var a=je(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);ec(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,je(this).dataBeforeProcessed=o,tc(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=If.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[Oa(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[vo])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,u=i.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){H(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(e,i)}},t.registerClass=function(e){return dt.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}(dt);Ee(fs,ux);Ee(fs,If);Ep(fs,dt);function tc(r){var t=r.name;Lp(r)||(r.name=Bx(r)||t)}function Bx(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return M(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function Nx(r){return r.model.getRawData().count()}function Fx(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),zx}function zx(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ec(r,t){M(F0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ue(Hx,t))})}function Hx(r,t){var e=xl(r);return e&&e.setOutputEnd((t||this).count()),t}function xl(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 Jn=fs,Bf=function(){function r(){this.group=new Jt,this.uid=rs("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}();uf(Bf);Xo(Bf);var oi=Bf;function Ty(){var r=ct();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 xy=ct(),Gx=Ty(),Nf=function(){function r(){this.group=new Jt,this.uid=rs("viewChart"),this.renderTask=En({plan:Vx,reset:Wx}),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||ic(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);!a||ic(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){wf(this.group,t)},r.markUpdateMethod=function(t,e){xy(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function rc(r,t,e){r&&cl(r)&&(t==="emphasis"?Mo:Do)(r,e)}function ic(r,t,e){var i=ii(r,t),n=t&&t.highlightKey!=null?KS(t.highlightKey):null;i!=null?M(_t(i),function(a){rc(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){rc(a,e,n)})}uf(Nf);Xo(Nf);function Vx(r){return Gx(r.model)}function Wx(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&xy(n).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,i,n),Ux[u]}var Ux={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)}}},pr=Nf,Eo="\0__throttleOriginMethod",nc="\0__throttleRate",ac="\0__throttleType";function by(r,t,e){var i,n=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}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 Cy(r,t,e,i){var n=r[t];if(!!n){var a=n[Eo]||n,o=n[ac],s=n[nc];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=by(a,e,i==="debounce"),n[Eo]=a,n[ac]=i,n[nc]=e}return n}}function bl(r,t){var e=r[t];e&&e[Eo]&&(e.clear&&e.clear(),r[t]=e[Eo])}var oc=ct(),sc={itemStyle:Vn(kg,!0),lineStyle:Vn(Eg,!0)},Yx={lineStyle:"stroke",itemStyle:"fill"};function My(r,t){var e=r.visualStyleMapper||sc[t];return e||(console.warn("Unkown style type '"+t+"'."),sc.itemStyle)}function Dy(r,t){var e=r.visualDrawType||Yx[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var $x={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=My(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=Dy(r,i),l=o[u],f=Y(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Y(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Y(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var y=r.getDataParams(d),p=k({},o);p[u]=f(y),v.setItemVisual(d,"style",p)}}}},un=new Ot,Xx={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=My(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[i]){un.option=u[i];var l=n(un),f=o.ensureUniqueItemVisual(s,"style");k(f,l),un.option.decal&&(o.setItemVisual(s,"decal",un.option.decal),un.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},qx={performRawSeries:!0,overallReset:function(r){var t=$();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)),oc(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=oc(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=Dy(e,s);a.each(function(l){var f=a.getRawIndex(l);n[f]=l}),i.each(function(l){var f=n[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(l)||l+"",d=i.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},Ba=Math.PI;function Zx(r,t){t=t||{},q(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 Wt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Pe({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 Wt({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 yf({shape:{startAngle:-Ba/2,endAngle:-Ba/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:Ba*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ba*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Kx=function(){function r(t,e,i,n){this._stageTaskMap=$(),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,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,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"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=$();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;M(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Ue(!(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;M(t,function(u,l){if(!(n.visualType&&n.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(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=!u.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,i),p.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__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=$(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):u?i.eachRawSeriesByType(u,f):l&&l(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||En({plan:eb,reset:rb,count:nb}));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||En({reset:Qx});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=$(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Ue(!t.createOnAllSeries,v),l?i.eachRawSeriesByType(l,d):f?f(i,n).each(d):(h=!1,M(i.getSeries(),d));function d(y){var p=y.uid,g=u.set(p,s&&s.get(p)||(c=!0,En({reset:Jx,onDirty:tb})));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 Y(t)&&(t={overallReset:t,seriesType:ab(t)}),t.uid=rs("stageHandler"),e&&(t.visualType=e),t},r}();function Qx(r){r.overallReset(r.ecModel,r.api,r.payload)}function Jx(r){return r.overallProgress&&jx}function jx(){this.agent.dirty(),this.getDownstream().dirty()}function tb(){this.agent&&this.agent.dirty()}function eb(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function rb(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=_t(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?G(t,function(e,i){return Ay(i)}):ib}var ib=Ay(0);function Ay(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(i[l]=u,f=!0),f||(n[l]=u)})}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 u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,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}(),Cl=["symbol","symbolSize","symbolRotate","symbolOffset"],hc=Cl.concat(["symbolKeepAspect"]),lb={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&&qr(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function Dl(r,t,e){for(var i=t.type==="radial"?Ab(r,t,e):Db(r,t,e),n=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:vt(r)?[r]:N(r)?r:null}function ky(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&Ib(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=G(e,function(a){return a/n}),i/=n)}return[e,i]}var Pb=new $e(!0);function Oo(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function vc(r){return typeof r=="string"&&r!=="none"}function Bo(r){var t=r.fill;return t!=null&&t!=="none"}function cc(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 dc(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 Al(r,t,e){var i=kp(t.image,t.__image,e);if(qo(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)*z0),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Rb(r,t,e,i){var n,a=Oo(e),o=Bo(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||Pb,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,S=void 0,T=void 0,w=void 0;(d||y)&&(w=t.getBoundingRect()),d&&(m=h?Dl(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=m),y&&(_=h?Dl(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?Al(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),g&&(T=h||!t.__canvasStrokePattern?Al(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),y?r.strokeStyle=_:g&&(T?r.strokeStyle=T:a=!1)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var b,C;r.setLineDash&&e.lineDash&&(n=ky(t),b=n[0],C=n[1]);var D=!0;(l||h&Mi)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),D=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),D&&f.rebuildPath(r,u?s:1),b&&(r.setLineDash(b),r.lineDashOffset=C),i||(e.strokeFirst?(a&&dc(r,e),o&&cc(r,e)):(o&&cc(r,e),a&&dc(r,e))),b&&r.setLineDash([])}function Eb(r,t,e){var i=t.__image=kp(e.image,t.__image,t,t.onload);if(!(!i||!qo(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=i.width/i.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(i,l,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(i,l,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function kb(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||ei,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=ky(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Oo(e)&&r.strokeText(n,e.x,e.y),Bo(e)&&r.fillText(n,e.x,e.y)):(Bo(e)&&r.fillText(n,e.x,e.y),Oo(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var pc=["shadowBlur","shadowOffsetX","shadowOffsetY"],gc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Oy(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){Gt(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Qr.opacity:o}(i||t.blend!==e.blend)&&(a||(Gt(r,n),a=!0),r.globalCompositeOperation=t.blend||Qr.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[At]){if(this._disposed){this.id;return}var a,o,s;if(H(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[At]=!0,!this._model||i){var u=new YT(this._api),l=this._theme,f=this._model=new iy;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},Il);var h={seriesTransition:s,optionChanged:!0};if(n)this[Nt]={silent:a,updateParams:h},this[At]=!1,this.getZr().wakeUp();else{try{wi(this),tr.update.call(this,null,h)}catch(c){throw this[Nt]=null,this[At]=!1,c}this._ssr||this._zr.flush(),this[Nt]=null,this[At]=!1,ln.call(this,a),fn.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||$b&&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 M(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;M(i,function(u){n.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(u){u.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(Rc[n]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(On,function(_,S){if(_.group===n){var T=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(tt(e)),w=_.getDom().getBoundingClientRect();u=a(w.left,u),l=a(w.top,l),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:T,left:w.left,top:w.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,y=h-l,p=Wi.createCanvas(),g=Rh(p,{renderer:i?"svg":"canvas"});if(g.resize({width:d,height:y}),i){var m="";return M(c,function(_){var S=_.left-u,T=_.top-l;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 Wt({shape:{x:0,y:0,width:d,height:y},style:{fill:e.connectedBackgroundColor}})),M(c,function(_){var S=new si({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});g.add(S)}),g.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return yu(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return yu(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=Hs(n,e);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,l))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=Hs(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?hb(s,u,i):vb(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;M(sC,function(i){var n=function(a){var o=e.getModel(),s=a.target,u,l=i==="globalout";if(l?u={}:s&&Cn(s,function(d){var y=ut(d);if(y&&y.dataIndex!=null){var p=y.dataModel||o.getSeriesByIndex(y.seriesIndex);return u=p&&p.getDataParams(y.dataIndex,y.dataType)||{},!0}else if(y.eventData)return u=k({},y.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(i,u)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),M(kn,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),M(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),cb(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&&Ip(this.getDom(),Hf,"");var i=this,n=i._api,a=i._model;M(i._componentsViews,function(o){o.dispose(a,n)}),M(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 On[i.id]},t.prototype.resize=function(e){if(!this[At]){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[Nt]&&(a==null&&(a=this[Nt].silent),n=!0,this[Nt]=null),this[At]=!0;try{n&&wi(this),tr.update.call(this,{type:"resize",animation:k({duration:0},e&&e.animation)})}catch(o){throw this[At]=!1,o}this[At]=!1,ln.call(this,a),fn.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(H(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Pl[e]){var n=Pl[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=k({},e);return i.type=kn[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(H(i)||(i={silent:!!i}),!!No[e.type]&&!!this._model){if(this[At]){this._pendingActions.push(e);return}var n=i.silent;_u.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&X.browser.weChat&&this._throttledZrFlush(),ln.call(this,n),fn.call(this,n)}},t.prototype.updateLabelLayout=function(){ye.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(){wi=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),gu(h,!0),gu(h,!1),c.plan()},gu=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 u(y,v,d,-1/0),!0})}}function u(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(Fi(g))return;if(g instanceof Q&&QS(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=p;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}g.__dirty&&n(g)}})}Ic=function(h){return new(function(c){et(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),jt(h)},v.prototype.leaveEmphasis=function(d,y){Do(d,y),jt(h)},v.prototype.enterBlur=function(d){HS(d),jt(h)},v.prototype.leaveBlur=function(d){Qp(d),jt(h)},v.prototype.enterSelect=function(d){Jp(d),jt(h)},v.prototype.leaveSelect=function(d){jp(d),jt(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}(ny))(h)},Ky=function(h){function c(v,d){for(var y=0;y=0)){Ec.push(e);var a=Py.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function rm(r,t){Pl[r]=t}function pC(r,t,e){var i=Yb("registerMap");i&&i(r,t,e)}var gC=yx;li(Ff,$x);li(hs,Xx);li(hs,qx);li(Ff,lb);li(hs,fb);li(Uy,Vb);tm(oy);em(Zb,jT);rm("default",Zx);Zi({type:Jr,event:Jr,update:Jr},Vt);Zi({type:so,event:so,update:so},Vt);Zi({type:Ln,event:Ln,update:Ln},Vt);Zi({type:uo,event:uo,update:uo},Vt);Zi({type:In,event:In,update:In},Vt);jy("light",ob);jy("dark",sb);function hn(r){return r==null?0:r.length||1}function kc(r){return r}var yC=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||kc,this._newKeyGetter=n||kc,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=u.shift();u.length===1&&(i[s]=u[0]),this._update&&this._update(f,o)}else l===1?(i[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},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,l),n[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),n[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),n[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),n[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var vn=H,er=G,CC=typeof Int32Array=="undefined"?Array:Int32Array,MC="e\0\0",Oc=-1,DC=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],AC=["_approximateExtent"],Bc,Va,cn,dn,Tu,Wa,xu,LC=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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,n=!1;nm(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,u=s===he;if(u&&!n.pure)for(var l=[],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),N(a)?a=a.slice():vn(a)&&(a=k({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,vn(e)?k(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){vn(t)?k(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?k(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;IS(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(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:er(this.dimensions,this._getDimInfo,this),this.hostModel)),Tu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];!Y(i)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(Kl(arguments)))})},r.internalField=function(){Bc=function(t){var e=t._invertedIndicesMap;M(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new CC(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),n[e]=u}}}(),r}(),IC=LC;function PC(r,t){Rf(r)||(r=Ef(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=$(),a=[],o=EC(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&sm(o),u=i===r.dimensionsDefine,l=u?om(r):am(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=$(f),c=new dy(o),v=0;v0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function EC(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return M(t,function(a){var o;H(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function kC(r,t,e){var i=t.data;if(e||i.hasOwnProperty(r)){for(var n=0;i.hasOwnProperty(r+n);)n++;r+=n}return t.set(r,!0),r}var OC=function(){function r(t){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=t}return r}();function BC(r){var t=r.get("coordinateSystem"),e=new OC(t),i=NC[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var NC={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",_e).models[0],a=r.getReferringComponents("yAxis",_e).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Ti(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Ti(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",_e).models[0];t.coordSysDims=["single"],e.set("single",n),Ti(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",_e).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Ti(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Ti(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();M(a.parallelAxisIndex,function(s,u){var l=n.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Ti(l)&&(i.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Ti(r){return r.get("type")==="category"}function FC(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;zC(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(M(a,function(m,_){z(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!i&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!l&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,y=0;M(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:l&&l.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function zC(r){return!nm(r.schema)}function ra(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function HC(r,t){return ra(r,t)?r.getCalculationInfo("stackResultDimension"):t}function GC(r,t){var e=r.get("coordinateSystem"),i=Pf.get(e),n;return t&&t.coordSysDims&&(n=G(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=SC(u)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function VC(r,t,e){var i,n;return e&&M(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(i==null&&(i=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function WC(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=Ef(r)):(n=i.getSource(),a=n.sourceFormat===he);var o=BC(t),s=GC(t,o),u=e.useEncodeDefaulter,l=Y(u)?u:u?ue(CT,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=PC(n,f),c=VC(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=FC(t,{schema:h,store:v}),y=new IC(h,t);y.setCalculationInfo(d);var p=c!=null&&UC(n)?function(g,m,_,S){return S===c?_:this.defaultDimValueGetter(g,m,_,S)}:null;return y.hasItemOption=!1,y.initData(a?n:v,null,p),y}function UC(r){if(r.sourceFormat===he){var t=YC(r.data||[]);return!N(la(t))}}function YC(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}();Xo(um);var Ke=um,$C=0,XC=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++$C}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&G(i,qC);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(!z(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=$(this.categories))},r}();function qC(r){return H(r)&&r.value!=null?r.value:r+""}var El=XC;function kl(r){return r.type==="interval"||r.type==="log"}function ZC(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=bp(a/t,!0);e!=null&&oi&&(o=n.interval=i);var s=n.intervalPrecision=lm(o),u=n.niceTickExtent=[mt(Math.ceil(r[0]/o)*o,s),mt(Math.floor(r[1]/o)*o,s)];return KC(u,r),n}function bu(r){var t=Math.pow(10,of(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,mt(e*t)}function lm(r){return Ge(r)+2}function Nc(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function KC(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Nc(r,0,t),Nc(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function vs(r,t){return r>=t[0]&&r<=t[1]}function cs(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function ds(r,t){return r*(t[1]-t[0])+t[0]}var fm=function(r){et(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new El({})),N(n)&&(n=new El({categories:G(n,function(a){return H(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:z(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),vs(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),cs(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(ds(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,u=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}(Ke);Ke.registerClass(fm);var hm=fm,zr=mt,vm=function(r){et(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 vs(e,this._extent)},t.prototype.normalize=function(e){return cs(e,this._extent)},t.prototype.scale=function(e){return ds(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=lm(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 u=1e4;n[0]u)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 eM(r){var t=tM(r),e=[];return M(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 u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=bt(i.get("barWidth"),s),y=bt(i.get("barMaxWidth"),s),p=bt(i.get("barMinWidth")||(aM(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:pm(a),stackId:dm(i)})}),rM(e)}function rM(r){var t={};M(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:{}},u=s.stacks;t[a]=s;var l=i.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=i.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(u[l].maxWidth=h);var c=i.barMinWidth;c&&(u[l].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var u=ht(a).length;s=Math.max(35-u*4,15)+"%"}var l=bt(s,o),f=bt(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,h-=S+f*S,c--}else{var S=v;m&&mS&&(S=_),S!==v&&(g.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,y;M(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;M(a,function(g,m){e[n][m]=e[n][m]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),e}function iM(r,t,e){if(r&&t){var i=r[pm(t)];return i!=null&&e!=null?i[dm(e)]:i}}function nM(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function aM(r){return r.pipelineContext&&r.pipelineContext.large}var oM=function(r,t,e,i){for(;e>>1;r[n][1]n&&(this._approxInterval=n);var s=Ua.length,u=Math.min(oM(Ua,this._approxInterval,0,s),s-1);this._interval=Ua[u][1],this._minLevelUnit=Ua[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return vt(e)?e:+Ye(e)},t.prototype.contain=function(e){return vs(this.parse(e),this._extent)},t.prototype.normalize=function(e){return cs(this.parse(e),this._extent)},t.prototype.scale=function(e){return ds(e,this._extent)},t.type="time",t}(ha),Ua=[["second",Cf],["minute",Mf],["hour",Rn],["quarter-day",Rn*6],["half-day",Rn*12],["day",se*1.2],["half-week",se*3.5],["week",se*7],["month",se*31],["quarter",se*95],["half-year",Dv/2],["year",Dv]];function sM(r,t,e,i){var n=Ye(t),a=Ye(e),o=function(d){return Lv(n,d,i)===Lv(a,d,i)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&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 u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function uM(r,t){return r/=se,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function lM(r){var t=30*se;return r/=t,r>6?6:r>3?3:r>2?2:1}function fM(r){return r/=Rn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Fc(r,t){return r/=t?Mf:Cf,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function hM(r){return bp(r,!0)}function vM(r,t,e){var i=new Date(r);switch(zi(t)){case"year":case"month":i[zg(e)](0);case"day":i[Hg(e)](1);case"hour":i[Gg(e)](0);case"minute":i[Vg(e)](0);case"second":i[Wg(e)](0),i[Ug(e)](0)}return i.getTime()}function cM(r,t,e,i){var n=1e4,a=Ng,o=0;function s(D,A,L,I,P,E,R){for(var F=new Date(A),B=A,O=F[I]();B1&&E===0&&L.unshift({value:L[0].value-B})}}for(var E=0;E=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||r===a[v]))break}f=[]}}}for(var S=Tt(G(l,function(D){return Tt(D,function(A){return A.value>=i[0]&&A.value<=i[1]&&!A.notAdd})}),function(D){return D.length>0}),T=[],w=S.length-1,v=0;v0;)a*=10;var s=[mt(yM(i[0]/a)*a),mt(gM(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Bn.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=de(e)/de(this.base),vs(e,this._extent)},t.prototype.normalize=function(e){return e=de(e)/de(this.base),cs(e,this._extent)},t.prototype.scale=function(e){return e=ds(e,this._extent),Ya(this.base,e)},t.type="log",t}(Ke),ym=Wf.prototype;ym.getMinorTicks=Bn.getMinorTicks;ym.getLabel=Bn.getLabel;function $a(r,t){return pM(r,Ge(t))}Ke.registerClass(Wf);var mM=Wf,_M=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[wM[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=SM[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),SM={min:"_determinedMin",max:"_determinedMax"},wM={min:"_dataMin",max:"_dataMax"};function TM(r,t,e){var i=r.rawExtentInfo;return i||(i=new _M(r,t,e),r.rawExtentInfo=i,i)}function Xa(r,t){return t==null?null:yo(t)?NaN:r.parse(t)}function mm(r,t){var e=r.type,i=TM(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=jC("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=eM(s),f=xM(n,a,t,l);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function xM(r,t,e,i){var n=e.axis.getExtent(),a=n[1]-n[0],o=iM(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function Hc(r,t){var e=t,i=mm(r,e),n=i.extent,a=e.get("splitNumber");r instanceof mM&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function bM(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new hm({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new dM({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ke.getClass(t)||ha)}}function CM(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function va(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):z(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a!=null?a:"");return o}}(t):Y(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(Uf(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function Uf(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function MM(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof hm?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=va(r),u,l=1;n>40&&(l=Math.ceil(n/40));for(var f=0;f=0||(Gc.push(r),Y(r)&&(r={install:r}),r.install(IM))}var na=ct();function PM(r){return r.type==="category"?EM(r):OM(r)}function RM(r,t){return r.type==="category"?kM(r,t):{ticks:G(r.scale.getTicks(),function(e){return e.value})}}function EM(r){var t=r.getLabelModel(),e=Sm(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Sm(r,t){var e=wm(r,"labels"),i=Yf(t),n=Tm(e,i);if(n)return n;var a,o;return Y(i)?a=Cm(r,i):(o=i==="auto"?BM(r):i,a=bm(r,o)),xm(e,i,{labels:a,labelCategoryInterval:o})}function kM(r,t){var e=wm(r,"ticks"),i=Yf(t),n=Tm(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),Y(i))a=Cm(r,i,!0);else if(i==="auto"){var s=Sm(r,r.getLabelModel());o=s.labelCategoryInterval,a=G(s.labels,function(u){return u.tickValue})}else o=i,a=bm(r,o,!0);return xm(e,i,{ticks:a,tickCategoryInterval:o})}function OM(r){var t=r.scale.getTicks(),e=va(r);return{labels:G(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function wm(r,t){return na(r)[t]||(na(r)[t]=[])}function Tm(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(i)),h=Math.abs(l*Math.sin(i)),c=0,v=0;u<=a[1];u+=s){var d=0,y=0,p=rf(e({value:u}),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))),S=na(r.model),T=r.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&S.axisExtent0===T[0]&&S.axisExtent1===T[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=T[0],S.axisExtent1=T[1]),_}function FM(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 bm(r,t,e){var i=va(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=n.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=_m(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&y(a[0]);for(var d=l;d<=a[1];d+=u)y(d);v&&d-u!==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 Cm(r,t,e){var i=r.scale,n=va(r),a=[];return M(i.getTicks(),function(o){var s=i.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:n(o),rawLabel:s,tickValue:u})}),a}var Vc=[0,1],zM=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 f1(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(),Wc(i,n.count())),kh(t,Vc,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Wc(i,n.count()));var a=kh(t,i,Vc,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=RM(this,e),n=i.ticks,a=G(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return HM(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=G(i,function(a){return G(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return PM(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 NM(this)},r}();function Wc(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function HM(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[0]};else{var u=t[n-1].tickValue-t[0].tickValue,l=(t[n-1].coord-t[0].coord)/u;M(t,function(v){v.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+l*s},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=mt(v),d=mt(d),h?v>d:vn&&(n+=pn);var v=Math.atan2(s,o);if(v<0&&(v+=pn),v>=i&&v<=n||v+pn>=i&&v+pn<=n)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(i)+r,y=e*Math.sin(i)+t,p=e*Math.cos(n)+r,g=e*Math.sin(n)+t,m=(d-o)*(d-o)+(y-s)*(y-s),_=(p-o)*(p-o)+(g-s)*(g-s);return m<_?(u[0]=d,u[1]=y,Math.sqrt(m)):(u[0]=p,u[1]=g,Math.sqrt(_))}function Ol(r,t,e,i,n,a,o,s){var u=n-r,l=a-t,f=e-r,h=i-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var y=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((y-n)*(y-n)+(p-a)*(p-a))}function Mm(r,t,e,i,n,a,o){e<0&&(r=r+e,e=-e),i<0&&(t=t+i,i=-i);var s=r+e,u=t+i,l=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-n)*(l-n)+(f-a)*(f-a))}var me=[];function YM(r,t,e){var i=Mm(t.x,t.y,t.width,t.height,r.x,r.y,me);return e.set(me[0],me[1]),i}function $M(r,t,e){for(var i=0,n=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,c=r.y,v=0;v0){t=t/180*Math.PI,Kr.fromArray(r[0]),xt.fromArray(r[1]),qt.fromArray(r[2]),U.sub(Ei,Kr,xt),U.sub(gn,qt,xt);var e=Ei.len(),i=gn.len();if(!(e<.001||i<.001)){Ei.scale(1/e),gn.scale(1/i);var n=Ei.dot(gn),a=Math.cos(t);if(a1&&U.copy(Gr,qt),Gr.toArray(r[1])}}}}function $c(r,t,e,i){var n=e==="normal",a=n?r:r.ensureState(e);a.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function qM(r,t){var e=t.smooth,i=t.points;if(!!i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var n=Uu(i[0],i[1]),a=Uu(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*e,s=ja([],i[1],i[0],o/n),u=ja([],i[1],i[2],o/a),l=ja([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],i[2][0],i[2][1])}else for(var f=1;f0&&a&&T(-f/o,0,o);var y=r[0],p=r[o-1],g,m;_(),g<0&&w(-g,.8),m<0&&w(m,.8),_(),S(g,m,1),S(m,g,-1),_(),g<0&&x(-g),m<0&&x(m);function _(){g=y.rect[t]-i,m=n-p.rect[t]-p.rect[e]}function S(b,C,D){if(b<0){var A=Math.min(C,-b);if(A>0){T(A*D,0,o);var L=A+b;L<0&&w(-L*D,1)}else w(-b*D,1)}}function T(b,C,D){b!==0&&(l=!0);for(var A=C;A0)for(var L=0;L0;L--){var R=D[L-1]*E;T(-R,L,o)}}}function x(b){var C=b<0?-1:1;b=Math.abs(b);for(var D=Math.ceil(b/(o-1)),A=0;A0?T(D,0,A+1):T(-D,o-A-1,o),b-=D,b<=0)return}return l}function QM(r,t,e,i){return Am(r,"x","width",t,e,i)}function JM(r,t,e,i){return Am(r,"y","height",t,e,i)}function Lm(r){var t=[];r.sort(function(y,p){return p.priority-y.priority});var e=new J(0,0,0,0);function i(y){if(!y.ignore){var p=y.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}y.ignore=!0}for(var n=0;n=0&&i.attr(a.oldLayoutSelect),it(c,"emphasis")>=0&&i.attr(a.oldLayoutEmphasis)),Re(i,l,e,u)}else if(i.attr(l),!es(i).valueAnimation){var h=K(i.style.opacity,1);i.style.opacity=0,Xe(i,{style:{opacity:h}},e,u)}if(a.oldLayout=l,i.states.select){var v=a.oldLayoutSelect={};qa(v,l,Za),qa(v,i.states.select,Za)}if(i.states.emphasis){var d=a.oldLayoutEmphasis={};qa(d,l,Za),qa(d,i.states.emphasis,Za)}Jw(i,u,f,e,e)}if(n&&!n.ignore&&!n.invisible){var a=eD(n),o=a.oldLayout,y={points:n.shape.points};o?(n.attr({shape:o}),Re(n,{shape:y},e)):(n.setShape(y),n.style.strokePercent=0,Xe(n,{style:{strokePercent:1}},e)),a.oldLayout=y}},r}(),iD=rD,Mu=ct();function nD(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){var n=Mu(e).labelManager;n||(n=Mu(e).labelManager=new iD),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var n=Mu(e).labelManager;i.updatedSeries.forEach(function(a){n.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var aD=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return WC(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new Jt,n=ta("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(n),n.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=e.itemHeight*.8,l=ta(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);i.add(l),l.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Jn),oD=aD;function Im(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=Vi(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 uD=function(r){et(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=ta(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=lD,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(){Do(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,u=t.getSymbolSize(e,i),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,u,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?c.attr(v):Re(c,v,s,i),Rw(c)}if(this._updateCommon(e,i,u,n,a),l){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,Xe(c,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,y,p,g;if(a&&(l=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");l=_.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 S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var T=Ey(e.getItemVisual(i,"symbolOffset"),n);T&&(s.x=T[0],s.y=T[1]),g&&s.attr("cursor",g);var w=e.getItemVisual(i,"style"),x=w.fill;if(s instanceof si){var b=s.style;s.useStyle(k({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},w))}else s.__isEmptyBrush?s.useStyle(k({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(i,"liftZ"),D=this._z2;C!=null?D==null&&(this._z2=s.z2,s.z2+=C):D!=null&&(s.z2=D,this._z2=null);var A=o&&o.useNameLabel;Rg(s,y,{labelFetcher:u,labelDataIndex:i,defaultText:L,inheritColor:x,defaultOpacity:w.opacity});function L(E){return A?e.getName(E):Im(e,E)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=l,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),vl(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=ut(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var u=a.getTextContent();u&&Lo(u,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Lo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return Mb(e.getItemVisual(i,"symbolSize"))},t}(Jt);function lD(r,t){this.parent.drift(r,t)}var $f=uD;function Du(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 qc(r){return r!=null&&!H(r)&&(r={isIgnore:r}),r||{}}function Zc(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 fD=function(){function r(t){this.group=new Jt,this._SymbolCtor=t||$f}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qc(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=Zc(t),l={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(Du(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Du(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,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var g={x:d[0],y:d[1]};s?v.attr(g):Re(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=Zc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=qc(i);function n(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?e=i[0]:i[1]<0&&(e=i[1]),e}function Rm(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 cD(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 dD(r,t,e,i,n,a,o,s){for(var u=cD(r,t),l=[],f=[],h=[],c=[],v=[],d=[],y=[],p=Pm(n,t,o),g=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=n||y<0)break;if(jr(g,m)){if(u){y+=a;continue}break}if(y===e)r[a>0?"moveTo":"lineTo"](g,m),h=g,c=m;else{var _=g-l,S=m-f;if(_*_+S*S<.5){y+=a;continue}if(o>0){for(var T=y+a,w=t[T*2],x=t[T*2+1];w===g&&x===m&&p=i||jr(w,x))v=g,d=m;else{D=w-l,A=x-f;var P=g-l,E=w-g,R=m-f,F=x-m,B=void 0,O=void 0;if(s==="x"){B=Math.abs(P),O=Math.abs(E);var V=D>0?1:-1;v=g-V*B*o,d=m,L=g+V*O*o,I=m}else if(s==="y"){B=Math.abs(R),O=Math.abs(F);var j=A>0?1:-1;v=g,d=m-j*B*o,L=g,I=m+j*O*o}else B=Math.sqrt(P*P+R*R),O=Math.sqrt(E*E+F*F),C=O/(O+B),v=g-D*o*(1-C),d=m-A*o*(1-C),L=g+D*o*C,I=m+A*o*C,L=rr(L,ir(w,g)),I=rr(I,ir(x,m)),L=ir(L,rr(w,g)),I=ir(I,rr(x,m)),D=L-g,A=I-m,v=g-D*B/O,d=m-A*B/O,v=rr(v,ir(l,g)),d=rr(d,ir(f,m)),v=ir(v,rr(l,g)),d=ir(d,rr(f,m)),D=g-v,A=m-d,L=g+D*O/B,I=m+A*O/B}r.bezierCurveTo(h,c,v,d,g,m),h=L,c=I}else r.lineTo(g,m)}l=g,f=m,y+=a}return p}var Em=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),pD=function(r){et(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 Em},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&jr(n[o*2-2],n[o*2-1]);o--);for(;a=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],y=a[h++],p=a[h++],g=a[h++],m=a[h++];var T=l?_o(s,v,y,g,e,f):_o(u,d,p,m,e,f);if(T>0)for(var w=0;w=0){var S=l?wt(u,d,p,m,x):wt(s,v,y,g,x);return l?[e,S]:[S,e]}}s=g,u=m;break}}},t}(Q),gD=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Em),yD=function(r){et(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 gD},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,u=i.smoothMonotone;if(i.connectNulls){for(;s>0&&jr(n[s*2-2],n[s*2-1]);s--);for(;ot){a?e.push(o(a,u,t)):n&&e.push(o(n,u,0),o(n,u,t));break}else n&&(e.push(o(n,u,0)),n=null),e.push(u),a=u}return e}function xD(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 u=t.getAxis(n),l=G(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=TD(l,n==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,y=c[0].coord-d,p=c[v-1].coord+d,g=p-y;if(g<.001)return"transparent";M(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 Tg(0,0,0,0,c,!0);return m[n]=y,m[n+"2"]=p,m}}}function bD(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(n&&CD(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function CD(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 MD(r,t){return isNaN(r)||isNaN(t)}function DD(r){for(var t=r.length/2;t>0&&MD(r[t*2-2],r[t*2-1]);t--);return t-1}function td(r,t){return[r[t*2],r[t*2+1]]}function AD(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,u=-1,l=0;l=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function km(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var V=y.getState("emphasis").style;V.lineWidth=+y.style.lineWidth+1}ut(y).seriesIndex=e.seriesIndex,vl(y,F,B,O);var j=jc(e.get("smooth")),nt=e.get("smoothMonotone");if(y.setShape({smooth:j,smoothMonotone:nt,connectNulls:b}),p){var ot=u.getCalculationInfo("stackedOnSeries"),st=0;p.useStyle(q(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),ot&&(st=jc(ot.get("smooth"))),p.setShape({smooth:j,stackedOnSmooth:st,smoothMonotone:nt,connectNulls:b}),hv(p,e,"areaStyle"),ut(p).seriesIndex=e.seriesIndex,vl(p,F,B,O)}var Ct=function(ft){a._changePolyState(ft)};u.eachItemGraphicEl(function(ft){ft&&(ft.onHoverStateChange=Ct)}),this._polyline.onHoverStateChange=Ct,this._data=u,this._coordSys=o,this._stackedOnPoints=w,this._points=h,this._step=A,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,y),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,i){ut(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=ii(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;l=new $f(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else pr.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=ii(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else pr.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;ov(this._polyline,e),i&&ov(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new pD({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 yD({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(),u=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");Y(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=Y(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 S=n,T=i.pointToCoord(p);a?(g=S.startAngle,m=S.endAngle,_=-T[1]/180*Math.PI):(g=S.r0,m=S.r,_=T[0])}else{var w=n;a?(g=w.x,m=w.x+w.width,_=v.x):(g=w.y+w.height,m=w.y,_=v.y)}var x=m===g?0:(_-g)/(m-g);u&&(x=1-x);var b=Y(h)?h(d):f*x+c,C=y.getSymbolPath(),D=C.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:b}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(km(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Pe({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=DD(u);f>=0&&(Rg(s,Tf(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?sD(o,v):Im(o,h)},enableTextSetter:!0},LD(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,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),d=s.get("precision"),y=s.get("distance")||0,p=u.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,_=i.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,T=(g?y:0)*(m?-1:1),w=(g?0:-y)*(m?-1:1),x=g?"x":"y",b=AD(h,S,x),C=b.range,D=C[1]-C[0],A=void 0;if(D>=1){if(D>1&&!v){var L=td(h,C[0]);l.attr({x:L[0]+T,y:L[1]+w}),o&&(A=c.getRawValue(C[0]))}else{var L=f.getPointOn(S,x);L&&l.attr({x:L[0]+T,y:L[1]+w});var I=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(A=Pp(n,d,I,P,b.t))}a.lastFrameIndex=C[0]}else{var E=e===1||a.lastFrameIndex>0?C[0]:0,L=td(h,E);o&&(A=c.getRawValue(E)),l.attr({x:L[0]+T,y:L[1]+w})}o&&es(l).setLabelText(A)}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=dD(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&&(v=nr(c.current,n,o,u),d=nr(c.stackedOnCurrent,n,o,u),y=nr(c.next,n,o,u),p=nr(c.stackedOnNext,n,o,u)),Jc(v,y)>3e3||f&&Jc(d,p)>3e3){l.stopAnimation(),l.setShape({points:y}),f&&(f.stopAnimation(),f.setShape({points:y,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=v;var g={shape:{points:y}};c.current!==v&&(g.shape.__points=c.next),l.stopAnimation(),Re(l,g,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Re(f,{shape:{stackedOnPoints:p}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var T=_[S].cmd;if(T==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&m.push({el:w,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var x=l.shape.__points,b=0;bt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/v));var d=void 0;z(a)?d=ED[a]:Y(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(l.dim),1/v,d,kD))}}}}}function BD(r){r.registerChartView(PD),r.registerSeriesModel(oD),r.registerLayout(RD("line",!0)),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,OD("line"))}var ND=function(r){et(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}(dt),FD=ND,Nl=function(r){et(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",_e).models[0]},t.type="cartesian2dAxis",t}(dt);Ee(Nl,LM);var Om={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},zD=lt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Om),Xf=lt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Om),HD=lt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Xf),GD=q({logBase:10},Xf),VD={category:zD,value:Xf,time:HD,log:GD},WD={value:1,category:1,time:1,log:1};function ed(r,t,e,i){M(WD,function(n,a){var o=lt(lt({},VD[a],!0),i,!0),s=function(u){et(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=qn(this),v=c?Lf(f):{},d=h.getTheme();lt(f,d.get(a+"Axis")),lt(f,this.getDefaultOption()),f.type=rd(f),c&&Zn(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=El.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",rd)}function rd(r){return r.type||(r.data?"category":"value")}var UD=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 G(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Tt(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}(),YD=UD,Fl=["x","y"];function id(r){return r.type==="interval"||r.type==="time"}var $D=function(r){et(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Fl,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!id(e)||!id(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),u=n[1]-n[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-n[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=$o([],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 J(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 le(n,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=u.toGlobalCoord(u.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),u=n.parse(e[0]),l=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return le(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(){var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),a=Math.min(i[0],i[1]),o=Math.max(e[0],e[1])-n,s=Math.max(i[0],i[1])-a;return new J(n,a,o,s)},t}(YD),XD=function(r){et(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}(GM),qD=XD;function zl(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,u=o?"onZero":s,l=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=l==="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=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="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),Fn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var g=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-g:g,a.z2=1,a}function nd(r){return r.get("coordinateSystem")==="cartesian2d"}function ad(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,_e).models[0];t[i]=a}),t}var Lu=Math.log;function ZD(r,t,e){var i=ha.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),u=mm(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var c=Lu(r.base);l=[Lu(l[0])/c,Lu(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=i.getExtent.call(r);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=i.getInterval.call(r),y=l[0],p=l[1];if(f&&h)d=(p-y)/o;else if(f)for(p=l[0]+d*o;pl[0]&&isFinite(y)&&isFinite(l[0]);)d=bu(d),y=l[1]-d*o;else{var g=r.getTicks().length-1;g>o&&(d=bu(d));var m=d*o;p=Math.ceil(l[1]/d)*d,y=mt(p-m),y<0&&l[0]>=0?(y=0,p=mt(m)):p>0&&l[1]<=0&&(p=0,y=-mt(m))}var _=(n[0].value-a[0].value)/s,S=(n[o].value-a[o].value)/s;i.setExtent.call(r,y+d*_,p+d*S),i.setInterval.call(r,d),(_||S)&&i.setNiceExtent.call(r,y+d,p-d)}var KD=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Fl,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,u=ht(o),l=u.length;if(!!l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,y=v.scale;kl(y)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(Hc(y,d),kl(y)&&(s=v))}f.length&&(s||(s=f.pop(),Hc(s.scale,s.model)),M(f,function(p){ZD(p.scale,p.model,s.scale)}))}}n(i.x),n(i.y);var a={};M(i.x,function(o){od(i,"y",o,a)}),M(i.y,function(o){od(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=Zg(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(M(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=MM(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),M(this._coordsList,function(l){l.calcAffineTransform()});function u(){M(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),QD(l,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]}H(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n0?"top":"bottom",a="center"):xo(n-fr)?(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}(),ud={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],u=[a[1],0],l=s[0]>u[0];o&&(le(s,s,o),le(u,u,o));var f=k({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ni({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[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"]);z(c)&&(c=[c,c]),(z(v)||vt(v))&&(v=[v,v]);var d=Ey(t.get(["axisLine","symbolOffset"])||0,v),y=v[0],p=v[1];M([{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]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(g,m){if(c[m]!=="none"&&c[m]!=null){var _=ta(c[m],-y/2,-p/2,y,p,f.stroke,!0),S=g.r+g.offset,T=l?u:s;_.attr({rotation:g.rotate,x:T[0]+S*Math.cos(r.rotation),y:T[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=eA(e,i,t,r),a=iA(e,i,t,r);if(tA(t,a,n),rA(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Dm(G(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Lm(o)}},axisName:function(r,t,e,i){var n=Fn(r.axisName,t.get("name"));if(!!n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,fd(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*fr/180);var d;fd(a)?c=ti.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=jD(r.rotation,a,v||0,l),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=Fn(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Pe({x:h[0],y:h[1],rotation:c.rotation,silent:ti.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(Ig({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var S=ti.makeAxisEventDataBase(t);S.targetType="axisName",S.name=n,ut(_).eventData=S}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function jD(r,t,e,i){var n=xp(e-r),a,o,s=i[0]>i[1],u=t==="start"&&!s||t!=="start"&&s;return xo(n-fr/2)?(o=u?"bottom":"top",a="center"):xo(n-fr*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",nfr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function tA(r,t,e){if(!_m(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],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];i===!1?(te(a),te(l)):ld(a,o)&&(i?(te(o),te(f)):(te(a),te(l))),n===!1?(te(s),te(h)):ld(u,s)&&(n?(te(u),te(c)):(te(s),te(h)))}}function te(r){r&&(r.ignore=!0)}function ld(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=Jl([]);return jl(n,n,-r.rotation),e.applyTransform(Bi([],n,r.getLocalTransform())),i.applyTransform(Bi([],n,t.getLocalTransform())),e.intersect(i)}}function fd(r){return r==="middle"||r==="center"}function Bm(r,t,e,i,n){for(var a=[],o=[],s=[],u=0;u=0||r===t}function lA(r){var t=qf(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=Hl(e);a==null&&(n.status=s?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),os)return!0;if(o){var u=qf(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/u>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=Yr(t).pointerEl=new qw[a.type](cd(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Yr(t).labelEl=new Pe(cd(e.label));t.add(a),pd(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Yr(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=Yr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),pd(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=Ag(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){Jd(l.event)},onmousedown:Ru(this._onHandleDragMove,this,0,0),drift:Ru(this._onHandleDragMove,this),ondragend:Ru(this._onHandleDragEnd,this)}),i.add(n)),gd(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");N(u)||(u=[u,u]),n.scaleX=u[0]/2,n.scaleY=u[1]/2,Cy(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){dd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Eu(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(Eu(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Eu(n)),Yr(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),bl(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 dd(r,t,e,i){Gm(Yr(e).lastProp,i)||(Yr(e).lastProp=i,t?Re(e,i,r):(e.stopAnimation(),e.attr(i)))}function Gm(r,t){if(H(r)&&H(t)){var e=!0;return M(t,function(i,n){e=e&&Gm(r[n],i)}),!!e}else return r===t}function pd(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Eu(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function gd(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)})}var wA=SA;function TA(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 xA(r,t,e,i,n){var a=e.get("value"),o=Vm(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Af(s.get("padding")||0),l=s.getFont(),f=rf(o,l),h=n.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var y=n.verticalAlign;y==="bottom"&&(h[1]-=v),y==="middle"&&(h[1]-=v/2),bA(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:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function bA(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 Vm(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:Uf(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(i,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),z(o)?a=o.replace("{value}",a):Y(o)&&(a=o(s))}return a}function Wm(r,t,e){var i=zn();return jl(i,i,e.rotation),qu(i,i,e.position),Sf([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function CA(r,t,e,i,n,a){var o=Nm.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),xA(t,i,n,a,{position:Wm(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function MA(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function DA(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var AA=function(r){et(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,u=s.grid,l=a.get("type"),f=yd(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(l&&l!=="none"){var c=TA(a),v=LA[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=zl(u.model,n);CA(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=zl(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Wm(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,u=o.getGlobalExtent(!0),l=yd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(wA);function yd(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var LA={line:function(r,t,e){var i=MA([t,e[0]],[t,e[1]],md(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:DA([t-i/2,e[0]],[i,n],md(r))}}};function md(r){return r.dim==="x"?0:1}var IA=AA,PA=function(r){et(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,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}(dt),RA=PA,Ve=ct(),EA=M;function Um(r,t,e){if(!X.node){var i=t.getZr();Ve(i).records||(Ve(i).records={}),kA(i,t);var n=Ve(i).records[r]||(Ve(i).records[r]={});n.handler=e}}function kA(r,t){if(Ve(r).initialized)return;Ve(r).initialized=!0,e("click",ue(_d,"click")),e("mousemove",ue(_d,"mousemove")),e("globalout",BA);function e(i,n){r.on(i,function(a){var o=NA(t);EA(Ve(r).records,function(s){s&&n(s,a,o.dispatchAction)}),OA(o.pendings,t)})}}function OA(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 BA(r,t,e){r.handler("leave",null,e)}function _d(r,t,e,i){t.handler(r,e,i)}function NA(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 Vl(r,t){if(!X.node){var e=t.getZr(),i=(Ve(e).records||{})[r];i&&(Ve(e).records[r]=null)}}var FA=function(r){et(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";Um("axisPointer",n,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,i){Vl("axisPointer",i)},t.prototype.dispose=function(e,i){Vl("axisPointer",i)},t.type="axisPointer",t}(oi),zA=FA;function Ym(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ii(a,r);if(o==null||o<0||N(o))return{point:[]};var s=a.getItemGraphicEl(o),u=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),y=[];y[v]=a.get(d,o),y[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(y)||[]}else e=u.dataToPoint(a.getValues(G(u.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 Sd=ct();function HA(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||pt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){po(n)&&(n=Ym({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=po(n),l=a.axesInfo,f=s.axesInfo,h=i==="leave"||po(n),c={},v={},d={list:[],map:{}},y={showPointer:ue(VA,v),showTooltip:ue(WA,d)};M(s.coordSysMap,function(g,m){var _=u||g.containPoint(n);M(s.coordSysAxesInfo[m],function(S,T){var w=S.axis,x=XA(l,S);if(!h&&_&&(!l||x)){var b=x&&x.value;b==null&&!u&&(b=w.pointToData(n)),b!=null&&wd(S,b,y,!1,c)}})});var p={};return M(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,T){var w=v[T];if(S!==g&&w){var x=w.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,Td(S),Td(g)))),p[g.key]=x}})}),M(p,function(g,m){wd(f[m],g,y,!0,c)}),UA(v,f,c),YA(d,n,r,o),$A(f,o,e),c}}function wd(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=GA(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&n.seriesIndex==null&&k(n,s[0]),!i&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function GA(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(i),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.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),M(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:n}}function VA(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function WA(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var u=t.coordSys.model,l=aa(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.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 UA(r,t,e){var i=e.axesInfo=[];M(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 YA(r,t,e,i){if(po(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 $A(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=Sd(i)[n]||{},o=Sd(i)[n]={};M(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(a,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function XA(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 Td(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 po(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function $m(r){Fm.registerAxisPointerClass("CartesianAxisPointer",IA),r.registerComponentModel(RA),r.registerComponentView(zA),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!N(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=nA(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HA)}function qA(r){ia(_A),ia($m)}var ZA=function(r){et(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}(dt),KA=ZA;function Xm(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function qm(r){if(!!X.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",y=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'
'}function iL(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?","+Zf+i:",left"+i+",top"+i),jA+":"+n}function xd(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;"+Zf+":"+o+";":[["top",0],["left",0],[Zm,o]]}function nL(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var n=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return n&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+n),M(["decoration","align"],function(u){var l=r.get(u);l&&t.push("text-"+u+":"+l)}),t.join(";")}function aL(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=wy(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&n&&i.push(iL(n,e)),a&&i.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,y=$g(d),p=r.get(y);p!=null&&i.push(d+":"+p+(v==="color"?"":"px"))}),i.push(nL(f)),h!=null&&i.push("padding:"+Af(h).join("px ")+"px"),i.join(";")+";"}function bd(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&K0(r,o,document.body,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 oL=function(){function r(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,X.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=e.getZr(),o=this._appendToBody=i&&i.appendToBody;bd(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(n):t.appendChild(n),this._container=t;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=a.handler,f=a.painter.getViewportRoot();re(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,i=JA(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),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=tL+aL(t,!this._firstShow,this._longHide)+xd(a[0],a[1],!0)+("border-color:"+ai(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(z(a)&&i.get("trigger")==="item"&&!Xm(i)&&(s=rL(i,n,a)),z(t))o.innerHTML=t+s;else if(t){o.innerHTML="",N(t)||(t=[t]);for(var u=0;u=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=Dd(a,n);this._ticket="";var s=a.dataByCoordSys,u=pL(a,i,n);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=fL;f.x=a.x,f.y=a.y,f.update(),ut(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=Ym(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._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Dd(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=i.getSeriesByIndex(o);if(!!l){var f=l.getData(),h=yn([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(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){this._lastDataByCoordSys=null;var s,u;Cn(n,function(l){if(ut(l).dataIndex!=null)return s=l,!0;if(ut(l).tooltipConfig!=null)return u=l,!0},!0),s?this._showSeriesItemTooltip(e,s,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=pt(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=yn([i.tooltipOption],a),u=this._renderMode,l=[],f=Qn("section",{blocks:[],noHeader:!0}),h=[],c=new vu;M(e,function(m){M(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),T=_.value;if(!(!S||T==null)){var w=Vm(T,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),x=Qn("section",{header:w,noHeader:!Ae(w),sortBlocks:!0,blocks:[]});f.blocks.push(x),M(_.seriesDataIndices,function(b){var C=n.getSeriesByIndex(b.seriesIndex),D=b.dataIndexInside,A=C.getDataParams(D);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=Uf(S.axis,{value:T}),A.axisValueLabel=w,A.marker=c.makeTooltipMarker("item",ai(A.color),u);var L=qv(C.formatTooltip(D,!0,null)),I=L.frag;if(I){var P=yn([C],a).get("valueFormatter");x.blocks.push(P?k({valueFormatter:P},I):I)}L.text&&h.push(L.text),l.push(A)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),y=jv(f,c,u,d,n.get("useUTC"),s.get("textStyle"));y&&h.unshift(y);var p=u==="richText"?` `:"
",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,g,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=ut(i),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,y=yn([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=y.get("trigger");if(!(p!=null&&p!=="item")){var g=l.getDataParams(f,h),m=new vu;g.marker=m.makeTooltipMarker("item",ai(g.color),v);var _=qv(l.formatTooltip(f,!1,h)),S=y.get("order"),T=y.get("valueFormatter"),w=_.frag,x=w?jv(T?k({valueFormatter:T},w):w,m,v,S,a.get("useUTC"),y.get("textStyle")):_.text,b="item_"+l.name+"_"+f;this._showOrMove(y,function(){this._showTooltipContent(y,x,g,b,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=ut(i),o=a.tooltipConfig,s=o.option||{};if(z(s)){var u=s;s={content:u,formatter:u}}var l=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&l.push(f),l.push({formatter:s.content});var h=e.positionDefault,c=yn(l,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",y=new vu;this._showOrMove(c,function(){var p=tt(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,i,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),y=d.color;if(c)if(z(c)){var p=e.ecModel.get("useUTC"),g=N(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,m&&(v=is(g.axisValue,v,p)),v=Xg(v,n,!0)}else if(Y(c)){var _=pt(function(S,T){S===this._ticket&&(h.setContent(T,f,e,y,u),this._updatePosition(e,u,o,s,h,n,l))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,y,u),h.show(e,y),this._updatePosition(e,u,o,s,h,n,l)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||N(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!N(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,u){var l=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=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),Y(i)&&(i=i([n,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),N(i))n=bt(i[0],l),a=bt(i[1],f);else if(H(i)){var y=i;y.width=h[0],y.height=h[1];var p=Zg(y,{width:l,height:f});n=p.x,a=p.y,c=null,v=null}else if(z(i)&&u){var g=dL(i,d,h,e.get("borderWidth"));n=g[0],a=g[1]}else{var g=vL(n,a,o,l,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),Xm(e)){var g=cL(n,a,o,l,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&&M(n,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,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&&M(y,function(g,m){var _=p[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(g){var m=g.seriesIndex,_=i[m],S=a[m];_&&S&&S.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()||(bl(this,"_updatePosition"),this._tooltipContent.dispose(),Vl("itemTooltip",i))},t.type="tooltip",t}(oi);function yn(r,t,e){var i=t.ecModel,n;e?(n=new Ot(e,i,i),n=new Ot(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Ot&&(o=o.get("tooltip",!0)),z(o)&&(o={formatter:o}),o&&(n=new Ot(o,n,i)))}return n}function Dd(r,t){return r.dispatchAction||pt(t.dispatchAction,t)}function vL(r,t,e,i,n,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>i?r-=u+a:r+=a),o!=null&&(t+l+o>n?t-=l+o:t+=o),[r,t]}function cL(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 dL(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-n/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-n/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-n/2,u=t.y+f+o;break;case"left":s=t.x-n-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function Ad(r){return r==="center"||r==="middle"}function pL(r,t,e){var i=sf(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=fa(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ut(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:n,componentIndex:o.componentIndex,el:u}}}}var gL=hL;function yL(r){ia($m),r.registerComponentModel(KA),r.registerComponentView(gL),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Vt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Vt)}var Me=$e.CMD;function ki(r,t){return Math.abs(r-t)<1e-5}function Wl(r){var t=r.data,e=r.len(),i=[],n,a=0,o=0,s=0,u=0;function l(I,P){n&&n.length>2&&i.push(n),n=[I,P]}function f(I,P,E,R){ki(I,E)&&ki(P,R)||n.push(I,P,E,R,E,R)}function h(I,P,E,R,F,B){var O=Math.abs(P-I),V=Math.tan(O/4)*4/3,j=Pb:A2&&i.push(n),i}function Ul(r,t,e,i,n,a,o,s,u,l){if(ki(r,e)&&ki(t,i)&&ki(n,o)&&ki(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var y=e-r,p=i-t,g=n-o,m=a-s,_=y*y+p*p,S=g*g+m*m;if(_=0&&b=0){u.push(o,s);return}var C=[],D=[];gr(r,e,n,o,.5,C),gr(t,i,a,s,.5,D),Ul(C[0],D[0],C[1],D[1],C[2],D[2],C[3],D[3],u,l),Ul(C[4],D[4],C[5],D[5],C[6],D[6],C[7],D[7],u,l)}function mL(r,t){var e=Wl(r),i=[];t=t||1;for(var n=0;n0)for(var l=0;lMath.abs(l),h=Qm([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;vn,o=Qm([i,n],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c1?null:new U(y*u+r,y*l+t)}function wL(r,t,e){var i=new U;U.sub(i,e,t),i.normalize();var n=new U;U.sub(n,r,t);var a=n.dot(i);return a}function xi(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function TL(r,t,e){for(var i=r.length,n=[],a=0;ao?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),TL(t,l,f)}function zo(r,t,e,i){if(e===1)i.push(t);else{var n=Math.floor(e/2),a=r(t);zo(r,a[0],n,i),zo(r,a[1],e-n,i)}return i}function xL(r,t){for(var e=[],i=0;i0)for(var T=i/e,w=-i/2;w<=i/2;w+=T){for(var x=Math.sin(w),b=Math.cos(w),C=0,_=0;_0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function Vo(r){var t=1/0,e=1/0,i=-1/0,n=-1/0,a=G(r,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),i=Math.max(f,i),n=Math.max(h,n),[f,h]}),o=G(a,function(s,u){return{cp:s,z:RL(s[0],s[1],t,e,i,n),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function t0(r){return ML(r.path,r.count)}function Yl(){return{fromIndividuals:[],toIndividuals:[],count:0}}function EL(r,t,e){var i=[];function n(T){for(var w=0;w=0;n--)if(!e[n].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[n].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var OL={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i0))return;var s=i.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Od(r)&&(l=r,f=t),Od(t)&&(l=t,f=r);function h(g,m,_,S,T){var w=g.many,x=g.one;if(w.length===1&&!T){var b=m?w[0]:x,C=m?x:w[0];if(Ho(b))h({many:[b],one:C},!0,_,S,!0);else{var D=s?q({delay:s(_,S)},u):u;Kf(b,C,D),a(b,C,b,C,D)}}else for(var A=q({dividePath:OL[e],individualDelay:s&&function(F,B,O,V){return s(F+_,S)}},u),L=m?EL(w,x,A):kL(x,w,A),I=L.fromIndividuals,P=L.toIndividuals,E=I.length,R=0;Rt.length,v=l?Bd(f,l):Bd(c?t:r,[c?r:t]),d=0,y=0;ye0))for(var n=i.getIndices(),a=NL(i),o=0;o0&&S.group.traverse(function(w){w instanceof Q&&!w.animators.length&&w.animateFrom({style:{opacity:0}},T)})})}function Fd(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function zd(r){return N(r)?r.sort().join(","):r}function sr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function HL(r,t){var e=$(),i=$(),n=$();return M(r.oldSeries,function(a,o){var s=r.oldData[o],u=Fd(a),l=zd(u);i.set(l,s),N(u)&&M(u,function(f){n.set(f,{data:s,key:l})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.getData(),s=Fd(a),u=zd(s),l=i.get(u);if(l)e.set(u,{oldSeries:[{divide:sr(l),data:l}],newSeries:[{divide:sr(o),data:o}]});else if(N(s)){var f=[];M(s,function(v){var d=i.get(v);d&&f.push({divide:sr(d),data:d})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{data:o,divide:sr(o)}]})}else{var h=n.get(s);if(h){var c=e.get(h.key);c||(c={oldSeries:[{data:h.data,divide:sr(h.data)}],newSeries:[]},e.set(h.key,c)),c.newSeries.push({data:o,divide:sr(o)})}}}}),e}function Hd(r,t){for(var e=0;e=0&&n.push({data:t.oldData[s],divide:sr(t.oldData[s]),dim:o.dimension})}),M(_t(r.to),function(o){var s=Hd(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({data:u,divide:sr(u),dim:o.dimension})}}),n.length>0&&a.length>0&&r0(n,a,i)}function VL(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){M(_t(i.seriesTransition),function(n){M(_t(n.to),function(a){for(var o=i.updatedSeries,s=0;s=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&g.restore()};if(m)if(m.length===0)b=p.__endIndex;else for(var D=v.dpr,A=0;A0&&t>n[0]){for(u=0;ut);u++);s=i[n[u]]}if(n.splice(u+1,0,t),i[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n0?Ka:0),this._needsManuallyCompositing),f.__builtin__||Zl("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),n.__dirty&Zt&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},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,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?lt(i[t],e,!0):i[t]=e;for(var n=0;n{t("follow")}).catch(a=>{$q.notify({type:"negative",message:a.message})})}const n=n0(null);return ia([yL,qA,BD,nD,VL,ZL]),a0(function(){var a=lC(n.value);let o=[7,5,3,2].map((s,u)=>{let l="",f="";return e.type==="ming_zhong"?(f=e.item["wined_num"+s],l=`${e.item["total_num"+s]}\u4E2D${f}`):e.type==="cheng_ming"?(f=(e.item["total_prize"+s]*1).toFixed(0),l="\u4E2D\u5956\u91D1\u989D: "+f):(f=e.item["profit_lv"+s],l="\u76C8\u5229\u7387: "+f+"%"),{d:s,desc:l,value:f}});a.setOption({grid:{show:!1,left:0,right:0,bottom:0,top:5,containLabel:!0},xAxis:{type:"category",axisLine:{show:!1},axisTick:{show:!1},boundaryGap:!0,data:["\u8FD17","\u8FD15","\u8FD13","\u8FD12"],axisPointer:{show:!0,type:"line",snap:!0,triggerTooltip:!1,label:{show:!0,color:"#fff",backgroundColor:ps("primary"),borderColor:"#fff",borderWidth:1,formatter:({seriesData:s,axisIndex:u,value:l})=>s[u].data.desc}}},yAxis:{type:"value",axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1},min:"dataMin",max:"dataMax",splitLine:{show:!1}},series:[{data:o,type:"line",smooth:!0,symbol:"circle",symbolSize:6,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:ps("primary")},{offset:1,color:"#fff"}],global:!1}},itemStyle:{color:ps("primary"),borderColor:"#fff",borderWidth:1}}]})}),(a,o)=>{const s=u0;return mn(),Fu(s0,{class:"q-pl-md q-pr-sm justify-start items-start",to:{path:"/customer/"+e.item.customer.id+"/follow/records",query:{t:Date.now(),title:e.item.customer.nickname}}},{default:Et(()=>[$r("div",KL,[St(s,{size:"40px",src:e.item.customer.avatar_url||e.item.customer.avatar||"/statics/avatar.svg",class:"q-mr-sm"},null,8,["src"]),$r("div",QL,[St(ys,{lines:1},{default:Et(()=>[Ci(He(e.item.customer.nickname||"\u533F\u540D"),1)]),_:1}),St(ys,{class:"q-pt-xs"},{default:Et(()=>[e.type!="cheng_ming"?(mn(),Fu(ih,{key:0,color:"red-2","text-color":"red",class:"q-mr-xs"},{default:Et(()=>[e.type==="ming_zhong"?(mn(),jf(th,{key:0},[Ci(He(e.item.wined_max7)+"\u8FDE\u7EA2",1)],64)):(mn(),jf(th,{key:1},[Ci("\u76C8\u5229\u7387:"+He(e.item.profit_lv7)+"%",1)],64))]),_:1})):o0("",!0),St(ih,{color:"blue-2","text-color":"blue"},{default:Et(()=>[Ci(He(e.item.total_num7)+"\u4E2D"+He(e.item.wined_num7),1)]),_:1})]),_:1}),St(ys,{class:"q-pt-xs"},{default:Et(()=>[St(Qa,{color:"primary",rounded:"",size:"12px",dense:"",class:"q-px-sm q-py-none",style:{width:"5em"},unelevated:"",onClick:eh(i,["stop","prevent"])},{default:Et(()=>[Ci(He(e.item.followed?"\u5DF2\u5173\u6CE8":"+\u5173\u6CE8"),1)]),_:1},8,["onClick"])]),_:1})]),$r("div",{class:"chart col",ref_key:"chartRef",ref:n,style:{height:"80px"},onClick:o[0]||(o[0]=eh(()=>{},["stop","prevent"]))},null,512)])]),_:1},8,["to"])}}};const jL={class:"position-relative rank_page_header safe-padding-top column items-start justify-center"},t2={class:"text-h4 q-mb-sm q-mt-md"},e2={class:"text-h6"},r2=["innerHTML"],i2={__name:"RankListPage",setup(r){const t=p0(),e=Wd();f0(),_0();const i=h0(function(){return ms[t.params.type].name}),{list:n,refresh:a,load:o,scrollRef:s}=S0(l=>Ud.getRankList({rank_type:ms[t.params.type].type,page:l}),!0);function u(l){n[l].followed=!n[l].followed}return(l,f)=>{const h=i0,c=g0("PageLayout");return mn(),Fu(c,{class:"bg-white",hideHeader:""},{default:Et(()=>[$r("div",jL,[St(Qa,{flat:"",round:"",icon:"arrow_back_ios_new",class:"position-absolute absolute-top-left q-ma-sm",onClick:f[0]||(f[0]=v=>we(e).back())}),$r("div",t2,He(we(i)),1),St(Qa,{outline:"",color:"yellow-6",dense:"",class:"q-px-md",rounded:""},{default:Et(()=>[Ci(He(we(i))+"\u6392\u884C\u89C4\u5219 ",1),St(m0,null,{default:Et(()=>[St(v0,{class:"full-width"},{default:Et(()=>[St(rh,null,{default:Et(()=>[$r("div",e2,He(we(i))+"\u6392\u884C\u89C4\u5219",1)]),_:1}),St(gs),St(rh,{style:{"max-height":"50vh"},class:"scroll"},{default:Et(()=>[$r("div",{innerHTML:we(ms)[we(t).params.type].RULES},null,8,r2)]),_:1}),St(gs),St(c0,{align:"center"},{default:Et(()=>[d0(St(Qa,{flat:"",label:"\u786E\u5B9A",color:"primary"},null,512),[[y0]])]),_:1})]),_:1})]),_:1})]),_:1})]),St(h,{class:"rank-list",ref_key:"scrollRef",ref:s,load:we(o),list:we(n),noMore:""},{default:Et(({item:v,index:d})=>[St(JL,{item:v,type:we(t).params.type,"type-name":we(i),onFollow:y=>u(d)},null,8,["item","type","type-name","onFollow"]),St(gs,{inset:""})]),_:1},8,["load","list"])]),_:1})}}};var y2=l0(i2,[["__scopeId","data-v-3d10c87e"]]);export{y2 as default};