var BD=Object.defineProperty;var ry=Object.getOwnPropertySymbols;var VD=Object.prototype.hasOwnProperty,zD=Object.prototype.propertyIsEnumerable;var ay=(r,e,t)=>e in r?BD(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,iy=(r,e)=>{for(var t in e||(e={}))VD.call(e,t)&&ay(r,t,e[t]);if(ry)for(var t of ry(e))zD.call(e,t)&&ay(r,t,e[t]);return r};import{u as FD,f as GD}from"./index.99723322.js";import{a as HD,y as ny,o as WD,t as UD,n as YD,g as XD,p as $D,d as ZD,e as tn,f as Fa,h as Ga,i as rt,l as zr,F as lf,E as uf,q as qD}from"./vendor.42638b6b.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 hf=function(r,e){return hf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])},hf(r,e)};function E(r,e){hf(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ff=function(){return ff=Object.assign||function(e){for(var t,a=1,i=arguments.length;a18),o&&(t.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported=typeof SVGRect!="undefined",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document!="undefined";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var sy={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},ly={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},en=Object.prototype.toString,dl=Array.prototype,jD=dl.forEach,tM=dl.filter,vf=dl.slice,eM=dl.map,uy=function(){}.constructor,gl=uy?uy.prototype:null,hy={},rM=2311;function fy(){return rM++}function Fr(){for(var r=[],e=0;e>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",i[u]+":0",a[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function yM(r,e,t){for(var a=t?"invTrans":"trans",i=e[a],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var h=r[u].getBoundingClientRect(),f=2*u,v=h.left,c=h.top;o.push(v,c),l=l&&n&&v===n[f]&&c===n[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[a]=t?gy(s,o):gy(o,s))}function my(r){return r.nodeName.toUpperCase()==="CANVAS"}var Tf=typeof window!="undefined"&&!!window.addEventListener,mM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Af=[];function Cf(r,e,t,a){return t=t||{},a||!et.canvasSupported?_y(r,e,t):et.browser.firefox&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):_y(r,e,t),t}function _y(r,e,t){if(et.domSupported&&r.getBoundingClientRect){var a=e.clientX,i=e.clientY;if(my(r)){var n=r.getBoundingClientRect();t.zrX=a-n.left,t.zrY=i-n.top;return}else if(wf(Af,r,a,i)){t.zrX=Af[0],t.zrY=Af[1];return}}t.zrX=t.zrY=0}function Df(r){return r||window.event}function Ve(r,e,t){if(e=Df(e),e.zrX!=null)return e;var a=e.type,i=a&&a.indexOf("touch")>=0;if(i){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Cf(r,o,e,t)}else{Cf(r,e,e,t);var n=_M(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&mM.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function _M(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var i=Math.abs(a!==0?a:t),n=a>0?-1:a<0?1:t>0?-1:1;return 3*i*n}function Mf(r,e,t,a){Tf?r.addEventListener(e,t,a):r.attachEvent("on"+e,t)}function SM(r,e,t,a){Tf?r.removeEventListener(e,t,a):r.detachEvent("on"+e,t)}var Wr=Tf?function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0}:function(r){r.returnValue=!1,r.cancelBubble=!0};function Sy(r){return r.which===2||r.which===3}var xM=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var i=e.touches;if(!!i){for(var n={points:[],touches:[],target:t,event:e},o=0,s=i.length;o1&&a&&a.length>1){var n=xy(a)/xy(i);!isFinite(n)&&(n=1),e.pinchScale=n;var o=bM(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}},by="silent";function wM(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:TM}}function TM(){Wr(this.event)}var AM=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(or),vo=function(){function r(e,t){this.x=e,this.y=t}return r}(),CM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],wy=function(r){E(e,r);function e(t,a,i,n){var o=r.call(this)||this;return o._hovered=new vo(0,0),o.storage=t,o.painter=a,o.painterRoot=n,i=i||new AM,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new cM(o),o}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(CM,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,i=t.zrY,n=Ty(this,a,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new vo(a,i):this.findHover(a,i),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new vo(0,0)},e.prototype.dispatch=function(t,a){var i=this[t];i&&i.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,i){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+a,s=wM(a,t,i);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(a,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,i){for(var n=this.storage.getDisplayList(),o=new vo(t,a),s=n.length-1;s>=0;s--){var l=void 0;if(n[s]!==i&&!n[s].ignore&&(l=DM(n[s],t,a))&&(!o.topTarget&&(o.topTarget=n[s]),l!==by)){o.target=n[s];break}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new xM);var i=this._gestureMgr;a==="start"&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&i.clear(),n){var o=n.type;t.gestureEvent=o;var s=new vo;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e}(or);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){wy.prototype[r]=function(e){var t=e.zrX,a=e.zrY,i=Ty(this,t,a),n,o;if((r!=="mouseup"||!i)&&(n=this.findHover(t,a),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||sa(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function DM(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,i=void 0,n=!1;a;){if(a.ignoreClip&&(n=!0),!n){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1;a.silent&&(i=!0)}var s=a.__hostTarget;a=s||a.parent}return i?by:!0}return!1}function Ty(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}function ze(){return[1,0,0,1,0,0]}function nn(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function co(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Za(r,e,t){var a=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],n=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=a,r[1]=i,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function yr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function qa(r,e,t){var a=e[0],i=e[2],n=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(t),h=Math.cos(t);return r[0]=a*h+o*u,r[1]=-a*u+o*h,r[2]=i*h+s*u,r[3]=-i*u+h*s,r[4]=h*n+u*l,r[5]=h*l-u*n,r}function If(r,e,t){var a=t[0],i=t[1];return r[0]=e[0]*a,r[1]=e[1]*i,r[2]=e[2]*a,r[3]=e[3]*i,r[4]=e[4]*a,r[5]=e[5]*i,r}function on(r,e){var t=e[0],a=e[2],i=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*a;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*i)*l,r[5]=(n*i-t*s)*l,r):null}function MM(r){var e=ze();return co(e,r),e}var Pf=nn,Ay=5e-5;function Ka(r){return r>Ay||r<-Ay}var Qa=[],sn=[],Rf=ze(),Ef=Math.abs,Ur=function(){function r(){}return r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ka(this.rotation)||Ka(this.x)||Ka(this.y)||Ka(this.scaleX-1)||Ka(this.scaleY-1)},r.prototype.updateTransform=function(){var e=this.parent,t=e&&e.transform,a=this.needLocalTransform(),i=this.transform;if(!(a||t)){i&&Pf(i);return}i=i||ze(),a?this.getLocalTransform(i):Pf(i),t&&(a?Za(i,e.transform,i):co(i,e.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Qa);var a=Qa[0]<0?-1:1,i=Qa[1]<0?-1:1,n=((Qa[0]-a)*t+a)/Qa[0]||0,o=((Qa[1]-i)*t+i)/Qa[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ze(),on(this.invTransform,e)},r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(!!e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3];Ka(t-1)&&(t=Math.sqrt(t)),Ka(a-1)&&(a=Math.sqrt(a)),e[0]<0&&(t=-t),e[3]<0&&(a=-a),this.rotation=Math.atan2(-e[1]/a,e[0]/t),t<0&&a<0&&(this.rotation+=Math.PI,t=-t,a=-a),this.x=e[4],this.y=e[5],this.scaleX=t,this.scaleY=a}},r.prototype.decomposeTransform=function(){if(!!this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Za(sn,e.invTransform,t),t=sn);var a=this.originX,i=this.originY;(a||i)&&(Rf[4]=a,Rf[5]=i,Za(sn,t,Rf),sn[4]-=a,sn[5]-=i,t=sn),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],i=this.invTransform;return i&&re(a,a,i),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],i=this.transform;return i&&re(a,a,i),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ef(e[0]-1)>1e-10&&Ef(e[3]-1)>1e-10?Math.sqrt(Ef(e[0]*e[3]-e[2]*e[1])):1},r.getLocalTransform=function(e,t){t=t||[],Pf(t);var a=e.originX||0,i=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.rotation||0,l=e.x,u=e.y;return t[4]-=a,t[5]-=i,t[0]*=n,t[1]*=o,t[2]*=n,t[3]*=o,t[4]*=n,t[5]*=o,s&&qa(t,t,s),t[4]+=a,t[5]+=i,t[4]+=l,t[5]+=u,t},r.initDefaultProps=function(){var e=r.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.rotation=0,e.globalScaleRatio=1}(),r}(),Sl={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 e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=1.70158*1.525;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-Sl.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?Sl.bounceIn(r*2)*.5:Sl.bounceOut(r*2-1)*.5+.5}},LM=function(){function r(e){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop==null?!1:e.loop,this.gap=e.gap||0,this.easing=e.easing||"linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}return r.prototype.step=function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused){this._pausedTime+=t;return}var a=(e-this._startTime-this._pausedTime)/this._life;a<0&&(a=0),a=Math.min(a,1);var i=this.easing,n=typeof i=="string"?Sl[i]:i,o=typeof n=="function"?n(a):a;if(this.onframe&&this.onframe(o),a===1)if(this.loop)this._restart(e),this.onrestart&&this.onrestart();else return!0;return!1},r.prototype._restart=function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r}(),Cy=function(){function r(e){this.value=e}return r}(),IM=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Cy(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),po=function(){function r(e){this._list=new IM,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,i=this._map,n=null;if(i[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete i[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Cy(t),s.key=e,a.insertEntry(s),i[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Dy={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 la(r){return r=Math.round(r),r<0?0:r>255?255:r}function PM(r){return r=Math.round(r),r<0?0:r>360?360:r}function xl(r){return r<0?0:r>1?1:r}function kf(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?la(parseFloat(e)/100*255):la(parseInt(e,10))}function ln(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?xl(parseFloat(e)/100):xl(parseFloat(e))}function Of(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function bl(r,e,t){return r+(e-r)*t}function Fe(r,e,t,a,i){return r[0]=e,r[1]=t,r[2]=a,r[3]=i,r}function Nf(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var My=new po(20),wl=null;function un(r,e){wl&&Nf(wl,e),wl=My.put(r,wl||e.slice())}function Ge(r,e){if(!!r){e=e||[];var t=My.get(r);if(t)return Nf(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in Dy)return Nf(e,Dy[a]),un(r,e),e;var i=a.length;if(a.charAt(0)==="#"){if(i===4||i===5){var n=parseInt(a.slice(1,4),16);if(!(n>=0&&n<=4095)){Fe(e,0,0,0,1);return}return Fe(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,i===5?parseInt(a.slice(4),16)/15:1),un(r,e),e}else if(i===7||i===9){var n=parseInt(a.slice(1,7),16);if(!(n>=0&&n<=16777215)){Fe(e,0,0,0,1);return}return Fe(e,(n&16711680)>>16,(n&65280)>>8,n&255,i===9?parseInt(a.slice(7),16)/255:1),un(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===i){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Fe(e,+u[0],+u[1],+u[2],1):Fe(e,0,0,0,1);h=ln(u.pop());case"rgb":if(u.length!==3){Fe(e,0,0,0,1);return}return Fe(e,kf(u[0]),kf(u[1]),kf(u[2]),h),un(r,e),e;case"hsla":if(u.length!==4){Fe(e,0,0,0,1);return}return u[3]=ln(u[3]),Bf(u,e),un(r,e),e;case"hsl":if(u.length!==3){Fe(e,0,0,0,1);return}return Bf(u,e),un(r,e),e;default:return}}Fe(e,0,0,0,1)}}function Bf(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=ln(r[1]),i=ln(r[2]),n=i<=.5?i*(a+1):i+a-i*a,o=i*2-n;return e=e||[],Fe(e,la(Of(o,n,t+1/3)*255),la(Of(o,n,t)*255),la(Of(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function RM(r){if(!!r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,i=Math.min(e,t,a),n=Math.max(e,t,a),o=n-i,s=(n+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+i):u=o/(2-n-i);var h=((n-e)/6+o/2)/o,f=((n-t)/6+o/2)/o,v=((n-a)/6+o/2)/o;e===n?l=v-f:t===n?l=1/3+h-v:a===n&&(l=2/3+f-h),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Ly(r,e){var t=Ge(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Yr(t,t.length===4?"rgba":"rgb")}}function Iy(r){var e=Ge(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Vf(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),i=Math.floor(a),n=Math.ceil(a),o=e[i],s=e[n],l=a-i;return t[0]=la(bl(o[0],s[0],l)),t[1]=la(bl(o[1],s[1],l)),t[2]=la(bl(o[2],s[2],l)),t[3]=xl(bl(o[3],s[3],l)),t}}function go(r,e,t,a){var i=Ge(r);if(r)return i=RM(i),e!=null&&(i[0]=PM(e)),t!=null&&(i[1]=ln(t)),a!=null&&(i[2]=ln(a)),Yr(Bf(i),"rgba")}function Tl(r,e){var t=Ge(r);if(t&&e!=null)return t[3]=xl(e),Yr(t,"rgba")}function Yr(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Al(r,e){var t=Ge(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var zf=Array.prototype.slice;function yo(r,e,t){return(e-r)*t+r}function EM(r,e,t){return t>.5?e:r}function Py(r,e,t,a){for(var i=e.length,n=0;no;if(s)a.length=o;else for(var l=n;l=2&&this.interpolable},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t){e>=this.maxTime?this.maxTime=e:this._needsSort=!0;var a=this.keyframes,i=a.length;if(this.interpolable)if(Te(t)){var n=BM(t);if(i>0&&this.arrDim!==n){this.interpolable=!1;return}if(n===1&&typeof t[0]!="number"||n===2&&typeof t[0][0]!="number"){this.interpolable=!1;return}if(i>0){var o=a[i-1];this._isAllValueEqual&&(n===1?Ey(t,o.value)||(this._isAllValueEqual=!1):this._isAllValueEqual=!1)}this.arrDim=n}else{if(this.arrDim>0){this.interpolable=!1;return}if(typeof t=="string"){var s=Ge(t);s?(t=s,this.isValueColor=!0):this.interpolable=!1}else if(typeof t!="number"||isNaN(t)){this.interpolable=!1;return}if(this._isAllValueEqual&&i>0){var o=a[i-1];this.isValueColor&&!Ey(o.value,t)?this._isAllValueEqual=!1:o.value!==t&&(this._isAllValueEqual=!1)}}var l={time:e,value:t,percent:0};return this.keyframes.push(l),l},r.prototype.prepare=function(e){var t=this.keyframes;this._needsSort&&t.sort(function(l,u){return l.time-u.time});for(var a=this.arrDim,i=t.length,n=t[i-1],o=0;o0&&o!==i-1&&OM(t[o].value,n.value,a);if(e&&this.needsAnimate()&&e.needsAnimate()&&a===e.arrDim&&this.isValueColor===e.isValueColor&&!e._finished){this._additiveTrack=e;for(var s=t[0].value,o=0;o=0&&!(n[h].percent<=t);h--);h=Math.min(h,o-2)}else{for(h=this._lastFrame;ht);h++);h=Math.min(h-1,o-2)}var v=n[h+1],c=n[h];if(!!(c&&v)){this._lastFrame=h,this._lastFramePercent=t;var p=v.percent-c.percent;if(p!==0){var d=(t-c.percent)/p,g=a?this._additiveValue:u?So:e[s];if((l>0||u)&&!g&&(g=this._additiveValue=[]),this.useSpline){var y=n[h][i],m=n[h===0?h:h-1][i],_=n[h>o-2?o-1:h+1][i],S=n[h>o-3?o-1:h+2][i];if(l>0)l===1?ky(g,m,y,_,S,d,d*d,d*d*d):NM(g,m,y,_,S,d,d*d,d*d*d);else if(u)ky(g,m,y,_,S,d,d*d,d*d*d),a||(e[s]=_o(g));else{var x=void 0;this.interpolable?x=Ff(m,y,_,S,d,d*d,d*d*d):x=_,a?this._additiveValue=x:e[s]=x}}else if(l>0)l===1?Py(g,c[i],v[i],d):kM(g,c[i],v[i],d);else if(u)Py(g,c[i],v[i],d),a||(e[s]=_o(g));else{var x=void 0;this.interpolable?x=yo(c[i],v[i],d):x=EM(c[i],v[i],d),a?this._additiveValue=x:e[s]=x}a&&this._addToTarget(e)}}}},r.prototype._addToTarget=function(e){var t=this.arrDim,a=this.propName,i=this._additiveValue;t===0?this.isValueColor?(Ge(e[a],So),Cl(So,So,i,1),e[a]=_o(So)):e[a]=e[a]+i:t===1?Cl(e[a],e[a],i,1):t===2&&Ry(e[a],e[a],i,1)},r}(),Gf=function(){function r(e,t,a){if(this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){Fr("Can' use additive animation on looped animation.");return}this._additiveAnimators=a}return r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t){return this.whenWithKeys(e,t,St(t))},r.prototype.whenWithKeys=function(e,t,a){for(var i=this._tracks,n=0;n0)){this._started=1;for(var a=this,i=[],n=0;n1){var s=o.pop();n.addKeyframe(s.time,e[i]),n.prepare(n.getAdditiveTrack())}}}},r}(),nt=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.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 e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(!!e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,i){e.x=t.x+a.x*i,e.y=t.y+a.y*i},r.lerp=function(e,t,a,i){var n=1-i;e.x=n*t.x+i*a.x,e.y=n*t.y+i*a.y},r}(),Dl=Math.min,Ml=Math.max,Ja=new nt,ja=new nt,ti=new nt,ei=new nt,xo=new nt,bo=new nt,ot=function(){function r(e,t,a,i){a<0&&isFinite(a)&&(e=e+a,a=-a),i<0&&isFinite(i)&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=a,this.height=i}return r.prototype.union=function(e){var t=Dl(e.x,this.x),a=Dl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ml(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ml(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,i=e.height/t.height,n=ze();return yr(n,n,[-t.x,-t.y]),If(n,n,[a,i]),yr(n,n,[e.x,e.y]),n},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var a=this,i=a.x,n=a.x+a.width,o=a.y,s=a.y+a.height,l=e.x,u=e.x+e.width,h=e.y,f=e.y+e.height,v=!(np&&(p=_,dp&&(p=S,y=a.x&&e<=a.x+a.width&&t>=a.y&&t<=a.y+a.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},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(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var i=a[0],n=a[3],o=a[4],s=a[5];e.x=t.x*i+o,e.y=t.y*n+s,e.width=t.width*i,e.height=t.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ja.x=ti.x=t.x,Ja.y=ei.y=t.y,ja.x=ei.x=t.x+t.width,ja.y=ti.y=t.y+t.height,Ja.transform(a),ei.transform(a),ja.transform(a),ti.transform(a),e.x=Dl(Ja.x,ja.x,ti.x,ei.x),e.y=Dl(Ja.y,ja.y,ti.y,ei.y);var l=Ml(Ja.x,ja.x,ti.x,ei.x),u=Ml(Ja.y,ja.y,ti.y,ei.y);e.width=l-e.x,e.height=u-e.y},r}(),Oy={},ri="12px sans-serif",Ll,Ny;function zM(r,e){return Ll||(Ll=rn().getContext("2d")),Ny!==e&&(Ny=Ll.font=e||ri),Ll.measureText(r)}var FM={measureText:zM};function Re(r,e){e=e||ri;var t=Oy[e];t||(t=Oy[e]=new po(500));var a=t.get(r);return a==null&&(a=FM.measureText(r,e).width,t.put(r,a)),a}function By(r,e,t,a){var i=Re(r,e),n=Il(e),o=To(0,i,t),s=hn(0,n,a),l=new ot(o,s,i,n);return l}function wo(r,e,t,a){var i=((r||"")+"").split(` `),n=i.length;if(n===1)return By(i[0],e,t,a);for(var o=new ot(0,0,0,0),s=0;s=0?parseFloat(r)/100*e:parseFloat(r):r}function Vy(r,e,t){var a=e.position||"inside",i=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,h="left",f="top";if(a instanceof Array)l+=He(a[0],t.width),u+=He(a[1],t.height),h=null,f=null;else switch(a){case"left":l-=i,u+=s,h="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,h="center",f="bottom";break;case"bottom":l+=o/2,u+=n+i,h="center";break;case"inside":l+=o/2,u+=s,h="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,h="right",f="middle";break;case"insideTop":l+=o/2,u+=i,h="center";break;case"insideBottom":l+=o/2,u+=n-i,h="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,h="right";break;case"insideBottomLeft":l+=i,u+=n-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=n-i,h="right",f="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=h,r.verticalAlign=f,r}var zy=1;typeof window!="undefined"&&(zy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Pl=zy,Hf=.4,Wf="#333",Uf="#ccc",GM="#eee",Yf="__zr_normal__",Xf=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],HM={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},fn={},WM=new ot(0,0,0,0),We=function(){function r(e){this.id=fy(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,i=a.local,n=t.attachedTransform,o=void 0,s=void 0,l=!1;i?n.parent=this:n.parent=null;var u=!1;if(n.x=t.x,n.y=t.y,n.originX=t.originX,n.originY=t.originY,n.rotation=t.rotation,n.scaleX=t.scaleX,n.scaleY=t.scaleY,a.position!=null){var h=WM;a.layoutRect?h.copy(a.layoutRect):h.copy(this.getBoundingRect()),i||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fn,a,h):Vy(fn,a,h),n.x=fn.x,n.y=fn.y,o=fn.align,s=fn.verticalAlign;var f=a.origin;if(f&&a.rotation!=null){var v=void 0,c=void 0;f==="center"?(v=h.width*.5,c=h.height*.5):(v=He(f[0],h.width),c=He(f[1],h.height)),u=!0,n.originX=-n.x+v+(i?0:h.x),n.originY=-n.y+c+(i?0:h.y)}}a.rotation!=null&&(n.rotation=a.rotation);var p=a.offset;p&&(n.x+=p[0],n.y+=p[1],u||(n.originX=-p[0],n.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),l&&t.dirtyStyle(),t.markRedraw()}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Uf:Wf},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Ge(t);a||(a=[255,255,255,1]);for(var i=a[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*i+(n?0:255)*(1-i);return a[3]=1,Yr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},V(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(J(e))for(var a=e,i=St(a),n=0;n0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Yf,!1,e)},r.prototype.useState=function(e,t,a){var i=e===Yf,n=this.hasState();if(!(!n&&i)){var o=this.currentStates,s=this.stateTransition;if(!(lt(o,e)>=0&&(t||o.length===1))){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),!l&&!i){Fr("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer);return u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!a&&!this.__inHover&&s&&s.duration>0,s),this._textContent&&this._textContent.useState(e,t),this._textGuide&&this._textGuide.useState(e,t),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~r.REDARAW_BIT),l}}},r.prototype.useStates=function(e,t){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,n=e.length,o=n===i.length;if(o){for(var s=0;s0,v),this._textContent&&this._textContent.useStates(e),this._textGuide&&this._textGuide.useStates(e),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~r.REDARAW_BIT)}},r.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var i=this.currentStates.slice(),n=lt(i,e),o=lt(i,t)>=0;n>=0?o?i.splice(n,1):i[n]=t:a&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,i=0;i=0&&n.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,i=a.length,n=[],o=0;o8)&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),r}();Ht(We,or),Ht(We,Ur);function $f(r,e,t,a,i){t=t||{};var n=[];Fy(r,"",r,e,t,a,n,i);var o=n.length,s=!1,l=t.done,u=t.aborted,h=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&t.during&&n[0].during(function(p,d){t.during(d)});for(var v=0;v0||i.force&&!o.length){for(var _=r.animators,S=[],x=0;x<_.length;x++)_[x].targetName===e&&S.push(_[x]);if(!c&&S.length)for(var x=0;x=Gy;)e|=r&1,r>>=1;return r+e}function Hy(r,e,t,a){var i=e+1;if(i===t)return 1;if(a(r[i++],r[e])<0){for(;i=0;)i++;return i-e}function $M(r,e,t){for(t--;e>>1,i(n,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function qf(r,e,t,a,i,n){var o=0,s=0,l=1;if(n(r,e[t+i])>0){for(s=a-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);n(r,e[t+h])>0?o=h+1:l=h}return l}function Kf(r,e,t,a,i,n){var o=0,s=0,l=1;if(n(r,e[t+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=a-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);n(r,e[t+h])<0?l=h:o=h+1}return l}function ZM(r,e){var t=Ao,a,i,n=0,o=[];a=[],i=[];function s(c,p){a[n]=c,i[n]=p,n+=1}function l(){for(;n>1;){var c=n-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]i[c+1])break;h(c)}}function u(){for(;n>1;){var c=n-2;c>0&&i[c-1]=Ao||w>=Ao);if(T)break;x<0&&(x=0),x+=2}if(t=x,t<1&&(t=1),p===1){for(y=0;y=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--p==0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g==1){M=!0;break}while((T|C)=0;y--)r[b+y]=r[x+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g==1){M=!0;break}if(C=g-qf(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,b=S+1,x=_+1,y=0;y=Ao||C>=Ao);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=p,m-=p,b=S+1,x=m+1,y=p-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;ys&&(l=s),Wy(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),i-=n,t+=n}while(i!==0);o.forceMergeRuns()}}var Uy=!1;function Jf(){Uy||(Uy=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Yy(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var qM=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Yy}return r.prototype.traverse=function(e,t){for(var a=0;a0&&(h.__clipPaths=[]),isNaN(h.z)&&(Jf(),h.z=0),isNaN(h.z2)&&(Jf(),h.z2=0),isNaN(h.zlevel)&&(Jf(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,t,a);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,a);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Xy;Xy=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var jf=Xy,KM=function(r){E(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a.onframe=t.onframe||function(){},a}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(!!t.animation){var a=t.prev,i=t.next;a?a.next=i:this._clipsHead=i,i?i.prev=a:this._clipsTail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=new Date().getTime()-this._pausedTime,i=a-this._time,n=this._clipsHead;n;){var o=n.next,s=n.step(a,i);s&&(n.ondestroy&&n.ondestroy(),this.removeClip(n)),n=o}this._time=a,t||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(jf(a),!t._paused&&t.update())}jf(a)},e.prototype.start=function(){this._running||(this._time=new Date().getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._clipsHead;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return this._clipsHead==null},e.prototype.animate=function(t,a){a=a||{},this.start();var i=new Gf(t,a.loop);return this.addAnimator(i),i},e}(or),QM=300,tv=et.domSupported,ev=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=H(r,function(i){var n=i.replace("mouse","pointer");return t.hasOwnProperty(n)?n:i});return{mouse:r,touch:e,pointer:a}}(),$y={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Zy=!1;function rv(r){var e=r.pointerType;return e==="pen"||e==="touch"}function JM(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 av(r){r&&(r.zrByTouch=!0)}function jM(r,e){return Ve(r.dom,new tL(r,e),!0)}function qy(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var tL=function(){function r(e,t){this.stopPropagation=nr,this.stopImmediatePropagation=nr,this.preventDefault=nr,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),sr={mousedown:function(r){r=Ve(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ve(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ve(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ve(this.dom,r);var e=r.toElement||r.relatedTarget;qy(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Zy=!0,r=Ve(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Zy||(r=Ve(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ve(this.dom,r),av(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),sr.mousemove.call(this,r),sr.mousedown.call(this,r)},touchmove:function(r){r=Ve(this.dom,r),av(r),this.handler.processGesture(r,"change"),sr.mousemove.call(this,r)},touchend:function(r){r=Ve(this.dom,r),av(r),this.handler.processGesture(r,"end"),sr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replaceAt=function(t,a){var i=this._children,n=i[a];if(t&&t!==this&&t.parent!==this&&t!==n){i[a]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,i=this._children,n=lt(i,t);return n<0?this:(i.splice(n,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.addHover=function(e){},r.prototype.removeHover=function(e){},r.prototype.clearHover=function(){},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(e){e=e||{},this.painter.resize(e.width,e.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.pathToImage=function(e,t){if(this.painter.pathToImage)return this.painter.pathToImage(e,t)},r.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this.handler.off(e,t)},r.prototype.trigger=function(e,t){this.handler.trigger(e,t)},r.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(r<=e[0])return t[0];if(r>=e[1])return t[1]}else{if(r>=e[0])return t[0];if(r<=e[1])return t[1]}else{if(r===e[0])return t[0];if(r===e[1])return t[1]}return(r-e[0])/i*n+t[0]}function F(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return typeof r=="string"?uL(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function ae(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),20),r=(+r).toFixed(e),t?r:+r}function Ue(r){return r.sort(function(e,t){return e-t}),r}function hL(r){if(r=+r,isNaN(r))return 0;for(var e=1,t=0;Math.round(r*e)/e!==r;)e*=10,t++;return t}function ai(r){var e=r.toString(),t=e.indexOf("e");if(t>0){var a=+e.slice(t+1);return a<0?-a:0}else{var i=e.indexOf(".");return i<0?0:e.length-1-i}}function tm(r,e){var t=Math.log,a=Math.LN10,i=Math.floor(t(r[1]-r[0])/a),n=Math.round(t(Math.abs(e[1]-e[0]))/a),o=Math.min(Math.max(-i+n,0),20);return isFinite(o)?o:20}function fL(r,e,t){if(!r[e])return 0;var a=oo(r,function(p,d){return p+(isNaN(d)?0:d)},0);if(a===0)return 0;for(var i=Math.pow(10,t),n=H(r,function(p){return(isNaN(p)?0:p)/a*i*100}),o=i*100,s=H(n,function(p){return Math.floor(p)}),l=oo(s,function(p,d){return p+d},0),u=H(n,function(p,d){return p-s[d]});lh&&(h=u[v],f=v);++s[f],u[f]=0,++l}return s[e]/i}var em=9007199254740991;function rm(r){var e=Math.PI*2;return(r%e+e)%e}function El(r){return r>-jy&&r=10&&e++,e}function im(r,e){var t=am(r),a=Math.pow(10,t),i=r/a,n;return e?i<1.5?n=1:i<2.5?n=2:i<4?n=3:i<7?n=5:n=10:i<1?n=1:i<2?n=2:i<3?n=3:i<5?n=5:n=10,r=n*a,t>=-20?+r.toFixed(t<0?-t:0):r}function ov(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),i=+r[a-1],n=t-a;return n?i+n*(r[a]-i):i}function nm(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-Infinity,t=1,a=0;a=0||n&<(n,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var BL=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],VL=li(BL),zL=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return VL(this,e,t)},r}(),fv=new po(50);function FL(r){if(typeof r=="string"){var e=fv.get(r);return e&&e.image}else return r}function vv(r,e,t,a,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=fv.get(r),o={hostEl:t,cb:a,cbPayload:i};return n?(e=n.image,!Ol(e)&&n.pending.push(o)):(e=new Image,e.onload=e.onerror=GL,fv.put(r,e.__cachedImgObj={image:e,pending:[o]}),e.src=e.__zrImageSrc=r),e}else return r;else return e}function GL(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=Re(t,e);return u>s&&(t="",u=0),s=r-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function Sm(r,e){var t=e.containerWidth,a=e.font,i=e.contentWidth;if(!t)return"";var n=Re(r,a);if(n<=t)return r;for(var o=0;;o++){if(n<=i||o>=e.maxIterations){r+=e.ellipsis;break}var s=o===0?WL(r,i,e.ascCharWidth,e.cnCharWidth):n>0?Math.floor(r.length*i/n):0;r=r.substr(0,s),n=Re(r,a)}return r===""&&(r=e.placeholder),r}function WL(r,e,t,a){for(var i=0,n=0,o=r.length;nv&&l){var c=Math.floor(v/s);h=h.slice(0,c)}var p=v,d=u;if(a&&(p+=a[0]+a[2],d!=null&&(d+=a[1]+a[3])),r&&n&&d!=null)for(var g=_m(u,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;ys&&pv(t,r.substring(s,u),e,o),pv(t,l[2],e,o,l[1]),s=cv.lastIndex}si){x>0?(m.tokens=m.tokens.slice(0,x),g(m,S,_),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var L=w.width,I=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")b.percentWidth=L,h.push(b),b.contentWidth=Re(b.text,M);else{if(I){var P=w.backgroundColor,R=P&&P.image;R&&(R=FL(R),Ol(R)&&(b.width=Math.max(b.width,R.width*D/R.height)))}var k=p&&a!=null?a-S:null;k!=null&&k0&&p+a.accumWidth>a.width&&(h=e.split(` `),u=!0),a.accumWidth=p}else{var d=bm(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,f=d.linesWidths,h=d.lines}}else h=e.split(` `);for(var g=0;g=33&&e<=255}var qL=oo(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function KL(r){return ZL(r)?!!qL[r]:!0}function bm(r,e,t,a,i){for(var n=[],o=[],s="",l="",u=0,h=0,f=0;ft:i+h+c>t){h?(s||l)&&(p?(s||(s=l,l="",u=0,h=u),n.push(s),o.push(h-u),l+=v,u+=c,s="",h=u):(l&&(s+=l,h+=u,l="",u=0),n.push(s),o.push(h),s=v,h=c)):p?(n.push(l),o.push(u),l=v,u=c):(n.push(v),o.push(c));continue}h+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!n.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(n.push(s),o.push(h)),n.length===1&&(h+=i),{accumWidth:h,lines:n,linesWidths:o}}var dv="__zr_style_"+Math.round(Math.random()*10),ui={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Nl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ui[dv]=!0;var gv=["z","z2","invisible"],Sr=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=St(t),i=0;i-Vl&&rVl||r<-Vl}function Ot(r,e,t,a,i){var n=1-i;return n*n*(n*r+3*i*e)+i*i*(i*a+3*n*t)}function Cm(r,e,t,a,i){var n=1-i;return 3*(((e-r)*n+2*(t-e)*i)*n+(a-t)*i*i)}function _v(r,e,t,a,i,n){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,h=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,c=0;if(ha(h)&&ha(f))if(ha(s))n[0]=0;else{var p=-l/s;p>=0&&p<=1&&(n[c++]=p)}else{var d=f*f-4*h*v;if(ha(d)){var g=f/h,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(n[c++]=p),y>=0&&y<=1&&(n[c++]=y)}else if(d>0){var m=ua(d),_=h*s+1.5*o*(-f+m),S=h*s+1.5*o*(-f-m);_<0?_=-Bl(-_,zl):_=Bl(_,zl),S<0?S=-Bl(-S,zl):S=Bl(S,zl);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(n[c++]=p)}else{var x=(2*h*s-3*o*f)/(2*ua(h*h*h)),b=Math.acos(x)/3,w=ua(h),T=Math.cos(b),p=(-s-2*w*T)/(3*o),y=(-s+w*(T+Tm*Math.sin(b)))/(3*o),C=(-s+w*(T-Tm*Math.sin(b)))/(3*o);p>=0&&p<=1&&(n[c++]=p),y>=0&&y<=1&&(n[c++]=y),C>=0&&C<=1&&(n[c++]=C)}}return c}function Dm(r,e,t,a,i){var n=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(ha(o)){if(Am(n)){var u=-s/n;u>=0&&u<=1&&(i[l++]=u)}}else{var h=n*n-4*o*s;if(ha(h))i[0]=-n/(2*o);else if(h>0){var f=ua(h),u=(-n+f)/(2*o),v=(-n-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function cn(r,e,t,a,i,n){var o=(e-r)*i+r,s=(t-e)*i+e,l=(a-t)*i+t,u=(s-o)*i+o,h=(l-s)*i+s,f=(h-u)*i+u;n[0]=r,n[1]=o,n[2]=u,n[3]=f,n[4]=f,n[5]=h,n[6]=l,n[7]=a}function Mm(r,e,t,a,i,n,o,s,l,u,h){var f,v=.005,c=Infinity,p,d,g,y;xr[0]=l,xr[1]=u;for(var m=0;m<1;m+=.05)Ye[0]=Ot(r,t,i,o,m),Ye[1]=Ot(e,a,n,s,m),g=Ya(xr,Ye),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var h=o*o-4*n*s;if(ha(h)){var u=-o/(2*n);u>=0&&u<=1&&(i[l++]=u)}else if(h>0){var f=ua(h),u=(-o+f)/(2*n),v=(-o-f)/(2*n);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Lm(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function Po(r,e,t,a,i){var n=(e-r)*a+r,o=(t-e)*a+e,s=(o-n)*a+n;i[0]=r,i[1]=n,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function Im(r,e,t,a,i,n,o,s,l){var u,h=.005,f=Infinity;xr[0]=o,xr[1]=s;for(var v=0;v<1;v+=.05){Ye[0]=ie(r,t,i,v),Ye[1]=ie(e,a,n,v);var c=Ya(xr,Ye);c=0&&c1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(Fl[0]=bv(i)*t+r,Fl[1]=xv(i)*a+e,Gl[0]=bv(n)*t+r,Gl[1]=xv(n)*a+e,u(s,Fl,Gl),h(l,Fl,Gl),i=i%hi,i<0&&(i=i+hi),n=n%hi,n<0&&(n=n+hi),i>n&&!o?n+=hi:ii&&(Hl[0]=bv(c)*t+r,Hl[1]=xv(c)*a+e,u(s,Hl,s),h(l,Hl,l))}var Mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fi=[],vi=[],br=[],fa=[],wr=[],Tr=[],Ro=Math.min,Eo=Math.max,ci=Math.cos,pi=Math.sin,Wl=Math.sqrt,$r=Math.abs,Tv=Math.PI,va=Tv*2,Av=typeof Float32Array!="undefined",ko=[];function Cv(r){var e=Math.round(r/Tv*1e8)/1e8;return e%2*Tv}function km(r,e){var t=Cv(r[0]);t<0&&(t+=va);var a=t-r[0],i=r[1];i+=a,!e&&i-t>=va?i=t+va:e&&t-i>=va?i=t-va:!e&&t>i?i=t+(va-Cv(t-i)):e&&t0&&(this._ux=$r(a/Pl/e)||0,this._uy=$r(a/Pl/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},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._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this.addData(Mt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=$r(e-this._xi)>this._ux||$r(t-this._yi)>this._uy||this._len<5;return this.addData(Mt.L,e,t),this._ctx&&a&&(this._needsDash?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),a&&(this._xi=e,this._yi=t),this},r.prototype.bezierCurveTo=function(e,t,a,i,n,o){return this.addData(Mt.C,e,t,a,i,n,o),this._ctx&&(this._needsDash?this._dashedBezierTo(e,t,a,i,n,o):this._ctx.bezierCurveTo(e,t,a,i,n,o)),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,i){return this.addData(Mt.Q,e,t,a,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(e,t,a,i):this._ctx.quadraticCurveTo(e,t,a,i)),this._xi=a,this._yi=i,this},r.prototype.arc=function(e,t,a,i,n,o){ko[0]=i,ko[1]=n,km(ko,o),i=ko[0],n=ko[1];var s=n-i;return this.addData(Mt.A,e,t,a,a,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,i,n,o),this._xi=ci(n)*a+e,this._yi=pi(n)*a+t,this},r.prototype.arcTo=function(e,t,a,i,n){return this._ctx&&this._ctx.arcTo(e,t,a,i,n),this},r.prototype.rect=function(e,t,a,i){return this._ctx&&this._ctx.rect(e,t,a,i),this.addData(Mt.R,e,t,a,i),this},r.prototype.closePath=function(){this.addData(Mt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&(this._needsDash&&this._dashedLineTo(t,a),e.closePath()),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.setLineDash=function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,a=0;ah.length&&(this._expandData(),h=this.data);for(var f=0;f0&&v<=e||u<0&&v>=e||u===0&&(h>0&&c<=t||h<0&&c>=t);)g=this._dashIdx,d=i[g],v+=u*d,c+=h*d,this._dashIdx=(g+1)%p,!(u>0&&vs||h>0&&cl)&&n[g%2?"moveTo":"lineTo"](u>=0?Ro(v,e):Eo(v,e),h>=0?Ro(c,t):Eo(c,t));u=v-e,h=c-t,this._dashOffset=-Wl(u*u+h*h)},r.prototype._dashedBezierTo=function(e,t,a,i,n,o){var s=this._ctx,l=this._dashSum,u=this._dashOffset,h=this._lineDash,f=this._xi,v=this._yi,c=0,p=this._dashIdx,d=h.length,g,y,m,_,S,x=0;for(u<0&&(u=l+u),u%=l,g=0;g<1;g+=.1)y=Ot(f,e,a,n,g+.1)-Ot(f,e,a,n,g),m=Ot(v,t,i,o,g+.1)-Ot(v,t,i,o,g),c+=Wl(y*y+m*m);for(;pu));p++);for(g=(x-u)/c;g<=1;)_=Ot(f,e,a,n,g),S=Ot(v,t,i,o,g),p%2?s.moveTo(_,S):s.lineTo(_,S),g+=h[p]/c,p=(p+1)%d;p%2!=0&&s.lineTo(n,o),y=n-_,m=o-S,this._dashOffset=-Wl(y*y+m*m)},r.prototype._dashedQuadraticTo=function(e,t,a,i){var n=a,o=i;a=(a+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,a,i,n,o)},r.prototype.toStatic=function(){if(!!this._saveData){var e=this.data;e instanceof Array&&(e.length=this._len,Av&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){br[0]=br[1]=wr[0]=wr[1]=Number.MAX_VALUE,fa[0]=fa[1]=Tr[0]=Tr[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,i=0,n=0,o;for(o=0;oa||$r(_)>i||v===t-1)&&(d=Math.sqrt(m*m+_*_),n=g,o=y);break}case Mt.C:{var S=e[v++],x=e[v++],g=e[v++],y=e[v++],b=e[v++],w=e[v++];d=JL(n,o,S,x,g,y,b,w,10),n=b,o=w;break}case Mt.Q:{var S=e[v++],x=e[v++],g=e[v++],y=e[v++];d=t2(n,o,S,x,g,y,10),n=g,o=y;break}case Mt.A:var T=e[v++],C=e[v++],M=e[v++],D=e[v++],L=e[v++],I=e[v++],P=I+L;v+=1,e[v++],p&&(s=ci(L)*M+T,l=pi(L)*D+C),d=Eo(M,D)*Ro(va,Math.abs(I)),n=ci(P)*M+T,o=pi(P)*D+C;break;case Mt.R:{s=n=e[v++],l=o=e[v++];var R=e[v++],k=e[v++];d=R*2+k*2;break}case Mt.Z:{var m=s-n,_=l-o;d=Math.sqrt(m*m+_*_),n=s,o=l;break}}d>=0&&(u[f++]=d,h+=d)}return this._pathLen=h,h},r.prototype.rebuildPath=function(e,t){var a=this.data,i=this._ux,n=this._uy,o=this._len,s,l,u,h,f,v,c=t<1,p,d,g=0,y=0,m;if(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m))return;t:for(var _=0;_i||$r(v-h)>n||_===o-1){if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;e.lineTo(u*(1-w)+f*w,h*(1-w)+v*w);break t}g+=b}e.lineTo(f,v),u=f,h=v}break}case Mt.C:{var T=a[_++],C=a[_++],M=a[_++],D=a[_++],L=a[_++],I=a[_++];if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;cn(u,T,M,L,w,fi),cn(h,C,D,I,w,vi),e.bezierCurveTo(fi[1],vi[1],fi[2],vi[2],fi[3],vi[3]);break t}g+=b}e.bezierCurveTo(T,C,M,D,L,I),u=L,h=I;break}case Mt.Q:{var T=a[_++],C=a[_++],M=a[_++],D=a[_++];if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;Po(u,T,M,w,fi),Po(h,C,D,w,vi),e.quadraticCurveTo(fi[1],vi[1],fi[2],vi[2]);break t}g+=b}e.quadraticCurveTo(T,C,M,D),u=M,h=D;break}case Mt.A:var P=a[_++],R=a[_++],k=a[_++],N=a[_++],O=a[_++],G=a[_++],z=a[_++],W=!a[_++],K=k>N?k:N,_t=$r(k-N)>.001,mt=O+G,ut=!1;if(c){var b=p[y++];g+b>m&&(mt=O+G*(m-g)/b,ut=!0),g+=b}if(_t&&e.ellipse?e.ellipse(P,R,k,N,z,O,mt,W):e.arc(P,R,K,O,mt,W),ut)break t;x&&(s=ci(O)*k+P,l=pi(O)*N+R),u=ci(mt)*k+P,h=pi(mt)*N+R;break;case Mt.R:s=u=a[_],l=h=a[_+1],f=a[_++],v=a[_++];var tt=a[_++],bt=a[_++];if(c){var b=p[y++];if(g+b>m){var it=m-g;e.moveTo(f,v),e.lineTo(f+Ro(it,tt),v),it-=tt,it>0&&e.lineTo(f+tt,v+Ro(it,bt)),it-=bt,it>0&&e.lineTo(f+Eo(tt-it,0),v+bt),it-=tt,it>0&&e.lineTo(f,v+Eo(bt-it,0));break t}g+=b}e.rect(f,v,tt,bt);break;case Mt.Z:if(c){var b=p[y++];if(g+b>m){var w=(m-g)/b;e.lineTo(u*(1-w)+s*w,h*(1-w)+l*w);break t}g+=b}e.closePath(),u=s,h=l}}},r.CMD=Mt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0}(),r}();function ca(r,e,t,a,i,n,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>a+s||or+s&&n>t+s||ne+f&&h>a+f&&h>n+f&&h>s+f||hr+f&&u>t+f&&u>i+f&&u>o+f||ue+u&&l>a+u&&l>n+u||lr+u&&s>t+u&&s>i+u||st||h+ui&&(i+=Oo);var v=Math.atan2(l,s);return v<0&&(v+=Oo),v>=a&&v<=i||v+Oo>=a&&v+Oo<=i}function Zr(r,e,t,a,i,n){if(n>e&&n>a||ni?s:0}var da=Ar.CMD,di=Math.PI*2,o2=1e-4;function s2(r,e){return Math.abs(r-e)e&&u>a&&u>n&&u>s||u1&&l2(),c=Ot(e,a,n,s,Xe[0]),v>1&&(p=Ot(e,a,n,s,Xe[1]))),v===2?ge&&s>a&&s>n||s=0&&u<=1){for(var h=0,f=ie(e,a,n,u),v=0;vt||s<-t)return 0;var l=Math.sqrt(t*t-s*s);ye[0]=-l,ye[1]=l;var u=Math.abs(a-i);if(u<1e-4)return 0;if(u>=di-1e-4){a=0,i=di;var h=n?1:-1;return o>=ye[0]+r&&o<=ye[1]+r?h:0}if(a>i){var f=a;a=i,i=f}a<0&&(a+=di,i+=di);for(var v=0,c=0;c<2;c++){var p=ye[c];if(p+r>o){var d=Math.atan2(s,p),h=n?1:-1;d<0&&(d=di+d),(d>=a&&d<=i||d+di>=a&&d+di<=i)&&(d>Math.PI/2&&d1&&(t||(s+=Zr(l,u,h,f,a,i))),g&&(l=n[p],u=n[p+1],h=l,f=u),d){case da.M:h=n[p++],f=n[p++],l=h,u=f;break;case da.L:if(t){if(ca(l,u,n[p],n[p+1],e,a,i))return!0}else s+=Zr(l,u,n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case da.C:if(t){if(i2(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],e,a,i))return!0}else s+=u2(l,u,n[p++],n[p++],n[p++],n[p++],n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case da.Q:if(t){if(Om(l,u,n[p++],n[p++],n[p],n[p+1],e,a,i))return!0}else s+=h2(l,u,n[p++],n[p++],n[p],n[p+1],a,i)||0;l=n[p++],u=n[p++];break;case da.A:var y=n[p++],m=n[p++],_=n[p++],S=n[p++],x=n[p++],b=n[p++];p+=1;var w=!!(1-n[p++]);v=Math.cos(x)*_+y,c=Math.sin(x)*S+m,g?(h=v,f=c):s+=Zr(l,u,v,c,a,i);var T=(a-y)*S/_+y;if(t){if(n2(y,m,S,x,x+b,w,e,T,i))return!0}else s+=f2(y,m,S,x,x+b,w,T,i);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case da.R:h=l=n[p++],f=u=n[p++];var C=n[p++],M=n[p++];if(v=h+C,c=f+M,t){if(ca(h,f,v,f,e,a,i)||ca(v,f,v,c,e,a,i)||ca(v,c,h,c,e,a,i)||ca(h,c,h,f,e,a,i))return!0}else s+=Zr(v,f,v,c,a,i),s+=Zr(h,c,h,f,a,i);break;case da.Z:if(t){if(ca(l,u,h,f,e,a,i))return!0}else s+=Zr(l,u,h,f,a,i);l=h,u=f;break}}return!t&&!s2(u,f)&&(s+=Zr(l,u,h,f,a,i)||0),s!==0}function v2(r,e,t){return Bm(r,0,!1,e,t)}function c2(r,e,t,a){return Bm(r,e,!0,t,a)}var Vm=X({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ui),p2={style:X({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Nl.style)},Dv=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],ct=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var n=i.style;for(var o in a)n[o]!==a[o]&&(n[o]=a[o]);n.fill=a.fill?a.decal:null,n.decal=null,n.shadowColor=null,a.strokeFirst&&(n.stroke=null);for(var s=0;s.5?Wf:a>.2?GM:Uf}else if(t)return Uf}return Wf},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(ft(a)){var i=this.__zr,n=!!(i&&i.isDarkMode()),o=Al(t,0)0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&e.SHAPE_CHANGED_BIT)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||i){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h==null?4:h)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var i=this.transformCoordToLocal(t,a),n=this.getBoundingRect(),o=this.style;if(t=i[0],a=i[1],n.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),c2(s,l/u,t,a)))return!0}if(this.hasFill())return v2(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=e.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=a:V(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&e.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return ho(Vm,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=V({},this.shape))},e.prototype._applyStateObj=function(t,a,i,n,o,s){r.prototype._applyStateObj.call(this,t,a,i,n,o,s);var l=!(a&&n),u;if(a&&a.shape?o?n?u=a.shape:(u=V({},i.shape),V(u,a.shape)):(u=V({},n?this.shape:i.shape),V(u,a.shape)):l&&(u=i.shape),u)if(o){this.shape=V({},this.shape);for(var h={},f=St(u),v=0;v0},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return ho(d2,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var a=t.text;a!=null?a+="":a="";var i=wo(a,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Sr);gi.prototype.type="tspan";var g2=X({x:0,y:0},ui),y2={style:X({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Nl.style)};function m2(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Zt=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return ho(g2,t)},e.prototype._getSize=function(t){var a=this.style,i=a[t];if(i!=null)return i;var n=m2(a.image)?a.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return y2},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ot(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Sr);Zt.prototype.type="image";function _2(r,e){var t=e.x,a=e.y,i=e.width,n=e.height,o=e.r,s,l,u,h;i<0&&(t=t+i,i=-i),n<0&&(a=a+n,n=-n),typeof o=="number"?s=l=u=h=o:o instanceof Array?o.length===1?s=l=u=h=o[0]:o.length===2?(s=u=o[0],l=h=o[1]):o.length===3?(s=o[0],l=h=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],h=o[3]):s=l=u=h=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+h>i&&(f=u+h,u*=i/f,h*=i/f),l+u>n&&(f=l+u,l*=n/f,u*=n/f),s+h>n&&(f=s+h,s*=n/f,h*=n/f),r.moveTo(t+s,a),r.lineTo(t+i-l,a),l!==0&&r.arc(t+i-l,a+l,l,-Math.PI/2,0),r.lineTo(t+i,a+n-u),u!==0&&r.arc(t+i-u,a+n-u,u,0,Math.PI/2),r.lineTo(t+h,a+n),h!==0&&r.arc(t+h,a+n-h,h,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var pn=Math.round;function zm(r,e,t){if(!!e){var a=e.x1,i=e.x2,n=e.y1,o=e.y2;r.x1=a,r.x2=i,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(pn(a*2)===pn(i*2)&&(r.x1=r.x2=yi(a,s,!0)),pn(n*2)===pn(o*2)&&(r.y1=r.y2=yi(n,s,!0))),r}}function Fm(r,e,t){if(!!e){var a=e.x,i=e.y,n=e.width,o=e.height;r.x=a,r.y=i,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=yi(a,s,!0),r.y=yi(i,s,!0),r.width=Math.max(yi(a+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(yi(i+o,s,!1)-r.y,o===0?0:1)),r}}function yi(r,e,t){if(!e)return r;var a=pn(r*2);return(a+pn(e))%2==0?a/2:(a+(t?1:-1))/2}var S2=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),x2={},pt=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new S2},e.prototype.buildPath=function(t,a){var i,n,o,s;if(this.subPixelOptimize){var l=Fm(x2,a,this.style);i=l.x,n=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else i=a.x,n=a.y,o=a.width,s=a.height;a.r?_2(t,a):t.rect(i,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ct);pt.prototype.type="rect";var Gm={fill:"#000"},Hm=2,b2={style:X({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},Nl.style)},gt=function(r){E(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Gm,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,D=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I=0&&(P=b[I],P.align==="right");)this._placeToken(P,t,T,y,L,"right",_),C-=P.width,L-=P.width,I--;for(D+=(n-(D-g)-(m-L)-C)/2;M<=I;)P=b[M],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,a,i,n,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var h=t.verticalAlign,f=n+i/2;h==="top"?f=n+t.height/2:h==="bottom"&&(f=n+i-t.height/2);var v=!t.isLineHolder&&Lv(u);v&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,f-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=Um(o,s,p),f-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(gi),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Mv("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),x=Mv("stroke"in u?u.stroke:"stroke"in a?a.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Hm,y.stroke):null),b=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=f,b&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||ri,g.opacity=Gr(u.opacity,a.opacity,1),x&&(g.lineWidth=Gr(u.lineWidth,a.lineWidth,_),g.lineDash=vt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=t.contentWidth,T=t.contentHeight;d.setBoundingRect(new ot(To(g.x,w,g.textAlign),hn(g.y,T,g.textBaseline),w,T))},e.prototype._renderBackground=function(t,a,i,n,o,s){var l=t.backgroundColor,u=t.borderWidth,h=t.borderColor,f=ft(l),v=t.borderRadius,c=this,p,d;if(f||u&&h){p=this._getOrCreateChild(pt),p.useStyle(p.createStyle()),p.style.fill=null;var g=p.shape;g.x=i,g.y=n,g.width=o,g.height=s,g.r=v,p.dirtyShape()}if(f){var y=p.style;y.fill=l||null,y.fillOpacity=vt(t.fillOpacity,1)}else if(l&&l.image){d=this._getOrCreateChild(Zt),d.onload=function(){c.dirtyStyle()};var m=d.style;m.image=l.image,m.x=i,m.y=n,m.width=o,m.height=s}if(u&&h){var y=p.style;y.lineWidth=u,y.stroke=h,y.strokeOpacity=vt(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var _=(p||d).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Gr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";if(t.fontSize||t.fontFamily||t.fontWeight){var i="";typeof t.fontSize=="string"&&(t.fontSize.indexOf("px")!==-1||t.fontSize.indexOf("rem")!==-1||t.fontSize.indexOf("em")!==-1)?i=t.fontSize:isNaN(+t.fontSize)?i="12px":i=t.fontSize+"px",a=[t.fontStyle,t.fontWeight,i,t.fontFamily||"sans-serif"].join(" ")}return a&&Ha(a)||t.textFont||t.font},e}(Sr),w2={left:!0,right:1,center:1},T2={top:1,bottom:1,middle:1};function A2(r){return Wm(r),A(r.rich,Wm),r}function Wm(r){if(r){r.font=gt.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||w2[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||T2[t]?t:"top";var a=r.padding;a&&(r.padding=yf(r.padding))}}function Mv(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function C2(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Um(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function Ym(r){var e=r.text;return e!=null&&(e+=""),e}function Lv(r){return!!(r.backgroundColor||r.borderWidth&&r.borderColor)}var Q=At(),Xm=1,$m={},Zm=At(),Iv=0,No=1,Ul=2,Ee=["emphasis","blur","select"],Bo=["normal","emphasis","blur","select"],dn=10,D2=9,mi="highlight",Yl="downplay",Vo="select",Xl="unselect",zo="toggleSelect";function gn(r){return r!=null&&r!=="none"}var qm=new po(100);function Km(r){if(typeof r!="string")return r;var e=qm.get(r);return e||(e=Ly(r,-.1),qm.put(r,e)),e}function $l(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function Qm(r){$l(r,"emphasis",Ul)}function Jm(r){r.hoverState===Ul&&$l(r,"normal",Iv)}function Pv(r){$l(r,"blur",No)}function jm(r){r.hoverState===No&&$l(r,"normal",Iv)}function M2(r){r.selected=!0}function L2(r){r.selected=!1}function t0(r,e,t){e(r,t)}function qr(r,e,t){t0(r,e,t),r.isGroup&&r.traverse(function(a){t0(a,e,t)})}function Zl(r,e){switch(e){case"emphasis":r.hoverState=Ul;break;case"normal":r.hoverState=Iv;break;case"blur":r.hoverState=No;break;case"select":r.selected=!0}}function I2(r,e,t,a){for(var i=r.style,n={},o=0;o=0,n=!1;if(r instanceof ct){var o=Zm(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(gn(s)||gn(l)){a=a||{};var u=a.style||{};!gn(u.fill)&&gn(s)?(n=!0,a=V({},a),u=V({},u),u.fill=Km(s)):!gn(u.stroke)&&gn(l)&&(n||(a=V({},a),u=V({},u)),u.stroke=Km(l)),a.style=u}}if(a&&a.z2==null){n||(a=V({},a));var h=r.z2EmphasisLift;a.z2=r.z2+(h!=null?h:dn)}return a}function R2(r,e,t){if(t&&t.z2==null){t=V({},t);var a=r.z2SelectLift;t.z2=r.z2+(a!=null?a:D2)}return t}function E2(r,e,t){var a=lt(r.currentStates,e)>=0,i=r.style.opacity,n=a?null:I2(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=V({},t),o=V({opacity:a?i:n.opacity*.1},o),t.style=o),t}function Rv(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return P2(this,r,e,t);if(r==="blur")return E2(this,r,t);if(r==="select")return R2(this,r,t)}return t}function _i(r){r.stateProxy=Rv;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Rv),t&&(t.stateProxy=Rv)}function e0(r,e){!s0(r,e)&&!r.__highByOuter&&qr(r,Qm)}function r0(r,e){!s0(r,e)&&!r.__highByOuter&&qr(r,Jm)}function Cr(r,e){r.__highByOuter|=1<<(e||0),qr(r,Qm)}function Dr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&qr(r,Jm)}function a0(r){qr(r,Pv)}function i0(r){qr(r,jm)}function n0(r){qr(r,M2)}function o0(r){qr(r,L2)}function s0(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function l0(r){var e=r.getModel();e.eachComponent(function(t,a){var i=t==="series"?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);i.group.traverse(function(n){jm(n)})})}function Ev(r,e,t,a){var i=a.getModel();t=t||"coordinateSystem";function n(u,h){for(var f=0;f0){var s={dataIndex:o,seriesIndex:t.seriesIndex};n!=null&&(s.dataType=n),e.push(s)}})}),e}function Lt(r,e,t){yn(r,!0),qr(r,_i),Nv(r,e,t)}function Nv(r,e,t){var a=Q(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var h0=["emphasis","blur","select"],z2={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oe(r,e,t,a){t=t||"itemStyle";for(var i=0;i1&&(o*=zv(p),s*=zv(p));var d=(i===n?-1:1)*zv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Ql(f)*g-Kl(f)*y,_=(e+a)/2+Kl(f)*g+Ql(f)*y,S=c0([1,0],[(v-g)/o,(c-y)/s]),x=[(v-g)/o,(c-y)/s],b=[(-1*v-g)/o,(-1*c-y)/s],w=c0(x,b);if(Fv(x,b)<=-1&&(w=Fo),Fv(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Fo*1e6)/1e6;w=Fo*2+T%2*Fo}h.addData(u,m,_,o,s,S,w,f,n)}var X2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,$2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Z2(r){var e=new Ar;if(!r)return e;var t=0,a=0,i=t,n=a,o,s=Ar.CMD,l=r.match(X2);if(!l)return e;for(var u=0;uP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x01:-h,y01:-f,x11:T*(i/x-1),y11:C*(i/x-1)}}function rI(r,e){var t=Gv(e.r,0),a=Gv(e.r0||0,0),i=t>0,n=a>0;if(!(!i&&!n)){if(i||(t=a,a=0),a>t){var o=t;t=a,a=o}var s=!!e.clockwise,l=e.startAngle,u=e.endAngle,h;if(l===u)h=0;else{var f=[l,u];km(f,!s),h=S0(f[0]-f[1])}var v=e.cx,c=e.cy,p=e.cornerRadius||0,d=e.innerCornerRadius||0;if(!(t>ur))r.moveTo(v,c);else if(h>j2-ur)r.moveTo(v+t*_n(l),c+t*Si(l)),r.arc(v,c,t,l,u,!s),a>ur&&(r.moveTo(v+a*_n(u),c+a*Si(u)),r.arc(v,c,a,u,l,s));else{var g=S0(t-a)/2,y=jl(g,p),m=jl(g,d),_=m,S=y,x=t*_n(l),b=t*Si(l),w=a*_n(u),T=a*Si(u),C=void 0,M=void 0,D=void 0,L=void 0;if((y>ur||m>ur)&&(C=t*_n(u),M=t*Si(u),D=a*_n(l),L=a*Si(l),h<_0)){var I=eI(x,b,D,L,C,M,w,T);if(I){var P=x-I[0],R=b-I[1],k=C-I[0],N=M-I[1],O=1/Si(tI((P*k+R*N)/(Go(P*P+R*R)*Go(k*k+N*N)))/2),G=Go(I[0]*I[0]+I[1]*I[1]);_=jl(m,(a-G)/(O-1)),S=jl(y,(t-G)/(O+1))}}if(!(h>ur))r.moveTo(v+x,c+b);else if(S>ur){var z=tu(D,L,x,b,t,S,s),W=tu(C,M,w,T,t,S,s);r.moveTo(v+z.cx+z.x01,c+z.cy+z.y01),Sur)||!(h>ur))r.lineTo(v+w,c+T);else if(_>ur){var z=tu(w,T,C,M,a,-_,s),W=tu(x,b,D,L,a,-_,s);r.lineTo(v+z.cx+z.x01,c+z.cy+z.y01),_t-2?t-1:l+1],c=r[l>t-3?t-1:l+2]);var p=u*u,d=u*p;a.push([x0(h[0],f[0],v[0],c[0],u,p,d),x0(h[1],f[1],v[1],c[1],u,p,d)])}return a}function oI(r,e,t,a){var i=[],n=[],o=[],s=[],l,u,h,f;if(a){h=[Infinity,Infinity],f=[-Infinity,-Infinity];for(var v=0,c=r.length;v=2){if(a&&a!=="spline"){var n=oI(i,a,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],h=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{a==="spline"&&(i=nI(i,t)),r.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sbi[1]){if(s=!1,n)return s;var h=Math.abs(bi[0]-xi[1]),f=Math.abs(xi[0]-bi[1]);Math.min(h,f)>i.len()&&(h0?s?e.animateFrom(t,{duration:p,delay:g||0,easing:d,done:n,force:!!n||!!o,scope:r,during:o}):e.animateTo(t,{duration:p,delay:g||0,easing:d,done:n,force:!!n||!!o,setToFinal:!0,scope:r,during:o}):(e.stopAnimation(),!s&&e.attr(t),n&&n())}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function dt(r,e,t,a,i,n){Uv("update",r,e,t,a,i,n)}function Nt(r,e,t,a,i,n){Uv("init",r,e,t,a,i,n)}function ga(r,e,t,a,i,n){Sn(r)||Uv("remove",r,e,t,a,i,n)}function I0(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),ga(r,{style:{opacity:0}},e,t,a)}function Yo(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||I0(i,e,t,a)}):I0(r,e,t,a)}function Sn(r){if(!r.__zr)return!0;for(var e=0;eMath.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function P0(r){return!r.isGroup}function _I(r){return r.shape!=null}function Xo(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){P0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _I(o)&&(s.shape=V({},o.shape)),s}var n=a(r);e.traverse(function(o){if(P0(o)&&o.anid){var s=n[o.anid];if(s){var l=i(o);o.attr(i(s)),dt(o,l,t,Q(o).dataIndex)}}})}function R0(r,e){return H(r,function(t){var a=t[0];a=ou(a,e.x),a=su(a,e.x+e.width);var i=t[1];return i=ou(i,e.y),i=su(i,e.y+e.height),[a,i]})}function SI(r,e){var t=ou(r.x,e.x),a=su(r.x+r.width,e.x+e.width),i=ou(r.y,e.y),n=su(r.y+r.height,e.y+e.height);if(a>=t&&n>=i)return{x:t,y:i,width:a-t,height:n-i}}function $o(r,e,t){var a=V({rectHover:!0},e),i=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),X(i,t),new Zt(a)):lu(r.replace("path://",""),a,t,"center")}function Zo(r,e,t,a,i){for(var n=0,o=i[i.length-1];n1)return!1;var g=Yv(c,p,h,f)/v;return!(g<0||g>1)}function Yv(r,e,t,a){return r*a-t*e}function xI(r){return r<=1e-6&&r>=-1e-6}function xn(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,i=ft(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:a,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&A(St(l),function(h){Y(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=Q(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:a,option:X({content:a,formatterParams:s},i)}}hr("circle",lr),hr("ellipse",Jl),hr("sector",De),hr("ring",Ho),hr("polygon",me),hr("polyline",Me),hr("rect",pt),hr("line",Qt),hr("bezierCurve",Wo),hr("arc",eu);var qo=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",extendShape:pI,extendPath:gI,registerShape:hr,getShapeClass:Wv,makePath:lu,makeImage:D0,mergePath:$e,resizePath:L0,subPixelOptimizeLine:yI,subPixelOptimizeRect:mI,subPixelOptimize:uu,updateProps:dt,initProps:Nt,removeElement:ga,removeElementWithFadeOut:Yo,isElementRemoved:Sn,getTransform:wi,applyTransform:fr,transformDirection:hu,groupTransition:Xo,clipPointsByRect:R0,clipRectByRect:SI,createIcon:$o,linePolygonIntersect:Zo,lineLineIntersect:E0,setTooltipConfig:xn,Group:q,Image:Zt,Text:gt,Circle:lr,Ellipse:Jl,Sector:De,Ring:Ho,Polygon:me,Polyline:Me,Rect:pt,Line:Qt,BezierCurve:Wo,Arc:eu,IncrementalDisplayable:nu,CompoundPath:T0,LinearGradient:Uo,RadialGradient:C0,BoundingRect:ot,OrientedBoundingRect:iu,Point:nt,Path:ct}),fu={};function k0(r,e){for(var t=0;t=0&&s.push(l)}),s}}function ya(r,e){return at(at({},r,!0),e,!0)}var kI={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:"Guage",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:". "}}}},OI={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:""}}}},cu="ZH",Kv="EN",Qo=Kv,pu={},Qv={},H0=et.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(cu)>-1?cu:Qo}():Qo;function W0(r,e){r=r.toUpperCase(),Qv[r]=new xt(e),pu[r]=e}function NI(r){if(ft(r)){var e=pu[r.toUpperCase()]||{};return r===cu||r===Kv?$(e):at($(e),$(pu[Qo]),!1)}else return at($(r),$(pu[Qo]),!1)}function BI(r){return Qv[r]}function VI(){return Qv[Qo]}W0(Kv,kI),W0(cu,OI);var Jv=1e3,jv=Jv*60,Jo=jv*60,Ze=Jo*24,U0=Ze*365,jo={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}"},du="{yyyy}-{MM}-{dd}",Y0={year:"{yyyy}",month:"{yyyy}-{MM}",day:du,hour:du+" "+jo.hour,minute:du+" "+jo.minute,second:du+" "+jo.second,millisecond:jo.none},tc=["year","month","day","hour","minute","second","millisecond"],X0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ti(r,e){return r+="","0000".substr(0,e-r.length)+r}function wn(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 zI(r){return r===wn(r)}function FI(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gu(r,e,t,a){var i=mr(r),n=i[ec(t)](),o=i[Tn(t)]()+1,s=Math.floor((o-1)/4)+1,l=i[yu(t)](),u=i["get"+(t?"UTC":"")+"Day"](),h=i[ts(t)](),f=(h-1)%12+1,v=i[mu(t)](),c=i[_u(t)](),p=i[Su(t)](),d=a instanceof xt?a:BI(a||H0)||VI(),g=d.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,n%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ti(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ti(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ti(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Ti(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ti(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ti(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,Ti(p,3)).replace(/{S}/g,p+"")}function GI(r,e,t,a,i){var n=null;if(typeof t=="string")n=t;else if(typeof t=="function")n=t(r.value,e,{level:r.level});else{var o=V({},jo);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){n=l[u];break}n=n||o.none}if(B(n)){var f=r.level==null?0:r.level>=0?r.level:n.length+r.level;f=Math.min(f,n.length-1),n=n[f]}}return gu(new Date(r.value),n,i,a)}function $0(r,e){var t=mr(r),a=t[Tn(e)]()+1,i=t[yu(e)](),n=t[ts(e)](),o=t[mu(e)](),s=t[_u(e)](),l=t[Su(e)](),u=l===0,h=u&&s===0,f=h&&o===0,v=f&&n===0,c=v&&i===1,p=c&&a===1;return p?"year":c?"month":v?"day":f?"hour":h?"minute":u?"second":"millisecond"}function Z0(r,e,t){var a=typeof r=="number"?mr(r):r;switch(e=e||$0(r,t),e){case"year":return a[ec(t)]();case"half-year":return a[Tn(t)]()>=6?1:0;case"quarter":return Math.floor((a[Tn(t)]()+1)/4);case"month":return a[Tn(t)]();case"day":return a[yu(t)]();case"half-day":return a[ts(t)]()/24;case"hour":return a[ts(t)]();case"minute":return a[mu(t)]();case"second":return a[_u(t)]();case"millisecond":return a[Su(t)]()}}function ec(r){return r?"getUTCFullYear":"getFullYear"}function Tn(r){return r?"getUTCMonth":"getMonth"}function yu(r){return r?"getUTCDate":"getDate"}function ts(r){return r?"getUTCHours":"getHours"}function mu(r){return r?"getUTCMinutes":"getMinutes"}function _u(r){return r?"getUTCSeconds":"getSeconds"}function Su(r){return r?"getUTCSeconds":"getSeconds"}function HI(r){return r?"setUTCFullYear":"setFullYear"}function q0(r){return r?"setUTCMonth":"setMonth"}function K0(r){return r?"setUTCDate":"setDate"}function Q0(r){return r?"setUTCHours":"setHours"}function J0(r){return r?"setUTCMinutes":"setMinutes"}function j0(r){return r?"setUTCSeconds":"setSeconds"}function t_(r){return r?"setUTCSeconds":"setSeconds"}function e_(r){if(!om(r))return ft(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function r_(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var An=yf,WI=/([&<>"'])/g,UI={"&":"&","<":"<",">":">",'"':""","'":"'"};function ke(r){return r==null?"":(r+"").replace(WI,function(e,t){return UI[t]})}function xu(r,e,t){var a="{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}";function i(h){return h&&Ha(h)?h:"-"}function n(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?mr(r):r;if(isNaN(+l)){if(s)return"-"}else return gu(l,a,t)}if(e==="ordinal")return pf(r)?i(r):df(r)&&n(r)?r+"":"-";var u=Xr(r);return n(u)?e_(u):pf(r)?i(r):"-"}var a_=["a","b","c","d","e","f","g"],rc=function(r,e){return"{"+r+(e==null?"":e)+"}"};function i_(r,e,t){B(e)||(e=[e]);var a=e.length;if(!a)return"";for(var i=e[0].$vars||[],n=0;n':'';var o=t.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function Ai(r,e){return e=e||"transparent",ft(r)?r:J(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function bu(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var wu=A,n_=["left","right","top","bottom","width","height"],Ci=[["width","left","right"],["height","top","bottom"]];function ac(r,e,t,a,i){var n=0,o=0;a==null&&(a=Infinity),i==null&&(i=Infinity);var s=0;e.eachChild(function(l,u){var h=l.getBoundingRect(),f=e.childAt(u+1),v=f&&f.getBoundingRect(),c,p;if(r==="horizontal"){var d=h.width+(v?-v.x+h.x:0);c=n+d,c>a||l.newline?(n=0,c=d,o+=s+t,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(v?-v.y+h.y:0);p=o+g,p>i||l.newline?(n+=s+t,o=0,p=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=c+t:o=p+t)})}var Di=ac;j(ac,"vertical"),j(ac,"horizontal");function $I(r,e,t){var a=e.width,i=e.height,n=F(r.left,a),o=F(r.top,i),s=F(r.right,a),l=F(r.bottom,i);return(isNaN(n)||isNaN(parseFloat(r.left)))&&(n=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=a),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=i),t=An(t||0),{width:Math.max(s-n-t[1]-t[3],0),height:Math.max(l-o-t[0]-t[2],0)}}function qt(r,e,t){t=An(t||0);var a=e.width,i=e.height,n=F(r.left,a),o=F(r.top,i),s=F(r.right,a),l=F(r.bottom,i),u=F(r.width,a),h=F(r.height,i),f=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=a-s-v-n),isNaN(h)&&(h=i-l-f-o),c!=null&&(isNaN(u)&&isNaN(h)&&(c>a/i?u=a*.8:h=i*.8),isNaN(u)&&(u=c*h),isNaN(h)&&(h=u/c)),isNaN(n)&&(n=a-s-u-v),isNaN(o)&&(o=i-l-h-f),r.left||r.right){case"center":n=a/2-u/2-t[3];break;case"right":n=a-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-h/2-t[0];break;case"bottom":o=i-h-f;break}n=n||0,o=o||0,isNaN(u)&&(u=a-v-n-(s||0)),isNaN(h)&&(h=i-f-o-(l||0));var p=new ot(n+t[3],o+t[0],u,h);return p.margin=t,p}function Tu(r,e,t,a,i){var n=!i||!i.hv||i.hv[0],o=!i||!i.hv||i.hv[1],s=i&&i.boundingMode||"all";if(!(!n&&!o)){var l;if(s==="raw")l=r.type==="group"?new ot(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var u=r.getLocalTransform();l=l.clone(),l.applyTransform(u)}var h=qt(X({width:l.width,height:l.height},e),t,a),f=n?h.x-l.x:0,v=o?h.y-l.y:0;s==="raw"?(r.x=f,r.y=v):(r.x+=f,r.y+=v),r.markRedraw()}}function ZI(r,e){return r[Ci[e][0]]!=null||r[Ci[e][1]]!=null&&r[Ci[e][2]]!=null}function es(r){var e=r.layoutMode||r.constructor.layoutMode;return J(e)?e:e?{type:e}:null}function ma(r,e,t){var a=t&&t.ignoreSize;!B(a)&&(a=[a,a]);var i=o(Ci[0],0),n=o(Ci[1],1);u(Ci[0],r,i),u(Ci[1],r,n);function o(h,f){var v={},c=0,p={},d=0,g=2;if(wu(h,function(_){p[_]=r[_]}),wu(h,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),a[f])return l(e,h[1])?p[h[2]]=null:l(e,h[2])&&(p[h[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y=0;l--)s=at(s,i[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var i=t+"Index",n=t+"Id";return Io(this.ecModel,t,{index:this.get(i,!0),id:this.get(n,!0)},a)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(xt);mm(ht,xt),kl(ht),RI(ht),EI(ht,KI);function KI(r){var e=[];return A(ht.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=H(e,function(t){return _r(t).main}),r!=="dataset"&<(e,"dataset")<=0&&e.unshift("dataset"),e}var s_="";typeof navigator!="undefined"&&(s_=navigator.platform||"");var Dn="rgba(0, 0, 0, 0.2)",QI={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Dn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Dn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Dn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Dn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Dn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Dn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:s_.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},l_=Z(["tooltip","label","itemName","itemId","seriesName"]),Mr="original",ve="arrayRows",vr="objectRows",Kr="keyedColumns",_a="typedArray",u_="unknown",Lr="column",Mn="row",ce={Must:1,Might:2,Not:3},h_=At();function JI(r){h_(r).datasetMap=Z()}function f_(r,e,t){var a={},i=nc(e);if(!i||!r)return a;var n=[],o=[],s=e.ecModel,l=h_(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,h,f;r=r.slice(),A(r,function(d,g){var y=J(d)?d:r[g]={name:d};y.type==="ordinal"&&h==null&&(h=g,f=p(y)),a[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});A(r,function(d,g){var y=d.name,m=p(d);if(h==null){var _=v.valueWayDim;c(a[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(h===g)c(a[y],0,m),c(n,0,m);else{var _=v.categoryWayDim;c(a[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;me)return r[a];return r[t-1]}function p_(r,e,t,a,i,n,o){n=n||r;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var h=o==null||!a?t:iP(a,o);if(h=h||t,!(!h||!h.length)){var f=h[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%h.length,f}}function nP(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Au,rs,d_,g_="\0_ec_inner",oP=1,uc=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,i,n,o,s){n=n||{},this.option=null,this._theme=new xt(n),this._locale=new xt(o),this._optionManager=s},e.prototype.setOption=function(t,a,i){var n=__(a);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,a){return this._resetOption(t,__(a))},e.prototype._resetOption=function(t,a){var i=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?d_(this,o):(this.restoreData(),this._mergeOption(o,a)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,a)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var i=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=Z(),u=a&&a.replaceMergeMainTypeMap;JI(this),A(t,function(f,v){f!=null&&(ht.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?$(f):at(i[v],f,!0))}),u&&u.each(function(f,v){ht.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ht.topologicalTravel(s,ht.getAllClassMainTypes(),h,this);function h(f){var v=rP(this,f,Rt(t[f])),c=n.get(f),p=c?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",d=cm(c,v,p);bL(d,f,ht),i[f]=null,n.set(f,null),o.set(f,0);var g=[],y=[],m=0;A(d,function(_,S){var x=_.existing,b=_.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var w=f==="series",T=ht.getClass(f,_.keyInfo.subType,!w);if(!T)return;if(x&&x.constructor===T)x.name=_.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var C=V({componentIndex:S},_.keyInfo);x=new T(b,this,this,C),V(x,C),_.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),i[f]=g,n.set(f,y),o.set(f,m),f==="series"&&Au(this)}this._seriesIndices||Au(this)},e.prototype.getOption=function(){var t=$(this.option);return A(t,function(a,i){if(ht.hasClass(i)){for(var n=Rt(a),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Lo(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[i]=n}}),delete t[g_],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){var a=this.getLocaleModel();return a.get(t)},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var i=this._componentsMap.get(t);if(i){var n=i[a||0];if(n)return n;if(a==null){for(var o=0;o=e:t==="max"?r<=e:r===e}function dP(r,e){return r.join(",")===e.join(",")}var cr=A,is=J,x_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function fc(r){var e=r&&r.itemStyle;if(!!e)for(var t=0,a=x_.length;t=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(v>=0&&m>0||v<=0&&m<0){v+=m,d=m;break}}}return a[0]=v,a[1]=d,a});o.hostModel.setData(l),e.data=l})}var Cu=function(){function r(e){this.data=e.data||(e.sourceFormat===Kr?{}:[]),this.sourceFormat=e.sourceFormat||u_,this.seriesLayoutBy=e.seriesLayoutBy||Lr,this.startIndex=e.startIndex||0,this.dimensionsDefine=e.dimensionsDefine,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.encodeDefine=e.encodeDefine,this.metaRawOption=e.metaRawOption}return r}();function Du(r){return r instanceof Cu}function cc(r,e,t,a){t=t||L_(r);var i=e.seriesLayoutBy,n=CP(r,t,i,e.sourceHeader,e.dimensions),o=new Cu({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,encodeDefine:M_(a),metaRawOption:$(e)});return o}function pc(r){return new Cu({data:r,sourceFormat:Pe(r)?_a:Mr})}function AP(r){return new Cu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:$(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,encodeDefine:M_(r.encodeDefine)})}function M_(r){return r?Z(r):null}function L_(r){var e=u_;if(Pe(r))e=_a;else if(B(r)){r.length===0&&(e=ve);for(var t=0,a=r.length;td&&(d=_)}c[0]=p,c[1]=d}},i=function(){return this._data?this._data.length/this._dimSize:0};R_=(e={},e[ve+"_"+Lr]={pure:!0,appendData:n},e[ve+"_"+Mn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[vr]={pure:!0,appendData:n},e[Kr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var h=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)h.push(l[f])})}},e[Mr]={appendData:n},e[_a]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s=1)&&(m=1),m}var f;(this._dirty||n==="reset")&&(this._dirty=!1,f=this._doReset(a)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:Infinity,this._dueEnd);if(!a&&(f||c1&&a>0?s:o}};return n;function o(){return e=r?null:le},gte:function(r,e){return r>=e}},OP=function(){function r(e,t){if(typeof t!="number"){var a="";yt(a)}this._opFn=H_[e],this._rvalFloat=Xr(t)}return r.prototype.evaluate=function(e){return typeof e=="number"?this._opFn(e,this._rvalFloat):this._opFn(Xr(e),this._rvalFloat)},r}(),W_=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-Infinity:Infinity}return r.prototype.evaluate=function(e,t){var a=typeof e,i=typeof t,n=a==="number"?e:Xr(e),o=i==="number"?t:Xr(t),s=isNaN(n),l=isNaN(o);if(s&&(n=this._incomparable),l&&(o=this._incomparable),s&&l){var u=a==="string",h=i==="string";u&&(n=h?e:0),h&&(o=u?t:0)}return no?-this._resultLT:0},r}(),NP=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Xr(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=Xr(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function BP(r,e){return r==="eq"||r==="ne"?new NP(r==="eq",e):Y(H_,r)?new OP(r,e):null}var VP=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Mu(e,t)},r}();function zP(r,e){var t=new VP,a=r.data,i=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Lr&&yt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";Y(l,y)&&yt(_),l[y]=m}});else for(var h=0;h9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,i,n;if(_c(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var h=t[0];h.prepareSource(),u=h.getSource(),s=u.data,l=u.sourceFormat,n=[h._getVersionSign()]}else s=o.get("data",!0),l=Pe(s)?_a:Mr,n=[];var f=this._getSourceMetaRawOption(),v=u?u.metaRawOption:null,c=vt(f.seriesLayoutBy,v?v.seriesLayoutBy:null),p=vt(f.sourceHeader,v?v.sourceHeader:null),d=vt(f.dimensions,v?v.dimensions:null);i=[cc(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l,o.get("encode",!0))]}else{var g=e;if(a){var y=this._applyTransform(t);i=y.sourceList,n=y.upstreamSignList}else{var m=g.get("source",!0);i=[cc(m,this._getSourceMetaRawOption(),null,null)],n=[]}}this._setLocalSource(i,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var n="";e.length!==1&&$_(n)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var h=u.getSource(i||0),f="";i!=null&&!h&&$_(f),s.push(h),l.push(u._getVersionSign())}),a?o=YP(a,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[AP(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){var e=this._sourceList;if(!e.length)return!0;for(var t=this._getUpstreamSourceManagers(),a=0;a1||e>0&&!r.noHeader,a=0;A(r.blocks,function(i){Sc(i).planLayout(i);var n=i.__gapLevelBetweenSubBlocks;n>=a&&(a=n+(t&&(!n||i.type==="section"&&!i.noHeader)?1:0))}),r.__gapLevelBetweenSubBlocks=a},build:function(r,e,t,a){var i=e.noHeader,n=J_(e),o=qP(r,e,i?t:n.html,a);if(i)return o;var s=xu(e.header,"ordinal",r.useUTC),l=q_(a,r.renderMode).nameStyle;return r.renderMode==="richText"?j_(r,s,l)+n.richText+o:xc('
'+ke(s)+"
"+o,t)}},nameValue:{planLayout:function(r){r.__gapLevelBetweenSubBlocks=0},build:function(r,e,t,a){var i=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=e.value,h=r.useUTC;if(!(n&&o)){var f=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),v=n?"":xu(l,"ordinal",h),c=e.valueType,p=o?[]:B(u)?H(u,function(S,x){return xu(S,B(c)?c[x]:c,h)}):[xu(u,B(c)?c[0]:c,h)],d=!s||!n,g=!s&&n,y=q_(a,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":f)+(n?"":j_(r,v,m))+(o?"":JP(r,p,d,g,_)):xc((s?"":f)+(n?"":KP(v,!s,m))+(o?"":QP(p,d,g,_)),t)}}}};function qP(r,e,t,a){var i=[],n=e.blocks||[];de(!n||B(n)),n=n||[];var o=r.orderMode;if(e.sortBlocks&&o){n=n.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(Y(s,o)){var l=new W_(s[o],null);n.sort(function(h,f){return l.evaluate(h.sortParam,f.sortParam)})}else o==="seriesDesc"&&n.reverse()}var u=J_(e);if(A(n,function(h,f){var v=Sc(h).build(r,h,f>0?u.html:0,a);v!=null&&i.push(v)}),!!i.length)return r.renderMode==="richText"?i.join(u.richText):xc(i.join(""),t)}function Q_(r,e,t,a,i,n){if(!!r){var o=Sc(r);o.planLayout(r);var s={useUTC:i,renderMode:t,orderMode:a,markupStyleCreator:e};return o.build(s,r,0,n)}}function J_(r){var e=r.__gapLevelBetweenSubBlocks;return{html:$P[e],richText:ZP[e]}}function xc(r,e){var t='
',a="margin: "+e+"px 0 0";return'
'+r+t+"
"}function KP(r,e,t){var a=e?"margin-left:2px":"";return''+ke(r)+""}function QP(r,e,t,a){var i=t?"10px":"20px",n=e?"float:right;margin-left:"+i:"";return''+H(r,function(o){return ke(o)}).join("  ")+""}function j_(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function JP(r,e,t,a,i){var n=[i],o=a?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(e.join(" "),n)}function t1(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return Ai(a)}function e1(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var bc=function(){function r(){this.richTextStyles={},this._nextStyleNameId=sm()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var i=a==="richText"?this._generateStyleName():null,n=XI({color:t,type:e,renderMode:a,markerId:i});return ft(n)?n:(this.richTextStyles[i]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};B(t)?A(t,function(n){return V(a,n)}):V(a,t);var i=this._generateStyleName();return this.richTextStyles[i]=a,"{"+i+"|"+e+"}"},r}();function r1(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,i=e.getData(),n=i.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=B(s),u=t1(e,t),h,f,v,c;if(o>1||l&&!o){var p=jP(s,e,t,n,u);h=p.inlineValues,f=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=i.getDimensionInfo(n[0]);c=h=Pi(i,t,n[0]),f=d.type}else c=h=l?s[0]:s;var g=sv(e),y=g&&e.name||"",m=i.getName(t),_=a?y:m;return Jt("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[Jt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ha(_),value:h,valueType:f})].concat(v||[])})}function jP(r,e,t,a,i){var n=e.getData(),o=oo(r,function(f,v,c){var p=n.getDimensionInfo(c);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(f){h(Pi(n,t,f),f)}):A(r,h);function h(f,v){var c=n.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Jt("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:f,valueType:c.type})):(s.push(f),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Sa=At();function Lu(r,e){return r.getName(e)||r.getId(e)}var It=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,i){this.seriesIndex=this.componentIndex,this.dataTask=ss({count:eR,reset:rR}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var n=Sa(this).sourceManager=new Y_(this);n.prepareSource();var o=this.getInitialData(t,i);i1(o,this),this.dataTask.context.data=o,Sa(this).dataBeforeProcessed=o,a1(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var i=es(this),n=i?Cn(t):{},o=this.subType;ht.hasClass(o)&&(o+="Series"),at(t,a.getTheme().get(this.subType)),at(t,this.getDefaultOption()),ii(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&ma(t,n,i)},e.prototype.mergeOption=function(t,a){t=at(this.option,t,!0),this.fillDataTextStyle(t.data);var i=es(this);i&&ma(this.option,t,i);var n=Sa(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,a);i1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Sa(this).dataBeforeProcessed=o,a1(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!Pe(t))for(var a=["show"],i=0;ithis.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,i){var n=this.ecModel,o=sc.prototype.getColorFromPalette.call(this,t,a,i);return o||(o=n.getColorFromPalette(t,a,i)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var i=this.option.selectedMap;if(!!i)for(var n=this.getData(a),o=0;o=0&&i.push(o)}return i},e.prototype.isSelected=function(t,a){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(a),o=Lu(n,t);return i[o]||!1},e.prototype._innerSelect=function(t,a){var i,n,o=this.option.selectedMode,s=a.length;if(!(!o||!s)){if(o==="multiple")for(var l=this.option.selectedMap||(this.option.selectedMap={}),u=0;u0&&this._innerSelect(t,a)}},e.registerClass=function(t){return ht.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(ht);Ht(It,yc),Ht(It,sc),mm(It,ht);function a1(r){var e=r.name;sv(r)||(r.name=tR(r)||e)}function tR(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(i){var n=e.getDimensionInfo(i);n.displayName&&a.push(n.displayName)}),a.join(" ")}function eR(r){return r.model.getRawData().count()}function rR(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),aR}function aR(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function i1(r,e){A(oy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,j(iR,e))})}function iR(r,e){var t=wc(r);return t&&t.setOutputEnd((e||this).count()),e}function wc(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var i=a.agentStubMap;i&&(a=i.get(r.uid))}return a}}var Et=function(){function r(){this.group=new q,this.uid=bn("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,i){},r.prototype.updateLayout=function(e,t,a,i){},r.prototype.updateVisual=function(e,t,a,i){},r.prototype.blurSeries=function(e,t){},r}();hv(Et),kl(Et);function Ln(){var r=At();return function(e){var t=r(e),a=e.pipelineContext,i=!!t.large,n=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(i!==o||n!==s)&&"reset"}}var n1=At(),nR=Ln(),Ct=function(){function r(){this.group=new q,this.uid=bn("viewChart"),this.renderTask=ss({plan:oR,reset:sR}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,i){},r.prototype.highlight=function(e,t,a,i){s1(e.getData(),i,"emphasis")},r.prototype.downplay=function(e,t,a,i){s1(e.getData(),i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.updateLayout=function(e,t,a,i){this.render(e,t,a,i)},r.prototype.updateVisual=function(e,t,a,i){this.render(e,t,a,i)},r.markUpdateMethod=function(e,t){n1(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function o1(r,e,t){r&&(e==="emphasis"?Cr:Dr)(r,t)}function s1(r,e,t){var a=ni(r,e),i=e&&e.highlightKey!=null?G2(e.highlightKey):null;a!=null?A(Rt(a),function(n){o1(r.getItemGraphicEl(n),t,i)}):r.eachItemGraphicEl(function(n){o1(n,t,i)})}hv(Ct),kl(Ct);function oR(r){return nR(r.model)}function sR(r){var e=r.model,t=r.ecModel,a=r.api,i=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=i&&n1(i).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,i),lR[l]}var lR={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Iu="\0__throttleOriginMethod",l1="\0__throttleRate",u1="\0__throttleType";function Tc(r,e,t){var a,i=0,n=0,o=null,s,l,u,h;e=e||0;function f(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],p=0;p=0?f():o=setTimeout(f,-s),i=a};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){h=c},v}function ls(r,e,t,a){var i=r[e];if(!!i){var n=i[Iu]||i,o=i[u1],s=i[l1];if(s!==t||o!==a){if(t==null||!a)return r[e]=n;i=r[e]=Tc(n,t,a==="debounce"),i[Iu]=n,i[u1]=a,i[l1]=t}return i}}function uR(r,e){var t=r[e];t&&t[Iu]&&(r[e]=t[Iu])}var h1=At(),f1={itemStyle:li(qv,!0),lineStyle:li(Zv,!0)},hR={lineStyle:"stroke",itemStyle:"fill"};function v1(r,e){var t=r.visualStyleMapper||f1[e];return t||(console.warn("Unkown style type '"+e+"'."),f1.itemStyle)}function c1(r,e){var t=r.visualDrawType||hR[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var fR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=r.getModel(a),n=v1(r,a),o=n(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=c1(r,a),u=o[l],h=wt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||h||f){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||typeof o.fill=="function"?v:o.fill,o.stroke=o.stroke==="auto"||typeof o.stroke=="function"?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&h)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=V({},o);g[l]=h(d),c.setItemVisual(p,"style",g)}}}},us=new xt,vR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",i=v1(r,a),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){us.option=l[a];var u=i(us),h=o.ensureUniqueItemVisual(s,"style");V(h,u),us.option.decal&&(o.setItemVisual(s,"decal",us.option.decal),us.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cR={performRawSeries:!0,overallReset:function(r){var e=Z();r.eachSeries(function(t){if(!!t.useColorPaletteOnData){var a=e.get(t.type);a||(a={},e.set(t.type,a)),h1(t).scope=a}}),r.eachSeries(function(t){if(!(!t.useColorPaletteOnData||r.isSeriesFiltered(t))){var a=t.getRawData(),i={},n=t.getData(),o=h1(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=c1(t,s);n.each(function(u){var h=n.getRawIndex(u);i[h]=u}),a.each(function(u){var h=i[u],f=n.getItemVisual(h,"colorFromPalette");if(f){var v=n.ensureUniqueItemVisual(h,"style"),c=a.getName(u)||u+"",p=a.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Pu=Math.PI;function pR(r,e){e=e||{},X(e,{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 t=new q,a=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var i=new gt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new pt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new eu({shape:{startAngle:-Pu/2,endAngle:-Pu/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Pu*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Pu*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),h=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:h}),n.setShape({x:u-l,y:h-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var p1=function(){function r(e,t,a,i){this._stageTaskMap=Z(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=a.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var i=a.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(!!e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),i=a.context,n=!t&&a.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=n?a.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),i=e.getData(),n=i.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&n>=a.threshold,s=e.get("large")&&n>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?n:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=Z();e.eachSeries(function(i){var n=i.getProgressive(),o=i.uid;a.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:n&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),t._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(i){var n=e.get(i.uid)||e.set(i.uid,{}),o="";de(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,n,t,a),i.overallReset&&this._createOverallStageTask(i,n,t,a)},this)},r.prototype.prepareView=function(e,t,a,i){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=a,o.api=i,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,i){i=i||{};var n=!1,o=this;A(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var h=o._stageTaskMap.get(l.uid),f=h.seriesTaskMap,v=h.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,a);var d=o.getPerformArgs(v,i.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(n=!0)}else f&&f.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,i){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=Z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(h):l?a.eachRawSeriesByType(l,h):u&&u(a,i).each(h);function h(f){var v=f.uid,c=s.set(v,o&&o.get(v)||ss({plan:_R,reset:SR,count:bR}));c.context={model:f,ecModel:a,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(f,c)}},r.prototype._createOverallStageTask=function(e,t,a,i){var n=this,o=t.overallTask=t.overallTask||ss({reset:dR});o.context={ecModel:a,api:i,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=Z(),u=e.seriesType,h=e.getTargetSeries,f=!0,v=!1,c="";de(!e.createOnAllSeries,c),u?a.eachRawSeriesByType(u,p):h?h(a,i).each(p):(f=!1,A(a.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,ss({reset:gR,onDirty:mR})));y.context={model:d,overallProgress:f},y.agent=o,y.__block=f,n._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,i=this._pipelineMap.get(a);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return wt(e)&&(e={overallReset:e,seriesType:wR(e)}),e.uid=bn("stageHandler"),t&&(e.visualType=t),e},r}();function dR(r){r.overallReset(r.ecModel,r.api,r.payload)}function gR(r){return r.overallProgress&&yR}function yR(){this.agent.dirty(),this.getDownstream().dirty()}function mR(){this.agent&&this.agent.dirty()}function _R(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function SR(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Rt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?H(e,function(t,a){return d1(a)}):xR}var xR=d1(0);function d1(r){return function(e,t){var a=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var n=e.start;n0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(a[u]=l,h=!0),h||(i[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:i}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var i=a.targetEl,n=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return h(l,o,"mainType")&&h(l,o,"subType")&&h(l,o,"index","componentIndex")&&h(l,o,"name")&&h(l,o,"id")&&h(u,n,"name")&&h(u,n,"dataIndex")&&h(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,n));function h(f,v,c,p){return f[c]==null||v[p||c]===f[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),CR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendSymbol&&t.setVisual("legendSymbol",r.legendSymbol),!r.hasSymbolVisual)return;var a=r.get("symbol"),i=r.get("symbolSize"),n=r.get("symbolKeepAspect"),o=r.get("symbolRotate"),s=r.get("symbolOffset"),l=wt(a),u=wt(i),h=wt(o),f=wt(s),v=l||u||h||f,c=!l&&a?a:r.defaultSymbol,p=u?null:i,d=h?null:o,g=f?null:s;if(t.setVisual({legendSymbol:r.legendSymbol||c,symbol:c,symbolSize:p,symbolKeepAspect:n,symbolRotate:d,symbolOffset:g}),e.isSeriesFiltered(r))return;function y(m,_){var S=r.getRawValue(_),x=r.getDataParams(_);l&&m.setItemVisual(_,"symbol",a(S,x)),u&&m.setItemVisual(_,"symbolSize",i(S,x)),h&&m.setItemVisual(_,"symbolRotate",o(S,x)),f&&m.setItemVisual(_,"symbolOffset",s(S,x))}return{dataEach:v?y:null}}},DR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(i,n){var o=i.getItemModel(n),s=o.getShallow("symbol",!0),l=o.getShallow("symbolSize",!0),u=o.getShallow("symbolRotate",!0),h=o.getShallow("symbolOffset",!0),f=o.getShallow("symbolKeepAspect",!0);s!=null&&i.setItemVisual(n,"symbol",s),l!=null&&i.setItemVisual(n,"symbolSize",l),u!=null&&i.setItemVisual(n,"symbolRotate",u),h!=null&&i.setItemVisual(n,"symbolOffset",h),f!=null&&i.setItemVisual(n,"symbolKeepAspect",f)}return{dataEach:t.hasItemOption?a:null}}};function Ac(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function fs(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function b1(r,e,t,a){switch(t){case"color":var i=r.ensureUniqueItemVisual(e,"style");i[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}var vs=Math.PI*2,Ri=Ar.CMD,MR=["top","right","bottom","left"];function LR(r,e,t,a,i){var n=t.width,o=t.height;switch(r){case"top":a.set(t.x+n/2,t.y-e),i.set(0,-1);break;case"bottom":a.set(t.x+n/2,t.y+o+e),i.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),i.set(-1,0);break;case"right":a.set(t.x+n+e,t.y+o/2),i.set(1,0);break}}function IR(r,e,t,a,i,n,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var h=o*t+r,f=s*t+e;if(Math.abs(a-i)%vs<1e-4)return l[0]=h,l[1]=f,u-t;if(n){var v=a;a=pa(i),i=pa(v)}else a=pa(a),i=pa(i);a>i&&(i+=vs);var c=Math.atan2(s,o);if(c<0&&(c+=vs),c>=a&&c<=i||c+vs>=a&&c+vs<=i)return l[0]=h,l[1]=f,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(i)+r,y=t*Math.sin(i)+e,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function ku(r,e,t,a,i,n,o,s){var l=i-r,u=n-e,h=t-r,f=a-e,v=Math.sqrt(h*h+f*f);h/=v,f/=v;var c=l*h+u*f,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*h,g=o[1]=e+p*f;return Math.sqrt((d-i)*(d-i)+(g-n)*(g-n))}function w1(r,e,t,a,i,n,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(i,r),s),h=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-i)*(u-i)+(h-n)*(h-n))}var pr=[];function PR(r,e,t){var a=w1(e.x,e.y,e.width,e.height,r.x,r.y,pr);return t.set(pr[0],pr[1]),a}function RR(r,e,t){for(var a=0,i=0,n=0,o=0,s,l,u=Infinity,h=e.data,f=r.x,v=r.y,c=0;c0){e=e/180*Math.PI,dr.fromArray(r[0]),Pt.fromArray(r[1]),Gt.fromArray(r[2]),nt.sub(Ir,dr,Pt),nt.sub(Pr,Gt,Pt);var t=Ir.len(),a=Pr.len();if(!(t<.001||a<.001)){Ir.scale(1/t),Pr.scale(1/a);var i=Ir.dot(Pr),n=Math.cos(e);if(n1&&nt.copy(Se,Gt),Se.toArray(r[1])}}}}function ER(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,dr.fromArray(r[0]),Pt.fromArray(r[1]),Gt.fromArray(r[2]),nt.sub(Ir,Pt,dr),nt.sub(Pr,Gt,Pt);var a=Ir.len(),i=Pr.len();if(!(a<.001||i<.001)){Ir.scale(1/a),Pr.scale(1/i);var n=Ir.dot(e),o=Math.cos(t);if(n=l)nt.copy(Se,Gt);else{Se.scaleAndAdd(Pr,s/Math.tan(Math.PI/2-h));var f=Gt.x!==Pt.x?(Se.x-Pt.x)/(Gt.x-Pt.x):(Se.y-Pt.y)/(Gt.y-Pt.y);if(isNaN(f))return;f<0?nt.copy(Se,Pt):f>1&&nt.copy(Se,Gt)}Se.toArray(r[1])}}}}function C1(r,e,t,a){var i=t==="normal",n=i?r:r.ensureState(t);n.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),n.shape=n.shape||{},o>0&&(n.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();i?r.useStyle(s):n.style=s}function kR(r,e){var t=e.smooth,a=e.points;if(!!a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var i=sa(a[0],a[1]),n=sa(a[1],a[2]);if(!i||!n){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(i,n)*t,s=_l([],a[1],a[0],o/i),l=_l([],a[1],a[2],o/n),u=_l([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var h=1;h0&&n&&x(-h/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&b(-y,.8),m<0&&b(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=d.rect[e]-a,m=i-g.rect[e]-g.rect[t]}function S(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){x(D*M,0,o);var L=D+T;L<0&&b(-L*M,1)}else b(-T*M,1)}}function x(T,C,M){T!==0&&(u=!0);for(var D=C;D0)for(var L=0;L0;L--){var k=M[L-1]*R;x(-k,L,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?x(M,0,D+1):x(-M,o-D-1,o),T-=M,T<=0)return}return u}function NR(r,e,t,a){return D1(r,"x","width",e,t,a)}function M1(r,e,t,a){return D1(r,"y","height",e,t,a)}function BR(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ot(0,0,0,0);function a(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var i=0;i=0&&a.attr(n.oldLayoutSelect),lt(v,"emphasis")>=0&&a.attr(n.oldLayoutEmphasis)),dt(a,u,t,l)}else if(a.attr(u),!Ko(a).valueAnimation){var f=vt(a.style.opacity,1);a.style.opacity=0,Nt(a,{style:{opacity:f}},t,l)}if(n.oldLayout=u,a.states.select){var c=n.oldLayoutSelect={};Nu(c,u,Bu),Nu(c,a.states.select,Bu)}if(a.states.emphasis){var p=n.oldLayoutEmphasis={};Nu(p,u,Bu),Nu(p,a.states.emphasis,Bu)}G0(a,l,h,t,t)}if(i&&!i.ignore&&!i.invisible){var n=FR(i),o=n.oldLayout,d={points:i.shape.points};o?(i.attr({shape:o}),dt(i,{shape:d},t)):(i.setShape(d),i.style.strokePercent=0,Nt(i,{style:{strokePercent:1}},t)),n.oldLayout=d}},r}();function I1(r,e){function t(a,i){var n=[];return a.eachComponent({mainType:"series",subType:r,query:i},function(o){n.push(o.seriesIndex)}),n}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(i,n,o){i=V({},i),o.dispatchAction(V(i,{type:a[1],seriesIndex:t(n,i)}))})})}function In(r,e,t,a,i){var n=r+e;t.isSilent(n)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=i.selected,u=0;u0)?null:(e=e||1,r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:df(r)?[r]:B(r)?r:null)}var tE=new Ar(!0);function zu(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function Fu(r){var e=r.fill;return e!=null&&e!=="none"}function E1(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function k1(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Pc(r,e,t){var a=vv(e.image,e.__image,t);if(Ol(a)){var i=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i.setTransform){var n=new DOMMatrix;n.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),n.scaleSelf(e.scaleX||1,e.scaleY||1),n.translateSelf(e.x||0,e.y||0),i.setTransform(n)}return i}}function eE(r,e,t,a){var i=zu(t),n=Fu(t),o=t.strokePercent,s=o<1,l=!e.path;(!e.silent||s)&&l&&e.createPathProxy();var u=e.path||tE;if(!a){var h=t.fill,f=t.stroke,v=n&&!!h.colorStops,c=i&&!!f.colorStops,p=n&&!!h.image,d=i&&!!f.image,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0;(v||c)&&(S=e.getBoundingRect()),v&&(g=e.__dirty?Lc(r,h,S):e.__canvasFillGradient,e.__canvasFillGradient=g),c&&(y=e.__dirty?Lc(r,f,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=y),p&&(m=e.__dirty||!e.__canvasFillPattern?Pc(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=m),d&&(_=e.__dirty||!e.__canvasStrokePattern?Pc(r,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=m),v?r.fillStyle=g:p&&(m?r.fillStyle=m:n=!1),c?r.strokeStyle=y:d&&(_?r.strokeStyle=_:i=!1)}var x=t.lineDash&&t.lineWidth>0&&Ic(t.lineDash,t.lineWidth),b=t.lineDashOffset,w=!!r.setLineDash,T=e.getGlobalScale();if(u.setScale(T[0],T[1],e.segmentIgnoreThreshold),x){var C=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;C&&C!==1&&(x=H(x,function(D){return D/C}),b/=C)}var M=!0;(l||e.__dirty&ct.SHAPE_CHANGED_BIT||x&&!w&&i)&&(u.setDPR(r.dpr),s?u.setContext(null):(u.setContext(r),M=!1),u.reset(),x&&!w&&(u.setLineDash(x),u.setLineDashOffset(b)),e.buildPath(u,e.shape,a),u.toStatic(),e.pathUpdated()),M&&u.rebuildPath(r,s?o:1),x&&w&&(r.setLineDash(x),r.lineDashOffset=b),a||(t.strokeFirst?(i&&k1(r,t),n&&E1(r,t)):(n&&E1(r,t),i&&k1(r,t))),x&&w&&r.setLineDash([])}function rE(r,e,t){var a=e.__image=vv(t.image,e.__image,e,e.onload);if(!(!a||!Ol(a))){var i=t.x||0,n=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,h=t.sy||0;r.drawImage(a,u,h,t.sWidth,t.sHeight,i,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,h=t.sy,f=o-u,v=s-h;r.drawImage(a,u,h,f,v,i,n,o,s)}else r.drawImage(a,i,n,o,s)}}function aE(r,e,t){var a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||ri,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0;if(r.setLineDash){var n=t.lineDash&&t.lineWidth>0&&Ic(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(n){var s=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&s!==1&&(n=H(n,function(l){return l/s}),o/=s),r.setLineDash(n),r.lineDashOffset=o,i=!0}}t.strokeFirst?(zu(t)&&r.strokeText(a,t.x,t.y),Fu(t)&&r.fillText(a,t.x,t.y)):(Fu(t)&&r.fillText(a,t.x,t.y),zu(t)&&r.strokeText(a,t.x,t.y)),i&&r.setLineDash([])}}var O1=["shadowBlur","shadowOffsetX","shadowOffsetY"],N1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function B1(r,e,t,a,i){var n=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){n||(Ie(r,i),n=!0);var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?ui.opacity:o}(a||e.blend!==t.blend)&&(n||(Ie(r,i),n=!0),r.globalCompositeOperation=e.blend||ui.blend);for(var s=0;s=4&&(h={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(h&&s!=null&&l!=null&&(f=oS(h,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=i;i=new q,i.add(c),c.scaleX=c.scaleY=f.scale,c.x=f.x,c.y=f.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:h,viewBoxTransform:f,named:n}},r.prototype._parseNode=function(e,t,a,i,n,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var h=Ec[s];if(h&&Y(Ec,s)){l=h.call(this,e,t);var f=e.getAttribute("name");if(f){var v={name:f,namedFrom:null,svgNodeTagLower:s,el:l};a.push(v),s==="g"&&(u=v)}else i&&a.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var c=j1[s];if(c&&Y(j1,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,n,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new gi({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),cE(a,t);var i=a.style,n=i.fontSize;n&&n<9&&(i.fontSize=9,a.scaleX*=n/9,a.scaleY*=n/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){Ec={g:function(e,t){var a=new q;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new pt;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new lr;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Qt;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new Jl;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),i;a&&(i=rS(a));var n=new me({shape:{points:i||[]},silent:!0});return Ke(t,n),Ne(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var a=e.getAttribute("points"),i;a&&(i=rS(a));var n=new Me({shape:{points:i||[]},silent:!0});return Ke(t,n),Ne(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var a=new Zt;return Ke(t,a),Ne(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(n),this._textY=parseFloat(i)+parseFloat(o);var s=new q;return Ke(t,s),Ne(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),i=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),i!=null&&(this._textY=parseFloat(i));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new q;return Ke(t,s),Ne(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",i=m0(a);return Ke(t,i),Ne(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),j1={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),n=new Uo(e,t,a,i);return tS(r,n),eS(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),i=new C0(e,t,a);return tS(r,i),eS(r,i),i}};function tS(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function eS(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),i=void 0;a&&a.indexOf("%")>0?i=parseInt(a,10)/100:a?i=parseFloat(a):i=0;var n={};nS(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Ke(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),X(e.__inheritedStyle,r.__inheritedStyle))}function rS(r){for(var e=ba(r),t=[],a=0;a0;n-=2){var o=a[n],s=a[n-1],l=void 0;switch(i=i||ze(),s){case"translate":l=ba(o),yr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":l=ba(o),If(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":l=ba(o),qa(i,i,-parseFloat(l[0])/180*Math.PI);break;case"skew":l=ba(o),console.warn("Skew transform is not supported yet");break;case"matrix":l=ba(o),i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var iS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function nS(r,e,t){var a=r.getAttribute("style");if(!!a){iS.lastIndex=0;for(var i;(i=iS.exec(a))!=null;){var n=i[1],o=Y(Gu,n)?Gu[n]:null;o&&(e[o]=i[2]);var s=Y(Hu,n)?Hu[n]:null;s&&(t[s]=i[2])}}}function _E(r,e,t){for(var a=0;a>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=n,i=s,n=l,a.push([s/t,l/t])}return a}function LE(r,e){return r=ME(r),H(kt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,i=t.geometry,n=[];if(i.type==="Polygon"){var o=i.coordinates;n.push({type:"polygon",exterior:o[0],interiors:o.slice(1)})}if(i.type==="MultiPolygon"){var o=i.coordinates;A(o,function(u){u[0]&&n.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})})}var s=new uS(a[e||"name"],n,a.cp);return s.properties=a,s})}for(var kc=[126,25],ki=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Oi=0;Oi0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.setOption=function(t,a,i){if(this._disposed){Be(this.id);return}var n,o,s;if(gs(a)&&(i=a.lazyUpdate,n=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Rr]=!0,!this._model||a){var l=new fP(this._api),u=this._theme,h=this._model=new uc;h.scheduler=this._scheduler,h.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Yc),CS(this,s),i?(this[Ta]={silent:n},this[Rr]=!1,this.getZr().wakeUp()):(En(this),Aa.update.call(this),this._zr.flush(),this[Ta]=!1,this[Rr]=!1,ys.call(this,n),ms.call(this,n))},e.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||WE&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){if(!!et.canvasSupported){t=V({},t||{}),t.pixelRatio=t.pixelRatio||this.getDevicePixelRatio(),t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var a=this._zr;return a.painter.getRenderedCanvas(t)}},e.prototype.getSvgDataURL=function(){if(!!et.svgSupported){var t=this._zr,a=t.storage.getDisplayList();return A(a,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){Be(this.id);return}t=t||{};var a=t.excludeComponents,i=this._model,n=[],o=this;Xt(a,function(l){i.eachComponent({mainType:l},function(u){var h=o._componentsMap[u.__viewId];h.group.ignore||(n.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Xt(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){Be(this.id);return}if(!!et.canvasSupported){var a=t.type==="svg",i=this.group,n=Math.min,o=Math.max,s=Infinity;if(IS[i]){var l=s,u=s,h=-s,f=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();A(bs,function(_,S){if(_.group===i){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.getRenderedCanvas($(t)),b=_.getDom().getBoundingClientRect();l=n(b.left,l),u=n(b.top,u),h=o(b.right,h),f=o(b.bottom,f),v.push({dom:x,left:b.left,top:b.top})}}),l*=c,u*=c,h*=c,f*=c;var p=h-l,d=f-u,g=rn(),y=Jy(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return Xt(v,function(_){var S=_.left-l,x=_.top-u;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new pt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),Xt(v,function(_){var S=new Zt({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,a){return zc(this,"convertToPixel",t,a)},e.prototype.convertFromPixel=function(t,a){return zc(this,"convertFromPixel",t,a)},e.prototype.containPixel=function(t,a){if(this._disposed){Be(this.id);return}var i=this._model,n,o=oi(i,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var h=u.coordinateSystem;if(h&&h.containPoint)n=n||!!h.containPoint(a);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(n=n||f.containPoint(a,u))}},this)},this),!!n},e.prototype.getVisual=function(t,a){var i=this._model,n=oi(i,t,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?Ac(s,l,a):fs(s,a)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Xt(ik,function(a){var i=function(n){var o=t.getModel(),s=n.target,l,u=a==="globalout";if(u?l={}:s&&Pn(s,function(p){var d=Q(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType)||{},!0}else if(d.eventData)return l=V({},d.eventData),!0},!0),l){var h=l.componentType,f=l.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",f=l.seriesIndex);var v=h&&f!=null&&o.getComponent(h,f),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=n,l.type=a,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(a,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(a,i,t)}),Xt(xs,function(a,i){t._messageCenter.on(i,function(n){this.trigger(i,n)},t)}),Xt(["selectchanged"],function(a){t._messageCenter.on(a,function(i){this.trigger(a,i)},t)}),HR(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Be(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Be(this.id);return}this._disposed=!0,dm(this.getDom(),qc,"");var t=this._api,a=this._model;Xt(this._componentsViews,function(i){i.dispose(a,t)}),Xt(this._chartsViews,function(i){i.dispose(a,t)}),this._zr.dispose(),delete bs[this.id]},e.prototype.resize=function(t){if(this._disposed){Be(this.id);return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var i=a.resetOption("media"),n=t&&t.silent;this[Rr]=!0,i&&En(this),Aa.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)}),this[Rr]=!1,ys.call(this,n),ms.call(this,n)}},e.prototype.showLoading=function(t,a){if(this._disposed){Be(this.id);return}if(gs(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!Zc[t]){var i=Zc[t](this._api,a),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){if(this._disposed){Be(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=V({},t);return a.type=xs[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){Be(this.id);return}if(gs(a)||(a={silent:!!a}),!!$u[t.type]&&!!this._model){if(this[Rr]){this._pendingActions.push(t);return}var i=a.silent;Gc.call(this,t,i);var n=a.flush;n?this._zr.flush():n!==!1&&et.browser.weChat&&this._throttledZrFlush(),ys.call(this,i),ms.call(this,i)}},e.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},e.prototype.appendData=function(t){if(this._disposed){Be(this.id);return}var a=t.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(a);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){En=function(u){var h=u._scheduler;h.restorePipelines(u._model),h.prepareStageTasks(),Vc(u,!0),Vc(u,!1),h.plan()},Vc=function(u,h){for(var f=u._model,v=u._scheduler,c=h?u._componentsViews:u._chartsViews,p=h?u._componentsMap:u._chartsMap,d=u._zr,g=u._api,y=0;yh.get("hoverLayerThreshold")&&!et.node&&!et.worker&&h.eachSeries(function(p){if(!p.preventUsingHoverLayer){var d=u._chartsMap[p.__viewId];d.__alive&&d.group.traverse(function(g){g.states.emphasis&&(g.states.emphasis.hoverLayer=!0)})}})}function i(u,h){var f=u.get("blendMode")||null;h.group.traverse(function(v){v.isGroup||(v.style.blend=f),v.eachPendingDisplayable&&v.eachPendingDisplayable(function(c){c.style.blend=f})})}function n(u,h){u.preventAutoZ||o(h.group,u.get("z")||0,u.get("zlevel")||0,-Infinity)}function o(u,h,f,v){var c=u.getTextContent(),p=u.getTextGuideLine(),d=u.isGroup;if(d)for(var g=u.childrenRef(),y=0;y0?{duration:c,delay:f.get("delay"),easing:f.get("easing")}:null;h.group.traverse(function(d){if(d.states&&d.states.emphasis){if(Sn(d))return;if(d instanceof ct&&H2(d),d.__dirty){var g=d.prevStates;g&&d.useStates(g)}if(v){d.stateTransition=p;var y=d.getTextContent(),m=d.getTextGuideLine();y&&(y.stateTransition=p),m&&(m.stateTransition=p)}d.__dirty&&t(d)}})}TS=function(u){return new(function(h){E(f,h);function f(){return h!==null&&h.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(v){for(;v;){var c=v.__ecComponentInfo;if(c!=null)return u._model.getComponent(c.mainType,c.index);v=v.parent}},f.prototype.enterEmphasis=function(v,c){Cr(v,c),Qe(u)},f.prototype.leaveEmphasis=function(v,c){Dr(v,c),Qe(u)},f.prototype.enterBlur=function(v){a0(v),Qe(u)},f.prototype.leaveBlur=function(v){i0(v),Qe(u)},f.prototype.enterSelect=function(v){n0(v),Qe(u)},f.prototype.leaveSelect=function(v){o0(v),Qe(u)},f.prototype.getModel=function(){return u.getModel()},f.prototype.getViewOfComponentModel=function(v){return u.getViewOfComponentModel(v)},f.prototype.getViewOfSeriesModel=function(v){return u.getViewOfSeriesModel(v)},f}(S_))(u)},AS=function(u){function h(f,v){for(var c=0;c=0)){OS.push(t);var n=p1.wrapStageHandler(t,i);n.__prio=e,n.__raw=t,r.push(n)}}function NS(r,e){Zc[r]=e}function fk(r,e,t){wa.registerMap(r,e,t)}var vk=UP;Ni(Oc,fR),Ni(Uu,vR),Ni(Uu,cR),Ni(Oc,CR),Ni(Uu,DR),Ni(cS,fE),ES(D_),kS(XE,wP),NS("default",pR),Er({type:mi,event:mi,update:mi},nr),Er({type:Yl,event:Yl,update:Yl},nr),Er({type:Vo,event:Vo,update:Vo},nr),Er({type:Xl,event:Xl,update:Xl},nr),Er({type:zo,event:zo,update:zo},nr),RS("light",TR),RS("dark",x1);var BS=[],ck={registerPreprocessor:ES,registerProcessor:kS,registerPostInit:sk,registerPostUpdate:lk,registerAction:Er,registerCoordinateSystem:uk,registerLayout:hk,registerVisual:Ni,registerTransform:vk,registerLoading:NS,registerMap:fk,PRIORITY:ek,ComponentModel:ht,ComponentView:Et,SeriesModel:It,ChartView:Ct,registerComponentModel:function(r){ht.registerClass(r)},registerComponentView:function(r){Et.registerClass(r)},registerSeriesModel:function(r){It.registerClass(r)},registerChartView:function(r){Ct.registerClass(r)},registerSubTypeDefaulter:function(r,e){ht.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){lL(r,e)}};function st(r){if(B(r)){A(r,function(e){st(e)});return}lt(BS,r)>=0||(BS.push(r),wt(r)&&(r={install:r}),r.install(ck))}function ws(r){return r==null?0:r.length||1}function VS(r){return r}var Ca=function(){function r(e,t,a,i,n,o){this._old=e,this._new=t,this._oldKeyGetter=a||VS,this._newKeyGetter=i||VS,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},i=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,a,n,"_newKeyGetter");for(var o=0;o1){var h=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(h,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},i={},n=[],o=[];this._initIndexMap(e,a,n,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&v===1)this._updateManyToOne&&this._updateManyToOne(h,u),i[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,u),i[l]=null;else if(f===1&&v===1)this._update&&this._update(h,u),i[l]=null;else if(f>1)for(var c=0;c1)for(var s=0;sm[1]&&(m[1]=y)}t&&(this._nameList[p]=t[d],this._dontMakeIdFromName||ep(this,p))}this._rawCount=this._count=l,this._extent={},jc(this)},r.prototype._initDataFromProvider=function(e,t,a){if(!(e>=t)){for(var i=this._rawData,n=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,f=this._rawExtent,v=i.getSource().sourceFormat,c=v===Mr,p=0;pw[1]&&(w[1]=b)}if(c&&!i.pure&&m){var T=m.name;u[_]==null&&T!=null&&(u[_]=$t(T,null));var C=m.id;h[_]==null&&C!=null&&(h[_]=$t(C,null))}this._dontMakeIdFromName||ep(this,_)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent={},jc(this)}},r.prototype.count=function(){return this._count},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,i=this._count;if(a===Array){e=new a(i);for(var n=0;n=0&&t=0&&t=0&&tl&&(l=f)}return o=[s,l],this._extent[e]=o,o},r.prototype.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){As(e)?V(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getSum=function(e){var t=this._storage[e],a=0;if(t)for(var i=0,n=this.count();i=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&ae)n=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,a){var i=this._storage,n=i[e],o=[];if(!n)return o;a==null&&(a=Infinity);for(var s=Infinity,l=-1,u=0,h=0,f=this.count();h=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=h))}return o.length=u,o},r.prototype.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],a=0;a=c&&S<=p||isNaN(S))&&(u[h++]=y),y++}g=!0}else if(o===2){for(var m=d[v[0]],x=d[v[1]],b=e[i[1]][0],w=e[i[1]][1],_=0;_=c&&S<=p||isNaN(S))&&(T>=b&&T<=w||isNaN(T))&&(u[h++]=y),y++}g=!0}}if(!g)if(o===1)for(var _=0;_=c&&S<=p||isNaN(S))&&(u[h++]=C)}else for(var _=0;_e[L][1])&&(M=!1)}M&&(u[h++]=this.getRawIndex(_))}return hx[1]&&(x[1]=S)}}}return s},r.prototype.downSample=function(e,t,a,i){for(var n=Ju(this,[e]),o=n._storage,s=[],l=zS(1/t),u=o[e],h=this.count(),f=n._rawExtent[e],v=new(kn(this))(h),c=0,p=0;ph-p&&(l=h-p,s.length=l);for(var d=0;df[1]&&(f[1]=y),v[c++]=m}return n._count=c,n._indices=v,n.getRawIndex=Bi,n},r.prototype.lttbDownSample=function(e,t){var a=Ju(this,[]),i=a._storage,n=i[e],o=this.count(),s=new(kn(this))(o),l=0,u=zS(1/t),h=this.getRawIndex(0),f,v,c;s[l++]=h;for(var p=1;pf&&(f=v,c=S))}s[l++]=c,h=c}return s[l++]=this.getRawIndex(o-1),a._count=l,a._indices=s,a.getRawIndex=Bi,a},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new xt(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Ca(e?e.getIndices():[],this.getIndices(),function(a){return Ku(e,a)},function(a){return Ku(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},As(e)?V(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],i=a&&a[t];return i==null?this.getVisual(t):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,i=a[e];i||(i=a[e]={});var n=i[t];return n==null&&(n=this.getVisual(t),B(n)?n=n.slice():As(n)&&(n=V({},n)),i[t]=n),n},r.prototype.setItemVisual=function(e,t,a){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,As(t)?V(i,t):i[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){if(As(e)){for(var a in e)e.hasOwnProperty(a)&&this.setLayout(a,e[a]);return}this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?V(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel;if(t){var i=Q(t);i.dataIndex=e,i.dataType=this.dataType,i.seriesIndex=a&&a.seriesIndex,t.type==="group"&&t.traverse(GS,t)}this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,i){a&&e&&e.call(t,a,i)})},r.prototype.cloneShallow=function(e){if(!e){var t=Je(this.dimensions,this.getDimensionInfo,this);e=new r(t,this.hostModel)}if(e._storage=this._storage,e._storageArr=this._storageArr,rp(e,this),this._indices){var a=this._indices.constructor;if(a===Array){var i=this._indices.length;e._indices=new a(i);for(var n=0;n65535?mk:Sk},tp=function(a,i,n,o){var s=yk[i.type],l=i.name;if(o){var u=a[l],h=u&&u.length;if(h!==n){for(var f=new s(n),v=0;v=0?this._indices[a]:-1},Ku=function(a,i){var n=a._idList[i];return n==null&&a._idDimIdx!=null&&(n=Ds(a,a._idDimIdx,a._idOrdinalMeta,i)),n==null&&(n=gk+i),n},Qu=function(a){return B(a)||(a=a!=null?[a]:[]),a},Ju=function(a,i){var n=a.dimensions,o=new r(Je(n,a.getDimensionInfo,a),a.hostModel);rp(o,a);for(var s=o._storage={},l=a._storage,u=o._storageArr=[],h=0;h=0?(s[f]=t(l[f]),o._rawExtent[f]=Ms(),o._extent[f]=null):s[f]=l[f],u.push(s[f]))}return o};function t(a){var i=a.constructor;return i===Array?a.slice():new i(a)}Ms=function(){return[Infinity,-Infinity]},GS=function(a){var i=Q(a),n=Q(this);i.seriesIndex=n.seriesIndex,i.dataIndex=n.dataIndex,i.dataType=n.dataType},rp=function(a,i){A(xk.concat(i.__wrappedMethods||[]),function(n){i.hasOwnProperty(n)&&(a[n]=i[n])}),a.__wrappedMethods=i.__wrappedMethods,A(bk,function(n){a[n]=$(i[n])}),a._calculationInfo=V({},i._calculationInfo)},ep=function(a,i){var n=a._nameList,o=a._idList,s=a._nameDimIdx,l=a._idDimIdx,u=n[i],h=o[i];if(u==null&&s!=null&&(n[i]=u=Ds(a,s,a._nameOrdinalMeta,i)),h==null&&l!=null&&(o[i]=h=Ds(a,l,a._idOrdinalMeta,i)),h==null&&u!=null){var f=a._nameRepeatCount,v=f[u]=(f[u]||0)+1;h=u,v>1&&(h+="__ec__"+v),o[i]=h}}}(),r}();function wk(r,e,t){Du(e)||(e=pc(e)),t=t||{},r=(r||[]).slice();for(var a=(t.dimsDef||[]).slice(),i=Z(),n=Z(),o=[],s=Tk(e,r,a,t.dimCount),l=0;lt[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();kl(kr);var ap=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication}return r.createByAxisModel=function(e){var t=e.option,a=t.data,i=a&&H(a,Pk);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(typeof e!="string"&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r}();function Pk(r){return J(r)&&r.value!=null?r.value:r+""}var US=ae;function Rk(r,e,t,a){var i={},n=r[1]-r[0],o=i.interval=im(n/e,!0);t!=null&&oa&&(o=i.interval=a);var s=i.intervalPrecision=YS(o),l=i.niceTickExtent=[US(Math.ceil(r[0]/o)*o,s),US(Math.floor(r[1]/o)*o,s)];return Ek(l,r),i}function YS(r){return ai(r)+2}function XS(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function Ek(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),XS(r,0,e),XS(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function ju(r,e){return r>=e[0]&&r<=e[1]}function th(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function eh(r,e){return r*(e[1]-e[0])+e[0]}var rh=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var i=a.getSetting("ordinalMeta");return i||(i=new ap({})),B(i)&&(i=new ap({categories:H(i,function(n){return J(n)?n.value:n})})),a._ordinalMeta=i,a._extent=a.getSetting("extent")||[0,i.categories.length-1],a}return e.prototype.parse=function(t){return typeof t=="string"?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),ju(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),th(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(eh(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,i=a[0];i<=a[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(kr);kr.registerClass(rh);var Vi=ae,zi=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return ju(t,this._extent)},e.prototype.normalize=function(t){return th(t,this._extent)},e.prototype.scale=function(t){return eh(t,this._extent)},e.prototype.setExtent=function(t,a){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(a)||(i[1]=parseFloat(a))},e.prototype.unionExtent=function(t){var a=this._extent;t[0]a[1]&&(a[1]=t[1]),this.setExtent(a[0],a[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=YS(t)},e.prototype.getTicks=function(t){var a=this._interval,i=this._extent,n=this._niceExtent,o=this._intervalPrecision,s=[];if(!a)return s;var l=1e4;i[0]l)return[];var h=s.length?s[s.length-1].value:n[1];return i[1]>h&&(t?s.push({value:Vi(h+a,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks(!0),i=[],n=this.getExtent(),o=1;on[0]&&c0&&(n=n===null?s:Math.min(n,s))}t[a]=n}}return t}function lp(r){var e=Ok(r),t=[];return A(r,function(a){var i=a.coordinateSystem,n=i.getBaseAxis(),o=n.getExtent(),s;if(n.type==="category")s=n.getBandWidth();else if(n.type==="value"||n.type==="time"){var l=n.dim+"_"+n.index,u=e[l],h=Math.abs(o[1]-o[0]),f=n.scale.getExtent(),v=Math.abs(f[1]-f[0]);s=u?h/v*u:h}else{var c=a.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=F(a.get("barWidth"),s),d=F(a.get("barMaxWidth"),s),g=F(a.get("barMinWidth")||1,s),y=a.get("barGap"),m=a.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:sp(n),stackId:op(a)})}),qS(t)}function qS(r){var e={};A(r,function(a,i){var n=a.axisKey,o=a.bandWidth,s=e[n]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[n]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var h=a.barWidth;h&&!l[u].width&&(l[u].width=h,h=Math.min(s.remainedWidth,h),s.remainedWidth-=h);var f=a.barMaxWidth;f&&(l[u].maxWidth=f);var v=a.barMinWidth;v&&(l[u].minWidth=v);var c=a.barGap;c!=null&&(s.gap=c);var p=a.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return A(e,function(a,i){t[i]={};var n=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=St(n).length;s=Math.max(35-l*4,15)+"%"}var u=F(s,o),h=F(a.gap,1),f=a.remainedWidth,v=a.autoWidthCount,c=(f-u)/(v+(v-1)*h);c=Math.max(c,0),A(n,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,f-=S+h*S,v--}else{var S=c;m&&mS&&(S=_),S!==c&&(y.width=S,f-=S+h*S,v--)}}),c=(f-u)/(v+(v-1)*h),c=Math.max(c,0);var p=0,d;A(n,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+h)}),d&&(p-=d.width*h);var g=-p/2;A(n,function(y,m){t[i][m]=t[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+h)})}),t}function KS(r,e,t){if(r&&e){var a=r[sp(e)];return a!=null&&t!=null?a[op(t)]:a}}function QS(r,e){var t=ZS(r,e),a=lp(t),i={};A(t,function(n){var o=n.getData(),s=n.coordinateSystem,l=s.getBaseAxis(),u=op(n),h=a[sp(l)][u],f=h.offset,v=h.width,c=s.getOtherAxis(l),p=n.get("barMinHeight")||0;i[u]=i[u]||[],o.setLayout({bandWidth:h.bandWidth,offset:f,size:v});for(var d=o.mapDimension(c.dim),g=o.mapDimension(l.dim),y=Da(o,d),m=c.isHorizontal(),_=tx(l,c),S=0,x=o.count();S=0?"p":"n",C=_;y&&(i[u][w]||(i[u][w]={p:_,n:_}),C=i[u][w][T]);var M=void 0,D=void 0,L=void 0,I=void 0;if(m){var P=s.dataToPoint([b,w]);M=C,D=P[1]+f,L=P[0]-_,I=v,Math.abs(L)$S||(h=$S),{progress:function(f,v){for(var c=f.count,p=new np(c*2),d=new np(c*2),g=new np(c),y,m=[],_=[],S=0,x=0;(y=f.next())!=null;)_[u]=v.get(o,y),_[1-u]=v.get(s,y),m=t.dataToPoint(_,null,m),d[S]=l?a.x+a.width:m[0],p[S++]=m[0],d[S]=l?m[1]:a.y+a.height,p[S++]=m[1],g[x++]=y;v.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:d,barWidth:h,valueAxisStart:tx(i,n),backgroundStart:l?a.x:a.y,valueAxisHorizontal:l})}}}}};function JS(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function jS(r){return r.pipelineContext&&r.pipelineContext.large}function tx(r,e,t){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var Bk=function(r,e,t,a){for(;t>>1;r[i][1]i&&(this._approxInterval=i);var s=ah.length,l=Math.min(Bk(ah,this._approxInterval,0,s),s-1);this._interval=ah[l][1],this._minLevelUnit=ah[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return typeof t=="number"?t:+mr(t)},e.prototype.contain=function(t){return ju(this.parse(t),this._extent)},e.prototype.normalize=function(t){return th(this.parse(t),this._extent)},e.prototype.scale=function(t){return eh(t,this._extent)},e.type="time",e}(zi),ah=[["second",Jv],["minute",jv],["hour",Jo],["quarter-day",Jo*6],["half-day",Jo*12],["day",Ze*1.2],["half-week",Ze*3.5],["week",Ze*7],["month",Ze*31],["quarter",Ze*95],["half-year",U0/2],["year",U0]];function Vk(r,e,t,a){var i=mr(e),n=mr(t),o=function(p){return Z0(i,p,a)===Z0(n,p,a)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},h=function(){return u()&&o("hour")},f=function(){return h()&&o("minute")},v=function(){return f()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return h();case"minute":return f();case"second":return v();case"millisecond":return c()}}function zk(r,e){return r/=Ze,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function Fk(r){var e=30*Ze;return r/=e,r>6?6:r>3?3:r>2?2:1}function Gk(r){return r/=Jo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function ex(r,e){return r/=e?jv:Jv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Hk(r){return im(r,!0)}function Wk(r,e,t){var a=new Date(r);switch(wn(e)){case"year":case"month":a[q0(t)](0);case"day":a[K0(t)](1);case"hour":a[Q0(t)](0);case"minute":a[J0(t)](0);case"second":a[j0(t)](0),a[t_(t)](0)}return a.getTime()}function Uk(r,e,t,a){var i=1e4,n=X0,o=0;function s(M,D,L,I,P,R,k){for(var N=new Date(D),O=D,G=N[I]();O1&&R===0&&L.unshift({value:L[0].value-O})}}for(var R=0;R=a[0]&&m<=a[1]&&f++)}var _=(a[1]-a[0])/e;if(f>_*1.5&&v>_/1.5||(u.push(g),f>_||r===n[c]))break}h=[]}}}for(var S=kt(H(u,function(M){return kt(M,function(D){return D.value>=a[0]&&D.value<=a[1]&&!D.notAdd})}),function(M){return M.length>0}),x=[],b=S.length-1,c=0;c0;)n*=10;var s=[ae(Zk(a[0]/n)*n),ae($k(a[1]/n)*n)];this._interval=n,this._niceExtent=s}},e.prototype.niceExtent=function(t){Is.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=je(t)/je(this.base),ju(t,this._extent)},e.prototype.normalize=function(t){return t=je(t)/je(this.base),th(t,this._extent)},e.prototype.scale=function(t){return t=eh(t,this._extent),ih(this.base,t)},e.type="log",e}(kr),ax=hp.prototype;ax.getMinorTicks=Is.getMinorTicks,ax.getLabel=Is.getLabel;function nh(r,e){return Xk(r,Yk(e))}kr.registerClass(hp);var qk=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]l&&(s=NaN,l=NaN);var f=lo(s)||lo(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:f}},r.prototype.modifyDataMinMax=function(e,t){this[Qk[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=Kk[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),Kk={min:"_determinedMin",max:"_determinedMax"},Qk={min:"_dataMin",max:"_dataMax"};function ix(r,e,t){var a=r.rawExtentInfo;return a||(a=new qk(r,e,t),r.rawExtentInfo=a,a)}function Bn(r,e){return e==null?null:lo(e)?NaN:r.parse(e)}function nx(r,e){var t=r.type,a=ix(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var i=a.min,n=a.max,o=e.ecModel;if(o&&t==="time"){var s=ZS("bar",o),l=!1;if(A(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=lp(s),h=Jk(i,n,e,u);i=h.min,n=h.max}}return{extent:[i,n],fixMin:a.minFixed,fixMax:a.maxFixed}}function Jk(r,e,t,a){var i=t.axis.getExtent(),n=i[1]-i[0],o=KS(a,t.axis);if(o===void 0)return{min:r,max:e};var s=Infinity;A(o,function(c){s=Math.min(c.offset,s)});var l=-Infinity;A(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,h=e-r,f=1-(s+l)/n,v=h/f-h;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function Fi(r,e){var t=nx(r,e),a=t.extent,i=e.get("splitNumber");r instanceof hp&&(r.base=e.get("logBase"));var n=r.type;r.setExtent(a[0],a[1]),r.niceExtent({splitNumber:i,fixMin:t.fixMin,fixMax:t.fixMax,minInterval:n==="interval"||n==="time"?e.get("minInterval"):null,maxInterval:n==="interval"||n==="time"?e.get("maxInterval"):null});var o=e.get("interval");o!=null&&r.setInterval&&r.setInterval(o)}function oh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new rh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[Infinity,-Infinity]});case"time":return new up({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(kr.getClass(e)||zi)}}function jk(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function Ps(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(a){return function(i,n){return r.scale.getFormattedLabel(i,n,a)}}(e):typeof e=="string"?function(a){return function(i){var n=r.scale.getLabel(i),o=a.replace("{value}",n!=null?n:"");return o}}(e):typeof e=="function"?function(a){return function(i,n){return t!=null&&(n=i.value-t),a(fp(r,i),n,i.level!=null?{level:i.level}:null)}}(e):function(a){return r.scale.getLabel(a)}}function fp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function tO(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var a,i,n=t.getExtent();t instanceof rh?i=t.count():(a=t.getTicks(),i=a.length);var o=r.getLabelModel(),s=Ps(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var h=0;hr[1]&&(r[1]=i[1])})}var Rs=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),Es=At();function aO(r){return r.type==="category"?nO(r):sO(r)}function iO(r,e){return r.type==="category"?oO(r,e):{ticks:H(r.scale.getTicks(),function(t){return t.value})}}function nO(r){var e=r.getLabelModel(),t=sx(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function sx(r,e){var t=lx(r,"labels"),a=vp(e),i=ux(t,a);if(i)return i;var n,o;return wt(a)?n=vx(r,a):(o=a==="auto"?lO(r):a,n=fx(r,o)),hx(t,a,{labels:n,labelCategoryInterval:o})}function oO(r,e){var t=lx(r,"ticks"),a=vp(e),i=ux(t,a);if(i)return i;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),wt(a))n=vx(r,a,!0);else if(a==="auto"){var s=sx(r,r.getLabelModel());o=s.labelCategoryInterval,n=H(s.labels,function(l){return l.tickValue})}else o=a,n=fx(r,o,!0);return hx(t,a,{ticks:n,tickCategoryInterval:o})}function sO(r){var e=r.scale.getTicks(),t=Ps(r);return{labels:H(e,function(a,i){return{formattedLabel:t(a,i),rawLabel:r.scale.getLabel(a),tickValue:a.value}})}}function lx(r,e){return Es(r)[e]||(Es(r)[e]=[])}function ux(r,e){for(var t=0;t40&&(s=Math.max(1,Math.floor(o/40)));for(var l=n[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),h=Math.abs(u*Math.cos(a)),f=Math.abs(u*Math.sin(a)),v=0,c=0;l<=n[1];l+=s){var p=0,d=0,g=wo(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/h,m=c/f;isNaN(y)&&(y=Infinity),isNaN(m)&&(m=Infinity);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Es(r.model),x=r.getExtent(),b=S.lastAutoInterval,w=S.lastTickCount;return b!=null&&w!=null&&Math.abs(b-_)<=1&&Math.abs(w-o)<=1&&b>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=b:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function hO(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function fx(r,e,t){var a=Ps(r),i=r.scale,n=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=n[0],h=i.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=ox(r),v=o.get("showMinLabel")||f,c=o.get("showMaxLabel")||f;v&&u!==n[0]&&d(n[0]);for(var p=u;p<=n[1];p+=l)d(p);c&&p-l!==n[1]&&d(n[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function vx(r,e,t){var a=r.scale,i=Ps(r),n=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&n.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),n}var cx=[0,1],gr=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=a&&e<=i},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return tm(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(a=a.slice(),px(a,i.count())),Tt(e,cx,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(a=a.slice(),px(a,i.count()));var n=Tt(e,a,cx,t);return this.scale.scale(n)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=iO(this,t),i=a.ticks,n=H(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return fO(this,n,o,e.clamp),n},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var a=this.scale.getMinorTicks(t),i=H(a,function(n){return H(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return aO(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 e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/a},r.prototype.calculateCategoryInterval=function(){return uO(this)},r}();function px(r,e){var t=r[1]-r[0],a=e,i=t/a/2;r[0]+=i,r[1]-=i}function fO(r,e,t,a){var i=e.length;if(!r.onBand||t||!i)return;var n=r.getExtent(),o,s;if(i===1)e[0].coord=n[0],o=e[1]={coord:n[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;A(e,function(c){c.coord-=u/2});var h=r.scale.getExtent();s=1+h[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var f=n[0]>n[1];v(e[0].coord,n[0])&&(a?e[0].coord=n[0]:e.shift()),a&&v(n[0],e[0].coord)&&e.unshift({coord:n[0]}),v(n[1],o.coord)&&(a?o.coord=n[1]:e.pop()),a&&v(o.coord,n[1])&&e.push({coord:n[1]});function v(c,p){return c=ae(c),p=ae(p),f?c>p:c=a&&l+1>=i){for(var u=[],h=0;h=a&&y+1>=i)return cO(p.components);s[c]=p}n++}for(;n<=o;){var v=f();if(v)return v}}function dx(r,e,t,a,i){for(var n=e.length,o=t.length,s=r.newPos,l=s-a,u=0;s+1-xx}function gO(r){var e=r.fill;return e!=null&&e!==Vn}function yO(r){var e=r.stroke;return e!=null&&e!==Vn}function cp(r,e){e&&Bt(r,"transform","matrix("+uh(e[0])+","+uh(e[1])+","+uh(e[2])+","+uh(e[3])+","+ta(e[4])+","+ta(e[5])+")")}function Bt(r,e,t){(!t||t.type!=="linear"&&t.type!=="radial")&&r.setAttribute(e,t)}function mO(r,e,t){r.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}function _O(r,e,t){r.setAttributeNS("http://www.w3.org/XML/1998/namespace",e,t)}function pp(r,e,t){var a=e.opacity==null?1:e.opacity;if(t instanceof Zt){r.style.opacity=a+"";return}if(gO(e)){var i=e.fill;i=i==="transparent"?Vn:i,Bt(r,"fill",i),Bt(r,"fill-opacity",(e.fillOpacity!=null?e.fillOpacity*a:a)+"")}else Bt(r,"fill",Vn);if(yO(e)){var n=e.stroke;n=n==="transparent"?Vn:n,Bt(r,"stroke",n);var o=e.lineWidth,s=e.strokeNoScale?t.getLineScale():1;Bt(r,"stroke-width",(s?o/s:0)+""),Bt(r,"paint-order",e.strokeFirst?"stroke":"fill"),Bt(r,"stroke-opacity",(e.strokeOpacity!=null?e.strokeOpacity*a:a)+"");var l=e.lineDash&&o>0&&Ic(e.lineDash,o);if(l){var u=e.lineDashOffset;s&&s!==1&&(l=H(l,function(h){return h/s}),u&&(u/=s,u=lh(u))),Bt(r,"stroke-dasharray",l.join(",")),Bt(r,"stroke-dashoffset",(u||0)+"")}else Bt(r,"stroke-dasharray","");e.lineCap&&Bt(r,"stroke-linecap",e.lineCap),e.lineJoin&&Bt(r,"stroke-linejoin",e.lineJoin),e.miterLimit&&Bt(r,"stroke-miterlimit",e.miterLimit+"")}else Bt(r,"stroke",Vn)}var SO=function(){function r(){}return r.prototype.reset=function(){this._d=[],this._str=""},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,i,n,o){this._add("C",e,t,a,i,n,o)},r.prototype.quadraticCurveTo=function(e,t,a,i){this._add("Q",e,t,a,i)},r.prototype.arc=function(e,t,a,i,n,o){this.ellipse(e,t,a,a,0,i,n,o)},r.prototype.ellipse=function(e,t,a,i,n,o,s,l){var u=this._d.length===0,h=s-o,f=!l,v=Math.abs(h),c=bx(v-Ma)||(f?h>=Ma:-h>=Ma),p=h>0?h%Ma:h%Ma+Ma,d=!1;c?d=!0:bx(v)?d=!1:d=p>=_x==!!f;var g=ta(e+a*mx(o)),y=ta(t+i*yx(o));c&&(f?h=Ma-1e-4:h=-Ma+1e-4,d=!0,u&&this._d.push("M",g,y));var m=ta(e+a*mx(o+h)),_=ta(t+i*yx(o+h));if(isNaN(g)||isNaN(y)||isNaN(a)||isNaN(i)||isNaN(n)||isNaN(Sx)||isNaN(m)||isNaN(_))return"";this._d.push("A",ta(a),ta(i),lh(n*Sx),+d,+f,m,_)},r.prototype.rect=function(e,t,a,i){this._add("M",e,t),this._add("L",e+a,t),this._add("L",e+a,t+i),this._add("L",e,t+i),this._add("L",e,t)},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,i,n,o,s,l,u){this._d.push(e);for(var h=1;h=0;--s)if(o[s]===n)return!0;return!1}),i}else return null;else return a[0]},r.prototype.doUpdate=function(e,t){if(!!e){var a=this.getDefs(!1);if(e[this._domName]&&a.contains(e[this._domName]))typeof t=="function"&&t(e);else{var i=this.add(e);i&&(e[this._domName]=i)}}},r.prototype.add=function(e){return null},r.prototype.addDom=function(e){var t=this.getDefs(!0);e.parentNode!==t&&t.appendChild(e)},r.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},r.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return A(this._tagNames,function(a){for(var i=e.getElementsByTagName(a),n=0;n-1){var u=Ge(l)[3],h=Iy(l);s.setAttribute("stop-color","#"+h),s.setAttribute("stop-opacity",u+"")}else s.setAttribute("stop-color",i[n].color);a.appendChild(s)}t.__dom=a},e.prototype.markUsed=function(t){if(t.style){var a=t.style.fill;a&&a.__dom&&r.prototype.markDomUsed.call(this,a.__dom),a=t.style.stroke,a&&a.__dom&&r.prototype.markDomUsed.call(this,a.__dom)}},e}(fh);function ks(r){return r&&(!!r.image||!!r.svgElement)}var Os=new P1,TO=function(r){E(e,r);function e(t,a){return r.call(this,t,a,["pattern"],"__pattern_in_use__")||this}return e.prototype.addWithoutUpdate=function(t,a){if(a&&a.style){var i=this;A(["fill","stroke"],function(n){var o=a.style[n];if(ks(o)){var s=i.getDefs(!0),l=Os.get(o);l?s.contains(l)||i.addDom(l):l=i.add(o),i.markUsed(a);var u=l.getAttribute("id");t.setAttribute(n,"url(#"+u+")")}})}},e.prototype.add=function(t){if(!!ks(t)){var a=this.createElement("pattern");return t.id=t.id==null?this.nextId++:t.id,a.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),a.setAttribute("x","0"),a.setAttribute("y","0"),a.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,a),this.addDom(a),a}},e.prototype.update=function(t){if(!!ks(t)){var a=this;this.doUpdate(t,function(){var i=Os.get(t);a.updateDom(t,i)})}},e.prototype.updateDom=function(t,a){var i=t.svgElement;if(i instanceof SVGElement)i.parentNode!==a&&(a.innerHTML="",a.appendChild(i),a.setAttribute("width",t.svgWidth+""),a.setAttribute("height",t.svgHeight+""));else{var n=void 0,o=a.getElementsByTagName("image");if(o.length)if(t.image)n=o[0];else{a.removeChild(o[0]);return}else t.image&&(n=this.createElement("image"));if(n){var s=void 0;if(typeof t.image=="string"?s=t.image:t.image instanceof HTMLImageElement?s=t.image.src:t.image instanceof HTMLCanvasElement&&(s=t.image.toDataURL()),s){n.setAttribute("href",s),n.setAttribute("x","0"),n.setAttribute("y","0");var l={dirty:function(){}},u=vv(s,n,l,function(g){a.setAttribute("width",g.width+""),a.setAttribute("height",g.height+"")});u&&u.width&&u.height&&(a.setAttribute("width",u.width+""),a.setAttribute("height",u.height+"")),a.appendChild(n)}}}var h=t.x||0,f=t.y||0,v=(t.rotation||0)/Math.PI*180,c=t.scaleX||1,p=t.scaleY||1,d="translate("+h+", "+f+") rotate("+v+") scale("+c+", "+p+")";a.setAttribute("patternTransform",d),Os.set(t,a)},e.prototype.markUsed=function(t){t.style&&(ks(t.style.fill)&&r.prototype.markDomUsed.call(this,Os.get(t.style.fill)),ks(t.style.stroke)&&r.prototype.markDomUsed.call(this,Os.get(t.style.stroke)))},e}(fh);function AO(r){var e=[];if(r)for(var t=0;t0}var CO=function(r){E(e,r);function e(t,a){var i=r.call(this,t,a,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return e.prototype.markAllUnused=function(){r.prototype.markAllUnused.call(this);for(var t in this._refGroups)this.markDomUnused(this._refGroups[t]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,a){if(!!Px(t)){var i=t.__clipPaths,n=this._keyDuplicateCount,o=AO(i);return R1(i,a&&a.__clipPaths)&&(n[o]=n[o]||0,n[o]&&(o+="-"+n[o]),n[o]++),this._refGroups[o]||(this._refGroups[o]=this.createElement("g"))}},e.prototype.update=function(t,a){var i=this._getClipPathGroup(t,a);return i&&(this.markDomUsed(i),this.updateDom(i,t.__clipPaths)),i},e.prototype.updateDom=function(t,a){if(a&&a.length>0){var i=this.getDefs(!0),n=a[0],o=void 0,s=void 0;n._dom?(s=n._dom.getAttribute("id"),o=n._dom,i.contains(o)||i.appendChild(o)):(s="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,o=this.createElement("clipPath"),o.setAttribute("id",s),i.appendChild(o),n._dom=o);var l=this.getSvgProxy(n);l.brush(n);var u=this.getSvgElement(n);o.innerHTML="",o.appendChild(u),t.setAttribute("clip-path","url(#"+s+")"),a.length>1&&this.updateDom(o,a.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(t){var a=this;t.__clipPaths&&A(t.__clipPaths,function(i){i._dom&&r.prototype.markDomUsed.call(a,i._dom)})},e.prototype.removeUnused=function(){r.prototype.removeUnused.call(this);var t={};for(var a in this._refGroups){var i=this._refGroups[a];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):t[a]=i}this._refGroups=t},e}(fh),DO=function(r){E(e,r);function e(t,a){var i=r.call(this,t,a,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){t=this.createElement("filter"),t.setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var a=this.createElement("feDropShadow");t.appendChild(a),this.addDom(t)}return t},e.prototype.update=function(t,a){var i=a.style;if(MO(i)){var n=LO(a),o=a._shadowDom=this._shadowDomMap[n];o||(o=this._getFromPool(),this._shadowDomMap[n]=o),this.updateDom(t,a,o)}else this.remove(t,a)},e.prototype.remove=function(t,a){a._shadowDom!=null&&(a._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,a,i){var n=i.children[0],o=a.style,s=a.getGlobalScale(),l=s[0],u=s[1];if(!(!l||!u)){var h=o.shadowOffsetX||0,f=o.shadowOffsetY||0,v=o.shadowBlur,c=o.shadowColor;n.setAttribute("dx",h/l+""),n.setAttribute("dy",f/u+""),n.setAttribute("flood-color",c);var p=v/2/l,d=v/2/u,g=p+" "+d;n.setAttribute("stdDeviation",g),i.setAttribute("x","-100%"),i.setAttribute("y","-100%"),i.setAttribute("width","300%"),i.setAttribute("height","300%"),a._shadowDom=i;var y=i.getAttribute("id");t.style.filter="url(#"+y+")"}},e.prototype.removeUnused=function(){var t=this.getDefs(!1);if(!!t){var a=this._shadowDomPool;for(var i in this._shadowDomMap){var n=this._shadowDomMap[i];a.push(n)}this._shadowDomMap={}}},e}(fh);function MO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function LO(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function vh(r){return parseInt(r,10)}function Rx(r){return r instanceof ct?hh:r instanceof Zt?Tx:r instanceof gi?Ax:hh}function Ex(r,e){return e&&r&&e.parentNode!==r}function kx(r,e,t){if(Ex(r,e)&&t){var a=t.nextSibling;a?r.insertBefore(e,a):r.appendChild(e)}}function Ox(r,e){if(Ex(r,e)){var t=r.firstChild;t?r.insertBefore(e,t):r.appendChild(e)}}function IO(r,e){e&&r&&e.parentNode===r&&r.removeChild(e)}function PO(r){r&&r.parentNode&&r.parentNode.removeChild(r)}function Ns(r){return r.__svgEl}var RO=function(){function r(e,t,a,i){this.type="svg",this.refreshHover=dp("refreshHover"),this.pathToImage=dp("pathToImage"),this.configLayer=dp("configLayer"),this.root=e,this.storage=t,this._opts=a=V({},a||{});var n=jr("svg");n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),n.setAttribute("version","1.1"),n.setAttribute("baseProfile","full"),n.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=jr("g");n.appendChild(o);var s=jr("g");n.appendChild(s),this._gradientManager=new wO(i,s),this._patternManager=new TO(i,s),this._clipPathManager=new CO(i,s),this._shadowManager=new DO(i,s);var l=document.createElement("div");l.style.cssText="overflow:hidden;position:relative",this._svgDom=n,this._svgRoot=s,this._backgroundRoot=o,this._viewport=l,e.appendChild(l),l.appendChild(n),this.resize(a.width,a.height),this._visibleList=[]}return r.prototype.getType=function(){return"svg"},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.getSvgRoot=function(){return this._svgRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},r.prototype.setBackgroundColor=function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=jr("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},r.prototype.createSVGElement=function(e){return jr(e)},r.prototype.paintOne=function(e){var t=Rx(e);return t&&t.brush(e),Ns(e)},r.prototype._paintList=function(e){var t=this._gradientManager,a=this._patternManager,i=this._clipPathManager,n=this._shadowManager;t.markAllUnused(),a.markAllUnused(),i.markAllUnused(),n.markAllUnused();for(var o=this._svgRoot,s=this._visibleList,l=e.length,u=[],h=0;h \r<`));return"data:image/svg+xml;charset=UTF-8,"+a},r}();function dp(r){return function(){Fr('In SVG mode painter not support method "'+r+'"')}}function EO(r){r.registerPainter("svg",RO)}function kO(){return!1}function Nx(r,e,t){var a=rn(),i=e.getWidth(),n=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=n+"px",a.setAttribute("data-zr-dom-id",r)),a.width=i*t,a.height=n*t,a}var gp=function(r){E(e,r);function e(t,a,i){var n=r.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.incremental=!1,n.zlevel=0,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__used=!1,n.__drawIndex=0,n.__startIndex=0,n.__endIndex=0,n.__prevStartIndex=null,n.__prevEndIndex=null;var o;i=i||Pl,typeof t=="string"?o=Nx(t,a,i):J(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(o.onselectstart=kO,s.webkitUserSelect="none",s.userSelect="none",s.webkitTapHighlightColor="rgba(0,0,0,0)",s["-webkit-touch-callout"]="none",s.padding="0",s.margin="0",s.borderWidth="0"),n.domBack=null,n.ctxBack=null,n.painter=a,n.config=null,n.dpr=i,n}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Nx("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ot(0,0,0,0);function h(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,x=Infinity,b=0,w=0;w=s)}}for(var f=this.__startIndex;f15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=c.dpr,D=0;D0&&e>i[0]){for(l=0;le);l++);s=a[i[l]]}if(i.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,i=0;i0?ch:0),this._needsManuallyCompositing),h.__builtin__||Fr("ZLevel "+u+" has been used by unkown layer "+h.id),h!==n&&(h.__used=!0,h.__startIndex!==l&&(h.__dirty=!0),h.__startIndex=l,h.incremental?h.__drawIndex=-1:h.__drawIndex=l,t(l),n=h),i.__dirty&We.REDARAW_BIT&&!i.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(f,v){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?at(a[e],t,!0):a[e]=t;for(var i=0;i-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={zlevel:0,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,lineStyle:{width:"bolder"}},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:Infinity},e}(It);function zn(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var i=Pi(r,e,t[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o0?t=a[0]:a[1]<0&&(t=a[1]),t}function Gx(r,e,t,a){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(i)&&(i=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,a),o[1-n]=i,e.dataToPoint(o)}var Hx=typeof Float32Array!="undefined",WO=Hx?Float32Array:Array;function Fn(r){return B(r)?Hx?new Float32Array(r):r:new WO(r)}function UO(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,i){t.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function YO(r,e,t,a,i,n,o,s){var l=UO(r,e),u=[],h=[],f=[],v=[],c=[],p=[],d=[],g=mp(i,e,o);mp(n,r,s);for(var y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_=i||d<0)break;if(Hi(y,m)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](y,m),f=y,v=m;else{var _=y-u,S=m-h;if(_*_+S*S<.5){d+=n;continue}if(o>0){var x=d+n,b=e[x*2],w=e[x*2+1],T=g+1;if(l)for(;Hi(b,w)&&T=a||Hi(b,w))c=y,p=m;else{M=b-u,D=w-h;var P=y-u,R=b-y,k=m-h,N=w-m,O=void 0,G=void 0;s==="x"?(O=Math.abs(P),G=Math.abs(R),c=y-O*o,p=m,L=y+O*o,I=m):s==="y"?(O=Math.abs(k),G=Math.abs(N),c=y,p=m-O*o,L=y,I=m+O*o):(O=Math.sqrt(P*P+k*k),G=Math.sqrt(R*R+N*N),C=G/(G+O),c=y-M*o*(1-C),p=m-D*o*(1-C),L=y+M*o*C,I=m+D*o*C,L=La(L,Ia(b,y)),I=La(I,Ia(w,m)),L=Ia(L,La(b,y)),I=Ia(I,La(w,m)),M=L-y,D=I-m,c=y-M*O/G,p=m-D*O/G,c=La(c,Ia(u,y)),p=La(p,Ia(h,m)),c=Ia(c,La(u,y)),p=Ia(p,La(h,m)),M=y-c,D=m-p,L=y+M*G/O,I=m+D*G/O)}r.bezierCurveTo(f,v,c,p,y,m),f=L,v=I}else r.lineTo(y,m)}u=y,h=m,d+=n}return g}var Wx=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),XO=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Wx},e.prototype.buildPath=function(t,a){var i=a.points,n=0,o=i.length/2;if(a.connectNulls){for(;o>0&&Hi(i[o*2-2],i[o*2-1]);o--);for(;n=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=n[f++],p=n[f++],d=n[f++],g=n[f++],y=n[f++],m=n[f++];var x=u?_v(s,c,d,y,t,h):_v(l,p,g,m,t,h);if(x>0)for(var b=0;b=0){var S=u?Ot(l,p,g,m,w):Ot(s,c,d,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(ct),$O=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Wx),Ux=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new $O},e.prototype.buildPath=function(t,a){var i=a.points,n=a.stackedOnPoints,o=0,s=i.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Hi(i[s*2-2],i[s*2-1]);s--);for(;o=0;n--){var o=t[n].dimension,s=r.dimensions[o],l=r.getDimensionInfo(s);if(a=l&&l.coordDim,a==="x"||a==="y"){i=t[n];break}}if(!!i){var u=e.getAxis(a),h=H(i.stops,function(m){return{offset:0,coord:u.toGlobalCoord(u.dataToCoord(m.value)),color:m.color}}),f=h.length,v=i.outerColors.slice();f&&h[0].coord>h[f-1].coord&&(h.reverse(),v.reverse());var c=10,p=h[0].coord-c,d=h[f-1].coord+c,g=d-p;if(g<.001)return"transparent";A(h,function(m){m.offset=(m.coord-p)/g}),h.push({offset:f?h[f-1].offset:.5,color:v[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:v[0]||"transparent"});var y=new Uo(0,0,0,0,h,!0);return y[a]=p,y[a+"2"]=d,y}}}function KO(r,e,t){var a=r.get("showAllSymbol"),i=a==="auto";if(!(a&&!i)){var n=t.getAxesByScale("ordinal")[0];if(!!n&&!(i&&QO(n,e))){var o=e.mapDimension(n.dim),s={};return A(n.getViewLabels(),function(l){var u=n.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function QO(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var i=e.count(),n=Math.max(1,Math.round(i/5)),o=0;oa)return!1;return!0}function JO(r,e){return isNaN(r)||isNaN(e)}function jO(r){for(var e=r.length/2;e>0&&JO(r[e*2-2],r[e*2-1]);e--);return e-1}function Qx(r,e){return[r[e*2],r[e*2+1]]}function tN(r,e,t){for(var a=r.length/2,i=t==="x"?0:1,n,o,s=0,l=-1,u=0;u=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function Jx(r,e,t,a){if(ea(e,"cartesian2d")){var i=a.getModel("endLabel"),n=i.get("show"),o=i.get("valueAnimation"),s=a.getData(),l={lastFrameIndex:0},u=n?function(p,d){r._endLabelOnDuring(p,d,s,l,o,i,e)}:null,h=e.getBaseAxis().isHorizontal(),f=Yx(e,t,a,function(){var p=r._endLabel;p&&t&&l.originalX!=null&&p.attr({x:l.originalX,y:l.originalY})},u);if(!a.get("clip",!0)){var v=f.shape,c=Math.max(v.width,v.height);h?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return u&&u(1,f),f}else return Xx(e,t,a)}function eN(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),i=t.inverse,n=a?i?"right":"left":"center",o=a?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var rN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new q,a=new Vs;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t},e.prototype.render=function(t,a,i){var n=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),h=t.getModel("areaStyle"),f=l.getLayout("points")||[],v=o.type==="polar",c=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=t.get("animation"),_=!h.isEmpty(),S=h.get("origin"),x=mp(o,l,S),b=_&&ZO(o,l,x),w=t.get("showSymbol"),T=w&&!v&&KO(t,l,o),C=this._data;C&&C.eachItemGraphicEl(function(K,_t){K.__temp&&(s.remove(K),C.setItemGraphicEl(_t,null))}),w||p.remove(),s.add(y);var M=v?!1:t.get("step"),D;o&&o.getArea&&t.get("clip",!0)&&(D=o.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=qO(l,o)||l.getVisual("style")[l.getVisual("drawType")];d&&c.type===o.type&&M===this._step?(_&&!g?g=this._newPolygon(f,b):g&&!_&&(y.remove(g),g=this._polygon=null),v||this._initOrUpdateEndLabel(t,o,Ai(L)),y.setClipPath(Jx(this,o,!1,t)),w&&p.updateData(l,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(K){return[f[K*2],f[K*2+1]]}}),(!$x(this._stackedOnPoints,b)||!$x(this._points,f))&&(m?this._doUpdateAnimation(l,b,o,i,M,S):(M&&(f=Pa(f,o,M),b&&(b=Pa(b,o,M))),d.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))):(w&&p.updateData(l,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(K){return[f[K*2],f[K*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,D),M&&(f=Pa(f,o,M),b&&(b=Pa(b,o,M))),d=this._newPolyline(f),_&&(g=this._newPolygon(f,b)),v||this._initOrUpdateEndLabel(t,o,Ai(L)),y.setClipPath(Jx(this,o,!0,t)));var I=t.get(["emphasis","focus"]),P=t.get(["emphasis","blurScope"]);if(d.useStyle(X(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),oe(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var R=d.getState("emphasis").style;R.lineWidth=+d.style.lineWidth+1}Q(d).seriesIndex=t.seriesIndex,Lt(d,I,P);var k=Kx(t.get("smooth")),N=t.get("smoothMonotone"),O=t.get("connectNulls");if(d.setShape({smooth:k,smoothMonotone:N,connectNulls:O}),g){var G=l.getCalculationInfo("stackedOnSeries"),z=0;g.useStyle(X(h.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),G&&(z=Kx(G.get("smooth"))),g.setShape({smooth:k,stackedOnSmooth:z,smoothMonotone:N,connectNulls:O}),oe(g,t,"areaStyle"),Q(g).seriesIndex=t.seriesIndex,Lt(g,I,P)}var W=function(K){n._changePolyState(K)};l.eachItemGraphicEl(function(K){K&&(K.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=l,this._coordSys=o,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=S},e.prototype.dispose=function(){},e.prototype.highlight=function(t,a,i,n){var o=t.getData(),s=ni(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var h=l[s*2],f=l[s*2+1];if(isNaN(h)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,f))return;u=new Bs(o,s),u.x=h,u.y=f,u.setZ(t.get("zlevel"),t.get("z"));var v=u.getSymbolPath().getTextContent();v&&(v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ct.prototype.highlight.call(this,t,a,i,n)},e.prototype.downplay=function(t,a,i,n){var o=t.getData(),s=ni(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ct.prototype.downplay.call(this,t,a,i,n)},e.prototype._changePolyState=function(t){var a=this._polygon;Zl(this._polyline,t),a&&Zl(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new XO({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Ux({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,a,i){var n,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):a.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,h=u.get("animationDuration");typeof h=="function"&&(h=h(null));var f=u.get("animationDelay")||0,v=typeof f=="function"?f(null):f;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(o){var S=i,x=a.pointToCoord(g);n?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=i;n?(y=b.x,m=b.x+b.width,_=c.x):(y=b.y+b.height,m=b.y,_=c.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=typeof f=="function"?f(p):h*w+v,C=d.getSymbolPath(),M=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,i){var n=t.getModel("endLabel");if(n.get("show")){var o=t.getData(),s=this._polyline,l=this._endLabel;l||(l=this._endLabel=new gt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var u=jO(o.getLayout("points"));u>=0&&(fe(s,ne(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:u,defaultText:function(h,f,v){return v!=null?Vx(o,v):zn(o,h)},enableTextSetter:!0},eN(n,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,i,n,o,s,l){var u=this._endLabel,h=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var f=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?d:0)*(m?-1:1),b=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=tN(f,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!c){var L=Qx(f,C[0]);u.attr({x:L[0]+x,y:L[1]+b}),o&&(D=v.getRawValue(C[0]))}else{var L=h.getPointOn(S,w);L&&u.attr({x:L[0]+x,y:L[1]+b});var I=v.getRawValue(C[0]),P=v.getRawValue(C[1]);o&&(D=gm(i,p,I,P,T.t))}n.lastFrameIndex=C[0]}else{var R=t===1||n.lastFrameIndex>0?C[0]:0,L=Qx(f,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+x,y:L[1]+b})}o&&Ko(u).setLabelText(D)}},e.prototype._doUpdateAnimation=function(t,a,i,n,o,s){var l=this._polyline,u=this._polygon,h=t.hostModel,f=YO(this._data,t,this._stackedOnPoints,a,this._coordSys,i,this._valueOrigin,s),v=f.current,c=f.stackedOnCurrent,p=f.next,d=f.stackedOnNext;if(o&&(v=Pa(f.current,i,o),c=Pa(f.stackedOnCurrent,i,o),p=Pa(f.next,i,o),d=Pa(f.stackedOnNext,i,o)),qx(v,p)>3e3||u&&qx(c,d)>3e3){l.setShape({points:p}),u&&u.setShape({points:p,stackedOnPoints:d});return}l.shape.__points=f.current,l.shape.points=v;var g={shape:{points:p}};f.current!==v&&(g.shape.__points=f.next),l.stopAnimation(),dt(l,g,h),u&&(u.setShape({points:v,stackedOnPoints:c}),u.stopAnimation(),dt(u,{shape:{stackedOnPoints:d}},h),l.shape.points!==u.shape.points&&(u.shape.points=l.shape.points));for(var y=[],m=f.status,_=0;_e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=Infinity,t=0;t10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),h=l.getExtent(),f=a.getDevicePixelRatio(),v=Math.abs(h[1]-h[0])*(f||1),c=Math.round(s/v);if(c>1){n==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c));var p=void 0;typeof n=="string"?p=aN[n]:typeof n=="function"&&(p=n),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/c,p,iN))}}}}}function nN(r){r.registerChartView(rN),r.registerSeriesModel(FO),r.registerLayout(zs("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,jx("line"))}var Fs=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Jr(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var a=this.coordinateSystem;if(a){var i=a.dataToPoint(a.clampData(t)),n=this.getData(),o=n.getLayout("offset"),s=n.getLayout("size"),l=a.getBaseAxis().isHorizontal()?0:1;return i[l]+=o+s/2,i}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(It);It.registerClass(Fs);var oN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Jr(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,i){return i.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ya(Fs.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Fs),sN=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Sp=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new sN},e.prototype.buildPath=function(t,a){var i=a.cx,n=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,h=a.startAngle,f=a.endAngle,v=a.clockwise,c=Math.cos(h),p=Math.sin(h),d=Math.cos(f),g=Math.sin(f),y=v?f-hs)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var i=a.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,i,n){if(!!this._isOrderChangedWithinSameData(t,a,i)){var o=this._dataSort(t,i,a);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,i){var n=a.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o,animation:{duration:0}})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){Yo(n,t,Q(n).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Ct),tb={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,n=r.y+r.height,o=xp(e.x,r.x),s=bp(e.x+e.width,i),l=xp(e.y,r.y),u=bp(e.y+e.height,n),h=si?s:o,e.y=f&&l>n?u:l,e.width=h?0:s-o,e.height=f?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),h||f},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var i=bp(e.r,r.r),n=xp(e.r0,r.r0);e.r=i,e.r0=n;var o=i-n<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},eb={cartesian2d:function(r,e,t,a,i,n,o,s,l){var u=new pt({shape:V({},a),z2:1});if(u.__dataIndex=t,u.name="item",n){var h=u.shape,f=i?"height":"width";h[f]=0}return u},polar:function(r,e,t,a,i,n,o,s,l){var u=a.startAngle0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle}}};function fN(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function ab(r,e,t,a,i,n,o,s){var l=e.getItemVisual(t,"style");s||r.setShape("r",a.get(["itemStyle","borderRadius"])||0),r.useStyle(l);var u=a.getShallow("cursor");if(u&&r.attr("cursor",u),!s){var h=o?i.height>0?"bottom":"top":i.width>0?"left":"right",f=ne(a);fe(r,f,{labelFetcher:n,labelDataIndex:t,defaultText:zn(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=r.getTextContent();F0(v,f,n.getRawValue(t),function(p){return Vx(e,p)})}var c=a.getModel(["emphasis"]);Lt(r,c.get("focus"),c.get("blurScope")),oe(r,a),fN(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function vN(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,i,n)}var cN=function(){function r(){}return r}(),ib=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new cN},e.prototype.buildPath=function(t,a){for(var i=a.points,n=this.__startPoint,o=this.__baseDimIdx,s=0;s=0?t:null},30,!1);function pN(r,e,t){var a=r.__baseDimIdx,i=1-a,n=r.shape.points,o=r.__largeDataIndices,s=Math.abs(r.__barWidth/2),l=r.__startPoint[i];gh[0]=e,gh[1]=t;for(var u=gh[a],h=gh[1-a],f=u-s,v=u+s,c=0,p=n.length/2;c=f&&g<=v&&(l<=y?h>=l&&h<=y:h>=y&&h<=l))return o[c]}return-1}function dN(r,e,t){var a=t.getVisual("style");r.useStyle(V({},a)),r.style.fill=null,r.style.stroke=a.fill,r.style.lineWidth=t.getLayout("barWidth")}function gN(r,e,t){var a=e.get("borderColor")||e.get("color"),i=e.getItemStyle();r.useStyle(i),r.style.fill=null,r.style.stroke=a,r.style.lineWidth=t.getLayout("barWidth")}function sb(r,e,t){if(ea(t,"cartesian2d")){var a=e,i=t.getArea();return{x:r?a.x:i.x,y:r?i.y:a.y,width:r?a.width:i.width,height:r?i.height:a.height}}else{var i=t.getArea(),n=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function yN(r,e,t){var a=r.type==="polar"?De:pt;return new a({shape:sb(e,t,r),silent:!0,z2:0})}function mN(r){r.registerChartView(uN),r.registerSeriesModel(oN),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,j(QS,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nk),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,jx("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var mh=Math.PI*2,lb=Math.PI/180;function _N(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function SN(r,e,t){e.eachSeriesByType(r,function(a){var i=a.getData(),n=i.mapDimension("value"),o=_N(a,t),s=a.get("center"),l=a.get("radius");B(l)||(l=[0,l]),B(s)||(s=[s,s]);var u=F(o.width,t.getWidth()),h=F(o.height,t.getHeight()),f=Math.min(u,h),v=F(s[0],u)+o.x,c=F(s[1],h)+o.y,p=F(l[0],f/2),d=F(l[1],f/2),g=-a.get("startAngle")*lb,y=a.get("minAngle")*lb,m=0;i.each(n,function(P){!isNaN(P)&&m++});var _=i.getSum(n),S=Math.PI/(_||m)*2,x=a.get("clockwise"),b=a.get("roseType"),w=a.get("stillShowZeroSum"),T=i.getDataExtent(n);T[0]=0;var C=mh,M=0,D=g,L=x?1:-1;if(i.setLayout({viewRect:o,r:d}),i.each(n,function(P,R){var k;if(isNaN(P)){i.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:v,cy:c,r0:p,r:b?NaN:d});return}b!=="area"?k=_===0&&w?S:P*S:k=mh/m,kt?y:g,x=Math.abs(_.label.y-t);if(x>S.maxY){var b=_.label.x-e-_.len2*i,w=a+_.len,T=Math.abs(b)0?"right":"left":K>0?"left":"right"}var ue,Vr=L.get("rotate");if(typeof Vr=="number"?ue=Vr*(Math.PI/180):ue=Vr?K<0?-W+Math.PI:-W:0,n=!!ue,C.x=mt,C.y=ut,C.rotation=ue,C.setStyle({verticalAlign:"middle"}),it){C.setStyle({align:bt});var sf=C.states.select;sf&&(sf.x+=C.x,sf.y+=C.y)}else{var za=C.getBoundingRect().clone();za.applyTransform(C.getComputedTransform());var ey=(C.style.margin||0)+2.1;za.y-=ey/2,za.height+=ey,t.push({label:C,labelLine:M,position:I,len:G,len2:z,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new nt(K,_t),linePoints:tt,textAlign:bt,labelDistance:P,labelAlignTo:R,edgeDistance:k,bleedMargin:N,rect:za})}w.setTextConfig({inside:it})}}),!n&&r.get("avoidLabelOverlap")&&bN(t,a,i,l,u,v,h,f);for(var d=0;d0){for(var h=o.getItemLayout(0),f=1;isNaN(h&&h.startAngle)&&f=n.r0}},e.type="pie",e}(Ct);function Hn(r,e,t){e=B(e)&&{coordDimensions:e}||V({},e);var a=r.getSource(),i=Ls(a,e),n=new xe(i,r);return n.initData(a,t),n}var Hs=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}(),CN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hs(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Hn(this,{coordDimensions:["value"],encodeDefaulter:j(ic,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),i=r.prototype.getDataParams.call(this,t),n=[];return a.each(a.mapDimension("value"),function(o){n.push(o)}),i.percent=fL(n,t,a.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){ii(t,"labelLine",["show"]);var a=t.labelLine,i=t.emphasis.labelLine;a.show=a.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(It);function DN(r){r.registerChartView(AN),r.registerSeriesModel(CN),I1("pie",r.registerAction),r.registerLayout(j(SN,"pie")),r.registerProcessor(Gs("pie"))}var MN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return Jr(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,a,i){return i.point(a.getItemLayout(t))},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},e}(It),fb=4,LN=function(){function r(){}return r}(),wp=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new LN},e.prototype.buildPath=function(t,a){var i=a.points,n=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]=0;u--){var h=u*2,f=n[h]-s/2,v=n[h+1]-l/2;if(t>=f&&a>=v&&t<=f+s&&a<=v+l)return u}return-1},e}(ct),IN=function(){function r(){this.group=new q}return r.prototype.isPersistent=function(){return!this._incremental},r.prototype.updateData=function(e,t){this.group.removeAll();var a=new wp({rectHover:!0,cursor:"default"});a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,!1,t),this.group.add(a),this._incremental=null},r.prototype.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var i=(a.endIndex-a.startIndex)*2,n=a.startIndex*4*2;t=new Float32Array(t.buffer,n,i)}a.setShape("points",t)})}},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new nu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},r.prototype.incrementalUpdate=function(e,t,a){var i;this._incremental?(i=new wp,this._incremental.addDisplayable(i,!0)):(i=new wp({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),i.incremental=!0,this.group.add(i)),i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,!!this._incremental,a)},r.prototype._setCommon=function(e,t,a,i){var n=t.hostModel;i=i||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=i.clipShape||null,e.symbolProxy=Yt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var s=e.shape.size[0]=0&&(h.dataIndex=v+(e.startIndex||0))})}},r.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},r.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},r}(),PN=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,i){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,i){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,i){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=zs("").reset(t,a,i);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,i=a&&a.getArea&&a.getArea();return t.get("clip",!0)?i:null},e.prototype._updateSymbolDraw=function(t,a){var i=this._symbolDraw,n=a.pipelineContext,o=n.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new IN:new Vs,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Ct),RN=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ht),Tp=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Wt).models[0]},e.type="cartesian2dAxis",e}(ht);Ht(Tp,Rs);var vb={show:!0,zlevel: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)"]}}},EN=at({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vb),Ap=at({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}}},vb),kN=at({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ap),ON=X({scale:!0,logBase:10},Ap),cb={category:EN,value:Ap,time:kN,log:ON},NN={value:1,category:1,time:1,log:1};function Wn(r,e,t,a){A(NN,function(i,n){var o=at(at({},cb[n],!0),a,!0),s=function(l){E(u,l);function u(){for(var h=[],f=0;fa[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(gr);function Dp(r,e,t){t=t||{};var a=r.coordinateSystem,i=e.axis,n={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,h=a.getRect(),f=[h.x,h.x+h.width,h.y,h.y+h.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[f[2]-c,f[3]+c]:[f[0]-c,f[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}n.position=[u==="y"?p[v[l]]:f[0],u==="x"?p[v[l]]:f[3]],n.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=g[s],n.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),ee(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=e.get(["axisLabel","rotate"]);return n.labelRotate=l==="top"?-y:y,n.z2=1,n}function gb(r){return r.get("coordinateSystem")==="cartesian2d"}function yb(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,Wt).models[0];e[a]=n}),e}var FN=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Cp,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model),A(a.x,function(n){Fi(n.scale,n.model)}),A(a.y,function(n){Fi(n.scale,n.model)});var i={};A(a.x,function(n){mb(a,"y",n,i)}),A(a.y,function(n){mb(a,"x",n,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var i=e.getBoxLayoutParams(),n=!a&&e.get("containLabel"),o=qt(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),n&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=tO(u);if(h){var f=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[f]-=h[f]+v,u.position==="top"?o.y+=h.height+v:u.position==="left"&&(o.x+=h.width+v)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var h=u.isHorizontal(),f=h?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(f[v],f[1-v]),GN(u,h?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}J(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,n=this._coordsList;i0?"top":"bottom",n="center"):El(i-Ra)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),Sb={axisLine:function(r,e,t,a){var i=e.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var n=e.axis.getExtent(),o=a.transform,s=[n[0],0],l=[n[1],0];o&&(re(s,s,o),re(l,l,o));var u=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Qt({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",t.add(h);var f=e.get(["axisLine","symbol"]),v=e.get(["axisLine","symbolSize"]),c=e.get(["axisLine","symbolOffset"])||0;if(typeof c=="number"&&(c=[c,c]),f!=null){typeof f=="string"&&(f=[f,f]),(typeof v=="string"||typeof v=="number")&&(v=[v,v]);var p=v[0],d=v[1];A([{rotate:r.rotation+Math.PI/2,offset:c[0],r:0},{rotate:r.rotation-Math.PI/2,offset:c[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(g,y){if(f[y]!=="none"&&f[y]!=null){var m=Yt(f[y],-p/2,-d/2,p,d,u.stroke,!0),_=g.r+g.offset;m.attr({rotation:g.rotate,x:s[0]+_*Math.cos(r.rotation),y:s[1]-_*Math.sin(r.rotation),silent:!0,z2:11}),t.add(m)}})}}},axisTickLabel:function(r,e,t,a){var i=UN(t,a,e,r),n=XN(t,a,e,r);WN(e,n,i),YN(t,a,e,r.tickDirection)},axisName:function(r,e,t,a){var i=ee(r.axisName,e.get("name"));if(!!i){var n=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),h=u[0]>u[1]?-1:1,f=[n==="start"?u[0]-h*l:n==="end"?u[1]+h*l:(u[0]+u[1])/2,bb(n)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*Ra/180);var p;bb(n)?v=be.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=HN(r.rotation,n,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=ee(r.nameTruncateMaxWidth,g.maxWidth,p),_=new gt({x:f[0],y:f[1],rotation:v.rotation,silent:be.isLabelSilent(e),style:Ft(s,{text:i,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(xn({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=be.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,Q(_).eventData=S}a.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function HN(r,e,t,a){var i=rm(t-r),n,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return El(i-Ra/2)?(o=l?"bottom":"top",n="center"):El(i-Ra*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",iRa/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function WN(r,e,t){if(!ox(r.axis)){var a=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var n=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],h=t[1],f=t[t.length-1],v=t[t.length-2];a===!1?(tr(n),tr(u)):xb(n,o)&&(a?(tr(o),tr(h)):(tr(n),tr(u))),i===!1?(tr(s),tr(f)):xb(l,s)&&(i?(tr(l),tr(v)):(tr(s),tr(f)))}}function tr(r){r&&(r.ignore=!0)}function xb(r,e){var t=r&&r.getBoundingRect().clone(),a=e&&e.getBoundingRect().clone();if(!(!t||!a)){var i=nn([]);return qa(i,i,-r.rotation),t.applyTransform(Za([],i,r.getLocalTransform())),a.applyTransform(Za([],i,e.getLocalTransform())),t.intersect(a)}}function bb(r){return r==="middle"||r==="center"}function wb(r,e,t,a,i){for(var n=[],o=[],s=[],l=0;l=0||r===e}function JN(r){var e=Ip(r);if(!!e){var t=e.axisPointerModel,a=e.axis.scale,i=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Pp(t);n==null&&(i.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=X({color:p.color},l));var g=at($(p),{boundaryGap:t,splitNumber:a,scale:i,axisLine:n,axisTick:o,axisLabel:s,name:p.text,nameLocation:"end",nameGap:f,nameTextStyle:d,triggerEvent:v},!1);if(u||(g.name=""),typeof h=="string"){var y=g.name;g.name=h.replace("{value}",y!=null?y:"")}else typeof h=="function"&&(g.name=h(g.name,g));var m=new xt(g,null,this.ecModel);return Ht(m,Rs.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:at({lineStyle:{color:"#bbb"}},Us.axisLine),axisLabel:_h(Us.axisLabel,!1),axisTick:_h(Us.axisTick,!1),splitLine:_h(Us.splitLine,!0),splitArea:_h(Us.splitArea,!0),indicator:[]},e}(ht),vB=["axisLine","axisTickLabel","axisName"],cB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group;n.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var a=t.coordinateSystem,i=a.getIndicatorAxes(),n=H(i,function(o){var s=new be(o.model,{position:[a.cx,a.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return s});A(n,function(o){A(vB,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,i=a.getIndicatorAxes();if(!i.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),h=o.get("show"),f=s.get("show"),v=l.get("color"),c=u.get("color"),p=B(v)?v:[v],d=B(c)?c:[c],g=[],y=[];function m(R,k,N){var O=N%k.length;return R[O]=R[O]||[],O}if(n==="circle")for(var _=i[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++){if(h){var w=m(g,p,b);g[w].push(new lr({shape:{cx:S,cy:x,r:_[b].coord}}))}if(f&&b<_.length-1){var w=m(y,d,b);y[w].push(new Ho({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,C=H(i,function(R,k){var N=R.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),H(N,function(O){return a.coordToPoint(O.coord,k)})}),M=[],b=0;b<=T;b++){for(var D=[],L=0;Lu[0]&&isFinite(g)&&isFinite(u[0]))}else{var y=f.getTicks().length-1;y>n&&(p=o(p));var d=Math.ceil(u[1]/p)*p,g=ae(d-p*n);f.setExtent(g,d),f.setInterval(p)}})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(i){var n=new r(i,e,t);a.push(n),i.coordinateSystem=n}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=a[i.get("radarIndex")||0])}),a},r.dimensions=[],r}();function gB(r){r.registerCoordinateSystem("radar",dB),r.registerComponentModel(fB),r.registerComponentView(cB),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendSymbol","roundRect")}),t.setVisual("legendSymbol","roundRect")}})}function yB(r){st(gB),r.registerChartView(uB),r.registerSeriesModel(hB),r.registerLayout(oB),r.registerProcessor(Gs("radar")),r.registerPreprocessor(sB)}var Eb="\0_ec_interaction_mutex";function mB(r,e,t){var a=Ep(r);a[e]=t}function _B(r,e,t){var a=Ep(r),i=a[e];i===t&&(a[e]=null)}function kb(r,e){return!!Ep(r)[e]}function Ep(r){return r[Eb]||(r[Eb]={})}Er({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var Ys=function(r){E(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var i=U(a._mousedownHandler,a),n=U(a._mousemoveHandler,a),o=U(a._mouseupHandler,a),s=U(a._mousewheelHandler,a),l=U(a._pinchHandler,a);return a.enable=function(u,h){this.disable(),this._opt=X($(h)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",n),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},a.disable=function(){t.off("mousedown",i),t.off("mousemove",n),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(Sy(t)||t.target&&t.target.draggable)){var a=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Sh("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||kb(this._zr,"globalPan"))){var a=t.offsetX,i=t.offsetY,n=this._x,o=this._y,s=a-n,l=i-o;this._x=a,this._y=i,this._opt.preventDefaultMouseMove&&Wr(t.event),Ob(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:n,oldY:o,newX:a,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){Sy(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var a=Sh("zoomOnMouseWheel",t,this._opt),i=Sh("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!a&&!i)){if(a){var u=o>3?1.4:o>1?1.2:1.1,h=n>0?u:1/u;kp(this,"zoom","zoomOnMouseWheel",t,{scale:h,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(n),v=(n>0?1:-1)*(f>3?.4:f>1?.15:.05);kp(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!kb(this._zr,"globalPan")){var a=t.pinchScale>1?1.1:1/1.1;kp(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(or);function kp(r,e,t,a,i){r.pointerChecker&&r.pointerChecker(a,i.originX,i.originY)&&(Wr(a.event),Ob(r,e,t,a,i))}function Ob(r,e,t,a,i){i.isAvailableBehavior=U(Sh,null,t,a),r.trigger(e,i)}function Sh(r,e,t){var a=t[r];return!r||a&&(!ft(a)||e.event[a+"Key"])}function Op(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function Np(r,e,t,a){var i=r.target,n=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,n){var s=n.min||0,l=n.max||Infinity;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(a-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var SB={axisPointer:1,tooltip:1,brush:1};function xh(r,e,t){var a=e.getComponentByElement(r.topTarget),i=a&&a.coordinateSystem;return a&&a!==t&&!SB.hasOwnProperty(a.mainType)&&i&&i.model!==t}var Bp=["rect","circle","line","ellipse","polygon","polyline","path"],xB=Z(Bp),bB=Z(Bp.concat(["g"])),wB=Z(Bp.concat(["g"])),Nb=At();function bh(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}var Bb=function(){function r(e){var t=new q;this.uid=bn("ec_map_draw"),this._controller=new Ys(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new q),t.add(this._svgGroup=new q)}return r.prototype.draw=function(e,t,a,i,n){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,h=this.group,f=l.getTransformInfo(),v=f.raw,c=f.roam,p=!u.childAt(0)||n;p?(h.x=c.x,h.y=c.y,h.scaleX=c.scaleX,h.scaleY=c.scaleY,h.dirty()):dt(h,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=Z(),a=this._regionsGroup,i=e.transformInfoRaw,n=e.mapOrGeoModel,o=e.data,s=function(l){return[l[0]*i.scaleX+i.x,l[1]*i.scaleY+i.y]};a.removeAll(),A(e.geo.regions,function(l){var u=l.name,h=n.getRegionModel(u),f=o?o.indexOfName(u):null,v=t.get(u),c=!!v;c||(v=t.set(u,new q),a.add(v));var p=new T0({segmentIgnoreThreshold:1,shape:{paths:[]}});v.add(p),c||(Fb(e,v,u,h,n,f),Gb(e,v,u,h,n),Hb(e,v,u,h,n)),A(l.geometries,function(g){if(g.type==="polygon"){for(var y=[],m=0;m=0)&&(v=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;fe(e,ne(a),{labelFetcher:v,labelDataIndex:f,defaultText:t},c);var p=e.getTextContent();if(p&&(Nb(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}TI(e,n,null),e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Fb(r,e,t,a,i,n){r.data?r.data.setItemGraphicEl(n,e):Q(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:a&&a.option||{}}}function Gb(r,e,t,a,i){r.data||xn({el:e,componentModel:i,itemName:t,itemTooltipOption:a.get("tooltip")})}function Hb(r,e,t,a,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var n=a.getModel("emphasis"),o=n.get("focus");return Lt(e,o,n.get("blurScope")),r.isGeo&&F2(e,i,t),o}var TB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new Bb(i);o.add(s.group),s.draw(t,a,i,this,n),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,a,i){var n=t.originalData,o=this.group;n.each(n.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=n.getItemLayout(l);if(!(!u||!u.point)){var h=u.point,f=u.offset,v=new lr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:h[0]+f*9,cy:h[1],r:3},silent:!0,z2:8+(f?0:dn+1)});if(!f){var c=t.mainSeries.getData(),p=n.getName(l),d=c.indexOfName(p),g=n.getItemModel(l),y=g.getModel("label"),m=c.getItemGraphicEl(d);fe(v,ne(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}}}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Zl(v,_)}}o.add(v)}}})},e.type="map",e}(Ct),AB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(a!=null){var i=this.getData().getName(a),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=Hn(this,{coordDimensions:["value"],encodeDefaulter:j(ic,this)}),i=Z(),n=[],o=0,s=a.count();o-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(It);function CB(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(i,n){var o="ec-"+a.getName(n);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(a,i){for(var n="ec-"+r[0].getName(i),o=0,s=Infinity,l=-Infinity,u=t[n].length,h=0;h1?(p.width=c,p.height=c/h):(p.height=c,p.width=c*h),p.y=v[1]-p.height/2,p.x=v[0]-p.width/2;else{var d=r.getBoxLayoutParams();d.aspect=h,p=qt(d,{width:l,height:u})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function IB(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var PB=function(){function r(){this.dimensions=wh.prototype.dimensions}return r.prototype.create=function(e,t){var a=[];e.eachComponent("geo",function(n,o){var s=n.get("map"),l=new wh(s+o,s,{nameMap:n.get("nameMap"),nameProperty:n.get("nameProperty"),aspectScale:n.get("aspectScale")});l.zoomLimit=n.get("scaleLimit"),a.push(l),n.coordinateSystem=l,l.model=n,l.resize=Xb,l.resize(n,t)}),e.eachSeries(function(n){var o=n.get("coordinateSystem");if(o==="geo"){var s=n.get("geoIndex")||0;n.coordinateSystem=a[s]}});var i={};return e.eachSeriesByType("map",function(n){if(!n.getHostGeoModel()){var o=n.getMapType();i[o]=i[o]||[],i[o].push(n)}}),A(i,function(n,o){var s=H(n,function(u){return u.get("nameMap")}),l=new wh(o,o,{nameMap:cf(s),nameProperty:n[0].get("nameProperty"),aspectScale:n[0].get("aspectScale")});l.zoomLimit=ee.apply(null,H(n,function(u){return u.get("scaleLimit")})),a.push(l),l.resize=Xb,l.resize(n[0],t),A(n,function(u){u.coordinateSystem=l,IB(l,u)})}),a},r.prototype.getFilledRegions=function(e,t,a,i){for(var n=(e||[]).slice(),o=Z(),s=0;s=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function NB(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,i=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){zB(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;i?(r.hierNode.prelim=i.hierNode.prelim+e(r,i),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else i&&(r.hierNode.prelim=i.hierNode.prelim+e(r,i));r.parentNode.hierNode.defaultAncestor=FB(r,i,r.parentNode.hierNode.defaultAncestor||a[0],e)}function BB(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function qb(r){return arguments.length?r:WB}function Xs(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function VB(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function zB(r){for(var e=r.children,t=e.length,a=0,i=0;--t>=0;){var n=e[t];n.hierNode.prelim+=a,n.hierNode.modifier+=a,i+=n.hierNode.change,a+=n.hierNode.shift+i}}function FB(r,e,t,a){if(e){for(var i=r,n=r,o=n.parentNode.children[0],s=e,l=i.hierNode.modifier,u=n.hierNode.modifier,h=o.hierNode.modifier,f=s.hierNode.modifier;s=zp(s),n=Fp(n),s&&n;){i=zp(i),o=Fp(o),i.hierNode.ancestor=r;var v=s.hierNode.prelim+f-n.hierNode.prelim-u+a(s,n);v>0&&(HB(GB(s,r,t),r,v),u+=v,l+=v),f+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=i.hierNode.modifier,h+=o.hierNode.modifier}s&&!zp(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),n&&!Fp(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-h,t=r)}return t}function zp(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Fp(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function GB(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function HB(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function WB(r,e){return r.parentNode===e.parentNode?1:2}var UB=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),YB=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UB},e.prototype.buildPath=function(t,a){var i=a.childPoints,n=i.length,o=a.parentPoint,s=i[0],l=i[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,h=u==="TB"||u==="BT"?0:1,f=1-h,v=F(a.forkPosition,1),c=[];c[h]=o[h],c[f]=o[f]+(l[f]-o[f])*v,t.moveTo(o[0],o[1]),t.lineTo(c[0],c[1]),t.moveTo(s[0],s[1]),c[h]=s[h],t.lineTo(c[0],c[1]),c[h]=l[h],t.lineTo(c[0],c[1]),t.lineTo(l[0],l[1]);for(var p=1;pm.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(Q(t).focus=I),$B(i,o,h,t,p,c,d,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var R=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);R&&R.hoverState===No||Zl(t.__edge,P)}})}function $B(r,e,t,a,i,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),h=r.get("layout"),f=r.getOrient(),v=r.get(["lineStyle","curveness"]),c=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new Wo({shape:Gp(h,f,v,i,i)})),dt(d,{shape:Gp(h,f,v,n,o)},r));else if(u==="polyline"&&h==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mt&&(t=i.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,i=a.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),Wp=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,i=t.length;al&&(l=f.depth)});var u=t.expandAndCollapse,h=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var v=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=v&&v.collapsed!=null?!v.collapsed:f.depth<=h}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,a,i){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Jt("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.type="series.tree",e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(It);function aV(r,e,t){for(var a=[r],i=[],n;n=a.pop();)if(i.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s=0;n--)t.push(i[n])}}function iV(r,e){r.eachSeriesByType("tree",function(t){nV(t,e)})}function nV(r,e){var t=VB(r,e);r.layoutInfo=t;var a=r.get("layout"),i=0,n=0,o=null;a==="radial"?(i=2*Math.PI,n=Math.min(t.height,t.width)/2,o=qb(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(i=t.width,n=t.height,o=qb());var s=r.getData().tree.root,l=s.children[0];if(l){OB(s),aV(l,NB,o),s.hierNode.modifier=-l.hierNode.prelim,$s(l,BB);var u=l,h=l,f=l;$s(l,function(_){var S=_.getLayout().x;Sh.getLayout().x&&(h=_),_.depth>f.depth&&(f=_)});var v=u===h?1:o(u,h)/2,c=v-u.getLayout().x,p=0,d=0,g=0,y=0;if(a==="radial")p=i/(h.getLayout().x+v+c),d=n/(f.depth-1||1),$s(l,function(_){g=(_.getLayout().x+c)*p,y=(_.depth-1)*d;var S=Xs(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=n/(h.getLayout().x+v+c),p=i/(f.depth-1||1),$s(l,function(_){y=(_.getLayout().x+c)*d,g=m==="LR"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=i/(h.getLayout().x+v+c),d=n/(f.depth-1||1),$s(l,function(_){g=(_.getLayout().x+c)*p,y=m==="TB"?(_.depth-1)*d:n-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function oV(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(i){var n=i.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(i.dataIndex,"style");V(s,o)})})}function sV(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=e.dataIndex,n=a.getData().tree,o=n.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,n=Vp(i,e);a.setCenter&&a.setCenter(n.center),a.setZoom&&a.setZoom(n.zoom)})})}function lV(r){r.registerChartView(XB),r.registerSeriesModel(rV),r.registerLayout(iV),r.registerVisual(oV),sV(r)}function Zs(r,e,t){if(r&<(e,r.type)>=0){var a=t.getData().tree.root,i=r.targetNode;if(typeof i=="string"&&(i=a.getNodeById(i)),i&&a.contains(i))return{node:i};var n=r.targetNodeId;if(n!=null&&(i=a.getNodeById(n)))return{node:i}}}function ew(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Up(r,e){var t=ew(r);return lt(t,e)>=0}function Yp(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var uV=function(){},rw=["treemapZoomToNode","treemapRender","treemapMove"];function hV(r){for(var e=0;e1;)n=n.parentNode;var o=lc(r.ecModel,n.name||n.dataIndex+"",a);i.setVisual("decal",o)})}var fV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var i={name:t.name,children:t.data};iw(i);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new xt({itemStyle:o},this,a);n=t.levels=vV(n,a);var l=H(n||[],function(f){return new xt(f,s,a)},this),u=Wp.createTree(i,this,h);function h(f){f.wrapMethod("getItemModel",function(v,c){var p=u.getNodeByDataIndex(c),d=l[p.depth];return v.parentModel=d||s,v})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,i){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return Jt("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Yp(i,this),a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=Z(),this._idIndexMapCount=0);var i=a.get(t);return i==null&&a.set(t,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){aw(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(It);function iw(r){var e=0;A(r.children,function(a){iw(a);var i=a.value;B(i)&&(i=i[0]),e+=i});var t=r.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(r.value)?r.value[0]=t:r.value=t}function vV(r,e){var t=Rt(e.get("color")),a=Rt(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var i,n;A(r,function(s){var l=new xt(s),u=l.get("color"),h=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||h&&h!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return i||(o.color=t.slice()),!n&&a&&(o.decal=a.slice()),r}}var cV=8,nw=8,Xp=5,pV=function(){function r(e){this.group=new q,e.add(this.group)}return r.prototype.render=function(e,t,a,i){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!a)){var s=n.getModel("itemStyle"),l=s.getModel("textStyle"),u={pos:{left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(a,u,l),this._renderContent(e,u,s,l,i),Tu(o,u.pos,u.box)}},r.prototype._prepare=function(e,t,a){for(var i=e;i;i=i.parentNode){var n=$t(i.getModel().get("name"),""),o=a.getTextRect(n),s=Math.max(o.width+cV*2,t.emptyItemWidth);t.totalWidth+=s+nw,t.renderList.push({node:i,text:n,width:s})}},r.prototype._renderContent=function(e,t,a,i,n){for(var o=0,s=t.emptyItemWidth,l=e.get(["breadcrumb","height"]),u=$I(t.pos,t.box),h=t.totalWidth,f=t.renderList,v=f.length-1;v>=0;v--){var c=f[v],p=c.node,d=c.width,g=c.text;h>u.width&&(h-=d-s,d=s,g=null);var y=new me({shape:{points:dV(o,0,d,l,v===f.length-1,v===0)},style:X(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new gt({style:{text:g,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:dn*1e4,onclick:j(n,p)});y.disableLabelAnimation=!0,this.group.add(y),gV(y,e,p),o+=d+nw}},r.prototype.remove=function(){this.group.removeAll()},r}();function dV(r,e,t,a,i,n){var o=[[i?r:r-Xp,e],[r+t,e],[r+t,e+a],[i?r:r-Xp,e+a]];return!n&&o.splice(2,0,[r+t+Xp,e+a/2]),!i&&o.push([r,e+a/2]),o}function gV(r,e,t){Q(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Yp(t,e)}}var yV=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,i,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:i,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,n=this._storage.length;isw||Math.abs(t.dy)>sw)){var a=this.seriesModel.getData().tree.root;if(!a)return;var i=a.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t.dx,y:i.y+t.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(t){var a=t.originX,i=t.originY;if(this._state!=="animating"){var n=this.seriesModel.getData().tree.root;if(!n)return;var o=n.getLayout();if(!o)return;var s=new ot(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;a-=l.x,i-=l.y;var u=ze();yr(u,u,[-a,-i]),If(u,u,[t.scale,t.scale]),yr(u,u,[a,i]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(i){if(a._state==="ready"){var n=a.seriesModel.get("nodeClick",!0);if(!!n){var o=a.findTarget(i.offsetX,i.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(n==="zoomToNode")a._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),h=l.get("target",!0)||"blank";u&&bu(u,h)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,i){var n=this;i||(i=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),i||(i={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new pV(this.group))).render(t,a,i.node,function(o){n._state!=="animating"&&(Up(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=qs(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,a){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Ct);function qs(){return{nodeGroup:[],background:[],content:[]}}function wV(r,e,t,a,i,n,o,s,l,u){if(!o)return;var h=o.getLayout(),f=r.getData(),v=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!h||!h.isInView)return;var c=h.width,p=h.height,d=h.borderWidth,g=h.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=h.upperHeight,x=_&&_.length,b=v.getModel("itemStyle"),w=v.getModel(["emphasis","itemStyle"]),T=v.getModel(["blur","itemStyle"]),C=v.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=K("nodeGroup",$p);if(!D)return;if(l.add(D),D.x=h.x||0,D.y=h.y||0,D.markRedraw(),Th(D).nodeWidth=c,Th(D).nodeHeight=p,h.isAboveViewRoot)return D;var L=K("background",ow,u,SV);L&&N(D,L,x&&h.upperLabelHeight);var I=v.get(["emphasis","focus"]),P=v.get(["emphasis","blurScope"]),R=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;if(x)ql(D)&&yn(D,!1),L&&(yn(L,!0),f.setItemGraphicEl(o.dataIndex,L),Nv(L,R,P));else{var k=K("content",ow,u,xV);k&&O(D,k),L&&ql(L)&&yn(L,!1),yn(D,!0),f.setItemGraphicEl(o.dataIndex,D),Nv(D,R,P)}return D;function N(ut,tt,bt){var it=Q(tt);if(it.dataIndex=o.dataIndex,it.seriesIndex=r.seriesIndex,tt.setShape({x:0,y:0,width:c,height:p,r:M}),g)G(tt);else{tt.invisible=!1;var Dt=o.getVisual("style"),Vt=Dt.stroke,Kt=hw(b);Kt.fill=Vt;var zt=Ui(w);zt.fill=w.get("borderColor");var le=Ui(T);le.fill=T.get("borderColor");var we=Ui(C);if(we.fill=C.get("borderColor"),bt){var ue=c-2*d;z(tt,Vt,Dt.opacity,{x:d,y:0,width:ue,height:S})}else tt.removeTextContent();tt.setStyle(Kt),tt.ensureState("emphasis").style=zt,tt.ensureState("blur").style=le,tt.ensureState("select").style=we,_i(tt)}ut.add(tt)}function O(ut,tt){var bt=Q(tt);bt.dataIndex=o.dataIndex,bt.seriesIndex=r.seriesIndex;var it=Math.max(c-2*d,0),Dt=Math.max(p-2*d,0);if(tt.culling=!0,tt.setShape({x:d,y:d,width:it,height:Dt,r:M}),g)G(tt);else{tt.invisible=!1;var Vt=o.getVisual("style"),Kt=Vt.fill,zt=hw(b);zt.fill=Kt,zt.decal=Vt.decal;var le=Ui(w),we=Ui(T),ue=Ui(C);z(tt,Kt,Vt.opacity,null),tt.setStyle(zt),tt.ensureState("emphasis").style=le,tt.ensureState("blur").style=we,tt.ensureState("select").style=ue,_i(tt)}ut.add(tt)}function G(ut){!ut.invisible&&n.push(ut)}function z(ut,tt,bt,it){var Dt=v.getModel(it?uw:lw),Vt=$t(v.get("name"),null),Kt=Dt.getShallow("show");fe(ut,ne(v,it?uw:lw),{defaultText:Kt?Vt:null,inheritColor:tt,defaultOpacity:bt,labelFetcher:r,labelDataIndex:o.dataIndex});var zt=ut.getTextContent(),le=zt.style,we=yf(le.padding||0);it&&(ut.setTextConfig({layoutRect:it}),zt.disableLabelLayout=!0),zt.beforeUpdate=function(){var Vr=Math.max((it?it.width:ut.shape.width)-we[1]-we[3],0),za=Math.max((it?it.height:ut.shape.height)-we[0]-we[2],0);(le.width!==Vr||le.height!==za)&&zt.setStyle({width:Vr,height:za})},le.truncateMinChar=2,le.lineOverflow="truncate",W(le,it,h);var ue=zt.getState("emphasis");W(ue?ue.style:null,it,h)}function W(ut,tt,bt){var it=ut?ut.text:null;if(!tt&&bt.isLeafRoot&&it!=null){var Dt=r.get("drillDownIcon",!0);ut.text=Dt?Dt+" "+it:it}}function K(ut,tt,bt,it){var Dt=m!=null&&t[ut][m],Vt=i[ut];return Dt?(t[ut][m]=null,_t(Vt,Dt)):g||(Dt=new tt,Dt instanceof Sr&&(Dt.z2=TV(bt,it)),mt(Vt,Dt)),e[ut][y]=Dt}function _t(ut,tt){var bt=ut[y]={};tt instanceof $p?(bt.oldX=tt.x,bt.oldY=tt.y):bt.oldShape=V({},tt.shape)}function mt(ut,tt){var bt=ut[y]={},it=o.parentNode,Dt=tt instanceof q;if(it&&(!a||a.direction==="drillDown")){var Vt=0,Kt=0,zt=i.background[it.getRawIndex()];!a&&zt&&zt.oldShape&&(Vt=zt.oldShape.width,Kt=zt.oldShape.height),Dt?(bt.oldX=0,bt.oldY=Kt):bt.oldShape={x:Vt,y:Kt,width:0,height:0}}bt.fadein=!Dt}}function TV(r,e){return r*_V+e}var Ks=A,AV=J,Ah=-1,jt=function(){function r(e){var t=e.mappingMethod,a=e.type,i=this.option=$(e);this.type=a,this.mappingMethod=t,this._normalizeData=MV[t];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(Zp(i),CV(i)):t==="category"?i.categories?DV(i):Zp(i,!0):(de(t!=="linear"||i.dataExtent),Zp(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return St(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){J(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var i,n=B(e)?[]:J(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},a;return e&&Ks(r.visualHandlers,function(i,n){e.hasOwnProperty(n)&&(t[n]=e[n],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(AV(e)){var t=[];Ks(e,function(a,i){t.push(i)}),e=t}else return[];return e.sort(function(a,i){return i==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var i,n=Infinity,o=0,s=t.length;o=0;n--)a[n]==null&&(delete t[e[n]],e.pop())}function Zp(r,e){var t=r.visual,a=[];J(t)?Ks(t,function(n){a.push(n)}):t!=null&&a.push(t);var i={color:1,symbol:1};!e&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),vw(r,a)}function Ch(r){return{applyVisual:function(e,t,a){var i=this.mapValueToVisual(e);a("color",r(t("color"),i))},_normalizedToVisual:qp([0,1])}}function fw(r){var e=this.option.visual;return e[Math.round(Tt(r,[0,1],[0,e.length-1],!0))]||{}}function Qs(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Js(r){var e=this.option.visual;return e[this.option.loop&&r!==Ah?r%e.length:r]}function Yi(){return this.option.visual[0]}function qp(r){return{linear:function(e){return Tt(e,r,this.option.visual,!0)},category:Js,piecewise:function(e,t){var a=Kp.call(this,t);return a==null&&(a=Tt(e,r,this.option.visual,!0)),a},fixed:Yi}}function Kp(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=jt.findPieceIndex(r,t),i=t[a];if(i&&i.visual)return i.visual[this.type]}}function vw(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=H(e,function(t){return Ge(t)})),e}var MV={linear:function(r){return Tt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=jt.findPieceIndex(r,e,!0);if(t!=null)return Tt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?Ah:e},fixed:nr};function Dh(r,e,t){return r?e<=t:e=t.length||d===t[d.depth]){var y=kV(i,l,d,g,p,a);pw(d,y,t,a)}})}}}function PV(r,e,t){var a=V({},e),i=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(n){i[n]=e[n];var o=r.get(n);i[n]=null,o!=null&&(a[n]=o)}),a}function dw(r){var e=Qp(r,"color");if(e){var t=Qp(r,"colorAlpha"),a=Qp(r,"colorSaturation");return a&&(e=go(e,null,null,a)),t&&(e=Tl(e,t)),e}}function RV(r,e){return e!=null?go(e,null,null,r):null}function Qp(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function EV(r,e,t,a,i,n){if(!(!n||!n.length)){var o=Jp(e,"color")||i.color!=null&&i.color!=="none"&&(Jp(e,"colorAlpha")||Jp(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var h=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(h==="index"||h==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var v=new jt(f);return cw(v).drColorMappingBy=h,v}}}function Jp(r,e){var t=r.get(e);return B(t)&&t.length?{name:e,range:t}:null}function kV(r,e,t,a,i,n){var o=V({},e);if(i){var s=i.type,l=s==="color"&&cw(i).drColorMappingBy,u=l==="index"?a:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var js=Math.max,Mh=Math.min,gw=ee,jp=A,yw=["itemStyle","borderWidth"],OV=["itemStyle","gapWidth"],NV=["upperLabel","show"],BV=["upperLabel","height"],VV={seriesType:"treemap",reset:function(r,e,t,a){var i=t.getWidth(),n=t.getHeight(),o=r.option,s=qt(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=F(gw(s.width,l[0]),i),h=F(gw(s.height,l[1]),n),f=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Zs(a,v,r),p=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),g=ew(d);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?UV(r,c,d,u,h):p?[p.width,p.height]:[u,h],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),mw(d,_,!1,0),S=d.getLayout(),jp(g,function(b,w){var T=(g[w+1]||d).getValue();b.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var x=r.getData().tree.root;x.setLayout(YV(s,p,c),!0),r.setLayoutInfo(s),Sw(x,new ot(-s.x,-s.y,i,n),g,d,0)}};function mw(r,e,t,a){var i,n;if(!r.isRemoved()){var o=r.getLayout();i=o.width,n=o.height;var s=r.getModel(),l=s.get(yw),u=s.get(OV)/2,h=xw(s),f=Math.max(l,h),v=l-u,c=f-u;r.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:h},!0),i=js(i-2*v,0),n=js(n-v-c,0);var p=i*n,d=zV(r,s,p,e,t,a);if(!!d.length){var g={x:v,y:c,width:i,height:n},y=Mh(i,n),m=Infinity,_=[];_.area=0;for(var S=0,x=d.length;S=0;l--){var u=i[a==="asc"?o-l-1:l].getValue();u/t*es[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function WV(r,e,t){for(var a=0,i=Infinity,n=0,o=void 0,s=r.length;na&&(a=o));var l=r.area*r.area,u=e*e*t;return l?js(u*a/l,l/(u*i)):Infinity}function _w(r,e,t,a,i){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],h=e?r.area/e:0;(i||h>t[l[o]])&&(h=t[l[o]]);for(var f=0,v=r.length;fem&&(u=em),n=s}ua&&(a=e);var n=a%2?a+2:a+3;i=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var T=-Math.atan2(S[1],S[0]);f[0].8?"left":v[0]<-.8?"right":"center",d=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":n.x=-v[0]*y+h[0],n.y=-v[1]*m+h[1],p=v[0]>.8?"right":v[0]<-.8?"left":"center",d=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=y*w+h[0],n.y=h[1]+C,p=S[0]<0?"right":"left",n.originX=-y*w,n.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+C,p="center",n.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-y*w+f[0],n.y=f[1]+C,p=S[0]>=0?"right":"left",n.originX=y*w,n.originY=-C;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||p})}},e}(q),ud=function(){function r(e){this.group=new q,this._LineCtor=e||ld}return r.prototype.isPersistent=function(){return!0},r.prototype.updateData=function(e){var t=this,a=this,i=a.group,n=a._lineData;a._lineData=e,n||i.removeAll();var o=Rw(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Rw(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){function a(s){!s.isGroup&&!u5(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0}function Rw(r){var e=r.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:ne(e)}}function Ew(r){return isNaN(r[0])||isNaN(r[1])}function hd(r){return!Ew(r[0])&&!Ew(r[1])}var fd=[],vd=[],cd=[],Xn=ie,pd=Ya,kw=Math.abs;function Ow(r,e,t){for(var a=r[0],i=r[1],n=r[2],o=Infinity,s,l=t*t,u=.1,h=.1;h<=.9;h+=.1){fd[0]=Xn(a[0],i[0],n[0],h),fd[1]=Xn(a[1],i[1],n[1],h);var f=kw(pd(fd,e)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function dd(r,e){var t=[],a=Po,i=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),h=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Hr(u[0]),Hr(u[1])],u[2]&&u.__original.push(Hr(u[2])));var v=u.__original;if(u[2]!=null){if(ge(i[0],v[0]),ge(i[1],v[2]),ge(i[2],v[1]),h&&h!=="none"){var c=rl(s.node1),p=Ow(i,v[0],c*e);a(i[0][0],i[1][0],i[2][0],p,t),i[0][0]=t[3],i[1][0]=t[4],a(i[0][1],i[1][1],i[2][1],p,t),i[0][1]=t[3],i[1][1]=t[4]}if(f&&f!=="none"){var c=rl(s.node2),p=Ow(i,v[1],c*e);a(i[0][0],i[1][0],i[2][0],p,t),i[1][0]=t[1],i[2][0]=t[2],a(i[0][1],i[1][1],i[2][1],p,t),i[1][1]=t[1],i[2][1]=t[2]}ge(u[0],i[0]),ge(u[1],i[2]),ge(u[2],i[1])}else{if(ge(n[0],v[0]),ge(n[1],v[1]),Ua(o,n[1],n[0]),fo(o,o),h&&h!=="none"){var c=rl(s.node1);mf(n[0],n[0],o,c*e)}if(f&&f!=="none"){var c=rl(s.node2);mf(n[1],n[1],o,-c*e)}ge(u[0],n[0]),ge(u[1],n[1])}})}function Nw(r){return r.type==="view"}var h5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var i=new Vs,n=new ud,o=this.group;this._controller=new Ys(a.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,a,i){var n=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(Nw(o)){var h={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(h):dt(u,h,t)}dd(t.getGraph(),el(t));var f=t.getData();s.updateData(f);var v=t.getEdgeData();l.updateData(v),this._updateNodeAndLinkScale(),this._updateController(t,a,i),clearTimeout(this._layoutTimeout);var c=t.forceLayout,p=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,p),f.graph.eachNode(function(m){var _=m.dataIndex,S=m.getGraphicEl(),x=m.getModel();S.off("drag").off("dragend");var b=x.get("draggable");b&&S.on("drag",function(){c&&(c.warmUp(),!n._layouting&&n._startForceLayoutIteration(c,p),c.setFixed(_),f.setItemLayout(_,[S.x,S.y]))}).on("dragend",function(){c&&c.setUnfixed(_)}),S.setDraggable(b&&!!c);var w=x.get(["emphasis","focus"]);w==="adjacency"&&(Q(S).focus=m.getAdjacentDataIndices())}),f.graph.eachEdge(function(m){var _=m.getGraphicEl(),S=m.getModel().get(["emphasis","focus"]);S==="adjacency"&&(Q(_).focus={edge:[m.dataIndex],node:[m.node1.dataIndex,m.node2.dataIndex]})});var d=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),g=f.getLayout("cx"),y=f.getLayout("cy");f.eachItemGraphicEl(function(m,_){var S=f.getItemModel(_),x=S.get(["label","rotate"])||0,b=m.getSymbolPath();if(d){var w=f.getItemLayout(_),T=Math.atan2(w[1]-y,w[0]-g);T<0&&(T=Math.PI*2+T);var C=w[0]=0&&e.call(t,a[n],n)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,i=a.length,n=0;n=0&&a[n].node1.dataIndex>=0&&a[n].node2.dataIndex>=0&&e.call(t,a[n],n)},r.prototype.breadthFirstTraverse=function(e,t,a,i){if(t instanceof Xi||(t=this._nodesMap[$n(t)]),!!t){for(var n=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var n=0,o=i.length;n=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}Ht(Xi,Vw("hostGraph","data")),Ht(Bw,Vw("hostGraph","edgeData"));function zw(r,e,t,a,i){for(var n=new f5(a),o=0;o "+v)),u++)}var c=t.get("coordinateSystem"),p;if(c==="cartesian2d"||c==="polar")p=Jr(r,t);else{var d=as.get(c),g=d?d.dimensions||[]:[];lt(g,"value")<0&&g.concat(["value"]);var y=Ls(r,{coordDimensions:g});p=new xe(y,t),p.initData(r)}var m=new xe(["value"],t);return m.initData(l,s),i&&i(p,m),jb({mainData:p,struct:n,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var v5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function i(){return a._categoriesData}this.legendVisualProvider=new Hs(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),ii(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var i=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&i){JV(this);var s=zw(n,i,this,!0,l);return A(s.edges,function(u){jV(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,h){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=xt.prototype.getModel;function v(p,d){var g=f.call(this,p,d);return g.resolveParentPath=c,g}h.wrapMethod("getItemModel",function(p){return p.resolveParentPath=c,p.getModel=v,p});function c(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,a,i){if(i==="edge"){var n=this.getData(),o=this.getDataParams(t,i),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),h=[];return l!=null&&h.push(l),u!=null&&h.push(u),Jt("nameValue",{name:h.join(" > "),value:o.value,noValue:o.value==null})}var f=r1({series:this,dataIndex:t,multipleSeries:a});return f},e.prototype._updateCategoriesData=function(){var t=H(this.option.categories||[],function(i){return i.value!=null?i:V({value:0},i)}),a=new xe(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(i){return a.getItemModel(i)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(It),c5={type:"graphRoam",event:"graphRoam",update:"none"};function p5(r){r.registerChartView(h5),r.registerSeriesModel(v5),r.registerProcessor($V),r.registerVisual(ZV),r.registerVisual(qV),r.registerLayout(t5),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,r5),r.registerLayout(i5),r.registerCoordinateSystem("graphView",{dimensions:Un.dimensions,create:o5}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){}),r.registerAction(c5,function(e,t){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,n=Vp(i,e);a.setCenter&&a.setCenter(n.center),a.setZoom&&a.setZoom(n.zoom)})})}var d5=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),g5=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new d5},e.prototype.buildPath=function(t,a){var i=Math.cos,n=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-i(l)*s*(s>=o/3?1:2),h=a.y-n(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,h),t.lineTo(a.x+i(l)*s,a.y+n(l)*s),t.lineTo(a.x+i(a.angle)*o,a.y+n(a.angle)*o),t.lineTo(a.x-i(l)*s,a.y-n(l)*s),t.lineTo(u,h)},e}(ct);function y5(r,e){var t=r.get("center"),a=e.getWidth(),i=e.getHeight(),n=Math.min(a,i),o=F(t[0],e.getWidth()),s=F(t[1],e.getHeight()),l=F(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function Ph(r,e){var t=r==null?"":r+"";return e&&(typeof e=="string"?t=e.replace("{value}",t):typeof e=="function"&&(t=e(r))),t}var gd=Math.PI*2,m5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=y5(t,i);this._renderMain(t,a,i,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,i,n,o){for(var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=-t.get("endAngle")/180*Math.PI,f=t.getModel("axisLine"),v=f.get("roundCap"),c=v?Sp:De,p=f.get("show"),d=f.getModel("lineStyle"),g=d.get("width"),y=!((h-u)%gd)&&h!==u?gd:(h-u)%gd,m=u,_=0;p&&_=T&&(C===0?0:n[C-1][0]).8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0}))}if(m.get("show")&&k!==S){var N=m.get("distance");N=N?N+h:h;for(var W=0;W<=x;W++){P=Math.cos(T),R=Math.sin(T);var K=new Qt({shape:{x1:P*(p-N)+v,y1:R*(p-N)+c,x2:P*(p-w-N)+v,y2:R*(p-w-N)+c},silent:!0,style:L});L.stroke==="auto"&&K.setStyle({stroke:n((k+W/x)/S)}),f.add(K),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,i,n,o,s,l,u,h){var f=this.group,v=this._data,c=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),x=+t.get("max"),b=[S,x],w=[s,l];function T(M,D){var L=m.getItemModel(M),I=L.getModel("pointer"),P=F(I.get("width"),o.r),R=F(I.get("length"),o.r),k=t.get(["pointer","icon"]),N=I.get("offsetCenter"),O=F(N[0],o.r),G=F(N[1],o.r),z=I.get("keepAspect"),W;return k?W=Yt(k,O-P/2,G-R,P,R,null,z):W=new g5({shape:{angle:-Math.PI/2,width:P,r:R,x:O,y:G}}),W.rotation=-(D+Math.PI/2),W.x=o.cx,W.y=o.cy,W}function C(M,D){var L=g.get("roundCap"),I=L?Sp:De,P=g.get("overlap"),R=P?g.get("width"):h/m.count(),k=P?o.r-R:o.r-(M+1)*R,N=P?o.r:o.r-M*R,O=new I({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:k,r:N}});return P&&(O.z2=x-m.get(_,M)%x),O}(y||d)&&(m.diff(v).add(function(M){if(d){var D=T(M,s);Nt(D,{rotation:-(Tt(m.get(_,M),b,w,!0)+Math.PI/2)},t),f.add(D),m.setItemGraphicEl(M,D)}if(y){var L=C(M,s),I=g.get("clip");Nt(L,{shape:{endAngle:Tt(m.get(_,M),b,w,I)}},t),f.add(L),p[M]=L}}).update(function(M,D){if(d){var L=v.getItemGraphicEl(D),I=L?L.rotation:s,P=T(M,I);P.rotation=I,dt(P,{rotation:-(Tt(m.get(_,M),b,w,!0)+Math.PI/2)},t),f.add(P),m.setItemGraphicEl(M,P)}if(y){var R=c[D],k=R?R.shape.endAngle:s,N=C(M,k),O=g.get("clip");dt(N,{shape:{endAngle:Tt(m.get(_,M),b,w,O)}},t),f.add(N),p[M]=N}}).execute(),m.each(function(M){var D=m.getItemModel(M),L=D.getModel("emphasis");if(d){var I=m.getItemGraphicEl(M),P=m.getItemVisual(M,"style"),R=P.fill;if(I instanceof Zt){var k=I.style;I.useStyle(V({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},P))}else I.useStyle(P),I.type!=="pointer"&&I.setColor(R);I.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),I.style.fill==="auto"&&I.setStyle("fill",n(Tt(m.get(_,M),b,[0,1],!0))),I.z2EmphasisLift=0,oe(I,D),Lt(I,L.get("focus"),L.get("blurScope"))}if(y){var N=p[M];N.useStyle(m.getItemVisual(M,"style")),N.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),N.z2EmphasisLift=0,oe(N,D),Lt(N,L.get("focus"),L.get("blurScope"))}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var i=t.getModel("anchor"),n=i.get("show");if(n){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),h=Yt(s,a.cx-o/2+F(l[0],a.r),a.cy-o/2+F(l[1],a.r),o,o,null,u);h.z2=i.get("showAbove")?1:0,h.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(h)}},e.prototype._renderTitleAndDetail=function(t,a,i,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),h=+t.get("min"),f=+t.get("max"),v=new q,c=[],p=[],d=t.isAnimationEnabled();l.diff(this._data).add(function(g){c[g]=new gt({silent:!0}),p[g]=new gt({silent:!0})}).update(function(g,y){c[g]=s._titleEls[y],p[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),m=l.get(u,g),_=new q,S=n(Tt(m,[h,f],[0,1],!0)),x=y.getModel("title");if(x.get("show")){var b=x.get("offsetCenter"),w=o.cx+F(b[0],o.r),T=o.cy+F(b[1],o.r),C=c[g];C.attr({style:Ft(x,{x:w,y:T,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:S})}),_.add(C)}var M=y.getModel("detail");if(M.get("show")){var D=M.get("offsetCenter"),L=o.cx+F(D[0],o.r),I=o.cy+F(D[1],o.r),P=F(M.get("width"),o.r),R=F(M.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:S,C=p[g],N=M.get("formatter");C.attr({style:Ft(M,{x:L,y:I,text:Ph(m,N),width:isNaN(P)?null:P,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:k})}),F0(C,{normal:M},m,function(G){return Ph(G,N)}),d&&G0(C,g,l,t,{getFormattedLabel:function(G,z,W,K,_t,mt){return Ph(mt?mt.interpolatedValue:m,N)}}),_.add(C)}v.add(_)}),this.group.add(v),this._titleEls=c,this._detailEls=p},e.type="gauge",e}(Ct),_5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t.useColorPaletteOnData=!0,t}return e.prototype.getInitialData=function(t,a){return Hn(this,["value"])},e.type="series.gauge",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(It);function S5(r){r.registerChartView(m5),r.registerSeriesModel(_5)}var x5=["itemStyle","opacity"],b5=function(r){E(e,r);function e(t,a){var i=r.call(this)||this,n=i,o=new Me,s=new gt;return n.setTextContent(s),i.setTextGuideLine(o),i.updateData(t,a,!0),i}return e.prototype.updateData=function(t,a,i){var n=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),h=s.get(x5);h=h==null?1:h,n.useStyle(t.getItemVisual(a,"style")),n.style.lineJoin="round",i?(n.setShape({points:l.points}),n.style.opacity=0,Nt(n,{style:{opacity:h}},o,a)):dt(n,{style:{opacity:h},shape:{points:l.points}},o,a),oe(n,s),this._updateLabel(t,a),Lt(this,u.get("focus"),u.get("blurScope"))},e.prototype._updateLabel=function(t,a){var i=this,n=this.getTextGuideLine(),o=i.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),h=u.label,f=t.getItemVisual(a,"style"),v=f.fill;fe(o,ne(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:f.opacity,defaultText:t.getName(a)},{normal:{align:h.textAlign,verticalAlign:h.verticalAlign}}),i.setTextConfig({local:!0,inside:!!h.inside,insideStroke:v,outsideFill:v});var c=h.linePoints;n.setShape({points:c}),i.textGuideLineConfig={anchor:c?new nt(c[0][0],c[0][1]):null},dt(o,{style:{x:h.x,y:h.y}},s,a),o.attr({rotation:h.rotation,originX:h.x,originY:h.y,z2:10}),Cc(i,Dc(l),{stroke:v})},e}(me),w5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new b5(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var h=o.getItemGraphicEl(u);h.updateData(n,l),s.add(h),n.setItemGraphicEl(l,h)}).remove(function(l){var u=o.getItemGraphicEl(l);Yo(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Ct),T5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.useColorPaletteOnData=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Hs(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return Hn(this,{coordDimensions:["value"],encodeDefaulter:j(ic,this)})},e.prototype._defaultLabelLine=function(t){ii(t,"labelLine",["show"]);var a=t.labelLine,i=t.emphasis.labelLine;a.show=a.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),i=r.prototype.getDataParams.call(this,t),n=a.mapDimension("value"),o=a.getSum(n);return i.percent=o?+(a.get(n,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(It);function A5(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function C5(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),i=[],n=e==="ascending",o=0,s=r.count();oH5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!md(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function md(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var Y5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&at(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var i=t.get("parallelIndex");return i!=null&&a.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],i=kt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);A(i,function(n){t.push("dim"+n.get("dim")),a.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(ht),X5=function(r){E(e,r);function e(t,a,i,n,o){var s=r.call(this,t,a,i)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(gr);function $i(r,e,t,a,i,n){r=r||0;var o=t[1]-t[0];if(i!=null&&(i=Zn(i,[0,o])),n!=null&&(n=Math.max(n,i!=null?i:0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Zn(s,[0,o]),i=n=Zn(s,[i,n]),a=0}e[0]=Zn(e[0],t),e[1]=Zn(e[1],t);var l=_d(e,a);e[a]+=r;var u=i||0,h=t.slice();l.sign<0?h[0]+=u:h[1]-=u,e[a]=Zn(e[a],h);var f;return f=_d(e,a),i!=null&&(f.sign!==l.sign||f.spann&&(e[1-a]=e[a]+f.sign*n),e}function _d(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Zn(r,e){return Math.min(e[1]!=null?e[1]:Infinity,Math.max(e[0]!=null?e[0]:-Infinity,r))}var Sd=A,Ww=Math.min,Uw=Math.max,Yw=Math.floor,$5=Math.ceil,Xw=ae,Z5=Math.PI,q5=function(){function r(e,t,a){this.type="parallel",this._axesMap=Z(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var i=e.dimensions,n=e.parallelAxisIndex;Sd(i,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),h=this._axesMap.set(o,new X5(o,oh(u),[0,0],u.get("type"),l)),f=h.type==="category";h.onBand=f&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,i=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=a&&o<=a+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(!!e.contains(a,t)){var i=a.getData();Sd(this.dimensions,function(n){var o=this._axesMap.get(n);o.scale.unionExtentFromData(i,i.mapDimension(n)),Fi(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=qt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],i=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,h=Rh(e.get("axisExpandWidth"),l),f=Rh(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>f&&f>1&&h>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=Rh(c[1]-c[0],l),c[1]=c[0]+p;else{p=Rh(h*(f-1),l);var d=e.get("axisExpandCenter")||Yw(u/2);c=[h*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var y=[Yw(Xw(c[0]/h,1))+1,$5(Xw(c[1]/h,1))-1],m=g/h*c[0];return{layout:n,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:h,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,i=this._makeLayoutInfo(),n=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),Sd(a,function(o,s){var l=(i.axisExpandable?Q5:K5)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},h={horizontal:Z5/2,vertical:0},f=[u[n].x+e.x,u[n].y+e.y],v=h[n],c=ze();qa(c,c,v),yr(c,c,f),this._axesLayout[o]={position:f,rotation:v,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,i){a==null&&(a=0),i==null&&(i=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(n.get(g).model)});for(var u=this.hasAxisBrushed(),h=a;hn*(1-f[0])?(u="jump",l=s-n*(1-f[2])):(l=s-n*f[1])>=0&&(l=s-n*(1-f[1]))<=0&&(l=0),l*=t.axisExpandWidth/h,l?$i(l,i,o,"all"):u="none";else{var c=i[1]-i[0],p=o[1]*s/c;i=[Uw(0,p-c/2)],i[1]=Ww(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r}();function Rh(r,e){return Ww(Uw(r,e[0]),e[1])}function K5(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function Q5(r,e){var t=e.layoutLength,a=e.axisExpandWidth,i=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,h;return r=0;i--)Ue(a[i])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var i=a[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var n=0,o=a.length;nrz}function tT(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function eT(r,e,t,a){var i=new q;return i.add(new pt({name:"main",style:Md(t),silent:!0,draggable:!0,cursor:"move",drift:j(iT,r,e,i,["n","s","w","e"]),ondragend:j(qi,e,{isEnd:!0})})),A(a,function(n){i.add(new pt({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:j(iT,r,e,i,n),ondragend:j(qi,e,{isEnd:!0})}))}),i}function rT(r,e,t,a){var i=a.brushStyle.lineWidth||0,n=qn(i,az),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,h=t[0][1],f=t[1][1],v=h-n+i/2,c=f-n+i/2,p=h-o,d=f-s,g=p+i,y=d+i;ra(r,e,"main",o,s,p,d),a.transformable&&(ra(r,e,"w",l,u,n,y),ra(r,e,"e",v,u,n,y),ra(r,e,"n",l,u,g,n),ra(r,e,"s",l,c,g,n),ra(r,e,"nw",l,u,n,n),ra(r,e,"ne",v,u,n,n),ra(r,e,"sw",l,c,n,n),ra(r,e,"se",v,c,n,n))}function Dd(r,e){var t=e.__brushOption,a=t.transformable,i=e.childAt(0);i.useStyle(Md(t)),i.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?Ld(r,n[0]):uz(r,n);o&&o.attr({silent:!a,invisible:!a,cursor:a?nz[s]+"-resize":null})})}function ra(r,e,t,a,i,n,o){var s=e.childOfName(t);s&&s.setShape(fz(Id(r,e,[[a,i],[a+n,i+o]])))}function Md(r){return X({strokeNoScale:!0},r.brushStyle)}function aT(r,e,t,a){var i=[al(r,t),al(e,a)],n=[qn(r,t),qn(e,a)];return[[i[0],n[0]],[i[1],n[1]]]}function lz(r){return wi(r.group)}function Ld(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},i=hu(t[e],lz(r));return a[i]}function uz(r,e){var t=[Ld(r,e[0]),Ld(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function iT(r,e,t,a,i,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=nT(e,i,n);A(a,function(u){var h=iz[u];s[h[0]][h[1]]+=l[h[0]]}),o.range=r.fromRectRange(aT(s[0][0],s[1][0],s[0][1],s[1][1])),wd(e,t),qi(e,{isEnd:!1})}function hz(r,e,t,a){var i=e.__brushOption.range,n=nT(r,t,a);A(i,function(o){o[0]+=n[0],o[1]+=n[1]}),wd(r,e),qi(r,{isEnd:!1})}function nT(r,e,t){var a=r.group,i=a.transformCoordToLocal(e,t),n=a.transformCoordToLocal(0,0);return[i[0]-n[0],i[1]-n[1]]}function Id(r,e,t){var a=jw(r,e);return a&&a!==Zi?a.clipPath(t,r._transform):$(t)}function fz(r){var e=al(r[0][0],r[1][0]),t=al(r[0][1],r[1][1]),a=qn(r[0][0],r[1][0]),i=qn(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:i-t}}function vz(r,e,t){if(!(!r._brushType||pz(r,e.offsetX,e.offsetY))){var a=r._zr,i=r._covers,n=Ad(r,e,t);if(!r._dragging)for(var o=0;oa.getWidth()||t<0||t>a.getHeight()}var Eh={lineX:uT(0),lineY:uT(1),rect:{createCover:function(r,e){function t(a){return a}return eT({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=tT(r);return aT(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){rT(r,e,t,a)},updateCommon:Dd,contain:Rd},polygon:{createCover:function(r,e){var t=new q;return t.add(new Me({name:"main",style:Md(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new me({name:"main",draggable:!0,drift:j(hz,r,e),ondragend:j(qi,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:Id(r,e,t)})},updateCommon:Dd,contain:Rd}};function uT(r){return{createCover:function(e,t){return eT({toRectRange:function(a){var i=[a,[0,100]];return r&&i.reverse(),i},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=tT(e),a=al(t[0][r],t[1][r]),i=qn(t[0][r],t[1][r]);return[a,i]},updateCoverShape:function(e,t,a,i){var n,o=jw(e,t);if(o!==Zi&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,n];r&&l.reverse(),rT(e,t,l,i)},updateCommon:Dd,contain:Rd}}function hT(r){return r=Ed(r),function(e){return R0(e,r)}}function fT(r,e){return r=Ed(r),function(t){var a=e!=null?e:t,i=a?r.width:r.height,n=a?r.x:r.y;return[n,n+(i||0)]}}function vT(r,e,t){var a=Ed(r);return function(i,n){return a.contain(n[0],n[1])&&!xh(i,e,t)}}function Ed(r){return ot.create(r)}var dz=["axisLine","axisTickLabel","axisName"],gz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new bd(a.getZr())).on("brush",U(this._onBrush,this))},e.prototype.render=function(t,a,i,n){if(!yz(t,a,n)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new q,this.group.add(this._axisGroup),!!t.get("show")){var s=_z(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),h=u.width,f=t.axis.dim,v=l.getAxisLayout(f),c=V({strokeContainThreshold:h},v),p=new be(t,c);A(dz,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,h,i),Xo(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,i,n,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,Math.abs(u)*.1),f=ot.create({x:l[0],y:-o/2,width:u,height:o});f.x-=h,f.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:hT(f),isTargetByCursor:vT(f,s,n),getLinearBrushOtherExtent:fT(f,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(mz(i))},e.prototype._onBrush=function(t){var a=t.areas,i=this.axisModel,n=i.axis,o=H(a,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Et);function yz(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function mz(r){var e=r.axis;return H(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function _z(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Sz={type:"axisAreaSelect",event:"axisAreaSelected"};function xz(r){r.registerAction(Sz,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var bz={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function cT(r){r.registerComponentView(W5),r.registerComponentModel(Y5),r.registerCoordinateSystem("parallel",j5),r.registerPreprocessor(z5),r.registerComponentModel(xd),r.registerComponentView(gz),Wn(r,"parallel",xd,bz),xz(r)}function wz(r){st(cT),r.registerChartView(P5),r.registerSeriesModel(k5),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,V5)}var Tz=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),Az=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new Tz},e.prototype.buildPath=function(t,a){var i=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+i,a.y2),t.bezierCurveTo(a.cpx2+i,a.cpy2,a.cpx1+i,a.cpy1,a.x1+i,a.y1)):(t.lineTo(a.x2,a.y2+i),t.bezierCurveTo(a.cpx2,a.cpy2+i,a.cpx1,a.cpy1+i,a.x1,a.y1+i)),t.closePath()},e.prototype.highlight=function(){Cr(this)},e.prototype.downplay=function(){Dr(this)},e}(ct),Cz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,a,i){var n=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,h=l.height,f=t.getData(),v=t.getData("edge"),c=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new Az,g=Q(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),x=p.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),M=C.get("localX"),D=C.get("localY"),L=p.getLayout(),I,P,R,k,N,O,G,z;switch(d.shape.extent=Math.max(1,L.dy),d.shape.orient=c,c==="vertical"?(I=(b!=null?b*u:S.x)+L.sy,P=(w!=null?w*h:S.y)+S.dy,R=(M!=null?M*u:T.x)+L.ty,k=D!=null?D*h:T.y,N=I,O=P*(1-_)+k*_,G=R,z=P*_+k*(1-_)):(I=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*h:S.y)+L.sy,R=M!=null?M*u:T.x,k=(D!=null?D*h:T.y)+L.ty,N=I*(1-_)+R*_,O=P,G=I*_+R*(1-_),z=k),d.setShape({x1:I,y1:P,x2:R,y2:k,cpx1:N,cpy1:O,cpx2:G,cpy2:z}),d.useStyle(m.getItemStyle()),d.style.fill){case"source":d.style.fill=p.node1.getVisual("color"),d.style.decal=p.node1.getVisual("style").decal;break;case"target":d.style.fill=p.node2.getVisual("color"),d.style.decal=p.node2.getVisual("style").decal;break;case"gradient":var W=p.node1.getVisual("color"),K=p.node2.getVisual("color");typeof W=="string"&&typeof K=="string"&&(d.style.fill=new Uo(0,0,1,0,[{color:W,offset:0},{color:K,offset:1}]))}var _t=y.getModel("emphasis");oe(d,y,"lineStyle",function(ut){return ut.getItemStyle()}),s.add(d),v.setItemGraphicEl(p.dataIndex,d);var mt=_t.get("focus");Lt(d,mt==="adjacency"?p.getAdjacentDataIndices():mt,_t.get("blurScope")),Q(d).dataType="edge"}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new pt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*h:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});fe(S,ne(g),{labelFetcher:t,labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),oe(S,g),s.add(S),f.setItemGraphicEl(p.dataIndex,S),Q(S).dataType="node";var x=_.get("focus");Lt(S,x==="adjacency"?p.getAdjacentDataIndices():x,_.get("blurScope"))}),f.eachItemGraphicEl(function(p,d){var g=f.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){n._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/h})},p.ondragend=function(){n._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Dz(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Ct);function Dz(r,e,t){var a=new pt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Nt(a,{shape:{width:r.width+20}},e,t),a}var Mz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var i=t.edges||t.links,n=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new xt(o[l],this,a));if(n&&i){var u=zw(n,i,this,!0,h);return u.data}function h(f,v){f.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(c.parentModel=m)}return c}),v.wrapMethod("getItemModel",function(c,p){var d=c.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(c.parentModel=_)}return c})}},e.prototype.setNodePosition=function(t,a){var i=this.option.data[t];i.localX=a[0],i.localY=a[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,i){function n(c){return isNaN(c)||c==null}if(i==="edge"){var o=this.getDataParams(t,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Jt("nameValue",{name:u,value:l,noValue:n(l)})}else{var h=this.getGraph().getNodeByIndex(t),f=h.getLayout().value,v=this.getDataParams(t,i).data.name;return Jt("nameValue",{name:v!=null?v+"":null,value:f,noValue:n(f)})}},e.prototype.optionUpdated=function(){this.option},e.prototype.getDataParams=function(t,a){var i=r.prototype.getDataParams.call(this,t,a);if(i.value==null&&a==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;i.value=o}return i},e.type="series.sankey",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(It);function Lz(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),i=t.get("nodeGap"),n=Iz(t,e);t.layoutInfo=n;var o=n.width,s=n.height,l=t.getGraph(),u=l.nodes,h=l.edges;Rz(u);var f=kt(u,function(d){return d.getLayout().value===0}),v=f.length!==0?0:t.get("layoutIterations"),c=t.get("orient"),p=t.get("nodeAlign");Pz(u,h,a,i,o,s,v,c,p)})}function Iz(r,e){return qt(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Pz(r,e,t,a,i,n,o,s,l){Ez(r,e,t,i,n,s,l),Bz(r,e,n,i,a,o,s),Xz(r,s)}function Rz(r){A(r,function(e){var t=ka(e.outEdges,kh),a=ka(e.inEdges,kh),i=e.getValue()||0,n=Math.max(t,a,i);e.setLayout({value:n},!0)})}function Ez(r,e,t,a,i,n,o){for(var s=[],l=[],u=[],h=[],f=0,v=0;v=0;y&&g.depth>c&&(c=g.depth),d.setLayout({depth:y?g.depth:f},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;mf-1?c:f-1;o&&o!=="left"&&kz(r,o,n,w);var T=n==="vertical"?(i-t)/w:(a-t)/w;Nz(r,T,n)}function pT(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function kz(r,e,t,a){if(e==="right"){for(var i=[],n=r,o=0;n.length;){for(var s=0;s0;n--)l*=.99,Fz(s,l,o),kd(s,i,t,a,o),Yz(s,l,o),kd(s,i,t,a,o)}function Vz(r,e){var t=[],a=e==="vertical"?"y":"x",i=uv(r,function(n){return n.getLayout()[a]});return i.keys.sort(function(n,o){return n-o}),A(i.keys,function(n){t.push(i.buckets.get(n))}),t}function zz(r,e,t,a,i,n){var o=Infinity;A(r,function(s){var l=s.length,u=0;A(s,function(f){u+=f.getLayout().value});var h=n==="vertical"?(a-(l-1)*i)/u:(t-(l-1)*i)/u;h0&&(s=l.getLayout()[n]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]+l.getLayout()[v]+e;var p=i==="vertical"?a:t;if(u=h-e-p,u>0){s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),h=s;for(var c=f-2;c>=0;--c)l=o[c],u=l.getLayout()[n]+l.getLayout()[v]+e-h,u>0&&(s=l.getLayout()[n]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),h=l.getLayout()[n]}})}function Fz(r,e,t){A(r.slice().reverse(),function(a){A(a,function(i){if(i.outEdges.length){var n=ka(i.outEdges,Gz,t)/ka(i.outEdges,kh);if(isNaN(n)){var o=i.outEdges.length;n=o?ka(i.outEdges,Hz,t)/o:0}if(t==="vertical"){var s=i.getLayout().x+(n-Ea(i,t))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(n-Ea(i,t))*e;i.setLayout({y:l},!0)}}})})}function Gz(r,e){return Ea(r.node2,e)*r.getValue()}function Hz(r,e){return Ea(r.node2,e)}function Wz(r,e){return Ea(r.node1,e)*r.getValue()}function Uz(r,e){return Ea(r.node1,e)}function Ea(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function kh(r){return r.getValue()}function ka(r,e,t){for(var a=0,i=r.length,n=-1;++nn&&(n=s)}),A(a,function(o){var s=new jt({type:"color",mappingMethod:"linear",dataExtent:[i,n],visual:e.get("color")}),l=s.mapValueToVisual(o.getLayout().value),u=o.getModel().get(["itemStyle","color"]);u!=null?(o.setVisual("color",u),o.setVisual("style",{fill:u})):(o.setVisual("color",l),o.setVisual("style",{fill:l}))})}})}function Zz(r){r.registerChartView(Cz),r.registerSeriesModel(Mz),r.registerLayout(Lz),r.registerVisual($z),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var dT=function(){function r(){}return r.prototype.getInitialData=function(e,t){var a,i=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=n.get("type"),l;o==="category"?(e.layout="horizontal",a=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",a=n.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],h=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[h],v=u[1-h],c=[i,n],p=c[h].get("type"),d=c[1-h].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,x){var b;B(S)?(b=S.slice(),S.unshift(x)):B(S.value)?(b=S.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:f,type:qu(p),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:qu(d),dimsDef:m.slice()}];return Hn(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:j(f_,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),gT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(It);Ht(gT,dT,!0);var qz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;n.diff(s).add(function(u){if(n.hasValue(u)){var h=n.getItemLayout(u),f=yT(h,n,u,l,!0);n.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,h){var f=s.getItemGraphicEl(h);if(!n.hasValue(u)){o.remove(f);return}var v=n.getItemLayout(u);f?mT(v,f,n,u):f=yT(v,n,u,l),o.add(f),n.setItemGraphicEl(u,f)}).remove(function(u){var h=s.getItemGraphicEl(u);h&&o.remove(h)}).execute(),this._data=n},e.prototype.remove=function(t){var a=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(n){n&&a.remove(n)})},e.type="boxplot",e}(Ct),Kz=function(){function r(){}return r}(),Qz=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new Kz},e.prototype.buildPath=function(t,a){var i=a.points,n=0;for(t.moveTo(i[n][0],i[n][1]),n++;n<4;n++)t.lineTo(i[n][0],i[n][1]);for(t.closePath();nd){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var nF={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==ve){var a="";yt(a)}var i=iF(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function oF(r){r.registerSeriesModel(gT),r.registerChartView(qz),r.registerVisual(jz),r.registerLayout(tF),r.registerTransform(nF)}var sF=["color","borderColor"],lF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,i){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,i,n){this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),i=this._data,n=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||n.removeAll(),a.diff(i).add(function(h){if(a.hasValue(h)){var f=a.getItemLayout(h);if(s&&_T(u,f))return;var v=Od(f,h,!0);Nt(v,{shape:{points:f.ends}},t,h),Nd(v,a,h,o),n.add(v),a.setItemGraphicEl(h,v)}}).update(function(h,f){var v=i.getItemGraphicEl(f);if(!a.hasValue(h)){n.remove(v);return}var c=a.getItemLayout(h);if(s&&_T(u,c)){n.remove(v);return}v?dt(v,{shape:{points:c.ends}},t,h):v=Od(c),Nd(v,a,h,o),n.add(v),a.setItemGraphicEl(h,v)}).remove(function(h){var f=i.getItemGraphicEl(h);f&&n.remove(f)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),xT(t,this.group);var a=t.get("clip",!0)?dh(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var i=a.getData(),n=i.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=i.getItemLayout(o),l=Od(s);Nd(l,i,o,n),l.incremental=!0,this.group.add(l)}},e.prototype._incrementalRenderLarge=function(t,a){xT(a,this.group,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Ct),uF=function(){function r(){}return r}(),hF=function(r){E(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new uF},e.prototype.buildPath=function(t,a){var i=a.points;this.__simpleBox?(t.moveTo(i[4][0],i[4][1]),t.lineTo(i[6][0],i[6][1])):(t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]),t.lineTo(i[3][0],i[3][1]),t.closePath(),t.moveTo(i[4][0],i[4][1]),t.lineTo(i[5][0],i[5][1]),t.moveTo(i[6][0],i[6][1]),t.lineTo(i[7][0],i[7][1]))},e}(ct);function Od(r,e,t){var a=r.ends;return new hF({shape:{points:t?fF(a,r):a},z2:100})}function _T(r,e){for(var t=!0,a=0;a0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]),n=t.getModel("itemStyle").getItemStyle(sF);e.useStyle(n),e.style.fill=null,e.style.stroke=i}var wT=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,i){var n=a.getItemLayout(t);return n&&i.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(It);Ht(wT,dT,!0);function cF(r){!r||!B(r.series)||A(r.series,function(e){J(e)&&e.type==="k"&&(e.type="candlestick")})}var pF=["itemStyle","borderColor"],dF=["itemStyle","borderColor0"],gF=["itemStyle","color"],yF=["itemStyle","color0"],mF={seriesType:"candlestick",plan:Ln(),performRawSeries:!0,reset:function(r,e){function t(n,o){return o.get(n>0?gF:yF)}function a(n,o){return o.get(n>0?pF:dF)}if(r.getData(),!e.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(n,o){for(var s;(s=n.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,h=l.getItemStyle();h.fill=t(u,l),h.stroke=a(u,l)||h.fill;var f=o.ensureUniqueItemVisual(s,"style");V(f,h)}}}}}},_F=typeof Float32Array!="undefined"?Float32Array:Array,SF={seriesType:"candlestick",plan:Ln(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=xF(r,t),i=0,n=1,o=["x","y"],s=t.mapDimension(o[i]),l=t.mapDimensionsAll(o[n]),u=l[0],h=l[1],f=l[2],v=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s==null||l.length<4)return;return{progress:r.pipelineContext.large?p:c};function c(d,g){for(var y;(y=d.next())!=null;){var m=g.get(s,y),_=g.get(u,y),S=g.get(h,y),x=g.get(f,y),b=g.get(v,y),w=Math.min(_,S),T=Math.max(_,S),C=P(w,m),M=P(T,m),D=P(x,m),L=P(b,m),I=[];R(I,M,0),R(I,C,1),I.push(N(L),N(M),N(D),N(C)),g.setItemLayout(y,{sign:TT(g,y,_,S,h),initBaseline:_>S?M[n]:C[n],ends:I,brushRect:k(x,b,m)})}function P(O,G){var z=[];return z[i]=G,z[n]=O,isNaN(G)||isNaN(O)?[NaN,NaN]:e.dataToPoint(z)}function R(O,G,z){var W=G.slice(),K=G.slice();W[i]=uu(W[i]+a/2,1,!1),K[i]=uu(K[i]-a/2,1,!0),z?O.push(W,K):O.push(K,W)}function k(O,G,z){var W=P(O,z),K=P(G,z);return W[i]-=a/2,K[i]-=a/2,{x:W[0],y:W[1],width:a,height:K[1]-W[1]}}function N(O){return O[i]=uu(O[i],1),O}}function p(d,g){for(var y=new _F(d.count*4),m=0,_,S=[],x=[],b;(b=d.next())!=null;){var w=g.get(s,b),T=g.get(u,b),C=g.get(h,b),M=g.get(f,b),D=g.get(v,b);if(isNaN(w)||isNaN(M)||isNaN(D)){y[m++]=NaN,m+=3;continue}y[m++]=TT(g,b,T,C,h),S[i]=w,S[n]=M,_=e.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[n]=D,_=e.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function TT(r,e,t,a,i){var n;return t>a?n=-1:t0?r.get(i,e-1)<=a?1:-1:1,n}function xF(r,e){var t=r.getBaseAxis(),a,i=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),n=F(vt(r.get("barMaxWidth"),i),i),o=F(vt(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?F(s,i):Math.max(Math.min(i/2,n),o)}function bF(r){r.registerChartView(lF),r.registerSeriesModel(wT),r.registerPreprocessor(cF),r.registerVisual(mF),r.registerLayout(SF)}var AT=3;function wF(r){return B(r)||(r=[+r,+r]),r}function CT(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var TF=function(r){E(e,r);function e(t,a){var i=r.call(this)||this,n=new Bs(t,a),o=new q;return i.add(n),i.add(o),i.updateData(t,a),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,i=t.color,n=this.childAt(1),o=0;o0&&(l=this._getLineLength(n)/h*1e3),(l!==this._period||u!==this._loop)&&(n.stopAnimation(),l>0)){var v=void 0;typeof f=="function"?v=f(i):v=f,n.__t>0&&(v=-l*n.__t),n.__t=0;var c=n.animate("",u).when(l,{__t:1}).delay(v).during(function(){o._updateSymbolPosition(n)});u||c.done(function(){o.remove(n)}),c.start()}this._period=l,this._loop=u}},e.prototype._getLineLength=function(t){return sa(t.__p1,t.__cp1)+sa(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,i){this.childAt(0).updateData(t,a,i),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,i=t.__p2,n=t.__cp1,o=t.__t,s=[t.x,t.y],l=s.slice(),u=ie,h=Sv;s[0]=u(a[0],n[0],i[0],o),s[1]=u(a[1],n[1],i[1],o);var f=h(a[0],n[0],i[0],o),v=h(a[1],n[1],i[1],o);t.rotation=-Math.atan2(v,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT=0&&!(n[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;la);l++);l=Math.min(l-1,o-2)}var h=(a-n[l])/(n[l+1]-n[l]),f=i[l],v=i[l+1];t.x=f[0]*(1-h)+h*v[0],t.y=f[1]*(1-h)+h*v[1];var c=v[0]-f[0],p=v[1]-f[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(DT),LF=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),LT=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new LF},e.prototype.buildPath=function(t,a){var i=a.segs,n=a.curveness;if(a.polyline)for(var o=0;o0){t.moveTo(i[o++],i[o++]);for(var l=1;l0){var c=(u+f)/2-(h-v)*n,p=(h+v)/2-(f-u)*n;t.quadraticCurveTo(c,p,f,v)}else t.lineTo(f,v)}},e.prototype.findDataIndex=function(t,a){var i=this.shape,n=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u0)for(var f=n[u++],v=n[u++],c=1;c0){var g=(f+p)/2-(v-d)*o,y=(v+d)/2-(p-f)*o;if(Om(f,v,g,y,p,d,s,t,a))return l}else if(ca(f,v,p,d,s,t,a))return l;l++}return-1},e}(ct),IF=function(){function r(){this.group=new q}return r.prototype.isPersistent=function(){return!this._incremental},r.prototype.updateData=function(e){this.group.removeAll();var t=new LT({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new nu({silent:!0})),this.group.add(this._incremental)):this._incremental=null},r.prototype.incrementalUpdate=function(e,t){var a=new LT;a.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(a,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(a,!0):(a.rectHover=!0,a.cursor="default",a.__startIndex=e.start,this.group.add(a))},r.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},r.prototype._setCommon=function(e,t,a){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var n=t.getVisual("style");if(n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null),!a){var o=Q(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.findDataIndex(s.offsetX,s.offsetY);l>0&&(o.dataIndex=l+e.__startIndex)})}},r.prototype._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()},r}(),IT={seriesType:"lines",plan:Ln(),reset:function(r){var e=r.coordinateSystem,t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(i,n){var o=[];if(a){var s=void 0,l=i.end-i.start;if(t){for(var u=0,h=i.start;h ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(It);function Oh(r){return r instanceof Array||(r=[r,r]),r}var OF={seriesType:"lines",reset:function(r){var e=Oh(r.get("symbol")),t=Oh(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function i(n,o){var s=n.getItemModel(o),l=Oh(s.getShallow("symbol",!0)),u=Oh(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?i:null}}};function NF(r){r.registerChartView(PF),r.registerSeriesModel(kF),r.registerLayout(IT),r.registerVisual(OF)}var BF=256,VF=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=rn();this.canvas=e}return r.prototype.update=function(e,t,a,i,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),h=this.pointSize+this.blurSize,f=this.canvas,v=f.getContext("2d"),c=e.length;f.width=t,f.height=a;for(var p=0;p0){var L=o(_)?l:u;_>0&&(_=_*M+T),x[b++]=L[D],x[b++]=L[D+1],x[b++]=L[D+2],x[b++]=L[D+3]*_*256}else b+=4}return v.putImageData(S,0,0),f},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=rn()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var i=e.getContext("2d");return i.clearRect(0,0,a,a),i.shadowOffsetX=a,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,i=a[t]||(a[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},r}();function zF(r,e,t){var a=r[1]-r[0];e=H(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var i=e.length,n=0;return function(o){var s;for(s=n;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s=e[0]&&a<=e[1]}}function RT(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var GF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this.group.removeAll(),this._incrementalDisplayable=null;var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,i,0,t.getData().count()):RT(o)&&this._renderOnGeo(o,t,n,i)},e.prototype.incrementalPrepareRender=function(t,a,i){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,i,n){var o=a.coordinateSystem;o&&(RT(o)?this.render(a,i,n):this._renderOnCartesianAndCalendar(a,n,t.start,t.end,!0))},e.prototype._renderOnCartesianAndCalendar=function(t,a,i,n,o){var s=t.coordinateSystem,l,u,h,f;if(ea(s,"cartesian2d")){var v=s.getAxis("x"),c=s.getAxis("y");l=v.getBandWidth(),u=c.getBandWidth(),h=v.scale.getExtent(),f=c.scale.getExtent()}for(var p=this.group,d=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),_=ne(t),S=t.get(["emphasis","focus"]),x=t.get(["emphasis","blurScope"]),b=ea(s,"cartesian2d")?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],w=i;wh[1]||Df[1])continue;var L=s.dataToPoint([M,D]);T=new pt({shape:{x:Math.floor(Math.round(L[0])-l/2),y:Math.floor(Math.round(L[1])-u/2),width:Math.ceil(l),height:Math.ceil(u)},style:C})}else{if(isNaN(d.get(b[1],w)))continue;T=new pt({z2:1,shape:s.dataToRect([d.get(b[0],w)]).contentShape,style:C})}var I=d.getItemModel(w);if(d.hasItemOption){var P=I.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=I.getModel(["blur","itemStyle"]).getItemStyle(),m=I.getModel(["select","itemStyle"]).getItemStyle(),S=P.get("focus"),x=P.get("blurScope"),_=ne(I)}var R=t.getRawValue(w),k="-";R&&R[2]!=null&&(k=R[2]+""),fe(T,_,{labelFetcher:t,labelDataIndex:w,defaultOpacity:C.opacity,defaultText:k}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=y,T.ensureState("select").style=m,Lt(T,S,x),T.incremental=o,o&&(T.states.emphasis.hoverLayer=!0),p.add(T),d.setItemGraphicEl(w,T)}},e.prototype._renderOnGeo=function(t,a,i,n){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new VF;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var h=t.getViewRect().clone(),f=t.getRoamTransform();h.applyTransform(f);var v=Math.max(h.x,0),c=Math.max(h.y,0),p=Math.min(h.width+h.x,n.getWidth()),d=Math.min(h.height+h.y,n.getHeight()),g=p-v,y=d-c,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=t.dataToPoint([w,T]);return M[0]-=v,M[1]-=c,M.push(C),M}),S=i.getExtent(),x=i.type==="visualMap.continuous"?FF(S,i.option.range):zF(S,i.getPieceList(),i.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new Zt({style:{width:g,height:y,x:v,y:c,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(Ct),HF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return Jr(this.getSource(),this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=as.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(It);function WF(r){r.registerChartView(GF),r.registerSeriesModel(HF)}var UF=["itemStyle","borderWidth"],ET=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Bd=new lr,YF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),h=u.isHorizontal(),f=l.master.getRect(),v={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:h,valueDim:ET[+h],categoryDim:ET[1-+h]};return o.diff(s).add(function(c){if(!!o.hasValue(c)){var p=FT(o,c),d=kT(o,c,p,v),g=GT(o,v,d);o.setItemGraphicEl(c,g),n.add(g),UT(g,v,d)}}).update(function(c,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(c)){n.remove(d);return}var g=FT(o,c),y=kT(o,c,g,v),m=WT(o,y);d&&m!==d.__pictorialShapeStr&&(n.remove(d),o.setItemGraphicEl(c,null),d=null),d?JF(d,v,y):d=GT(o,v,y,!0),o.setItemGraphicEl(c,d),d.__pictorialSymbolMeta=y,n.add(d),UT(d,v,y)}).remove(function(c){var p=s.getItemGraphicEl(c);p&&HT(s,c,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,a){var i=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){HT(n,Q(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Ct);function kT(r,e,t,a){var i=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,h=t.get("symbolPatternSize")||2,f=t.isAnimationEnabled(),v={dataIndex:e,layout:i,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:f?t:null,hoverScale:f&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};XF(t,n,i,a,v),$F(r,e,i,n,o,v.boundingLength,v.pxSign,h,a,v),ZF(t,v.symbolScale,u,a,v);var c=v.symbolSize,p=t.get("symbolOffset");return B(p)&&(p=[F(p[0],c[0]),F(p[1],c[1])]),qF(t,c,i,n,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,a,v),v}function XF(r,e,t,a,i){var n=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),h;if(B(o)){var f=[Vd(s,o[0])-l,Vd(s,o[1])-l];f[1]0?1:h<0?-1:0}function Vd(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function $F(r,e,t,a,i,n,o,s,l,u){var h=l.valueDim,f=l.categoryDim,v=Math.abs(t[f.wh]),c=r.getItemVisual(e,"symbolSize"),p;B(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[f.index]=F(p[f.index],v),p[h.index]=F(p[h.index],a?v:Math.abs(n)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[h.index]*=(l.isHorizontal?-1:1)*o}function ZF(r,e,t,a,i){var n=r.get(UF)||0;n&&(Bd.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Bd.updateTransform(),n/=Bd.getLineScale(),n*=e[a.valueDim.index]),i.valueLineWidth=n}function qF(r,e,t,a,i,n,o,s,l,u,h,f){var v=h.categoryDim,c=h.valueDim,p=f.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(a){var y=Math.abs(l),m=ee(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=F(m,e[c.index]),x=Math.max(d+S*2,0),b=_?0:S*2,w=om(a),T=w?a:YT((y+b)/x),C=y-T*d;S=C/2/(_?T:T-1),x=d+S*2,b=_?0:S*2,!w&&a!=="fixed"&&(T=u?YT((Math.abs(u)+b)/x):0),g=T*x-b,f.repeatTimes=T,f.symbolMargin=S}var M=p*(g/2),D=f.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,n&&(D[0]+=n[0],D[1]+=n[1]);var L=f.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var I=f.barRectShape=V({},t);I[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),I[v.wh]=t[v.wh];var P=f.clipShape={};P[v.xy]=-t[v.xy],P[v.wh]=h.ecSize[v.wh],P[c.xy]=0,P[c.wh]=t[c.wh]}function OT(r){var e=r.symbolPatternSize,t=Yt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function NT(r,e,t,a){var i=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,h=0,f=n[e.valueDim.index]+o+t.symbolMargin*2;for(zd(r,function(d){d.__pictorialAnimationIndex=h,d.__pictorialRepeatTimes=u,h0:y<0)&&(m=u-1-d),g[l.index]=f*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function BT(r,e,t,a){var i=r.__pictorialBundle,n=r.__pictorialMainPath;n?Kn(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(n=r.__pictorialMainPath=OT(t),i.add(n),Kn(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function VT(r,e,t){var a=V({},e.barRectShape),i=r.__pictorialBarRect;i?Kn(i,null,{shape:a},e,t):(i=r.__pictorialBarRect=new pt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.add(i))}function zT(r,e,t,a){if(t.symbolClip){var i=r.__pictorialClipPath,n=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)dt(i,{shape:n},s,l);else{n[o.wh]=0,i=new pt({shape:n}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],qo[a?"updateProps":"initProps"](i,{shape:u},s,l)}}}function FT(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=KF,t.isAnimationEnabled=QF,t}function KF(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function QF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function GT(r,e,t,a){var i=new q,n=new q;return i.add(n),i.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?NT(i,e,t):BT(i,e,t),VT(i,t,a),zT(i,e,t,a),i.__pictorialShapeStr=WT(r,t),i.__pictorialSymbolMeta=t,i}function JF(r,e,t){var a=t.animationModel,i=t.dataIndex,n=r.__pictorialBundle;dt(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,i),t.symbolRepeat?NT(r,e,t,!0):BT(r,e,t,!0),VT(r,t,!0),zT(r,e,t,!0)}function HT(r,e,t,a){var i=a.__pictorialBarRect;i&&i.removeTextContent();var n=[];zd(a,function(o){n.push(o)}),a.__pictorialMainPath&&n.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(n,function(o){ga(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function WT(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function zd(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Kn(r,e,t,a,i,n){e&&r.attr(e),a.symbolClip&&!i?t&&r.attr(t):t&&qo[i?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,n)}function UT(r,e,t){var a=t.dataIndex,i=t.itemModel,n=i.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),h=n.get("focus"),f=n.get("blurScope"),v=n.get("scale");zd(r,function(d){if(d instanceof Zt){var g=d.style;d.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;fe(p,ne(i),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:zn(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Lt(r,h,f)}function YT(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var jF=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ya(Fs.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Fs);function tG(r){r.registerChartView(YF),r.registerSeriesModel(jF),r.registerLayout(j(QS,"pictorialBar"))}var eG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,i){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),h=u.rect,f=u.boundaryGap;s.x=0,s.y=h.y+f[0];function v(g){return g.name}var c=new Ca(this._layersSeries||[],l,v,v),p=[];c.add(U(d,this,"add")).update(U(d,this,"update")).remove(U(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;Tn&&(n=s),a.push(s)}for(var u=0;un&&(n=f)}return{y0:i,max:n}}function oG(r){r.registerChartView(eG),r.registerSeriesModel(aG),r.registerLayout(iG),r.registerProcessor(Gs("themeRiver"))}var sG=2,lG=4,$T=function(r){E(e,r);function e(t,a,i,n){var o=r.call(this)||this;o.z2=sG,o.textConfig={inside:!0},Q(o).seriesIndex=a.seriesIndex;var s=new gt({z2:lG,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,i,n),o}return e.prototype.updateData=function(t,a,i,n,o){this.node=a,a.piece=this,i=i||this._seriesModel,n=n||this._ecModel;var s=this;Q(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),h=a.getLayout(),f=V({},h);f.label=null;var v=a.getVisual("style");v.lineJoin="bevel";var c=a.getVisual("decal");c&&(v.decal=ps(c,o));var p=Gn(l.getModel("itemStyle"),f);V(f,p),A(Ee,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Gn(S,f);x&&(_.shape=x)}),t?(s.setShape(f),s.shape.r=h.r0,dt(s,{shape:{r:h.r}},i,a.dataIndex)):dt(s,{shape:f},i),s.useStyle(v),this._updateLabel(i);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=i||this._seriesModel,this._ecModel=n||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Lt(this,y,u.get("blurScope"))},e.prototype._updateLabel=function(t){var a=this,i=this.node.getModel(),n=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),h=Math.sin(l),f=this,v=f.getTextContent(),c=this.node.dataIndex,p=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!L||L==="center"?(M=(o.r+o.r0)/2,L="center"):L==="left"?(M=o.r0+D,l>Math.PI/2&&(L="right")):L==="right"&&(M=o.r-D,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*h+o.cy;var I=g(m,"rotate"),P=0;I==="radial"?(P=-l,P<-Math.PI/2&&(P+=Math.PI)):I==="tangential"?(P=Math.PI/2-l,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):typeof I=="number"&&(P=I*Math.PI/180),S.rotation=P});function g(y,m){var _=y.get(m);return _==null?n.get(m):_}v.dirtyStyle()},e}(De),Gd="sunburstRootToNode",ZT="sunburstHighlight",uG="sunburstUnhighlight";function hG(r){r.registerAction({type:Gd,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i,n){var o=Zs(e,[Gd],i);if(o){var s=i.getViewRoot();s&&(e.direction=Up(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),r.registerAction({type:ZT,update:"none"},function(e,t,a){e=V({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(n){var o=Zs(e,[ZT],n);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction(V(e,{type:"highlight"}))}),r.registerAction({type:uG,update:"updateView"},function(e,t,a){e=V({},e),a.dispatchAction(V(e,{type:"downplay"}))})}var fG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i,n){var o=this;this.seriesModel=t,this.api=i,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),h=this.group,f=t.get("renderLabelForZeroData"),v=[];u.eachNode(function(m){v.push(m)});var c=this._oldChildren||[];p(v,c),y(l,u),this._initEvents(),this._oldChildren=v;function p(m,_){if(m.length===0&&_.length===0)return;new Ca(_,m,S,S).add(x).update(x).remove(j(x,null)).execute();function S(b){return b.getId()}function x(b,w){var T=b==null?null:m[b],C=w==null?null:_[w];d(T,C)}}function d(m,_){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,i),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new $T(m,t,a,i);h.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){!m||m.piece&&(h.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,i):(o.virtualPiece=new $T(m,t,a,i),h.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(h.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var i=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!i&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var h=l.get("target",!0)||"_blank";bu(u,h)}}i=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Gd,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var i=a.getData(),n=i.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type="sunburst",e}(Ct),vG=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var i={name:t.name,children:t.data};qT(i);var n=H(t.levels||[],function(l){return new xt(l,this,a)},this),o=Wp.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,h){var f=o.getNodeByDataIndex(h),v=n[f.depth];return v&&(u.parentModel=v),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=Yp(i,this),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){aw(this)},e.type="series.sunburst",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},e}(It);function qT(r){var e=0;A(r.children,function(a){qT(a);var i=a.value;B(i)&&(i=i[0]),e+=i});var t=r.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(r.value)?r.value[0]=t:r.value=t}var KT=Math.PI/180;function cG(r,e,t){e.eachSeriesByType(r,function(a){var i=a.get("center"),n=a.get("radius");B(n)||(n=[0,n]),B(i)||(i=[i,i]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=F(i[0],o),h=F(i[1],s),f=F(n[0],l/2),v=F(n[1],l/2),c=-a.get("startAngle")*KT,p=a.get("minAngle")*KT,d=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&QT(g,m);var _=0;A(g.children,function(k){!isNaN(k.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(v-f)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,L=function(k,N){if(!!k){var O=N;if(k!==d){var G=k.getValue(),z=S===0&&M?x:G*x;z1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&typeof s=="string"&&(s=Ly(s,(a.depth-1)/(n-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var i=a.getData(),n=i.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,n.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");V(u,l)})})}function gG(r){r.registerChartView(fG),r.registerSeriesModel(vG),r.registerLayout(j(cG,"sunburst")),r.registerProcessor(j(Gs,"sunburst")),r.registerVisual(dG),hG(r)}function yG(r,e){return e=e||[0,0],H(["x","y"],function(t,a){var i=this.getAxis(t),n=e[a],o=r[a]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function mG(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(yG,r)}}}function _G(r,e){return e=e||[0,0],H([0,1],function(t){var a=e[t],i=r[t]/2,n=[],o=[];return n[t]=a-i,o[t]=a+i,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function SG(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:U(_G,r)}}}function xG(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,i=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-i)-t.dataToCoord(a+i))}function bG(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:U(xG,r)}}}function wG(r,e){return e=e||[0,0],H(["Radius","Angle"],function(t,a){var i="get"+t+"Axis",n=this[i](),o=e[a],s=r[a]/2,l=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function TG(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(i){var n=e.dataToRadius(i[0]),o=t.dataToAngle(i[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:U(wG,r)}}}function AG(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,i){return r.dataToPoint(a,i)}}}}function JT(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||Y(r,"text")))}function jT(r,e,t){var a=r,i,n,o;if(e==="text")o=a;else{o={},Y(a,"text")&&(o.text=a.text),Y(a,"rich")&&(o.rich=a.rich),Y(a,"textFill")&&(o.fill=a.textFill),Y(a,"textStroke")&&(o.stroke=a.textStroke),n={type:"text",style:o,silent:!0},i={};var s=Y(a,"textPosition");t?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Y(a,"textPosition")&&(i.position=a.textPosition),Y(a,"textOffset")&&(i.offset=a.textOffset),Y(a,"textRotation")&&(i.rotation=a.textRotation),Y(a,"textDistance")&&(i.distance=a.textDistance)}return tA(o,r),A(o.rich,function(l){tA(l,l)}),{textConfig:i,textContent:n}}function tA(r,e){!e||(e.font=e.textFont||e.font,Y(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),Y(e,"textAlign")&&(r.align=e.textAlign),Y(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),Y(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),Y(e,"textWidth")&&(r.width=e.textWidth),Y(e,"textHeight")&&(r.height=e.textHeight),Y(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),Y(e,"textPadding")&&(r.padding=e.textPadding),Y(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),Y(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),Y(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),Y(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),Y(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),Y(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),Y(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function eA(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var i=a.textPosition.indexOf("inside")>=0,n=r.fill||"#000";rA(a,e);var o=a.textFill==null;return i?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=n),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){rA(s,s)}),a}function rA(r,e){!e||(Y(e,"fill")&&(r.textFill=e.fill),Y(e,"stroke")&&(r.textStroke=e.fill),Y(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),Y(e,"font")&&(r.font=e.font),Y(e,"fontStyle")&&(r.fontStyle=e.fontStyle),Y(e,"fontWeight")&&(r.fontWeight=e.fontWeight),Y(e,"fontSize")&&(r.fontSize=e.fontSize),Y(e,"fontFamily")&&(r.fontFamily=e.fontFamily),Y(e,"align")&&(r.textAlign=e.align),Y(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),Y(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),Y(e,"width")&&(r.textWidth=e.width),Y(e,"height")&&(r.textHeight=e.height),Y(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),Y(e,"padding")&&(r.textPadding=e.padding),Y(e,"borderColor")&&(r.textBorderColor=e.borderColor),Y(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),Y(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),Y(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),Y(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),Y(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),Y(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),Y(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),Y(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),Y(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),Y(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var Or=Ar.CMD,aA=Math.PI*2,CG=["x","y"],DG=["width","height"],Nr=[];function iA(r,e){return Math.abs(r-e)<1e-5}function nA(r){var e=r.data,t=r.len(),a=[],i,n=0,o=0,s=0,l=0;function u(I,P){i&&i.length>2&&a.push(i),i=[I,P]}function h(I,P,R,k){iA(I,R)&&iA(P,k)||i.push(I,P,R,k,R,k)}function f(I,P,R,k,N,O){var G=Math.abs(P-I),z=Math.tan(G/4)*4/3,W=PT:D2&&a.push(i),a}function MG(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var i=t0)for(var x=a/t,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),C=0,_=0;_a.width?1:0,n=DG[i],o=CG[i],s=a[n]/e,l=a[o],u=0;u=0){!l&&(l=i[r]={});for(var d=St(s),f=0;f=0){var d=r.getAnimationStyleProps(),g=d?d.style:null;if(g){!l&&(l=i.style={});for(var y=St(a),f=0;f=0?n.replaceAt(e,l):n.add(e),e}function dA(r,e){var t=rr(r),a=e.type,i=e.shape,n=e.style;return a!=null&&a!==t.customGraphicType||a==="path"&&f3(i)&&_A(i)!==t.customPathData||a==="image"&&Y(n,"image")&&n.image!==t.customImagePath}function o3(r,e,t,a,i){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&dA(o,n)&&(o=null),o||(o=Qd(n),r.setClipPath(o)),Jd(null,o,null,e,n,null,null,a,i,!1)}}function s3(r,e,t,a,i,n){if(!r.isGroup){gA(t,null,n),gA(t,aa,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var h=r.getTextContent();if(o===!1)h&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},h?h.clearStates():(h=Qd(o),r.setTextContent(h));var f=o&&o.style;Jd(null,h,null,e,o,f,null,a,i,!0);for(var v=0;v=f;v--)zh(e.childAt(v),i,e)}}function u3(r){new Ca(r.oldChildren,r.newChildren,yA,yA,r).add(mA).update(mA).remove(h3).execute()}function yA(r,e){var t=r&&r.name;return t!=null?t:$G+e}function mA(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,i=e!=null?t.oldChildren[e]:null;ig(t.api,i,t.dataIndex,a,t.seriesModel,t.group,!1,t.morphPreparation)}function h3(r){var e=this.context,t=e.oldChildren[r];zh(t,e.seriesModel,e.group)}function zh(r,e,t){if(r){var a=rr(r).leaveToProps;a?dt(r,a,e,{cb:function(){t.remove(r)}}):t.remove(r)}}function _A(r){return r&&(r.pathData||r.d)}function f3(r){return r&&(Y(r,"pathData")||Y(r,"d"))}function SA(r){return r&&r instanceof ct}function Fh(r,e){r&&e.remove(r)}var v3=function(){function r(e,t){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=e,this._transOpt=t}return r.prototype.hasFrom=function(){return!!this._fromList.length},r.prototype.findAndAddFrom=function(e){if(!!e&&(rr(e).canMorph&&this._fromList.push(e),e.isGroup))for(var t=e.childrenRef(),a=0;a=i?n-l:s;this._manyToOneForSingleTo(o,l>=n?null:l,u)}else if(e==="oneToMany")for(var h=Math.max(1,Math.floor(i/n)),f=0,v=0;f=i?i-f:h;this._oneToManyForSingleFrom(f,c,v>=n?null:v)}}},r.prototype._oneToOneForSingleTo=function(e,t){var a=this._toList[e],i=this._toElOptionList[e],n=this._toDataIndices[e],o=this._allPropsFinalList[e],s=this._fromList[t],l=this._getOrCreateMorphConfig(n),u=l.duration;if(s&&Qn(s)){if(nl(a,o,i.style),u){var h=uA([s],a,l,og);this._processResultIndividuals(h,e,null)}}else{var f=u&&s&&(s!==a||NG(s))?s:null,v={};Bh("shape",a,f,i,v,!1),Bh("extra",a,f,i,v,!1),tg(a,f,i,v,!1),eg(a,f,i,i.style,v,!1),nl(a,o,i.style),f&&Hd(f,a,l),jd(a,n,i,this._seriesModel,v,!1)}},r.prototype._manyToOneForSingleTo=function(e,t,a){var i=this._toList[e],n=this._toElOptionList[e],o=this._allPropsFinalList[e];nl(i,o,n.style);var s=this._getOrCreateMorphConfig(this._toDataIndices[e]);if(s.duration&&t!=null){for(var l=[],u=t;us)return!0;if(o){var l=Ip(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,i,n){},r.prototype.createPointerEl=function(e,t,a,i){var n=t.pointer;if(n){var o=Ji(e).pointerEl=new qo[n.type](xA(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,i){if(t.label){var n=Ji(e).labelEl=new gt(xA(t.label));e.add(n),TA(n,i)}},r.prototype.updatePointerEl=function(e,t,a){var i=Ji(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),a(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,i){var n=Ji(e).labelEl;n&&(n.setStyle(t.label.style),a(n,{x:t.label.x,y:t.label.y}),TA(n,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),i=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){i&&a.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=$o(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Wr(u.event)},onmousedown:sg(this._onHandleDragMove,this,0,0),drift:sg(this._onHandleDragMove,this),ondragend:sg(this._onHandleDragEnd,this)}),a.add(i)),AA(i,t,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");B(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,ls(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){bA(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ug(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(!!a){this._dragging=!0;var i=this.updateHandleTransform(ug(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,a.stopAnimation(),a.attr(ug(i)),Ji(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,i=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function bA(r,e,t,a){wA(Ji(t).lastProp,a)||(Ji(t).lastProp=a,e?dt(t,a,r):(t.stopAnimation(),t.attr(a)))}function wA(r,e){if(J(r)&&J(e)){var t=!0;return A(e,function(a,i){t=t&&wA(r[i],a)}),!!t}else return r===e}function TA(r,e){r[e.get(["label","show"])?"show":"hide"]()}function ug(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function AA(r,e,t){var a=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(a!=null&&(n.z=a),i!=null&&(n.zlevel=i),n.silent=t)})}function hg(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function CA(r,e,t,a,i){var n=t.get("value"),o=DA(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=An(s.get("padding")||0),u=s.getFont(),h=wo(o,u),f=i.position,v=h.width+l[1]+l[3],c=h.height+l[0]+l[2],p=i.align;p==="right"&&(f[0]-=v),p==="center"&&(f[0]-=v/2);var d=i.verticalAlign;d==="bottom"&&(f[1]-=c),d==="middle"&&(f[1]-=c/2),p3(f,v,c,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Ft(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function p3(r,e,t,a){var i=a.getWidth(),n=a.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function DA(r,e,t,a,i){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:fp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=u&&u.getDataParams(h);f&&s.seriesData.push(f)}),ft(o)?n=o.replace("{value}",n):wt(o)&&(n=o(s))}return n}function fg(r,e,t){var a=ze();return qa(a,a,t.rotation),yr(a,a,t.position),fr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function MA(r,e,t,a,i,n){var o=be.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),CA(e,a,i,n,{position:fg(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vg(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function LA(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function IA(r,e,t,a,i,n){return{cx:r,cy:e,r0:t,r:a,startAngle:i,endAngle:n,clockwise:!0}}var d3=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),h=PA(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var v=hg(n),c=g3[u](s,f,h);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=Dp(l.model,i);MA(a,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=Dp(a.axis.grid.model,a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=fg(a.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=PA(s,o).getOtherAxis(o).getGlobalExtent(),h=o.dim==="x"?0:1,f=[t.x,t.y];f[h]+=a[h],f[h]=Math.min(l[1],f[h]),f[h]=Math.max(l[0],f[h]);var v=(u[1]+u[0])/2,c=[v,v];c[h]=f[h];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[h]}},e}(lg);function PA(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var g3={line:function(r,e,t){var a=vg([e,t[0]],[e,t[1]],RA(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:LA([e-a/2,t[0]],[a,i],RA(r))}}};function RA(r){return r.dim==="x"?0:1}var y3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",zlevel:0,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}},e}(ht),na=At(),m3=A;function EA(r,e,t){if(!et.node){var a=e.getZr();na(a).records||(na(a).records={}),_3(a,e);var i=na(a).records[r]||(na(a).records[r]={});i.handler=t}}function _3(r,e){if(na(r).initialized)return;na(r).initialized=!0,t("click",j(kA,"click")),t("mousemove",j(kA,"mousemove")),t("globalout",x3);function t(a,i){r.on(a,function(n){var o=b3(e);m3(na(r).records,function(s){s&&i(s,n,o.dispatchAction)}),S3(o.pendings,e)})}}function S3(r,e){var t=r.showTip.length,a=r.hideTip.length,i;t?i=r.showTip[t-1]:a&&(i=r.hideTip[a-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function x3(r,e,t){r.handler("leave",null,t)}function kA(r,e,t,a){e.handler(r,t,a)}function b3(r){var e={showTip:[],hideTip:[]},t=function(a){var i=e[a.type];i?i.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function cg(r,e){if(!et.node){var t=e.getZr(),a=(na(t).records||{})[r];a&&(na(t).records[r]=null)}}var w3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=a.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";EA("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){cg("axisPointer",a)},e.prototype.dispose=function(t,a){cg("axisPointer",a)},e.type="axisPointer",e}(Et);function OA(r,e){var t=[],a=r.seriesIndex,i;if(a==null||!(i=e.getSeriesByIndex(a)))return{point:[]};var n=i.getData(),o=ni(n,r);if(o==null||o<0||B(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u),f=h.dim,v=u.dim,c=f==="x"||f==="radius"?1:0,p=n.mapDimension(v),d=[];d[c]=n.get(p,o),d[1-c]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(H(l.dimensions,function(y){return n.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var NA=At();function T3(r,e,t){var a=r.currTrigger,i=[r.x,r.y],n=r,o=r.dispatchAction||U(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){Gh(i)&&(i=OA({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=Gh(i),u=n.axesInfo,h=s.axesInfo,f=a==="leave"||Gh(i),v={},c={},p={list:[],map:{}},d={showPointer:j(C3,c),showTooltip:j(D3,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=P3(u,S);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(i)),T!=null&&BA(S,T,d,!1,v)}})});var g={};return A(h,function(y,m){var _=y.linkGroup;_&&!c[m]&&A(_.axesInfo,function(S,x){var b=c[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,VA(S),VA(y)))),g[y.key]=w}})}),A(g,function(y,m){BA(h[m],y,d,!0,v)}),M3(c,h,v),L3(p,i,r,o),I3(h,o,t),v}}function BA(r,e,t,a,i){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=A3(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!a&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function A3(r,e){var t=e.axis,a=t.dim,i=r,n=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var h=l.getData().mapDimensionsAll(a),f,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(h,r,t);v=c.dataIndices,f=c.nestestValue}else{if(v=l.getData().indicesOfNearest(h[0],r,t.type==="category"?.5:null),!v.length)return;f=l.getData().get(h[0],v[0])}if(!(f==null||!isFinite(f))){var p=r-f,d=Math.abs(p);d<=o&&((d=0&&s<0)&&(o=d,s=p,i=f,n.length=0),A(v,function(g){n.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:n,snapToValue:i}}function C3(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function D3(r,e,t,a){var i=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Ws(l),h=r.map[u];h||(h=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(h)),h.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function M3(r,e,t){var a=t.axesInfo=[];A(e,function(i,n){var o=i.axisPointerModel.option,s=r[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function L3(r,e,t,a){if(Gh(e)||!r.list.length){a({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function I3(r,e,t){var a=t.getZr(),i="axisPointerLastHighlights",n=NA(a)[i]||{},o=NA(a)[i]={};A(r,function(u,h){var f=u.axisPointerModel.option;f.status==="show"&&A(f.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];A(n,function(u,h){!o[h]&&l.push(u)}),A(o,function(u,h){!n[h]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function P3(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function VA(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function Gh(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function ol(r){Wi.registerAxisPointerClass("CartesianAxisPointer",d3),r.registerComponentModel(y3),r.registerComponentView(w3),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=$N(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},T3)}function R3(r){st(Ib),st(ol)}var E3=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),h=u.getExtent(),f=s.dataToCoord(a),v=n.get("type");if(v&&v!=="none"){var c=hg(n),p=O3[v](s,l,f,h);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=n.get(["label","margin"]),g=k3(a,i,n,l,d);CA(t,i,n,o,g)},e}(lg);function k3(r,e,t,a,i){var n=e.axis,o=n.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,h,f;if(n.dim==="radius"){var v=ze();qa(v,v,s),yr(v,v,[a.cx,a.cy]),u=fr([o,-i],v);var c=e.getModel("axisLabel").get("rotate")||0,p=be.innerTextLayout(s,c*Math.PI/180,-1);h=p.textAlign,f=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+i,o]);var g=a.cx,y=a.cy;h=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:h,verticalAlign:f}}var O3={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:vg(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var i=Math.max(1,r.getBandWidth()),n=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:IA(e.cx,e.cy,a[0],a[1],(-t-i/2)*n,(-t+i/2)*n)}:{type:"Sector",shape:IA(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}},N3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,i=this.ecModel;return i.eachComponent(t,function(n){n.getCoordSysModel()===this&&(a=n)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},e}(ht),pg=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Wt).models[0]},e.type="polarAxis",e}(ht);Ht(pg,Rs);var B3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(pg),V3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(pg),dg=function(r){E(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(gr);dg.prototype.dataToRadius=gr.prototype.dataToCoord,dg.prototype.radiusToData=gr.prototype.coordToData;var z3=At(),gg=function(r){E(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),h=wo(s==null?"":s+"",a.getFont(),"center","top"),f=Math.max(h.height,7),v=f/u;isNaN(v)&&(v=Infinity);var c=Math.max(0,Math.floor(v)),p=z3(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(gr);gg.prototype.dataToAngle=gr.prototype.dataToCoord,gg.prototype.angleToData=gr.prototype.coordToData;var zA=function(){function r(e){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new dg,this._angleAxis=new gg,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,i=this._radiusAxis;return a.scale.type===e&&t.push(a),i.scale.type===e&&t.push(i),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var a=this.pointToCoord(e);return[this._radiusAxis.radiusToData(a[0],t),this._angleAxis.angleToData(a[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,i=this.getAngleAxis(),n=i.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,h=us;)u+=h*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],a=e[1]/180*Math.PI,i=Math.cos(a)*t+this.cx,n=-Math.sin(a)*t+this.cy;return[i,n]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var i=e.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-i[0]*n,endAngle:-i[1]*n,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,h=l*l+u*u,f=this.r,v=this.r0;return h<=f*f&&h>=v*v}}},r.prototype.convertToPixel=function(e,t,a){var i=FA(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=FA(t);return i===this?this.pointToData(a):null},r}();function FA(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function F3(r,e,t){var a=e.get("center"),i=t.getWidth(),n=t.getHeight();r.cx=F(a[0],i),r.cy=F(a[1],n);var o=r.getRadiusAxis(),s=Math.min(i,n)/2,l=e.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[F(l[0],s),F(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function G3(r,e){var t=this,a=t.getAngleAxis(),i=t.getRadiusAxis();if(a.scale.setExtent(Infinity,-Infinity),i.scale.setExtent(Infinity,-Infinity),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(sh(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),A(sh(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Fi(a.scale,a.model),Fi(i.scale,i.model),a.type==="category"&&!a.onBand){var n=a.getExtent(),o=360/a.scale.count();a.inverse?n[1]+=o:n[1]-=o,a.setExtent(n[0],n[1])}}function H3(r){return r.mainType==="angleAxis"}function GA(r,e){if(r.type=e.get("type"),r.scale=oh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),H3(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var W3={dimensions:zA.prototype.dimensions,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,i){var n=new zA(i+"");n.update=G3;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");GA(o,l),GA(s,u),F3(n,a,e),t.push(n),a.coordinateSystem=n,n.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var i=a.getReferringComponents("polar",Wt).models[0];a.coordinateSystem=i.coordinateSystem}}),t}},U3=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Hh(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),i=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:i[0],y2:i[1]}}function Wh(r){var e=r.getRadiusAxis();return e.inverse?0:1}function HA(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var Y3=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,n=i.polar,o=n.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=H(i.getViewLabels(),function(h){h=$(h);var f=i.scale,v=f.type==="ordinal"?f.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=i.dataToCoord(v),h});HA(u),HA(s),A(U3,function(h){t.get([h,"show"])&&(!i.scale.isBlank()||h==="axisLine")&&X3[h](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e}(Wi),X3={axisLine:function(r,e,t,a,i,n){var o=e.getModel(["axisLine","lineStyle"]),s=Wh(t),l=s?0:1,u;n[l]===0?u=new lr({shape:{cx:t.cx,cy:t.cy,r:n[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Ho({shape:{cx:t.cx,cy:t.cy,r:n[s],r0:n[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,a,i,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[Wh(t)],u=H(a,function(h){return new Qt({shape:Hh(t,[l,l+s],h.coord)})});r.add($e(u,{style:X(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,i,n){if(!!i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[Wh(t)],h=[],f=0;fy?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var x=s[p];J(x)&&x.textStyle&&(c=new xt(x.textStyle,l,l.ecModel))}var b=new gt({silent:be.isLabelSilent(e),style:Ft(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),h){var w=be.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=f.rawLabel,Q(b).eventData=w}},this)},splitLine:function(r,e,t,a,i,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var h=[],f=0;f=0?"p":"n",I=w;x&&(a[h][D]||(a[h][D]={p:w,n:w}),I=a[h][D][L]);var P=void 0,R=void 0,k=void 0,N=void 0;if(p.dim==="radius"){var O=p.dataToCoord(M)-w,G=l.dataToCoord(D);Math.abs(O)=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),a=this.getRect(),i=[],n=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[n]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-n]=n===0?a.y+a.height/2:a.x+a.width/2,i},r.prototype.convertToPixel=function(e,t,a){var i=XA(t);return i===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var i=XA(t);return i===this?this.pointToData(a):null},r}();function XA(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function uH(r,e){var t=[];return r.eachComponent("singleAxis",function(a,i){var n=new YA(a,r,e);n.name="single_"+i,n.resize(a,e),a.coordinateSystem=n,t.push(n)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var i=a.getReferringComponents("singleAxis",Wt).models[0];a.coordinateSystem=i&&i.coordinateSystem}}),t}var hH={create:uH,dimensions:YA.prototype.dimensions},$A=["x","y"],fH=["width","height"],vH=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,i,n,o){var s=i.axis,l=s.coordinateSystem,u=mg(l,1-Yh(s)),h=l.dataToPoint(a)[0],f=n.get("type");if(f&&f!=="none"){var v=hg(n),c=cH[f](s,h,u);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=yg(i);MA(a,t,p,i,n,o)},e.prototype.getHandleTransform=function(t,a,i){var n=yg(a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=fg(a.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,i,n){var o=i.axis,s=o.coordinateSystem,l=Yh(o),u=mg(s,l),h=[t.x,t.y];h[l]+=a[l],h[l]=Math.min(u[1],h[l]),h[l]=Math.max(u[0],h[l]);var f=mg(s,1-l),v=(f[1]+f[0])/2,c=[v,v];return c[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(lg),cH={line:function(r,e,t){var a=vg([e,t[0]],[e,t[1]],Yh(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),i=t[1]-t[0];return{type:"Rect",shape:LA([e-a/2,t[0]],[a,i],Yh(r))}}};function Yh(r){return r.isHorizontal()?0:1}function mg(r,e){var t=r.getRect();return[t[$A[e]],t[$A[e]]+t[fH[e]]]}var pH=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Et);function dH(r){st(ol),Wi.registerAxisPointerClass("SingleAxisPointer",vH),r.registerComponentView(pH),r.registerComponentView(oH),r.registerComponentModel(Uh),Wn(r,"single",Uh,Uh.defaultOption),r.registerCoordinateSystem("single",hH)}var gH=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,i){var n=Cn(t);r.prototype.init.apply(this,arguments),ZA(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),ZA(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ht);function ZA(r,e){var t=r.cellSize,a;B(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var i=H([0,1],function(n){return ZI(e,n)&&(a[n]="auto"),a[n]!=null&&a[n]!=="auto"});ma(r,e,{type:"box",ignoreSize:i})}var yH={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\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"]},mH={EN:["S","M","T","W","T","F","S"],CN:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},_H=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,l,n),this._renderWeekText(t,s,l,n)},e.prototype._renderDayRect=function(t,a,i){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=a.start.time;u<=a.end.time;u=n.getNextNDay(u,1).time){var h=n.dataToRect([u],!1).tl,f=new pt({shape:{x:h[0],y:h[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},e.prototype._renderLines=function(t,a,i,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),h=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=a.start,v=0;f.time<=a.end.time;v++){p(f.formatedDate),v===0&&(f=s.getDateInfo(a.start.y+"-"+a.start.m));var c=f.date;c.setMonth(c.getMonth()+1),f=s.getDateInfo(c)}p(s.getNextNDay(a.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,h,i),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,h,i),l,n)},e.prototype._getEdgesPoints=function(t,a,i){var n=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return n[0][o]=n[0][o]-a/2,n[1][o]=n[1][o]+a/2,n},e.prototype._drawSplitline=function(t,a,i){var n=new Me({z2:20,shape:{points:t},style:a});i.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,a,i){for(var n=t.coordinateSystem,o=n.getDateInfo(a),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),h=n.dataToRect([u.time],!1);s[2*u.day]=h.tl,s[2*u.day+1]=h[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return typeof t=="string"&&t?YI(t,a):typeof t=="function"?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,i,n,o){var s=a[0],l=a[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var h=0;return(n==="left"||n==="right")&&(h=Math.PI/2),{rotation:h,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,i,n){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],h=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,v=i==="horizontal"?0:1,c={top:[h,u[v][1]],bottom:[h,u[1-v][1]],left:[u[1-v][0],f],right:[u[v][0],f]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new gt({z2:30,style:Ft(o,{text:y})});m.attr(this._yearTextPositionControl(m,c[l],i,l,s)),n.add(m)}},e.prototype._monthTextPositionControl=function(t,a,i,n,o){var s="left",l="top",u=t[0],h=t[1];return i==="horizontal"?(h=h+o,a&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),n==="start"&&(s="right")),{x:u,y:h,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,i){var n=t.getModel("monthLabel");if(!!n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),l=n.get("position"),u=n.get("align"),h=[this._tlpoints,this._blpoints];ft(o)&&(o=yH[o.toUpperCase()]||[]);var f=l==="start"?0:1,v=a==="horizontal"?0:1;s=l==="start"?-s:s;for(var c=u==="center",p=0;p=i.start.time&&a.times.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var i=Math.floor(t[1].time/_g)-Math.floor(t[0].time/_g)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+i-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)i-=u,n.setDate(l-u);var h=Math.floor((i+t[0].day+6)/7),f=a?-h+1:h-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:h,nthWeek:f,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var i=this._getRangeInfo(a);if(e>i.weeks||e===0&&ti.lweek)return null;var n=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(i){var n=new r(i,e,t);a.push(n),i.coordinateSystem=n}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=a[i.get("calendarIndex")||0])}),a},r.dimensions=["time","value"],r}();function qA(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}function xH(r){r.registerComponentModel(gH),r.registerComponentView(_H),r.registerCoordinateSystem("calendar",SH)}var jn=At(),KA={path:null,compoundPath:null,group:q,image:Zt,text:gt},bH=function(r){var e=r.graphic;B(e)?!e[0]||!e[0].elements?r.graphic=[{elements:e}]:r.graphic=[r.graphic[0]]:e&&!e.elements&&(r.graphic=[{elements:[e]}])},wH=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=i},e.prototype.optionUpdated=function(t,a){var i=this.option,n=(a?i:t).elements,o=i.elements=a?[]:i.elements,s=[];this._flatten(n,s,null);var l=cm(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,v){var c=f.newOption;!c||(u.push(c),CH(f,c),DH(o,v,c),MH(o[v],c))},this);for(var h=o.length-1;h>=0;h--)o[h]==null?o.splice(h,1):delete o[h].$action},e.prototype._flatten=function(t,a,i){A(t,function(n){if(!!n){i&&(n.parentOption=i),a.push(n);var o=n.children;n.type==="group"&&o&&this._flatten(o,a,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(ht),TH=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=Z()},e.prototype.render=function(t,a,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(!!a){var i=this._elMap,n=this.group;A(a,function(o){var s=$t(o.id,null),l=s!=null?i.get(s):null,u=$t(o.parentId,null),h=u!=null?i.get(u):n,f=o.type,v=o.style;f==="text"&&v&&o.hv&&o.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var c=o.textContent,p=o.textConfig;if(v&&JT(v,f,!!p,!!c)){var d=jT(v,f,!0);!p&&d.textConfig&&(p=o.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var g=AH(o),y=o.$action||"merge";y==="merge"?l?l.attr(g):QA(s,h,g,i):y==="replace"?(Xh(l,i),QA(s,h,g,i)):y==="remove"&&Xh(l,i);var m=i.get(s);if(m&&c)if(y==="merge"){var _=m.getTextContent();_?_.attr(c):m.setTextContent(new gt(c))}else y==="replace"&&m.setTextContent(new gt(c));if(m){var S=jn(m);S.__ecGraphicWidthOption=o.width,S.__ecGraphicHeightOption=o.height,LH(m,t,o),xn({el:m,componentModel:t,itemName:m.name,itemTooltipOption:o.tooltip})}})}},e.prototype._relocate=function(t,a){for(var i=t.option.elements,n=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=0;u=0;u--){var h=i[u],f=$t(h.id,null),v=f!=null?o.get(f):null;if(!!v){var c=v.parent,g=jn(c),y=c===n?{width:s,height:l}:{width:g.__ecGraphicWidth,height:g.__ecGraphicHeight};Tu(v,h,y,null,{hv:h.hv,boundingMode:h.bounding})}}},e.prototype._clear=function(){var t=this._elMap;t.each(function(a){Xh(a,t)}),this._elMap=Z()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Et);function QA(r,e,t,a){var i=t.type,n=Y(KA,i)?KA[i]:Wv(i),o=new n(t);e.add(o),a.set(r,o),jn(o).__ecGraphicId=r}function Xh(r,e){var t=r&&r.parent;t&&(r.type==="group"&&r.traverse(function(a){Xh(a,e)}),e.removeKey(jn(r).__ecGraphicId),t.remove(r))}function AH(r){return r=V({},r),A(["id","parentId","$action","hv","bounding","textContent"].concat(n_),function(e){delete r[e]}),r}function JA(r,e){var t;return A(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function CH(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function DH(r,e,t){var a=V({},t),i=r[e],n=t.$action||"merge";n==="merge"?i?(at(i,a,!0),ma(i,a,{ignoreSize:!0}),o_(t,i)):r[e]=a:n==="replace"?r[e]=a:n==="remove"&&i&&(r[e]=null)}function MH(r,e){if(!!r&&(r.hv=e.hv=[JA(e,["left","right"]),JA(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}function LH(r,e,t){var a=Q(r).eventData;!r.silent&&!r.ignore&&!a&&(a=Q(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function IH(r){r.registerComponentModel(wH),r.registerComponentView(TH),r.registerPreprocessor(bH)}var jA=["x","y","radius","angle","single"],PH=["cartesian2d","polar","singleAxis"];function RH(r){var e=r.get("coordinateSystem");return lt(PH,e)>=0}function Ba(r){return r+"Axis"}function EH(r,e){var t=Z(),a=[],i=Z();r.eachComponent({mainType:"dataZoom",query:e},function(h){i.get(h.uid)||s(h)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(h){!i.get(h.uid)&&l(h)&&(s(h),n=!0)}function s(h){i.set(h.uid,!0),a.push(h),u(h)}function l(h){var f=!1;return h.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(f=!0)}),f}function u(h){h.eachTargetAxis(function(f,v){(t.get(f)||t.set(f,[]))[v]=!0})}return a}function tC(r){var e=r.ecModel,t={infoList:[],infoMap:Z()};return r.eachTargetAxis(function(a,i){var n=e.getComponent(Ba(a),i);if(!!n){var o=n.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}var Sg=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),sl=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,a,i){var n=eC(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var a=eC(t);at(this.option,t,!0),at(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(a[n[0]]=i[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=Z(),i=this._fillSpecifiedTargetAxis(a);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(jA,function(i){var n=this.getReferringComponents(Ba(i),CL);if(!!n.specified){a=!0;var o=new Sg;A(n.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var i=this.ecModel,n=!0;if(n){var o=a==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=i.findComponents({mainType:"singleAxis",filter:function(h){return h.get("orient",!0)===a}});l(s,"single")}function l(u,h){var f=u[0];if(!!f){var v=new Sg;if(v.add(f.componentIndex),t.set(h,v),n=!1,h==="x"||h==="y"){var c=f.getReferringComponents("grid",Wt).models[0];c&&A(u,function(p){f.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Wt).models[0]&&v.add(p.componentIndex)})}}}n&&A(jA,function(u){if(!!n){var h=i.findComponents({mainType:Ba(u),filter:function(v){return v.get("type",!0)==="category"}});if(h[0]){var f=new Sg;f.add(h[0].componentIndex),t.set(u,f),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,i=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":i?a[o]=i[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,i){t==null&&(t=this.ecModel.getComponent(Ba(a),i))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(i,n){A(i.indexList,function(o){t.call(a,n,o)})})},e.prototype.getAxisProxy=function(t,a){var i=this.getAxisModel(t,a);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[a])return this.ecModel.getComponent(Ba(t),a)},e.prototype.setRawRange=function(t){var a=this.option,i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(a[n[0]]=i[n[0]]=t[n[0]],a[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(i){a[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,i=this._targetAxisInfoMap.keys(),n=0;no[1];if(y&&!m&&!_)return!0;y&&(p=!0),m&&(v=!0),_&&(c=!0)}return p&&v&&c}):to(h,function(f){if(n==="empty")l.setData(u=u.map(f,function(c){return s(c)?c:NaN}));else{var v={};v[f]=o,u.selectRange(v)}}),to(h,function(f){u.setApproximateExtent(o,f)}))});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;to(["min","max"],function(i){var n=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=Tt(a[0]+o,a,[0,100],!0):n!=null&&(o=Tt(n,[0,100],a,!0)-a[0]),e[i+"Span"]=n,e[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(!!t){var i=tm(a,[0,500]);i=Math.min(i,20);var n=e.axis.scale.rawExtentInfo;t[0]!==0&&n.setDeterminedMinMax("min",+a[0].toFixed(i)),t[1]!==100&&n.setDeterminedMinMax("max",+a[1].toFixed(i)),n.freeze()}},r}();function BH(r,e,t){var a=[Infinity,-Infinity];to(t,function(o){rO(a,o.getData(),e)});var i=r.getAxisModel(),n=ix(i.axis.scale,i,a).calculate();return[n.min,n.max]}var VH={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(Ba(o),s);i(o,s,l,n)})})}e(function(i,n,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,n,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new NH(i,n,s,r),t.push(o.__dzAxisProxy))});var a=Z();return A(t,function(i){A(i.getTargetSeriesModels(),function(n){a.set(n.uid,n)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).reset(t)}),t.eachTargetAxis(function(a,i){t.getAxisProxy(a,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var i=a.getDataPercentWindow(),n=a.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}})}};function zH(r){r.registerAction("dataZoom",function(e,t){var a=EH(t,e);A(a,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var aC=!1;function bg(r){aC||(aC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,VH),zH(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function FH(r){r.registerComponentModel(kH),r.registerComponentView(OH),bg(r)}var ir=function(){function r(){}return r}(),iC={};function eo(r,e){iC[r]=e}function nC(r){return iC[r]}var GH=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,i){var n=nC(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(t)),at(a,n.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ht);function HH(r,e,t){var a=e.getBoxLayoutParams(),i=e.get("padding"),n={width:t.getWidth(),height:t.getHeight()},o=qt(a,n,i);Di(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Tu(r,a,n,i)}function oC(r,e){var t=An(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),r=new pt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1}),r}var WH=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("feature")||{},u=this._features||(this._features={}),h=[];A(l,function(c,p){h.push(p)}),new Ca(this._featureNames||[],h).add(f).update(f).remove(j(f,null)).execute(),this._featureNames=h;function f(c,p){var d=h[c],g=h[p],y=l[d],m=new xt(y,t,t.ecModel),_;if(n&&n.newTitle!=null&&n.featureName===d&&(y.title=n.newTitle),d&&!g){if(UH(d))_={onclick:m.option.onclick,featureName:d};else{var S=nC(d);if(!S)return;_=new S}u[d]=_}else if(_=u[g],!_)return;if(_.uid=bn("toolbox-feature"),_.model=m,_.ecModel=a,_.api=i,_ instanceof ir){if(!d&&g){_.dispose&&_.dispose(a,i);return}if(!m.get("show")||_.unusable){_.remove&&_.remove(a,i);return}}v(m,_,d),m.setIconStatus=function(x,b){var w=this.option,T=this.iconPaths;w.iconStatus=w.iconStatus||{},w.iconStatus[x]=b,T[x]&&(b==="emphasis"?Cr:Dr)(T[x])},_ instanceof ir&&_.render&&_.render(m,a,i,n)}function v(c,p,d){var g=c.getModel("iconStyle"),y=c.getModel(["emphasis","iconStyle"]),m=p instanceof ir&&p.getIcons?p.getIcons():c.get("icon"),_=c.get("title")||{},S,x;typeof m=="string"?(S={},S[d]=m):S=m,typeof _=="string"?(x={},x[d]=_):x=_;var b=c.iconPaths={};A(S,function(w,T){var C=$o(w,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(g.getItemStyle());var M=C.ensureState("emphasis");M.style=y.getItemStyle();var D=new gt({style:{text:x[T],align:y.get("textAlign"),borderRadius:y.get("textBorderRadius"),padding:y.get("textPadding"),fill:null},ignore:!0});C.setTextContent(D),xn({el:C,componentModel:t,itemName:T,formatterParamsExtra:{title:x[T]}}),C.__title=x[T],C.on("mouseover",function(){var L=y.getItemStyle(),I=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";D.setStyle({fill:y.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:y.get("textBackgroundColor")}),C.setTextConfig({position:y.get("textPosition")||I}),D.ignore=!t.get("showTitle"),Cr(this)}).on("mouseout",function(){c.get(["iconStatus",T])!=="emphasis"&&Dr(this),D.hide()}),(c.get(["iconStatus",T])==="emphasis"?Cr:Dr)(C),o.add(C),C.on("click",U(p.onclick,p,a,i,T)),b[T]=C})}HH(o,t,i),o.add(oC(o.getBoundingRect(),t)),o.eachChild(function(c){var p=c.__title,d=c.ensureState("emphasis"),g=d.textConfig||(d.textConfig={}),y=c.getTextContent(),m=y&&y.states.emphasis;if(m&&!wt(m)&&p){var _=m.style||(m.style={}),S=wo(p,gt.makeFont(_)),x=c.x+o.x,b=c.y+o.y+s,w=!1;b+S.height>i.getHeight()&&(g.position="top",w=!0);var T=w?-5-S.height:s+8;x+S.width/2>i.getWidth()?(g.position=["100%",T],_.align="right"):x-S.width/2<0&&(g.position=[0,T],_.align="left")}})},e.prototype.updateView=function(t,a,i,n){A(this._features,function(o){o instanceof ir&&o.updateView&&o.updateView(o.model,a,i,n)})},e.prototype.remove=function(t,a){A(this._features,function(i){i instanceof ir&&i.remove&&i.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(i){i instanceof ir&&i.dispose&&i.dispose(t,a)})},e.type="toolbox",e}(Et);function UH(r){return r.indexOf("my")===0}var sC=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var i=this.model,n=i.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if(typeof MouseEvent=="function"&&(et.browser.newEdge||!et.browser.ie&&!et.browser.edge)){var u=document.createElement("a");u.download=n+"."+s,u.target="_blank",u.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),v=f[0].indexOf("base64")>-1,c=o?decodeURIComponent(f[1]):f[1];v&&(c=atob(c));var p=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var d=c.length,g=new Uint8Array(d);d--;)g[d]=c.charCodeAt(d);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var m=document.createElement("iframe");document.body.appendChild(m);var _=m.contentWindow,S=_.document;S.open("image/svg+xml","replace"),S.write(c),S.close(),_.focus(),S.execCommand("SaveAs",!0,p),document.body.removeChild(m)}}else{var x=i.get("lang"),b='',w=window.open();w.document.write(b),w.document.title=n}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])};return a},e}(ir);sC.prototype.unusable=!et.canvasSupported;var lC="__ec_magicType_stack__",YH=[["line","bar"],["stack"]],XH=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),i={};return A(t.get("type"),function(n){a[n]&&(i[n]=a[n])}),i},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,i){var n=this.model,o=n.get(["seriesIndex",i]);if(!!uC[i]){var s={series:[]},l=function(h){var f=h.subType,v=h.id,c=uC[i](f,v,h,n);c&&(X(c,h.option),s.series.push(c));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var d=p.getAxesByScale("ordinal")[0];if(d){var g=d.dim,y=g+"Axis",m=h.getReferringComponents(y,Wt).models[0],_=m.componentIndex;s[y]=s[y]||[];for(var S=0;S<=_;S++)s[y][_]=s[y][_]||{};s[y][_].boundaryGap=i==="bar"}}};A(YH,function(h){lt(h,i)>=0&&A(h,function(f){n.setIconStatus(f,"normal")})}),n.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u;i==="stack"&&(u=at({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title)),a.dispatchAction({type:"changeMagicType",currentType:i,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ir),uC={line:function(r,e,t,a){if(r==="bar")return at({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return at({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var i=t.get("stack")===lC;if(r==="line"||r==="bar")return a.setIconStatus("stack",i?"normal":"emphasis"),at({id:e,stack:i?"":lC},a.get(["option","stack"])||{},!0)}};Er({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var $h=new Array(60).join("-"),ro=" ";function $H(r){var e={},t=[],a=[];return r.eachRawSeries(function(i){var n=i.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function ZH(r){var e=[];return A(r,function(t,a){var i=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(H(t.series,function(c){return c.name})),l=[i.model.getCategories()];A(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(ro)],h=0;h=0)return!0}var wg=new RegExp("["+ro+"]+","g");function JH(r){for(var e=r.split(/\n+/g),t=Zh(e.shift()).split(wg),a=[],i=H(t,function(l){return{name:l,data:[]}}),n=0;n=0;n--){var o=t[n];if(o[i])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function i4(r){var e=Tg(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return hC(t,function(i,n){for(var o=e.length-1;o>=0;o--)if(i=e[o][n],i){a[n]=i;break}}),a}function n4(r){fC(r).snapshots=null}function o4(r){return Tg(r).length}function Tg(r){var e=fC(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var s4=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){n4(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocale(["toolbox","restore","title"])};return a},e}(ir);Er({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var Ag=["dataToPoint","pointToData"],l4=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Cg=function(){function r(e,t,a){var i=this;this._targetInfoList=[];var n=vC(t,e);A(u4,function(o,s){(!a||!a.include||lt(a.include,s)>=0)&&o(n,i._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,i,n){if((a.coordRanges||(a.coordRanges=[])).push(i),!a.coordRange){a.coordRange=i;var o=Mg[a.brushType](0,n,i);a.__rangeOffset={offset:gC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(i){var n=this.findTargetInfo(i,t);n&&n!==!0&&A(n.coordSyses,function(o){var s=Mg[i.brushType](1,o,i.range);a(i,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var i=this.findTargetInfo(a,t);if(a.range=a.range||[],i&&i!==!0){a.panelId=i.panelId;var n=Mg[a.brushType](0,i.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?gC[a.brushType](n.values,o.offset,h4(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return H(this._targetInfoList,function(a){var i=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:hT(i),isTargetByCursor:vT(i,e,a.coordSysModel),getLinearBrushOtherExtent:fT(i)}})},r.prototype.controlSeries=function(e,t,a){var i=this.findTargetInfo(e,a);return i===!0||i&<(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,i=vC(t,e),n=0;nr[1]&&r.reverse(),r}function vC(r,e){return oi(r,e,{includeMainTypes:l4})}var u4={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,i=r.gridModels,n=Z(),o={},s={};!t&&!a&&!i||(A(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),A(i,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,h=[];A(u.getCartesians(),function(f,v){(lt(t,f.getAxis("x").model)>=0||lt(a,f.getAxis("y").model)>=0)&&h.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:pC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:pC.geo})})}},cC=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,i=r.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&a&&(i=a.axis.grid.model),i&&i===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],pC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(wi(r)),e}},Mg={lineX:j(dC,0),lineY:j(dC,1),rect:function(r,e,t){var a=e[Ag[r]]([t[0][0],t[1][0]]),i=e[Ag[r]]([t[0][1],t[1][1]]),n=[Dg([a[0],i[0]]),Dg([a[1],i[1]])];return{values:n,xyMinMax:n}},polygon:function(r,e,t){var a=[[Infinity,-Infinity],[Infinity,-Infinity]],i=H(t,function(n){var o=e[Ag[r]](n);return a[0][0]=Math.min(a[0][0],o[0]),a[1][0]=Math.min(a[1][0],o[1]),a[0][1]=Math.max(a[0][1],o[0]),a[1][1]=Math.max(a[1][1],o[1]),o});return{values:i,xyMinMax:a}}};function dC(r,e,t,a){var i=t.getAxis(["x","y"][r]),n=Dg(H([0,1],function(s){return e?i.coordToData(i.toLocalCoord(a[s])):i.toGlobalCoord(i.dataToCoord(a[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var gC={lineX:j(yC,0),lineY:j(yC,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return H(r,function(a,i){return[a[0]-t[0]*e[i][0],a[1]-t[1]*e[i][1]]})}};function yC(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function h4(r,e){var t=mC(r),a=mC(e),i=[t[0]/a[0],t[1]/a[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function mC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Lg=A,f4=xL("toolbox-dataZoom_"),v4=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i,n){this._brushController||(this._brushController=new bd(i.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),d4(t,a,this,n,i),p4(t,a)},e.prototype.onclick=function(t,a,i){c4[i].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var i={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Cg(Ig(this.model),n,{include:["grid"]});o.matchOutputRanges(a,n,function(u,h,f){if(f.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",f,h[0]),s("y",f,h[1])):s({lineX:"x",lineY:"y"}[v],f,h)}}),a4(n,i),this._dispatchZoomAction(i);function s(u,h,f){var v=h.getAxis(u),c=v.model,p=l(u,c,n),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(f=$i(0,f.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,h,f){var v;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,h.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var a=[];Lg(t,function(i,n){a.push($(i))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return a},e}(ir),c4={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(i4(this.ecModel))}};function Ig(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function p4(r,e){r.setIconStatus("back",o4(e)>1?"emphasis":"normal")}function d4(r,e,t,a,i){var n=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(n=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new Cg(Ig(r),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}eP("dataZoom",function(r){var e=r.getComponent("toolbox",0);if(!e)return;var t=e.getModel(["feature","dataZoom"]),a=[],i=Ig(t),n=oi(r,i);Lg(n.xAxisModels,function(s){return o(s,"xAxis","xAxisIndex")}),Lg(n.yAxisModels,function(s){return o(s,"yAxis","yAxisIndex")});function o(s,l,u){var h=s.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:t.get("filterMode",!0)||"filter",id:f4+l+h};f[u]=h,a.push(f)}return a});function g4(r){r.registerComponentModel(GH),r.registerComponentView(WH),eo("saveAsImage",sC),eo("magicType",XH),eo("dataView",e4),eo("dataZoom",v4),eo("restore",s4),st(FH)}var y4=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,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}},e}(ht);function _C(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function SC(r){if(!!et.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t-1?(i+="top:50%",n+="translateY(-50%) rotate("+(a==="left"?-225:-45)+"deg)"):(i+="left:50%",n+="translateX(-50%) rotate("+(a==="top"?225:45)+"deg)");var o=e+" solid 1px;",s=["position:absolute;width:10px;height:10px;",i+";"+n+";","border-bottom:"+o,"border-right:"+o,"background-color:"+r+";","box-shadow:8px 8px 16px -3px #000;"];return'
'}function w4(r,e){var t="cubic-bezier(0.23,1,0.32,1)",a=" "+r/2+"s "+t,i="opacity"+a+",visibility"+a;return e||(a=" "+r+"s "+t,i+=et.transformSupported?","+Pg+a:",left"+a+",top"+a),_4+":"+i}function TC(r,e,t){var a=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!et.transformSupported)return t?"top:"+i+";left:"+a+";":[["top",i],["left",a]];var n=et.transform3dSupported,o="translate"+(n?"3d":"")+"("+a+","+i+(n?",0":"")+")";return t?"top:0;left:0;"+wC+":"+o+";":[["top",0],["left",0],[Pg,o]]}function T4(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var i=r.get("textShadowColor"),n=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&n&&e.push("text-shadow:"+o+"px "+s+"px "+n+"px "+i),A(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function A4(r,e,t){var a=[],i=r.get("transitionDuration"),n=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),h=r.getModel("textStyle"),f=e1(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return a.push("box-shadow:"+v),e&&i&&a.push(w4(i,t)),n&&(et.canvasSupported?a.push("background-color:"+n):(a.push("background-color:#"+Iy(n)),a.push("filter:alpha(opacity=70)"))),A(["width","color","radius"],function(c){var p="border-"+c,d=r_(p),g=r.get(d);g!=null&&a.push(p+":"+g+(c==="color"?"":"px"))}),a.push(T4(h)),f!=null&&a.push("padding:"+An(f).join("px ")+"px"),a.join(";")+";"}function AC(r,e,t,a,i){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&dM(r,o,document.body,a,i)}else{r[0]=a,r[1]=i;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var C4=function(){function r(e,t,a){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,et.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),o=this._appendToBody=a&&a.appendToBody;AC(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,h=n.painter.getViewportRoot();Ve(h,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){var t=this._container,a=bC(t,"position"),i=t.style;i.position!=="absolute"&&a!=="absolute"&&(i.position="relative");var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,i=a.style,n=this._styleCoord;a.innerHTML?i.cssText=S4+A4(e,!this._firstShow,this._longHide)+TC(n[0],n[1],!0)+("border-color:"+Ai(t)+";")+(e.get("extraCssText")||"")+(";pointer-event:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,i,n){if(e!=null){var o=this.el;if(ft(n)&&a.get("trigger")==="item"&&!_C(a)&&(e+=b4(a.get("backgroundColor"),i,n)),ft(e))o.innerHTML=e;else if(e){o.innerHTML="",B(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,i=this._api;if(this._lastX!=null&&this._lastY!=null&&t.get("triggerOn")!=="none"){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&n.manuallyShowTip(t,a,i,{x:n._lastX,y:n._lastY,dataByCoordSys:n._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,i,n){if(!(n.from===this.uid||et.node)){var o=IC(n,i);this._ticket="";var s=n.dataByCoordSys,l=E4(n,a,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var h=M4;h.x=n.x,h.y=n.y,h.update(),Q(h).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:h},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,i,n))return;var f=OA(n,a),v=f.point[0],c=f.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:f.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,i,n){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(IC(n,i))},e.prototype._manuallyAxisShowTip=function(t,a,i,n){var o=n.seriesIndex,s=n.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(!!u){var h=u.getData(),f=qh([h.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,a){var i=t.target,n=this._tooltipModel;if(!!n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){this._lastDataByCoordSys=null;var s,l;Pn(i,function(u){if(Q(u).dataIndex!=null)return s=u,!0;if(Q(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,a):l?this._showComponentItemTooltip(t,l,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var i=t.get("showDelay");a=U(a,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(a,i):a()},e.prototype._showAxisTooltip=function(t,a){var i=this._ecModel,n=this._tooltipModel,o=[a.offsetX,a.offsetY],s=qh([a.tooltipOption],n),l=this._renderMode,u=[],h=Jt("section",{blocks:[],noHeader:!0}),f=[],v=new bc;ll(t,function(m){ll(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=DA(x,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Jt("section",{header:b,noHeader:!Ha(b),sortBlocks:!0,blocks:[]});h.blocks.push(w),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=fp(S.axis,{value:x}),D.axisValueLabel=b,D.marker=v.makeTooltipMarker("item",Ai(D.color),l);var L=z_(C.formatTooltip(M,!0,null));L.markupFragment&&w.blocks.push(L.markupFragment),L.markupText&&f.push(L.markupText),u.push(D)})}})}),h.blocks.reverse(),f.reverse();var c=a.position,p=s.get("order"),d=Q_(h,v,l,p,i.get("useUTC"),s.get("textStyle"));d&&f.unshift(d);var g=l==="richText"?` `:"
",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,i){var n=this._ecModel,o=Q(a),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,h=o.dataIndex,f=o.dataType,v=u.getData(f),c=this._renderMode,p=t.positionDefault,d=qh([v.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(h,f),m=new bc;y.marker=m.makeTooltipMarker("item",Ai(y.color),c);var _=z_(u.formatTooltip(h,!1,f)),S=d.get("order"),x=_.markupFragment?Q_(_.markupFragment,m,c,S,n.get("useUTC"),d.get("textStyle")):_.markupText,b="item_"+u.name+"_"+h;this._showOrMove(d,function(){this._showTooltipContent(d,x,y,b,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:h,dataIndex:v.getRawIndex(h),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,i){var n=Q(a),o=n.tooltipConfig,s=o.option;if(ft(s)){var l=s;s={content:l,formatter:l}}var u=[s],h=this._ecModel.getComponent(n.componentMainType,n.componentIndex);h&&u.push(h);var f=t.positionDefault,v=qh(u,this._tooltipModel,f?{position:f}:null),c=v.get("content"),p=Math.random()+"",d=new bc;this._showOrMove(v,function(){var g=$(v.get("formatterParams")||{});this._showTooltipContent(v,c,g,p,t.offsetX,t.offsetY,t.position,a,d)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,i,n,o,s,l,u,h){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var f=this._tooltipContent,v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(v&&ft(v)){var g=t.ecModel.get("useUTC"),y=B(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=gu(y.axisValue,c,g)),c=i_(c,i,!0)}else if(wt(v)){var _=MC(function(S,x){S===this._ticket&&(f.setContent(x,h,t,d,l),this._updatePosition(t,l,o,s,f,i,u))},this);this._ticket=n,c=v(i,n,_)}f.setContent(c,h,t,d,l),f.show(t,d),this._updatePosition(t,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(t,a,i,n){if(i==="axis"||B(a))return{color:n||(this._renderMode==="html"?"#fff":"none")};if(!B(a))return{color:n||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,i,n,o,s,l){var u=this._api.getWidth(),h=this._api.getHeight();a=a||t.get("position");var f=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),wt(a)&&(a=a([i,n],s,o.el,p,{viewSize:[u,h],contentSize:f.slice()})),B(a))i=LC(a[0],u),n=LC(a[1],h);else if(J(a)){var d=a;d.width=f[0],d.height=f[1];var g=qt(d,{width:u,height:h});i=g.x,n=g.y,v=null,c=null}else if(ft(a)&&l){var y=R4(a,p,f);i=y[0],n=y[1]}else{var y=I4(i,n,o,u,h,v?null:20,c?null:20);i=y[0],n=y[1]}if(v&&(i-=PC(v)?f[0]/2:v==="right"?f[0]:0),c&&(n-=PC(c)?f[1]/2:c==="bottom"?f[1]:0),_C(t)){var y=P4(i,n,o,u,h);i=y[0],n=y[1]}o.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t){var a=this._lastDataByCoordSys,i=!!a&&a.length===t.length;return i&&ll(a,function(n,o){var s=n.dataByAxis||[],l=t[o]||{},u=l.dataByAxis||[];i=i&&s.length===u.length,i&&ll(s,function(h,f){var v=u[f]||{},c=h.seriesDataIndices||[],p=v.seriesDataIndices||[];i=i&&h.value===v.value&&h.axisType===v.axisType&&h.axisId===v.axisId&&c.length===p.length,i&&ll(c,function(d,g){var y=p[g];i=i&&d.seriesIndex===y.seriesIndex&&d.dataIndex===y.dataIndex})})}),this._lastDataByCoordSys=t,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){et.node||(this._tooltipContent.dispose(),cg("itemTooltip",a))},e.type="tooltip",e}(Et);function qh(r,e,t){var a=e.ecModel,i;t?(i=new xt(t,a,a),i=new xt(e.option,i,a)):i=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof xt&&(o=o.get("tooltip",!0)),ft(o)&&(o={formatter:o}),o&&(i=new xt(o,i,a)))}return i}function IC(r,e){return r.dispatchAction||U(e.dispatchAction,e)}function I4(r,e,t,a,i,n,o){var s=t.getOuterSize(),l=s.width,u=s.height;return n!=null&&(r+l+n+2>a?r-=l+n:r+=n),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function P4(r,e,t,a,i){var n=t.getOuterSize(),o=n.width,s=n.height;return r=Math.min(r+o,a)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function R4(r,e,t){var a=t[0],i=t[1],n=10,o=5,s=0,l=0,u=e.width,h=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+h/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-n;break;case"bottom":s=e.x+u/2-a/2,l=e.y+h+n;break;case"left":s=e.x-a-n-o,l=e.y+h/2-i/2;break;case"right":s=e.x+u+n+o,l=e.y+h/2-i/2}return[s,l]}function PC(r){return r==="center"||r==="middle"}function E4(r,e,t){var a=lv(r).queryOptionMap,i=a.keys()[0];if(!(!i||i==="series")){var n=Io(e,i,a.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var h=Q(u).tooltipConfig;if(h&&h.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function k4(r){st(ol),r.registerComponentModel(y4),r.registerComponentView(L4),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})}var O4=["rect","polygon","keep","clear"];function N4(r,e){var t=Rt(r?r.brush:[]);if(!!t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var i=r&&r.toolbox;B(i)&&(i=i[0]),i||(i={feature:{}},r.toolbox=[i]);var n=i.feature||(i.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),B4(s),e&&!s.length&&s.push.apply(s,O4)}}function B4(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var RC=A;function EC(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Rg(r,e,t){var a={};return RC(e,function(n){var o=a[n]=i();RC(r[n],function(s,l){if(!!jt.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new jt(u),l==="opacity"&&(u=$(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new jt(u))}})}),a;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function kC(r,e,t){var a;A(t,function(i){e.hasOwnProperty(i)&&EC(e[i])&&(a=!0)}),a&&A(t,function(i){e.hasOwnProperty(i)&&EC(e[i])?r[i]=$(e[i]):delete r[i]})}function V4(r,e,t,a,i,n){var o={};A(r,function(f){var v=jt.prepareVisualTypes(e[f]);o[f]=v});var s;function l(f){return Ac(t,s,f)}function u(f,v){b1(t,s,f,v)}n==null?t.each(h):t.each([n],h);function h(f,v){s=n==null?f:v;var c=t.getRawDataItem(s);if(!(c&&c.visualMap===!1))for(var p=a.call(i,f),d=e[p],g=o[p],y=0,m=g.length;ye[0][1]&&(e[0][1]=n[0]),n[1]e[1][1]&&(e[1][1]=n[1])}return e&&FC(e)}};function FC(r){return new ot(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var X4=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new bd(a.getZr())).on("brush",U(this._onBrush,this)).mount()},e.prototype.render=function(t,a,i,n){this.model=t,this._updateController(t,a,i,n)},e.prototype.updateTransform=function(t,a,i,n){VC(a),this._updateController(t,a,i,n)},e.prototype.updateVisual=function(t,a,i,n){this.updateTransform(t,a,i,n)},e.prototype.updateView=function(t,a,i,n){this._updateController(t,a,i,n)},e.prototype._updateController=function(t,a,i,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(i)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,i=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:$(i),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:$(i),$from:a})},e.type="brush",e}(Et),$4="#ddd",Z4=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var i=this.option;!a&&kC(i,t,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:$4},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){!t||(this.areas=H(t,function(a){return GC(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=GC(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(ht);function GC(r,e){return at({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new xt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var q4=["rect","polygon","lineX","lineY","keep","clear"],K4=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,i){var n,o,s;a.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,i){this.render(t,a,i)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),i={};return A(t.get("type",!0),function(n){a[n]&&(i[n]=a[n])}),i},e.prototype.onclick=function(t,a,i){var n=this._brushType,o=this._brushMode;i==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?n:n===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:q4.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocale(["toolbox","brush","title"])};return a},e}(ir);function Q4(r){r.registerComponentView(X4),r.registerComponentModel(Z4),r.registerPreprocessor(N4),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,G4),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){}),eo("brush",K4)}var J4=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ht),j4=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,i){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=vt(t.get("textBaseline"),t.get("textVerticalAlign")),h=new gt({style:Ft(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=h.getBoundingRect(),v=t.get("subtext"),c=new gt({style:Ft(s,{text:v,fill:s.getTextColor(),y:f.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);h.silent=!p&&!g,c.silent=!d&&!g,p&&h.on("click",function(){bu(p,"_"+t.get("target"))}),d&&c.on("click",function(){bu(d,"_"+t.get("subtarget"))}),Q(h).eventData=Q(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(h),v&&n.add(c);var y=n.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=qt(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),n.x=_.x,n.y=_.y,n.markRedraw();var S={align:l,verticalAlign:u};h.setStyle(S),c.setStyle(S),y=n.getBoundingRect();var x=_.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new pt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});n.add(w)}},e.type="title",e}(Et);function tW(r){r.registerComponentModel(J4),r.registerComponentView(j4)}var HC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,a=t.data||[],i=t.axisType,n=this._names=[],o;i==="category"?(o=[],A(a,function(u,h){var f=$t(Do(u),""),v;J(u)?(v=$(u),v.value=h):v=h,o.push(v),n.push(f)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new xe([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ht),WC=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=ya(HC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(HC);Ht(WC,yc.prototype);var eW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Et),rW=function(r){E(e,r);function e(t,a,i,n){var o=r.call(this,t,a,i)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(gr),Og=Math.PI,UC=At(),aW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,i){if(this.model=t,this.api=i,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var h=l.scale.getLabel({value:u});return Jt("nameValue",{noName:!0,value:h})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,a){var i=t.get(["label","position"]),n=t.get("orient"),o=nW(t,a),s;i==null||i==="auto"?s=n==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:Og/2},f=n==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Og/180;var m,_,S,x=v.get("position",!0),b=c&&v.get("showPlayBtn",!0),w=c&&v.get("showPrevBtn",!0),T=c&&v.get("showNextBtn",!0),C=0,M=f;x==="left"||x==="bottom"?(b&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-p,0],M-=g)):(b&&(m=[M-p,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-p,0],M-=g));var D=[C,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:f,orient:n,rotation:h[n],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var i=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=ze(),l=o.x,u=o.y+o.height;yr(s,s,[-l,-u]),qa(s,s,-Og/2),yr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var h=m(o),f=m(i.getBoundingRect()),v=m(n.getBoundingRect()),c=[i.x,i.y],p=[n.x,n.y];p[0]=c[0]=h[0][0];var d=t.labelPosOpt;if(d==null||ft(d)){var g=d==="+"?0:1;_(c,f,h,1,g),_(p,v,h,1,1-g)}else{var g=d>=0?0:1;_(c,f,h,1,g),p[1]=c[1]+d}i.setPosition(c),n.setPosition(p),i.rotation=n.rotation=t.rotation,y(i),y(n);function y(S){S.originX=h[0][0]-S.x,S.originY=h[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,b,w,T){S[w]+=b[w][T]-x[w][T]}},e.prototype._createAxis=function(t,a){var i=a.getData(),n=a.get("axisType"),o=iW(a,n);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.niceTicks();var l=new rW("value",o,t.axisExtent,n);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new q;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,i,n){var o=i.getExtent();if(!!n.get(["lineStyle","show"])){var s=new Qt({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new Qt({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:X({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,i,n){var o=this,s=n.getData(),l=i.scale.getTicks();this._tickSymbols=[],A(l,function(u){var h=i.dataToCoord(u.value),f=s.getItemModel(u.value),v=f.getModel("itemStyle"),c=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),d={x:h,y:0,onclick:U(o._changeTimeline,o,u.value)},g=YC(f,v,a,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Lt(g);var y=Q(g);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=n):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,i,n){var o=this,s=i.getLabelModel();if(!!s.get("show")){var l=n.getData(),u=i.getViewLabels();this._tickLabels=[],A(u,function(h){var f=h.tickValue,v=l.getItemModel(f),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=i.dataToCoord(h.tickValue),y=new gt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:U(o._changeTimeline,o,f),silent:!1,style:Ft(c,{text:h.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ft(p),y.ensureState("progress").style=Ft(d),a.add(y),Lt(y),UC(y).dataIndex=f,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,i,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),h=n.getPlayState(),f=n.get("inverse",!0);v(t.nextBtnPosition,"next",U(this._changeTimeline,this,f?"-":"+")),v(t.prevBtnPosition,"prev",U(this._changeTimeline,this,f?"+":"-")),v(t.playPosition,h?"stop":"play",U(this._handlePlayClick,this,!h),!0);function v(c,p,d,g){if(!!c){var y=He(vt(n.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=oW(n,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Lt(_)}}},e.prototype._renderCurrentPointer=function(t,a,i,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,h={onCreate:function(f){f.draggable=!0,f.drift=U(u._handlePointerDrag,u),f.ondragend=U(u._handlePointerDragend,u),XC(f,u._progressLine,s,i,n,!0)},onUpdate:function(f){XC(f,u._progressLine,s,i,n)}};this._currentPointer=YC(l,l,this._mainGroup,{},this._currentPointer,h)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var i=this._toAxisCoord(t)[0],n=this._axis,o=Ue(n.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[n]=+o[n].toFixed(v)),[o,f]}var Bg={min:j(Jh,"min"),max:j(Jh,"max"),average:j(Jh,"average"),median:j(Jh,"median")};function hl(r,e){var t=r.getData(),a=r.coordinateSystem;if(e&&!cW(e)&&!B(e.coord)&&a){var i=a.dimensions,n=ZC(e,t,a,r);if(e=$(e),e.type&&Bg[e.type]&&n.baseAxis&&n.valueAxis){var o=lt(i,n.baseAxis.dim),s=lt(i,n.valueAxis.dim),l=Bg[e.type](t,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else{for(var u=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis],h=0;h<2;h++)Bg[u[h]]&&(u[h]=Vg(t,t.mapDimension(i[h]),u[h]));e.coord=u}}return e}function ZC(r,e,t,a){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,i.valueAxis=t.getAxis(pW(a,i.valueDataDim)),i.baseAxis=t.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=a.getBaseAxis(),i.valueAxis=t.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function pW(r,e){var t=r.getData(),a=t.dimensions;e=t.getDimension(e);for(var i=0;i=0&&typeof l=="number"&&(l=+l.toFixed(Math.min(d,20))),c.coord[f]=p.coord[f]=l,n=[c,p,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var g=[hl(r,n[0]),hl(r,n[1]),V({},n[2])];return g[2].type=g[2].type||null,at(g[2],g[0]),at(g[2],g[1]),g};function tf(r){return!isNaN(r)&&!isFinite(r)}function QC(r,e,t,a){var i=1-r,n=a.dimensions[r];return tf(e[i])&&tf(t[i])&&e[r]===t[r]&&a.getAxis(n).containData(e[r])}function SW(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(QC(1,t,a,r)||QC(0,t,a,r)))return!0}return fl(r,e[0])&&fl(r,e[1])}function Gg(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=F(o.get("x"),i.getWidth()),u=F(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var h=n.dimensions,f=r.get(h[0],e),v=r.get(h[1],e);s=n.dataToPoint([f,v])}if(ea(n,"cartesian2d")){var c=n.getAxis("x"),p=n.getAxis("y"),h=n.dimensions;tf(r.get(h[0],e))?s[0]=c.toGlobalCoord(c.getExtent()[t?0:1]):tf(r.get(h[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var xW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=oa.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=jh(o).from,u=jh(o).to;l.each(function(h){Gg(l,h,!0,n,i),Gg(u,h,!1,n,i)}),s.each(function(h){s.setItemLayout(h,[l.getItemLayout(h),u.getItemLayout(h)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,new ud);this.group.add(h.group);var f=bW(o,t,a),v=f.from,c=f.to,p=f.line;jh(a).from=v,jh(a).to=c,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");B(d)||(d=[d,d]),B(g)||(g=[g,g]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),f.from.each(function(S){_(v,S,!0),_(c,S,!1)}),p.each(function(S){var x=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[v.getItemLayout(S),c.getItemLayout(S)]),x.stroke==null&&(x.stroke=v.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(S,"symbolOffset"),fromSymbolRotate:v.getItemVisual(S,"symbolRotate"),fromSymbolSize:v.getItemVisual(S,"symbolSize"),fromSymbol:v.getItemVisual(S,"symbol"),toSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(S,"symbolOffset"),toSymbolRotate:c.getItemVisual(S,"symbolRotate"),toSymbolSize:c.getItemVisual(S,"symbolSize"),toSymbol:c.getItemVisual(S,"symbol"),style:x})}),h.updateData(p),f.line.eachItemGraphicEl(function(S,x){S.traverse(function(b){Q(b).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);Gg(S,x,b,t,n);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=fs(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:vt(w.get("symbolOffset"),m[b?0:1]),symbolRotate:vt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:vt(w.get("symbolSize"),g[b?0:1]),symbol:vt(w.get("symbol",!0),d[b?0:1]),style:T})}this.markKeep(h),h.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(Fg);function bW(r,e,t){var a;r?a=H(r&&r.dimensions,function(u){var h=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return X({name:u},h)}):a=[{name:"value",type:"float"}];var i=new xe(a,t),n=new xe(a,t),o=new xe([],t),s=H(t.get("data"),j(_W,e,r,t));r&&(s=kt(s,j(SW,r)));var l=r?qC:function(u){return u.value};return i.initData(H(s,function(u){return u[0]}),null,l),n.initData(H(s,function(u){return u[1]}),null,l),o.initData(H(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}function wW(r){r.registerComponentModel(mW),r.registerComponentView(xW),r.registerPreprocessor(function(e){Ng(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var TW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,i){return new e(t,a,i)},e.type="markArea",e.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(oa),ef=At(),AW=function(r,e,t,a){var i=hl(r,a[0]),n=hl(r,a[1]),o=i.coord,s=n.coord;o[0]=ee(o[0],-Infinity),o[1]=ee(o[1],-Infinity),s[0]=ee(s[0],Infinity),s[1]=ee(s[1],Infinity);var l=cf([{},i,n]);return l.coord=[i.coord,n.coord],l.x0=i.x,l.y0=i.y,l.x1=n.x,l.y1=n.y,l};function rf(r){return!isNaN(r)&&!isFinite(r)}function JC(r,e,t,a){var i=1-r;return rf(e[i])&&rf(t[i])}function CW(r,e){var t=e.coord[0],a=e.coord[1];return ea(r,"cartesian2d")&&t&&a&&(JC(1,t,a)||JC(0,t,a))?!0:fl(r,{coord:t,x:e.x0,y:e.y0})||fl(r,{coord:a,x:e.x1,y:e.y1})}function jC(r,e,t,a,i){var n=a.coordinateSystem,o=r.getItemModel(e),s,l=F(o.get(t[0]),i.getWidth()),u=F(o.get(t[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(t,e));else{var h=r.get(t[0],e),f=r.get(t[1],e),v=[h,f];n.clampData&&n.clampData(v,v),s=n.dataToPoint(v,!0)}if(ea(n,"cartesian2d")){var c=n.getAxis("x"),p=n.getAxis("y"),h=r.get(t[0],e),f=r.get(t[1],e);rf(h)?s[0]=c.toGlobalCoord(c.getExtent()[t[0]==="x0"?0:1]):rf(f)&&(s[1]=p.toGlobalCoord(p.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var tD=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],DW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,i){a.eachSeries(function(n){var o=oa.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=H(tD,function(f){return jC(s,l,f,n,i)});s.setItemLayout(l,u);var h=s.getItemGraphicEl(l);h.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,i,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,h=u.get(s)||u.set(s,{group:new q});this.group.add(h.group),this.markKeep(h);var f=MW(o,t,a);a.setData(f),f.each(function(v){var c=H(tD,function(T){return jC(f,v,T,t,n)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(f.get("x0",v)),p.parse(f.get("x1",v))],_=[d.parse(f.get("y0",v)),d.parse(f.get("y1",v))];Ue(m),Ue(_);var S=!(g[0]>m[1]||g[1]_[1]||y[1]<_[0]),x=!S;f.setItemLayout(v,{points:c,allClipped:x});var b=f.getItemModel(v).getModel("itemStyle").getItemStyle(),w=fs(l,"color");b.fill||(b.fill=w,typeof b.fill=="string"&&(b.fill=Tl(b.fill,.4))),b.stroke||(b.stroke=w),f.setItemVisual(v,"style",b)}),f.diff(ef(h).data).add(function(v){var c=f.getItemLayout(v);if(!c.allClipped){var p=new me({shape:{points:c.points}});f.setItemGraphicEl(v,p),h.group.add(p)}}).update(function(v,c){var p=ef(h).data.getItemGraphicEl(c),d=f.getItemLayout(v);d.allClipped?p&&h.group.remove(p):(p?dt(p,{shape:{points:d.points}},a,v):p=new me({shape:{points:d.points}}),f.setItemGraphicEl(v,p),h.group.add(p))}).remove(function(v){var c=ef(h).data.getItemGraphicEl(v);h.group.remove(c)}).execute(),f.eachItemGraphicEl(function(v,c){var p=f.getItemModel(c),d=f.getItemVisual(c,"style");v.useStyle(f.getItemVisual(c,"style")),fe(v,ne(p),{labelFetcher:a,labelDataIndex:c,defaultText:f.getName(c)||"",inheritColor:typeof d.fill=="string"?Tl(d.fill,1):"#000"}),oe(v,p),Lt(v),Q(v).dataModel=a}),ef(h).data=f,h.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(Fg);function MW(r,e,t){var a,i,n=["x0","y0","x1","y1"];r?(a=H(r&&r.dimensions,function(l){var u=e.getData(),h=u.getDimensionInfo(u.mapDimension(l))||{};return X({name:l},h)}),i=new xe(H(n,function(l,u){return{name:l,type:a[u%2].type}}),t)):(a=[{name:"value",type:"float"}],i=new xe(a,t));var o=H(t.get("data"),j(AW,e,r,t));r&&(o=kt(o,j(CW,r)));var s=r?function(l,u,h,f){return l.coord[Math.floor(f/2)][f%2]}:function(l){return l.value};return i.initData(o,null,s),i.hasItemOption=!0,i}function LW(r){r.registerComponentModel(TW),r.registerComponentView(DW),r.registerPreprocessor(function(e){Ng(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var IW=function(r,e){if(e==="all")return{type:"all",title:r.getLocale(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocale(["legend","selector","inverse"])}},Hg=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,i=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),B(a)&&A(a,function(n,o){ft(n)&&(n={type:n}),a[o]=at(n,IW(i,n.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,i=0;i=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolSize:"auto",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ht),ao=j,eD=A,af=q,rD=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new af),this.group.add(this._selectorGroup=new af),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,a,i,l,s,u);var h=t.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},v=t.get("padding"),c=qt(h,f,v),p=this.layoutInner(t,o,c,n,l,u),d=qt(X({width:p.width,height:p.height},h),f,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=oC(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,i,n,o,s,l){var u=this.getContentGroup(),h=Z(),f=a.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),eD(a.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d===` `)){var g=new af;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!h.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendSymbol"),x=m.getVisual("style");m.getVisual("symbolSize");var b=this._createItem(y,d,p,c,a,t,_,x,S,f);b.on("click",ao(aD,d,null,n,v)).on("mouseover",ao(Wg,y.name,null,n,v)).on("mouseout",ao(Ug,y.name,null,n,v)),h.set(d,!0)}else i.eachRawSeries(function(w){if(!h.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendSymbol"),L=Ge(M.fill);L&&L[3]===0&&(L[3]=.2,M.fill=Yr(L,"rgba"));var I=this._createItem(w,d,p,c,a,t,{},M,D,f);I.on("click",ao(aD,null,d,n,v)).on("mouseover",ao(Wg,null,d,n,v)).on("mouseout",ao(Ug,null,d,n,v)),h.set(d,!0)}},this)},this),o&&this._createSelector(o,a,n,s,l)},e.prototype._createSelector=function(t,a,i,n,o){var s=this.getSelectorGroup();eD(t,function(u){var h=u.type,f=new gt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);fe(f,{normal:v,emphasis:c},{defaultText:u.title}),Lt(f)})},e.prototype._createItem=function(t,a,i,n,o,s,l,u,h,f){var v=t.visualDrawType,c=o.get("itemWidth"),p=o.get("itemHeight"),d=o.isSelected(a),g=n.get("symbolKeepAspect"),y=n.get("icon");h=y||h||"roundRect";var m=o.getModel("lineStyle"),_=PW(h,n,m,l,u,v,d),S=new af,x=n.getModel("textStyle");typeof t.getLegendIcon=="function"&&!y?S.add(t.getLegendIcon({itemWidth:c,itemHeight:p,symbolType:h,symbolKeepAspect:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle})):S.add(RW({itemWidth:c,itemHeight:p,symbolType:h,symbolKeepAspect:g,itemStyle:_.itemStyle,lineStyle:_.lineStyle}));var b=s==="left"?c+5:-5,w=s,T=o.get("formatter"),C=a;typeof T=="string"&&T?C=T.replace("{name}",a!=null?a:""):typeof T=="function"&&(C=T(a));var M=n.get("inactiveColor");S.add(new gt({style:Ft(x,{text:C,x:b,y:p/2,fill:d?x.getTextColor():M,align:w,verticalAlign:"middle"})}));var D=new pt({shape:S.getBoundingRect(),invisible:!0}),L=n.getModel("tooltip");return L.get("show")&&xn({el:D,componentModel:o,itemName:a,itemTooltipOption:L.option}),S.add(D),S.eachChild(function(I){I.silent=!0}),D.silent=!f,this.getContentGroup().add(S),Lt(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(t,a,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Di(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var h=l.getBoundingRect(),f=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),o){Di("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=h[g]+p:f[d]+=v[g]+p,c[1-d]+=h[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=h[g]+p+v[g],_[y]=Math.max(h[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Et);function PW(r,e,t,a,i,n,o){for(var s=e.getModel("itemStyle"),l=qv.concat([["decal"]]),u={},h=0;h0?2:0:u[v]=c}for(var p=e.getModel("lineStyle"),d=Zv.concat([["inactiveColor"],["inactiveWidth"]]),g={},h=0;h0?2:0:g[v]=c}if(u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),g.stroke==="auto"&&(g.stroke=i.fill),!o){var y=e.get("inactiveBorderWidth"),m=u[r.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth=y==="auto"?i.lineWidth>0&&m?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),g.stroke=t.get("inactiveColor"),g.lineWidth=t.get("inactiveWidth")}return{itemStyle:u,lineStyle:g}}function RW(r){var e=r.symbolType||"roundRect",t=Yt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function aD(r,e,t,a){Ug(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),Wg(r,e,t,a)}function iD(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,i=e.length;ai[o],g=[-c.x,-c.y];a||(g[n]=h[u]);var y=[0,0],m=[-p.x,-p.y],_=vt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[n]+=i[o]-p[o]:y[n]+=p[o]+_}m[1-n]+=c[s]/2-p[s]/2,h.setPosition(g),f.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=d?i[o]:c[o],x[s]=Math.max(c[s],p[s]),x[l]=Math.min(0,p[l]+m[1-n]),f.__rectSize=i[o],d){var b={x:0,y:0};b[o]=Math.max(i[o]-p[o]-_,0),b[s]=x[s],f.setClipPath(new pt({shape:b})),f.__rectSize=b[o]}else v.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&dt(h,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,a,i){var n=this._getPageInfo(a)[t];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(h){var f=h+"DataIndex",v=a[f]!=null,c=i.childOfName(h);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var n=i.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;n&&o&&n.setStyle("text",ft(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=Yg[o],l=Xg[o],u=this._findTargetItemIndex(a),h=i.children(),f=h[u],v=h.length,c=v?1:0,p={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var d=S(f);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(h[g]),(!_&&m.e>y.s+n||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(h[g]),(!_||!x(m,_.s))&&y.i=w&&b.s<=w+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,i=this.getContentGroup(),n;return i.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(a=s)}),a!=null?a:n},e.type="legend.scroll",e}(rD);function BW(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(a)})})}function VW(r){st(nD),r.registerComponentModel(OW),r.registerComponentView(NW),BW(r)}function zW(r){st(nD),st(VW)}var FW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=ya(sl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(sl),$g=At();function GW(r,e,t){$g(r).coordSysRecordMap.each(function(a){var i=a.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function HW(r,e){for(var t=$g(r).coordSysRecordMap,a=t.keys(),i=0;ia[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function $W(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=$g(t),i=a.coordSysRecordMap||(a.coordSysRecordMap=Z());i.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=tC(n);A(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,WW(t,s.model)),h=u.dataZoomInfoMap||(u.dataZoomInfoMap=Z());h.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),i.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){lD(i,n);return}var h=XW(l);o.enable(h.controlType,h.opt),o.setPointerChecker(n.containsPoint),ls(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var ZW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),GW(i,t,{pan:U(Zg.pan,this),zoom:U(Zg.zoom,this),scrollMove:U(Zg.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){HW(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(xg),Zg={zoom:function(r,e,t,a){var i=this.range,n=i.slice(),o=r.axisModels[0];if(!!o){var s=qg[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/a.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if($i(0,n,[0,100],0,h.minSpan,h.maxSpan),this.range=n,i[0]!==n[0]||i[1]!==n[1])return n}},pan:uD(function(r,e,t,a,i,n){var o=qg[a]([n.oldX,n.oldY],[n.newX,n.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:uD(function(r,e,t,a,i,n){var o=qg[a]([0,0],[n.scrollDelta,n.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function uD(r){return function(e,t,a,i){var n=this.range,o=n.slice(),s=e.axisModels[0];if(!!s){var l=r(o,s,e,t,a,i);if($i(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var qg={grid:function(r,e,t,a,i){var n=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,a,i){var n=t.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,a,i){var n=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}};function hD(r){bg(r),r.registerComponentModel(FW),r.registerComponentView(ZW),$W(r)}var qW=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ya(sl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(sl),cl=pt,fD=7,KW=1,Kg=30,QW=7,pl="horizontal",vD="vertical",JW=5,jW=["line","bar","candlestick","scatter"],t6={easing:"cubicOut",duration:100},e6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},e.prototype.render=function(t,a,i,n){if(r.prototype.render.apply(this,arguments),ls(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){uR(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new q;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,i=t.get("brushSelect"),n=i?QW:0,o=this._findCoordRect(),s={width:a.getWidth(),height:a.getHeight()},l=this._orient===pl?{right:s.width-o.x-o.width,top:s.height-Kg-fD-n,width:o.width,height:Kg}:{right:fD,top:o.y,width:Kg,height:o.height},u=Cn(t.option);A(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var h=qt(u,s);this._location={x:h.x,y:h.y},this._size=[h.width,h.height],this._orient===vD&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===pl&&!o?{scaleY:l?1:-1,scaleX:1}:i===pl&&o?{scaleY:l?1:-1,scaleX:-1}:i===vD&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new cl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new cl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,i=t.series,n=i.getRawData(),o=i.getShadowDim?i.getShadowDim():t.otherDim;if(o==null)return;var s=n.getDataExtent(o),l=(s[1]-s[0])*.3;s=[s[0]-l,s[1]+l];var u=[0,a[1]],h=[0,a[0]],f=[[a[0],0],[0,0]],v=[],c=h[1]/(n.count()-1),p=0,d=Math.round(n.count()/a[0]),g;n.each([o],function(x,b){if(d>0&&b%d){p+=c;return}var w=x==null||isNaN(x)||x==="",T=w?0:Tt(x,s,u,!0);w&&!g&&b?(f.push([f[f.length-1][0],0]),v.push([v[v.length-1][0],0])):!w&&g&&(f.push([p,0]),v.push([p,0])),f.push([p,T]),v.push([p,T]),p+=c,g=w});var y=this.dataZoomModel;function m(x){var b=y.getModel(x?"selectedDataBackground":"dataBackground"),w=new q,T=new me({shape:{points:f},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),C=new Me({shape:{points:v},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return w.add(T),w.add(C),w}for(var _=0;_<3;_++){var S=m(_===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var i,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!i&&!(a!==!0&<(jW,u.get("type"))<0)){var h=n.getComponent(Ba(o),s).axis,f=r6(o),v,c=u.coordinateSystem;f!=null&&c.getOtherAxis&&(v=c.getOtherAxis(h).inverse),f=u.getData().mapDimension(f),i={thisAxis:h,series:u,thisDim:o,otherDim:f,otherAxisInverse:v}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,i=a.handles=[null,null],n=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,f=l.get("brushSelect"),v=a.filler=new cl({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new cl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:KW,fill:"rgba(0,0,0,0)"}})),A([0,1],function(_){var S=l.get("handleIcon");!Vu[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=Yt(S,-1,0,2,2,null,!0);x.attr({cursor:cD(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=F(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Lt(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(i[_]=x);var C=l.getModel("textStyle");t.add(n[_]=new gt({silent:!0,invisible:!0,style:Ft(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var c=v;if(f){var p=F(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=a.moveHandleIcon=Yt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=a.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:cD(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Tt(t[0],[0,100],a,!0),Tt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];$i(a,n,o,i.get("zoomLock")?"all":t,s.minSpan!=null?Tt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Tt(s.maxSpan,l,o,!0):null);var u=this._range,h=this._range=Ue([Tt(n[0],o,l,!0),Tt(n[1],o,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},e.prototype._updateView=function(t){var a=this._displayables,i=this._handleEnds,n=Ue(i.slice()),o=this._size;A([0,1],function(c){var p=a.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[c]+(c?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,n[0],n[1],o[0]],h=0;ha[0]||i[1]<0||i[1]>a[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,i=t.offsetY;this._brushStart=new nt(a,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var i=a.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ue([Tt(i.x,o,s,!0),Tt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Wr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var i=this._displayables,n=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new cl({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),h=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:h[0],y:0,width:u[0]-h[0],height:f[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?t6:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=tC(this.dataZoomModel).infoList;if(!t&&a.length){var i=a[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(xg);function r6(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function cD(r){return r==="vertical"?"ns-resize":"ew-resize"}function pD(r){r.registerComponentModel(qW),r.registerComponentView(e6),bg(r)}function a6(r){st(hD),st(pD)}var dD={get:function(r,e,t){var a=$((i6[r]||{})[e]);return t&&B(a)?a[a.length-1]:a}},i6={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},gD=jt.mapVisual,n6=jt.eachVisual,o6=B,yD=A,s6=Ue,l6=Tt,nf=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-Infinity,Infinity],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,a,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,a){var i=this.option;et.canvasSupported||(i.realtime=!1),!a&&kC(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=U(t,this),this.controllerVisuals=Rg(this.option.controller,a,t),this.targetVisuals=Rg(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,a=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,n){a.push(n)}):a=Rt(t),a},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&t.call(a,n)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(i){i===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],B(t)&&(t=t.slice(),u=!0);var h=a?t:u?[f(t[0]),f(t[1])]:f(t);if(ft(l))return l.replace("{value}",u?h[0]:h).replace("{value2}",u?h[1]:h);if(wt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+h[1]:t[1]===s[1]?i[1]+" "+h[0]:h[0]+" - "+h[1];return h;function f(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=s6([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimension=function(t){var a=this.option.dimension,i=t.dimensions;if(!(a==null&&!i.length)){if(a!=null)return t.getDimension(a);for(var n=t.dimensions,o=n.length-1;o>=0;o--){var s=n[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return s}}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,i={inRange:a.inRange,outOfRange:a.outOfRange},n=a.target||(a.target={}),o=a.controller||(a.controller={});at(n,i),at(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),h.call(this,o);function l(f){o6(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:t.get("gradientColor")}}function u(f,v,c){var p=f[v],d=f[c];p&&!d&&(d=f[c]={},yD(p,function(g,y){if(!!jt.isValidType(y)){var m=dD.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function h(f){var v=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,c=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";yD(this.stateList,function(y){var m=this.itemSize,_=f[y];_||(_=f[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&$(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&$(c)||(s?m[0]:[m[0],m[0]])),_.symbol=gD(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-Infinity;n6(S,function(b){b>x&&(x=b)}),_.symbolSize=gD(S,function(b){return l6(b,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ht),mD=[20,140],u6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=mD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=mD[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):B(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Ue((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]=i[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimension(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),a.push({seriesId:i.id,dataIndex:n})},this),a},e.prototype.getVisualMeta=function(t){var a=_D(this,"outOfRange",this.getExtent()),i=_D(this,"inRange",this.option.range.slice()),n=[];function o(c,p){n.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=i.length,h=a.length;lt[1])break;n.push({color:this.getControllerVisual(l,"color",a),offset:s/i})}return n.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),n},e.prototype._createBarPoints=function(t,a){var i=this.visualMapModel.itemSize;return[[i[0]-a[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,i=this.visualMapModel.get("inverse");return new q(a==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(!!this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent();h6([0,1],function(h){var f=o[h];f.setStyle("fill",a.handlesColor[h]),f.y=t[h];var v=Br(t[h],[0,l[1]],u,!0),c=this.getControllerVisual(v,"symbolSize");f.scaleX=f.scaleY=c/l[0],f.x=l[0]-c/2;var p=fr(i.handleLabelPoints[h],wi(f,this.group));s[h].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],h=this._shapes,f=h.indicator;if(!!f){f.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=Br(t,s,u,!0),g=l[0]-p/2,y={x:f.x,y:f.y};f.y=d,f.x=g;var m=fr(h.indicatorLabelPoint,wi(f,this.group)),_=h.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",h.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:d,style:{fill:c}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(w,C),_.animateTo(T,C)}else f.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;Do[1]&&(f[1]=Infinity),a&&(f[0]===-Infinity?this._showIndicator(h,f[1],"< ",l):f[1]===Infinity?this._showIndicator(h,f[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var v=this._hoverLinkDataIndices,c=[];(a||AD(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var p=TL(v,c);this._dispatchHighDown("downplay",of(p[0],i)),this._dispatchHighDown("highlight",of(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a=t.target,i=this.visualMapModel;if(!(!a||Q(a).dataIndex==null)){var n=Q(a),o=this.ecModel.getSeriesByIndex(n.seriesIndex);if(!!i.isTargetSeries(o)){var s=o.getData(n.dataType),l=s.get(i.getDataDimension(s),n.dataIndex);isNaN(l)||this._showIndicator(l,l)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var i=0;i0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(d6,g6),A(y6,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(_6))}function ID(r){r.registerComponentModel(u6),r.registerComponentView(c6),LD(r)}var S6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],x6[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=$(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=H(this._pieceList,function(l){return l=$(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},i=jt.listVisualTypes(),n=this.isCategory();A(t.pieces,function(s){A(i,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(h){u=u||o(t,h,l)||o(t.target,h,l)},this),!u&&A(this.stateList,function(h){(t[h]||(t[h]={}))[l]=dD.get(l,h==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var i=this.option,n=this._pieceList,o=(a?i:t).selected||{};if(i.selected=o,A(n,function(l,u){var h=this.getSelectedMapKey(l);o.hasOwnProperty(h)||(o[h]=!0)},this),i.selectedMode==="single"){var s=!1;A(n,function(l,u){var h=this.getSelectedMapKey(l);o[h]&&(s?o[h]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=$(t)},e.prototype.getValueState=function(t){var a=jt.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimension(s),function(l,u){var h=jt.findPieceIndex(l,i);h===t&&o.push(u)},this),a.push({seriesId:n.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var i=t.interval||[];a=i[0]===-Infinity&&i[1]===Infinity?0:(i[0]+i[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],i=["",""],n=this;function o(h,f){var v=n.getRepresentValue({interval:h});f||(f=n.getValueState(v));var c=t(v,f);h[0]===-Infinity?i[0]=c:h[1]===Infinity?i[1]=c:a.push({value:h[0],color:c},{value:h[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-Infinity,Infinity]});else{var l=s[0].interval[0];l!==-Infinity&&s.unshift({interval:[-Infinity,l]}),l=s[s.length-1].interval[1],l!==Infinity&&s.push({interval:[l,Infinity]})}var u=-Infinity;return A(s,function(h){var f=h.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=ya(nf.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(nf),x6={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var n=(a[1]-a[0])/i;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-Infinity,a[0]],close:[0,0]});for(var o=0,s=a[0];o","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function PD(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var b6=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,i=a.get("textGap"),n=a.textStyleModel,o=n.getFont(),s=n.getTextColor(),l=this._getItemAlign(),u=a.itemSize,h=this._getViewData(),f=h.endsText,v=ee(a.get("showLabel",!0),!f);f&&this._renderEndsText(t,f[0],u,v,l),A(h.viewPieceList,function(c){var p=c.piece,d=new q;d.onclick=U(this._onItemClick,this,p),this._enableHoverLink(d,c.indexInModelPieceList);var g=a.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),v){var y=this.visualMapModel.getValueState(g);d.add(new gt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),f&&this._renderEndsText(t,f[1],u,v,l),Di(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var i=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:of(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return bD(t,this.api,t.itemSize);var i=a.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,a,i,n,o){if(!!a){var s=new q,l=this.visualMapModel.textStyleModel;s.add(new gt({style:{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:a,font:l.getFont(),fill:l.getTextColor()}})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=H(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?a.reverse():i&&(i=i.slice().reverse()),{viewPieceList:a,endsText:i}},e.prototype._createItemSymbol=function(t,a,i){t.add(Yt(this.getControllerVisual(a,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(a,"color")))},e.prototype._onItemClick=function(t){var a=this.visualMapModel,i=a.option,n=$(i.selected),o=a.getSelectedMapKey(t);i.selectedMode==="single"?(n[o]=!0,A(n,function(s,l){n[l]=l===o})):n[o]=!n[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n})},e.type="visualMap.piecewise",e}(SD);function RD(r){r.registerComponentModel(S6),r.registerComponentView(b6),LD(r)}function w6(r){st(ID),st(RD)}var T6={label:{enabled:!0},decal:{show:!1}},ED=At(),A6={};function C6(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=$(T6);at(a.label,r.getLocaleModel().get("aria"),!1),at(t.option,a,!1),i(),n();function i(){var u=t.getModel("decal"),h=u.get("show");if(h){var f=Z();r.eachSeries(function(v){if(!!v.useColorPaletteOnData){var c=f.get(v.type);c||(c={},f.set(v.type,c)),ED(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(typeof v.enableAriaDecal=="function"){v.enableAriaDecal();return}var c=v.getData();if(v.useColorPaletteOnData){var p=v.getRawData(),d={},g=ED(v).scope;c.each(function(x){var b=c.getRawIndex(x);d[b]=x});var y=p.count();p.each(function(x){var b=d[x],w=p.getName(x)||x+"",T=lc(v.ecModel,w,g,y),C=c.getItemVisual(b,"decal");c.setItemVisual(b,"decal",S(C,T))})}else{var m=lc(v.ecModel,v.name,A6,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}function S(x,b){var w=x?V(V({},b),x):b;return w.dirty=!0,w}})}}function n(){var u=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=X(h.option,u),!!h.get("enabled")){var f=e.getZr().dom;if(h.get("description")){f.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(T,C){if(C1?h.get(["series","multiple",L]):h.get(["series","single",L]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>c){var P=h.get(["data","partialData"]);M+=o(P,{displayCnt:c})}else M+=h.get(["data","allData"]);for(var R=[],k=0;k":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},L6=function(){function r(e){var t=this._condVal=ft(e)?new RegExp(e):lM(e)?e:null;if(t==null){var a="";yt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return t==="string"?this._condVal.test(e):t==="number"?this._condVal.test(e+""):!1},r}(),I6=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),P6=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;ti.endVal?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),o1?i.options.decimal+s[1]:"",i.options.useGrouping){h="";for(var v=0,c=l.length;ve;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold){this.finalEndVal=e;var a=this.countDown?1:-1;this.endVal=e+a*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},r.prototype.start=function(e){this.error||(this.callback=e,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},r.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},r.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},r.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},r.prototype.printValue=function(e){var t=this.formattingFn(e);this.el.tagName==="INPUT"?this.el.value=t:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=t:this.el.innerHTML=t},r.prototype.ensureNumber=function(e){return typeof e=="number"&&!isNaN(e)},r.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: "+e,null)},r.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},r}();const Y6=[{title:"\u4ECA\u65E5\u8BBF\u95EE\u4EBA\u6570",titleNum:"123",tip:"\u5728\u573A\u4EBA\u6570",tipNum:"911",color:"#F95959",iconColor:"#F86C6B",icon:"iconfont icon-jinridaiban"},{title:"\u5B9E\u9A8C\u5BA4\u603B\u6570",titleNum:"123",tip:"\u4F7F\u7528\u4E2D",tipNum:"611",color:"#8595F4",iconColor:"#92A1F4",icon:"iconfont icon-AIshiyanshi"},{title:"\u7533\u8BF7\u4EBA\u6570\uFF08\u6708\uFF09",titleNum:"123",tip:"\u901A\u8FC7\u4EBA\u6570",tipNum:"911",color:"#FEBB50",iconColor:"#FDC566",icon:"iconfont icon-shenqingkaiban"}],X6=[{icon:"iconfont icon-yangan",label:"\u70DF\u611F",value:"2.1%OBS/M",iconColor:"#F72B3F"},{icon:"iconfont icon-wendu",label:"\u6E29\u5EA6",value:"30\u2103",iconColor:"#91BFF8"},{icon:"iconfont icon-shidu",label:"\u6E7F\u5EA6",value:"57%RH",iconColor:"#88D565"},{icon:"iconfont icon-zaosheng",label:"\u566A\u58F0",value:"57DB",iconColor:"#FBD4A0"}],$6=[{time1:"\u4ECA\u5929",time2:"12:20:30",title:"\u66F4\u540D",label:"\u6B63\u5F0F\u66F4\u540D\u4E3A vue-next-admin"},{time1:"02-17",time2:"12:20:30",title:"\u9875\u9762",label:"\u5B8C\u6210\u5BF9\u9996\u9875\u7684\u5F00\u53D1"},{time1:"02-14",time2:"12:20:30",title:"\u9875\u9762",label:"\u65B0\u589E\u4E2A\u4EBA\u4E2D\u5FC3"}];var ty={name:"Home",setup(){const{proxy:r}=XD(),e=FD(),t=HD({topCardItemList:Y6,environmentList:X6,activitiesList:$6,tableData:{data:[{date:"2016-05-02",name:"1\u53F7\u5B9E\u9A8C\u5BA4",address:"\u70DF\u611F2.1%OBS/M"},{date:"2016-05-04",name:"2\u53F7\u5B9E\u9A8C\u5BA4",address:"\u6E29\u5EA630\u2103"},{date:"2016-05-01",name:"3\u53F7\u5B9E\u9A8C\u5BA4",address:"\u6E7F\u5EA657%RH"}]}}),a=ny(()=>GD(new Date)),i=()=>{YD(()=>{new no("titleNum1",Math.random()*1e4).start(),new no("titleNum2",Math.random()*1e4).start(),new no("titleNum3",Math.random()*1e4).start(),new no("tipNum1",Math.random()*1e3).start(),new no("tipNum2",Math.random()*1e3).start(),new no("tipNum3",Math.random()*1e3).start()})},n=()=>{const l=PS(r.$refs.homeLaboratoryRef),u={grid:{top:50,right:20,bottom:30,left:30},tooltip:{trigger:"axis"},legend:{data:["\u9884\u8D2D\u961F\u5217","\u6700\u65B0\u6210\u4EA4\u4EF7"],right:13},xAxis:{data:["\u886C\u886B","\u7F8A\u6BDB\u886B","\u96EA\u7EBA\u886B","\u88E4\u5B50","\u9AD8\u8DDF\u978B","\u889C\u5B50"]},yAxis:[{type:"value",name:"\u4EF7\u683C"}],series:[{name:"\u9884\u8D2D\u961F\u5217",type:"bar",data:[5,20,36,10,10,20]},{name:"\u6700\u65B0\u6210\u4EA4\u4EF7",type:"line",data:[15,20,16,20,30,8]}]};l.setOption(u),window.addEventListener("resize",()=>{l.resize()})},o=()=>{const l=PS(r.$refs.homeOvertimeRef),u={grid:{top:50,right:20,bottom:30,left:30},tooltip:{trigger:"axis"},legend:{data:["\u8BA2\u5355\u6570\u91CF","\u8D85\u65F6\u6570\u91CF","\u5728\u7EBF\u6570\u91CF","\u9884\u8B66\u6570\u91CF"],right:13},xAxis:{data:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},yAxis:[{type:"value",name:"\u6570\u91CF"}],series:[{name:"\u8BA2\u5355\u6570\u91CF",type:"bar",data:[5,20,36,10,10,20,11,13,10,9,17,19]},{name:"\u8D85\u65F6\u6570\u91CF",type:"bar",data:[15,12,26,15,11,16,31,13,5,16,13,15]},{name:"\u5728\u7EBF\u6570\u91CF",type:"line",data:[15,20,16,20,30,8,16,19,12,18,19,14]},{name:"\u9884\u8B66\u6570\u91CF",type:"line",data:[10,10,13,12,15,18,19,10,12,15,11,17]}]};l.setOption(u),window.addEventListener("resize",()=>{l.resize()})};WD(()=>{i(),n(),o()});const s=ny(()=>e.state.userInfos.userInfos);return iy({getUserInfos:s,currentTime:a},UD(t))}},T8=`.home-container[data-v-470181a0] { overflow-x: hidden; } .home-container .home-card-item[data-v-470181a0] { width: 100%; height: 103px; background: gray; border-radius: 4px; transition: all ease 0.3s; } .home-container .home-card-item[data-v-470181a0]:hover { box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); transition: all ease 0.3s; } .home-container .home-card-item-box[data-v-470181a0] { display: flex; align-items: center; position: relative; overflow: hidden; } .home-container .home-card-item-box:hover i[data-v-470181a0] { right: 0px !important; bottom: 0px !important; transition: all ease 0.3s; } .home-container .home-card-item-box i[data-v-470181a0] { position: absolute; right: -10px; bottom: -10px; font-size: 70px; transform: rotate(-30deg); transition: all ease 0.3s; } .home-container .home-card-item-box .home-card-item-flex[data-v-470181a0] { padding: 0 20px; color: white; } .home-container .home-card-item-box .home-card-item-flex .home-card-item-title[data-v-470181a0], .home-container .home-card-item-box .home-card-item-flex .home-card-item-tip[data-v-470181a0] { font-size: 13px; } .home-container .home-card-item-box .home-card-item-flex .home-card-item-title-num[data-v-470181a0] { font-size: 18px; } .home-container .home-card-item-box .home-card-item-flex .home-card-item-tip-num[data-v-470181a0] { font-size: 13px; } .home-container .home-card-first[data-v-470181a0] { background: white; border: 1px solid #ebeef5; display: flex; align-items: center; } .home-container .home-card-first img[data-v-470181a0] { width: 60px; height: 60px; border-radius: 100%; border: 2px solid var(--color-primary-light-5); } .home-container .home-card-first .home-card-first-right[data-v-470181a0] { flex: 1; display: flex; flex-direction: column; } .home-container .home-card-first .home-card-first-right .home-card-first-right-msg[data-v-470181a0] { font-size: 13px; color: gray; } .home-container .home-monitor[data-v-470181a0] { height: 200px; } .home-container .home-monitor .flex-warp-item[data-v-470181a0] { width: 50%; height: 100px; display: flex; } .home-container .home-monitor .flex-warp-item .flex-warp-item-box[data-v-470181a0] { margin: auto; height: auto; text-align: center; } .home-container .home-warning-card[data-v-470181a0] { height: 292px; } .home-container .home-warning-card[data-v-470181a0] .el-card { height: 100%; } .home-container .home-dynamic[data-v-470181a0] { height: 200px; } .home-container .home-dynamic .home-dynamic-item[data-v-470181a0] { display: flex; width: 100%; height: 60px; overflow: hidden; } .home-container .home-dynamic .home-dynamic-item:first-of-type .home-dynamic-item-line i[data-v-470181a0] { color: orange !important; } .home-container .home-dynamic .home-dynamic-item .home-dynamic-item-left[data-v-470181a0] { text-align: right; } .home-container .home-dynamic .home-dynamic-item .home-dynamic-item-left .home-dynamic-item-left-time2[data-v-470181a0] { font-size: 13px; color: gray; } .home-container .home-dynamic .home-dynamic-item .home-dynamic-item-line[data-v-470181a0] { height: 60px; border-right: 2px dashed #dfdfdf; margin: 0 20px; position: relative; } .home-container .home-dynamic .home-dynamic-item .home-dynamic-item-line i[data-v-470181a0] { color: var(--color-primary); font-size: 12px; position: absolute; top: 1px; left: -6px; transform: rotate(46deg); background: white; } .home-container .home-dynamic .home-dynamic-item .home-dynamic-item-right[data-v-470181a0] { flex: 1; } .home-container .home-dynamic .home-dynamic-item .home-dynamic-item-right .home-dynamic-item-right-title i[data-v-470181a0] { margin-right: 5px; border: 1px solid #dfdfdf; width: 20px; height: 20px; border-radius: 100%; padding: 3px 2px 2px; text-align: center; color: var(--color-primary); } .home-container .home-dynamic .home-dynamic-item .home-dynamic-item-right .home-dynamic-item-right-label[data-v-470181a0] { font-size: 13px; color: gray; }`;const te=qD();$D("data-v-470181a0");const Z6={class:"home-container"},q6={class:"home-card-item home-card-first"},K6={class:"flex-margin flex"},Q6={class:"home-card-first-right ml15"},J6={class:"flex-margin"},j6={class:"home-card-first-right-title"},t8=rt("div",{class:"home-card-first-right-msg mt5"},"\u8D85\u7EA7\u7BA1\u7406",-1),e8={class:"home-card-item-flex"},r8={class:"home-card-item-title pb3"},a8={class:"home-card-item-tip pb3"},i8={style:{height:"200px"},ref:"homeLaboratoryRef"},n8={class:"home-monitor"},o8={class:"flex-warp"},s8={class:"flex-warp-item-box"},l8={class:"pl5"},u8={class:"mt10"},h8={class:"home-dynamic"},f8={class:"home-dynamic-item-left"},v8={class:"home-dynamic-item-left-time1 mb5"},c8={class:"home-dynamic-item-left-time2"},p8=rt("div",{class:"home-dynamic-item-line"},[rt("i",{class:"iconfont icon-fangkuang"})],-1),d8={class:"home-dynamic-item-right"},g8={class:"home-dynamic-item-right-title mb5"},y8=rt("i",{class:"el-icon-s-comment"},null,-1),m8={class:"home-dynamic-item-right-label"},_8={style:{height:"200px"},ref:"homeOvertimeRef"};ZD();const S8=te((r,e,t,a,i,n)=>{const o=tn("el-col"),s=tn("el-row"),l=tn("el-card"),u=tn("el-table-column"),h=tn("el-table"),f=tn("el-scrollbar");return Fa(),Ga("div",Z6,[rt(s,{gutter:15},{default:te(()=>[rt(o,{sm:6,class:"mb15"},{default:te(()=>[rt("div",q6,[rt("div",K6,[rt("img",{src:a.getUserInfos.photo},null,8,["src"]),rt("div",Q6,[rt("div",J6,[rt("div",j6,zr(a.currentTime)+"\uFF0Cadmin\uFF01",1),t8])])])])]),_:1}),(Fa(!0),Ga(lf,null,uf(r.topCardItemList,(v,c)=>(Fa(),Ga(o,{sm:6,class:"mb15",key:c},{default:te(()=>[rt("div",{class:"home-card-item home-card-item-box",style:{background:v.color}},[rt("div",e8,[rt("div",r8,zr(v.title),1),rt("div",{class:"home-card-item-title-num pb6",id:`titleNum${c+1}`},null,8,["id"]),rt("div",a8,zr(v.tip),1),rt("div",{class:"home-card-item-tip-num",id:`tipNum${c+1}`},null,8,["id"])]),rt("i",{class:v.icon,style:{color:v.iconColor}},null,6)],4)]),_:2},1024))),128))]),_:1}),rt(s,{gutter:15},{default:te(()=>[rt(o,{xs:24,sm:14,md:14,lg:16,xl:16,class:"mb15"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u5546\u54C1\u9500\u552E\u60C5\u51B5"},{default:te(()=>[rt("div",i8,null,512)]),_:1})]),_:1}),rt(o,{xs:24,sm:10,md:10,lg:8,xl:8},{default:te(()=>[rt(l,{shadow:"hover",header:"\u73AF\u5883\u76D1\u6D4B"},{default:te(()=>[rt("div",n8,[rt("div",o8,[(Fa(!0),Ga(lf,null,uf(r.environmentList,(v,c)=>(Fa(),Ga("div",{class:"flex-warp-item",key:c},[rt("div",s8,[rt("i",{class:v.icon,style:{color:v.iconColor}},null,6),rt("span",l8,zr(v.label),1),rt("div",u8,zr(v.value),1)])]))),128))])])]),_:1})]),_:1})]),_:1}),rt(s,{gutter:15},{default:te(()=>[rt(o,{xs:24,sm:14,md:14,lg:16,xl:16,class:"home-warning-media"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u5E03\u5C40\u914D\u7F6E",class:"home-warning-card"},{default:te(()=>[rt(h,{data:r.tableData.data,style:{width:"100%"},stripe:""},{default:te(()=>[rt(u,{prop:"date",label:"\u65F6\u95F4"}),rt(u,{prop:"name",label:"\u5B9E\u9A8C\u5BA4\u540D\u79F0"}),rt(u,{prop:"address",label:"\u62A5\u8B66\u5185\u5BB9"})]),_:1},8,["data"])]),_:1})]),_:1}),rt(o,{xs:24,sm:10,md:10,lg:8,xl:8,class:"home-dynamic-media"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u52A8\u6001\u4FE1\u606F"},{default:te(()=>[rt("div",h8,[rt(f,null,{default:te(()=>[(Fa(!0),Ga(lf,null,uf(r.activitiesList,(v,c)=>(Fa(),Ga("div",{class:"home-dynamic-item",key:c},[rt("div",f8,[rt("div",v8,zr(v.time1),1),rt("div",c8,zr(v.time2),1)]),p8,rt("div",d8,[rt("div",g8,[y8,rt("span",null,zr(v.title),1)]),rt("div",m8,zr(v.label),1)])]))),128))]),_:1})])]),_:1})]),_:1})]),_:1}),rt(s,null,{default:te(()=>[rt(o,{xs:24,sm:24,md:24,lg:24,xl:24,class:"mt15"},{default:te(()=>[rt(l,{shadow:"hover",header:"\u5C65\u7EA6\u8D85\u65F6\u9884\u8B66"},{default:te(()=>[rt("div",_8,null,512)]),_:1})]),_:1})]),_:1})])});ty.render=S8,ty.__scopeId="data-v-470181a0";export default ty;