PageSourceSearch

https://app.ebacademics.com/8452.f554ccae225d9ee4.js

js ebacademics.com collected 2026-10-04 04:51:40 UTC 1,127,141 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkschool=self.webpackChunkschool||[]).push([[8452],{8452(noe,Ex,Qe){Qe.r(Ex),Qe.d(Ex,{Axis:()=>Gr,ChartView:()=>ze,ComponentModel:()=>Ce,ComponentView:()=>Xe,List:()=>Xt,Model:()=>De,PRIORITY:()=>KM,SeriesModel:()=>Ye,color:()=>Cd,connect:()=>M4,dataTool:()=>O4,dependencies:()=>u4,disConnect:()=>D4,disconnect:()=>uD,dispose:()=>L4,env:()=>Ee,extendChartView:()=>NU,extendComponentModel:()=>EU,extendComponentView:()=>kU,extendSeriesModel:()=>OU,format:()=>Pd,getCoordinateSystemDimensions:()=>P4,getInstanceByDom:()=>o0,getInstanceById:()=>I4,getMap:()=>k4,graphic:()=>Id,helper:()=>Md,init:()=>A4,innerDrawElementOnCanvas:()=>Um,matrix:()=>Td,number:()=>Dd,parseGeoJSON:()=>k0,parseGeoJson:()=>k0,registerAction:()=>ra,registerCoordinateSystem:()=>cD,registerCustomSeries:()=>R4,registerLayout:()=>hD,registerLoading:()=>v0,registerLocale:()=>By,registerMap:()=>dD,registerPostInit:()=>fD,registerPostUpdate:()=>vD,registerPreprocessor:()=>l0,registerProcessor:()=>u0,registerTheme:()=>s0,registerTransform:()=>gD,registerUpdateLifecycle:()=>mh,registerVisual:()=>Qn,setCanvasCreator:()=>E4,setPlatformAPI:()=>Vx,throttle:()=>th,time:()=>Ld,use:()=>me,util:()=>Rd,vector:()=>wd,version:()=>l4,zrUtil:()=>bd,zrender:()=>Ad});var bd={};Qe.r(bd),Qe.d(bd,{EPSILON:()=>NB,HashMap:()=>Xx,RADIAN_TO_DEGREE:()=>Yl,assert:()=>Rt,assignProps:()=>Hx,bind:()=>q,clone:()=>re,concatArray:()=>ls,createCanvas:()=>RB,createHashMap:()=>j,createObject:()=>Ul,curry:()=>Se,defaults:()=>ie,disableUserSelect:()=>Fd,each:()=>A,eqNaN:()=>Pt,extend:()=>G,filter:()=>ke,find:()=>Ua,guid:()=>Vd,hasOwn:()=>J,indexOf:()=>pe,inherits:()=>zd,isArray:()=>H,isArrayLike:()=>It,isBuiltInObject:()=>Gd,isDom:()=>yi,isFunction:()=>ae,isGradientObject:()=>Fl,isImagePatternObject:()=>Wx,isNumber:()=>Ae,isObject:()=>se,isPrimitive:()=>ss,isRegExp:()=>Ux,isString:()=>X,isStringSafe:()=>dv,isTypedArray:()=>jt,keys:()=>Te,logError:()=>hv,map:()=>W,merge:()=>de,mergeAll:()=>pv,mixin:()=>it,noop:()=>et,normalizeCssArray:()=>Hl,reduce:()=>Tr,retrieve:()=>Ft,retrieve2:()=>Q,retrieve3:()=>nr,setAsPrimitive:()=>Wl,slice:()=>gv,trim:()=>vr});var wd={};Qe.r(wd),Qe.d(wd,{add:()=>Hd,applyTransform:()=>tt,clone:()=>sa,copy:()=>Et,create:()=>In,dist:()=>Za,distSquare:()=>Rn,distance:()=>mv,distanceSquare:()=>Kx,div:()=>GB,dot:()=>FB,len:()=>Zl,lenSquare:()=>Wd,length:()=>BB,lengthSquare:()=>VB,lerp:()=>Kl,max:()=>Ka,min:()=>Xa,mul:()=>zB,negate:()=>HB,normalize:()=>mi,scale:()=>Xl,scaleAndAdd:()=>yv,set:()=>Ya,sub:()=>Pn});var Td={};Qe.r(Td),Qe.d(Td,{clone:()=>eb,copy:()=>En,create:()=>je,identity:()=>_i,invert:()=>hr,mul:()=>cr,rotate:()=>ja,scale:()=>Sv,translate:()=>Zr});var Cd={};Qe.r(Cd),Qe.d(Cd,{fastLerp:()=>ru,fastMapToColor:()=>RV,lerp:()=>cg,lift:()=>Iv,liftColor:()=>Pv,lum:()=>nu,mapToColor:()=>EV,modifyAlpha:()=>au,modifyHSL:()=>$a,parse:()=>Ht,parseCssFloat:()=>Qa,parseCssInt:()=>Dv,random:()=>kV,stringify:()=>Lr,toHex:()=>PV});var Ad={};Qe.r(Ad),Qe.d(Ad,{dispose:()=>gz,disposeAll:()=>yz,getElementSSRData:()=>aw,getInstance:()=>mz,init:()=>Vg,registerPainter:()=>rw,registerSSRDataGetter:()=>nw,version:()=>_z});var Ha={};Qe.r(Ha),Qe.d(Ha,{Arc:()=>Uc,BezierCurve:()=>Bu,BoundingRect:()=>fe,Circle:()=>cn,CompoundPath:()=>Vu,Ellipse:()=>Hc,Group:()=>oe,HOVER_LAYER_FOR_INCREMENTAL:()=>Ws,HOVER_LAYER_FROM_THRESHOLD:()=>XA,HOVER_LAYER_NO:()=>ZA,Image:()=>At,IncrementalDisplayable:()=>YA,Line:()=>ct,LinearGradient:()=>fo,OrientedBoundingRect:()=>WA,Path:()=>we,Point:()=>le,Polygon:()=>Zt,Polyline:()=>Bt,RadialGradient:()=>Am,Rect:()=>be,Ring:()=>Nu,Sector:()=>Yt,Text:()=>Me,WH:()=>nt,XY:()=>he,applyTransform:()=>ta,calcZ2Range:()=>tM,clipPointsByRect:()=>Pm,clipRectByRect:()=>QA,createIcon:()=>Zs,decomposeTransform:()=>$c,ensureCopyRect:()=>Hu,ensureCopyTransform:()=>Om,expandOrShrinkRect:()=>po,extendPath:()=>qA,extendShape:()=>KA,getCurrentCanvasPainter:()=>Bm,getShapeClass:()=>zu,getTransform:()=>ho,groupTransition:()=>Gu,initProps:()=>Ze,isBoundingRectAxisAligned:()=>km,isElementRemoved:()=>Ls,lineLineIntersect:()=>$A,linePolygonIntersect:()=>Fu,makeImage:()=>Lm,makePath:()=>Us,mergePath:()=>xr,payloadDisableAnimation:()=>Nm,registerShape:()=>Br,removeElement:()=>
1Xn,removeElementWithFadeOut:()=>fn,resizePath:()=>Im,retrieveZInfo:()=>go,setTooltipConfig:()=>hn,subPixelOptimize:()=>qc,subPixelOptimizeLine:()=>Ys,subPixelOptimizeRect:()=>tH,transformDirection:()=>jc,traverseElements:()=>Jn,traverseUpdateZ:()=>Qc,updateProps:()=>Pe});var Md={};Qe.r(Md),Qe.d(Md,{createDimensions:()=>q4,createList:()=>iU,createScale:()=>sU,createSymbol:()=>lt,createTextStyle:()=>uU,dataStack:()=>oU,enableHoverEmphasis:()=>Zn,getECData:()=>ue,getLayoutRect:()=>qe,mixinAxisModelCommonMethods:()=>lU});var Dd={};Qe.r(Dd),Qe.d(Dd,{MAX_SAFE_INTEGER:()=>cu,asc:()=>Ct,getPercentWithPrecision:()=>Mz,getPixelPrecision:()=>Az,getPrecision:()=>ca,getPrecisionSafe:()=>sw,isNumeric:()=>Ug,isRadianAroundZero:()=>Ei,linearMap:()=>Re,nice:()=>Qv,numericToNumber:()=>pa,parseDate:()=>ha,parsePercent:()=>K,quantile:()=>$v,quantity:()=>Hg,quantityExponent:()=>Jv,reformIntervals:()=>Wg,remRadian:()=>Fg,round:()=>Cz});var Ld={};Qe.r(Ld),Qe.d(Ld,{format:()=>Tu,parse:()=>ha,roundTime:()=>Ac});var Id={};Qe.r(Id),Qe.d(Id,{Arc:()=>Uc,BezierCurve:()=>Bu,BoundingRect:()=>fe,Circle:()=>cn,CompoundPath:()=>Vu,Ellipse:()=>Hc,Group:()=>oe,Image:()=>At,IncrementalDisplayable:()=>YA,Line:()=>ct,LinearGradient:()=>fo,Polygon:()=>Zt,Polyline:()=>Bt,RadialGradient:()=>Am,Rect:()=>be,Ring:()=>Nu,Sector:()=>Yt,Text:()=>Me,clipPointsByRect:()=>Pm,clipRectByRect:()=>QA,createIcon:()=>Zs,extendPath:()=>qA,extendShape:()=>KA,getShapeClass:()=>zu,getTransform:()=>ho,initProps:()=>Ze,makeImage:()=>Lm,makePath:()=>Us,mergePath:()=>xr,registerShape:()=>Br,resizePath:()=>Im,updateProps:()=>Pe});var Pd={};Qe.r(Pd),Qe.d(Pd,{addCommas:()=>Ky,capitalFirst:()=>WG,encodeHTML:()=>kt,formatTime:()=>HG,formatTpl:()=>Qy,getTextRect:()=>dU,getTooltipMarker:()=>jT,normalizeCssArray:()=>ks,toCamelCase:()=>qy,truncateText:()=>f5});var Rd={};Qe.r(Rd),Qe.d(Rd,{bind:()=>q,clone:()=>re,curry:()=>Se,defaults:()=>ie,each:()=>A,extend:()=>G,filter:()=>ke,indexOf:()=>pe,inherits:()=>zd,isArray:()=>H,isFunction:()=>ae,isObject:()=>se,isString:()=>X,map:()=>W,merge:()=>de,reduce:()=>Tr});var Ed=function(r,e){return(Ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])})(r,e)};function N(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=r}Ed(r,e),r.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}var SB=function(){return function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}}(),Ln=new(function(){return function r(){this.browser=new SB,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}}());"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Ln.wxa=!0,Ln.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ln.worker=!0:!Ln.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(Ln.node=!0,Ln.svgSupported=!0):function bB(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);if(a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",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<"u"){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}(navigator.userAgent,Ln);const Ee=Ln;var Bx="sans-serif",Wa="12px "+Bx,MB=function AB(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-20)/100;e[a]=n}return e}
1("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),St={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=St.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||Wa),r.measureText(t);t=t||"";var i=/((?:\d+)?\.?\d*)px/.exec(a=a||Wa),o=i&&+i[1]||12,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=MB[t[l]];s+=null==u?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a},getTime:function(){return Date.now?Date.now():+new Date}};function Vx(r){for(var e in St)St.hasOwnProperty(e)&&r[e]&&(St[e]=r[e])}var zx=Tr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Gx=Tr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),os=Object.prototype.toString,vv=Array.prototype,DB=vv.forEach,LB=vv.filter,Od=vv.slice,IB=vv.map,Fx=function(){}.constructor,cv=Fx?Fx.prototype:null,Nd="__proto__",Bd=2311,PB=Math.pow(2,53)-1;function Vd(){return Bd>=PB&&(Bd=0),Bd++}function hv(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function re(r){if(null==r||"object"!=typeof r)return r;var e=r,t=os.call(r);if("[object Array]"===t){if(!ss(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=re(r[a])}}else if(Gx[t]){if(!ss(r)){var i=r.constructor;if(i.from)e=i.from(r);else for(e=new i(r.length),a=0,n=r.length;a<n;a++)e[a]=r[a]}}else if(!zx[t]&&!ss(r)&&!yi(r))for(var o in e={},r)r.hasOwnProperty(o)&&o!==Nd&&(e[o]=re(r[o]));return e}function de(r,e,t){if(!se(e)||!se(r))return t?re(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==Nd){var n=r[a],i=e[a];!se(i)||!se(n)||H(i)||H(n)||yi(i)||yi(n)||Gd(i)||Gd(n)||ss(i)||ss(n)?(t||!(a in r))&&(r[a]=re(e[a])):de(n,i,t)}return r}function pv(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=de(t,r[a],e);return t}function G(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Nd&&(r[t]=e[t]);return r}function Hx(r,e,t){r=r||{};for(var a=0;a<t.length;a++){var n=t[a];r[n]=e[n]}return r}function ie(r,e,t){for(var a=Te(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?null!=e[o]:null==r[o])&&(r[o]=e[o])}return r}var RB=St.createCanvas;function pe(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function zd(r,e){var t=r.prototype;function a(){}for(var n in a.prototype=e.prototype,r.prototype=new a,t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function it(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];"constructor"!==i&&(t?null!=e[i]:null==r[i])&&(r[i]=e[i])}else ie(r,e,t)}function It(r){return!(!r||"string"==typeof r)&&"number"==typeof r.length}function A(r,e,t){if(r&&e)if(r.forEach&&r.forEach===DB)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function W(r,e,t){if(!r)return[];if(!e)return gv(r);if(r.map&&r.map===IB)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Tr(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function ke(r,e,t){if(!r)return[];if(!e)return gv(r);if(r.filter&&r.filter===LB)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function Ua(r,e,t){if(r&&e)for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}function Te(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}var q=cv&&ae(cv.bind)?cv.call.bind(cv.bind):function EB(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(Od.call(arguments)))}};function Se(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Od.call(arguments)))}}function H(r){return Array.isArray?Array.isArray(r):"[object Array]"===os.call(r)}function ae(r){return"function"==typeof r}function X(r){return"string"==typeof r}function dv(r){return"[object String]"===os.call(r)}function Ae(r){return"number"==typeof r}function se(r){var e=typeof r;return"function"===e||!!r&&"object"===e}function Gd(r){return!!zx[os.call(r)]}function jt(r){return!!Gx[os.call(r)]}function yi(r){return"object"==typeof r&&"number"==typeof r.nodeType&&"object"==typeof r.ownerDocument}function Fl(r){return null!=r.colorStops}function Wx(r){return null!=r.image}function Ux(r){return"[object RegExp]"===os.call(r)}function Pt(r){return r!=r}function Ft(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(null!=r[t])return r[t]}function Q(r,e){return r??e}function nr(r,e,t){return r??e??t}
vendor: 20,792 bytes, line 1
1function gv(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Od.apply(r,e)}function Hl(r){if("number"==typeof r)return[r,r,r,r];var e=r.length;return 2===e?[r[0],r[1],r[0],r[1]]:3===e?[r[0],r[1],r[2],r[1]]:r}function Rt(r,e){if(!r)throw new Error(e)}function vr(r){return null==r?null:"function"==typeof r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Yx="__ec_primitive__";function Wl(r){r[Yx]=!0}function ss(r){return r[Yx]}var kB=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Te(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r}(),Zx="function"==typeof Map,Xx=function(){function r(e){var t=H(e);this.data=function OB(){return Zx?new Map:new kB}();var a=this;function n(i,o){t?a.set(i,o):a.set(o,i)}e instanceof r?e.each(n):e&&A(e,n)}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return Zx?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function j(r){return new Xx(r)}function ls(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];var n=r.length;for(a=0;a<e.length;a++)t[a+n]=e[a];return t}function Ul(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&G(t,e),t}function Fd(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function J(r,e){return r.hasOwnProperty(e)}function et(){}var Yl=180/Math.PI,NB=Number.EPSILON||Math.pow(2,-52);function In(r,e){return null==r&&(r=0),null==e&&(e=0),[r,e]}function Et(r,e){return r[0]=e[0],r[1]=e[1],r}function sa(r){return[r[0],r[1]]}function Ya(r,e,t){return r[0]=e,r[1]=t,r}function Hd(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function yv(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function Pn(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Zl(r){return Math.sqrt(Wd(r))}var BB=Zl;function Wd(r){return r[0]*r[0]+r[1]*r[1]}var VB=Wd;function zB(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function GB(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function FB(r,e){return r[0]*e[0]+r[1]*e[1]}function Xl(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function mi(r,e){var t=Zl(e);return 0===t?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function mv(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Za=mv;function Kx(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Rn=Kx;function HB(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Kl(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function tt(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function Xa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ka(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var us=function(){return function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}}(),WB=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new us(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new us(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new us(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new us(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new us(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new us(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}();const UB=WB;var YB=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&0===a[e].length&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!i||!i.filter||null==f.query||i.filter(e,f.query))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}();const Cr=YB;var ZB=Math.log(2);function Ud(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(1===e){var l=Math.round(Math.log((1<<s)-1&~n)/ZB);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var p=1<<c;p&n||(v+=(h%2?-1:1)*r[t][c]*Ud(r,e-1,f,u,n|p,i),h++)}return i[o]=v,v}function qx(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=Ud(t,8,0,0,0,a);if(0!==n){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)null==i[s]&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Ud(t,7,0===o?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var _v="___zrEVENTSAVED",Yd=[];function Zd(r,e,t,a,n){if(e.getBoundingClientRect&&Ee.domSupported&&!jx(e)){var i=e[_v]||(e[_v]={}),o=function qB(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),l=i%2,u=(i>>1)%2;o.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){A(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}(e,i),s=function jB(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?qx(s,o):qx(o,s))}(o,i,n);if(s)return s(r,t,a),!0}return!1}function jx(r){return"CANVAS"===r.nodeName.toUpperCase()}var JB=/([&<>"'])/g,QB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function kt(r){return null==r?"":(r+"").replace(JB,function(e,t){return QB[t]})}var $B=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xd=[],eV=Ee.browser.firefox&&+Ee.browser.version.split(".")[0]<39;function Kd(r,e,t,a){return t=t||{},a?Jx(r,e,t):eV&&null!=e.layerX&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):null!=e.offsetX?(t.zrX=e.offsetX,t.zrY=e.offsetY):Jx(r,e,t),t}function Jx(r,e,t){if(Ee.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(jx(r)){var i=r.getBoundingClientRect();return t.zrX=a-i.left,void(t.zrY=n-i.top)}if(Zd(Xd,r,a,n))return t.zrX=Xd[0],void(t.zrY=Xd[1])}t.zrX=t.zrY=0}function qd(r){return r||window.event}function Ar(r,e,t){if(null!=(e=qd(e)).zrX)return e;var a=e.type;if(a&&a.indexOf("touch")>=0){var o="touchend"!==a?e.targetTouches[0]:e.changedTouches[0];o&&Kd(r,o,e,t)}else{Kd(r,e,e,t);var i=function tV(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;return null==t||null==a?e:3*Math.abs(0!==a?a:t)*(a>0?-1:a<0?1:t>0?-1:1)}(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&$B.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function jd(r,e,t,a){r.addEventListener(e,t,a)}function rV(r,e,t,a){r.removeEventListener(e,t,a)}var qa=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Qx(r){return 2===r.which||3===r.which}var aV=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 n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=Kd(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in Jd)if(Jd.hasOwnProperty(t)){var a=Jd[t](this._track,e);if(a)return a}},r}();function $x(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}var Jd={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=$x(a)/$x(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=function nV(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function je(){return[1,0,0,1,0,0]}function _i(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function En(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 cr(r,e,t){var n=e[1]*t[0]+e[3]*t[1],i=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]=e[0]*t[0]+e[2]*t[1],r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Zr(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 ja(r,e,t,a){void 0===a&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function Sv(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function hr(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(r[0]=o*(l=1/l),r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function eb(r){var e=[1,0,0,1,0,0];return En(e,r),e}var iV=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,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}();const le=iV;var Si=Math.min,fs=Math.max,Qd=Math.abs,tb=["x","y"],oV=["width","height"],xi=new le,bi=new le,wi=new le,Ti=new le,pr=ib(),ql=pr.minTv,$d=pr.maxTv,jl=[0,0],Ja=function(){function r(e,t,a,n){eg(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t+=n,n=-n),i<0&&(a+=i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=Si(e.x,this.x),a=Si(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?fs(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?fs(e.y+e.height,this.y+this.height)-a:e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return rb([1,0,0,1,0,0],this,e)},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&le.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=eg(lV,e.x,e.y,e.width,e.height)),t instanceof r||(t=eg(uV,t.x,t.y,t.width,t.height));var s=!!a;pr.reset(n,s);var l=pr.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,p=t.x+t.width-l,d=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>p||d>g)return!1;var y=!(f<h||p<u||c<d||g<v);return(s||i)&&(jl[0]=1/0,jl[1]=0,nb(u,f,h,p,0,s,i,o),nb(v,c,d,g,1,s,i,o),s&&le.copy(a,y?pr.useDir?pr.dirMinTv:ql:$d)),y},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){vs(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 0===this.width||0===this.height},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(a){if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],s=a[5];return e.x=t.x*n+a[4],e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}xi.x=wi.x=t.x,xi.y=Ti.y=t.y,bi.x=Ti.x=t.x+t.width,bi.y=wi.y=t.y+t.height,xi.transform(a),Ti.transform(a),bi.transform(a),wi.transform(a),e.x=Si(xi.x,bi.x,wi.x,Ti.x),e.y=Si(xi.y,bi.y,wi.y,Ti.y);var l=fs(xi.x,bi.x,wi.x,Ti.x),u=fs(xi.y,bi.y,wi.y,Ti.y);e.width=l-e.x,e.height=u-e.y}else e!==t&&vs(e,t)},r.calculateTransform=function(e,t,a){var n=a.width/t.width,i=a.height/t.height;return Zr(e=_i(e||[]),e,Ya(tg,-t.x,-t.y)),Sv(e,e,Ya(tg,n,i)),Zr(e,e,Ya(tg,a.x,a.y)),e},r}(),xv=Ja.create,eg=Ja.set,vs=Ja.copy,rb=Ja.calculateTransform,ab=Ja.applyTransform,sV=Ja.contain,lV=new Ja(0,0,0,0),uV=new Ja(0,0,0,0),tg=[];function nb(r,e,t,a,n,i,o,s){var l=Qd(e-t),u=Qd(a-r),f=Si(l,u),v=tb[n],c=tb[1-n],h=oV[n];e<t||a<r?l<u?(i&&($d[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&($d[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=fs(r,t),o[h]=Si(e,a)-o[v]),i&&(f<jl[0]||pr.useDir)&&(jl[0]=Si(f,jl[0]),(l<u||!pr.bidirectional)&&(ql[v]=l,ql[c]=0,pr.useDir&&pr.calcDirMTV()),(l>=u||!pr.bidirectional)&&(ql[v]=-u,ql[c]=0,pr.useDir&&pr.calcDirMTV())))}function ib(){var r=0,e=new le,t=new le,a={minTv:new le,maxTv:new le,useDir:!1,dirMinTv:new le,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&null!=i.touchThreshold&&(a.touchThreshold=fs(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&null!=i.direction&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=null==i.bidirectional||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;n(f)?n(i.x)&&n(i.y)&&o.set(0,0):(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)?o.set(0,0):(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t))}};function n(i){return Qd(i)<1e-10}return a}const fe=Ja;function vV(){qa(this.event)}var cV=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.handler=null,t}return N(e,r),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Cr),Jl=function(){return function r(e,t){this.x=e,this.y=t}}(),hV=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],rg=new fe(0,0,0,0),sb=function(r){function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Jl(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new cV,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new UB(s),s}return N(e,r),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(hV,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,n=t.zrY,i=ub(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(s=(o=this.findHover(o.x,o.y)).target);var l=this._hovered=i?new Jl(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.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;"only_globalout"!==a&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==a&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Jl(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.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,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+a,s=function fV(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:vV}}(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){"function"==typeof l[o]&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Jl(t,a);if(lb(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new fe(t-u,a-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(rg.copy(c.getBoundingRect
vendor: 11,741 bytes, line 1
1()),c.transform&&rg.applyTransform(c.transform),rg.intersect(f)&&s.push(c))}if(s.length)for(var p=Math.PI/12,d=2*Math.PI,g=0;g<u;g+=4)for(var y=0;y<d;y+=p)if(lb(s,o,t+g*Math.cos(y),a+g*Math.sin(y),n),o.target)return o}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new aV);var n=this._gestureMgr;"start"===a&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===a&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Jl;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Cr);function pV(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return!n||"silent"}return!1}function lb(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=pV(o,t,a))&&(!e.topTarget&&(e.topTarget=o),"silent"!==s)){e.target=o;break}}}function ub(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){sb.prototype[r]=function(e){var i,o,t=e.zrX,a=e.zrY,n=ub(this,t,a);if(("mouseup"!==r||!n)&&(o=(i=this.findHover(t,a)).target),"mousedown"===r)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if("mouseup"===r)this._upEl=o;else if("click"===r){if(this._downEl!==this._upEl||!this._downPoint||Za(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});const dV=sb;function vb(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;!function yV(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function cb(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var l,i=r[a],o=e,s=a;o<s;)n(i,r[l=o+s>>>1])<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]=i}}function ag(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function ng(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function bv(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<32)return void cb(r,t,a,t+(i=vb(r,t,a,e)),e);var o=function mV(r,e){var a,n,t=7,i=0,o=[];function f(h){var p=a[h],d=n[h],g=a[h+1],y=n[h+1];n[h]=d+y,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var m=ng(r[g],r,p,d,0,e);p+=m,0!=(d-=m)&&0!==(y=ag(r[p+d-1],r,g,y,y-1,e))&&(d<=y?function v(h,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[h+y];var m=0,_=d,S=h;if(r[S++]=r[_++],0!=--g)if(1!==p){for(var b,w,C,x=t;;){b=0,w=0,C=!1;do{if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,0==--g){C=!0;break}}else if(r[S++]=o[m++],b++,w=0,1==--p){C=!0;break}}while((b|w)<x);if(C)break;do{if(0!==(b=ng(r[_],o,m,p,0,e))){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,(p-=b)<=1){C=!0;break}}if(r[S++]=r[_++],0==--g){C=!0;break}if(0!==(w=ag(o[m],r,_,g,0,e))){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,0==(g-=w)){C=!0;break}}if(r[S++]=o[m++],1==--p){C=!0;break}x--}while(b>=7||w>=7);if(C)break;x<0&&(x=0),x+=2}if((t=x)<1&&(t=1),1===p){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(0===p)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}else{for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else for(y=0;y<p;y++)r[S+y]=o[m+y]}(p,d,g,y):function c(h,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=h+p-1,_=g-1,S=d+g-1,x=0,b=0;if(r[S--]=r[m--],0!=--p)if(1!==g){for(var w=t;;){var C=0,T=0,M=!1;do{if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,T=0,0==--p){M=!0;break}}else if(r[S--]=o[_--],T++,C=0,1==--g){M=!0;break}}while((C|T)<w);if(M)break;do{if(0!=(C=p-ng(o[_],r,h,p,p-1,e))){for(p-=C,b=1+(S-=C),x=1+(m-=C),y=C-1;y>=0;y--)r[b+y]=r[x+y];if(0===p){M=!0;break}}if(r[S--]=o[_--],1==--g){M=!0;break}if(0!=(T=g-ag(r[m],o,0,g,g-1,e))){for(g-=T,b=1+(S-=T),x=1+(_-=T),y=0;y<T;y++)r[b+y]=o[x+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],0==--p){M=!0;break}w--}while(C>=7||T>=7);if(M)break;w<0&&(w=0),w+=2}if((t=w)<1&&(t=1),1===g){for(b=1+(S-=p),x=1+(m-=p),y=p-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(0===g)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}else{for(b=1+(S-=p),x=1+(m-=p),y=p-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}(p,d,g,y))}return a=[],n=[],{mergeRuns:function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}},forceMergeRuns:function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}},pushRun:function s(h,p){a[i]=h,n[i]=p,i+=1}}}(r,e),s=function gV(r){for(var e=0;r>=32;)e|=1&r,r>>=1;return r+e}(n);do{if((i=vb(r,t,a,e))<s){var l=n;l>s&&(l=s),cb(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(0!==n);o.forceMergeRuns()}}var hb=!1;function ig(){hb||(hb=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function pb(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var _V=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=pb}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,bv(a,pb)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!e.ignore||a){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=1),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(ig(),p.z=0),isNaN(p.z2)&&(ig(),p.z2=0),isNaN(p.zlevel)&&(ig(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,a);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,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<a;t++)this.delRoot(e[t]);else{var n=pe(this._roots,e);n>=0&&this._roots.splice(n,1)}},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const SV=_V;var db;db=Ee.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const og=db;var wv={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 0===r?0:Math.pow(1024,r-1)},exponentialOut:function(r){return 1===r?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return 0===r?0:1===r?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(2-Math.pow(2,-10*(r-1)))},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;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),-t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4))},elasticOut:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(r){var e,t=.1;return 0===r?0:1===r?1:(!t||t<1?(t=1,e=.1):e=.4*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4)*-.5:t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/.4)*.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=2.5949095;return(r*=2)<1?r*r*((e+1)*r-e)*.5:.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-wv.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?.5*wv.bounceIn(2*r):.5*wv.bounceOut(2*r-1)+.5}};const gb=wv;var Tv=Math.pow,kn=Math.sqrt,mb=kn(3),Av=1/3,la=In(),Mr=In(),hs=In();function On(r){return r>-1e-8&&r<1e-8}function _b(r){return r>1e-8||r<-1e-8}function xt(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function Sb(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Mv(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-2*e+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if(On(f)&&On(v))On(s)?i[0]=0:(p=-l/s)>=0&&p<=1&&(i[h++]=p);else{var d=v*v-4*f*c;if(On(d)){var g=v/f,y=-g/2;(p=-s/o+g)>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(d>0){var m=kn(d),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);(p=(-s-((_=_<0?-Tv(-_,Av):Tv(_,Av))+(S=S<0?-Tv(-S,Av):Tv(S,Av))))/(3*o))>=0&&p<=1&&(i[h++]=p)}else{var x=(2*f*s-3*o*v)/(2*kn(f*f*f)),b=Math.acos(x)/3,w=kn(f),C=Math.cos(b),p=(-s-2*w*C)/(3*o),T=(y=(-s+w*(C+mb*Math.sin(b)))/(3*o),(-s+w*(C-mb*Math.sin(b)))/(3*o));p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),T>=0&&T<=1&&(i[h++]=T)}}return h}function xb(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(On(o))_b(i)&&(u=-s/i)>=0&&u<=1&&(n[l++]=u);else{var f=i*i-4*o*s;if(On(f))n[0]=-i/(2*o);else if(f>0){var u,v=kn(f),c=(-i-v)/(2*o);(u=(-i+v)/(2*o))>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Nn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function bb(r,e,t,a,n,i,o,s,l,u,f){var v,p,d,g,y,c=.005,h=1/0;la[0]=l,la[1]=u;for(var m=0;m<1;m+=.05)Mr[0]=xt(r,t,n,o,m),Mr[1]=xt(e,a,i,s,m),(g=Rn(la,Mr))<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<1e-4);_++)d=v+c,Mr[0]=xt(r,t,n,o,p=v-c),Mr[1]=xt(e,a,i,s,p),g=Rn(Mr,la),p>
vendor: 11,603 bytes, line 1
1=0&&g<h?(v=p,h=g):(hs[0]=xt(r,t,n,o,d),hs[1]=xt(e,a,i,s,d),y=Rn(hs,la),d<=1&&y<h?(v=d,h=y):c*=.5);return f&&(f[0]=xt(r,t,n,o,v),f[1]=xt(e,a,i,s,v)),kn(h)}function xV(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var p=h*c,d=xt(r,t,n,o,p),g=xt(e,a,i,s,p),y=d-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=d,f=g}return v}function Tt(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function sg(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function wb(r,e,t){var a=r+t-2*e;return 0===a?.5:(r-e)/a}function eu(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function Tb(r,e,t,a,n,i,o,s,l){var u,f=.005,v=1/0;la[0]=o,la[1]=s;for(var c=0;c<1;c+=.05)Mr[0]=Tt(r,t,n,c),Mr[1]=Tt(e,a,i,c),(h=Rn(la,Mr))<v&&(u=c,v=h);v=1/0;for(var p=0;p<32&&!(f<1e-4);p++){var d=u-f,g=u+f;Mr[0]=Tt(r,t,n,d),Mr[1]=Tt(e,a,i,d);var h=Rn(Mr,la);if(d>=0&&h<v)u=d,v=h;else{hs[0]=Tt(r,t,n,g),hs[1]=Tt(e,a,i,g);var y=Rn(hs,la);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Tt(r,t,n,u),l[1]=Tt(e,a,i,u)),kn(v)}function wV(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Tt(r,t,n,c),p=Tt(e,a,i,c),d=h-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=h,l=p}return u}var TV=/cubic-bezier\(([0-9,\.e ]+)\)/;function lg(r){var e=r&&TV.exec(r);if(e){var t=e[1].split(","),a=+vr(t[0]),n=+vr(t[1]),i=+vr(t[2]),o=+vr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Mv(0,a,i,1,l,s)&&xt(0,n,o,1,s[0])}}}var CV=function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||et,this.ondestroy=e.ondestroy||et,this.onrestart=e.onrestart||et,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;this._startTime=e-n%a,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ae(e)?e:gb[e]||lg(e)},r}();const AV=CV;var Cb=function(){return function r(e){this.value=e}}(),MV=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new Cb(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}(),DV=function(){function r(e){this._list=new MV,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(null==n[e]){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new Cb(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(null!=t)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}();const ps=DV;var Ab={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 Xr(r){return(r=Math.round(r))<0?0:r>255?255:r}function tu(r){return r<0?0:r>1?1:r}function Dv(r){var e=r;return e.length&&"%"===e.charAt(e.length-1)?Xr(parseFloat(e)/100*255):Xr(parseInt(e,10))}function Qa(r){var e=r;return e.length&&"%"===e.charAt(e.length-1)?tu(parseFloat(e)/100):tu(parseFloat(e))}function ug(r,e,t){return t<0?t+=1:t>1&&(t-=1),6*t<1?r+(e-r)*t*6:2*t<1?e:3*t<2?r+(e-r)*(2/3-t)*6:r}function Bn(r,e,t){return r+(e-r)*t}function Dr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function fg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var Mb=new ps(20),Lv=null;function ds(r,e){Lv&&fg(Lv,e),Lv=Mb.put(r,Lv||e.slice())}function Ht(r,e){if(r){e=e||[];var t=Mb.get(r);if(t)return fg(e,t);var a=(r+="").replace(/ /g,"").toLowerCase();if(a in Ab)return fg(e,Ab[a]),ds(r,e),e;var i,n=a.length;if("#"===a.charAt(0))return 4===n||5===n?(i=parseInt(a.slice(1,4),16))>=0&&i<=4095?(Dr(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===n?parseInt(a.slice(4),16)/15:1),ds(r,e),e):void Dr(e,0,0,0,1):7===n||9===n?(i=parseInt(a.slice(1,7),16))>=0&&i<=16777215?(Dr(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===n?parseInt(a.slice(7),16)/255:1),ds(r,e),e):void Dr(e,0,0,0,1):void 0;var o=a.indexOf("("),s=a.indexOf(")");if(-1!==o&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?Dr(e,+u[0],+u[1],+u[2],1):Dr(e,0,0,0,1);f=Qa(u.pop());case"rgb":return u.length>=3?(Dr(e,Dv(u[0]),Dv(u[1]),Dv(u[2]),3===u.length?f:Qa(u[3])),ds(r,e),e):void Dr(e,0,0,0,1);case"hsla":return 4!==u.length?void Dr(e,0,0,0,1):(u[3]=Qa(u[3]),vg(u,e),ds(r,e),e);case"hsl":return 3!==u.length?void Dr(e,0,0,0,1):(vg(u,e),ds(r,e),e);default:return}}Dr(e,0,0,0,1)}}function vg(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=Qa(r[1]),n=Qa(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=2*n-i;return Dr(e=e||[],Xr(255*ug(o,i,t+1/3)),Xr(255*ug(o,i,t)),Xr(255*ug(o,i,t-1/3)),1),4===r.length&&(e[3]=r[3]),e}function Iv(r,e){var t=Ht(r);if(t){for(var a=0;a<3;a++)t[a]=e<0?t[a]*(1-e)|0:(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Lr(t,4===t.length?"rgba":"rgb")}}function PV(r){var e=Ht(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function ru(r,e,t){if(e&&e.length&&r>=0&&r<=1){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=Xr(Bn(o[0],s[0],l)),t[1]=Xr(Bn(o[1],s[1],l)),t[2]=Xr(Bn(o[2],s[2],l)),t[3]=tu(Bn(o[3],s[3],l)),t}}var RV=ru;function cg(r,e,t){if(e&&e.length&&r>=0&&r<=1){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=Ht(e[n]),s=Ht(e[i]),l=a-n,u=Lr([Xr(Bn(o[0],s[0],l)),Xr(Bn(o[1],s[1],l)),Xr(Bn(o[2],s[2],l)),tu(Bn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}var EV=cg;function $a(r,e,t,a){var n=Ht(r);if(r)return n=function IV(r){if(r){var l,u,e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2;if(0===o)l=0,u=0;else{u=s<.5?o/(i+n):o/(2-i-n);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-a)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[360*l,u,s];return null!=r[3]&&h.push(r[3]),h}}(n),null!=e&&(n[0]=function LV(r){return(r=Math.round(r))<0?0:r>360?360:r}(ae(e)?e(n[0]):e)),null!=t&&(n[1]=Qa(ae(t)?t(n[1]):t)),null!=a&&(n[2]=Qa(ae(a)?a(n[2]):a)),Lr(vg(n),"rgba")}function au(r,e){var t=Ht(r);if(t&&null!=e)return t[3]=tu(e),Lr(t,"rgba")}function Lr(r,e){if(r&&r.length){var t=r[0]+","+r[1]+","+r[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(t+=","+r[3]),e+"("+t+")"}}function nu(r,e){var t=Ht(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function kV(){return Lr([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Db=new ps(100);function Pv(r){if(X(r)){var e=Db.get(r);return e||(e=Iv(r,-.1),Db.put(r,e)),e}if(Fl(r)){var t=G({},r);return t.colorStops=W(r.colorStops,function(a){return{offset:a.offset,color:Iv(a.color,-.1)}}),t}return r}var iu=Math.round;function ou(r){var e;if(r&&"transparent"!==r){if("string"==typeof r&&r.indexOf("rgba")>-1){var t=Ht(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}}else r="none";return{color:r,opacity:e??1}}function Vn(r){return r<1e-4&&r>-1e-4}function Rv(r){return iu(1e3*r)/1e3}function hg(r){return iu(1e4*r)/1e4}var NV={left:"start",right:"end",center:"middle",middle:"middle"};function Ib(r){return r&&!!r.image}
vendor: 4,203 bytes, line 1
1function pg(r){return Ib(r)||function GV(r){return r&&!!r.svgElement}(r)}function Pb(r){return"linear"===r.type}function Rb(r){return"radial"===r.type}function Eb(r){return r&&("linear"===r.type||"radial"===r.type)}function Ev(r){return"url(#"+r+")"}function kb(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Ob(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*Yl,n=Q(r.scaleX,1),i=Q(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(1!==n||1!==i)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+iu(o*Yl)+"deg, "+iu(s*Yl)+"deg)"),l.join(" ")}var FV=typeof Buffer<"u"&&"function"==typeof Buffer.from?function(r){return Buffer.from(r).toString("base64")}:"function"==typeof btoa&&"function"==typeof unescape&&"function"==typeof encodeURIComponent?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null},dg=Array.prototype.slice;function en(r,e,t){return(e-r)*t+r}function gg(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=en(e[i],t[i],a);return r}function kv(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function Nb(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function WV(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function UV(r,e,t){var a=r,n=e;if(a.push&&n.push){var i=a.length,o=n.length;if(i!==o)if(i>o)a.length=o;else for(var l=i;l<o;l++)a.push(1===t?n[l]:dg.call(n[l]));var u=a[0]&&a[0].length;for(l=0;l<a.length;l++)if(1===t)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function su(r){if(It(r)){var e=r.length;if(It(r[0])){for(var t=[],a=0;a<e;a++)t.push(dg.call(r[a]));return t}return dg.call(r)}return r}function Ov(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=null==r[3]?1:r[3],"rgba("+r.join(",")+")"}function zb(r){return 4===r||5===r}function Vv(r){return 1===r||2===r}var uu=[0,0,0,0],ZV=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=6,l=t;if(It(t)){var u=function YV(r){return It(r&&r[0])?2:1}(t);s=u,(1===u&&!Ae(t[0])||2===u&&!Ae(t[0][0]))&&(o=!0)}else if(Ae(t)&&!Pt(t))s=0;else if(X(t))if(isNaN(+t)){var f=Ht(t);f&&(l=f,s=3)}else s=0;else if(Fl(t)){var v=G({},l);v.colorStops=W(t.colorStops,function(h){return{offset:h.offset,color:Ht(h.color)}}),Pb(t)?s=4:Rb(t)&&(s=5),l=v}0===i?this.valType=s:(s!==this.valType||6===s)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return a&&(c.easing=a,c.easingFunc=ae(a)?a:gb[a]||lg(a)),n.push(c),c},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(d,g){return d.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Vv(n),u=zb(n),f=0;f<i;f++){var v=a[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?UV(c,h,n):u&&WV(c.colorStops,h.colorStops))}if(!s&&5!==n&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;var p=a[0].value;for(f=0;f<i;f++)0===n?a[f].additiveValue=a[f].value-p:3===n?a[f].additiveValue=kv([],a[f].value,p,-1):Vv(n)&&(a[f].additiveValue=1===n?kv([],a[f].value,p,-1):Nb([],a[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var f,h,p,a=null!=this._additiveTrack,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=3===i,v=this._lastFr,c=Math.min;if(1===s)h=p=o[0];
vendor: 6,607 bytes, line 1
1else{if(t<0)f=0;else if(t<this._lastFrP){for(f=c(v+1,s-1);f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}p=o[f+1],h=o[f]}if(h&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-h.percent,y=0===g?1:c((t-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=a?this._additiveValue:u?uu:e[l];if((Vv(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(Vv(i))1===i?gg(m,h[n],p[n],y):function HV(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=en(e[o][s],t[o][s],a)}}(m,h[n],p[n],y);else if(zb(i)){var _=h[n],S=p[n],x=4===i;e[l]={type:x?"linear":"radial",x:en(_.x,S.x,y),y:en(_.y,S.y,y),colorStops:W(_.colorStops,function(w,C){var T=S.colorStops[C];return{offset:en(w.offset,T.offset,y),color:Ov(gg([],w.color,T.color,y))}}),global:S.global},x?(e[l].x2=en(_.x2,S.x2,y),e[l].y2=en(_.y2,S.y2,y)):e[l].r=en(_.r,S.r,y)}else if(u)gg(m,h[n],p[n],y),a||(e[l]=Ov(m));else{var b=en(h[n],p[n],y);a?this._additiveValue=b:e[l]=b}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;0===t?e[a]=e[a]+n:3===t?(Ht(e[a],uu),kv(uu,uu,n,1),e[a]=Ov(uu)):1===t?kv(e[a],e[a],n,1):2===t&&Nb(e[a],e[a],n,1)},r}(),XV=function(){function r(e,t,a,n){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n?hv("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=a)}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Te(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new ZV(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,3===f.valType&&u&&(u=Ov(u))}else u=this._target[s];if(null==u)continue;e>0&&l.addKeyframe(0,su(u),n),this._trackKeys.push(s)}l.addKeyframe(e,su(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new AV({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var p=t._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(g=0;g<a.length;g++)a[g].step(t._target,h);var y=t._onframeCbs;if(y)for(g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){this._clip&&(e&&this._clip.onframe(1),this._abortedCallback())},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return W(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var s=!0;for(i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(o&&!o.isFinished()){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=su(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Te(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();const _g=XV;function gs(){return(new Date).getTime()}var KV=function(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,a.stage=(t=t||{}).stage||{},a}return N(e,r),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=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,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=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=gs()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next;i.step(a,n)&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update(
1))},e.prototype._startLoop=function(){var t=this;this._running=!0,og(function a(){t._running&&(og(a),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=gs(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=gs(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=gs()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new _g(t,a.loop);return this.addAnimator(n),n},e}(Cr);const qV=KV;var r,t,Sg=Ee.domSupported,xg=(t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:W(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n})}),Gb_mouse=["mousemove","mouseup"],Gb_pointer=["pointermove","pointerup"],Fb=!1;function bg(r){var e=r.pointerType;return"pen"===e||"touch"===e}function wg(r){r&&(r.zrByTouch=!0)}function Hb(r,e){for(var t=e,a=!1;t&&9!==t.nodeType&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var $V=function(){return function r(e,t){this.stopPropagation=et,this.stopImmediatePropagation=et,this.preventDefault=et,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}}(),Kr={mousedown:function(r){r=Ar(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ar(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=Ar(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){Hb(this,(r=Ar(this.dom,r)).toElement||r.relatedTarget)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Fb=!0,r=Ar(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Fb||(r=Ar(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){wg(r=Ar(this.dom,r)),this.__lastTouchMoment=ne
vendor: 19,346 bytes, line 1
1w Date,this.handler.processGesture(r,"start"),Kr.mousemove.call(this,r),Kr.mousedown.call(this,r)},touchmove:function(r){wg(r=Ar(this.dom,r)),this.handler.processGesture(r,"change"),Kr.mousemove.call(this,r)},touchend:function(r){wg(r=Ar(this.dom,r)),this.handler.processGesture(r,"end"),Kr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<300&&Kr.click.call(this,r)},pointerdown:function(r){Kr.mousedown.call(this,r)},pointermove:function(r){bg(r)||Kr.mousemove.call(this,r)},pointerup:function(r){Kr.mouseup.call(this,r)},pointerout:function(r){bg(r)||Kr.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){Kr[r]=function(e){e=Ar(this.dom,e),this.trigger(r,e)}});var Tg={pointermove:function(r){bg(r)||Tg.mousemove.call(this,r)},pointerup:function(r){Tg.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function zv(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,jd(r.domTarget,e,t,a)}function Cg(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&rV(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Wb=function(){return function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}}(),rz=function(r){function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new Wb(t,Kr),Sg&&(n._globalHandlerScope=new Wb(document,Tg)),function ez(r,e){var t=e.domHandlers;Ee.pointerEventsSupported?A(xg.pointer,function(a){zv(e,a,function(n){t[a].call(r,n)})}):(Ee.touchEventsSupported&&A(xg.touch,function(a){zv(e,a,function(n){t[a].call(r,n),function JV(r){r.touching=!0,null!=r.touchTimer&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}(e)})}),A(xg.mouse,function(a){zv(e,a,function(n){n=qd(n),e.touching||t[a].call(r,n)})}))}(n,n._localHandlerScope),n}return N(e,r),e.prototype.dispose=function(){Cg(this._localHandlerScope),Sg&&Cg(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Sg&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?function tz(r,e){function t(a){zv(e,a,function n(i){i=qd(i),Hb(r,i.target)||(i=function QV(r,e){return Ar(r.dom,new $V(r,e),!0)}(r,i),e.domHandlers[a].call(r,i))},{capture:!0})}Ee.pointerEventsSupported?A(Gb_pointer,t):Ee.touchEventsSupported||A(Gb_mouse,t)}(this,a):Cg(a)}},e}(Cr);const az=rz;var Ub=1;Ee.hasGlobalWindow&&(Ub=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Gv=Ub,Mg="#333",Dg="#ccc",Yb=_i;function Ci(r){return r>5e-5||r<-5e-5}var Ai=[],ys=[],Lg=[1,0,0,1,0,0],Ig=Math.abs,Pg=function(){function r(){}return r.prototype.getLocalTransform=function(e){return zn(this,e)},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.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ci(this.rotation)||Ci(this.x)||Ci(this.y)||Ci(this.scaleX-1)||Ci(this.scaleY-1)||Ci(this.skewX)||Ci(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;t||e?(a=a||[1,0,0,1,0,0],t?this.getLocalTransform(a):Yb(a),e&&(t?cr(a,e,a):En(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a),this.invTransform=this.invTransform||[1,0,0,1,0,0],hr(this.invTransform,a)):a&&(Yb(a),this.invTransform=null)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(Ai);var a=Ai[0]<0?-1:1,n=Ai[1]<0?-1:1,i=((Ai[0]-a)*t+a)/Ai[0]||0,o=((Ai[1]-n)*t+n)/Ai[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}},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],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],cr(ys,e.invTransform,t),t=ys);var a=this.originX,n=this.originY;(a||n)&&(Lg[4]=a,Lg[5]=n,cr(ys,t,Lg),ys[4]-=a,ys[5]-=n,t=ys),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],n=this.invTransform;return n&&tt(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&tt(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Ig(e[0]-1)>1e-10&&Ig(e[3]-1)>1e-10?Math.sqrt(Ig(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){ua(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var p=a+s,d=n+l;t[4]=-p*i-c*d*o,t[5]=-d*o-h*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&ja(t,t,u),t[4]+=a+f,t[5]+=n+v,t},r.initDefaultProps=((e=r.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),r;var e}(),zn=Pg.getLocalTransform;function ms(){return new Pg}var tn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ua(r,e){return Hx(r,e,tn)}const Gn=Pg;var Fv;function qr(r){Fv||(Fv=new ps(100));var e=Fv.get(r=r||Wa);return e||(e={font:r,strWidthCache:new ps(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:St.measureText("\u56fd",r).width,asciiCharWidth:St.measureText("a",r).width},Fv.put(r,e)),e}var Rg=0;function Kb(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=function oz(r){if(!(Rg>=5)){r=r||Wa;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=St.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?Rg=5:n>2&&Rg++,e}}(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?null!=r.asciiWidthMap?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function jr(r,e){var t=r.strWidthCache,a=t.get(e);return null==a&&(a=St.measureText(e,r.font).width,t.put(e,a)),a}function qb(r,e,t,a){var n=jr(qr(e),r),i=fu(e),o=_s(0,n,t),s=Mi(0,i,a);return new fe(o,s,n,i)}function Hv(r,e,t,a){var n=((r||"")+"").split("\n");if(1===n.length)return qb(n[0],e,t,a);for(var o=new fe(0,0,0,0),s=0;s<n.length;s++){var l=qb(n[s],e,t,a);0===s?o.copy(l):o.union(l)}return o}function _s(r,e,t,a){return"right"===t?a?r+=e:r-=e:"center"===t&&(a?r+=e/2:r-=e/2),r}function Mi(r,e,t,a){return"middle"===t?a?r+=e/2:r-=e/2:"bottom"===t&&(a?r+=e:r-=e),r}function fu(r){return qr(r).stWideCharWidth}function fa(r,e){return"string"==typeof r?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Wv(r,e,t){var a=e.position||"inside",n=null!=e.distance?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(a instanceof Array)l+=fa(a[0],t.width),u+=fa(a[1],t.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom"}return(r=r||{}).x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Eg="__zr_normal__",kg=tn.concat(["ignore"]),sz=Tr(tn,function(r,e){return r[e]=!0,r},{ignore:!1}),Ss={},lz=new fe(0,0,0,0),Uv=[],Og=function(){function r(e){this.id=Vd(),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}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[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,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var f=null!=a.position,v=a.autoOverflowArea,c=void 0;if((v||f)&&((c=lz).copy(a.layoutRect?a.layoutRect:this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Ss,a,c):Wv(Ss,a,c),i.x=Ss.x,i.y=Ss.y,o=Ss.align,s=Ss.verticalAlign;var h=a.origin;if(h&&null!=a.rotation){var p=void 0,d=void 0;"center"===h?(p=.5*c.width,d=.5*c.height):(p=fa(h[0],c.width),d=fa(h[1],c.height)),u=!0,i.originX=-i.x+p+(n?0:c.x),i.originY=-i.y+d+(n?0:c.y)}}null!=a.rotation&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new fe(0,0,0,0);i.getLocalTransform(Uv),hr(Uv,Uv),fe.copy(m,c),m.applyTransform(Uv)}else y.overflowRect=null;var S=void 0,x=void 0,b=void 0;(null==a.inside?"string"==typeof a.position&&a.position.indexOf("inside")>=0:a.inside)&&this.canBeInsideText()?(x=a.insideStroke,(null==(S=a.insideFill)||"auto"===S)&&(S=this.getInsideTextFill()),(null==x||"auto"===x)&&(x=this.getInsideTextStroke(S),b=!0)):(x=a.outsideStroke,(null==(S=a.outsideFill)||"auto"===S)&&(S=this.getOutsideFill()),(null==x||"auto"===x)&&(x=this.getOutsideStroke(S),b=!0)),((S=S||"#000")!==y.fill||x!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=b,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=1,l&&t.dirtyStyle(!0)}},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()?Dg:Mg},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a="string"==typeof t&&Ht(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Lr(a,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},G(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("string"==typeof e)this.attrKV(e,t);else if(se(e))for(var n=Te(e),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Eg)){var o=n.targetName;n.saveTo(o?t[o]:t)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,kg)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];null!=e[i]&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},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(Eg,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Eg;if(this.hasState()||!i){var s=this.currentStates,l=this.stateTransition;if(!(pe(s,e)>=0)||!t&&1!==s.length){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i)return void hv("State "+e+" not exists.");i||this.saveCurrentToNormalState(u);var f=this._textContent,v=Jb(this,f,u,n);v&&!this.__inHover&&(this.__inHover=v),this._applyStateObj(e,u,this._normalState,t,$b(this,a,l),l);var c=this._textGuide;return f&&f.useState(e,t,a,!!v),c&&c.useState(e,t,a,!!v),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),u}}},r.prototype.useStates=function(e,t,a){if(e.length){var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s)for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}if(s)return;for(l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=this._textContent,h=Jb(this,c,n[o-1],a);h&&!this.__inHover&&(this.__inHover=h);var p=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,$b(this,t,d),d);var g=this._textGuide;c&&c.useStates(e,t,!!h),g&&g.useStates(e,t,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}else this.clearStates()},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=pe(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=pe(n,e),o=pe(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var a,t={},n=0;n<e.length;n++){var i=e[n];G(t,i),i.textConfig&&G(a=a||{},i.textConfig)}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){if(1!==this.__inHover){var s=!(t&&n);t&&t.textConfig?(this.textConfig=G({},n?this.textConfig:a.textConfig),G(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<kg.length;f++){var v=kg[f],c=i&&sz[v];t&&null!=t[v]?c?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&null!=a[v]&&(c?(u=!0,l[v]=a[v]):this[v]=a[v])}if(!i)for(f=0;f<this.animators.length;f++){var h=this.animators[f],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(t||a)[p]:t||a)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Gn,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),G(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var i=new _g(e?this[e]:this,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=pe(i,e);o>=0&&i.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,n=a.length,i=[],o=0;o<n;o++){var s=a[o];e&&e!==s.scope?i.push(s):s.stop(t)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){Ng(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){Ng(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=Ng(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;function n(i,o,s,l){function u(f,v){Object.defineProperty(v,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(v,1,{get:function(){return f[l]}
1,set:function(c){f[l]=c}})}Object.defineProperty(e,i,{get:function(){return this[o]||u(this,this[o]=[]),this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}})}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=1,Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),r}();function Ng(r,e,t,a,n){var i=[];jb(r,"",r,e,t=t||{},a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,--o<=0&&(s?l&&l():u&&u())},v=function(){--o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(p,d){t.during(d)});for(var c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function Bg(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function fz(r,e,t){if(It(e[t]))if(It(r[t])||(r[t]=[]),jt(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Bg(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(function uz(r){return It(r[0])}(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Bg(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Bg(i,n,o);i.length=n.length}else r[t]=e[t]}function jb(r,e,t,a,n,i,o,s){for(var l=Te(a),u=n.duration,f=n.delay,v=n.additive,c=n.setToFinal,h=!se(i),p=r.animators,d=[],g=0;g<l.length;g++){var m=a[y=l[g]];if(null!=m&&null!=t[y]&&(h||i[y]))if(!se(m)||It(m)||Fl(m))d.push(y);else{if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}jb(r,y,t[y],m,n,i&&i[y],o,s)}else s||(t[y]=m,r.updateDuringAnimation(e),d.push(y))}var _=d.length;if(!v&&_)for(var S=0;S<p.length;S++)if((x=p[S]).targetName===e&&x.stopTracks(d)){var w=pe(p,x);p.splice(w,1)}if(n.force||(d=ke(d,function(D){return!function vz(r,e){return r===e||It(r)&&It(e)&&function cz(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}(r,e)}(a[D],t[D])}),_=d.length),_>0||n.force&&!o.length){var x,C=void 0,T=void 0,M=void 0;if(s)for(T={},c&&(C={}),S=0;S<_;S++)T[y=d[S]]=t[y],c?C[y]=a[y]:t[y]=a[y];else if(c)for(M={},S=0;S<_;S++){var y;M[y=d[S]]=su(t[y]),fz(t,a,y)}(x=new _g(t,!1,!1,v?ke(p,function(I){return I.targetName===e}):null)).targetName=e,n.scope&&(x.scope=n.scope),c&&C&&x.whenWithKeys(0,C,d),M&&x.whenWithKeys(0,M,d),x.whenWithKeys(u??500,s?T:a,d).delay(f||0),r.addAnimator(x,e),o.push(x)}}function Jb(r,e,t,a){return!(t&&t.hoverLayer||a)||Qb(r)||e&&Qb(e)?0:1}function Qb(r){return"text"===r.type||"tspan"===r.type}function $b(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}it(Og,Cr),it(Og,Gn);const ew=Og;var tw=function(r){function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}return N(e,r),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=pe(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.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,n=this._children,i=pe(n,t);return i<0||(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++)t.call(a,n[i],i);return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].addSelfToZr(t)},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].removeSelfFromZr(t)},e.prototype.getBoundingRect=function(t){for(var a=new fe(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];
1if(!l.ignore&&!l.invisible){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(fe.applyTransform(a,u,f),(o=o||a.clone()).union(a)):(o=o||u.clone()).union(u)}}return o||a},e}(ew);tw.prototype.type="group";const oe=tw;var zg,Xv={},Di={},dz=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new SV,o=a.renderer||"canvas";Xv[o]||(o=Te(Xv)[0]),a.useDirtyRect=null!=a.useDirtyRect&&a.useDirtyRect;var s=new Xv[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var h,u=Ee.node||Ee.worker||l?null:new az(s.getViewportRoot(),s.root),f=a.useCoarsePointer;(null==f||"auto"===f?Ee.touchEventsSupported:!!f)&&(h=Q(a.pointerSize,44)),this.handler=new dV(i,s,u,s.root,h),this.animation=new qV({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function pz(r){if(!r)return!1;if("string"==typeof r)return nu(r,1)<.4;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=nu(e[n].color,1);return(t/=a)<.4}return!1}(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,a=gs(),n=this._needsRefresh,i=this._needsRefreshHover;(n||i)&&(t=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:i}));var o=gs();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(this.painter.resize((e=e||{}).width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof oe&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,function hz(r){delete Di[r]}(this.id))},r}();function Vg(r,e){var t=new dz(Vd(),r,e);return Di[t.id]=t,t}function gz(r){r.dispose()}function yz(){for(var r in Di)Di.hasOwnProperty(r)&&Di[r].dispose();Di={}}function mz(r){return Di[r]}function rw(r,e){Xv[r]=e}function aw(r){if("function"==typeof zg)return zg(r)}function nw(r){zg=r}
vendor: 17,579 bytes, line 1
1var _z="6.1.0",Be=Math.min,xe=Math.max,rt=Math.abs,va=Math.round,Ir=Math.floor,Li=Math.ceil,Ii=Math.pow,Pi=Math.log,vu=Math.LN10,qv=Math.PI,bz=Math.random;function Re(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var K=function wz(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%"}return jv(r,e,t)};function jv(r,e,t){return X(r)?ow(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):null==r?NaN:+r}function ow(r){return!!function xz(r){return r.replace(/^\s+|\s+$/g,"")}(r).match(/%$/)}function Ie(r,e,t){return isNaN(e)?t?""+r:+r:(e=Be(xe(0,e),20),r=(+r).toFixed(e),t?r:+r)}function Cz(r,e,t){return null==e&&(e=10),Ie(r,e,t)}function Ct(r){return r.sort(function(e,t){return e-t}),r}function ca(r){if(r=+r,isNaN(r))return 0;if(r>1e-14)for(var e=1,t=0;t<15;t++,e*=10)if(va(r*e)/e===r)return t;return sw(r)}function sw(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf(".");return xe(0,(i<0?0:n-1-i)-a)}function Az(r,e){var t=Ir(Pi(r[1]-r[0])/vu),a=va(Pi(rt(e[1]-e[0]))/vu),n=Be(xe(-t+a,0),20);return isFinite(n)?n:20}function Gg(r,e,t){var a=rt(r[1]-r[0]);if(!isFinite(a)||0===a)return NaN;var n=Pi(2*rt(t||1)*rt(a))/vu,i=Pi(rt(e))/vu,o=xe(0,Li(-n+i));return isFinite(o)||(o=NaN),o}function Mz(r,e,t){return r[e]&&lw(r,t)[e]||0}function lw(r,e){var t=Tr(r,function(h,p){return h+(isNaN(p)?0:p)},0);if(0===t)return[];for(var a=Ii(10,e),n=W(r,function(h){return(isNaN(h)?0:h)/t*a*100}),i=100*a,o=W(n,function(h){return Ir(h)}),s=Tr(o,function(h,p){return h+p},0),l=W(n,function(h,p){return h-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,c=l.length;v<c;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return W(o,function(h){return h/a})}function Ri(r,e){var t=xe(ca(r),ca(e)),a=r+e;return t>20?a:Ie(a,t)}var cu=Ii(2,53)-1;function Fg(r){var e=2*qv;return(r%e+e)%e}function Ei(r){return r>-1e-4&&r<1e-4}var Dz=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ha(r){if(r instanceof Date)return r;if(X(r)){var e=Dz.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==r?new Date(NaN):new Date(va(r))}function Hg(r){return Ii(10,Jv(r))}function Jv(r){if(0===r)return 0;var e=Ir(Pi(r)/vu);return r/Ii(10,e)>=10&&e++,e}function Qv(r,e){var t=Jv(r),a=Ii(10,t),n=r/a;return Ie(r=(2===e?1:e?n<1.5?1:n<2.5?2:n<4?3:n<7?5:10:n<1?1:n<2?2:n<3?3:n<5?5:10)*a,-t)}function $v(r,e){var t=(r.length-1)*e+1,a=Ir(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function Wg(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!=1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]==(f?-1:1)||!f&&s(l,u,1))}}function pa(r){var e=parseFloat(r);return e==r&&(0!==e||!X(r)||r.indexOf("x")<=0)?e:NaN}function Ug(r){return!isNaN(pa(r))}function Yg(){return va(9*bz())}function fw(r,e){return 0===e?r:fw(e,r%e)}function vw(r,e){return null==r?e:null==e?r:r*e/fw(r,e)}function Pr(r){return null!=r&&isFinite(r)}function cw(r,e,t){return(e-r)*t+r}var hw="series\0";function Fe(r){return r instanceof Array?r:null==r?[]:[r]}function ki(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var dw=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function xs(r){return!se(r)||H(r)||r instanceof Date?r:r.value}function Rz(r){return se(r)&&!(r instanceof Array)}function gw(r,e,t){var a="normalMerge"===t,n="replaceMerge"===t,i="replaceAll"===t;r=r||[],e=(e||[]).slice();var o=j();A(e,function(l,u){se(l)||(e[u]=null)});var s=function Ez(r,e,t){var a=[];if("replaceAll"===t)return a;for(var n=0;n<r.length;n++){var i=r[n];i&&null!=i.id&&e.set(i.id,n),a.push({existing:"replaceMerge"===t||pu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}(r,o,t);return(a||n)&&function kz(r,e,t,a){A(a,function(n,i){if(n&&null!=n.id){var o=hu(n.id),s=t.get(o);if(null!=s){var l=r[s];Rt(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}(s,r,o,e),a&&function Oz(r,e){A(e,function(t,a){if(t&&null!=t.name)for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(null==i.id||null==t.id)&&!pu(t)&&!pu(i)&&yw("name",i,t))return r[n].newOption=t,void(e[a]=null)}})}(s,e),a||n?function Nz(r,e,t){A(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||pu(n.existing)||n.existing&&null!=a.id&&!yw("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}(s,e,n):i&&function Bz(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(s,e),function Vz(r){var e=j();A(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),A(r,function(t){var a=t.newOption;Rt(!a||null==a.id||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&null!=a.id&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),A(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(se(i)){if(o.name=null!=i.name?hu(i.name):n?n.name:hw+a,n)o.id=hu(n.id);else if(null!=i.id)o.id=hu(i.id);else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(e.get(o.id))}e.set(o.id,t)}})}(s),s}function yw(r,e,t){var a=pt(e[r],null),n=pt(t[r],null);return null!=a&&null!=n&&a===n}function hu(r){return pt(r,"")}function pt(r,e){return null==r?e:X(r)?r:Ae(r)||dv(r)?r+"":e}function Zg(r){var e=r.name;return!(!e||!e.indexOf(hw))}function pu(r){return r&&null!=r.id&&0===hu(r.id).indexOf("\0_ec_\0")}function Oi(r,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?H(e.dataIndex)?W(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex):null!=e.name?H(e.name)?W(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name):void 0}function ge(){var r="__ec_inner_"+Wz++;return function(e){return e[r]||(e[r]={})}}var Wz=Yg();function bs(r,e,t){var a=Xg(e,t),i=a.queryOptionMap,s=a.others,l=t?t.defaultMainType:null;return!a.mainTypeSpecified&&l&&i.set(l,{}),i.each(function(u,f){var v=ws(r,f,u,{useDefault:l===f,enableAll:!t||null==t.enableAll||t.enableAll,enableNone:!t||null==t.enableNone||t.enableNone});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function Xg(r,e){var t;if(X(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=j(),i={},o=!1;return A(t,function(s,l){if("dataIndex"!==l&&"dataIndexInside"!==l){var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();!f||!v||e&&e.includeMainTypes&&pe(e.includeMainTypes,f)<0||(o=o||!!f,(n.get(f)||n.set(f,{}))[v]=s)}else i[l]=s}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var at={useDefault:!0,enableAll:!1,enableNone:!1},Uz={useDefault:!1,enableAll:!0,enableNone:!0};function ws(r,e,t,a){a=a||at;var n=t.index,i=t.id,o=t.name,s={models:null,specified:null!=n||null!=i||null!=o};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if("none"===n||!1===n){if(a.enableNone)return s.models=[],s;n=-1}return"all"===n&&(n=a.enableAll?i=o=null:-1),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function Kg(r,e,t){var a={};a[e+"Id"]=r[e+"Id"],a[e+"Index"]=r[e+"Index"],a[e+"Name"]=r[e+"Name"];var n={mainType:e,query:a};return t&&(n.subType=t),n}function mw(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function qg(r,e){var t=j(),a=[];return A(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function _w(r,e,t,a,n){var i=null==e||"auto"===e;if(null==a)return a;if(Ae(a))return Ie(o=cw(t||0,a,n),i?Math.max(ca(t||0),ca(a)):e);if(X(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&"ordinal"===c.type)s[v]=(n<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,p=u[v],o=cw(h,p,n);s[v]=Ie(o,i?Math.max(ca(h),ca(p)):e)}}return s}var Fn=function(){function r(){}return r.prototype.reset=function(e,t,a,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=a??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)},r}();function jg(r){r.option=r.parentModel=r.ecModel=null}function Jg(r,e){rn(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function Sw(r,e){rn(e)&&e<r[0]&&(r[0]=e)}function xw(r,e){rn(e)&&e>r[1]&&(r[1]=e)}function rn(r){return null!=r&&isFinite(r)}function Ni(r,e){return rn(r)&&rn(e)&&r<=e}function ec(r){Ni(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function Ts(){var r="__ec_once_"+qz++;return function(e,t){J(e,r)||(e[r]=1,t())}}var qz=Yg();function tc(r,e,t){var a=j(),n=0;A(r,function(i){var o=e(i),s=a.get(o)||0;t&&t(i,s),!s&&!t&&(r[n++]=i),a.set(o,s+1)}),t||(r.length=n)}function jz(r){return r.value+""}function Jz(r){return r+""}function da(r,e){return Q(e,!0)?r.seriesIndex+2:0}function bw(r,e,t){var a=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&a>=t.threshold,large:r.get("large")&&a>=r.get("largeThreshold"),modDataCount:"mod"===r.get("progressiveChunkMode")?r.getData().count():null}}function dt(r,e){return{seriesType:r,overallReset:e}}function du(r){return{overallReset:r}}var Bi="___EC__COMPONENT__CONTAINER___",ww="___EC__EXTENDED_CLASS___";function ga(r){var e={main:"",sub:""};if(r){var t=r.split(".");e.main=t[0]||"",e.sub=t[1]||""}return e}function Qg(r,e){r.$constructor=r,r.extend=function(t){var n,a=this;return function t5(r){return ae(r)&&/^class\s/.test(Function.prototype.toString.call(r))}(a)?n=function(i){function o(){return i.apply(this,arguments)||this}return N(o,i),o}(a):(n=function(){(t.$constructor||a).apply(this,arguments)},zd(n,this)),G(n.prototype,t),n[ww]=!0,n.extend=this.extend,n.superCall=n5,n.superApply=i5,n.superClass=a,n}}function Tw(r,e){r.extend=e.extend}var r5=Math.round(10*Math.random());function n5(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function i5(r,e,t){return this.superClass.prototype[e].apply(r,t)}function rc(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){(function $z(r){Rt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')})(n),a.prototype.type=n;var i=ga(n);if(i.sub){if(i.sub!==Bi){var o=function t(a){var n=e[a.main];return(!n||!n[Bi])&&((n=e[a.main]={})[Bi]=!0),n}(i);o[i.sub]=a}}else e[i.main]=a}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[Bi]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=ga(a),i=[],o=e[n.main];return o&&o[Bi]?A(o,function(s,l){l!==Bi&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ga(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ga(a),i=e[n.main];return i&&i[Bi]}}function Vi(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&pe(n,l)>=0||i&&pe(i,l)<0)){var u=a.getShallow(l,e);null!=u&&(o[r[s][0]]=u)}}return o}}var s5=Vi([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),l5=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return s5(this,e,t)},r}(),$g=new ps(50);function u5(r){if("string"==typeof r){var e=$g.get(r);return e&&e.image}return r}function ey(r,e,t,a,n){if(r){if("string"==typeof r){if(e&&e.__zrImageSrc===r||!t)return e;var i=$g.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?!ac(e=i.image)&&i.pending.push(o):((e=St.loadImage(r,Cw,Cw)).__zrImageSrc=r,$g.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}return r}return e}function Cw(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function ac(r){return r&&r.width&&r.height}var ty=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function f5(r,e,t,a,n){var i={};return Aw(i,r,e,t,a,n),i.text}function Aw(r,e,t,a,n,i){if(!t)return r.text="",void(r.isTruncated=!1);var o=(e+"").split("\n");i=Mw(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Dw(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join("\n"),r.isTruncated=s}function Mw(r,e,t,a){var n=G({},a=a||{});t=Q(t,"..."),n.maxIterations=Q(a.maxIterations,2);var i=n.minChar=Q(a.minChar,0),o=n.fontMeasureInfo=qr(e),s=o.asciiCharWidth;n.placeholder=Q(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=jr(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function Dw(r,e,t){var a=t.containerWidth,n=t.contentWidth,i=t.fontMeasureInfo;if(!a)return r.textLine="",void(r.isTruncated=!1);var o=jr(i,e);if(o<=a)return r.textLine=e,void(r.isTruncated=!1);for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=0===s?v5(e,n,i):o>0?Math.floor(e.length*n/o):0;o=jr(i,e=e.substr(0,l))}""===e&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function v5(r,e,t){for(var a=0,n=0,i=r.length;n<i&&a<e;n++)a+=Kb(t,r.charCodeAt(n));return n}var h5=function(){return function r(){}}(),Lw=function(){return function r(e){this.tokens=[],e&&(this.tokens=e)}}(),p5=function(){return function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}}();function ry(r,e,t,a,n){var f,v,i=""===e,o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1;if(a){var c=o.padding,h=c?c[1]+c[3]:0;if(null!=o.width&&"auto"!==o.width){var p=fa(o.width,a.width)+h;s.length>0&&p+a.accumWidth>a.width&&(f=e.split("\n"),u=!0),a.accumWidth=p}else{var d=Iw(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+h,v=d.linesWidths,f=d.lines}}f||(f=e.split("\n"));for(var g=qr(l),y=0;y<f.length;y++){var m=f[y],_=new h5;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!i,_.width="number"==typeof o.width?o.width:v?v[y]:jr(g,m),y||u)s.push(new Lw([_]));else{var S=(s[s.length-1]||(s[0]=new Lw)).tokens,x=S.length;1===x&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}}}var y5=Tr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function m5(r){return!function g5(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(r)||!!y5[r]}function Iw(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,v=qr(e),c=0;c<r.length;c++){var h=r.charAt(c);if("\n"!==h){var p=Kb(v,h.charCodeAt(0)),d=!a&&!m5(h);(i.length?f+p>t:n+f+p>t)?f?(s||l)&&(d?(s||(s=l,l="",f=u=0),i.push(s),o.push(f-u),l+=h,s="",f=u+=p):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=p)):d?(i.push(l),o.push(u),l=h,u=p):(i.push(h),o.push(p)):(f+=p,d?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0}return l&&(s+=l),s&&(i.push(s),o.push(f)),1===i.length&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function Pw(r,e,t,a,n,i){if(r.baseX=t,r.baseY=a,r.outerWidth=r.outerHeight=null,e){var o=2*e.width,s=2*e.height;fe.set(Rw,_s(t,o,n),Mi(a,s,i),o,s),fe.intersect(e,Rw,null,Ew);var l=Ew.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=_s(l.x,l.width,n,!0),r.baseY=Mi(l.y,l.height,i,!0)}}var Rw=new fe(0,0,0,0),Ew={outIntersectRect:{},clamp:!0};function ay(r){return null!=r?r+="":r=""}function ny(r,e,t,a){var n=new fe(_s(r.x||0,e,r.textAlign),Mi(r.y||0,t,r.textBaseline),e,t),i=a??(kw(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function kw(r){var e=r.stroke;return null!=e&&"none"!==e&&r.lineWidth>0}var iy="__zr_style_"+Math.round(10*Math.random()),zi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},nc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};zi[iy]=!0;var Ow=["z","z2","invisible"],S5=["invisible"],x5=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype._init=function(t){for(var a=Te(t),n=0;n<a.length;n++){var i=a[n];"style"===i?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function b5(r,e,t){return oy.copy(r.getBoundingRect
vendor: 19,756 bytes, line 1
1()),r.transform&&oy.applyTransform(r.transform),sy.width=e,sy.height=t,!oy.intersect(sy)}(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1;if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new fe(0,0,0,0)),a?fe.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=2*o+Math.abs(s),t.height+=2*o+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+2*u),t.height=Math.ceil(t.height+1+2*u))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new fe(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){"style"!==t?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return"string"==typeof t?this.style[t]=a:G(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(2&this.__dirty)},e.prototype.styleUpdated=function(){this.__dirty&=-3},e.prototype.createStyle=function(t){return Ul(zi,t)},e.prototype.useStyle=function(t){t[iy]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[iy]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,Ow)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var f,l=!(a&&i),u=1===this.__inHover;if(a&&a.style?o?i?f=a.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,a.style)):(f=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(f,a.style)):l&&(f=n.style),f)if(o){var v=this.style;if(this.style=this.createStyle(l?{}:v),l)for(var c=Te(v),h=0;h<c.length;h++)(p=c[h])in f&&(f[p]=f[p],this.style[p]=v[p]);var d=Te(f);for(h=0;h<d.length;h++)this.style[p=d[h]]=this.style[p];this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u){var g=this.__inHover?S5:Ow;for(h=0;h<g.length;h++){var p=g[h];a&&null!=a[p]?this[p]=a[p]:l&&null!=n[p]&&(this[p]=n[p])}}},e.prototype._mergeStates=function(t){for(var n,a=r.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(n=n||{},o.style)}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return G(t,a),t},e.prototype.getAnimationStyleProps=function(){return nc},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=3}(),e}(ew),oy=new fe(0,0,0,0),sy=new fe(0,0,0,0);const Rr=x5;var or=Math.min,sr=Math.max,ly=Math.sin,uy=Math.cos,Gi=2*Math.PI,ic=In(),oc=In(),sc=In();function lc(r,e,t){if(0!==r.length){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)n=or(n,(a=r[l])[0]),i=sr(i,a[0]),o=or(o,a[1]),s=sr(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function Nw(r,e,t,a,n,i){n[0]=or(r,t),n[1]=or(e,a),i[0]=sr(r,t),i[1]=sr(e,a)}var Bw=[],Vw=[];function w5(r,e,t,a,n,i,o,s,l,u){var f=xb,v=xt,c=f(r,t,n,o,Bw);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var p=v(r,t,n,o,Bw[h]);l[0]=or(p,l[0]),u[0]=sr(p,u[0])}for(c=f(e,a,i,s,Vw),h=0;h<c;h++){var d=v(e,a,i,s,Vw[h]);l[1]=or(d,l[1]),u[1]=sr(d,u[1])}l[0]=or(r,l[0]),u[0]=sr(r,u[0]),l[0]=or(o,l[0]),u[0]=sr(o,u[0]),l[1]=or(e,l[1]),u[1]=sr(e,u[1]),l[1]=or(s,l[1]),u[1]=sr(s,u[1])}function T5(r,e,t,a,n,i,o,s){var l=wb,u=Tt,f=sr(or(l(r,t,n),1),0),v=sr(or(l(e,a,i),1),0),c=u(r,t,n,f),h=u(e,a,i,v);o[0]=or(r,n,c),o[1]=or(e,i,h),s[0]=sr(r,n,c),s[1]=sr(e,i,h)}function C5(r,e,t,a,n,i,o,s,l){var u=Xa,f=Ka,v=Math.abs(n-i);if(v%Gi<1e-4&&v>1e-4)return s[0]=r-t,s[1]=e-a,l[0]=r+t,void(l[1]=e+a);if(ic[0]=uy(n)*t+r,ic[1]=ly(n)*a+e,oc[0]=uy(i)*t+r,oc[1]=ly(i)*a+e,u(s,ic,oc),f(l,ic,oc),(n%=Gi)<0&&(n+=Gi),(i%=Gi)<0&&(i+=Gi),n>i&&!o?i+=Gi:n<i&&o&&(n+=Gi),o){var c=i;i=n,n=c}for(var h=0;h<i;h+=Math.PI/2)h>n&&(sc[0]=uy(h)*t+r,sc[1]=ly(h)*a+e,u(s,sc,s),f(l,sc,l))}var Ue={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Fi=[],Hi=[],ya=[],Hn=[],ma=[],_a=[],fy=Math.min,vy=Math.max,Wi=Math.cos,Ui=Math.sin,an=Math.abs,cy=Math.PI,Wn=2*cy,hy=typeof Float32Array<"u",gu=[];function py(r){return Math.round(r/cy*1e8)/1e8%2*cy}function uc(r,e){var t=py(r[0]);t<0&&(t+=Wn);var n=r[1];n+=t-r[0],!e&&n-t>=Wn?n=t+Wn:e&&t-n>=Wn?n=t-Wn:!e&&t>n?n=t+(Wn-py(t-n)):e&&t<n&&(n=t-(Wn-py(n-t))),r[0]=t,r[1]=n}var A5=function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){(a=a||0)>0&&(this._ux=an(a/Gv/e)||0,this._uy=an(a/Gv/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._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Ue.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=an(e-this._xi),n=an(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Ue.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(Ue.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(Ue.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){return this._drawPendingPt(),gu[0]=n,gu[1]=i,uc(gu,o),this.addData(Ue.A,e,t,a,a,n=gu[0],(i=gu[1])-n,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=Wi(i)*a+e,this._yi=Ui(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(Ue.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ue.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&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.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;(!this.data||this.data.length!==t)&&hy&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();var o=this.data;if(hy&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+a),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(i=0;i<t;i++){var l=e[i].data;for(s=0;s<l.length;s++)this.data[n++]=l[s]}this._len=n}},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var v=0;v<arguments.length;v++)f[this._len++]=arguments[v]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,hy&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){ya[0]=ya[1]=ma[0]=ma[1]=Number.MAX_VALUE,Hn[0]=Hn[1]=_a[0]=_a[1]=-Number.MAX_VALUE;var o,e=this.data,t=0,a=0,n=0,i=0;for(o=0;o<this._len;){var s=e[o++],l=1===o;switch(l&&(n=t=e[o],i=a=e[o+1]),s){case Ue.M:t=n=e[o++],a=i=e[o++],ma[0]=n,ma[1]=i,_a[0]=n,_a[1]=i;break;case Ue.L:Nw(t,a,e[o],e[o+1],ma,_a),t=e[o++],a=e[o++];break;case Ue.C:w5(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ma,_a),t=e[o++],a=e[o++];break;case Ue.Q:T5(t,a,e[o++],e[o++],e[o],e[o+1],ma,_a),t=e[o++],a=e[o++];break;case Ue.A:var u=e[o++],f=e[o++],v=e[o++],c=e[o++],h=e[o++],p=e[o++]+h;o+=1;var d=!e[o++];l&&(n=Wi(h)*v+u,i=Ui(h)*c+f),C5(u,f,v,c,h,p,d,ma,_a),t=Wi(p)*v+u,a=Ui(p)*c+f;break;case Ue.R:Nw(n=t=e[o++],i=a=e[o++],n+e[o++],i+e[o++],ma,_a);break;case Ue.Z:t=n,a=i}Xa(ya,ya,ma),Ka(Hn,Hn,_a)}return 0===o&&(ya[0]=ya[1]=Hn[0]=Hn[1]=0),new fe(ya[0],ya[1],Hn[0]-ya[0],Hn[1]-ya[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,v=0,c=0;c<t;){var h=e[c++],p=1===c;p&&(s=i=e[c],l=o=e[c+1]);var d=-1;switch(h){case Ue.M:i=s=e[c++],o=l=e[c++];break;case Ue.L:var g=e[c++],_=(y=e[c++])-o;(an(m=g-i)>a||an(_)>n||c===t-1)&&(d=Math.sqrt(m*m+_*_),i=g,o=y);break;case Ue.C:var S=e[c++],x=e[c++],y=(g=e[c++],e[c++]),b=e[c++],w=e[c++];d=xV(i,o,S,x,g,y,b,w,10),i=b,o=w;break;case Ue.Q:d=wV(i,o,S=e[c++],x=e[c++],g=e[c++],y=e[c++],10),i=g,o=y;break;case Ue.A:var C=e[c++],T=e[c++],M=e[c++],D=e[c++],I=e[c++],L=e[c++],P=L+I;c+=1,p&&(s=Wi(I)*M+C,l=Ui(I)*D+T),d=vy(M,D)*fy(Wn,Math.abs(L)),i=Wi(P)*M+C,o=Ui(P)*D+T;break;case Ue.R:s=i=e[c++],l=o=e[c++],d=2*e[c++]+2*e[c++];break;case Ue.Z:var m=s-i;_=l-o,d=Math.sqrt(m*m+_*_),i=s,o=l}d>=0&&(u[v++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var s,l,u,f,v,c,p,m,S,x,a=this.data,n=this._ux,i=this._uy,o=this._len,h=t<1,g=0,y=0,_=0;if(!h||(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=t*this._pathLen))e:for(var b=0;b<o;){var w=a[b++],C=1===b;switch(C&&(s=u=a[b],l=f=a[b+1]),w!==Ue.L&&_>0&&(e.lineTo(S,x),_=0),w){case Ue.M:s=u=a[b++],l=f=a[b++],e.moveTo(u,f);break;case Ue.L:v=a[b++],c=a[b++];var T=an(v-u),M=an(c-f);if(T>n||M>i){if(h){if(g+(D=p[y++])>m){e.lineTo(u*(1-(I=(m-g)/D))+v*I,f*(1-I)+c*I);break e}g+=D}e.lineTo(v,c),u=v,f=c,_=0}else{var L=T*T+M*M;L>_&&(S=v,x=c,_=L)}break;case Ue.C:var P=a[b++],E=a[b++],R=a[b++],k=a[b++],O=a[b++],V=a[b++];if(h){if(g+(D=p[y++])>m){Nn(u,P,R,O,I=(m-g)/D,Fi),Nn(f,E,k,V,I,Hi),e.bezierCurveTo(Fi[1],Hi[1],Fi[2],Hi[2],Fi[3],Hi[3]);break e}g+=D}e.bezierCurveTo(P,E,R,k,O,V),u=O,f=V;break;case Ue.Q:if(P=a[b++],E=a[b++],R=a[b++],k=a[b++],h){if(g+(D=p[y++])>m){eu(u,P,R,I=(m-g)/D,Fi),eu(f,E,k,I,Hi),e.quadraticCurveTo(Fi[1],Hi[1],Fi[2],Hi[2]);break e}g+=D}e.quadraticCurveTo(P,E,R,k),u=R,f=k;break;case Ue.A:var z=a[b++],F=a[b++],U=a[b++],Y=a[b++],Z=a[b++],$=a[b++],ye=a[b++],Ne=!a[b++],ve=U>Y?U:Y,ee=an(U-Y)>.001,_e=Z+$,te=!1;if(h&&(g+(D=p[y++])>m&&(_e=Z+$*(m-g)/D,te=!0),g+=D),ee&&e.ellipse?e.ellipse(z,F,U,Y,ye,Z,_e,Ne):e.arc(z,F,ve,Z,_e,Ne),te)break e;C&&(s=Wi(Z)*U+z,l=Ui(Z)*Y+F),u=Wi(_e)*U+z,f=Ui(_e)*Y+F;break;case Ue.R:s=u=a[b],l=f=a[b+1],v=a[b++],c=a[b++];var ce=a[b++],Ge=a[b++];if(h){if(g+(D=p[y++])>m){var Le=m-g;e.moveTo(v,c),e.lineTo(v+fy(Le,ce),c),(Le-=ce)>0&&e.lineTo(v+ce,c+fy(Le,Ge)),(Le-=Ge)>0&&e.lineTo(v+vy(ce-Le,0),c+Ge),(Le-=ce)>0&&e.lineTo(v,c+vy(Ge-Le,0));break e}g+=D}e.rect(v,c,ce,Ge);break;case Ue.Z:if(h){var D;if(g+(D=p[y++])>m){var I;e.lineTo(u*(1-(I=(m-g)/D))+s*I,f*(1-I)+l*I);break e}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Ue,r.initDefaultProps=((e=r.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),r;var e}();const Sa=A5;function Un(r,e,t,a,n,i,o){if(0===n)return!1;var l,s=n;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r===t)return Math.abs(i-r)<=s/2;var f=(l=(e-a)/(r-t))*i-o+(r*a-t*e)/(r-t);return f*f/(l*l+1)<=s/2*s/2}function M5(r,e,t,a,n,i,o,s,l,u,f){if(0===l)return!1;var v=l;return!(f>e+v&&f>a+v&&f>i+v&&f>s+v||f<e-v&&f<a-v&&f<i-v&&f<s-v||u>r+v&&u>t+v&&u>n+v&&u>o+v||u<r-v&&u<t-v&&u<n-v&&u<o-v)&&bb(r,e,t,a,n,i,o,s,u,f,null)<=v/2}function zw(r,e,t,a,n,i,o,s,l){if(0===o)return!1;var u=o;return!(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)&&Tb(r,e,t,a,n,i,s,l,null)<=u/2}var Gw=2*Math.PI;function dr(r){return(r%=Gw)<0&&(r+=Gw),r}var yu=2*Math.PI;function D5(r,e,t,a,n,i,o,s,l){if(0===o)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(a-n)%yu<1e-4)return!0;if(i){var v=a;a=dr(n),n=dr(v)}else a=dr(a),n=dr(n);a>n&&(n+=yu);var c=Math.atan2(l,s);return c<0&&(c+=yu),c>=a&&c<=n||c+yu>=a&&c+yu<=n}function nn(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(1===o||0===o)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var Yn=Sa.CMD,Yi=2*Math.PI,Jt=[-1,-1,-1],Er=[-1,-1];function P5(){var r=Er[0];Er[0]=Er[1],Er[1]=r}function R5(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var f=Mv(e,a,i,s,u,Jt);if(0===f)return 0;for(var v=0,c=-1,h=void 0,p=void 0,d=0;d<f;d++){var g=Jt[d],y=0===g||1===g?.5:1;xt(r,t,n,o,g)<l||(c<0&&(c=xb(e,a,i,s,Er),Er[1]<Er[0]&&c>1&&P5(),h=xt(e,a,i,s,Er[0]),c>1&&(p=xt(e,a,i,s,Er[1]))),v+=2===c?g<Er[0]?h<e?y:-y:g<Er[1]?p<h?y:-y:s<p?y:-y:g<Er[0]?h<e?y:-y:s<h?y:-y)}return v}function E5(r,e,t,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=function bV(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(On(i))_b(o)&&(u=-s/o)>=0&&u<=1&&(n[l++]=u);else{var f=o*o-4*i*s;if(On(f))(u=-o/(2*i))>=0&&u<=1&&(n[l++]=u);else if(f>0){var u,v=kn(f),c=(-o-v)/(2*i);(u=(-o+v)/(2*i))>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}(e,a,i,s,Jt);if(0===l)return 0;var u=wb(e,a,i);if(u>=0&&u<=1){for(var f=0,v=Tt(e,a,i,u),c=0;c<l;c++){var h=0===Jt[c]||1===Jt[c]?.5:1;Tt(r,t,n,Jt[c])<o||(f+=Jt[c]<u?v<e?h:-h:i<v?h:-h)}return f}return h=0===Jt[0]||1===Jt[0]?.5:1,Tt(r,t,n,Jt[0])<o?0:i<e?h:-h}function k5(r,e,t,a,n,i,o,s){if((s-=e)>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Jt[0]=-l,Jt[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Yi-1e-4){a=0,n=Yi;var f=i?1:-1;return o>=Jt[0]+r&&o<=Jt[1]+r?f:0}if(a>n){var v=a;a=n,n=v}a<0&&(a+=Yi,n+=Yi);for(var c=0,h=0;h<2;h++){var p=Jt[h];if(p+r>o){var d=Math.atan2(s,p);f=i?1:-1,d<0&&(d=Yi+d),(d>=a&&d<=n||d+Yi>=a&&d+Yi<=n)&&(d>Math.PI/2&&d<1.5*Math.PI&&(f=-f),c+=f)}}return c}function Fw(r,e,t,a,n){for(var c,h,i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,p=0;p<o;){var d=i[p++],g=1===p;switch(d===Yn.M&&p>1&&(t||(s+=nn(l,u,f,v,a,n))),g&&(f=l=i[p],v=u=i[p+1]),d){case Yn.M:l=f=i[p++],u=v=i[p++];break;case Yn.L:if(t){if(Un(l,u,i[p],i[p+1],e,a,n))return!0}else s+=nn(l,u,i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Yn.C:if(t){if(M5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=R5(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Yn.Q:if(t){if(zw(l,u,i[p++],i[p++],i[p],i[p+1],e,a,n))return!0}else s+=E5(l,u,i[p++],i[p++],i[p],i[p+1],a,n)||0;l=i[p++],u=i[p++];break;case Yn.A:var y=i[p++],m=i[p++],_=i[p++],S=i[p++],x=i[p++],b=i[p++];p+=1;var w=!!(1-i[p++]);c=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=c,v=h):s+=nn(l,u,c,h,a,n);var C=(a-y)*S/_+y;if(t){if(D5(y,m,S,x,x+b,w,e,C,n))return!0}else s+=k5(y,m,S,x,x+b,w,C,n);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case Yn.R:if(f=l=i[p++],v=u=i[p++],c=f+i[p++],h=v+i[p++],t){if(Un(f,v,c,v,e,a,n)||Un(c,v,c,h,e,a,n)||Un(c,h,f,h,e,a,n)||Un(f,h,f,v,e,a,n))return!0}else s+=nn(c,v,c,h,a,n),s+=nn(f,h,f,v,a,n);break;case Yn.Z:if(t){if(Un(l,u,f,v,e,a,n))return!0}else s+=nn(l,u,f,v,a,n);l=f,u=v}}return!t&&!function I5(r,e){return Math.abs(r-e)<1e-4}(u,v)&&(s+=nn(l,u,f,v,a,n)||0),0!==s}var fc=ie({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},zi),B5={style:ie({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},nc.style)},dy=tn.concat(["invisible","culling","z","z2","zlevel","parent"]),V5=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<dy.length;++s)n[dy[s]]=this[dy[s]];n.__dirty|=1}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=Te(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=t[o];"style"===o?this.style?G(this.style,s):this.useStyle(s):"shape"===o?G(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(X(t)){var a=nu(t,0);return a>.5?Mg:a>.2?"#eee":Dg}if(t)return Dg}return Mg},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(X(a)){var n=this.__zr;if(!(!n||!n.isDarkMode())==nu(t,0)<.4)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Sa(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(null==a||"none"===a||!(t.lineWidth>0))},e.prototype.hasFill=function(){var a=this.style.fill;return null!=a&&"none"!==a},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||4&this.__dirty)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect
1()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;this.hasFill()||(u=Math.max(u,this.strokeContainThreshold??4)),l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(i.contain(t=n[0],a=n[1])){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)),function N5(r,e,t,a){return Fw(r,e,!0,t,a)}(s,l/u,t,a)))return!0}if(this.hasFill())return function O5(r,e,t){return Fw(r,0,!1,e,t)}(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,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){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,a){"shape"===t?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=a:G(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Ul(fc,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=G({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){if(r.prototype._applyStateObj.call(this,t,a,n,i,o,s),1!==this.__inHover){var u,l=!(a&&i);if(a&&a.shape?o?i?u=a.shape:(u=G({},n.shape),G(u,a.shape)):(u=G({},i?this.shape:n.shape),G(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=G({},this.shape);for(var f={},v=Te(u),c=0;c<v.length;c++){var h=v[c];"object"==typeof u[h]?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var n,a=r.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(n=n||{},o.shape)}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return B5},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=function(i){function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return N(o,i),o.prototype.getDefaultStyle=function(){return re(t.style)},o.prototype.getDefaultShape=function(){return re(t.shape)},o}(e);for(var n in t)"function"==typeof t[n]&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=7}(),e}(Rr);const we=V5;var z5=ie({strokeFirst:!0,font:Wa,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},fc),Hw=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.hasStroke=function(){return kw(this.style)},e.prototype.hasFill=function(){var a=this.style.fill;return null!=a&&"none"!==a},e.prototype.createStyle=function(t){return Ul(z5,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=function _5(r){var e=ay(r.text),t=r.font;return ny(r,jr(qr(t),e),fu(t),null)}(this.style)),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(Rr);Hw.prototype.type="tspan";const mu=Hw;var G5=ie({x:0,y:0},zi),F5={style:ie({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},nc.style)},Ww=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.createStyle=function(t){return Ul(G5,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(null!=n)return n;var i=function H5(r){return!!(r&&"string"!=typeof r&&r.width&&r.height)}(a.image)?a.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",s=a[o];return null==s?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return F5},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new fe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Rr);Ww.prototype.type="image";const At=Ww;var Cs=Math.round;function vc(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(Cs(2*a)===Cs(2*n)&&(r.x1=r.x2=gr(a,s,!0)),Cs(2*i)===Cs(2*o)&&(r.y1=r.y2=gr(i,s,!0))),r}}function Uw(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;
vendor: 12,594 bytes, line 1
1r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=gr(a,s,!0),r.y=gr(n,s,!0),r.width=Math.max(gr(a+i,s,!1)-r.x,0===i?0:1),r.height=Math.max(gr(n+o,s,!1)-r.y,0===o?0:1)),r}}function gr(r,e,t){if(!e)return r;var a=Cs(2*r);return(a+Cs(e))%2==0?a/2:(a+(t?1:-1))/2}var U5=function(){return function r(){this.x=0,this.y=0,this.width=0,this.height=0}}(),Y5={},Yw=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultShape=function(){return new U5},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=Uw(Y5,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?function W5(r,e){var s,l,u,f,v,t=e.x,a=e.y,n=e.width,i=e.height,o=e.r;n<0&&(t+=n,n=-n),i<0&&(a+=i,i=-i),"number"==typeof o?s=l=u=f=o:o instanceof Array?1===o.length?s=l=u=f=o[0]:2===o.length?(s=u=o[0],l=f=o[1]):3===o.length?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0,s+l>n&&(s*=n/(v=s+l),l*=n/v),u+f>n&&(u*=n/(v=u+f),f*=n/v),l+u>i&&(l*=i/(v=l+u),u*=i/v),s+f>i&&(s*=i/(v=s+f),f*=i/v),r.moveTo(t+s,a),r.lineTo(t+n-l,a),0!==l&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),0!==u&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),0!==f&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),0!==s&&r.arc(t+s,a+s,s,Math.PI,1.5*Math.PI),r.closePath()}(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(we);Yw.prototype.type="rect";const be=Yw;var Zw={fill:"#000"},xa={},Z5={style:ie({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},nc.style)},Kw=function(r){function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=Zw,a.attr(t),a}return N(e,r),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,function q5(r){$w(r),A(r.rich,$w)}(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new fe(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),(i=i||t.clone()).union(t)):(i=i||l.clone()).union(l)}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Zw},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return G(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=Te(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},G(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return Z5},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||Wa,n=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||i.align||"left",u=t.verticalAlign||i.verticalAlign||"top";Pw(xa,i.overflowRect,o,s,l,u),o=xa.baseX,s=xa.baseY;var v=function c5(r,e,t,a){var n=ay(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f="truncate"===i,v=fu(u),c=Q(e.lineHeight,v),h="truncate"===e.lineOverflow,p=!1,d=e.width;null==d&&null!=t&&(d=t-s);var y,g=e.height;null==g&&null!=a&&(g=a-l);var m=(y=null==d||"break"!==i&&"breakAll"!==i?n?n.split("\n"):[]:n?Iw(n,e.font,d,"breakAll"===i,0).lines:[]).length*c;if(null==g&&(g=m),m>g&&h){var _=Math.floor(g/c);p=p||y.length>_,m=(y=y.slice(0,_)).length*c}if(n&&f&&null!=d)for(var S=Mw(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},b=0;b<y.length;b++)Dw(x,y[b],S),y[b]=x.textLine,p=p||x.isTruncated;var w=g,C=0,T=qr(u);for(b=0;b<y.length;b++)C=Math.max(jr(T,y[b]),C);null==d&&(d=C);var M=d;return{lines:y,height:g,outerWidth:M+=s,outerHeight:w+=l,lineHeight:c,calculatedLineHeight:v,contentWidth:C,contentHeight:m,width:d,isTruncated:p}}(aT(t),t,xa.outerWidth,xa.outerHeight),c=gy(t),h=!!t.backgroundColor,p=v.outerHeight,d=v.outerWidth,g=v.lines,y=v.lineHeight;this.isTruncated=!!v.isTruncated;var m=o,_=Mi(s,v.contentHeight,u);if(c||n){var S=_s(o,d,l),x=Mi(s,p,u);c&&this._renderBackground(t,t,S,x,d,p)}_+=y/2,n&&(m=rT(o,l,n),"top"===u?_+=n[0]:"bottom"===u&&(_-=n[2]));for(var b=0,w=!1,C=!1,T=(tT("fill"in t?t.fill:(C=!0,i.fill))),M=(eT("stroke"in t?t.stroke:h||i.autoStroke&&!C?null:(b=2,w=!0,i.stroke))),D=t.textShadowBlur>0,I=0;I<g.length;I++){var L=this._getOrCreateChild(mu),P=L.createStyle();L.useStyle(P),P.text=g[I],P.x=m,P.y=_,l&&(P.textAlign=l),P.textBaseline="middle",P.opacity=t.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=t.textShadowBlur||0,P.shadowColor=t.textShadowColor||"transparent",P.shadowOffsetX=t.textShadowOffsetX||0,P.shadowOffsetY=t.textShadowOffsetY||0),P.stroke=M,P.fill=T,M&&(P.lineWidth=t.lineWidth||b,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=a,Jw(P,t),_+=y,L.setBoundingRect(ny(P,v.contentWidth,v.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,a=this._defaultStyle,n=t.align||a.align,i=t.verticalAlign||a.verticalAlign,o=t.x||0,s=t.y||0;Pw(xa,a.overflowRect,o,s,n,i),o=xa.baseX,s=xa.baseY;var u=function d5(r,e,t,a,n){var i=new p5,o=ay(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;null==f&&null!=t&&(f=t-l);var v=e.height;null==v&&null!=a&&(v=a-u);for(var d,c=e.overflow,h="break"!==c&&"breakAll"!==c||null==f?null:{width:f,accumWidth:0,breakAll:"breakAll"===c},p=ty.lastIndex=0;null!=(d=ty.exec(o));){var g=d.index;g>p&&ry(i,o.substring(p,g),e,h),ry(i,d[2],e,h,d[1]),p=ty.lastIndex}p<o.length&&ry(i,o.substring(p,o.length),e,h);var y=[],m=0,_=0,S="truncate"===c,x="truncate"===e.lineOverflow,b={};function w(ye,Ne,ve){ye.width=Ne,ye.lineHeight=ve,m+=ve,_=Math.max(_,Ne)}e:for(var C=0;C<i.lines.length;C++){for(var T=i.lines[C],M=0,D=0,I=0;I<T.tokens.length;I++){var P=(L=T.tokens[I]).styleName&&e.rich[L.styleName]||{},E=L.textPadding=P.padding,R=E?E[1]+E[3]:0,k=L.font=P.font||e.font;L.contentHeight=fu(k);var O=Q(P.height,L.contentHeight);if(L.innerHeight=O,E&&(O+=E[0]+E[2]),L.height=O,L.lineHeight=nr(P.lineHeight,e.lineHeight,O),L.align=P&&P.align||n,L.verticalAlign=P&&P.verticalAlign||"middle",x&&null!=v&&m+L.lineHeight>v){var V=i.lines.length;I>0?(T.tokens=T.tokens.slice(0,I),w(T,D,M),i.lines=i.lines.slice(0,C+1)):i.lines=i.lines.slice(0,C),i.isTruncated=i.isTruncated||i.lines.length<V;break e}var z=P.width,F=null==z||"auto"===z;if("string"==typeof z&&"%"===z.charAt(z.length-1))L.percentWidth=z,y.push(L),L.contentWidth=jr(qr(k),L.text);else{if(F){var U=P.backgroundColor,Y=U&&U.image;Y&&ac(Y=u5(Y))&&(L.width=Math.max(L.width,Y.width*O/Y.height))}var Z=S&&null!=f?f-D:null;null!=Z&&Z<L.width?!F||Z<R?(L.text="",L.width=L.contentWidth=0):(Aw(b,L.text,Z-R,k,e.ellipsis,{minChar:e.truncateMinChar}),L.text=b.text,i.isTruncated=i.isTruncated||b.isTruncated,L.width=L.contentWidth=jr(qr(k),L.text)):L.contentWidth=jr(qr(k),L.text)}L.width+=R,D+=L.width,P&&(M=Math.max(M,L.lineHeight))}w(T,D,M)}for(i.outerWidth=i.width=Q(f,_),i.outerHeight=i.height=Q(v,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u,C=0;C<y.length;C++){var L;(L=y[C]).width=parseInt(L.percentWidth,10)/100*i.width}return i}(aT(t),t,xa.outerWidth,xa.outerHeight,n),f=u.width,v=u.outerWidth,c=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var p=_s(o,v,n),d=Mi(s,c,i),g=p,y=d;h&&(g+=h[3],y+=h[0]);var m=g+f;gy(t)&&this._renderBackground(t,t,p,d,v,c);for(var _=!!t.backgroundColor,S=0;S<u.lines.length;S++){for(var x=u.lines[S],b=x.tokens,w=b.length,C=x.lineHeight,T=x.width,M=0,D=g,I=m,L=w-1,P=void 0;M<w&&(!(P=b[M]).align||"left"===P.align);)this._placeToken(P,t,C,y,D,"left",_),T-=P.width,D+=P.width,M++;for(;L>=0&&"right"===(P=b[L]).align;)this._placeToken(P,t,C,y,I,"right",_),T-=P.width,I-=P.width,L--;for(D+=(f-(D-g)-(m-I)-T)/2;M<=L;)this._placeToken(P=b[M],t,C,y,D+P.width/2,"center",_),D+=P.width,M++;y+=C}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,v=i+n/2;"top"===f?v=i+t.height/2:"bottom"===f&&(v=i+n-t.height/2),!t.isLineHolder&&gy(u)&&this._renderBackground(u,a,"right"===s?o-t.width:"center"===s?o-t.width/2:o,v-t.height/2,t.width,t.height);var h=!!u.backgroundColor,p=t.textPadding;p&&(o=rT(o,s,p),v-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(mu),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=tT("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=eT("stroke"in u?u.stroke:"stroke"in a?a.stroke:h||l||y.autoStroke&&!m?null:(_=2,S=!0,y.stroke)),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=v,w&&(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||Wa,g.opacity=nr(u.opacity,a.opacity,1),Jw(g,u),b&&(g.lineWidth=nr(u.lineWidth,a.lineWidth,_),g.lineDash=Q(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),d.setBoundingRect(ny(g,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,a,n,i,o,s){var d,g,m,l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,v=l&&l.image,c=l&&!v,h=t.borderRadius,p=this;if(c||t.lineHeight||u&&f){(d=this._getOrCreateChild(be)).useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=h,d.dirtyShape()}if(c)(m=d.style).fill=l||null,m.fillOpacity=Q(t.fillOpacity,1);else if(v){(g=this._getOrCreateChild(At)).onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}u&&f&&((m=d.style).lineWidth=u,m.stroke=f,m.strokeOpacity=Q(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2));var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=nr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return Qw(t)&&(a=[t.fontStyle,t.fontWeight,jw(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&vr(a)||t.textFont||t.font},e}(Rr),X5={left:!0,right:1,center:1},K5={top:1,bottom:1,middle:1},qw=["fontStyle","fontWeight","fontSize","fontFamily"];function jw(r){return"string"!=typeof r||-1===r.indexOf("px")&&-1===r.indexOf("rem")&&-1===r.indexOf("em")?isNaN(+r)?"12px":r+"px":r}function Jw(r,e){for(var t=0;t<qw.length;t++){var a=qw[t],n=e[a];null!=n&&(r[a]=n)}}function Qw(r){return null!=r.fontSize||r.fontFamily||r.fontWeight}function $w(r){if(r){r.font=Kw.makeFont(r);var e=r.align;"middle"===e&&(e="center"),r.align=null==e||X5[e]?e:"left";var t=r.verticalAlign;"center"===t&&(t="middle"),r.verticalAlign=null==t||K5[t]?t:"top",r.padding&&(r.padding=Hl(r.padding))}}function eT(r,e){return null==r||e<=0||"transparent"===r||"none"===r?null:r.
1image||r.colorStops?"#000":r}function tT(r){return null==r||"none"===r?null:r.image||r.colorStops?"#000":r}function rT(r,e,t){return"right"===e?r-t[1]:"center"===e?r+t[3]/2-t[1]/2:r+t[3]}function aT(r){var e=r.text;return null!=e&&(e+=""),e}function gy(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Me=Kw;var ue=ge(),yy=function(r,e,t,a){if(a){var n=ue(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart","group"===a.type&&a.traverse(function(i){var o=ue(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},yr="undefined",ba="series",nT=j(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mr="original",Mt="arrayRows",_r="objectRows",Jr="keyedColumns",on="typedArray",iT="unknown",Qr="column",Zi="row",j5=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],J5=function(){return function r(e){A(j5,function(t){this[t]=q(e[t],e)},this)}}();function sT(r,e){return e.mainType===ba?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}const lT=J5;var uT=1,fT={},vT=ge(),my=ge(),Qt=["emphasis","blur","select"],Su=["normal","emphasis","blur","select"],Xi="highlight",hc="downplay",pc="select",Sy="unselect",dc="toggleSelect",xy="selectchanged";function Ms(r){return null!=r&&"none"!==r}function gc(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function cT(r){gc(r,"emphasis",2)}function hT(r){2===r.hoverState&&gc(r,"normal",0)}function by(r){gc(r,"blur",1)}function pT(r){1===r.hoverState&&gc(r,"normal",0)}function $5(r){r.selected=!0}function eG(r){r.selected=!1}function dT(r,e,t){e(r,t)}function sn(r,e,t){dT(r,e,t),r.isGroup&&r.traverse(function(a){dT(a,e,t)})}function yc(r,e){switch(e){case"emphasis":r.hoverState=2;break;case"normal":r.hoverState=0;break;case"blur":r.hoverState=1;break;case"select":r.selected=!0}}function wy(r,e){var t=this.states[r];if(this.style){if("emphasis"===r)return function rG(r,e,t,a){var n=t&&pe(t,"select")>=0,i=!1;if(r instanceof we){var o=vT(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Ms(s)||Ms(l)){var u=(a=a||{}).style||{};"inherit"===u.fill?(i=!0,a=G({},a),(u=G({},u)).fill=s):!Ms(u.fill)&&Ms(s)?(i=!0,a=G({},a),(u=G({},u)).fill=Pv(s)):!Ms(u.stroke)&&Ms(l)&&(i||(a=G({},a),u=G({},u)),u.stroke=Pv(l)),a.style=u}}return a&&null==a.z2&&(i||(a=G({},a)),a.z2=r.z2+(r.z2EmphasisLift??10)),a}(this,0,e,t);if("blur"===r)return function nG(r,e,t){var a=pe(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:function tG(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o];i[s]=n[s]??(a&&a[s])}for(o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&"style"===u.targetName&&u.saveTo(i,e)}return i}(r,["opacity"],e,{opacity:1}),o=(t=t||{}).style||{};return null==o.opacity&&(t=G({},t),o=G({opacity:a?n:.1*i.opacity},o),t.style=o),t}(this,r,t);if("select"===r)return function aG(r,e,t){return t&&null==t.z2&&((t=G({},t)).z2=r.z2+(r.z2SelectLift??9)),t}(this,0,t)}return t}function Ki(r){r.stateProxy=wy;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=wy),t&&(t.stateProxy=wy)}function gT(r,e){!xT(r,e)&&!r.__highByOuter&&sn(r,cT)}function yT(r,e){!xT(r,e)&&!r.__highByOuter&&sn(r,hT)}function ln(r,e){r.__highByOuter|=1<<(e||0),sn(r,cT)}function un(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&sn(r,hT)}function mT(r){sn(r,by)}function Ty(r){sn(r,pT)}function _T(r){sn(r,$5)}function ST(r){sn(r,eG)}function xT(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function bT(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=my(i),s=sT(r,i),l="series"===n;!l&&a.push(s),o.isBlured&&(s.group.traverse(function(u){pT(u)}),l&&t.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Cy(r,e,t,a){var n=a.getModel();function i(u,f){for(var v=0;v<f.length;v++){var c=u.getItemGraphicEl(f[v]);c&&Ty(c)}}
vendor: 5,885 bytes, line 1
1if(t=t||"coordinateSystem",null!=r&&e&&"none"!==e){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,v=u.coordinateSystem;if(v&&v.master&&(v=v.master),!("series"===t&&!f||"coordinateSystem"===t&&!(v&&s?v===s:f)||"series"===e&&f)){if(a.getViewOfSeriesModel(u).group.traverse(function(g){g.__highByOuter&&f&&"self"===e||by(g)}),It(e))i(u.getData(),e);else if(se(e))for(var p=Te(e),d=0;d<p.length;d++)i(u.getData(p[d]),e[p[d]]);l.push(u),my(u).isBlured=!0}}),n.eachComponent(function(u,f){if("series"!==u){var v=a.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,n)}})}}function Ay(r,e,t){if(null!=r&&null!=e){var a=t.getModel().getComponent(r,e);if(a){my(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){by(i)})}}}function My(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(null==r||"series"===r||null==e||null==t)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var l,s=o.findHighDownDispatchers(t),u=0;u<s.length;u++)if("self"===ue(s[u]).focus){l=!0;break}return{focusSelf:l,dispatchers:s}}function wT(r){A(r.getAllData(),function(t){var n=t.type;t.data.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?_T(i):ST(i)})})}function uG(r){var e=[];return r.eachSeries(function(t){A(t.getAllData(),function(n){var o=n.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};null!=o&&(l.dataType=o),e.push(l)}})}),e}function Zn(r,e,t){qi(r,!0),sn(r,Ki),Dy(r,e,t)}function Je(r,e,t,a){a?function fG(r){qi(r,!1)}(r):Zn(r,e,t)}function Dy(r,e,t){var a=ue(r);null!=e?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var TT=["emphasis","blur","select"],vG={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function gt(r,e,t,a){t=t||"itemStyle";for(var n=0;n<TT.length;n++){var i=TT[n],o=e.getModel([i,t]);r.ensureState(i).style=a?a(o):o[vG[t]]()}}function qi(r,e){var t=!1===e,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function xu(r){return!(!r||!r.__highDownDispatcher)}function Ly(r){var e=r.type;return e===pc||e===Sy||e===dc}function CT(r){var e=r.type;return e===Xi||e===hc}var AT=ge();function Ds(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var l="update"===r;if(e&&e.isAnimationEnabled()){var u=void 0,f=void 0,v=void 0;return a?(u=Q(a.duration,200),f=Q(a.easing,"cubicOut"),v=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),v=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(null!=i.duration&&(u=i.duration),null!=i.easing&&(f=i.easing),null!=i.delay&&(v=i.delay)),ae(v)&&(v=v(t,n)),ae(u)&&(u=u(t)),{duration:u||0,delay:v,easing:f}}return null}function Iy(r,e,t,a,n,i,o){var l,s=!1;ae(n)?(o=i,i=n,n=null):se(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u="leave"===r;u||e.stopAnimation("leave");var f=Ds(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var p={duration:f.duration,delay:f.delay||0,easing:f.easing,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Pe(r,e,t,a,n,i){Iy("update",r,e,t,a,n,i)}function Ze(r,e,t,a,n,i){Iy("enter",r,e,t,a,n,i)}function Ls(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++)if("leave"===r.animators[e].scope)return!0;return!1}function Xn(r,e,t,a,n,i){Ls(r)||Iy("leave",r,e,t,a,n,i)}function MT(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),Xn(r,{style:{opacity:0}},e,t,a)}function fn(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||MT(n,e,t,a)}):MT(r,e,t,a)}function kr(r){AT(r).oldStyle=r.style}var mc={};function DT(r,e){for(var t=0;t<Qt.length;t++){var a=Qt[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Py(r,e,t){var s,a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),null!=t?{interpolatedValue:t}:null)),null==s&&(s=ae(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<Qt.length;u++){var f=Qt[u],v=e[f];l[f]=Q(a?a.getFormattedLabel(n,f,null,i,v&&v.get("formatter")):null,s)}return l}function bt(r,e,t,a){t=t||mc;for(var n=r instanceof Me,i=!1,o=0;o<Su.length;o++)if((s=e[Su[o]])&&s.getShallow("show")){i=!0;break}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Me,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Py(t,e),f=e.normal,v=!!f.getShallow("show"),c=He(f,a&&a.normal,t,!1,!n);for(c.text=u.normal,n||r.setTextConfig(_c(f,t,!1)),o=0;o<Qt.length;o++){var s,h=Qt[o];if(s=e[h]){var p=l.ensureState(h),d=!!Q(s.getShallow("show"),v);d!==v&&(p.ignore=!d),p.style=He(s,a&&a[h],t,!0,!n),p.style.text=u[h],n||(r.ensureState(h).textConfig=_c(s,t,!0))}}l.silent=!!f.getShallow("silent"),null!=l.style.x&&(c.x=l.style.x),null!=l.style.y&&(c.y=l.style.y),l.ignore=!v,l.useStyle(c),l.dirty(),t.enableTextSetter&&(Is(l).setLabelText=function(y){var m=Py(t,e,y);DT(l,m)})}else l&&(l.ignore=!0);r.dirty()}function yt(r,e){for(var t={normal:r.getModel(e=e||"label")},a=0;a<Qt.length;a++){var n=Qt[a];t[n]=r.getModel([n,e])}return t}function He(r,e,t,a,n){var i={};return function gG(r,e,t,a,n){t=t||mc;var l,i=e.ecModel,o=i&&i.option.textStyle,s=function yG(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||mc).rich;if(t){e=e||{};for(var a=Te(t),n=0;n<a.length;n++)e[a[n]]=1}
1r=r.parentModel}return e}(e);if(s){l={};var u="richInheritPlainLabel",f=Q(e.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var c=e.getModel(["rich",v]);RT(l[v]={},c,o,e,f,t,a,n,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var p=e.get("lineOverflow");p&&(r.lineOverflow=p);var d=r,g=e.get("minMargin");if(null!=g)g=Ae(g)?g/2:0,d.margin=[g,g,g,g],d.__marginType=Ps.minMargin;else{var y=e.get("textMargin");null!=y&&(d.margin=Hl(y),d.__marginType=Ps.textMargin)}RT(r,e,o,null,null,t,a,n,!0,!1)}(i,r,t,a,n),e&&G(i,e),i}function _c(r,e,t){e=e||{};var n,a={},i=r.getShallow("rotate"),o=Q(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return"outside"===(n=r.getShallow("position")||(t?null:"inside"))&&(n=e.defaultOutsidePosition||"top"),null!=n&&(a.position=n),null!=s&&(a.offset=s),null!=i&&(i*=Math.PI/180,a.rotation=i),null!=o&&(a.distance=o),a.outsideFill="inherit"===r.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(a.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(a.layoutRect=e.layoutRect),a}var LT=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],IT=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],PT=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function RT(r,e,t,a,n,i,o,s,l,u){t=!o&&t||mc;var f=i&&i.inheritColor,v=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Q(e.getShallow("opacity"),t.opacity);("inherit"===v||"auto"===v)&&(v=f||null),("inherit"===c||"auto"===c)&&(c=f||null),s||(v=v||t.color,c=c||t.textBorderColor),null!=v&&(r.fill=v),null!=c&&(r.stroke=c);var p=Q(e.getShallow("textBorderWidth"),t.textBorderWidth);null!=p&&(r.lineWidth=p);var d=Q(e.getShallow("textBorderType"),t.textBorderType);null!=d&&(r.lineDash=d);var g=Q(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);null!=g&&(r.lineDashOffset=g),!o&&null==h&&!u&&(h=i&&i.defaultOpacity),null!=h&&(r.opacity=h),!o&&!s&&null==r.fill&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<LT.length;y++){var m=LT[y];null!=(_=!1!==n&&a?nr(e.getShallow(m),a.getShallow(m),t[m]):Q(e.getShallow(m),t[m]))&&(r[m]=_)}for(y=0;y<IT.length;y++)null!=(_=e.getShallow(m=IT[y]))&&(r[m]=_);if(null==r.verticalAlign){var S=e.getShallow("baseline");null!=S&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(y=0;y<PT.length;y++){var _;null!=(_=e.getShallow(m=PT[y]))&&(r[m]=_)}var x=e.getShallow("borderType");null!=x&&(r.borderDash=x),("auto"===r.backgroundColor||"inherit"===r.backgroundColor)&&f&&(r.backgroundColor=f),("auto"===r.borderColor||"inherit"===r.borderColor)&&f&&(r.borderColor=f)}}function Ry(r,e){var t=e&&e.getModel("textStyle");return vr([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Is=ge();function ET(r,e,t,a){if(r){var n=Is(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function kT(r,e,t,a,n){var i=Is(r);if(i.valueAnimation&&i.prevValue!==i.value){var o=i.defaultInterpolatedText,s=Q(i.interpolatedValue,i.prevValue),l=i.value;r.percent=0,(null==i.prevValue?Ze:Pe)(r,{percent:1},a,e,null,function u(f){var v=_w(t,i.precision,s,l,f);i.interpolatedValue=1===f?null:v;var c=Py({labelDataIndex:e,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);DT(r,c)})}}var Ps={minMargin:1,textMargin:2},mG=["textStyle","color"],Ey=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ky=new Me,_G=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(mG):null)},r.prototype.getFont=function(){return Ry({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.get
1Shallow("baseline")},a=0;a<Ey.length;a++)t[Ey[a]]=this.getShallow(Ey[a]);return ky.useStyle(t),ky.update(),ky.getBoundingRect()},r}();const SG=_G;var OT=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],xG=Vi(OT),bG=function(){function r(){}return r.prototype.getLineStyle=function(e){return xG(this,e)},r}(),NT=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wG=Vi(NT),TG=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return wG(this,e,t)},r}(),ji=function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i]},r.prototype.mergeOption=function(e,t){de(this.option,e,!0)},r.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=null==a?a:a[e];if(null==n&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=null!=e,n=a?this.parsePath(e):null;return new r(a?this._doGet(n):this.option,t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),this.ecModel)},r.prototype.isEmpty=function(){return null==this.option},r.prototype.restoreData=function(){},r.prototype.clone=function(){return new(0,this.constructor)(re(this.option))},r.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Ee.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&(!e[n]||null!=(a=a&&"object"==typeof a?a[e[n]]:null));n++);return null==a&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r}();Qg(ji),function a5(r){var e=["__\0is_clz",r5++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!(!t||!t[e])}}(ji),it(ji,bG),it(ji,TG),it(ji,l5),it(ji,SG);const De=ji;var CG=Math.round(10*Math.random());function Ji(r){return[r||"",CG++].join("_")}function Kn(r,e){return de(de({},r,!0),e,!0)}var Rs="EN",xc={},Ny={},BT=Ee.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||Rs).toUpperCase().indexOf("ZH")>-1?"ZH":Rs;function By(r,e){r=r.toUpperCase(),Ny[r]=new De(e),xc[r]=e}function Vy(r){return Ny[r]}By("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),By("ZH",{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","\u
1661f\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",custom:"\u81ea\u5b9a\u4e49\u56fe\u8868",chart:"\u56fe\u8868"}},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:""}}}});var zy=null;function ot(){return zy}function VT(r,e){var t=ot(),n=e.breakParsed;return!n&&t&&(n=t.parseAxisBreakOption(e.breakOption,r)),n}function bc(r){var e=r.brk;return e?e.breaks:[]}function wc(r){var e=r.brk;return!!e&&e.hasBreaks()}var bu=36e5,Or=24*bu,zT=365*Or,EG={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Tc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Cc="{yyyy}-{MM}-{dd}",GT={year:"{yyyy}",month:"{yyyy}-{MM}",day:Cc,hour:Cc+" "+Tc.hour,minute:Cc+" "+Tc.minute,second:Cc+" "+Tc.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Sr=["year","month","day","hour","minute","second","millisecond"],OG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function $t(r,e){return"0000".substr(0,e-(r+="").length)+r}function wu(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 VG(r){return r===wu(r)}function Tu(r,e,t,a){var n=ha(r),i=n[FT(t)](),o=n[Hy(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[Wy(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[Uy(t)](),v=(f-1)%12+1,c=n[Yy(t)](),h=n[Zy(t)](),p=n[Xy(t)](),d=f>=12?"pm":"am",g=d.toUpperCase(),m=(a instanceof De?a:Vy(a||BT)||function PG(){return Ny[Rs]}()).getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,$t(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,$t(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,$t(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,$t(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,$t(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,$t(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,$t(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,$t(p,3)).replace(/{S}/g,p+"")}function Es(r,e){var t=ha(r),a=t[Hy(e)]()+1,n=t[Wy(e)](),i=t[Uy(e)](),o=t[Yy(e)](),s=t[Zy(e)](),u=0===t[Xy(e)](),f=u&&0===s,v=f&&0===o,c=v&&0===i,h=c&&1===n;return h&&1===a?"year":h?"month":c?"day":v?"hour":f?"minute":u?"second":"millisecond"}function Ac(r,e,t){switch(e){case"year":r[HT(t)](0);case"month":r[WT(t)](1);case"day":r[UT(t)](0);case"hour":r[YT(t)](0);case"minute":r[ZT(t)](0);case"second":r[XT(t)](0)}return r}function FT(r){return r?"getUTCFullYear":"getFullYear"}function Hy(r){return r?"getUTCMonth":"getMonth"}function Wy(r){return r?"getUTCDate":"getDate"}function Uy(r){return r?"getUTCHours":"getHours"}function Yy(r){return r?"getUTCMinutes":"getMinutes"}function Zy(r){return r?"getUTCSeconds":"getSeconds"}function Xy(r){return r?"getUTCMilliseconds":"getMilliseconds"}function FG(r){return r?"setUTCFullYear":"setFullYear"}function HT(r){return r?"setUTCMonth":"setMonth"}function WT(r){return r?"setUTCDate":"setDate"}function UT(r){return r?"setUTCHours":"setHours"}function YT(r){return r?"setUTCMinutes":"setMinutes"}function ZT(r){return r?"setUTCSeconds":"setSeconds"}function XT(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Ky(r){if(!Ug(r))return X(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qy(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 ks=Hl;function jy(r,e,t){function n(f){return f&&vr(f)?f:"-"}function i(f){return Pr(f)}var o="time"===e,s=r instanceof Date;if(o||s){var l=o?ha(r):r;if(!isNaN(+l))return Tu(l,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",t);if(s)return"-"}if("ordinal"===e)return dv(r)?n(r):Ae(r)&&i(r)?r+"":"-";var u=pa(r);return i(u)?Ky(u):dv(r)?n(r):"boolean"==typeof r?r+"":"-"}var KT=["a","b","c","d","e","f","g"],Jy=function(r,e){return"{"+r+(e??"")+"}"};function Qy(r,e,t){H(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=KT[i];r=r.replace(Jy(o),Jy(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(Jy(KT[l],s),t?kt(u):u)}return r}function qT(r,e,t){return A(e,function(a,n){r=r.replace("{"+n+"}",t?kt(a):a)}),r}function jT(r,e){var t=X(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";
1return a?"html"===i?"subItem"===n?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+kt(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+kt(a)+";"+(e||"")+'"></span>':{renderMode:i,content:"{"+(t.markerId||"markerX")+"|}  ",style:"subItem"===n?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:""}function HG(r,e,t){("week"===r||"month"===r||"quarter"===r||"half-year"===r||"year"===r)&&(r="MM-dd\nyyyy");var a=ha(e),n=t?"getUTC":"get",i=a[n+"FullYear"](),o=a[n+"Month"]()+1,s=a[n+"Date"](),l=a[n+"Hours"](),u=a[n+"Minutes"](),f=a[n+"Seconds"](),v=a[n+"Milliseconds"]();return r.replace("MM",$t(o,2)).replace("M",o).replace("yyyy",i).replace("yy",$t(i%100+"",2)).replace("dd",$t(s,2)).replace("d",s).replace("hh",$t(l,2)).replace("h",l).replace("mm",$t(u,2)).replace("m",u).replace("ss",$t(f,2)).replace("s",f).replace("SSS",$t(v,3))}function WG(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Qi(r,e){return e=e||"transparent",X(r)?r:se(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Mc(r,e){if("_blank"===e||"blank"===e){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Dc={},$y={},UG=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}this._nonSeriesBoxMasterList=a(Dc),this._normalMasterList=a($y)},r.prototype.update=function(e,t){A(this._normalMasterList,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){"matrix"!==e&&"calendar"!==e?$y[e]=t:Dc[e]=t},r.get=function(e){return $y[e]||Dc[e]},r}(),QT=j();function $T(r){var e=r.getShallow("coord",!0),t=1;if(null==e){var a=QT.get(r.type);a&&a.getCoord2&&(t=2,e=a.getCoord2(r))}return{coord:e,from:t}}function tC(r,e){var t=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),i=0;if(t){var o="series"===r.mainType;null==a&&(a=o?"data":"box"),"data"===a?(i=1,o||(i=0)):"box"===a&&(i=2,!o&&!function YG(r){return!!Dc[r]}(t)&&(i=0))}return{coordSysType:t,kind:i}}function Cu(r){var e=r.targetModel,t=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys,o=tC(e),s=o.kind,l=o.coordSysType;if(n&&1!==s&&(s=1,l=t),0===s||l!==t)return 0;var u=a(t,e);return u?(1===s?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):0}var rC=function(r,e){var t=e.getReferringComponents(r,at).models[0];return t&&t.coordinateSystem};const Ns=UG;var Ic=A,aC=["left","right","top","bottom","width","height"],$i=[["width","left","right"],["height","top","bottom"]];function em(r,e,t,a,n){var i=0,o=0;null==a&&(a=1/0),null==n&&(n=1/0);var s=0;e.eachChild(function(l,u){var h,p,f=l.getBoundingRect(),v=e.childAt(u+1),c=v&&v.getBoundingRect();if("horizontal"===r){var d=f.width+(c?-c.x+f.x:0);(h=i+d)>a||l.newline?(i=0,h=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);(p=o+g)>n||l.newline?(i+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),"horizontal"===r?i=h+t:o=p+t)})}var eo=em;function nC(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function iC(r,e){var t=function KG(r,e){var n,i,t=mt(r,e,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams();if(t.type===Au.point)i=t.refPoint,n=qe(a,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=H(o)?o:[o,o];n=qe(a,t.refContainer),i=2===t.boxCoordFrom?t.refPoint:[K(s[0],n.width)+n.x,K(s[1],n.height)+n.y]}return{viewRect:n,center:i}}(r,e),a=t.viewRect,n=t.center,i=r.get("radius");H(i)||(i=[0,i]);var o=K(a.width,e.getWidth()),s=K(a.height,e.getHeight()),l=Math.min(o,s),u=K(i[0],l/2),f=K(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function qe(r,e,t){t=ks(t||0);
vendor: 5,271 bytes, line 1
1var a=e.width,n=e.height,i=K(r.left,a),o=K(r.top,n),s=K(r.right,a),l=K(r.bottom,n),u=K(r.width,a),f=K(r.height,n),v=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-c-i),isNaN(f)&&(f=n-l-v-o),null!=h&&(isNaN(u)&&isNaN(f)&&(h>a/n?u=.8*a:f=.8*n),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=a-s-u-c),isNaN(o)&&(o=n-l-f-v),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-c}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-v}i=i||0,o=o||0,isNaN(u)&&(u=a-c-i-(s||0)),isNaN(f)&&(f=n-v-o-(l||0));var p=new fe((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return p.margin=t,p}function oC(r,e,t){var a=r.getShallow("preserveAspect",!0);if(!a)return e;var n=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(n))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l="cover"===a;return n>t&&!l||n<t&&l?(s.width=e.height*t,"left"===i?s.left=0:"right"===i?s.right=0:s.left="center"):(s.height=e.width/t,"top"===o?s.top=0:"bottom"===o?s.bottom=0:s.top="middle"),qe(s,e)}Se(em,"vertical"),Se(em,"horizontal");var Au={rect:1,point:2};function mt(r,e,t){var a,n,i,s,o=r.boxCoordinateSystem;if(o){var l=$T(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Au.rect,s=f;var v=o.dataToLayout(u);a=v.contentRect||v.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Au.point,s=f,n=o.dataToPoint(u))}return null==i&&(i=Au.rect),i===Au.rect&&(a||(a={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function Pc(r,e,t,a,n,i){var u,o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if((i=i||r).x=r.x,i.y=r.y,!o&&!s)return!1;if("raw"===l)u="group"===r.type?new fe(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();(u=u.clone()).applyTransform(f)}var v=qe(ie({width:u.width,height:u.height},e),t,a),c=o?v.x-u.x:0,h=s?v.y-u.y:0;return"raw"===l?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function Mu(r){var e=r.layoutMode||r.constructor.layoutMode;return se(e)?e:e?{type:e}:null}function wa(r,e,t){var a=t&&t.ignoreSize;!H(a)&&(a=[a,a]);var n=o($i[0],0),i=o($i[1],1);function o(u,f){var v={},c=0,h={},p=0;if(Ic(u,function(m){h[m]=r[m]}),Ic(u,function(m){J(e,m)&&(v[m]=h[m]=e[m]),s(v,m)&&c++,s(h,m)&&p++}),a[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(2===p||!c)return h;if(c>=2)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!J(v,y)&&J(r,y)){v[y]=r[y];break}}return v}function s(u,f){return null!=u[f]&&"auto"!==u[f]}function l(u,f,v){Ic(u,function(c){f[c]=v[c]})}l($i[0],r,n),l($i[1],r,i)}function to(r){return sC({},r)}function sC(r,e){return e&&r&&Ic(aC,function(t){J(e,t)&&(r[t]=e[t])}),r}var jG=ge(),Bs=function(r){function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=Ji("ec_cpt_model"),i}return N(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Mu(this),i=n?to(t):{};de(t,a.getTheme().get(this.mainType)),de(t,this.getDefaultOption()),n&&wa(t,i,n)},e.prototype.mergeOption=function(t,a){de(this.option,t,!0);var n=Mu(this);n&&wa(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!function e5(r){return!(!r||!r[ww])}(t))return t.defaultOption;var a=jG(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=de(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var i=t+"Id";return ws(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){return nC(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(De);Tw(Bs,De),rc(Bs),function AG(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=ga(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=ga(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}(Bs),function MG(r,e){function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}r.topologicalTravel=function(i,o,s,l){if(i.length){var u=function t(i){var o={},s=[];return A(i,function(l){var u=a(o,l),v=function n(i,o){var s=[];return A(i,function(l){pe(o,l)>=0&&s.push(l)}),s}(u.originalDeps=e(l),i);u.entryCount=v.length,0===u.entryCount&&s.push(l),A(v,function(c){pe(u.predecessor,c)<0&&u.predecessor.push(c);var h=a(o,c);pe(h.successor,c)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}(o),f=u.graph,v=u.noEntryList,c={};for(A(i,function(m){c[m]=!0});v.length;){var h=v.pop(),p=f[h],d=!!c[h];d&&(s.call(l,h,p.originalDeps.slice()),delete c[h]),A(p.successor,d?y:g)}A(c,function(){throw new Error("")})}function g(m){f[m].entryCount--,0===f[m].entryCount&&v.push(m)}function y(m){c[m]=!0,g(m)}}}(Bs,function JG(r){var e=[];return A(Bs.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.depen
1dencies||[])}),e=W(e,function(t){return ga(t).main}),"dataset"!==r&&pe(e,"dataset")<=0&&e.unshift("dataset"),e});const Ce=Bs;var ro={color:{},darkColor:{},size:{}},st=ro.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var ao in G(st,{primary:st.neutral80,secondary:st.neutral70,tertiary:st.neutral60,quaternary:st.neutral50,disabled:st.neutral20,border:st.neutral30,borderTint:st.neutral20,borderShade:st.neutral40,background:st.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:st.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:st.neutral70,axisLineTint:st.neutral40,axisTick:st.neutral70,axisTickMinor:st.neutral60,axisLabel:st.neutral70,axisSplitLine:st.neutral15,axisMinorSplitLine:st.neutral05}),st)if(st.hasOwnProperty(ao)){var lC=st[ao];"theme"===ao?ro.darkColor.theme=st.theme.slice():"highlight"===ao?ro.darkColor.highlight="rgba(255,231,130,0.4)":ro.darkColor[ao]=0===ao.indexOf("accent")?$a(lC,null,function(r){return.5*r},function(r){return Math.min(1,1.3-r)}):$a(lC,null,function(r){return.9*r},function(r){return 1-Math.pow(r,1.5)})}ro.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const B=ro;var uC="";typeof navigator<"u"&&(uC=navigator.platform||"");var Vs="rgba(0, 0, 0, 0.2)",fC=B.color.theme[0],QG=$a(fC,null,null,.9);const vC={darkMode:"auto",colorBy:"series",color:B.color.theme,gradientColor:[QG,fC],aria:{decal:{decals:[{color:Vs,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Vs,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Vs,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Vs,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Vs,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Vs,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:uC.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var cC=ge();function hC(r,e,t){var a={},n=rm(e);if(!n||!r)return a;var f,v,i=[],o=[],l=cC(e.ecModel).datasetMap,u=n.uid+"_"+t.seriesLayoutBy;A(r=r.slice(),function(d,g){var y=se(d)?d:r[g]={name:d};"ordinal"===y.type&&null==f&&(f=g,v=p(y)),a[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});function h(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return A(r,function(d,g){var y=d.name,m=p(d);if(null==f)h(a[y],_=c.valueWayDim,m),h(o,_,m),c.valueWayDim+=m;else if(f===g)h(a[y],0,m),h(i,0,m);else{var _;h(a[y],_=c.categoryWayDim,m),h(o,_,m),c.categoryWayDim+=m}}),i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function tm(r,e,t){var a={};if(!rm(r))return a;var s,i=e.sourceFormat,o=e.dimensionsDefine;(i===_r||i===Jr)&&A(o,function(f,v){"name"===(se(f)?f.name:f)&&(s=v)});var l=function(){for(var f={},v={},c=[],h=0,p=Math.min(5,t);h<p;h++){var d=dC(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);c.push(d);var g=3===d;if(g&&null==f.v&&h!==s&&(f.v=h),(null==f.n||f.n===f.v||!g&&3===c[f.n])&&(f.n=h),y(f)&&3!==c[f.n])return f;g||(2===d&&null==v.v&&h!==s&&(v.v=h),(null==v.n||v.n===v.v)&&(v.n=h))}function y(m){return null!=m.v&&null!=m.n}return y(f)?f:y(v)?v:null}();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function rm(r){if(!r.get("data",!0))return ws(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},at).models[0]}function pC(r,e){return dC(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function dC(r,e,t,a,n,i){var o,l,u;if(jt(r))return 3;if(a){var f=a[i];se(f)?(l=f.name,u=f.type):X(f)&&(l=f)}if(null!=u)return"ordinal"===u?1:3;if(e===Mt){var v=r;if(t===Zi){for(var c=v[i],h=0;h<(c||[]).length&&h<5;h++)if(null!=(o=S(c[n+h])))return o}else for(h=0;h<v.length&&h<5;h++){var p=v[n+h];if(p&&null!=(o=S(p[i])))return o}}else if(e===_r){var d=r;if(!l)return 3;for(h=0;h<d.length&&h<5;h++)if((g=d[h])&&null!=(o=S(g[l])))return o}else if(e===Jr){if(!l)return 3;if(!(c=r[l])||jt(c))return 3;for(h=0;h<c.length&&h<5;h++)if(null!=(o=S(c[h])))return o}else if(e===mr){var m=r;
1for(h=0;h<m.length&&h<5;h++){var g,_=xs(g=m[h]);if(!H(_))return 3;if(null!=(o=S(_[i])))return o}}function S(x){var b=X(x);return null!=x&&isFinite(Number(x))&&""!==x?b?2:3:b&&"-"!==x?1:void 0}return 3}var am=j(),gC=ge(),aF=ge(),nm=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=Fe(this.get("color",!0)),i=this.get("colorLayer",!0);return yC(this,gC,n,i,e,t,a)},r.prototype.clearColorPalette=function(){!function iF(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}(this,gC)},r}();function im(r,e,t,a){var n=Fe(r.get(["aria","decal","decals"]));return yC(r,aF,n,null,e,t,a)}function yC(r,e,t,a,n,i,o){var s=e(i=i||r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=null!=o&&a?function nF(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}(a,o):t;if((f=f||t)&&f.length){var v=f[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%f.length,v}}var Rc,Du,mC,_C="\0_ec_inner",xC=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new De(i),this._locale=new De(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=TC(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,TC(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var o=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(o,a)):mC(this,o),n=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||"recreate"===t||"media"===t){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=j(),u=a&&a.replaceMergeMainTypeMap;(function $G(r){cC(r).datasetMap=j()})(this),A(t,function(v,c){null!=v&&(Ce.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=null==n[c]?re(v):de(n[c],v,!0))}),u&&u.each(function(v,c){Ce.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Ce.topologicalTravel(s,Ce.getAllClassMainTypes(),function f(v){var c=function rF(r,e,t){var a=am.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}(this,v,Fe(t[v])),h=i.get(v),d=gw(h,c,h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll");(function Gz(r,e,t){A(r,function(a){var n=a.newOption;se(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=function Fz(r,e,t,a){return e.type?e.type:t?t.subType:a.determineSubType(r,e)}(e,n,a.existing,t))})})(d,v,Ce),n[v]=null,i.set(v,null),o.set(v,0);var _,g=[],y=[],m=0;A(d,function(x,b){var w=x.existing,C=x.newOption;if(C){var M=Ce.getClass(v,x.keyInfo.subType,!("series"===v));if(!M)return;if("tooltip"===v){if(_)return;_=!0}if(w&&w.constructor===M)w.name=x.keyInfo.name,w.mergeOption(C,this),w.optionUpdated(C,!1);else{var L=G({componentIndex:b},x.keyInfo);G(w=new M(C,this,this,L),L),x.brandNew&&(w.__requireNewView=!0),w.init(C,this,this),w.optionUpdated(null,!0)}}else w&&(w.mergeOption({},this),w.optionUpdated({},!1));w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),"series"===v&&Rc(this)},this),this._seriesIndices||Rc(this)},e.prototype.getOption=function(){var t=re(this.option);return A(t,function(a,n){if(Ce.hasClass(n)){for(var i=Fe(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!pu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[_C],t},e.prototype.setTheme=function(t){this._theme=new De(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(null==a)for(var o=0;o<n.length;o++)if(n[o])return n[o]}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];
1var l,n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);return s&&s.length?(null!=n?(l=[],A(Fe(n),function(u){s[u]&&l.push(s[u])})):l=null!=i?bC("id",i,s):null!=o?bC("name",o,s):ke(s,function(u){return!!u}),wC(l,t)):[]},e.prototype.findComponents=function(t){var n=t.mainType,i=function s(u){var f=n+"Index",v=n+"Id",c=n+"Name";return!u||null==u[f]&&null==u[v]&&null==u[c]?null:{mainType:n,index:u[f],id:u[v],name:u[c]}}(t.query);return function l(u){return t.filter?ke(u,t.filter):u}(wC(i?this.queryComponents(i):ke(this._componentsMap.get(n),function(u){return!!u}),t))},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(ae(t)){var o=a,s=t;i.each(function(v,c){for(var h=0;v&&h<v.length;h++){var p=v[h];p&&s.call(o,c,p,p.componentIndex)}})}else for(var l=X(t)?i.get(t):se(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=pt(t,null);return ke(this._componentsMap.get("series"),function(n){return!!n&&null!=a&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return ke(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return ke(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){Du(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){A(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){Du(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return A(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return Du(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){Du(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=j(n)},e.prototype.restoreData=function(t){Rc(this);var a=this._componentsMap,n=[];a.each(function(i,o){Ce.hasClass(o)&&n.push(o)}),Ce.topologicalTravel(n,Ce.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&("series"!==i||!function vF(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return null!=t&&r.componentIndex!==t||null!=a&&r.id!==a||null!=n&&r.name!==n}}(o,t))&&o.restoreData()})})},e.internalField=(Rc=function(t){var a=t._seriesIndices=[];A(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=j(a)},Du=function(t){},void(mC=function(t,a){t.option={},t.option[_C]=1,t._componentsMap=j({series:[]}),t._componentsCount=j();var n=a.aria;se(n)&&null==n.enabled&&(n.enabled=!0),function cF(r,e){var t=r.color&&!r.colorLayer;A(e,function(a,n){"colorLayer"===n&&t||"color"===n&&r.color||Ce.hasClass(n)||("object"==typeof a?r[n]=r[n]?de(r[n],a,!1):re(a):null==r[n]&&(r[n]=a))})}(a,t._theme.option),de(a,vC,!1),t._mergeOption(a,null)})),e}(De);function bC(r,e,t){if(H(e)){var a=j();return A(e,function(i){null!=i&&null!=pt(i,null)&&a.set(i,!0)}),ke(t,function(i){return i&&a.get(i[r])})}var n=pt(e,null);return ke(t,function(i){return i&&null!=n&&i[r]===n})}function wC(r,e){return e.hasOwnProperty("subType")?ke(r,function(t){return t&&t.subType===e.subType}):r}function TC(r){var e=j();return r&&A(Fe(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}it(xC,nm);const CC=xC;var hF=/^(min|max)?(.+)$/,pF=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(A(Fe(e.series),function(o){o&&o.data&&jt(o.data)&&Wl(o.data)}
vendor: 5,565 bytes, line 1
1),A(Fe(e.dataset),function(o){o&&o.source&&jt(o.source)&&Wl(o.source)})),e=re(e);var n=this._optionBackup,i=function dF(r,e,t){var n,i,a=[],o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);function c(h){A(e,function(p){p(h,t)})}return o?(i=o).timeline||(i.timeline=s):((v||f)&&(r.options=r.media=null),i=r),f&&H(u)&&A(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),c(i),A(l,function(h){return c(h)}),A(a,function(h){return c(h.option)}),{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],re(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=re(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)gF(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!function mF(r,e){return r.join(",")===e.join(",")}(o,this._currentMediaIndices)&&(s=W(o,function(f){return re(-1===f?i.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function gF(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return A(r,function(i,o){var s=o.match(hF);if(s&&s[1]&&s[2]){var l=s[1],u=s[2].toLowerCase();(function yF(r,e,t){return"min"===t?r>=e:"max"===t?r<=e:r===e})(a[u],i,l)||(n=!1)}}),n}const _F=pF;var $r=A,Lu=se,AC=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function om(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=AC.length;t<a;t++){var n=AC[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?de(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?de(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Wt(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,ie(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Iu(r){Wt(r,"itemStyle"),Wt(r,"lineStyle"),Wt(r,"areaStyle"),Wt(r,"label"),Wt(r,"labelLine"),Wt(r,"upperLabel"),Wt(r,"edgeLabel")}function ft(r,e){var t=Lu(r)&&r[e],a=Lu(t)&&t.textStyle;if(a)for(var n=0,i=dw.length;n<i;n++){var o=dw[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function Nr(r){r&&(Iu(r),ft(r,"label"),r.emphasis&&ft(r.emphasis,"label"))}function vn(r){return H(r)?r:r?[r]:[]}function MC(r){return(H(r)?r[0]:r)||{}}function DC(r){r&&A(TF,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var TF=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],CF=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],sm=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Pu(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<sm.length;t++){var a=sm[t][1];null!=e[a]&&(e[sm[t][0]]=e[a])}}function LC(r){r&&"edge"===r.alignTo&&null!=r.margin&&null==r.edgeDistance&&(r.edgeDistance=r.margin)}function IC(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function PC(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&PC(r[t].children,e)}function RC(r,e){(function xF(r,e){$r(vn(r.series),function(a){Lu(a)&&function SF(r){if(Lu(r)){om(r),Iu(r),ft(r,"label"),ft(r,"upperLabel"),ft(r,"edgeLabel"),r.emphasis&&(ft(r.emphasis,"label"),ft(r.emphasis,"upperLabel"),ft(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(om(e),Nr(e));var t=r.markLine;t&&(om(t),Nr(t));var a=r.markArea;a&&Nr(a);var n=r.data;if("graph"===r.type){n=n||r.nodes;var i=r.links||r.edges;if(i&&!jt(i))for(var o=0;o<i.length;o++)Nr(i[o]);A(r.categories,function(u){Iu(u)})}if(n&&!jt(n))for(o=0;o<n.length;o++)Nr(n[o]);if((e=r.markPoint)&&e.data){var s=e.data;for(o=0;o<s.length;o++)Nr(s[o])}if((t=r.markLine)&&t.data){var l=t.data;for(o=0;o<l.length;o++)H(l[o])?(Nr(l[o][0]),Nr(l[o][1])):Nr(l[o])}"gauge"===r.type?(ft(r,"axisLabel"),ft(r,"title"),ft(r,"detail")):"treemap"===r.type?(Wt(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Iu(u)})):"tree"===r.type&&Iu(r.leaves)}}(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),$r(t,function(a){$r(vn(r[a]),function(n){n&&(ft(n,"axisLabel"),ft(n.axisPointer,"label"))})}),$r(vn(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ft(n,"axisLabel"),ft(n&&n.axisPointer,"label")}),$r(vn(r.calendar),function(a){Wt(a,"itemStyle"),ft(a,"dayLabel"),ft(a,"monthLabel"),ft(a,"yearLabel")}),$r(vn(r.radar),function(a){ft(a,"name"),a.name&&null==a.axisName&&(a.axisName=a.name,delete a.name),null!=a.nameGap&&null==a.axisNameGap&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),$r(vn(r.geo),function(a){Lu(a)&&(Nr(a),$r(vn(a.regions),function(n){Nr(n)}))}),$r(vn(r.timeline),function(a){Nr(a),Wt(a,"label"),Wt(a,"itemStyle"),Wt(a,"controlStyle",!0);var n=a.data;H(n)&&A(n,function(i){se(i)&&(Wt(i,"label"),Wt(i,"itemStyle"))})}),$r(vn(r.toolbox),function(a){Wt(a,"iconStyle"),$r(a.feature,function(n){Wt(n,"iconStyle")}
vendor: 3,170 bytes, line 1
1)}),ft(MC(r.axisPointer),"label"),ft(MC(r.tooltip).axisPointer,"label")})(r,e),r.series=Fe(r.series),A(r.series,function(t){if(se(t)){var a=t.type;if("line"===a)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===a||"gauge"===a){if(null!=t.clockWise&&(t.clockwise=t.clockWise),LC(t.label),(n=t.data)&&!jt(n))for(var i=0;i<n.length;i++)LC(n[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===a){var o=function bF(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&null!=(a=a&&a[t[n]]);n++);return a}(t,"pointer.color");null!=o&&function wF(r,e,t,a){for(var o,n=e.split(","),i=r,s=0;s<n.length-1;s++)null==i[o=n[s]]&&(i[o]={}),i=i[o];(a||null==i[n[s]])&&(i[n[s]]=t)}(t,"itemStyle.color",o)}else if("bar"===a){var n;if(Pu(t),Pu(t.backgroundStyle),Pu(t.emphasis),(n=t.data)&&!jt(n))for(i=0;i<n.length;i++)"object"==typeof n[i]&&(Pu(n[i]),Pu(n[i]&&n[i].emphasis))}else if("sunburst"===a){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),IC(t),PC(t.data,IC)}else"graph"===a||"sankey"===a?function AF(r){r&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus&&(r.emphasis.focus="adjacency"))}(t):"map"===a&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ie(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),DC(t)}}),r.dataRange&&(r.visualMap=r.dataRange),A(CF,function(t){var a=r[t];a&&(H(a)||(a=[a]),A(a,function(n){DC(n)}))})}var MF=du(function DF(r){var e=j();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;n.push(o)}}),e.each(function(t){0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),A(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),function LF(r){A(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var h,p,c=o.get(e.stackedDimension,v);if(isNaN(c))return n;s?p=o.getRawIndex(v):h=o.get(e.stackedByDimension,v);for(var d=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&c>=0&&m>0||"samesign"===l&&c<=0&&m<0){c=Ri(c,m),d=m;break}}}return a[0]=c,a[1]=d,a})})}(t))})}),Ec=function(){return function r(e){this.data=e.data||(e.sourceFormat===Jr?{}:[]),this.sourceFormat=e.sourceFormat||iT,this.seriesLayoutBy=e.seriesLayoutBy||Qr,this.startIndex=e.startIndex||
10,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];null==n.type&&1===pC(this,a)&&(n.type="ordinal")}}}();function lm(r){return r instanceof Ec}function um(r,e,t){t=t||EC(r);var a=e.seriesLayoutBy,n=function PF(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:kC(n),startIndex:o,dimensionsDetectedCount:i};if(e===Mt){var s=r;"auto"===a||null==a?OC(function(u){null!=u&&"-"!==u&&(X(u)?null==o&&(o=1):o=0)},t,s,10):o=Ae(a)?a:a?1:0,!n&&1===o&&(n=[],OC(function(u,f){n[f]=null!=u?u+"":""},t,s,1/0)),i=n?n.length:t===Zi?s.length:s[0]?s[0].length:null}else if(e===_r)n||(n=function RF(r){for(var t,e=0;e<r.length&&!(t=r[e++]););if(t)return Te(t)}(r));else if(e===Jr)n||(n=[],A(r,function(u,f){n.push(f)}));else if(e===mr){var l=xs(r[0]);i=H(l)&&l.length||1}return{startIndex:o,dimensionsDefine:kC(n),dimensionsDetectedCount:i}}(r,t,a,e.sourceHeader,e.dimensions);return new Ec({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:re(e)})}function fm(r){return new Ec({data:r,sourceFormat:jt(r)?on:mr})}function IF(r){return new Ec({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:re(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function EC(r){var e=iT;if(jt(r))e=on;else if(H(r)){0===r.length&&(e=Mt);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(null!=n){if(H(n)||jt(n)){e=Mt;break}if(se(n)){e=_r;break}}}}else if(se(r))for(var i in r)if(J(r,i)&&It(r[i])){e=Jr;break}return e}function kC(r){if(r){var e=j();return W(r,function(t,a){var n={name:(t=se(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function OC(r,e,t,a){if(e===Zi)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else{var i=t[0]||[];for(n=0;n<i.length&&n<a;n++)r(i[n],n)}}function NC(r){var e=r.sourceFormat;return e===_r||e===Jr}var BC={},kF=typeof console<"u"&&console.warn&&console.log;function VC(r,e){!function vm(r,e,t){if(kF){if(t){if(BC[e])return;BC[e]=!0}console[r]("[ECharts] "+e)}}("error",r,e)}function Oe(r){throw new Error(r)}var no,io,oo,so,GC,FC,HC=function(){function r(e,t){var a=lm(e)?e:fm(e);this._source=a;var n=this._data=a.data;a.sourceFormat===on&&(this._offset=0,this._dimSize=t,this._data=n),FC(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=((e=r.prototype).pure=!1,void(e.persistent=!0)),r.internalField=function(){var e;FC=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,c=l.dimensionsDefine;if(G(o,GC[hm(u,f)]),u===on)o.getItem=t,o.count=n,o.fillStorage=a;else{var p=UC(u,f);o.getItem=q(p,null,s,v,c);var d=ZC(u,f);o.count=q(d,null,s,v,c)}};var t=function(o,s){s=s||[];for(var l=this._data,u=this._dimSize,f=u*(o-=this._offset),v=0;v<u;v++)s[v]=l[f+v];return s},a=function(o,s,l,u){for(var f=this._data,v=this._dimSize,c=0;c<v;c++){for(var h=u[c],p=null==h[0]?1/0:h[0],d=null==h[1]?-1/0:h[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*v+c];y[o+m]=_,_<p&&(p=_),_>d&&(d=_)}h[0]=p,h[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}(e={})[Mt+"_"+Qr]={pure:!0,appendData:i},e[Mt+"_"+Zi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[_r]={pure:!0,appendData:i},e[Jr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},e[mr]={appendData:i},e[on]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},GC=e}(),r;var e}(),kc=function(r){H(r)||VC("series.data or dataset.source must be an array.")},WC=((no={})[Mt+"_"+Qr]=kc,no[Mt+"_"+Zi]=kc,no[_r]=kc,no[Jr]=function(r,e){for(var t=0;t<e.length;t++)null==e[t].name&&VC("dimension name must not be null/undefined.")},no[mr]=kc,function(r,e,t,a){return r[a]}),VF=((io={})[Mt+"_"+Qr]=function(r,e,t,a){return r[a+e]},io[Mt+"_"+Zi]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},io[_r]=WC,io[Jr]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=null!=s?r[s]:null;i[o]=l?l[a]:null}return i},io[mr]=WC,io);function UC(r,e){return VF[hm(r,e)]}var YC=function(r,e,t){return r.length},zF=((oo={})[Mt+"_"+Qr]=function(r,e,t){return Math.max(0,r.length-e)}
vendor: 4,691 bytes, line 1
1,oo[Mt+"_"+Zi]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},oo[_r]=YC,oo[Jr]=function(r,e,t){var a=t[0].name,n=null!=a?r[a]:null;return n?n.length:0},oo[mr]=YC,oo);function ZC(r,e){return zF[hm(r,e)]}var cm=function(r,e,t){return r[e]},GF=((so={})[Mt]=cm,so[_r]=function(r,e,t){return r[t]},so[Jr]=cm,so[mr]=function(r,e,t){var a=xs(r);return a instanceof Array?a[e]:a},so[on]=cm,so);function XC(r){return GF[r]}function hm(r,e){return r===Mt?r+"_"+e:r}function zs(r,e,t){if(r){var a=r.getRawDataItem(e);if(null!=a){var n=r.getStore(),i=n.getSource().sourceFormat;if(null!=t){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return XC(i)(a,o,s)}var l=a;return i===mr&&(l=xs(a)),l}}}var FF=/\{@(.+?)\}/g,Oc=function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,c="series"===v,h=a.userOutput&&a.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);return o&&(l.value=o.interpolatedValue),null!=n&&H(l.value)&&(l.value=l.value[n]),i||(i=s.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"])),ae(i)?(l.status=t,l.dimensionIndex=n,i(l)):X(i)?Qy(i,l).replace(FF,function(v,c){var h=c.length,p=c;"["===p.charAt(0)&&"]"===p.charAt(h-1)&&(p=+p.slice(1,h-1));var d=zs(s,e,p);if(o&&H(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return null!=d?d+"":""}):void 0},r.prototype.getRawValue=function(e,t){return zs(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function KC(r){var e,t;return se(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function Ru(r){return new HF(r)}var HF=function(){function r(e){this._reset=(e=e||{}).reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var i,t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(i=this._plan(this.context));var v,o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;function f(m){return!(m>=1)&&(m=1),m}(o!==l||s!==u)&&(i="reset"),(this._dirty||"reset"===i)&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(v||h<p)){var d=this._progress;if(H(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],h,p,l,u);else this._doProgress(d,h,p,l,u)}this._dueIndex=p,this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:p}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,a,n,i){qC.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:qC.next},this.context)},r.prototype._doReset=function(e){var t,a;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(a=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),qC=function(){var r,e,t,a,n,i={reset:function(l,u,f,v){e=l,r=u,t=f,a=v,n=Math.ceil(a/t),i.next=t>1&&a>
10?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}}();function qn(r,e){var t=e&&e.type;return"ordinal"===t?r:("time"===t&&!Ae(r)&&null!=r&&"-"!==r&&(r=+ha(r)),null==r||""===r?NaN:Number(r))}var WF=j({number:function(r){return parseFloat(r)},time:function(r){return+ha(r)},trim:function(r){return X(r)?vr(r):r}});function jC(r){return WF.get(r)}var JC={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},UF=function(){function r(e,t){Ae(t)||Oe(""),this._opFn=JC[e],this._rvalFloat=pa(t)}return r.prototype.evaluate=function(e){return Ae(e)?this._opFn(e,this._rvalFloat):this._opFn(pa(e),this._rvalFloat)},r}(),QC=function(){function r(e,t){var a="desc"===e;this._resultLT=a?1:-1,null==t&&(t=a?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Ae(e)?e:pa(e),n=Ae(t)?t:pa(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=X(e),l=X(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),YF=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=pa(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&("number"===a||"number"===this._rvalTypeof)&&(t=pa(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function ZF(r,e){return"eq"===r||"ne"===r?new YF("eq"===r,e):J(JC,r)?new UF(r,e):null}function $C(r){var e="",t=-1/0,a=-1/0,n=1/0,i=1/0;return r&&(null!=r.g&&(e+="G"+r.g,t=r.g),null!=r.ge&&(e+="GE"+r.ge,a=r.ge),null!=r.l&&(e+="L"+r.l,n=r.l),null!=r.le&&(e+="LE"+r.le,i=r.le)),{key:e,g:t,ge:a,l:n,le:i}}function eA(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var XF=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 qn(e,t)},r}();function qF(r){return pm(r.sourceFormat)||Oe(""),r.data}function jF(r){var e=r.sourceFormat,t=r.data;if(pm(e)||Oe(""),e===Mt){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}if(e===_r){for(n=[],i=0,o=t.length;i<o;i++)n.push(G({},t[i]));return n}}function JF(r,e,t){if(null!=t){if(Ae(t)||!isNaN(t)&&!J(e,t))return r[t];if(J(e,t))return e[t]}}function QF(r){return re(r)}var tA=j();function t3(r,e,t,a){e.length||Oe(""),se(r)||Oe("");var o=tA.get(r.type);o||Oe("");var s=W(e,function(f){return function KF(r,e){var t=new XF,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex;r.seriesLayoutBy!==Qr&&Oe("");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};s.push(m),null!=y&&(J(l,y)&&Oe(""),l[y]=m)});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=UC(n,Qr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return v(a,i,s,d)},t.getRawData=q(qF,null,r)),t.cloneRawData=q(jF,null,r);var c=ZC(n,Qr);t.count=q(c,null,a,i,s);var h=XC(n);t.retrieveValue=function(d,g){var y=v(a,i,s,d);return p(y,g)};var p=t.retrieveValueFromItem=function(d,g){if(null!=d){var y=s[g];if(y)return h(d,g,y.name)}};return t.getDimensionInfo=q(JF,null,s,l),t.cloneAllDimensionInfo=q(QF,null,s),t}(f,o)});return W(Fe(o.transform({upstream:s[0],upstreamList:s,config:re(r.config)})),function(f,v){se(f)||Oe(""),f.data||Oe(""),pm(EC(f.data))||Oe("");var p,d=e[0];if(d&&0===v&&!f.dimensions){var g=d.startIndex;g&&(f.data=d.data.slice(0,g).concat(f.data)),p={seriesLayoutBy:Qr,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else p={seriesLayoutBy:Qr,sourceHeader:0,dimensions:f.dimensions};return um(f.data,p,null)})}function pm(r){return r===Mt||r===_r}var dm,r3=typeof Uint32Array===yr?Array:Uint32Array,a3=typeof Uint16Array===yr?Array:Uint16Array,rA=typeof Int32Array===yr?Array:Int32Array,aA=typeof Float64Array===yr?Array:Float64Array,nA={float:aA,int:rA,ordinal:Array,number:Array,time:aA};function Gs(r){return r>65535?r3:a3}function n3(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function iA(r,e,t,a,n){var i=nA[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var i3=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=j()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=dm[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],NC(n),this._dimensions=W(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(null!=i){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new nA[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;0===o&&(i[e]=[1/0,-1/0]);for(var l=i[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;
vendor: 5,030 bytes, line 1
1u++)iA(a,u,n[u].type,l,!0);for(var v=[],c=s;c<l;c++)for(var h=c-s,p=0;p<i;p++){var d=dm.arrayRows.call(this,e[h]||v,n[p].property,h,p);a[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=W(o,function(m){return m.property}),f=0;f<s;f++){var v=o[f];l[f]||(l[f]=[1/0,-1/0]),iA(i,f,v.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var c=[],h=e;h<t;h++){c=n.getItem(h,c);for(var p=0;p<s;p++){var d=i[p],g=this._dimValueGetter(c,u[p],h,p);d[h]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;i=0;for(var o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var a=0;if(this._chunks[e])for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(n){isNaN(n)||t.push(n)}),Ct(t);var a=this.count();return 0===a?0:a%2==1?t[(a-1)/2]:(t[a/2]+t[a/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(null!=a&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=this._count;if((a=t.constructor)===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a;for(e=new(a=Gs(this._rawCount))(this.count()),i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),o=new(Gs(a._rawCount))(n),s=[],l=e.length,u=0,f=e[0],v=a._chunks,c=0;c<n;c++){var h=void 0,p=a.getRawIndex(c);if(0===l)h=t(c);else if(1===l)h=t(v[f][p],c);else{for(var g=0;g<l;g++)s[g]=v[e[g]][p];s[g]=c,h=t.apply(null,s)}h&&(o[u++]=p)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Te(e),i=n.length;if(!i)return this;var o=t.count(),l=new(Gs(t._rawCount))(o),u=0,f=n[0],v=e[f][0],c=e[f][1],h=t._chunks,p=!1;if(!t._indices){var d=0;if(1===i){for(var g=h[n[0]],y=0;y<a;y++)((m=g[y])>=v&&m<=c||isNaN(m))&&(l[u++]=d),d++;p=!0}else if(2===i){g=h[n[0]];var _=h[n[1]],S=e[n[1]][0],x=e[n[1]][1];for(y=0;y<a;y++){var b=_[y];((m=g[y])>=v&&m<=c||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=d),d++}p=!0}}if(!p)if(1===i)for(y=0;y<o;y++){var w=t.getRawIndex(y);((m=h[n[0]][w])>=v&&m<=c||isNaN(m))&&(l[u++]=w)}else for(y=0;y<o;y++){for(var C=!0,T=(w=t.getRawIndex(y),0);T<i;T++){var m,M=n[T];((m=h[M][w])<e[M][0]||m>e[M][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=[1/0,-1/0];for(var v=0;v<s;v++){for(var c=e.getRawIndex(v),h=0;h<o;h++)l[h]=n[t[h]][c];l[o]=v;var p=a&&a.apply(null,l);if(null!=p)for("object"!=typeof p&&(i[0]=p,p=i),f=0;f<p.length;f++){var d=t[f],g=p[f],y=u[d],m=n[d];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},r.prototype.lttbDownSample=function(e,t){var f,v,c,a=this.clone([e],!0),i=a._chunks[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),h=new(Gs(this._rawCount))(Math.min(2*(Math.ceil(o/l)+2),o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+2*l,o),y=(g+d)/2,m=0,_=d;_<g;_++){var x=i[S=this.getRawIndex(_)];isNaN(x)||(m+=x)}m/=g-d;var b=p,w=Math.min(p+l,o),C=p-1,T=i[u];f=-1,c=b;var M=-1,D=0;for(_=b;_<w;_++){var S;x=i[S=this.getRawIndex(_)],isNaN(x)?(D++,M<0&&(M=S)):(v=Math.abs((C-y)*(x-T)-(C-_)*(m-T)))>f&&(f=v,c=S)}D>0&&D<w-b&&(h[s++]=Math.min(M,c),c=Math.max(M,c)),h[s++]=c,u=c}return h[s++]=this.getRawIndex(o-1),a._count=s,a._indices=h,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],s=this.count(),l=new(Gs(this._rawCount))(2*Math.ceil(s/i)),u=0,f=0;f<s;f+=i){var v=f,c=o[this.getRawIndex(v)],h=f,p=o[this.getRawIndex(h)],d=i;f+i>s&&(d=s-f);for(var g=0;g<d;g++){var m=o[this.getRawIndex(f+g)];m<c&&(c=m,v=f+g),m>p&&(p=m,h=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(h);
vendor: 6,392 bytes, line 1
1v<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),v=i._rawExtent[e]=[1/0,-1/0],c=new(Gs(this._rawCount))(Math.ceil(f/l)),h=0,p=0;p<f;p+=l){l>f-p&&(s.length=l=f-p);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(p+n(s,y)||0,f-1));u[m]=y,y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),c[h++]=m}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var a=this._chunks[e],n=[1/0,-1/0];if(!a)return n;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=$C(t),f=u.key,v=l[f];if(v)return v.slice();for(var c=n[0],h=n[1],p=0;p<i;p++){var g=a[this.getRawIndex(p)];(!t||eA(u,g))&&(g<c&&(c=g),g>h&&(h=g))}return l[f]=[c,h]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&Tr(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?n3(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=re(this._extent),e._rawExtent=re(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return qn(t[i],this._dimensions[i])}dm={arrayRows:e,objectRows:function(t,a,n,i){return qn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(null==t.value?t:t.value);return qn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}();const gm=i3;var oA=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var n,i,e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length;if(Nc(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),s=(u=f.getSource()).data,l=u.sourceFormat,i=[f._getVersionSign()]}else l=jt(s=o.get("data",!0))?on:mr,i=[];var v=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=Q(v.seriesLayoutBy,c.seriesLayoutBy)||null,p=Q(v.sourceHeader,c.sourceHeader),d=Q(v.dimensions,c.dimensions);n=h!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d?[um(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else n=[um(y.get("source",!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);null!=n&&1!==e.length&&lA("");var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(n||0);null!=n&&!f&&lA(""),s.push(f),l.push(u._getVersionSign())}),a?o=function e3(r,e){var a=Fe(r),n=a.length;n||Oe("");for(var o=0,s=n;o<s;o++)e=t3(a[o],e),o!==s-1&&(e.length=Math.max(e.length,1));return e}(a,s):null!=n&&(o=[IF(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){var t=this._sourceList[e=e||0];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var i=this._storeList,o=i[0];o||(o=i[0]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Nc(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new gm).initData(new HC(t,e.length),e),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Nc(e)){var t=rm(e);return t?[t.getSourceManager()]:[]}return W(function eF(r){return r.get("transform",!0)||r.get("fromTransformResult",!0)?ws(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},at).models:[]}(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t,a,n,e=this._sourceHost;if(Nc(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r}();function sA(r){r.option.transform&&Wl(r.option.transform)}function Nc(r){return"series"===r.mainType}function lA(r){throw new Error(r)}function uA(r){var e=r.lineHeight;return null==e?"line-height:1":"line-height:"+kt(e+"")+"px"}
1function fA(r,e){var t=r.color||B.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||B.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+kt(a+"")+"px;color:"+kt(t)+";font-weight:"+kt(n+""),valueStyle:"font-size:"+kt(o+"")+"px;color:"+kt(i)+";font-weight:"+kt(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var s3=[0,10,20,30],l3=["","\n","\n\n","\n\n\n"];function vt(r,e){return e.type=r,e}function ym(r){return"section"===r.type}function vA(r){return ym(r)?u3:f3}function cA(r){if(ym(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=cA(n);i>=e&&(e=i+ +(a&&(!i||ym(n)&&!n.noHeader)))}),e}return 0}function u3(r,e,t,a){var n=e.noHeader,i=function v3(r){return{html:s3[r],richText:l3[r]}}(cA(e)),o=[],s=e.blocks||[];Rt(!s||H(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(J(u,l)){var f=new QC(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else"seriesDesc"===l&&s.reverse()}A(s,function(d,g){var y=e.valueFormatter,m=vA(d)(y?G(G({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);null!=m&&o.push(m)});var v="richText"===r.renderMode?o.join(i.richText):mm(a,o.join(""),n?t:i.html);if(n)return v;var c=jy(e.header,"ordinal",r.useUTC),h=fA(a,r.renderMode).nameStyle,p=uA(a);return"richText"===r.renderMode?pA(r,c,h)+i.richText+v:mm(a,'<div style="'+h+";"+p+';">'+kt(c)+"</div>"+v,t)}function f3(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return W(S=H(S)?S:[S],function(x,b){return jy(x,H(h)?h[b]:h,u)})};if(!i||!o){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||B.color.secondary,n),c=i?"":jy(l,"ordinal",u),h=e.valueType,p=o?[]:f(e.value,e.rawDataIndex),d=!s||!i,g=!s&&i,y=fA(a,n),m=y.nameStyle,_=y.valueStyle;return"richText"===n?(s?"":v)+(i?"":pA(r,c,m))+(o?"":function p3(r,e,t,a,n){var i=[n];return t&&i.push({padding:[0,0,0,a?10:20],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(H(e)?e.join("  "):e,i)}(r,p,d,g,_)):mm(a,(s?"":v)+(i?"":function c3(r,e,t){return'<span style="'+t+";"+(e?"margin-left:2px":"")+'">'+kt(r)+"</span>"}(c,!s,m))+(o?"":function h3(r,e,t,a){return'<span style="'+(e?"float:right;margin-left:"+(t?"10px":"20px"):"")+";"+a+'">'+W(r=H(r)?r:[r],function(o){return kt(o)}).join("&nbsp;&nbsp;")+"</span>"}(p,d,g,_)),t)}}function hA(r,e,t,a,n,i){if(r)return vA(r)({useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter},r,0,i)}function mm(r,e,t){return'<div style="margin: '+t+"px 0 0;"+uA(r)+';">'+e+'<div style="clear:both"></div></div>'}function pA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function dA(r,e){return Qi(r.getData().getItemVisual(e,"style")[r.visualDrawType])}function gA(r,e){return r.get("padding")??("richText"===e?[8,10]:10)}var _m=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Yg()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n="richText"===a?this._generateStyleName():null,i=jT({color:t,type:e,renderMode:a,markerId:n});return X(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};H(t)?A(t,function(i){return G(a,i)}):G(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function yA(r){var f,v,c,h,e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=H(s),u=dA(e,t);if(o>1||l&&!o){var p=function d3(r,e,t,a,n){var i=e.getData(),o=Tr(r,function(v,c,h){var p=i.getDimensionInfo(h);return v||p&&!1!==p.tooltip&&null!=p.displayName},!1),s=[],l=[],u=[];function f(v,c){var h=i.getDimensionInfo(c);!h||!1===h.otherDims.tooltip||(o?u.push(vt("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return a.length?A(a,function(v){f(zs(i,t,v),v)}):A(r,f),{inlineValues:s,inlineValueTypes:l,blocks:u}}(s,e,t,i,u);f=p.inlineValues,v=p.inlineValueTypes,c=p.blocks,h=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);h=f=zs(n,t,i[0]),v=d.type}else h=f=l?s[0]:s;var g=Zg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;
vendor: 5,186 bytes, line 1
1return vt("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[vt("nameValue",{markerType:"item",markerColor:u,name:_,noName:!vr(_),value:f,valueType:v,rawDataIndex:n.getRawIndex(t)})].concat(c||[])})}var jn=ge();function Bc(r,e){return r.getName(e)||r.getId(e)}var Vc="__universalTransitionEnabled",zc=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return N(e,r),e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Ru({count:y3,reset:m3}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(jn(this).sourceManager=new oA(this)).prepareSource();var o=this.getInitialData(t,n);_A(o,this),this.dataTask.context.data=o,jn(this).dataBeforeProcessed=o,mA(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=Mu(this),i=n?to(t):{},o=this.subType;Ce.hasClass(o)&&(o+="Series"),de(t,a.getTheme().get(this.subType)),de(t,this.getDefaultOption()),ki(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&wa(t,i,n)},e.prototype.mergeOption=function(t,a){t=de(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Mu(this);n&&wa(this.option,t,n);var i=jn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);_A(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,jn(this).dataBeforeProcessed=o,mA(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!jt(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&ki(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){this.getRawData().appendData(t.data)},e.prototype.getData=function(t){var a=Sm(this);if(a){var n=a.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return jn(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=Sm(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}jn(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return j(t)},e.prototype.getSourceManager=function(){return jn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return jn(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get("colorBy")||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);null==i&&(i=1/0);for(var f=[],v=1/0,c=-1,h=0,p=o.getDimensionIndex(a),d=o.getStore(),g=0,y=d.count();g<y;g++){var m=d.get(p,g),S=u-l.dataToCoord(m),x=Math.abs(S);x<=i&&((x<v||x===v&&S>=0&&c<0)&&(v=x,c=S,h=0),S===c&&(f[h++]=g))}return f.length=h,f},e.prototype.formatTooltip=function(t,a,n){return yA({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Ee.node&&(!t||!t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=nm.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),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 n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<t.length;s++){var u=Bc(o,t[s]);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Te(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return("all"===n||n[Bc(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Vc])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(s&&l)if("series"===s)o.selectedMap="all";else if("multiple"===s){se(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var v=a[f];u[c=Bc(t,v)]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(v)}}
vendor: 13,788 bytes, line 1
1else if("single"===s||!0===s){var h=a[l-1],c=Bc(t,h);o.selectedMap=((n={})[c]=!0,n),this._selectedDataIndicesMap=((i={})[c]=t.getRawIndex(h),i)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return Ce.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Ce);function mA(r){var e=r.name;Zg(r)||(r.name=function g3(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}(r)||e)}function y3(r){return r.model.getRawData().count()}function m3(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),_3}function _3(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function _A(r,e){A(ls(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,Se(S3,e))})}function S3(r,e){var t=Sm(r);return t&&t.setOutputEnd((e||this).count()),e}function Sm(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}it(zc,Oc),it(zc,nm),Tw(zc,Ce);const Ye=zc;var xm=function(){function r(){this.group=new oe,this.uid=Ji("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Qg(xm),rc(xm);const Xe=xm;function lo(){var r=ge();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!(!a||!a.large),s=t.progressiveRender=!(!a||!a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Fs=Sa.CMD,x3=[[],[],[]],SA=Math.sqrt,b3=Math.atan2;function xA(r,e){if(e){var n,i,o,s,l,u,t=r.data,a=r.len(),f=Fs.M,v=Fs.C,c=Fs.L,h=Fs.R,p=Fs.A,d=Fs.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case f:case c:i=1;break;case v:i=3;break;case d:i=2;break;case p:var g=e[4],y=e[5],m=SA(e[0]*e[0]+e[1]*e[1]),_=SA(e[2]*e[2]+e[3]*e[3]),S=b3(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,s=o+=2;break;case h:u[0]=t[o++],u[1]=t[o++],tt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],tt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var x=x3[l];x[0]=t[o++],x[1]=t[o++],tt(x,x,e),t[s++]=x[0],t[s++]=x[1]}}r.increaseVersion()}}var bm=Math.sqrt,Gc=Math.sin,Fc=Math.cos,Eu=Math.PI;function bA(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function wm(r,e){return(r[0]*e[0]+r[1]*e[1])/(bA(r)*bA(e))}function wA(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(wm(r,e))}function TA(r,e,t,a,n,i,o,s,l,u,f){var v=l*(Eu/180),c=Fc(v)*(r-t)/2+Gc(v)*(e-a)/2,h=-1*Gc(v)*(r-t)/2+Fc(v)*(e-a)/2,p=c*c/(o*o)+h*h/(s*s);p>1&&(o*=bm(p),s*=bm(p));var d=(n===i?-1:1)*bm((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,g=d*o*h/s,y=d*-s*c/o,m=(r+t)/2+Fc(v)*g-Gc(v)*y,_=(e+a)/2+Gc(v)*g+Fc(v)*y,S=wA([1,0],[(c-g)/o,(h-y)/s]),x=[(c-g)/o,(h-y)/s],b=[(-1*c-g)/o,(-1*h-y)/s],w=wA(x,b);if(wm(x,b)<=-1&&(w=Eu),wm(x,b)>=1&&(w=0),w<0){var C=Math.round(w/Eu*1e6)/1e6;w=2*Eu+C%2*Eu}f.addData(u,m,_,o,s,S,w,v,i)}var w3=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,T3=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,CA=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.applyTransform=function(t){},e}(we);function AA(r){return null!=r.setData}function MA(r,e){var t=function C3(r){var e=new Sa;if(!r)return e;var o,t=0,a=0,n=t,i=a,s=Sa.CMD,l=r.match(w3);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),c=void 0,h=f.match(T3)||[],p=h.length,d=0;d<p;d++)h[d]=parseFloat(h[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=t,T=a,M=void 0,D=void 0;switch(v){case"l":t+=h[g++],a+=h[g++],e.addData(c=s.L,t,a);break;case"L":t=h[g++],a=h[g++],e.addData(c=s.L,t,a);break;case"m":t+=h[g++],a+=h[g++],e.addData(c=s.M,t,a),n=t,i=a,v="l";break;case"M":t=h[g++],a=h[g++],e.addData(c=s.M,t,a),n=t,i=a,v="L";break;case"h":t+=h[g++],e.addData(c=s.L,t,a);break;case"H":t=h[g++],e.addData(c=s.L,t,a);break;case"v":a+=h[g++],e.addData(c=s.L,t,a);break;case"V":a=h[g++],e.addData(c=s.L,t,a);break;case"C":e.addData(c=s.C,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),t=h[g-2],a=h[g-1];break;case"c":e.addData(c=s.C,h[g++]+t,h[g++]+a,h[g++]+t,h[g++]+a,h[g++]+t,h[g++]+a),t+=h[g-2],a+=h[g-1];break;case"S":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),C=h[g++],T=h[g++],t=h[g++],a=h[g++],e.addData(c=s.C,y,m,C,T,t,a);break;case"s":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),C=t+h[g++],T=a+h[g++],t+=h[g++],a+=h[g++],e.addData(c=s.C,y,m,C,T,t,a);break;case"Q":C=h[g++],T=h[g++],t=h[g++],a=h[g++],e.addData(c=s.Q,C,T,t,a);break;case"q":C=h[g++]+t,T=h[g++]+a,t+=h[g++],a+=h[g++],e.addData(c=s.Q,C,T,t,a);break;case"T":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t=h[g++],a=h[g++],e.addData(c=s.Q,y,m,t,a);break;case"t":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t+=h[g++],a+=h[g++],e.addData(c=s.Q,y,m,t,a);break;case"A":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],TA(C=t,T=a,t=h[g++],a=h[g++],b,w,_,S,x,c=s.A,e);break;case"a":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],TA(C=t,T=a,t+=h[g++],a+=h[g++],b,w,_,S,x,c=s.A,e)}}("z"===v||"Z"===v)&&(e.addData(c=s.Z),t=n,a=i),o=c}return e.toStatic(),e}(r),a=G({},e);return a.buildPath=function(n){var o,i=AA(n);i&&n.canSave()?(n.appendPath(t),(o=n.getContext())&&n.rebuildPath(o,1)):(o=i?n.getContext():n)&&t.rebuildPath(o,1)},a.applyTransform=function(n){xA(t,n),this.dirtyShape()},a}function DA(r,e){return new CA(MA(r,e))}function Tm(r,e){e=e||{};var t=new we;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?xA(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var D3=function(){return function r(){this.cx=0,this.cy=0,this.r=0}}(),LA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultShape=function(){return new D3},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,2*Math.PI)},e}(we);LA.prototype.type="circle";const cn=LA;var L3=function(){return function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}}(),IA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultShape=function(){return new L3},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e}(we);IA.prototype.type="ellipse";const Hc=IA;var PA=Math.PI,Cm=2*PA,uo=Math.sin,Hs=Math.cos,I3=Math.acos,Ut=Math.atan2,RA=Math.abs,ku=Math.sqrt,Ou=Math.max,Ta=Math.min,ea=1e-4;function Wc(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/ku(s*s+l*l),f=u*l,v=-u*s,c=r+f,h=e+v,p=t+f,d=a+v,g=(c+p)/2,y=(h+d)/2,m=p-c,_=d-h,S=m*m+_*_,x=n-i,b=c*d-p*h,w=(_<0?-1:1)*ku(Ou(0,x*x*S-b*b)),C=(b*_-m*w)/S,T=(-b*m-_*w)/S,M=(b*_+m*w)/S,D=(-b*m+_*w)/S,I=C-g,L=T-y,P=M-g,E=D-y;return I*I+L*L>P*P+E*E&&(C=M,T=D),{cx:C,cy:T,x0:-f,y0:-v,x1:C*(n/x-1),y1:T*(n/x-1)}}var k3=function(){return function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}}(),EA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultShape=function(){return new k3},e.prototype.buildPath=function(t,a){!function E3(r,e){var t,a=Ou(e.r,0),n=Ou(e.r0||0,0),i=a>0;if(i||n>0){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var f=e.cx,v=e.cy,c=!!e.clockwise,h=RA(u-l),p=h>Cm&&h%Cm;if(p>ea&&(h=p),a>ea)if(h>Cm-ea)r.moveTo(f+a*Hs(l),v+a*uo(l)),r.arc(f,v,a,l,u,!c),n>ea&&(r.moveTo(f+n*Hs(u),v+n*uo(u)),r.arc(f,v,n,u,l,c));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,C=void 0,T=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,E=a*Hs(l),R=a*uo(l),k=n*Hs(u),O=n*uo(u),V=h>ea;if(V){var z=e.cornerRadius;z&&(t=function R3(r){var e;if(H(r)){var t=r.length;if(!t)return r;e=1===t?[r[0],r[0],0,0]:2===t?[r[0],r[0],r[1],r[1]]:3===t?r.concat(r[2]):r}else e=[r,r,r,r];return e}(z),d=t[0],g=t[1],y=t[2],m=t[3]);var F=RA(a-n)/2;if(_=Ta(F,y),S=Ta(F,m),x=Ta(F,d),b=Ta(F,g),T=w=Ou(_,S),M=C=Ou(x,b),(w>ea||C>ea)&&(D=a*Hs(u),I=a*uo(u),L=n*Hs(l),P=n*uo(l),h<PA)){var U=function P3(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=v*l-f*u;if(!(c*c<ea))return[r+(c=(f*(e-i)-v*(r-n))/c)*l,e+c*u]}(E,R,L,P,D,I,k,O);if(U){var Y=E-U[0],Z=R-U[1],$=D-U[0],ye=I-U[1],Ne=1/uo(I3((Y*$+Z*ye)/(ku(Y*Y+Z*Z)*ku($*$+ye*ye)))/2),ve=ku(U[0]*U[0]+U[1]*U[1]);T=Ta(w,(a-ve)/(Ne+1)),M=Ta(C,(n-ve)/(Ne-1))}}}if(V)if(T>ea){var ee=Ta(y,T),_e=Ta(m,T),te=Wc(L,P,E,R,a,ee,c),ce=Wc(D,I,k,O,a,_e,c);r.moveTo(f+te.cx+te.x0,v+te.cy+te.y0),T<w&&ee===_e?r.arc(f+te.cx,v+te.cy,T,Ut(te.y0,te.x0),Ut(ce.y0,ce.x0),!c):(ee>0&&r.arc(f+te.cx,v+te.cy,ee,Ut(te.y0,te.x0),Ut(te.y1,te.x1),!c),r.arc(f,v,a,Ut(te.cy+te.y1,te.cx+te.x1),Ut(ce.cy+ce.y1,ce.cx+ce.x1),!c),_e>0&&r.arc(f+ce.cx,v+ce.cy,_e,Ut(ce.y1,ce.x1),Ut(ce.y0,ce.x0),!c))}else r.moveTo(f+E,v+R),r.arc(f,v,a,l,u,!c);else r.moveTo(f+E,v+R);n>ea&&V?M>ea?(ee=Ta(d,M),te=Wc(k,O,D,I,n,-(_e=Ta(g,M)),c),ce=Wc(E,R,L,P,n,-ee,c),r.lineTo(f+te.cx+te.x0,v+te.cy+te.y0),M<C&&ee===_e?r.arc(f+te.cx,v+te.cy,M,Ut(te.y0,te.x0),Ut(ce.y0,ce.x0),!c):(_e>0&&r.arc(f+te.cx,v+te.cy,_e,Ut(te.y0,te.x0),Ut(te.y1,te.x1),!c),r.arc(f,v,n,Ut(te.cy+te.y1,te.cx+te.x1),Ut(ce.cy+ce.y1,ce.cx+ce.x1),c),ee>0&&r.arc(f+ce.cx,v+ce.cy,ee,Ut(ce.y1,ce.x1),Ut(ce.y0,ce.x0),!c))):(r.lineTo(f+k,v+O),r.arc(f,v,n,u,l,c)):r.lineTo(f+k,v+O)}else r.moveTo(f,v);r.closePath()}}}(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(we);EA.prototype.type="sector";const Yt=EA;var O3=function(){return function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}}(),kA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultShape=function(){return new O3},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=2*Math.PI;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(we);kA.prototype.type="ring";const Nu=kA;function OA(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=function N3(r,e,t,a){var l,u,f,v,n=[],i=[],o=[],s=[];if(a){f=[1/0,1/0],v=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)Xa(f,f,r[c]),Ka(v,v,r[c]);Xa(f,f,a[0]),Ka(v,v,a[1])}for(c=0,h=r.length;c<h;c++){var p=r[c];if(t)l=r[c?c-1:h-1],u=r[(c+1)%h];else{if(0===c||c===h-1){n.push(sa(r[c]));continue}l=r[c-1],u=r[c+1]}Pn(i,u,l),Xl(i,i,e);var d=mv(p,l),g=mv(p,u),y=d+g;0!==y&&(d/=y,g/=y),Xl(o,i,-d),Xl(s,i,g);var m=Hd([],p,o),_=Hd([],p,s);a&&(Ka(m,m,f),Xa(m,m,v),Ka(_,_,f),Xa(_,_,v)),n.push(m),n.push(_)}return t&&n.push(n.shift()),n}(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[2*s],u=i[2*s+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]),s=1;for(var v=n.length;s<v;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var B3=function(){return function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}}(),NA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultShape=function(){return new B3},e.prototype.buildPath=function(t,a){OA(t,a,!0)},e}(we);NA.prototype.type="polygon";const Zt=NA;var V3=function(){return function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}}(),BA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new V3},e.prototype.buildPath=function(t,a){OA(t,a,!1)},e}(we);BA.prototype.type="polyline";const Bt=BA;var z3={},G3=function(){return function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}(),VA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new G3},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=vc(z3,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;0!==u&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e}(we);VA.prototype.type="line";const ct=VA;var lr=[],F3=function(){return function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}}();function zA(r,e,t){return null!=r.cpx2||null!=r.cpy2?[(t?Sb:xt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Sb:xt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?sg:Tt)(r.x1,r.cpx1,r.x2,e),(t?sg:Tt)(r.y1,r.cpy1,r.y2,e)]}var GA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new F3},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=
1a.cpx2,v=a.cpy2,c=a.percent;0!==c&&(t.moveTo(n,i),null==f||null==v?(c<1&&(eu(n,l,o,c,lr),l=lr[1],o=lr[2],eu(i,u,s,c,lr),u=lr[1],s=lr[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(Nn(n,l,f,o,c,lr),l=lr[1],f=lr[2],o=lr[3],Nn(i,u,v,s,c,lr),u=lr[1],v=lr[2],s=lr[3]),t.bezierCurveTo(l,u,f,v,o,s)))},e.prototype.pointAt=function(t){return zA(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=zA(this.shape,t,!0);return mi(a,a)},e}(we);GA.prototype.type="bezier-curve";const Bu=GA;var H3=function(){return function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),FA=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new H3},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,f=Math.cos(s),v=Math.sin(s);t.moveTo(f*o+n,v*o+i),t.arc(n,i,o,s,l,!u)},e}(we);FA.prototype.type="arc";const Uc=FA;var W3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="compound",t}return N(e,r),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),we.prototype.getBoundingRect.call(this)},e}(we);const Vu=W3;var U3=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}();const HA=U3;var Y3=function(r){function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return N(e,r),e}(HA);const fo=Y3;var Z3=function(r){function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return N(e,r),e}(HA);const Am=Z3;var Mm=Math.min,X3=Math.max,Yc=Math.abs,vo=[0,0],co=[0,0],Dt=ib(),Zc=Dt.minTv,Xc=Dt.maxTv,K3=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new le;for(a=0;a<2;a++)this._axes[a]=new le;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),t)for(var u=0;u<4;u++)a[u].transform(t);for(le.sub(n[0],a[1],a[0]),le.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize(),u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t,a){var n=!0,i=!t;return t&&le.set(t,0,0),Dt.reset(a,!i),!this._intersectCheckOneSide(this,e,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(n=!1,i)||!i&&!Dt.negativeSize&&le.copy(t,n?Dt.useDir?Dt.dirMinTv:Zc:Xc),n},r.prototype._intersectCheckOneSide=function(e,t,a,n){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,vo),e._getProjMinMaxOnAxis(o,t._corners,co),Dt.negativeSize||vo[1]<co[0]||vo[0]>co[1]){if(i=!1,Dt.negativeSize||a)return i;var l=Yc(co[0]-vo[1]),u=Yc(vo[0]-co[1]);Mm(l,u)>Xc.len()&&le.scale(Xc,s,l<u?-l*n:u*n)}else a||(l=Yc(co[0]-vo[1]),u=Yc(vo[0]-co[1]),(Dt.useDir||Mm(l,u)<Zc.len())&&((l<u||!Dt.bidirectional)&&(le.scale(Zc,s,l*n),Dt.useDir&&Dt.calcDirMTV()),(l>=u||!Dt.bidirectional)&&(le.scale(Zc,s,-u*n),Dt.useDir&&Dt.calcDirMTV())))}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+i[e];s=Mm(f,s),l=X3(f,l)}a[0]=s+Dt.touchThreshold,a[1]=l-Dt.touchThreshold,Dt.negativeSize=a[1]<a[0]},r}();const WA=K3;var Q3=[],$3=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._
vendor: 1,627 bytes, line 1
1cursor=0,t}return N(e,r),e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(a=this._displayables[t]).parent=this,a.update(),a.parent=null;for(t=0;t<this._temporaryDisplayables.length;t++){var a;(a=this._temporaryDisplayables[t]).parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new fe(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();
1n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Q3)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);if(this.getBoundingRect().contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(t,a))return!0;return!1},e}(Rr);const YA=$3;var Dm={},he=["x","y"],nt=["width","height"],ZA=0,XA=1,Ws=2;function KA(r){return we.extend(r)}function qA(r,e){return function A3(r,e){var t=MA(r,e);return function(n){function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return N(i,n),i}(CA)}(r,e)}function Br(r,e){Dm[r]=e}function zu(r){if(Dm.hasOwnProperty(r))return Dm[r]}function Us(r,e,t,a){var n=DA(r,e);return t&&("center"===a&&(t=jA(t,n.getBoundingRect())),Im(n,t)),n}function Lm(r,e,t){var a=new At({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){"center"===t&&a.setStyle(jA(e,{width:n.width,height:n.height}))}});return a}function jA(r,e){var n,t=e.width/e.height,a=r.height*t;return n=a<=r.width?r.height:(a=r.width)/t,{x:r.x+r.width/2-a/2,y:r.y+r.height/2-n/2,width:a,height:n}}var xr=function M3(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push(r[n].getUpdatedPathProxy(!0));var o=new we(e);return o.createPathProxy(),o.buildPath=function(s){if(AA(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o};function Im(r,e){if(r.applyTransform){var a=r.getBoundingRect().calculateTransform(e);r.applyTransform(a)}}function Ys(r,e){return vc(r,r,{lineWidth:e}),r}function tH(r,e){return Uw(r,r,e),r}var qc=gr;function ho(r,e){for(var t=_i([]);r&&r!==e;)cr(t,r.getLocalTransform(),t),r=r.parent;return t}function ta(r,e,t){return e&&!It(e)&&(e=Gn.getLocalTransform(e)),t&&(e=hr([],e)),tt([],r,e)}function jc(r,e,t){var a=0===e[4]||0===e[5]||0===e[0]?1:rt(2*e[4]/e[0]),n=0===e[4]||0===e[5]||0===e[2]?1:rt(2*e[4]/e[2]),i=["left"===r?-a:"right"===r?a:0,"top"===r?-n:"bottom"===r?n:0];return i=ta(i,e,t),rt(i[0])>rt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function JA(r){return!r.isGroup}function Gu(r,e,t){if(r&&e){var i=function a(o){var s={};return o.traverse(function(l){JA(l)&&l.anid&&(s[l.anid]=l)}),s}(r);e.traverse(function(o){if(JA(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Pe(o,l,t,ue(o).dataIndex)}}})}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return function rH(r){return null!=r.shape}(o)&&(s.shape=re(o.shape)),s}}function Pm(r,e){return W(r,function(t){var a=t[0];a=xe(a,e.x),a=Be(a,e.x+e.width);var n=t[1];return n=xe(n,e.y),[a,n=Be(n,e.y+e.height)]})}function QA(r,e){var t=xe(r.x,e.x),a=Be(r.x+r.width,e.x+e.width),n=xe(r.y,e.y),i=Be(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Zs(r,e,t){var a=G({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return 0===r.indexOf("image://")?(n.image=r.slice(8),ie(n,t),new At(a)):Us(r.replace("path://",""),a,t,"center")}function Fu(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if($A(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function $A(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=Rm(f,v,l,u);if(function aH(r){return r<=1e-6&&r>=-1e-6}(c))return!1;var h=r-n,p=e-i,d=Rm(h,p,l,u)/c;if(d<0||d>1)return!1;var g=Rm(h,p,f,v)/c;return!(g<0||g>1)}function Rm(r,e,t,a){return r*a-t*e}function po(r,e,t,a,n){return null==e||(Ae(e)?$e[0]=$e[1]=$e[2]=$e[3]=e:($e[0]=e[0],$e[1]=e[1],$e[2]=e[2],$e[3]=e[3]),a&&($e[0]=xe(0,$e[0]),$e[1]=xe(0,$e[1]),$e[2]=xe(0,$e[2]),$e[3]=xe(0,$e[3])),t&&($e[0]=-$e[0],$e[1]=-$e[1],$e[2]=-$e[2],$e[3]=-$e[3]),eM(r,$e,"x","width",3,1,n&&n[0]||0),eM(r,$e,"y","height",0,2,n&&n[1]||0)),r}var $e=[0,0,0,0];function eM(r,e,t,a,n,i,o){var s=e[i]+e[n],l=r[a];r[a]+=s,o=xe(0,Be(o,l)),r[a]<o?(r[a]=o,r[t]+=e[n]>=0?-e[n]:e[i]>=0?l+e[i]:rt(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function hn(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=X(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Te(l),function(f){J(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ue(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ie({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Em(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Jn(r,e){if(r)if(H(r))for(var t=0;t<r.length;t++)Em(r[t],e);else Em(r,e)}function km(r){return!r||rt(r[1])<Jc&&rt(r[2])<Jc||rt(r[0])<Jc&&rt(r[3])<Jc}var Jc=1e-5;function Hu(r,e){return r?fe.copy(r,e):e.clone()}
vendor: 6,204 bytes, line 1
1function Om(r,e){return e?En(r||[1,0,0,1,0,0],e):void 0}function go(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function tM(r){var e=-1/0,t=1/0;function a(i){if(i&&!i.isGroup){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return Em(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())}),t>e&&(t=e=0),{min:t,max:e}}function Qc(r,e,t){rM(r,e,t,-1/0)}function rM(r,e,t,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine();if(r.isGroup)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=xe(rM(s[l],e,t,a),a);else r.z=e,r.zlevel=t,a=xe(r.z2||0,a);if(n&&(n.z=e,n.zlevel=t,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}function Nm(r){return r.animation={duration:0},r}function $c(r,e){return e?En(Wu.transform,e):_i(Wu.transform),Wu.decomposeTransform(),ua(r,Wu),r}var Wu=new Gn;function Bm(r){var e=r.getZr().painter;return"canvas"===e.getType()?e:null}Wu.transform=[1,0,0,1,0,0],Br("circle",cn),Br("ellipse",Hc),Br("sector",Yt),Br("ring",Nu),Br("polygon",Zt),Br("polyline",Bt),Br("rect",be),Br("line",ct),Br("bezierCurve",Bu),Br("arc",Uc);var aM=ge(),nH=lo(),Vm=function(){function r(){this.group=new oe,this.uid=Ji("viewChart"),this.renderTask=Ru({plan:iH,reset:oH}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&iM(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&iM(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){Jn(this.group,e)},r.markUpdateMethod=function(e,t){aM(e).updateMethod=t},r.protoInitialize=void(r.prototype.type="chart"),r}();function nM(r,e,t){r&&xu(r)&&("emphasis"===e?ln:un)(r,t)}function iM(r,e,t){var a=Oi(r,e),n=e&&null!=e.highlightKey?function hG(r){var e=fT[r];return null==e&&uT<=32&&(e=fT[r]=uT++),e}(e.highlightKey):null;null!=a?A(Fe(a),function(i){nM(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){nM(i,t,n)})}function iH(r){return nH(r.model)}function oH(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&aM(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,t,a,n),sH[l]}Qg(Vm),rc(Vm);var sH={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)}}};const ze=Vm;var eh="\0__throttleOriginMethod",oM="\0__throttleRate",sM="\0__throttleType";function th(r,e,t){var a,s,l,u,f,n=0,i=0,o=null;function v(){i=(new Date).getTime(),o=null,r.apply(l,u||[])}e=e||0;var c=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];a=(new Date).getTime(),l=this,u=h;var d=f||e,g=f||t;f=null,s=a-(g?n:i)-d,clearTimeout(o),g?o=setTimeout(v,d):s>=0?v():o=setTimeout(v,-s),n=a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Xs(r,e,t,a){var n=r[e];if(n){var i=n[eh]||n;if(n[oM]!==t||n[sM]!==a){if(null==t||!a)return r[e]=i;(n=r[e]=th(i,t,"debounce"===a))[eh]=i,n[sM]=a,n[oM]=t}return n}}function Uu(r,e){var t=r[e];t&&t[eh]&&(t.clear&&t.clear(),r[e]=t[eh])}var lM=ge(),uM={itemStyle:Vi(NT,!0),lineStyle:Vi(OT,!0)},lH={lineStyle:"stroke",itemStyle:"fill"};function fM(r,e){return r.visualStyleMapper||uM[e]||(console.warn("Unknown style type '"+e+"'."),uM.itemStyle)}function vM(r,e){return r.visualDrawType||lH[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var uH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),o=fM(r,a)(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=vM(r,a),u=o[l],f=ae(u)?u:null;if(!o[l]||f||"auto"===o.fill||"auto"===o.stroke){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ae(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||ae(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var d=r.getDataParams(p),g=G({},o);g[l]=f(d),h.setItemVisual(p,"style",g)}}}},Yu=new De,fH={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=fM(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){Yu.option=l[a];var u=n(Yu);G(o.ensureUniqueItemVisual(s,"style"),u),Yu.option.decal&&(o.setItemVisual(s,"decal",Yu.option.decal),Yu.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vH={performRawSeries:!0,overallReset:function(r){var e=j();r.eachSeries(function(t){if(!t.isColorBySeries()){var a=t.type+"-"+t.getColorBy();lM(t).scope=e.get(a)||e.set(a,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var a=t.getRawData(),n={},i=t.getData(),o=lM(t).scope,l=vM(t,t.visualStyleAccessPath||"itemStyle");i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u];if(i.getItemVisual(f,"colorFromPalette")){var c=i.ensureUniqueItemVisual(f,"style"),h=a.getName(u)||u+"",p=a.count();c[l]=t.getColorFromPalette(h,o,p)}})}})}},rh=Math.PI,hH=function(){function r(e,t,a,n){this._stageTaskMap=j(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,o=!t&&a.progressiveEnabled&&(!n||n.progressiveRen
vendor: 4,877 bytes, line 1
1der)&&e.__idxInPipeline>a.blockIndex?a.step:null,s=n&&n.modDataCount;return{step:o,modBy:null!=s?Math.ceil(s/o):null,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),n=e.__preparePipelineContext?e.__preparePipelineContext(t,a):bw(e,t,a);e.pipelineContext=a.context=n},r.prototype.restorePipelines=function(e,t){var a=this,n=a._pipelineMap=j();t.eachSeries(function(i){var o="canvas"===e.painter.type&&i.getProgressive(),s=i.uid;n.set(s,{id:s,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),a._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{});Rt(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},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,n){n=n||{};var i=!1,o=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}A(e,function(l,u){if(!n.visualType||n.visualType===l.visualType){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,c=f.overallTask;if(c){var h,p=c.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,a);var d=o.getPerformArgs(c,n.block);p.each(function(g){g.perform(d)}),c.perform(d)&&(i=!0)}else v&&v.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}}),this.unfinished=i||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){"remain"!==t&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=j(),l=e.seriesType,u=e.getTargetSeries;function f(v){var c=v.uid,h=s.set(c,o&&o.get(c)||Ru({plan:mH,reset:_H,count:xH}));h.context={model:v,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,h)}e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f)},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||Ru({reset:pH});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=j(),u=e.seriesType,f=e.getTargetSeries,v=e.dirtyOnOverallProgress,c=!1;function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(c=!0,Ru({reset:dH,onDirty:yH})));y.context={model:d,dirtyOnOverallProgress:v},y.agent=o,y.__block=v,i._pipe(d,y)}Rt(!e.createOnAllSeries,""),u?a.eachRawSeriesByType(u,p):f?f(a,n).each(p):A(a.getSeries(),p),c&&o.dirty()},r.prototype._pipe=function(e,t){var n=this._pipelineMap.get(e.uid);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return ae(e)&&(e={overallReset:e,seriesType:bH(e)}),e.uid=Ji("stageHandler"),t&&(e.visualType=t),e},r}();function pH(r){r.overallReset(r.ecModel,r.api,r.payload)}function dH(r){return r.dirtyOnOverallProgress&&gH}function gH(){this.agent.dirty(),this.getDownstream().dirty()}function yH(){this.agent&&this.agent.dirty()}function mH(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function _H(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Fe(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?W(e,function(t,a){return cM(a)}):SH}var SH=cM(0);function cM(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function xH(r){return r.data.count()}function bH(r){ah=null;try{r(Zu,hM)}catch{}return ah}var ah,Zu={},hM={};function pM(r,e){for(var t in e.prototype)r[t]=et}pM(Zu,CC),pM(hM,lT),Zu.eachSeriesByType=Zu.eachRawSeriesByType=function(r){ah=r},Zu.eachComponent=function(r){"series"===r.mainType&&r.subType&&(ah=r.subType)};const dM=hH;var ne=B.darkColor,gM=ne.background,Xu=function(){return{axisLine
vendor: 7,030 bytes, line 1
1:{lineStyle:{color:ne.axisLine}},splitLine:{lineStyle:{color:ne.axisSplitLine}},splitArea:{areaStyle:{color:[ne.backgroundTint,ne.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ne.axisMinorSplitLine}},axisLabel:{color:ne.axisLabel},axisName:{}}},yM={label:{color:ne.secondary},itemStyle:{borderColor:ne.borderTint},dividerLineStyle:{color:ne.border}},mM={darkMode:!0,color:ne.theme,backgroundColor:gM,axisPointer:{lineStyle:{color:ne.border},crossStyle:{color:ne.borderShade},label:{color:ne.tertiary}},legend:{textStyle:{color:ne.secondary},pageTextStyle:{color:ne.tertiary}},textStyle:{color:ne.secondary},title:{textStyle:{color:ne.primary},subtextStyle:{color:ne.quaternary}},toolbox:{iconStyle:{borderColor:ne.accent50},feature:{dataView:{backgroundColor:gM,textColor:ne.primary,textareaColor:ne.background,textareaBorderColor:ne.border,buttonColor:ne.accent50,buttonTextColor:ne.neutral00}}},tooltip:{backgroundColor:ne.neutral20,defaultBorderColor:ne.border,textStyle:{color:ne.tertiary}},dataZoom:{borderColor:ne.accent10,textStyle:{color:ne.tertiary},brushStyle:{color:ne.backgroundTint},handleStyle:{color:ne.neutral00,borderColor:ne.accent20},moveHandleStyle:{color:ne.accent40},emphasis:{handleStyle:{borderColor:ne.accent50}},dataBackground:{lineStyle:{color:ne.accent30},areaStyle:{color:ne.accent20}},selectedDataBackground:{lineStyle:{color:ne.accent50},areaStyle:{color:ne.accent30}}},visualMap:{textStyle:{color:ne.secondary},handleStyle:{borderColor:ne.neutral30}},timeline:{lineStyle:{color:ne.accent10},label:{color:ne.tertiary},controlStyle:{color:ne.accent30,borderColor:ne.accent30}},calendar:{itemStyle:{color:ne.neutral00,borderColor:ne.neutral20},dayLabel:{color:ne.tertiary},monthLabel:{color:ne.secondary},yearLabel:{color:ne.secondary}},matrix:{x:yM,y:yM,backgroundColor:{borderColor:ne.axisLine},body:{itemStyle:{borderColor:ne.borderTint}}},timeAxis:Xu(),logAxis:Xu(),valueAxis:Xu(),categoryAxis:Xu(),line:{symbol:"circle"},graph:{color:ne.theme},gauge:{title:{color:ne.secondary},axisLine:{lineStyle:{color:[[1,ne.neutral05]]}},axisLabel:{color:ne.axisLabel},detail:{color:ne.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ne.background}},radar:function(){var r=Xu();return r.axisName={color:ne.axisLabel},r.axisLine.lineStyle.color=ne.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:ne.neutral20,textStyle:{color:ne.secondary}},emphasis:{itemStyle:{color:ne.neutral30}}}},sunburst:{itemStyle:{borderColor:ne.background}},map:{itemStyle:{borderColor:ne.border,areaColor:ne.neutral10},label:{color:ne.tertiary},emphasis:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}},select:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}}},geo:{itemStyle:{borderColor:ne.border,areaColor:ne.neutral10},emphasis:{label:{color:ne.primary},itemStyle:{areaColor:ne.highlight}},select:{label:{color:ne.primary},itemStyle:{color:ne.highlight}}}};mM.categoryAxis.splitLine.show=!1;const wH=mM;var TH=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(X(e)){var i=ga(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,v=0;v<o.length;v++){var c=o[v],h=u.lastIndexOf(c);if(h>0&&h===u.length-c.length){var p=u.slice(0,h);"data"!==p&&(t.mainType=p,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(v,c,h,p){return null==v[h]||c[p||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),zm=["symbol","symbolSize","symbolRotate","symbolOffset"],_M=zm.concat(["symbolKeepAspect"]),CH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),r.hasSymbolVisual){for(var a={},n={},i=!1,o=0;o<zm.length;o++){var s=zm[o],l=r.get(s);ae(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual(G({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),!e.isSeriesFiltered(r)){var u=Te(n);return{dataEach:i?function f(v,c){for(var h=r.getRawValue(c),p=r.getDataParams(c),d=0;d<u.length;d++){var g=u[d];v.setItemVisual(c,g,n[g](h,p))}}:null}}}}},AH={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(r.hasSymbolVisual&&!e.isSeriesFiltered(r))return{dataEach:r.getData().hasItemOption?function a(n,i){for(var o=n.getItemModel(i),s=0;s<_M.length;s++){var l=_M[s],u=o.getShallow(l,!0);null!=u&&n.setItemVisual(i,l,u)}}:null}}};function Gm(r,e,t){switch(t){case"color":return r.getItemVisual(e,"style")[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Ku(r,e){switch(e){case"color":return r.getVisual("style")[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function SM(r,e,t,a){switch(t){case"color":r.ensureUniqueItemVisual(e,"style")[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)}}function xM(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=G({},n),o.dispatchAction(G(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Ks(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var v=o.getData(),c=Oi(v,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:H(c)?v.getName(c[0]):v.getName(c),selected:X(l)?l:G({},l)})}})}function yo(r,e,t){for(var a;r&&(!e(r)||(a=r,!t));)r=r.__hostTarget||r.parent;return a}const Vr=new Cr;var bM={};function wM(r){return bM[r]}var TM={};function CM(r,e){TM[r]=e}var nh=ge();function AM(r){return nh(r).prepare}function qs(r){return nh(r).fullUpdate}var EH=Math.round(9*Math.random()),kH="function"==typeof Object.defineProperty,OH=function(){function r(){this._id="__ec_inner_"+EH++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return kH?Object.defineProperty(a,this._id,{value:t,enumerable:!1,
vendor: 10,488 bytes, line 1
1configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}();const NH=OH;var BH=we.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),VH=we.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),zH=we.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,v=Math.sin(u),c=Math.cos(u),h=.6*o,p=.7*o;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,2*Math.PI+u),r.bezierCurveTo(t+f-v*h,l+s+c*h,t,a-p,t,a),r.bezierCurveTo(t,a-p,t-f+v*h,l+s+c*h,t-f,l+s),r.closePath()}}),GH=we.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.x,i=e.y,o=e.width/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),HH={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},ih={};A({line:ct,rect:be,roundRect:be,square:be,circle:cn,diamond:VH,pin:zH,arrow:GH,triangle:BH},function(r,e){ih[e]=new r});var WH=we.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Wv(r,e,t),n=this.shape;return n&&"pin"===n.symbolType&&"inside"===e.position&&(a.y=t.y+.4*t.height),a},buildPath:function(r,e,t){var a=e.symbolType;if("none"!==a){var n=ih[a];n||(n=ih[a="rect"]),HH[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function UH(r,e){if("image"!==this.type){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||B.color.neutral00,t.lineWidth=2):"line"===this.shape.symbolType?t.stroke=r:t.fill=r,this.markRedraw()}}function lt(r,e,t,a,n,i,o){var l,s=0===r.indexOf("empty");return s&&(r=r.substr(5,1).toLowerCase()+r.substr(6)),(l=0===r.indexOf("image://")?Lm(r.slice(8),new fe(e,t,a,n),o?"center":"cover"):0===r.indexOf("path://")?Us(r.slice(7),{},new fe(e,t,a,n),o?"center":"cover"):new WH({shape:{symbolType:r,x:e,y:t,width:a,height:n}})).__isEmptyBrush=s,l.setColor=UH,i&&l.setColor(i),l}function js(r){return H(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function mo(r,e){if(null!=r)return H(r)||(r=[r,r]),[K(r[0],e[0])||0,K(Q(r[1],r[0]),e[1])||0]}function _o(r){return isFinite(r)}function Fm(r,e,t){for(var a="radial"===e.type?function ZH(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(o=o*a+t.x,s=s*n+t.y,l*=i),o=_o(o)?o:.5,s=_o(s)?s:.5,l=l>=0&&_o(l)?l:.5,r.createRadialGradient(o,s,0,o,s,l)}(r,e,t):function YH(r,e,t){var a=null==e.x?0:e.x,n=null==e.x2?1:e.x2,i=null==e.y?0:e.y,o=null==e.y2?0:e.y2;return e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=_o(a)?a:0,n=_o(n)?n:1,i=_o(i)?i:0,o=_o(o)?o:0,r.createLinearGradient(a,i,n,o)}(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function oh(r){return parseInt(r,10)}function Js(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[a]&&"auto"!==t[a])return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||oh(s[a])||oh(r.style[a]))-(oh(s[i])||0)-(oh(s[o])||0)||0}function Hm(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&function KH(r,e){return r&&"solid"!==r&&e>0?"dashed"===r?[4*e,2*e]:"dotted"===r?[e]:Ae(r)?[r]:H(r)?r:null:null}(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&1!==n&&(t=W(t,function(i){return i/n}),a/=n)}return[t,a]}var qH=new Sa(!0);function sh(r){var e=r.stroke;return!(null==e||"none"===e||!(r.lineWidth>0))}function MM(r){return"string"==typeof r&&"none"!==r}function lh(r){var e=r.fill;return null!=e&&"none"!==e}function DM(r,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function LM(r,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Wm(r,e,t){var a=ey(e.image,e.__image,t);if(ac(a)){var n=r.createPattern(a,e.repeat||"repeat");if("function"==typeof DOMMatrix&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Yl),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}var IM=["shadowBlur","shadowOffsetX","shadowOffsetY"],PM=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function RM(r,e,t,a,n){var i=!1;if(!a&&e===(t=t||{}))return!1;if(a||e.opacity!==t.opacity){er(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?zi.opacity:o}(a||e.blend!==t.blend)&&(i||(er(r,n),i=!0),r.globalCompositeOperation=e.blend||zi.blend);for(var s=0;s<IM.length;s++){var l=IM[s];(a||e[l]!==t[l])&&(i||(er(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(er(r,n),i=!0),r.shadowColor=e.shadowColor||zi.shadowColor),i}function EM(r,e,t,a,n){var i=e.style,o=a?null:t&&t.style||{};if(i===o)return!1;var s=RM(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(er(r,n),s=!0),MM(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(er(r,n),s=!0),MM(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(er(r,n),s=!0),r.globalAlpha=null==i.opacity?1:i.opacity),e.hasStroke()){var u=i.lineWidth/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(er(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<PM.length;f++){var v=PM[f],c=v[0];(a||i[c]!==o[c])&&(s||(er(r,n),s=!0),r[c]=i[c]||v[1])}return s}function kM(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function er(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function Um(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};So(r,e,t),Qs(r,t)}function So(r,e,t){var a=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1))return e.__dirty&=-2,void(e.__isRendered=!1);var n=e.__clipPaths,i=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!i||function XH(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}(n,i))&&(i&&(er(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),n&&n.length&&(er(r,t),r.save(),function e4(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),kM(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}(n,r,t),s=!0,t.prevElClipPaths=n)),t.allClipped)return e.__dirty&=-2,void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof we&&e.autoBatch&&function r4(r){var e=lh(r),t=sh(r);return!(r.lineDash||!(+e^+t)||e&&"string"!=typeof r.fill||t&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}(o);s||function t4(r,e){return r&&e?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&&!e)}(a,u.transform)?(er(r,t),kM(r,e)):f||er(r,t),e instanceof we?(1!==t.lastDrawType&&(l=!0,t.lastDrawType=1),EM(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),function jH(r,e,t,a,n){var i,o=sh(t),s=lh(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var v=e.path||qH,c=e.__dirty;if(!a){var h=t.fill,p=t.stroke,d=s&&!!h.colorStops,g=o&&!!p.colorStops,y=s&&!!h.image,m=o&&!!p.image,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0;(d||g)&&(w=e.getBoundingRect()),d&&(_=c?Fm(r,h,w):e.__canvasFillGradient,e.__canvasFillGradient=_),g&&(S=c?Fm(r,p,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),y&&(x=c||!e.__canvasFillPattern?Wm(r,h,e):e.__canvasFillPattern,e.__canvasFillPattern=x),m&&(b=c||!e.__canvasStrokePattern?Wm(r,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?r.fillStyle=_:y&&(x?r.fillStyle=x:s=!1),g?r.strokeStyle=S:m&&(b?r.strokeStyle=b:o=!1)}var T,M,C=e.getGlobalScale();v.setScale(C[0],C[1],e.segmentIgnoreThreshold),r.setLineDash&&t.lineDash&&(T=(i=Hm(e))[0],M=i[1]);var D=!0;(f||4&c)&&(v.setDPR(r.dpr),u?v.setContext(null):(v.setContext(r),D=!1),v.reset(),e.buildPath(v,e.shape,a),v.toStatic(),e.pathUpdated()),D&&v.rebuildPath(r,u?l:1),T&&(r.setLineDash(T),r.lineDashOffset=M),a?(n.batchFill=s,n.batchStroke=o):t.strokeFirst?(o&&LM(r,t),s&&DM(r,t)):(s&&DM(r,t),o&&LM(r,t)),T&&r.setLineDash([])}(r,e,o,f,t)):e instanceof mu?(3!==t.lastDrawType&&(l=!0,t.lastDrawType=3),EM(r,e,u,l,t),function QH(r,e,t){var a,n=t.text;if(null!=n&&(n+=""),n){r.font=t.font||Wa,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=(a=Hm(e))[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(sh(t)&&r.strokeText(n,t.x,t.y),lh(t)&&r.fillText(n,t.x,t.y)):(lh(t)&&r.fillText(n,t.x,t.y),sh(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}(r,e,o)):e instanceof At?(2!==t.lastDrawType&&(l=!0,t.lastDrawType=2),function $H(r,e,t,a,n){RM(r,e.style,t&&t.style,a,n)}(r,e,u,l,t),function JH(r,e,t){var a=e.__image=ey(t.image,e.__image,e,e.onload);if(a&&ac(a)){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=a.width,s=a.height),t.sWidth&&t.sHeight)r.drawImage(a,u=t.sx||0,f=t.sy||0,t.sWidth,t.sHeight,n,i,o,s);else if(t.sx&&t.sy){var u,f;
1r.drawImage(a,u=t.sx,f=t.sy,o-u,s-f,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}(r,e,o)):e.getTemporalDisplayables&&(4!==t.lastDrawType&&(l=!0,t.lastDrawType=4),function a4(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var o,s,i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}};for(o=e.getCursor(),s=a.length;o<s;o++)(l=a[o]).beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),So(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l;Qs(r,i);for(var u=0,f=n.length;u<f;u++){var l;(l=n[u]).beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),So(r,l,i),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}Qs(r,i),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&er(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function Qs(r,e){er(r,e),e.prevElClipPaths&&r.restore()}var Ym=new NH,zM=new ps(100),GM=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function $s(r,e){if("none"===r)return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n="svg"===a.painter.type;r.dirty&&Ym.delete(r);var i=Ym.get(r);if(i)return i;var o=ie(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return function l(u){for(var f=[t],v=!0,c=0;c<GM.length;++c){var h=o[GM[c]];if(null!=h&&!H(h)&&!X(h)&&!Ae(h)&&"boolean"!=typeof h){v=!1;break}f.push(h)}var p;if(v){p=f.join(",")+(n?"-svg":"");var d=zM.get(p);d&&(n?u.svgElement=d:u.image=d)}var C,g=HM(o.dashArrayX),y=function n4(r){if(!r||"object"==typeof r&&0===r.length)return[0,0];if(Ae(r)){var e=Math.ceil(r);return[e,e]}var t=W(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}(o.dashArrayY),m=FM(o.symbol),_=function i4(r){return W(r,function(e){return WM(e)})}(g),S=WM(y),x=!n&&St.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=function T(){for(var D=1,I=0,L=_.length;I<L;++I)D=vw(D,_[I]);var P=1;for(I=0,L=m.length;I<L;++I)P=vw(P,m[I].length);D*=P;var E=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}();x&&(x.width=w.width*t,x.height=w.height*t,C=x.getContext("2d")),function M(){C&&(C.clearRect(0,0,x.width,x.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,x.width,x.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(!(D<=0))for(var L=-S,P=0,E=0,R=0;L<w.height;){if(P%2==0){for(var k=E/2%m.length,O=0,V=0,z=0;O<2*w.width;){var F=0;for(I=0;I<g[R].length;++I)F+=g[R][I];if(F<=0)break;if(V%2==0){var U=.5*(1-o.symbolSize);ve(O+g[R][V]*U,L+y[P]*U,g[R][V]*o.symbolSize,y[P]*o.symbolSize,m[k][z/2%m[k].length])}O+=g[R][V],++z,++V===g[R].length&&(V=0)}++R===g.length&&(R=0)}L+=y[P],++E,++P===y.length&&(P=0)}function ve(ee,_e,te,ce,Ge){var Le=n?1:t,Ve=lt(Ge,ee*Le,_e*Le,te*Le,ce*Le,o.color,o.symbolKeepAspect);if(n){var We=a.painter.renderOneToVNode(Ve);We&&b.children.push(We)}else Um(C,Ve)}}(),v&&zM.put(p,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,Ym.set(r,s),r.dirty=!1,s}function FM(r){if(!r||0===r.length)return[["rect"]];if(X(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!X(r[t])){e=!1;break}if(e)return FM([r]);var a=[];for(t=0;t<r.length;++t)X(r[t])?a.push([r[t]]):a.push(r[t]);return a}function HM(r){if(!r||0===r.length)return[[0,0]];if(Ae(r))return[[e=Math.ceil(r),e]];for(var t=!0,a=0;a<r.length;++a)if(!Ae(r[a])){t=!1;break}if(t)return HM([r]);var n=[];for(a=0;a<r.length;++a)if(Ae(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else e=W(r[a],function(s){return Math.ceil(s)}),n.push(e.length%2==1?e.concat(e):e);return n}function WM(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2==1?2*e:e}var o4=du(function s4(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");s&&(a.ensureUniqueItemVisual(o,"style").decal=$s(s,e))});var n=a.getVisual("decal");n&&(a.getVisual("style").decal=$s(n,e))}})}),l4="6.1.0",u4={zrender:"6.1.0"},KM={PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},_t="__flagInMainProcess",fh="__mainProcessVersion",Lt="__pendingUpdate",Xm="__needsUpdateStatus",qM=/^[a-zA-Z0-9_]+$/,Km="__connectUpdateStatus";function JM(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!this.isDisposed())return $M(this,r,e)}}function QM(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return $M(this,r,e)}}function $M(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Cr.prototype[e].apply(r,t)}var eD=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e}(Cr),tD=eD.prototype;tD.on=QM("on"),tD.off=QM("off");var xo,qm,vh,pn,ch,jm,Jm,el,tl,rD,aD,Qm,nD,hh,iD,oD,zr,sD,rl,ph=function(r){function e(t,a,n){var i=r.call(this,new TH)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i.__v_skip=!0,i._dom=t,i[fh]=1,n.ssr&&nw(function(h){var p=ue(h),d=p.dataIndex;if(null!=d){var g=j();return g.set("series_index",p.seriesIndex),g.set("data_index",d),p.ssrType&&g.set("ssr_type",p.ssrType),g}});var f=i._zr=Vg(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Q(n.useDirtyRect,!1),useCoarsePointer:Q(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=th(q(f.flush,f),17),i._updateTheme(a),i._locale=function IG(r){if(X(r)){var e=xc[r.toUpperCase()]||{};return"ZH"===r||"EN"===r?re(e):de(re(e),re(xc[Rs]),!1)}return de(re(r),re(xc[Rs]),!1)}(n.locale||BT),i._coordSysMgr=new Ns;var v=i._api=iD(i);function c(h,p){return h.__prio-p.__prio}
1return bv(gh,c),bv(r0,c),i._scheduler=new dM(i,v,r0,gh),i._messageCenter=new eD,i._initEvents(),i.resize=q(i.resize,i),f.animation.on("frame",i._onframe,i),rD(f,i),aD(f,i),Wl(i),i}return N(e,r),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,a=this._model,n=this._api;if(sD(this),this[Lt]){var i=this[Lt].silent;this[_t]=!0,rl(this);try{xo(this),pn.update.call(this,null,this[Lt].updateParams)}catch(l){throw this[_t]=!1,this[Lt]=null,l}this._zr.flush(),this[_t]=!1,this[Lt]=null,el.call(this,i),tl.call(this,i)}else if(t.unfinished){var o=1;do{t.unfinished=!1;var s=St.getTime();t.performSeriesTasks(a),t.performDataProcessorTasks(a),jm(this,a),t.performVisualTasks(a),hh(this,this._model,n,"remain",{}),o-=St.getTime()-s}while(o>0&&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.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,a,n){if(!this[_t]){if(this._disposed)return;var i,o,s;if(se(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[_t]=!0,rl(this),!this._model||a){var l=new _F(this._api),u=this._theme,f=this._model=new CC;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},a0);var v={seriesTransition:s,optionChanged:!0};if(n)this[Lt]={silent:i,updateParams:v},this[_t]=!1,this.getZr().wakeUp();else{try{xo(this),pn.update.call(this,null,v)}catch(c){throw this[Lt]=null,this[_t]=!1,c}this._ssr||this._zr.flush(),this[Lt]=null,this[_t]=!1,el.call(this,i),tl.call(this,i)}}},e.prototype.setTheme=function(t,a){if(!this[_t]){if(this._disposed)return;var n=this._model;if(n){var i=a&&a.silent,o=null;this[Lt]&&(null==i&&(i=this[Lt].silent),o=this[Lt].updateParams,this[Lt]=null),this[_t]=!0,rl(this);try{this._updateTheme(t),n.setTheme(this._theme),xo(this),pn.update.call(this,{type:"setTheme"},o)}catch(s){throw this[_t]=!1,s}this[_t]=!1,el.call(this,i),tl.call(this,i)}}},e.prototype._updateTheme=function(t){X(t)&&(t=lD[t]),t&&((t=re(t))&&RC(t,!0),this._theme=t)},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||Ee.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr;return A(t.storage.getDisplayList(),function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){var n=this._model,i=[],o=this;A((t=t||{}).excludeComponents,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,function(l){l.group.ignore=!1}),s}},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var a="svg"===t.type,n=this.group,i=Math.min,o=Math.max,s=1/0;if(yh[n]){var l=s,u=s,f=-s,v=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();A(bo,function(_,S){if(_.group===n){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(re(t)),b=_.getDom().getBoundingClientRect();l=i(b.left,l),u=i(b.top,u),f=o(b.right,f),v=o(b.bottom,v),c.push({dom:x,left:b.left,top:b.top})}});var p=(f*=h)-(l*=h),d=(v*=h)-(u*=h),g=St.createCanvas(),y=Vg(g,{renderer:a?"svg":"canvas"});if(y.resize({width:p,height:d}),a){var m="";return A(c,function(_){m+='<g transform="translate('+(_.left-l)+","+(_.top-u)+')">'+_.dom+"</g>"}
1),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return t.connectedBackgroundColor&&y.add(new be({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),A(c,function(_){var S=new At({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,a,n){return ch(this,"convertToPixel",t,a,n)},e.prototype.convertToLayout=function(t,a,n){return ch(this,"convertToLayout",t,a,n)},e.prototype.convertFromPixel=function(t,a,n){return ch(this,"convertFromPixel",t,a,n)},e.prototype.containPixel=function(t,a){var i;if(!this._disposed)return A(bs(this._model,t),function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if("seriesModels"===l){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var i=bs(this._model,t,{defaultMainType:"series"}),s=i.seriesModel.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return null!=l?Gm(s,l,a):Ku(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;A(w4,function(n){var i=function(o){var u,s=t.getModel(),l=o.target;if("globalout"===n?u={}:l&&yo(l,function(d){var g=ue(d);if(g&&null!=g.dataIndex){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}if(g.eventData)return u=G({},g.eventData),!0},!0),u){var v=u.componentType,c=u.componentIndex;("markLine"===v||"markPoint"===v||"markArea"===v)&&(v="series",c=u.seriesIndex);var h=v&&null!=c&&s.getComponent(v,c),p=h&&t["series"===h.mainType?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:p},t.trigger(n,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)});var a=this._messageCenter;A(t0,function(n,i){a.on(i,function(o){t.trigger(i,o)})}),function MH(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Ks("map","selectchanged",e,n,a),Ks("pie","selectchanged",e,n,a)):"select"===a.fromAction?(Ks("map","selected",e,n,a),Ks("pie","selected",e,n,a)):"unselect"===a.fromAction&&(Ks("map","unselected",e,n,a),Ks("pie","unselected",e,n,a))})}(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&mw(this.getDom(),i0,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler
1=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete bo[a.id]}},e.prototype.resize=function(t){if(!this[_t]){if(this._disposed)return;this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),a){var n=a.resetOption("media"),i=t&&t.silent;this[Lt]&&(null==i&&(i=this[Lt].silent),n=!0,this[Lt]=null),this[_t]=!0,rl(this);try{n&&xo(this),pn.update.call(this,{type:"resize",animation:G({duration:0},t&&t.animation)})}catch(o){throw this[_t]=!1,o}this[_t]=!1,el.call(this,i),tl.call(this,i)}}},e.prototype.showLoading=function(t,a){if(!this._disposed&&(se(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),n0[t])){var n=n0[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var a=G({},t);return a.type=e0[t.type],a},e.prototype.dispatchAction=function(t,a){if(!this._disposed&&(se(a)||(a={silent:!!a}),dh[t.type]&&this._model)){if(this[_t])return void this._pendingActions.push(t);var n=a.silent;Jm.call(this,t,n);var i=a.flush;i?this._zr.flush():!1!==i&&Ee.browser.weChat&&this._throttledZrFlush(),el.call(this,n),tl.call(this,n)}},e.prototype.updateLabelLayout=function(){Vr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(!this._disposed){var a=t.seriesIndex;this.getModel().getSeriesByIndex(a).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function a(v){v.clearColorPalette(),v.eachSeries(function(c){c.clearColorPalette()})}function i(v){for(var c=[],h=v.currentStates,p=0;p<h.length;p++){var d=h[p];"emphasis"===d||"blur"===d||"select"===d||c.push(d)}v.selected&&v.states.select&&c.push("select"),2===v.hoverState&&v.states.emphasis?c.push("emphasis"):1===v.hoverState&&v.states.blur&&c.push("blur"),v.useStates(c)}function l(v,c){if(!v.preventAutoZ){var h=go(v);c.eachRendered(function(p){return Qc(p,h.z,h.zlevel),!0})}}function u(v,c){c.eachRendered(function(h){if(!Ls(h)){var p=h.getTextContent(),d=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(v,c){var h=v.getModel("stateAnimation"),p=v.isAnimationEnabled(),d=h.get("duration"),g=d>0?{duration:d,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Ls(y))return;if(y instanceof we&&function pG(r){var e=vT(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}xo=function(v){!function PH(r){nh(r).prepare={}}(v._model);var c=v._scheduler;c.restorePipelines(v._zr,v._model),c.prepareStageTasks(),qm(v,!0),qm(v,!1),c.plan()},qm=function(v,c){for(var h=v._model,p=v._scheduler,d=c?v._componentsViews:v._chartsViews,g=c?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_<d.length;_++)d[_].__alive=!1;function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var C="_ec_"+b.id+"_"+b.type,T=!w&&g[C];if(!T){var M=ga(b.type);(T=new(c?Xe.getClass(M.main,M.sub):ze.getClass(M.sub))).init(h,m),g[C]=T,d.push(T),y.add(T.group)}b.__viewId=T.__id=C,T.__alive=!0,T.__model=b,T.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!c&&p.prepareView(T,b,h,m)}for(c?h.eachComponent(function(b,w){"series"!==b&&S(w)}):h.eachSeries(S),_=0;_<d.length;){var x=d[_];x.__alive?_++:(!c&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),d.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},vh=function(v,c,h,p,d){var g=v._model;if(g.setUpdatePayload(h),p){var _,y=Kg(h,p,d),m=h.excludeSeriesId;null!=m&&(_=j(),A(Fe(m),function(x){var b=pt(x,null);null!=b&&_.set(b,!0)})),g&&g.eachComponent(y,function(x){if(!_||null==_.get(x.id))if(CT(h))if(x instanceof Ye)h.type===Xi&&!h.notBlur&&!x.get(["emp
1hasis","disabled"])&&function iG(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=Oi(n,e);i=(H(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ue(o);Cy(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);null!=f&&Cy(a,f,v,t)}}}(x,h,v._api);else{var w=My(x.mainType,x.componentIndex,h.name,v._api),T=w.dispatchers;h.type===Xi&&w.focusSelf&&!h.notBlur&&Ay(x.mainType,x.componentIndex,v._api),T&&A(T,function(M){h.type===Xi?ln(M):un(M)})}else Ly(h)&&x instanceof Ye&&(function lG(r,e){if(Ly(e)){var a=e.dataType,i=Oi(r.getData(a),e);H(i)||(i=[i]),r[e.type===dc?"toggleSelect":e.type===pc?"select":"unselect"](i,a)}}(x,h),wT(x),zr(v))},v),g&&g.eachComponent(y,function(x){_&&null!=_.get(x.id)||S(v["series"===p?"_chartsMap":"_componentsMap"][x.__viewId])},v)}else A([].concat(v._componentsViews).concat(v._chartsViews),S);function S(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,v._api,h)}},pn={prepareAndUpdate:function(v){xo(this),pn.update.call(this,v,v&&{optionChanged:null!=v.newOption})},update:function(v,c){var h=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){(function RH(r){nh(r).fullUpdate={}})(h),h.setUpdatePayload(v),y.restoreData(h,v),y.performSeriesTasks(h),g.create(h,p),Vr.trigger("coordsys:aftercreate",h,p),y.performDataProcessorTasks(h,v),jm(this,h),g.update(h,p),a(h),y.performVisualTasks(h,v);var m=h.get("backgroundColor")||"transparent";d.setBackgroundColor(m);var _=h.get("darkMode");null!=_&&"auto"!==_&&d.setDarkMode(_),Qm(this,h,p,v,c),Vr.trigger("afterupdate",h,p)}},updateTransform:function(v){var c=this,h=c._model,p=c._api;if(h){h.setUpdatePayload(v);var d=[];h.eachComponent(function(y,m){if(y!==ba){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,p,v);S&&S.update&&d.push(_)}else d.push(_)}});var g=j();h.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform&&!y.pipelineContext.progressiveRender){var S=m.updateTransform(y,h,p,v);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),c._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),hh(c,h,p,v,{},g),Vr.trigger("afterupdate",h,p)}},updateView:function(v){var c=this._model;c&&(c.setUpdatePayload(v),ze.markUpdateMethod(v,"updateView"),a(c),this._scheduler.performVisualTasks(c,v,{setDirty:!0}),Qm(this,c,this._api,v,{}),Vr.trigger("afterupdate",c,this._api))},updateVisual:function(v){var c=this,h=this._model;h&&(h.setUpdatePayload(v),h.eachSeries(function(p){p.getData().clearAllVisual()}),ze.markUpdateMethod(v,"updateVisual"),a(h),this._scheduler.performVisualTasks(h,v,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,d){if("series"!==p){var g=c.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,h,c._api,v)}}),h.eachSeries(function(p){c._chartsMap[p.__viewId].updateVisual(p,h,c._api,v)}),Vr.trigger("afterupdate",h,this._api))},updateLayout:function(v){pn.update.call(this,v)}},ch=function t(v,c,h,p,d){if(!v._disposed)for(var m,g=v._model,y=v._coordSysMgr.getCoordinateSystems(),_=bs(g,h),S=0;S<y.length;S++){var x=y[S];if(x[c]&&null!=(m=x[c](g,_,p,d)))return m}},jm=function(v,c){var h=v._chartsMap,p=v._scheduler;c.eachSeries(function(d){p.updateStreamModes(d,h[d.__viewId])})},Jm=function(v,c){var h=this,p=this.getModel(),g=v.escapeConnect,y=dh[v.type],m=(y.update||"update").split(":"),_=m.pop(),S=null!=m[0]&&ga(m[0]);this[_t]=!0,rl(this);var x=[v],b=!1;v.batch&&(b=!0,x=W(v.batch,function(R){return(R=ie(G({},R),v)).batch=null,R}));var C,w=[],T=[],M=y.nonRefinedEventType,D=Ly(v),I=CT(v);if(I&&bT(this._api),A(x,function(R){var k=y.action(R,p,h._api);if(y.refineEvent?T.push(k):C=k,(C=C||G({},R)).type=M,w.push(C),I){var O=Xg(v),F=O.mainTypeSpecified?O.queryOptionMap.keys()[0]:"series";vh(h,_,R,F),zr(h)}else D?(vh(h,_,R,"series"),zr(h)):S&&vh(h,_,R,S.main,S.sub)}),"none"!==_&&!I&&!D&&!S)try{this[Lt]?(xo(this),pn.update.call(this,v),this[Lt]=null):pn[_].call(this,v)}catch(R){throw this[_t]=!1,R}if(C=b?{type:M,escapeConnect:g,batch:w}:w[0],this[_t]=!1,!c){var L=void 0;if(y.refineEvent){var P=y.refineEvent(T,v,p,this._api).eventContent;Rt(se(P)),(L=ie({type:y.refinedEventType},P)).fromAction=v.type,L.fromActionPayload=v,L.escapeConnect=!0}var E=this._messageCenter;E.trigger(C.type,C),L&&E.trigger(L.type,L)}}
vendor: 5,985 bytes, line 1
1,el=function(v){for(var c=this._pendingActions;c.length;){var h=c.shift();Jm.call(this,h,v)}},tl=function(v){!v&&this.trigger("updated")},rD=function(v,c){v.on("rendered",function(h){c.trigger("rendered",h),!v.animation.isFinished()||c[Lt]||c._scheduler.unfinished||c._pendingActions.length?v.refresh():c.trigger("finished")})},aD=function(v,c){v.on("mouseover",function(h){var d=yo(h.target,xu);d&&(function oG(r,e,t){var a=ue(r),n=My(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers;i?(n.focusSelf&&Ay(a.componentMainType,a.componentIndex,t),A(i,function(s){return gT(s,e)})):(Cy(a.seriesIndex,a.focus,a.blurScope,t),"self"===a.focus&&Ay(a.componentMainType,a.componentIndex,t),gT(r,e))}(d,h,c._api),zr(c))}).on("mouseout",function(h){var d=yo(h.target,xu);d&&(function sG(r,e,t){bT(t);var a=ue(r),n=My(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?A(n,function(i){return yT(i,e)}):yT(r,e)}(d,h,c._api),zr(c))}).on("click",function(h){var d=yo(h.target,function(m){return null!=ue(m).dataIndex},!0);if(d){var g=d.selected?"unselect":"select",y=ue(d);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})},Qm=function(v,c,h,p,d){(function n(v){var c=[],h=[],p=!1;if(v.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();p=p||!!b,("series"===m?h:c).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),p){var g,y,d=c.concat(h);bv(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(d,function(m){var _=v.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;null!=g&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}})(c),nD(v,c,h,p,d),A(v._chartsViews,function(g){g.__alive=!1}),hh(v,c,h,p,d),A(v._chartsViews,function(g){g.__alive||g.remove(c,h)})},nD=function(v,c,h,p,d,g){A(g||v._componentsViews,function(y){var m=y.__model;u(0,y),y.render(m,c,h,p),l(m,y),f(m,y)})},hh=function(v,c,h,p,d,g){var y=v._scheduler;d=G(d||{},{updatedSeries:c.getSeries()}),Vr.trigger("series:beforeupdate",c,h,d);var m=!1;c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,p),u(0,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),function s(v,c){var h=v.get("blendMode")||null;c.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}(_,S),wT(_)}),y.unfinished=m||y.unfinished,Vr.trigger("series:layoutlabels",c,h,d),Vr.trigger("series:transition",c,h,d),c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];l(_,S),f(_,S)}),function o(v,c){var h=v._zr;if("canvas"===h.painter.type){var d=0;h.storage.traverse(function(y){y.isGroup||d++});var g=d>Q(c.get("hoverLayerThreshold"),vC.hoverLayerThreshold)&&!Ee.node&&!Ee.worker;(v._usingTHL||g)&&(c.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=v._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var S=_.states.emphasis;S&&S.hoverLayer!==Ws&&(S.hoverLayer=g?XA:ZA)})}}),v._usingTHL=g)}}(v,c),Vr.trigger("series:afterupdate",c,h,d)},zr=function(v){v[Xm]=!0,v.getZr().wakeUp()},rl=function(v){v[fh]=(v[fh]+1)%1e6},sD=function(v){v[Xm]&&(v.getZr().storage.traverse(function(c){Ls(c)||i(c)}),v[Xm]=!1)},iD=function(v){return new(function(c){function h(){return null!==c&&c.apply(this,arguments)||this}return N(h,c),h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(null!=d)return v._model.getComponent(d.mainType,d.index);p=p.parent}},h.prototype.enterEmphasis=function(p,d){ln(p,d),zr(v)},h.prototype.leaveEmphasis=function(p,d){un(p,d),zr(v)},h.prototype.enterBlur=function(p){mT(p),zr(v)},h.prototype.leaveBlur=function(p){Ty(p),zr(v)},h.prototype.enterSelect=function(p){_T(p),zr(v)},h.prototype.leaveSelect=function(p){ST(p),zr(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(p){return v.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return v.getViewOfSeriesModel(p)},h.prototype.getECUpdateCycleVersion=function(){return v[fh]},h.prototype.usingTHL=function(){return v._usingTHL},h}(lT))(v)},oD=function(v){function c(h,p){for(var d=0;d<h.length;d++)h[d][Km]=p}A(e0,function(h,p){v._messageCenter.on(p,function(d){if(yh[v.group]&&0!==v[Km]){if(d&&d.escapeConnect)return;var g=v.makeActionFromEvent(d),y=[];A(bo,function(m){m!==v&&m.group===v.group&&y.push(m)}),c(y,0),A(y,function(m){1!==m[Km]&&m.dispatchAction(g)}),c(y,2)}})})}}(),e}(Cr),$m=ph.prototype;$m.on=JM("on"),$m.off=JM("off"),$m.one=function(r,e,t){var a=this;this.on.call(this,r,function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)},t)};var w4=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],dh={},e0={},t0={},r0=[],a0=[],gh=[],lD={},n0={},bo={},yh={},T4=+new Date-0,C4=+new Date-0,i0="_echarts_instance_";function A4(r,e,t){var a=!(t&&t.ssr);if(a){var n=o0(r);if(n)return n}var i=new ph(r,e,t);return i.id="ec_"+T4++,bo[i.id]=i,a&&mw(r,i0,i.id),oD(i),Vr.trigger("afterinit",i),i}function M4(r){if(H(r)){var e=r;r=null,A(e,function(t){null!=t.group&&(r=t.group)}),r=r||"g_"+C4++,A(e,function(t){t.group=r})}return yh[r]=!0,r}function uD(r){yh[r]=!1}var D4=uD;function L4(r){X(r)?r=bo[r]:r instanceof ph||(r=o0(r)),r instanceof ph&&!r.isDisposed()&&r.dispose()}function o0(r){return bo[function Yz(r,e){return r.getAttribute?r.getAttribute(e):r[e]}(r,i0)]}function I4(r){return bo[r]}function s0(r,e){lD[r]=e}function l0(r){pe(a0,r)<0&&a0.push(r)}function u0(r,e){f0(r0,r,e,2e3)}function fD(r){mh("afterinit",r)}function vD(r){mh("afterupdate",r)}function mh(r,e){Vr.on(r,e)}function ra(r,e,t){var a,n,i,o,s;function l(f){return f.toLowerCase()}ae(e)&&(t=e,e=""),se(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRef
1inedEvent,t||(t=r.action),i=r.refineEvent):(a=r,n=e),n=l(n||a);var u=i?l(a):n;dh[a]||(Rt(qM.test(a)&&qM.test(n)),i&&Rt(n!==a),dh[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:i},t0[n]=1,i&&s&&(t0[u]=1),e0[u]=a)}function cD(r,e){Ns.register(r,e)}function P4(r){var e=Ns.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function R4(r,e){CM(r,e)}function hD(r,e){f0(gh,r,e,1e3,"layout")}function Qn(r,e){f0(gh,r,e,3e3,"visual")}var pD=[];function f0(r,e,t,a,n,i){if((ae(e)||se(e))&&(t=e,e=a),!(pe(pD,t)>=0)){pD.push(t);var o=dM.wrapStageHandler(t,n);o.__prio=e,o.__raw=t,r.push(o)}}function v0(r,e){n0[r]=e}function E4(r){Vx({createCanvas:r})}function dD(r,e,t){var a=wM("registerMap");a&&a(r,e,t)}function k4(r){var e=wM("getMap");return e&&e(r)}var gD=function $F(r){var e=(r=re(r)).type;e||Oe("");var a=e.split(":");2!==a.length&&Oe("");var n=!1;"echarts"===a[0]&&(e=a[1],n=!0),r.__isBuiltIn=n,tA.set(e,r)};function c0(r,e,t,a){return{eventContent:{selected:uG(t),isFromClick:e.isFromClick||!1}}}Qn(2e3,uH),Qn(4500,fH),Qn(4500,vH),Qn(2e3,CH),Qn(4500,AH),Qn(7e3,o4),l0(RC),u0(900,MF),v0("default",function cH(r,e){ie(e=e||{},{text:"loading",textColor:B.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:B.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new oe,a=new be({style:{fill:e.maskColor}
vendor: 15,946 bytes, line 1
1,zlevel:e.zlevel,z:1e4});t.add(a);var o,n=new Me({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new be({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return t.add(i),e.showSpinner&&((o=new Uc({shape:{startAngle:-rh/2,endAngle:-rh/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*rh/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*rh/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-2*l-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:2*l,height:2*l}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}),ra({type:Xi,event:Xi,update:Xi},et),ra({type:hc,event:hc,update:hc},et),ra({type:pc,event:xy,update:pc,action:et,refineEvent:c0,publishNonRefinedEvent:!0}),ra({type:Sy,event:xy,update:Sy,action:et,refineEvent:c0,publishNonRefinedEvent:!0}),ra({type:dc,event:xy,update:dc,action:et,refineEvent:c0,publishNonRefinedEvent:!0}),s0("default",{}),s0("dark",wH);var O4={},yD=[],N4={registerPreprocessor:l0,registerProcessor:u0,registerPostInit:fD,registerPostUpdate:vD,registerUpdateLifecycle:mh,registerAction:ra,registerCoordinateSystem:cD,registerLayout:hD,registerVisual:Qn,registerTransform:gD,registerLoading:v0,registerMap:dD,registerImpl:function LH(r,e){bM[r]=e},PRIORITY:KM,ComponentModel:Ce,ComponentView:Xe,SeriesModel:Ye,ChartView:ze,registerComponentModel:function(r){Ce.registerClass(r)},registerComponentView:function(r){Xe.registerClass(r)},registerSeriesModel:function(r){Ye.registerClass(r)},registerChartView:function(r){ze.registerClass(r)},registerCustomSeries:function(r,e){CM(r,e)},registerSubTypeDefaulter:function(r,e){Ce.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){rw(r,e)}};function me(r){H(r)?A(r,function(e){me(e)}):pe(yD,r)>=0||(yD.push(r),ae(r)&&(r={install:r}),r.install(N4))}function qu(r){return null==r?0:r.length||1}function mD(r){return r}var B4=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||mD,this._newKeyGetter=n||mD,this.context=i,this._diffModeMultiple="multiple"===o}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.updateManyToMany=function(e){return this._updateManyToMany=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={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=qu(l);if(u>1){var f=l.shift();1===l.length&&(a[s]=l[0]),this._update&&this._update(f,o)}else 1===u?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._new,a={},n={},i=[],o=[];this._initIndexMap(this._old,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],v=qu(u),c=qu(f);if(v>1&&1===c)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(1===v&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(1===v&&1===c)this._update&&this._update(f,u),n[l]=null;else if(v>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(v>1)for(var h=0;h<v;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=qu(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else 1===o&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),t){var l=t[s],u=qu(l);0===u?(t[s]=o,i&&a.push(s)):1===u?t[s]=[l,o]:l.push(o)}}},r}();const dn=B4;var V4=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function h0(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function _h(r){return"category"===r?"ordinal":"time"===r?"time":"float"}const Sh=function(){return function r(e){this.otherDims={},null!=e&&G(this,e)}}();var H4=ge(),W4={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},_D=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=xD(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Q(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=NC(this.source),a=!bD(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&null!=l&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=W4[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source;return{dimensions:i,hash:[h.seriesLayoutBy,h.startIndex,n].join("$$")}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function SD(r){return r instanceof _D}function p0(r){for(var e=j(),t=0;t<(r||[]).length;t++){var a=r[t],n=se(a)?a.name:a;null!=n&&null==e.get(n)&&e.set(n,t)}return e}function xD(r){var e=H4(r);return e.dimNameMap||(e.dimNameMap=p0(r.dimensionsDefine))}function bD(r){return r>30}var TD,xh,Ju,Qu,d0,$u,g0,ju=se,$n=W,U4=typeof Int32Array>"u"?Array:Int32Array,Z4=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],X4=["_approximateExtent"],K4=function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;SD(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var v=a[f],c=X(v)?new Sh({name:v}):v instanceof Sh?v:new Sh(v),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(h),i[h]=c,null!=u[h]&&(l=!0),c.createInvertedIndices&&(s[h]=[]),n&&(c.storeDimIndex=f),0===p.itemName&&(this._nameDimIdx=c.storeDimIndex),0===p.itemId&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=j();A(o,function(g){d.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(null!=a)return a;var n=this._schema.getSourceDimension(t);return n?n.name:void 0},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Ae(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(null==t)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var i,n=this;if(e instanceof gm&&(i=e),!i){var o=this.dimensions,s=lm(e)||It(e)?new HC(e,o.length):e;i=new gm;var l=$n(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=function z4(r,e){var t={},a=t.encode={},n=j(),i=[],o=[],s={};A(r.dimensions,function(c){var h=r.getDimensionInfo(c),p=h.coordDim;if(p){var d=h.coordDimIndex;h0(a,p)[d]=c,h.isExtraCoord||(n.set(p,1),function G4(r){return!("ordinal"===r||"time"===r)}(h.type)&&(i[0]=c),h0(s,p)[d]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(c)}nT.each(function(g,y){var m=h0(a,y),_=h.otherDims[y];null!=_&&!1!==_&&(m[_]=h.name)})});var l=[],u={};n.each(function(c,h){var p=a[h];u[h]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=W(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var v=a.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new V4(s,e),t}(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++)this._nameList[s]=t[s-n],o&&g0(this,s)},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==on&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===mr&&!n.pure)for(var u=[],f=e;f<t;f++){var v=n.getItem(f,u);if(!this.hasItemOption&&Rz(v)&&(this.hasItemOption=!0),v){var c=v.name;null==i[f]&&null!=c&&(i[f]=pt(c,null));var h=v.id;null==o[f]&&null!=h&&(o[f]=pt(h,null))}}if(this._shouldMakeIdFromName())for(f=e;f<t;f++)g0(this,f);TD(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},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){ju(e)?G(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return null==a&&null!=this._nameDimIdx&&(a=Ju(this,this._nameDimIdx,t)),null==a&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return xh(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._dimInfos[e];if(n)return this._store.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._dimInfos[e];if(n)return this._store.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return H(e)?n.getValues($n(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a&&a[t];return null==n||isNaN(n)?-1:n},r.prototype.each=function(e,t,a){ae(e)&&(a=t,t=e,e=[]);var n=a||this,i=$n(Qu(e),this._getStoreDimIndex,this);this._store.each(i,n?q(t,n):t)},r.prototype.filterSelf=function(e,t,a){ae(e)&&(a=t,t=e,e=[]);var n=a||this,i=$n(Qu(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?q(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Te(e),i=[];return A(n,function(o){var s=t._getStoreDimIndex(o);a[s]=e[o],i.push(s)}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){ae(e)&&(a=t,t=e,e=[]);var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a=a||this),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=$n(Qu(e),this._getStoreDimIndex,this),s=$u(this);return s._store=this._store.map(o,i?q(t,i):t),s},r.prototype.modify=function(e,t,a,n){var o=a||n||this,s=$n(Qu(e),this._getStoreDimIndex,this);this._store.modify(s,o?q(t,o):t)},r.prototype.downSample=function(e,t,a,n){var i=$u(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=$u(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=$u(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new De(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;
vendor: 4,933 bytes, line 1
1return new dn(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return xh(e,a)},function(a){return xh(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||{},ju(e)?G(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e];return(a&&a[t])??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return null==i&&(H(i=this.getVisual(t))?i=i.slice():ju(i)&&(i=G({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,ju(t)?G(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){ju(e)?G(this._layout,e):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?G(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){yy(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,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,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:$n(this.dimensions,this._getDimInfo,this),this.hostModel)),d0(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];ae(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(gv(arguments)))})},r.internalField=(TD=function(e){var t=e._invertedIndicesMap;A(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new U4(o.categories.length);for(var l=0;l<a.length;l++)a[l]=-1;for(l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Ju=function(e,t,a){return pt(e._getCategory(t,a),null)},xh=function(e,t){var a=e._idList[t];return null==a&&null!=e._idDimIdx&&(a=Ju(e,e._idDimIdx,t)),null==a&&(a="e\0\0"+t),a},Qu=function(e){return H(e)||(e=null!=e?[e]:[]),e},$u=function(e){var t=new r(e._schema?e._schema:$n(e.dimensions,e._getDimInfo,e),e.hostModel);return d0(t,e),t},d0=function(e,t){A(Z4.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,A(X4,function(a){e[a]=re(t[a])}),e._calculationInfo=G({},t._calculationInfo)},void(g0=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(null==s&&null!=i&&(a[t]=s=Ju(e,i,t)),null==l&&null!=o&&(n[t]=l=Ju(e,o,t)),null==l&&null!=s){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}})),r}();const Xt=K4;function q4(r,e){return al(r,e).dimensions}function al(r,e){lm(r)||(r=fm(r));var t=(e=e||{}).coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=j(),i=[],o=function j4(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(i){var o;se(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&bD(o),l=a===r.dimensionsDefine,u=l?xD(r):p0(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var v=j(f),c=new rA(o),h=0;h<c.length;h++)c[h]=-1;function p(T){var M=c[T];if(M<0){var D=a[T],I=se(D)?D:{name:D},L=new Sh,P=I.name;return null!=P&&null!=u.get(P)&&(L.name=L.displayName=P),null!=I.type&&(L.type=I.type),null!=I.displayName&&(L.displayName=I.displayName),c[T]=i.length,L.storeDimIndex=T,i.push(L),L}return i[M]}if(!s)for(h=0;h<o;h++)p(h);v.each(function(T,M){var D=Fe(T).slice();if(1===D.length&&!X(D[0])&&D[0]<0)v.set(M,!1);else{var I=v.set(M,[]);A(D,function(L,P){var E=X(L)?u.get(L):L;null!=E&&E<o&&(I[P]=E,g(p(E),M,P))})}});var d=0;function g(T,M,D){null!=nT.get(M)?T.otherDims[M]=D:(T.coordDim=M,T.coordDimIndex=D,n.set(M,!0))}A(t,function(T){var M,D,I,L;if(X(T))M=T,L={};else{M=(L=T).name;var P=L.ordinalMeta;L.ordinalMeta=null,(L=G({},L)).ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var E=v.get(M);if(!1!==E){if(!(E=Fe(E)).length)for(var R=0;R<(D&&D.length||1);R++){for(;d<o&&null!=p(d).coordDim;)d++;d<o&&E.push(d++)}A(E,function(k,O){var V=p(k);if(l&&null!=L.type&&(V.type=L.type),g(ie(V,L),M,O),null==V.name&&D){var z=D[O];!se(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}I&&ie(V.otherDims,I)})}});var y=e.generateCoord,m=e.generateCoordCount,_=null!=m;m=y?m||1:0;var S=y||"value";function x(T){null==T.name&&(T.name=T.coordDim)}if(s)A(i,function(T){x(T)}
1),i.sort(function(T,M){return T.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var w=p(b);null==w.coordDim&&(w.coordDim=J4(S,n,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),null==w.type&&(1===pC(r,b)||w.isExtraCoord&&(null!=w.otherDims.itemName||null!=w.otherDims.seriesName))&&(w.type="ordinal")}return tc(i,function(T){return T.name},function(T,M){M>0&&(T.name=T.name+(M-1))}),new _D({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function J4(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var Q4=function(){return function r(e){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=e}}(),eW={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",at).models[0],i=r.getReferringComponents("yAxis",at).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),nl(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),nl(i)&&(a.set("y",i),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",at).models[0];e.coordSysDims=["single"],t.set("single",n),nl(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",at).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),nl(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),nl(o)&&(a.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),nl(u)&&(a.set(f,u),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,a){var n=r.getReferringComponents("matrix",at).models[0];e.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",i),t.set("y",o),a.set("x",i),a.set("y",o)}};function nl(r){return"category"===r.get("type")}function CD(r,e,t){var i,o,s,a=(t=t||{}).byIndex,n=t.stackedCoordDimension;!function tW(r){return!SD(r.schema)}(e)?(i=(o=e.schema).dimensions,s=e.store):i=e;var u,f,v,c,l=!(!r||!r.get("stack")),h=!0;function p(S){return"ordinal"!==S.type&&"time"!==S.type}if(A(i,function(S,x){X(S)&&(i[x]=S={name:S}),p(S)||(h=!1)}),A(i,function(S,x){l&&!S.isExtraCoord&&(!a&&!u&&S.ordinalMeta&&(u=S),!f&&p(S)&&(!h||"x"!==S.coordDim&&"angle"!==S.coordDim)&&(!n||n===S.coordDim)&&(f=S))}),f&&!a&&!u&&(a=!0),f){v="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,g=f.type,y=0;A(i,function(S){S.coordDim===d&&y++});var m={name:v,coordDim:d,coordDimIndex:y,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},_={name:c,coordDim:c,coordDimIndex:y+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(c,g),_.storeDimIndex=s.ensureCalculationDimension(v,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(_)):(i.push(m),i.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:v}}function gn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function y0(r,e){return gn(r,e)?r.getCalculationInfo("stackResultDimension"):e}const Ca=function nW(r,e,t){t=t||{};var n,a=e.getSourceManager(),i=!1;r?(i=!0,n=fm(r)):i=(n=a.getSource()).sourceFormat===mr;var o=function $4(r){var e=r.get("coordinateSystem"),t=new Q4(e),a=eW[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}(e),s=function rW(r,e){var n,t=r.get("coordinateSystem"),a=Ns.get(t);return e&&e.coordSysDims&&(n=W(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=_h(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(e,o),l=t.useEncodeDefaulter,u=ae(l)?l:l?Se(hC,s,e):null,v=al(n,{coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i}),c=function aW(r,e,t){var a,n;return t&&A(r,function(i,o){var l=t.categoryAxisMap.get(i.coordDim);l&&(null==a&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),null!=i.otherDims.itemName&&(n=!0)}),!n&&null!=a&&(r[a].otherDims.itemName=0),a}(v.dimensions,t.createInvertedIndices,o),h=i?null:a.getSharedDataStore(v),p=CD(e,{schema:v,store:h}),d=new Xt(v,e);d.setCalculationInfo(p);var g=null!=c&&function iW(r){if(r.sourceFormat===mr){var e=function oW(r){for(var e=0;e<r.length&&null==r[e];)e++;return r[e]}(r.data||[]);return!H(xs(e))}}(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(i?n:h,null,g),d};var AD=function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();rc(AD);const Aa=AD;var sW=0,lW=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++sW,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&W(a,uW);return new r({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!X(e)&&!a)return e;if(a&&!this._deduplication)return this.categories[t=this.categories.length]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return null==(t=n.get(e))&&(a?(this.categories[t=this.categories.length]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},r}();function uW(r){return se(r)&&null!=r.value?r.value:r+""}const ef=lW;
vendor: 6,143 bytes, line 1
1var MD=Te({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function m0(r,e,t){var a;r=r||{};var n=ot();if(n){var i=n.createBreakScaleMapper(e,t);i.hasBreaks()&&(A(MD,function(o){i[o]&&(r[o]=q(i[o],i))}),a=i)}return null==a&&x0(r,t),{brk:a,mapper:r}}function _0(r,e){A(MD,function(t){r[t]=e[t]})}function S0(r,e){r.freeze=et}function rf(r){return r.getExtentUnsafe(0,2)}function af(r,e){return r.getExtentUnsafe(1,e)||r.getExtentUnsafe(0,e)}function bh(r){var e=r.getExtentUnsafe(0,3);return e[1]-e[0]}function x0(r,e){var t=r||{},a=[];return t._extents=a,a[0]=e?e.slice():[1/0,-1/0],G(t,cW),t}var cW={needTransform:function(){return!1},normalize:function(r){var e=this._extents[1]||this._extents[0];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[1]||this._extents[0];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=af(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){LD(this._extents,0,r,e)},setExtent2:function(r,e,t){var a=this._extents;a[r]||(a[r]=a[0].slice()),LD(a,r,e,t)},freeze:function(){}};function LD(r,e,t,a){Ni(t,a)&&(r[e][0]=t,r[e][1]=a)}function PD(r){return nf(r)||ol(r)}function nf(r){return"interval"===r.type}function il(r){return"time"===r.type}function ol(r){return"log"===r.type}function Kt(r){return"ordinal"===r.type}function gW(r){var e=Jv(r),t=Ii(10,e),a=va(r/t);return a?2===a?a=3:3===a?a=5:a*=2:a=1,Ie(a*t,-e)}function ei(r){return ca(r)+2}function wh(r,e){return Pi(r)/Pi(e)}function b0(r,e,t){var a=t&&t.lookup;if(a)for(var n=0;n<a.from.length;n++)if(r===a.from[n])return a.to[n];return Ii(e,r)}function RD(r,e,t){var a=r.slice();if(a[0]===a[1]){var n=t&&t.ctnShp;if(0!==a[0]){var i=rt(a[0]);e[1]||(a[1]+=i/2),a[0]-=i/2}else n&&(a[0]=-1),a[1]=1}return(!rn(a[0])||!rn(a[1]))&&(a[0]=0,a[1]=1),a[1]<a[0]&&a.reverse(),a}function Th(r,e){return va(xe(r=r||e,1))}function ED(r,e,t){var a=rf(r),n=a[0],i=r.count(),o=Math.max((e||0)+1,1);0!==n&&o>1&&i/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==a[0]&&l(a[0],!0,!0);for(var s=n;s<=a[1];s+=o)l(s,!1,s===a[0]||s===a[1]);function l(u,f,v){t({value:u,offInterval:f},v)}s-o!==a[1]&&l(a[1],!0,!0)}var kD=function(r){function e(t){var a=r.call(this)||this;a.type="ordinal",a.parse=e.parse,_0(a,e.decoratedMethods);var n=t.ordinalMeta;n||(n=new ef({})),H(n)&&(n=new ef({categories:W(n,function(o){return se(o)?o.value:o})})),a._ordinalMeta=n;var i=m0(null,null,t.extent||[0,n.categories.length-1]);return a._mapper=i.mapper,S0(a),a}return N(e,r),e.parse=function(t){return null==t?t=NaN:X(t)?null==(t=this._ordinalMeta.getOrdinal(t))&&(t=NaN):t=va(t),t},e.prototype.getTicks=function(){var t=[];return ED(this,0,function(a){t.push(a)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Be(s,a.length);o<l;++o)i[n[o]=a[o]]=o;for(var f=0;o<s;++o){for(;null!=i[f];)f++;n[o]=f,i[f]=o}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return null==n?"":n+""}},e.prototype.count=function(){var t=rf(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(va(this._mapper.scale(t)))},transformIn:function(t,a){return this._mapper.transformIn(this._getTickNumber(t),a)},transformOut:function(t,a){return this.getRawOrdinalNumber(this._mapper.transformOut(t,a))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,a){return this._mapper.getExtentUnsafe(t,a)},setExtent:function(t,a){return this._mapper.setExtent(t,a)},setExtent2:function(t,a,n){return this._mapper.setExtent2(t,a,n)}},e}(Aa);Aa.registerClass(kD);const Ch=kD;function w0(r,e,t,a){for(var n=r.getTicks({expandToNicedExtent:!0}),i=[],o=r.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!u.break&&!l.break){for(var f=0,v=[],h=(l.value-u.value)/e,p=ei(h);f<e-1;){var d=Ie(u.value+(f+1)*h,p);d>o[0]&&d<o[1]&&v.push(d),f++}var g=ot();g&&g.pruneTicksByBreak("auto",v,t,function(y){return y},a,o),i.push(v)}}return i}var OD=function(r){function e(t){var a=r.call(this)||this;a.type="interval",a.parse=e.parse;var i=m0(a,VT(a,t=t||{}),null);return a.brk=i.brk,a._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},a}return N(e,r),e.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.getConfig=function(){return re(this._cfg)},e.prototype.setConfig=function(t){var a=rf(this);this._cfg=t=re(t),null==t.niceExtent&&(t.niceExtent=a.slice()),null==t.intervalPrecision&&(t.intervalPrecision=ei(t.interval))},e.prototype.getTicks=function(t){t=t||{};var a=this._cfg,n=a.interval,i=rf(this),o=a.niceExtent,s=a.intervalPrecision,l=ot(),u=this.brk,f=l&&u,v=[];if(!n)return v;if("only_break"===t.breakTicks&&f)return l.addBreaksToTicks(v,u.breaks,i),v;i[0]<o[0]&&v.push({value:t.expandToNicedExtent?Ie(o[0]-n,s):i[0]});for(var h=function(_,S){return va((S-_)/n)},p=a.intervalCount,d=o[0],g=0;;g++){if(null==p){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(g>p)break;d=Be(d,o[1]),g===p&&(d=o[1])}if(v.push({value:d}),d=Ie(d+n,s),u){var y=u.calcNiceTickMultiple(d,h);
vendor: 1,662 bytes, line 1
1y>=0&&(d=Ie(d+y*n,s))}if(v.length>0&&d===v[v.length-1].value)break;if(v.length>3e3)return[]}var m=v.length?v[v.length-1].value:o[1];return i[1]>m&&v.push({value:t.expandToNicedExtent?Ie(m+n,s):i[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,v,u.breaks,function(_){return _.value},a.interval,i),f&&"none"!==t.breakTicks&&l.addBreaksToTicks(v,u.breaks,i),v},e.prototype.getMinorTicks=function(t){return w0(this,t,bc(this),this._cfg.interval)},e.prototype.getLabel=function(t,a){if(null==t)return"";var n=a&&a.precision;return null==n?n=ca(t.value)||0:"auto"===n&&(n=this._cfg.intervalPrecision),Ky(Ie(t.value,n,!0))},e.type="interval",e}(Aa);Aa.registerClass(OD);const wo=OD;var ND=function(r){function e(t){var a=r.call(this)||this;a.type="time",a.parse=e.parse,a._locale=t.locale,a._useUTC=t.useUTC,a._interval=0;var i=m0(a,VT(a,t),null);return a.brk=i.brk,a}return N(e,r),e.prototype.getLabel=function(t){return Tu(t.value,GT[function zG(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(wu(this._minLevelUnit))]||GT.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,a,n){return function GG(r,e,t,a,n){var i=null;if(X(t))i=t;else if(ae(t)){var o={time:r.time,level:r.time?r.time.level:0},s=ot();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Es(r.value,n);i=t[f][f][0]}}return Tu(new Date(r.value),i,n,a)}(t,a,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var a=this._interval,n=rf(this),i=ot(),o=this.brk,s=i&&o,l=[];
1if(!a)return l;var u=this._useUTC;if(s&&"only_break"===t.breakTicks)return ot().addBreaksToTicks(l,o.breaks,n),l;l=function CW(r,e,t,a,n,i){var s=OG,l=0;function u(R,k,O,V,z,F,U){for(var Y=function TW(r,e){var t=new Date(0);t[r](1);var a=t.getTime();t[r](1+e);var n=t.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}(z,R),Z=k,$=new Date(Z);Z<O&&Z<=a[1]&&(U.push({value:Z}),!(l++>3e3));)if($[z]($[V]()+R),Z=$.getTime(),i){var ye=i.calcNiceTickMultiple(Z,Y);ye>0&&($[z]($[V]()+ye*R),Z=$.getTime())}U.push({value:Z,notAdd:Z>a[1]})}function f(R,k,O){var V=[],z=!k.length;if(!BD(wu(R),a[0],a[1],t)){z&&(k=[{value:wW(a[0],R,t)},{value:a[1]}]);for(var F=0;F<k.length-1;F++){var U=k[F].value,Y=k[F+1].value;if(U!==Y){var Z=void 0,$=void 0,ye=void 0;switch(R){case"year":Z=Math.max(1,Math.round(e/Or/365)),$=FT(t),ye=FG(t);break;case"half-year":case"quarter":case"month":Z=SW(e),$=Hy(t),ye=HT(t);break;case"week":case"half-week":case"day":Z=_W(e),$=Wy(t),ye=WT(t);break;case"half-day":case"quarter-day":case"hour":Z=xW(e),$=Uy(t),ye=UT(t);break;case"minute":Z=VD(e,!0),$=Yy(t),ye=YT(t);break;case"second":Z=VD(e,!1),$=Zy(t),ye=ZT(t);break;case"millisecond":Z=bW(e),$=Xy(t),ye=XT(t)}Y>=a[0]&&U<=a[1]&&u(Z,U,Y,$,ye,0,V),"year"===R&&O.length>1&&0===F&&O.unshift({value:O[0].value-Z})}}for(F=0;F<V.length;F++)O.push(V[F])}}for(var v=[],c=[],h=0,p=0,d=0;d<s.length;++d){var g=wu(s[d]);if(VG(s[d])&&(f(s[d],v[v.length-1]||[],c),g!==(s[d+1]?wu(s[d+1]):null))){if(c.length){p=h,c.sort(function(R,k){return R.value-k.value});for(var m=[],_=0;_<c.length;++_){var S=c[_].value;(0===_||c[_-1].value!==S)&&(m.push(c[_]),S>=a[0]&&S<=a[1]&&h++)}var x=n/e;if(h>1.5*x&&p>x/1.5||(v.push(m),h>x||r===s[d]))break}c=[]}}var b=ke(W(v,function(R){return ke(R,function(k){return k.value>=a[0]&&k.value<=a[1]&&!k.notAdd})}),function(R){return R.length>0}),w=b.length-1,C=[];for(d=0;d<b.length;++d)for(var T=b[d],M=0;M<T.length;++M){var D=Es(T[M].value,t);C.push({value:T[M].value,time:{level:w-d,upperTimeUnit:D,lowerTimeUnit:D}})}tc(C,jz,null),C.sort(function(R,k){return R.value-k.value});var I=C[0],L=C[C.length-1],P=Es(a[0],t),E=Es(a[1],t);return(!I||I.value>a[0])&&C.unshift({value:a[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!L||L.value<a[1])&&C.push({value:a[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),C}(this._minLevelUnit,this._approxInterval,u,n,bh(this),o);var f=Sr.length-1,v=0;return A(l,function(c){c.time&&(f=Math.min(f,pe(Sr,c.time.upperTimeUnit)),v=Math.max(v,c.time.level))}),s&&ot().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(c){return c.value},this._approxInterval,n),s&&"none"!==t.breakTicks&&ot().addBreaksToTicks(l,o.breaks,n,function(c){for(var h=Math.max(pe(Sr,Es(c.vmin,u)),pe(Sr,Es(c.vmax,u))),p=0,d=0;d<Sr.length;d++)if(!BD(Sr[d],c.vmin,c.vmax,u)){p=d;break}var g=Math.min(p,f),y=Math.max(g,h);return{level:v,lowerTimeUnit:Sr[y],upperTimeUnit:Sr[g]}}),l},e.prototype.getMinorTicks=function(t){return w0(this,t,bc(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Ae(t)?Math.round(t):+ha(t)},e.type="time",e}(Aa),Ah=[["second",1e3],["minute",6e4],["hour",bu],["quarter-day",6*bu],["half-day",12*bu],["day",1.2*Or],["half-week",3.5*Or],["week",7*Or],["month",31*Or],["quarter",95*Or],["half-year",zT/2],["year",zT]];function BD(r,e,t,a){return Ac(new Date(e),r,a).getTime()===Ac(new Date(t),r,a).getTime()}function _W(r,e){return(r/=Or)>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function SW(r){return(r/=30*Or)>6?6:r>3?3:r>2?2:1}function xW(r){return(r/=bu)>12?12:r>6?6:r>3.5?4:r>2?2:1}function VD(r,e){return(r/=e?6e4:1e3)>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function bW(r){return xe(Qv(r,!0),1)}function wW(r,e,t){var a=Math.max(0,pe(Sr,e)-1);return Ac(new Date(r),Sr[a],t).getTime()}Aa.registerClass(ND);const MW=ND;var zD=function(r){function e(t){var a=r.call(this)||this;a.type="log",a.parse=wo.parse,a.base=t.logBase||10;var n=[],i=[],o=a._lookup={from:n,to:i};n[0]=n[1]=i[0]=i[1]=NaN,_0(a,e.mapperMethods);var s=ot(),u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(t.breakOption,a,{noNegative:!0},2,u),a.powStub=new wo({breakParsed:u.original}),a.intervalStub=new wo({breakParsed:u.transformed}),S0(a),a}return N(e,r),e.prototype.getTicks=function(t){var a=this.base,n=this.powStub,i=ot(),o=this.intervalStub,u={lookup:{from:o.getExtent(),to:n.getExtent()}};return W(o.getTicks(t||{}),function(f){var h,c=b0(f.value,a,u);
1if(i){var p=i.getTicksBreakOutwardTransform(this,f,bc(n),this._lookup);p&&(h=p.vBreak,c=p.tickVal)}return{value:c,break:h}},this)},e.prototype.getMinorTicks=function(t){return w0(this,t,bc(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,a){return this.intervalStub.getLabel(t,a)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(wh(t,this.base))},scale:function(t){return b0(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,a){return t=wh(t,this.base),a&&2===a.depth?t:this.intervalStub.transformIn(t,a)},transformOut:function(t,a){var n=a?a.depth:null;return GD.depth=n,FD.lookup=this._lookup,b0(2===n?t:this.intervalStub.transformOut(t,GD),this.base,FD)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,a){this.setExtent2(0,t,a)},setExtent2:function(t,a,n){if(!(!Ni(a,n)||a<=0||n<=0)){var i=HD,o=HD;if(0===t){var s=this._lookup;i=s.to,o=s.from}this.powStub.setExtent2(t,i[0]=a,i[1]=n);var l=this.base;this.intervalStub.setExtent2(t,o[0]=wh(a,l),o[1]=wh(n,l))}},getFilter:function(){return{g:0}},sanitize:function(t,a){return Ni(a[0],a[1])&&Pr(t)&&t<=0&&(t=a[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,a){return null===a?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,a)}},e}(Aa);Aa.registerClass(zD);var GD={},FD={},HD=[];const LW=zD;var WD={value:1,category:1,time:1,log:1},UD=ge();function of(r){var e=r.get("type");return(null==e||!J(WD,e)&&!Aa.getClass(e))&&(e="value"),e}function sl(r,e,t){var n;switch(ot()&&(n=YD(r,e,t)),e){case"category":return new Ch({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new MW({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:n});case"log":return new LW({logBase:r.get("logBase"),breakOption:n});case"value":return new wo({breakOption:n});default:return new(Aa.getClass(e)||wo)({})}}function sf(r){var e=r.getLabelModel().get("formatter");if("time"===r.type){var t=function NG(r){return X(r)||ae(r)?r:function BG(r){r=r||{};var e={},t=!0;return A(Sr,function(a){t&&(t=null==r[a])}),A(Sr,function(a,n){var i=r[a];e[a]={};for(var o=null,s=n;s>=0;s--){var l=Sr[s],u=se(i)&&!H(i)?i[l]:i,f=void 0;H(u)?o=(f=u.slice())[0]||"":X(u)?f=[o=u]:(null==o?o=Tc[a]:EG[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[a][l]=f}}),e}(r)}(e);return function(n,i){return r.scale.getFormattedLabel(n,i,t)}}if(X(e))return function(n){var i=r.scale.getLabel(n);return e.replace("{value}",i??"")};if(ae(e)){if("category"===r.type)return function(n,i){return e(Lh(r,n),n.value-r.scale.getExtent()[0],null)};var a=ot();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(Lh(r,n),i,o)}}return function(n){return r.scale.getLabel(n)}}function Lh(r,e){var t=r.scale;return Kt(t)?t.getLabel(e):e.value}function C0(r){return r.get("interval")??"auto"}function ll(r){return"middle"===r||"center"===r}function lf(r){return r.getShallow("show")}function YD(r,e,t){var a=r.get("breaks",!0);if(null!=a){if(!ot())return;if(!t||!function BW(r){return"category"!==r}(e))return;return a}}function ZD(r,e,t,a,n,i){var o=ol(r),s=o?r.intervalStub:r;if(s.setExtent(a[0],a[1]),o){var l=r.powStub,u={depth:2},f=r.transformOut(a[0],u),v=r.transformOut(a[1],u),c=function yW(r,e){return[r[0]!==e[0],r[1]!==e[1]]}(t,a);e[0]&&!c[0]&&(f=n[0]),e[1]&&!c[1]&&(v=n[1]),l.setExtent(f,v)}s.setConfig(i)}function ul(r,e){return Kt(r)?r.getRawOrdinalNumber(e.value):e.value}function uf(r,e){return Kt(r)&&!!e.get("boundaryGap")}var fl=function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r}(),VW=Ts(),vl=ge(),GW=ge();function A0(r,e){var t=r.model,a=vl(qs(t.ecModel)).keyed,n=a&&a.get(e);return n&&n.get(t.uid)}function FW(r,e){return qD(A0(r,e))}function KD(r,e){var t=vl(qs(r)).keyed;t&&t.each(function(a,n){a.each(function(i,o){e(i,n,o)})})}function qD(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function To(r,e,t){var a=A0(r,e);a&&Ph(r.model.ecModel,a.sers,t)}function Ph(r,e,t){if(e)for(var a=0;a<e.length;a++){var n=e[a];r.isSeriesFiltered(n)||t(n)}}
1function M0(r,e,t){var a=vl(qs(r)).keyed,n=a&&a.get(e);n&&n.each(function(i){t(i.axis)})}function jD(r,e){var t=r.model,a=vl(qs(t.ecModel)).keys;a&&A(a.get(t.uid),function(n){e(n)})}function YW(r){var e=GW(AM(r)),t=e.keyed||(e.keyed=j());KD(r,function(a,n,i){var o=t.get(n)||t.set(n,j()),s=o.get(i)||o.set(i,{});a.metrics.liPosMinGap&&JD.liPosMinGap(r,a,s)})}var JD={};function Co(r,e,t){if(r){var n=vl(qs(e.ecModel)),i=r.model.uid,l=n.axSer||(n.axSer=j());(l.get(i)||l.set(i,[])).push(e);var v=e.subType,c=e.getBaseAxis()===r,h=I0.get(D0(v,c,t))||I0.get(D0(v,c,null));if(h){var p=n.keyed||(n.keyed=j()),d=n.keys||(n.keys=j()),g=h.key,y=p.get(g)||p.set(g,j()),m=y.get(i);m||((m=y.set(i,{axis:r,sers:[],serByIdx:[]})).metrics=h.getMetrics(r),(d.get(i)||d.set(i,[])).push(g)),m.sers.push(e),m.serByIdx[e.seriesIndex]=e}}}function D0(r,e,t){return r+"|&"+Q(e,!0)+"|&"+(t||"")}function L0(r,e){var t=D0(e.seriesType,e.baseAxis,e.coordSysType);I0.set(t,e),VW(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:YW})})}var I0=j(),XW=ge(),QD=function(){function r(e,t,a,n,i){var l,o=Kt(e),s=o?t.getCategories().length:null;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=a.slice();(nf(e)||ol(e)||il(e))&&(Sw(f,ff(e,t.get("dataMin",!0))),xw(f,ff(e,t.get("dataMax",!0)))),function Kz(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}(f)||(f[0]=f[1]=NaN);var v=[],c=[!1,!1],h=t.get("min",!0);"dataMin"===h?(v[0]=f[0],c[0]=!0):(v[0]=ff(e,ae(h)?h({min:f[0],max:f[1]}):h),c[0]=null!=v[0]);var p=t.get("max",!0);"dataMax"===p?(v[1]=f[1],c[1]=!0):(v[1]=ff(e,ae(p)?p({min:f[0],max:f[1]}):p),c[1]=null!=v[1]);var d=function jW(r,e){var t;if(Kt(r))t=[0,0];else{var a=e.get("boundaryGap");"boolean"==typeof a&&(a=null),t=H(a)?a:[a,a]}return[eL(t[0]),eL(t[1])]}(e,t),g=o?null:f[1]-f[0]||Math.abs(f[0]);null==v[0]&&(v[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*g),null==v[1]&&(v[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*g),!rn(v[0])&&(v[0]=NaN),!rn(v[1])&&(v[1]=NaN);var y=l||Pt(v[0])||Pt(v[1])||o&&!s,m=nf(e),_=m&&t.needIncludeZero&&t.needIncludeZero();_&&(v[0]>0&&v[1]>0&&!c[0]&&(v[0]=0),v[0]<0&&v[1]<0&&!c[1]&&(v[1]=0));var S=!1;v[0]>v[1]&&(v.reverse(),S=!0);var x=ff(e,t.get("startValue",!0)),b=null!=x;!Pr(x)&&n&&(x=e.getDefaultStartValue?e.getDefaultStartValue():0),Pr(x)&&(b||!m||_)&&(x<v[0]&&!c[0]?(v[0]=x,c[0]=!0):x>v[1]&&!c[1]&&(v[1]=x,c[1]=!0)),$D(this._i={scale:e,dataMM:f,noZoomEffMM:v,zoomMM:[],fixMM:c,zoomFixMM:[!1,!1],startValue:x,isBlank:y,incl0:_,tggAxInv:S,ctnShp:i},v)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.zoomFixMM,i=e.fixMM,o={fixMM:i,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:e.noZoomEffMM.slice()},s=o.effMM;return null!=t[0]&&(s[0]=t[0],i[0]=n[0]=!0),null!=t[1]&&(s[1]=t[1],i[1]=n[1]=!0),$D(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r}();function $D(r,e){var t=r.scale,a=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],a),e[1]=t.sanitize(e[1],a),ec(e))}function ff(r,e){return null==e?null:Pt(e)?NaN:r.parse(e)}function eL(r){return fa("boolean"==typeof r?0:r,1)||0}function tL(r){var e=XW(r.scale);return e.extent||(e.extent=[1/0,-1/0]),e}function Ao(r,e){var t=r.scale;t.rawExtentInfo||function QW(r,e,t,a,n){var i=tL(e),o=i.extent,s=!1;!function WW(r,e){var t=r.model.ecModel,a=vl(qs(t)).axSer;a&&Ph(t,a.get(r.model.uid),e)}(e,function(f){if(f.boxCoordinateSystem){var v=$T(f).coord,c=i.dimIdxInCoord;if(c>=0&&H(v)){var h=v[c];null!=h&&!H(h)&&Jg(o,r.parse(h))}}else if(f.coordinateSystem){var p=f.getData();if(p){var d=r.getFilter?r.getFilter():null;A(function NW(r,e){var t={};return A(r.mapDimensionsAll(e),function(a){t[y0(r,a)]=!0}),Te(t)}(p,t),function(g){!function Xz(r,e){Ni(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}(o,p.getApproximateExtent(g,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=function eU(r,e,t){var a=uf(r,t),n=t.get("containShape",!0);if(null==n&&!a&&(n=!0),!n)return!1;var i=!1;return jD(e,function(o){i=!!P0.get(o)||i}),i}(r,e,a),u=new QD(r,a,o,s,l);rL(r,u,n),i.extent=null}(t,r,r.dim,r.model,e)}function rL(r,e,t){r.rawExtentInfo=e,e.from=t}function Rh(r,e){P0.set(r,e)}var P0=j();function aL(r,e,t,a,n){r.rawExtentInfo||function $W(r,e){var t=r.scale;rL(t,new QD(t,r.model,e,!1,!1),3)}({scale:r,model:e},n||[1/0,-1/0]);var i=r.rawExtentInfo.makeFinal(),o=i.effMM;return r.setExtent(o[0],o[1]),r.setBlank(i.isBlank),a&&i.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(a.inverse=!a.inverse),i}function nL(r,e){var t=ol(r),a=t?r.intervalStub:r,n=e.fixMinMax||[],i=t?r.getExtent():null,o=a.getExtent(),s=RD(o,n,e.rawExtentResult);a.setExtent(s[0],s[1]),s=a.getExtent();var l=t?function aU(r,e){var t=Th(e.splitNumber,10),a=r.getExtent(),n=bh(r),i=xe(Hg(n),1);t/n*i<=.5&&(i*=10);var s=ei(i);return{intervalPrecision:s,interval:i,niceExtent:[Ie(Li(a[0]/i)*i,s),Ie(Ir(a[1]/i)
1*i,s)]}}(a,e):function rU(r,e){var t=Th(e.splitNumber,5),a=bh(r),n=e.minInterval,i=e.maxInterval,o=Qv(a/t,!0);null!=n&&o<n&&(o=n),null!=i&&o>i&&(o=i);var s=ei(o),l=r.getExtent();return{interval:o,intervalPrecision:s,niceExtent:[Ie(Li(l[0]/o)*o,s),Ie(Ir(l[1]/o)*o,s)]}}(a,e),u=l.intervalPrecision,f=l.interval,v=e.userInterval;null!=v&&(l.interval=v,l.intervalPrecision=ei(v)),n[0]||(s[0]=Ie(Ir(s[0]/f)*f,u)),n[1]||(s[1]=Ie(Li(s[1]/f)*f,u)),null!=v&&(l.niceExtent=s.slice()),ZD(r,n,o,s,i,l)}function hl(r){var t=r.model;iL(r.scale,t,t.axis,t.ecModel,null)}function iL(r,e,t,a,n){var i=aL(r,e,a,t,n),o=nf(r)||il(r);oL(r,{splitNumber:e.get("splitNumber"),fixMinMax:i.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:i}),t&&a&&function tU(r,e,t,a){var n;if(t.ctnShp&&(jD(r,function(s){var l=P0.get(s);if(l){var u=l(r,a);u&&(Sw(n=n||[0,0],u[0]),xw(n,u[1]),function EW(r){UD(r).noOnMyZero=!0}(r))}}),n)){var i=e.getExtent();if(Kt(e))r.onBand||e.setExtent2(1,Be(i[0],i[0]+n[0]),xe(i[1],i[1]+n[1]));else{var o=i.slice();t.zoomFixMM[0]||(o[0]=Be(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),t.zoomFixMM[1]||(o[1]=xe(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<i[0]||o[1]>i[1])&&e.setExtent2(1,o[0],o[1])}}}(t,r,i,a)}function oL(r,e){nU[r.type](r,e)}var nU={interval:nL,log:nL,time:function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Or,t[1]+=Or),t[1]===-1/0&&t[0]===1/0){var a=new Date;t[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),t[0]=t[1]-Or}r.setExtent(t[0],t[1]);var n=Th(e.splitNumber,10),i=bh(r)/n,o=e.minInterval,s=e.maxInterval;null!=o&&i<o&&(i=o),null!=s&&i>s&&(i=s);var l=Ah.length,u=Math.min(function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t}(Ah,i,0,l),l-1),f=Ah[u][1],v=Ah[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:i,interval:f,minLevelUnit:v})},ordinal:et};function iU(r){return Ca(null,r)}var oU={isDimensionStacked:gn,enableDataStack:CD,getStackedDimension:y0};function sU(r,e){var t=e;e instanceof De||(t=new De(e));var n=sl(t,of(t),!1);return r[1]<r[0]&&(r=r.slice().reverse()),iL(n,t,null,null,r),n}function lU(r){it(r,fl)}function uU(r,e){return He(r,null,null,"normal"!==(e=e||{}).state)}function sL(r,e){return Math.abs(r-e)<1e-8}function Mo(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=nn(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!sL(n[0],s[0])||!sL(n[1],s[1]))&&(a+=nn(n[0],n[1],s[0],s[1],e,t)),0!==a}var vU=[];function R0(r,e){for(var t=0;t<r.length;t++)tt(r[t],r[t],e)}function lL(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Xa(e,e,i),Ka(t,t,i))}}var uL=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),fL=function(){return function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}}(),vL=function(){return function r(e){this.type="linestring",this.points=e}}(),cL=function(r){function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return N(e,r),e.prototype.calcCenter=function(){for(var a,t=this.geometries,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return function cU(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0];return A(this.geometries,function(s){"polygon"===s.type?lL(s.exterior,n,i,t):A(s.points,function(l){lL(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new fe(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a}
1,e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;e:for(var i=0,o=n.length;i<o;i++){var s=n[i];if("polygon"===s.type){var u=s.interiors;if(Mo(s.exterior,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Mo(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new fe(t,a,n,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var c=f[v];"polygon"===c.type?(R0(c.exterior,u),A(c.interiors,function(h){R0(h,u)})):A(c.points,function(h){R0(h,u)})}(o=this._rect).copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e}(uL),hU=function(r){function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return N(e,r),e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=_i(vU),o=t;o&&!o.isGeoSVGGraphicRoot;)cr(i,o.getLocalTransform(),i),o=o.parent;return hr(i,i),tt(n,n,i),n},e}(uL);function E0(r,e,t){for(var a=0;a<r.length;a++)r[a]=hL(r[a],e[a],t)}function hL(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),n=s+=n,i=l+=i,a.push([s/t,l/t])}return a}function k0(r,e){return r=function pU(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;return null==t&&(t=1024),A(e.features,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=hL(s,o,t);break;case"Polygon":case"MultiLineString":E0(s,o,t);break;case"MultiPolygon":A(s,function(l,u){return E0(l,o[u],t)})}}),e.UTF8Encoding=!1,e}(r),W(ke(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new fL(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new fL(l[0],l.slice(1)))});break;case"LineString":i.push(new vL([n.coordinates]));break;case"MultiLineString":i.push(new vL(n.coordinates))}var s=new cL(a[e||"name"],i,a.cp);return s.properties=a,s})}function dU(r,e,t,a,n,i,o,s){return new Me({style:{text:r,font:e,align:t,verticalAlign:a,padding:n,rich:i,overflow:o?"truncate":null,lineHeight:s}}).getBoundingRect()}var gU=ge(),vf=ge();function Eh(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function pL(r,e){var t=e.getExtent(),a=[];return A(r,function(n){(n=e.parse(n))>=t[0]&&n<=t[1]&&a.push(n)}),tc(a,Jz,null),Ct(a),W(a,function(n){return{value:n}})}function dL(r,e,t){var s,l,a=wU(r),n=C0(e),i=1===t.kind;if(!i){var o=yL(a,n);if(o)return o}ae(n)?s=kh(r,n,!1):(l="auto"===n?function TU(r,e){if(1===e.kind){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return vf(r).autoInterval=t,!0}),t}return vf(r).autoInterval??(vf(r).autoInterval=r.calculateCategoryInterval(e))}(r,t):n,s=kh(r,l,!1));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return O0(a,n,u),!0}):O0(a,n,u),u}var bU=gL("axisTick"),wU=gL("axisLabel");function gL(r){return function(t){return vf(t)[r]||(vf(t)[r]={list:[]})}}function yL(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function O0(r,e,t){return r.list.push({key:e,value:t}),t}function AU(r,e,t){return null==mL(r,e,t)}function mL(r,e,t){var a=gU(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(null!=i&&null!=o&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=t,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function kh(r,e,t){var a=sf(r),n=r.scale,i=[],o=ae(e);return ED(n,o?0:e,function(s,l){var u=n.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}i.push(t?s:{formattedLabel:a(s),rawLabel:u,tick:s})}),i}function Vt(r,e){var t={w:NaN,w2:NaN},a=r.scale,n=(e=e||{}).fromStat,i=e.min,o=function vW(r){var e=af(r,3);return e[1]-e[0]}(a);Pr(o)||(o=NaN);var s=r.getExtent(),l=rt(s[1]-s[0]);return Kt(a)?function LU(r,e,t,a){var n=e.onBand,i=t+(n?1:0);0===i&&(i=1),r.w=a/i,!n&&t&&a&&(r.w2=r.w*t/a)}(t,r,o,l):n&&function IU(r,e,t,a,n){var i=!1,o=-1/0;A(n.key?[FW(e,n.key)]:function HW(r,e){var t=[];return KD(r.model.ecModel,function(a){for(var n=0;n<e.length;
vendor: 16,385 bytes, line 1
1n++)e[n]&&a.serByIdx[e[n].seriesIndex]&&t.push(qD(a))}),t}(e,n.sers||[]),function(s){var l=s.liPosMinGap;null!=l&&(l>0?(l>o&&(o=l),i=!1):-2===l&&(i=!0))}),Pr(t)&&t>0&&Pr(o)?(r.w=a/t*o,r.w2=o):i&&(r.w=.8*a,r.w2=r.w*t/a)}(t,r,o,l,n),null!=i&&(t.w=Pr(t.w)?xe(i,t.w):i),t}var _L=[0,1],PU=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]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},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.scale;return Re(e=a.normalize(a.parse(e)),_L,SL(this),t)},r.prototype.coordToData=function(e,t){var a=Re(e,SL(this),_L,t);return this.scale.scale(a)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=W(function mU(r,e,t){var a=r.scale,n=r.getTickModel().get("customValues");return n?{ticks:pL(n,a)}:"category"===r.type?function SU(r,e){var i,o,t=bU(r),a=C0(e),n=yL(t,a);if(n)return n;if((!e.get("show")||r.scale.isBlank())&&(i=[]),ae(a))i=kh(r,a,!0);else if("auto"===a){var s=dL(r,r.getLabelModel(),Eh(2));o=s.labelCategoryInterval,i=W(s.labels,function(l){return l.tick})}else i=kh(r,o=a,!0);return O0(t,a,{ticks:i,tickCategoryInterval:o})}(r,e):{ticks:a.getTicks(t)}}(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(s){return{coord:this.dataToCoord(ul(this.scale,s)),tick:s}},this),o=function RU(r,e,t){var a=e.length;if(!r.onBand||t||!a)return!1;var n=Vt(r).w;if(!n)return!1;A(e,function(s){s.coord-=n/2});var i=r.scale.getExtent(),o=e[a-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+n,tick:{value:i[1]+1}}),!0}(this,n,t.get("alignWithLabel"));return W(n,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(Kt(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),W(this.scale.getMinorTicks(t),function(i){return W(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this)},r.prototype.getViewLabels=function(e){return function yU(r,e){var t=r.getLabelModel().get("customValues");if(t){var a=r.scale;return{labels:W(pL(t,a),function(n,i){return{formattedLabel:sf(r)(n,i),rawLabel:a.getLabel(n),tick:n}})}}return"category"===r.type?function _U(r,e){var t=r.getLabelModel(),a=dL(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:a}(r,e):function xU(r){var e=r.scale.getTicks(),t=sf(r);return{labels:W(e,function(a,n){return{formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tick:a}})}}(r)}(this,e=e||Eh(2)).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return Vt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return function CU(r,e){var t=e.kind,a=function MU(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()}}(r),n=sf(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1;l>40&&(u=Math.max(1,Math.floor(l/40)));for(var v=s[0],c=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(c*Math.cos(i)),p=Math.abs(c*Math.sin(i)),d=0,g=0;v<=s[1];v+=u){var m,_=Hv(n({value:v}),a.font,"center","top");m=1.3*_.height,d=Math.max(d,1.3*_.width,7),g=Math.max(g,m,7)}var S=d/h,x=g/p;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));return 1===t?(e.out.noPxChangeTryDetermine.push(q(AU,null,r,b,l)),b):mL(r,b,l)??b}(this,e=e||Eh(2))},r}();function SL(r){var e=r.getExtent();if(r.onBand){var a=(e[1]-e[0])/r.scale.count()/2;e[0]+=a,e[1]-=a}return e}const Gr=PU;function EU(r){var e=Ce.extend(r);return Ce.registerClass(e),e}function kU(r){var e=Xe.extend(r);return Xe.registerClass(e),e}function OU(r){var e=Ye.extend(r);return Ye.registerClass(e),e}function NU(r){var e=ze.extend(r);return ze.registerClass(e),e}var cf=2*Math.PI,Do=Sa.CMD,BU=["top","right","bottom","left"];function VU(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0)}}function zU(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s),f=(o/=u)*t+r,v=(s/=u)*t+e;if(Math.abs(a-n)%cf<1e-4)return l[0]=f,l[1]=v,u-t;if(i){var c=a;a=dr(n),n=dr(c)}else a=dr(a),n=dr(n);a>n&&(n+=cf);var h=Math.atan2(s,o);if(h<0&&(h+=cf),h>=a&&h<=n||h+cf>=a&&h+cf<=n)return l[0]=f,l[1]=v,u-t;var p=t*Math.cos(a)+r,d=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+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 Oh(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,v=a-e,c=Math.sqrt(f*f+v*v),p=(l*(f/=c)+u*(v/=c))/c;s&&(p=Math.min(Math.max(p,0),1));var d=o[0]=r+(p*=c)*f,g=o[1]=e+p*v;return Math.sqrt((d-n)*(d-n)+(g-i)*(g-i))}function xL(r,e,t,a,n,i,o){t<0&&(r+=t,t=-t),a<0&&(e+=a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var na=[];function GU(r,e,t){var a=xL(e.x,e.y,e.width,e.height,r.x,r.y,na);return t.set(na[0],na[1]),a}function FU(r,e,t){for(var s,l,a=0,n=0,i=0,o=0,u=1/0,f=e.data,v=r.x,c=r.y,h=0;h<f.length;){var p=f[h++];1===h&&(i=a=f[h],o=n=f[h+1]);var d=u;switch(p){case Do.M:a=i=f[h++],n=o=f[h++];break;case Do.L:d=Oh(a,n,f[h],f[h+1],v,c,na,!0),a=f[h++],n=f[h++];break;case Do.C:d=bb(a,n,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],v,c,na),a=f[h++],n=f[h++];break;case Do.Q:d=Tb(a,n,f[h++],f[h++],f[h],f[h+1],v,c,na),a=f[h++],n=f[h++];break;case Do.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],x=f[h++];h+=1;var b=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l),d=zU(g,y,_,S,S+x,b,(v-g)*_/m+g,c,na),a=Math.cos(S+x)*m+g,n=Math.sin(S+x)*_+y;break;case Do.R:d=xL(i=a=f[h++],o=n=f[h++],f[h++],f[h++],v,c,na);break;case Do.Z:d=Oh(a,n,i,o,v,c,na,!0),a=i,n=o}d<u&&(u=d,t.set(na[0],na[1]))}return u}var ia=new le,Ke=new le,ut=new le,Ma=new le,Da=new le;function bL(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||BU,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),v=f&&hr([],f),c=e.get("length2")||0;u&&ut.copy(u);for(var h=0;h<o.length;h++){VU(o[h],0,s,ia,Ma),le.scaleAndAdd(Ke,ia,Ma,c),Ke.transform(v);var d=r.getBoundingRect(),g=u?u.distance(Ke):r instanceof we?FU(Ke,r.path,ut):GU(Ke,d,ut);g<l&&(l=g,Ke.transform(f),ut.transform(f),ut.toArray(i[0]),Ke.toArray(i[1]),ia.toArray(i[2]))}wL(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var Nh=[],tr=new le;function wL(r,e){if(e<=180&&e>0){e=e/180*Math.PI,ia.fromArray(r[0]),Ke.fromArray(r[1]),ut.fromArray(r[2]),le.sub(Ma,ia,Ke),le.sub(Da,ut,Ke);var t=Ma.len(),a=Da.len();if(!(t<.001||a<.001)){Ma.scale(1/t),Da.scale(1/a);var n=Ma.dot(Da);if(Math.cos(e)<n){var o=Oh(Ke.x,Ke.y,ut.x,ut.y,ia.x,ia.y,Nh,!1);tr.fromArray(Nh),tr.scaleAndAdd(Da,o/Math.tan(Math.PI-e));var s=ut.x!==Ke.x?(tr.x-Ke.x)/(ut.x-Ke.x):(tr.y-Ke.y)/(ut.y-Ke.y);if(isNaN(s))return;s<0?le.copy(tr,Ke):s>1&&le.copy(tr,ut),tr.toArray(r[1])}}}}function HU(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,ia.fromArray(r[0]),Ke.fromArray(r[1]),ut.fromArray(r[2]),le.sub(Ma,Ke,ia),le.sub(Da,ut,Ke);var a=Ma.len(),n=Da.len();if(!(a<.001||n<.001)&&(Ma.scale(1/a),Da.scale(1/n),Ma.dot(e)<Math.cos(t))){var s=Oh(Ke.x,Ke.y,ut.x,ut.y,ia.x,ia.y,Nh,!1);tr.fromArray(Nh);var l=Math.PI/2,f=l+Math.acos(Da.dot(e))-t;if(f>=l)le.copy(tr,ut);else{tr.scaleAndAdd(Da,s/Math.tan(Math.PI/2-f));var v=ut.x!==Ke.x?(tr.x-Ke.x)/(ut.x-Ke.x):(tr.y-Ke.y)/(ut.y-Ke.y);if(isNaN(v))return;v<0?le.copy(tr,Ke):v>1&&le.copy(tr,ut)}tr.toArray(r[1])}}}function N0(r,e,t,a){var n="normal"===t,i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o=!0===o?.3:Math.max(+o,0)||0,i.shape=i.shape||{},i.shape.smooth=o;var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function WU(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 n=Za(a[0],a[1]),i=Za(a[1],a[2]);if(!n||!i)return r.lineTo(a[1][0],a[1][1]),void r.lineTo(a[2][0],a[2][1]);var o=Math.min(n,i)*t,s=Kl([],a[1],a[0],o/n),l=Kl([],a[1],a[2],o/i),u=Kl([],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 f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function B0(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(n){for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<Su.length;l++){var u=Su[l],f=e[u],v="normal"===u;if(f){var c=f.get("show");if((v?s:Q(n.states[u]&&n.states[u].ignore,s))||!Q(c,o)){var p=v?a:a&&a.states[u];p&&(p.ignore=!0),a&&N0(a,!0,u,f);continue}a||(a=new Bt,r.setTextGuideLine(a),!v&&(s||!o)&&N0(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),N0(a,!1,u,f)}}if(a){ie(a.style,t),a.style.fill=null;var d=i.get("showAbove");(r.textGuideLineConfig=r.textGuideLineConfig||{}).showAbove=d||!1,a.buildPath=WU}}else a&&r.removeTextGuideLine()}function V0(r,e){for(var t={normal:r.getModel(e=e||"labelLine")},a=0;a<Qt.length;a++){var n=Qt[a];t[n]=r.getModel([n,e])}return t}var TL=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function Vh(r,e,t){t=t||3,e?r.dirty|=t:r.dirty&=~t}function AL(r,e){return e=e||3,null==r.dirty||!!(r.dirty&e)}function La(r){if(r)return AL(r)&&ML(r,r.label,r),r}function ML(r,e,t){var a=e.getComputedTransform();r.transform=Om(r.transform,a);var n=r.localRect=Hu(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;null==f&&u&&(o=u,f=Ps.textMargin);for(var v=0;v<4;v++)z0[v]=f===Ps.minMargin&&l&&null!=l[v]?l[v]:s&&null!=s[v]?s[v]:o?o[v]:0;f===Ps.textMargin&&po(n,z0,!1,!1);var c=r.rect=Hu(r.rect,n);return a&&c.applyTransform(a),f===Ps.minMargin&&po(c,z0,!1,!1),r.axisAligned=km(a),(r.label=r.label||{}).ignore=e.ignore,Vh(r,!1),Vh(r,!0,2),r}var z0=[0,0,0,0];function G0(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function F0(r,e){for(var t=0;t<TL.length;t++){var a=TL[t];null==r[a]&&(r[a]=e[a])}return La(r)}function DL(r){var e=r.obb;return(!e||AL(r,2))&&(r.obb=e=e||new WA,e.fromBoundingRect(r.localRect,r.transform),Vh(r,!1,2)),e}function H0(r,e,t,a,n){var i=r.length,o=he[e],s=nt[e];if(i<2)return!1;r.sort(function(T,M){return T.rect[o]-M.rect[o]});for(var u,l=0,f=!1,v=0,c=0;c<i;c++){var h=r[c],p=h.rect;(u=p[o]-l)<0&&(p[o]-=u,h.label[o]-=u,f=!0),v+=Math.max(-u,0),l=p[o]+p[s]}v>0&&n&&b(-v/i,0,i);var m,_,g=r[0],y=r[i-1];function S(){m=g.rect[o]-t,_=a-y.rect[o]-y.rect[s]}function x(T,M,D){if(T<0){var I=Math.min(M,-T);if(I>0){b(I*D,0,i);var L=I+T;L<0&&w(-L*D,1)}else w(-T*D,1)}}function b(T,M,D){0!==T&&(f=!0);for(var I=M;I<D;I++){var L=r[I];L.rect[o]+=T,L.label[o]+=T}}function w(T,M){for(var D=[],I=0,L=1;L<i;L++){var P=r[L-1].rect,E=Math.max(r[L].rect[o]-P[o]-P[s],0);D.push(E),I+=E}if(I){var R=Math.min(Math.abs(T)/I,M);if(T>0)for(L=0;L<i-1;L++)b(D[L]*R,0,L+1);else for(L=i-1;L>0;L--)b(-D[L-1]*R,L,i)}}function C(T){var M=T<0?-1:1;T=Math.abs(T);for(var D=Math.ceil(T/(i-1)),I=0;I<i-1;I++)if(M>0?b(D,0,I+1):b(-D,i-I-1,i),(T-=D)<=0)return}return S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),x(m,_,1),x(_,m,-1),S(),m<0&&C(-m),_<0&&C(_),f}function LL(r){var e=[];function t(u){if(!u.ignore){var f=u.ensureState("emphasis");null==f.ignore&&(f.ignore=!1)}u.ignore=!0}r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});for(var a=0;a<r.length;a++){var n=La(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(zh(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(n)}}}function zh(r,e,t,a){return!(!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,a))&&(!(!r.axisAligned||!e.axisAligned)||DL(r).intersect(DL(e),t,a))}function XU(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function KU(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:XU(a&&a.shape.points)}}var IL=["align","verticalAlign","width","height","fontSize"],rr=new Gn,W0=ge(),qU=ge();function Gh(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];null!=e[n]&&(r[n]=e[n])}}var Fh=["x","y","rotation"],jU=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,l=n.__hostTarget.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();fe.applyTransform(f,f,u),u?rr.setLocalTransform(u):(rr.x=rr.y=rr.rotation=rr.originX=rr.originY=0,rr.scaleX=rr.scaleY=1),rr.rotation=dr(rr.rotation);var c,v=n.__hostTarget;if(v){c=v.getBoundingRect().plain();var h=v.getComputedTransform();fe.applyTransform(c,c,h)}var p=c&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:p,seriesModel:a,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:p&&p.ignore,x:rr.x,y:rr.y,scaleX:rr.scaleX,scaleY:rr.scaleY,rotation:rr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(ae(n)||Te(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ue(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(_,S){return function(){bL(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;f=ae(o.layoutOptionOrCb)?o.layoutOptionOrCb(KU(o,l)):o.layoutOptionOrCb,o.layoutOption=f=f||{};var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:null!=f.x||null!=f.y?null:u.attachedPos,rotation:null!=f.rotate?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(null!=f.x?(s.x=K(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),null!=f.y?(s.y=K(f.y,a),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),c=!1)}W0(s).needsUpdateLabelLine=c,s.rotation=null!=f.rotate?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<IL.length;d++){var g=IL[d];s.setStyle(g,null!=f[g]?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;null!=o.dataIndex&&(y=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=[];A(this._labelList,function(l){l.defaultAttr.ignore||n.push(F0({},l))});var i=ke(n,function(l){return"shiftX"===l.layoutOption.moveOverlap}),o=ke(n,function(l){return"shiftY"===l.layoutOption.moveOverlap});H0(i,0,0,t),H0(o,1,0,a);var s=ke(n,function(l){return l.layoutOption.hideOverlap});(function ZU(r){for(var e=0;e<r.length;e++){var t=r[e],a=t.defaultAttr,n=t.labelLine;t.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}})(s),LL(s)},r.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();
1t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=W0(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=ue(e),i=n.dataIndex;if(a&&null!=i){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var v=s.getModel("labelLine");B0(e,V0(s),l),bL(e,v)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!Ls(e))){var o=(i=W0(a)).oldLayout,s=ue(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var c=e.prevStates;c&&(pe(c,"select")>=0&&a.attr(i.oldLayoutSelect),pe(c,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Pe(a,u,t,l)}else if(a.attr(u),!Is(a).valueAnimation){var v=Q(a.style.opacity,1);a.style.opacity=0,Ze(a,{style:{opacity:v}},t,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};Gh(h,u,Fh),Gh(h,a.states.select,Fh)}if(a.states.emphasis){var p=i.oldLayoutEmphasis={};Gh(p,u,Fh),Gh(p,a.states.emphasis,Fh)}kT(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=qU(n),d={points:n.shape.points};(o=i.oldLayout)?(n.attr({shape:o}),Pe(n,{shape:d},t)):(n.setShape(d),n.style.strokePercent=0,Ze(n,{style:{strokePercent:1}},t)),i.oldLayout=d}},r}();const JU=jU;var U0=ge();function PL(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=U0(t).labelManager;n||(n=U0(t).labelManager=new JU),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=U0(t).labelManager;A(a.updatedSeries,function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}function RL(r,e,t){var a=St.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}function Y0(r){return!r.__cursors.get(0)}function EL(r){var e=r.__cursors.get(0);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}me(PL);var QU=function(r){function e(t,a,n){var o,i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0},n=n||Gv,"string"==typeof t?o=RL(t,a,n):se(t)&&(t=(o=t).id),i.id=t,i.dom=o;var s=o.style;return s&&(Fd(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return N(e,r),e.prototype.afterBrush=function(){this.__prevIdx=EL(this)},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=RL("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var m,o=[],s=this.maxRepaintRectCount,l=!1,u=new fe(0,0,0,0);function f(S){if(S.isFinite()&&!S.isZero())if(0===o.length)(x=new fe(0,0,0,0)).copy(S),o.push(x);else{for(var b=!1,w=1/0,C=0,T=0;T<o.length;++T){var M=o[T];if(M.intersect(S)){var D=new fe(0,0,0,0);D.copy(M),D.union(S),o[T]=D,b=!0;break}if(l){u.copy(S),u.union(M);var E=u.width*u.height-S.width*S.height-M.width*M.height;E<w&&(w=E,C=T)}}var x;l&&(o[C].union(S),b=!0),b||((x=new fe(0,0,0,0)).copy(S),o.push(x)),l||(l=o.length>=s)}}for(var v=EL(this),c=v.startIdx;c<v.endIdx;++c)if(h=t[c]){var p=h.shouldBePainted(n,i,!0,!0);(d=h.__isRendered&&(1&h.__dirty||!p)?h.getPrevPaintRect():null)&&f(d);var g=p&&(1&h.__dirty||!h.__isRendered)?h.getPaintRect():null;g&&f(g)}var y=this.__prevIdx;for(c=y.startIdx;c<y.endIdx;++c){var h,d;p=(h=a[c])&&h.shouldBePainted(n,i,!0,!0),!h||p&&h.__zr||!h.__isRendered||(d=h.getPrevPaintRect())&&f(d)}do{for(m=!1,c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var _=c+1;_<o.length;)o[c].intersect(o[_])?(m=!0,o[c].union(o[_]),o.splice(_,1)):_++;c++}}while(m);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,s&&(s.width=t*n,s.height=a*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,v=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/v,l/v));var h=this.domBack;function p(d,g,y,m){if(o.clearRect(d,g,y,m),a&&"transparent"!==a){var _=void 0;Fl(a)?(_=(a.global||a.__width===y&&a.__height===m)&&a.__canvasGradient||Fm(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_,a.__width=y,a.__height=m):Wx(a)&&(a.scaleX=a.scaleX||v,a.scaleY=a.scaleY||v,_=Wm(o,a,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}
1)),o.save(),o.fillStyle=_||a,o.fillRect(d,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,d,g,y,m),o.restore())}!n||u?p(0,0,s,l):n.length&&A(n,function(d){p(d.x*v,d.y*v,d.width*v,d.height*v)})},e}(Cr);const kL=QU;var Lo=314159,Z0=void 0;function NL(r,e,t,a){var n=new kL(r,e,e.dpr);return n.zlevel=t,n.zlevel2=a,n.__builtin__=!0,BL(n),n}function BL(r){r.__cursorStack=[],r.__cursors=j()}function aY(r,e){var t=r.__cursors,a=+e;return t.get(a)||(r.__cursorStack.push(a),t.set(a,function rY(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}({key:a})))}function Hh(r,e){for(var t=r.__cursorStack,a=0;a<t.length;a++)e(r.__cursors.get(t[a]))}function K0(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function qt(r,e,t){for(var a=r.layerStack,n=0;n<a.length;n++){var i=a[n].zl,o=a[n].zl2,s=r.layers[i][o];(!t||(!(t&hf)||s.__builtin__)&&(!(t&q0)||!s.__builtin__)&&(!(t&VL)||s!==r.hoverlayer))&&e(s,i,o,n)}}var hf=1,q0=2,VL=4,Wh=hf|VL,nY=function(){function r(e,t,a,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();if(this._opts=a=G({},a||{}),this.dpr=a.devicePixelRatio||Gv,this._singleCanvas=i,this.root=e,e.style&&(Fd(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],i){var l=e,u=l.width,f=l.height;null!=a.width&&(u=a.width),null!=a.height&&(f=a.height),this.dpr=a.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var v=NL(l,this,Lo,0);v.initContext(),this._insertLayer(v,Lo,0,!0),this._domRoot=e}else{this._width=Js(e,0,a),this._height=Js(e,1,a);var s=this._domRoot=function tY(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}(this._width,this._height);e.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t,a=Q((t=e&&!se(e)?{paintAll:!!e}:e||{}).refresh,!0),n=Q(t.refreshHover,!1);if(n&&(this._hoverLayerDirty=2),!a)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random(),this._paintList(i,this._prevDisplayList,this._redrawId);var s=this._backgroundColor;return qt(this._i,function(l,u,f,v){l.refresh&&l.refresh(0===v?s:null)},q0),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,a=this._hoverLayerDirty;if(this._hoverLayerDirty=Z0,a!==Z0&&(!t&&2===a&&(t=this._i.hoverlayer=this._ensureLayer(1e5)),t)){t.clear();for(var i,n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){i||(i=t.ctx).save();var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),So(i,l,n),u&&(l.style=f)}}i&&(Qs(i,n),i.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(1e5)},r.prototype.paintOne=function(e,t){Um(e,t)},r.prototype._paintList=function(e,t,a){if(this._redrawId===a){var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),n)qt(this._i,function(o){o.afterBrush&&o.afterBrush()},Wh),this._paintHoverList(e);else{var i=this;og(function(){i._paintList(e,t,a)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Lo).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),qt(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)},hf)},r.prototype._doPaintList=function(e,t){var a=this,n=!0;return qt(this._i,function(i){var o=!1;if(Hh(i,function(v){(v.drawIdx<v.endIdx||v.notClearIdx>=0)&&(o=!0)}),o||i.__dirty){var s=a._opts.useDirtyRect&&!Y0(i)?i.createRepaintRects(e,t,a._width,a._height):null,l=a._i.layerStack[0],u=!0;i.__dirty&&(u=!1,i.__dirty=!1,i.clear(!1,i.zlevel===l.zl&&i.zlevel2===l.zl2?a._backgroundColor:null,s)),Hh(i,function(v){var c=a._paintPerCurs
vendor: 5,487 bytes, line 1
1or(i,v,e,s,u);n=n&&c})}},Wh),Ee.wxa&&qt(this._i,function(i){i&&i.ctx&&i.ctx.draw&&i.ctx.draw()}),n},r.prototype._paintPerCursor=function(e,t,a,n,i){var o=e.ctx;if(n)if(n.length)for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,a,u,i),o.restore()}else t.drawIdx=t.endIdx;else o.save(),this._paintPerCursorInRect(e,t,a,null,i),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,a,n,i){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},s=e.ctx,l=Y0(e),u=l&&St.getTime(),f=t.drawIdx,v=t.notClearIdx,c=v>=0?Math.min(v,f):f;c<t.endIdx;c++){var h=a[c];if(!(c<f)||h.notClear){if(h.__inHover&&(this._hoverLayerDirty=2),null!=n){var p=h.getPaintRect();p&&p.intersect(n)&&(So(s,h,o),h.setPrevPaintRect(p))}else So(s,h,o);if(l&&St.getTime()-u>15){c++;break}}}Qs(s,o),t.drawIdx=Math.max(c,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,a){t=t||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=Lo,t=0);var i=K0(this._i,e)[t];return i||(i=NL("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&de(i,this._layerConfig[e],!0),(a||n&&e!==Lo)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,a,n){var i=this._i,o=i.layers,s=i.layerStack,l=this._domRoot,u=null;if((!o[t]||!o[t][a])&&function eY(r){return!(!r||!r.__builtin__&&("function"!=typeof r.resize||"function"!=typeof r.refresh))}(e)){for(var f=s.length,v=0;v<f&&(s[v].zl<t||s[v].zl===t&&s[v].zl2<a);)v++;if(v>0&&(u=K0(i,s[v-1].zl)[s[v-1].zl2]),s.splice(v,0,{zl:t,zl2:a}),K0(i,t)[a]=e,!n&&!e.virtual)if(u){var c=u.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return qt(this._i,function(a,n){e.call(t,a,n)})},r.prototype.eachBuiltinLayer=function(e,t){return qt(this._i,function(a,n){e.call(t,a,n)},hf)},r.prototype.eachOtherLayer=function(e,t){return qt(this._i,function(a,n){e.call(t,a,n)},q0)},r.prototype.getLayers=function(){var e={};return qt(this._i,function(t,a,n){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var a=this;if(a._singleCanvas)for(var n=1;n<e.length;n++)if((i=e[n]).zlevel!==e[n-1].zlevel||i.incremental){a._needsManuallyCompositing=!0;break}qt(a._i,function(g){g.__dirty=!1,Hh(g,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},Wh);for(var o,s=null,l=null,u=!1,f=0,v=e.length;f<v;f++){var i,c=(i=e[f]).zlevel,h=i.incremental,p=void 0;if(o!==c&&(o=c,u=!1),h?(u=!0,p=1):p=u?2:0,s&&c===s.zlevel&&p===s.zlevel2||(l=null,(s=a._ensureLayer(c,p)).__builtin__)){if(!(l&&h===l.key||(l=aY(s,h),l.used)))if(l.used=!0,t||l.first!==i.id)s.__dirty=!0,l.first=i.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;else{var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}l.endIdxNew=f+1,1&i.__dirty&&!i.__inHover&&((!h||!i.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&i.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}else hv("ZLevel "+c+" has been used by unknown layer "+s.id)}qt(a._i,function(g){for(var y=g.__cursorStack,m=g.__cursors,_=y.length-1;_>=0;_--){var S=m.get(y[_]);if(S.used){var x=S.endIdxNew;(Y0(g)?x<S.drawIdx:x!==S.endIdx||!x||e[x-1].id!==S.last)&&(g.__dirty=!0),S.endIdx=S.endIdxNew,S.last=x?e[x-1].id:NaN}else g.__dirty=!0,m.removeKey(y[_]),y.splice(_,1)}g.__dirty&&(Hh(g,function(b){b.drawIdx=b.startIdx}),a._hoverLayerDirty===Z0&&(a._hoverLayerDirty=1))},Wh)},r.prototype.clear=function(){return qt(this._i,function(e){e.clear(),BL(e)},hf),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,qt(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?de(a[e],t,!0):a[e]=t,qt(this._i,function(n,i){de(n,a[i],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,a=this._i.layers,n=t.length-1;n>=0;n--){var i=t[n];if(i.zl===e){var o=a[e][i.zl2];if(o.__builtin__)continue;if(t.splice(n,1),a[e][i.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;null!=e&&(n.width=e),null!=t&&(n.height=t),e=Js(i,0,n),t=Js(i,1,n),a.style.display="",(this._width!==e||t!==this._height)&&(a.style.width=e+"px",a.style.height=t+"px",qt(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this._ensureLayer(Lo).resize(e,t)}return this},r.prototype.clearLayer=function(e){A(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(this._singleCanvas&&!this._compositeManually)return this._i.layers[Lo][0].dom;var t=new kL("image",this,(e=e||{}).pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;qt(this._i,function(v){v.__builtin__?a.drawImage(v.dom,0,0,n,i):v.renderToCanvas&&(a.save(),v.renderToCanvas(a),a.restore(
1))})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++)So(a,s[l],o);Qs(a,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const iY=nY;var j0=Math.sin,J0=Math.cos,zL=Math.PI,Io=2*Math.PI,sY=180/zL,lY=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},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,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var p,u=s-o,f=!l,v=Math.abs(u),c=Vn(v-Io)||(f?u>=Io:-u>=Io),h=u>0?u%Io:u%Io+Io;p=!!c||!Vn(v)&&h>=zL==!!f;var d=e+a*J0(o),g=t+n*j0(o);this._start&&this._add("M",d,g);var y=Math.round(i*sY);if(c){var m=1/this._p,_=(f?1:-1)*(Io-m);this._add("A",a,n,y,1,+f,e+a*J0(o+_),t+n*j0(o+_)),m>.01&&this._add("A",a,n,y,0,+f,d,g)}else{var S=e+a*J0(s),x=t+n*j0(s);this._add("A",a,n,y,+p,+f,S,x)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],v=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h))return void(this._invalid=!0);f.push(Math.round(h*v)/v)}this._d.push(e+f.join(" ")),this._start="Z"===e},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const GL=lY;var pf="none",uY=Math.round,Q0=["lineCap","miterLimit","lineJoin"],cY=W(Q0,function(r){return"stroke-"+r.toLowerCase()});var FL="http://www.w3.org/2000/svg",HL="http://www.w3.org/1999/xlink",WL="ecmeta_";function UL(r){return document.createElementNS(FL,r)}function wt(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function $0(r,e){var t=(e=e||{}).newline?"\n":"";return function a(n){var i=n.children,o=n.tag,l=n.text;return function gY(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;!1!==n&&(!0!==n&&null!=n&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}(o,n.attrs)+("style"!==o?kt(l):l||"")+(i?""+t+W(i,function(u){return a(u)}).join(t)+t:"")+function yY(r){return"</"+r+">"}(o)}(r)}function e_(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function YL(r,e,t,a){return wt("svg","root",{width:r,height:e,xmlns:FL,"xmlns:xlink":HL,version:"1.1",baseProfile:"full",viewBox:!!a&&"0 0 "+r+" "+e},t)}var _Y=0;function ZL(){return _Y++}var XL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Po="transform-origin";function SY(r,e,t){var a=G({},r.shape);G(a,e),r.buildPath(t,a);var n=new GL;return n.reset(kb(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function xY(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Po]=t+"px "+a+"px")}var bY={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KL(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function qL(r){return X(r)?XL[r]?"cubic-bezier("+XL[r]+")":lg(r)?r:"":""}function Uh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Vu){var s=function wY(r,e,t){var i,o,n={};if(A(r.shape.paths,function(l){var u=e_(t.zrId);u.animation=!0,Uh(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,c=Te(f),h=c.length;if(h){var p=f[o=c[h-1]];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),i){e.d=!1;var s=KL(n,t);return i.replace(o,s)}}(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],v=[f.getMaxTime()/1e3+"s"],c=qL(f.getClip().easing),h=f.getDelay();v.push(c||"linear"),h&&v.push(h/1e3+"s"),f.getLoop()&&v.push("infinite");var p=v.join(" ");
1l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,x={},b={},w={},C="animation-timing-function";function T(ve,ee,_e){for(var te=ve.getTracks(),ce=ve.getMaxTime(),Ge=0;Ge<te.length;Ge++){var Le=te[Ge];if(Le.needsAnimate()){var Ve=Le.keyframes,We=Le.propName;if(_e&&(We=_e(We)),We)for(var ht=0;ht<Ve.length;ht++){var wr=Ve[ht],fr=Math.round(wr.time/ce*100)+"%",is=qL(wr.easing),Gl=wr.rawValue;(X(Gl)||Ae(Gl))&&(ee[fr]=ee[fr]||{},ee[fr][We]=wr.rawValue,is&&(ee[fr][C]=is))}}}}for(var M=0;M<S;M++)(I=(D=_[M]).targetName)?"shape"===I&&T(D,b):!a&&T(D,x);for(var L in x){var P={};ua(P,r),G(P,x[L]);var E=Ob(P),R=x[L][C];w[L]=E?{transform:E}:{},xY(w[L],P),R&&(w[L][C]=R)}var k,O=!0;for(var L in b){w[L]=w[L]||{};var V=!k;R=b[L][C],V&&(k=new Sa);var z=k.len();k.reset(),w[L].d=SY(r,b[L],k);var F=k.len();if(!V&&z!==F){O=!1;break}R&&(w[L][C]=R)}if(!O)for(var L in w)delete w[L].d;if(!a)for(M=0;M<S;M++){var D,I;"style"===(I=(D=_[M]).targetName)&&T(D,w,function(te){return bY[te]})}var Z,U=Te(w),Y=!0;for(M=1;M<U.length;M++){var $=U[M-1];if(w[$][Po]!==w[U[M]][Po]){Y=!1;break}Z=w[$][Po]}if(Y&&Z){for(var L in w)w[L][Po]&&delete w[L][Po];e[Po]=Z}if(ke(U,function(ve){return Te(w[ve]).length>0}).length)return KL(w,t)+" "+m[0]+" both"}for(var g in l)(s=d(l[g]))&&o.push(s);if(o.length){var y=t.zrId+"-cls-"+ZL();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function jL(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+ZL(),t.cssStyleCache[n]=i,t.cssNodes["."+i+(a?":hover":"")]=r),e.class=e.class?e.class+" "+i:i}var df=Math.round;function JL(r){return r&&X(r.src)}function QL(r){return r&&ae(r.toDataURL)}function t_(r,e,t,a){(function hY(r,e,t,a){var n=null==e.opacity?1:e.opacity;if(t instanceof At)r("opacity",n);else{if(function fY(r){var e=r.fill;return null!=e&&e!==pf}(e)){var i=ou(e.fill);r("fill",i.color);var o=null!=e.fillOpacity?e.fillOpacity*i.opacity*n:i.opacity*n;(a||o<1)&&r("fill-opacity",o)}else r("fill",pf);if(function vY(r){var e=r.stroke;return null!=e&&e!==pf}(e)){var s=ou(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*n:s.opacity*n,v=e.strokeFirst;if((a||1!==u)&&r("stroke-width",u),(a||v)&&r("paint-order",v?"stroke":"fill"),(a||f<1)&&r("stroke-opacity",f),e.lineDash){var c=Hm(t),h=c[0],p=c[1];h&&(p=uY(p||0),r("stroke-dasharray",h.join(",")),(p||a)&&r("stroke-dashoffset",p))}else a&&r("stroke-dasharray",pf);for(var d=0;d<Q0.length;d++){var g=Q0[d];if(a||e[g]!==fc[g]){var y=e[g]||fc[g];y&&r(cY[d],y)}}}else a&&r("stroke",pf)}})(function(n,i){var o="fill"===n||"stroke"===n;o&&Eb(i)?nI(e,r,n,a):o&&pg(i)?iI(t,r,n,a):r[n]=i,o&&a.ssr&&"none"===i&&(r["pointer-events"]="visible")},e,t,!1),function PY(r,e,t){var a=r.style;if(function VV(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}(a)){var n=function zV(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(",")}(r),i=t.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=a.shadowOffsetX||0,v=a.shadowOffsetY||0,c=a.shadowBlur,h=ou(a.shadowColor),p=h.opacity,d=h.color,m=c/2/l+" "+c/2/u;
1o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=wt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[wt("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),i[n]=o}e.filter=Ev(o)}}(t,r,a)}function r_(r,e){var t=aw(e);t&&(t.each(function(a,n){null!=a&&(r[(WL+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[WL+"silent"]="true"))}function $L(r){return Vn(r[0]-1)&&Vn(r[1])&&Vn(r[2])&&Vn(r[3]-1)}function a_(r,e,t){if(e&&(!function CY(r){return Vn(r[4])&&Vn(r[5])}(e)||!$L(e))){var a=t?10:1e4;r.transform=$L(e)?"translate("+df(e[4]*a)/a+" "+df(e[5]*a)/a+")":function OV(r){return"matrix("+Rv(r[0])+","+Rv(r[1])+","+Rv(r[2])+","+Rv(r[3])+","+hg(r[4])+","+hg(r[5])+")"}(e)}}function eI(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(df(a[i][0]*t)/t),n.push(df(a[i][1]*t)/t);e.points=n.join(" ")}function tI(r){return!r.smooth}var MY={circle:[function AY(r){var e=W(r,function(t){return"string"==typeof t?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];null!=s&&(a[o[1]]=df(s*n)/n)}}}(["cx","cy","r"])],polyline:[eI,tI],polygon:[eI,tI]};function rI(r,e){var t=r.style,a=r.shape,n=MY[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&kb(r)||4;if(!n||e.willUpdate||n[1]&&!n[1](a)||o&&function DY(r){for(var e=r.animators,t=0;t<e.length;t++)if("shape"===e[t].targetName)return!0;return!1}(r)||l<1){var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;v&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==h||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new GL),d.reset(u),c.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=h,p.__svgPathStrokePercent=l),i.d=d.getStr()}else{s=r.type;var f=Math.pow(10,u);n[0](a,i,f)}return a_(i,r.transform),t_(i,t,r,e),r_(i,r),e.animation&&Uh(r,i,e),e.emphasis&&function TY(r,e,t){if(!r.ignore)if(r.isSilent())jL(a={"pointer-events":"none"},e,t,!0);else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=Pv(l))}var u=n.lineWidth;u&&(u/=!n.strokeNoScale&&r.transform?r.transform[0]:1);var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),jL(a,e,t,!0)}}(r,i,e),wt(s,r.id+"",i)}function aI(r,e){return r instanceof we?rI(r,e):r instanceof At?function LY(r,e){var t=r.style,a=t.image;if(a&&!X(a)&&(JL(a)?a=a.src:QL(a)&&(a=a.toDataURL())),a){var n=t.x||0,i=t.y||0,l={href:a,width:t.width,height:t.height};return n&&(l.x=n),i&&(l.y=i),a_(l,r.transform),t_(l,t,r,e),r_(l,r),e.animation&&Uh(r,l,e),wt("image",r.id+"",l)}}(r,e):r instanceof mu?function IY(r,e){var t=r.style,a=t.text;if(null!=a&&(a+=""),a&&!isNaN(t.x)&&!isNaN(t.y)){var n=t.font||Wa,i=t.x||0,o=function BV(r,e,t){return"top"===t?r+=e/2:"bottom"===t&&(r-=e/2),r}(t.y||0,fu(n),t.textBaseline),l={"dominant-baseline":"central","text-anchor":NV[t.textAlign]||t.textAlign};if(Qw(t)){var u="",f=t.fontStyle,v=jw(t.fontSize);if(!parseFloat(v))return;var h=t.fontWeight;u+="font-size:"+v+";font-family:"+(t.fontFamily||Bx)+";",f&&"normal"!==f&&(u+="font-style:"+f+";"),h&&"normal"!==h&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),a_(l,r.transform),t_(l,t,r,e),r_(l,r),e.animation&&Uh(r,l,e),wt("text",r.id+"",l,void 0,a)}}(r,e):void 0}function nI(r,e,t,a){var i,n=r[t],o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(Pb(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else{if(!Rb(n))return;i="radialGradient",o.cx=Q(n.x,.5),o.cy=Q(n.y,.5),o.r=Q(n.r,.5)}for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var v=100*hg(s[u].offset)+"%",h=ou(s[u].color),d=h.opacity,g={offset:v};g["stop-color"]=h.color,d<1&&(g["stop-opacity"]=d),l.push(wt("stop",u+"",g))}var m=$0(wt(i,"",o,l)),_=a.gradientCache,S=_[m];S||(S=a.zrId+"-g"+a.gradientIdx++,_[m]=S,o.id=S,a.defs[S]=wt(i,S,o,l)),e[t]=Ev(S)}
vendor: 4,489 bytes, line 1
1function iI(r,e,t,a){var v,n=r.style[t],i=r.getBoundingRect(),o={},s=n.repeat,l="no-repeat"===s,u="repeat-x"===s,f="repeat-y"===s;if(Ib(n)){var c=n.imageWidth,h=n.imageHeight,p=void 0,d=n.image;if(X(d)?p=d:JL(d)?p=d.src:QL(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Rt(c,g),Rt(h,g)}else if(null==c||null==h){var y=function(M,D){if(M){var I=M.elm,L=c||D.width,P=h||D.height;"pattern"===M.tag&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),M.attrs.width=L,M.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=ey(p,null,r,function(M){l||y(b,M),y(v,M)});m&&m.width&&m.height&&(c=c||m.width,h=h||m.height)}v=wt("image","img",{href:p,width:c,height:h}),o.width=c,o.height=h}else n.svgElement&&(v=re(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(v){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",null!=_&&!isNaN(_)&&(o.width=_),null!=S&&!isNaN(S)&&(o.height=S);var x=Ob(n);x&&(o.patternTransform=x);var b=wt("pattern","",o,[v]),w=$0(b),C=a.patternCache,T=C[w];T||(T=a.zrId+"-p"+a.patternIdx++,C[w]=T,o.id=T,b=a.defs[T]=wt("pattern",T,o,[v])),e[t]=Ev(T)}}function RY(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){var o={id:i=t.zrId+"-c"+t.clipPathIdx++};a[r.id]=i,n[i]=wt("clipPath",i,o,[rI(r,t)])}e["clip-path"]=Ev(i)}function oI(r){return document.createTextNode(r)}function Ro(r,e,t){r.insertBefore(e,t)}function sI(r,e){r.removeChild(e)}function lI(r,e){r.appendChild(e)}function uI(r){return r.parentNode}function fI(r){return r.nextSibling}function n_(r,e){r.textContent=e}var kY=wt("","");function i_(r){return void 0===r}function Ia(r){return void 0!==r}function OY(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;void 0!==i&&(a[i]=n)}return a}function gf(r,e){return r.tag===e.tag&&r.key===e.key}function yf(r){var e,t=r.children,a=r.tag;if(Ia(a)){var n=r.elm=UL(a);if(o_(kY,r),H(t))for(e=0;e<t.length;++e){var i=t[e];null!=i&&lI(n,yf(i))}else Ia(r.text)&&!se(r.text)&&lI(n,oI(r.text))}else r.elm=oI(r.text);return r.elm}function cI(r,e,t,a,n){for(;a<=n;++a){var i=t[a];null!=i&&Ro(r,yf(i),e)}}function Yh(r,e,t,a){for(;t<=a;++t){var n=e[t];null!=n&&(Ia(n.tag)?sI(uI(n.elm),n.elm):sI(r,n.elm))}}function o_(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t];n[t]!==o&&(!0===o?a.setAttribute(t,""):!1===o?a.removeAttribute(t):"style"===t?a.style.cssText=o:120!==t.charCodeAt(0)?a.setAttribute(t,o):"xmlns:xlink"===t||"xmlns"===t?a.setAttributeNS("http://www.w3.org/2000/xmlns/",t,o):58===t.charCodeAt(3)?a.setAttributeNS("http://www.w3.org/XML/1998/namespace",t,o):58===t.charCodeAt(5)?a.setAttributeNS(HL,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function pl(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(o_(r,e),i_(e.text)?Ia(a)&&Ia(n)?a!==n&&function NY(r,e,t){for(var v,c,h,a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l];a<=i&&n<=l;)null==o?o=e[++a]:null==s?s=e[--i]:null==u?u=t[++n]:null==f?f=t[--l]:gf(o,u)?(pl(o,u),o=e[++a],u=t[++n]):gf(s,f)?(pl(s,f),s=e[--i],f=t[--l]):gf(o,f)?(pl(o,f),Ro(r,o.elm,fI(s.elm)),o=e[++a],f=t[--l]):gf(s,u)?(pl(s,u),Ro(r,s.elm,o.elm),s=e[--i],u=t[++n]):(i_(v)&&(v=OY(e,a,i)),i_(c=v[u.key])||(h=e[c]).tag!==u.tag?Ro(r,yf(u),o.elm):(pl(h,u),e[c]=void 0,Ro(r,h.elm,o.elm)),u=t[++n]);(a<=i||n<=l)&&(a>i?cI(r,null==t[l+1]?null:t[l+1].elm,t,n,l):Yh(r,e,a,i))}(t,a,n):Ia(n)?(Ia(r.text)&&n_(t,""),cI(t,null,n,0,n.length-1)):Ia(a)?Yh(t,a,0,a.length-1):Ia(r.text)&&n_(t,""):r.text!==e.text&&(Ia(a)&&Yh(t,a,0,a.length-1),n_(t,e.text)))}var VY=0,zY=function(){function r(e,t,a){if(this.type="svg",this.configLayer=function(){},this.storage=t,this._opts=a=G({},a),this.root=e,this._id="zr"+VY++,this._oldVNode=YL(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=UL("svg");o_(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;
1left:0;top:0;user-select:none",function BY(r,e){if(gf(r,e))pl(r,e);else{var t=r.elm,a=uI(t);yf(e),null!==a&&(Ro(a,e.elm,fI(t)),Yh(a,[r],0,0))}}(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return aI(e,e_(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=e_(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=function FY(r,e,t,a){var n;if(t&&"none"!==t)if(n=wt("rect","bg",{width:r,height:e,x:"0",y:"0"}),Eb(t))nI({fill:t},n.attrs,"fill",a);else if(pg(t))iI({style:{fill:t},dirty:et,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=ou(t),s=i.opacity;n.attrs.fill=i.color,s<1&&(n.attrs["fill-opacity"]=s)}return n}(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=wt("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=W(Te(i.defs),function(c){return i.defs[c]});if(u.length&&o.push(wt("defs","defs",{},u)),e.animation){var f=function mY(r,e,t){var a=(t=t||{}).newline?"\n":"",n=" {"+a,i=a+"}",o=W(Te(r),function(l){return l+n+W(Te(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=W(Te(e),function(l){return"@keyframes "+l+n+W(Te(e[l]),function(u){return u+n+W(Te(e[l][u]),function(f){var v=e[l][u][f];return"d"===f&&(v='path("'+v+'")'),f+":"+v+";"}).join(a)+i}).join(a)+i}).join(a);return o||s?["<![CDATA[",o,s,"]]>"].join(a):""}(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=wt("style","stl",{},[],f);o.push(v)}}return YL(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return $0(this.renderToVNode({animation:Q((e=e||{}).cssAnimation,!0),emphasis:Q(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Q(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var s,l,n=e.length,i=[],o=0,u=0,f=0;f<n;f++){var v=e[f];if(!v.invisible){var c=v.__clipPaths,h=c&&c.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(h-1,p-1);d>=0&&(!c||!l||c[d]!==l[d]);d--);for(var g=p-1;g>d;g--)s=i[--o-1];for(var y=d+1;y<h;y++){var m={};RY(c[y],m,t);var _=wt("g","clip-g-"+u++,m,[]);(s?s.children:a).push(_),i[o++]=_,s=_}l=c;var S=aI(v,t);S&&(s?s.children:a).push(S)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(null!=e&&(a.width=e),null!=t&&(a.height=t),n&&i&&(i.style.display="none",e=Js(n,0,a),t=Js(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(pg(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=FV(t))&&a+"base64,"+t:a+"charset=UTF-8,"+encodeURIComponent(t)},r}();const HY=zY;var UY=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return N(e,r),e.prototype.getInitialData=function(t){return Ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new oe,n=lt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s="none"===i?"circle":i,l=.8*t.itemHeight,u=lt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);return a.add(u),u.setStyle(t.itemStyle),u.rotation=("inherit"===t.iconRotate?o:t.iconRotate||0)*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=B.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(Ye);const YY=UY;function dl(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(1===a){var n=zs(r,e,t[0]);return null!=n?n+"":null}if(a){for(var i=[],o=0;o<t.length;o++)i.push(zs(r,e,t[o]));return i.join(" ")}}function hI(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!H(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var ZY=function(r){function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return N(e,r),e.prototype._createSymbol=function(t,a,n,i,o,s){this.removeAll();var l=lt(t,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=XY,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){ln(this.childAt(0))},e.prototype.downplay=function(){un(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var c=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,c)}else{(h=this.childAt(0)).silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(p):Pe(h,p,s,a),kr(h)}if(this._updateCommon(t,a,l,n,i),f){var h=this.childAt(0);v||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}},h.scaleX=h.scaleY=0,h.style.opacity=0,Ze(h,p,s,a))}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var u,f,v,c,h,p,d,g,y,s=this.childAt(0),l=t.hostModel;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,c=i.focus,h=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),d=yt(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=mo(t.getItemVisual(a,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(a,"style"),w=b.fill;if(s instanceof At){var C=s.style;s.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}
vendor: 1,417 bytes, line 1
1else s.useStyle(s.__isEmptyBrush?G({},b):b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=t.getItemVisual(a,"liftZ"),M=this._z2;null!=T?null==M&&(this._z2=s.z2,s.z2+=T):null!=M&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;bt(s,d,{labelFetcher:l,labelDataIndex:a,defaultText:function I(E){return D?t.getName(E):dl(t,E)},inheritColor:w,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var P=null==g||!0===g?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Je(this,c,h,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=ue(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Xn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Xn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return js(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e}(oe);function XY(r,e){this.parent.drift(r,e)}const mf=ZY;function Zh(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a&&a.isIgnore&&a.isIgnore(t))&&
vendor: 7,259 bytes, line 1
1!(a&&a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&"none"!==r.getItemVisual(t,"symbol")}function pI(r){return null!=r&&!se(r)&&(r={isIgnore:r}),r||{}}function dI(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:yt(e),cursorStyle:e.get("cursor")}}function gI(r,e,t,a,n,i,o){var s=new r(e,t,a,n);return s.setPosition(i),e.setItemGraphicEl(t,s),o.add(s),s}var KY=function(){function r(e){this.group=new oe,this._SymbolCtor=e||mf}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=pI(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=dI(e),u={disableAnimation:s},f=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||a.removeAll(),e.diff(i).add(function(v){var c=f(v);Zh(e,c,v,t)&&gI(o,e,v,l,u,c,a)}).update(function(v,c){var h=i.getItemGraphicEl(c),p=f(v);if(Zh(e,p,v,t)){var d=e.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==d)a.remove(h),(h=new o(e,v,l,u)).setPosition(p);else{h.updateData(e,v,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):Pe(h,y,n)}a.add(h),e.setItemGraphicEl(v,h)}else a.remove(h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&c.fadeOut(function(){a.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var a=this,i=0,o=t.getStore().count();i<o;i++){var s=t.getItemGraphicEl(i),l=a._getSymbolPoint(i);Zh(t,l,i,e)?((s=s||gI(a._SymbolCtor,t,i,a._seriesScope,{disableAnimation:!0},l,a.group)).stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),t.setItemGraphicEl(i,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=dI(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a,n){function i(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=Ws)}this._progressiveEls=[],n=pI(n);for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(Zh(t,s,o,n)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(i),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){Jn(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r}();const _f=KY;function yI(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=function qY(r,e){var t=0,a=r.scale.getExtent();return"start"===e?t=a[0]:"end"===e?t=a[1]:Ae(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f="x"===s||"radius"===s?1:0,v=W(r.dimensions,function(p){return e.mapDimension(p)}),c=!1,h=e.getCalculationInfo("stackResultDimension");return gn(e,v[0])&&(c=!0,v[0]=h),gn(e,v[1])&&(c=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function mI(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function Fr(r,e){return!isFinite(r)||!isFinite(e)}typeof Int8Array!==yr&&Int8Array,typeof Int16Array!==yr&&Int16Array,typeof Int32Array!==yr&&Int32Array,typeof Uint8Array!==yr&&Uint8Array,typeof Uint16Array!==yr&&Uint16Array,typeof Uint32Array!==yr&&Uint32Array,typeof Uint8ClampedArray!==yr&&Uint8ClampedArray;var jY=typeof Float32Array!==yr?Float32Array:void 0,JY=typeof Float64Array!==yr?Float64Array:void 0;function Pa(r){return s_({ctor:jY},r).arr}function s_(r,e){var t=r.arr,a=r.ctor;if(e>cu&&(e=cu),!t||r.typed&&t.length<e){var n=void 0;if(a)try{n=new a(e),r.typed=!0,t&&n.set(t)}catch{}if(!n&&(n=[],r.typed=!1,t))for(var i=0,o=t.length;i<o;i++)n[i]=t[i];r.arr=n}return r}var ti=Math.min,ri=Math.max;function l_(r,e,t,a,n,i,o,s,l){for(var u,f,v,c,h,p,d=t,g=0;g<a;g++){var y=e[2*d],m=e[2*d+1];if(d>=n||d<0)break;if(Fr(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),v=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var x=d+i,b=e[2*x],w=e[2*x+1];b===y&&w===m&&g<a;)g++,b=e[2*(x+=i)],w=e[2*x+1],_=(y=e[2*(d+=i)])-u,S=(m=e[2*d+1])-f;var C=g+1;if(l)for(;Fr(b,w)&&C<a;)C++,b=e[2*(x+=i)],w=e[2*x+1];var T=.5,M=0,D=0,I=void 0,L=void 0;if(C>=a||Fr(b,w))h=y,p=m;else{M=b-u,D=w-f;var P=y-u,E=b-y,R=m-f,k=w-m,O=void 0,V=void 0;if("x"===s){var z=M>0?1:-1;h=y-z*(O=Math.abs(P))*o,p=m,I=y+z*(V=Math.abs(E))*o,L=m}else if("y"===s){var F=D>0?1:-1;h=y,p=m-F*(O=Math.abs(R))*o,I=y,L=m+F*(V=Math.abs(k))*o}else O=Math.sqrt(P*P+R*R),h=y-M*o*(1-(T=(V=Math.sqrt(E*E+k*k))/(V+O))),p=m-D*o*(1-T),L=m+D*o*T,I=ti(I=y+M*o*T,ri(b,y)),L=ti(L,ri(w,m)),I=ri(I,ti(b,y)),p=m-(D=(L=ri(L,ti(w,m)))-m)*O/V,h=ti(h=y-(M=I-y)*O/V,ri(u,y)),p=ti(p,ri(f,m)),I=y+(M=y-(h=ri(h,ti(u,y))))*V/O,L=m+(D=m-(p=ri(p,ti(f,m))))*V/O}r.bezierCurveTo(v,c,h,p,y,m),v=I,c=L}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var _I=function(){return function r(){this.smooth=0,this.smoothConstraint=!0}}(),e8=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return N(e,r),e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new _I},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Fr(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Fr(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=l_(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var s,l,i=this.path.data,o=Sa.CMD,u="x"===a,f=[],v=0;v<i.length;){var h=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(i[v++]){case o.M:s=i[v++],l=i[v++];break;case o.L:if(h=i[v++],p=i[v++],(_=u?(t-s)/(h-s):(t-l)/(p-l))<=1&&_>=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=p;break;case o.C:h=i[v++],p=i[v++],d=i[v++],g=i[v++],y=i[v++],m=i[v++];var x=u?Mv(s,h,d,y,t,f):Mv(l,p,g,m,t,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0)return S=u?xt(l,p,g,m,w):xt(s,h,d,y,w),u?[t,S]:[S,t]}s=y,l=m}}},e}(we),t8=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e}(_I),SI=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return N(e,r),e.prototype.getDefaultShape=function(){return new t8},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Fr(n[2*s-2],n[2*s-1]);s--);for(;o<s&&Fr(n[2*o],n[2*o+1]);o++);}for(;o<s;){var u=l_(t,n,o,s,s,1,a.smooth,l,a.connectNulls);l_(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e}(we);function xI(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||0;
vendor: 4,983 bytes, line 1
1o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var v=new be({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),h=c.isHorizontal(),p=c.inverse;h?(p&&(v.shape.x+=l),v.shape.width=0):(p||(v.shape.y+=u),v.shape.height=0);var d=ae(n)?function(g){n(g,v)}:null;Ze(v,{shape:{width:l,height:u,x:o,y:s}},t,null,a,d)}return v}function bI(r,e,t){var a=r.getArea(),n=Ie(a.r0,1),i=Ie(a.r,1),o=new Yt({shape:{cx:Ie(r.cx,1),cy:Ie(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});return e&&("angle"===r.getBaseAxis().dim?o.shape.endAngle=a.startAngle:o.shape.r=n,Ze(o,{shape:{endAngle:a.endAngle,r:i}},t)),o}function Eo(r,e,t,a,n){return r?"polar"===r.type?bI(r,e,t):"cartesian2d"===r.type?xI(r,e,t,a,n):null:null}function gl(r,e,t){r?e.setClipPath(t):e.removeClipPath()}function wI(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function ko(r,e){return r.type===e}function TI(r){var e=r.dimensions;return"lng"===e[0]&&"lat"===e[1]&&!!r.getViewRect}function CI(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function AI(r){for(var e=[1/0,-1/0],t=[1/0,-1/0],a=0;a<r.length;){var n=r[a++],i=r[a++];Fr(n,i)||(Jg(e,n),Jg(t,i))}return[e,t]}function MI(r,e){var t=AI(r),a=t[0],n=t[1],i=AI(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(n[0]-s[0]),Math.abs(a[1]-o[1]),Math.abs(n[1]-s[1]))}function DI(r){return Ae(r)?r:r?.5:0}function ai(r,e,t,a,n){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,s=[],l=0,u=[],f=[],v=[],c=[];if(n){for(l=0;l<r.length;l+=2){var h=e||r;Fr(h[l],h[l+1])||c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=v[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=[];u[o]=d[o]=(f[o]+v[o])/2,u[1-o]=f[1-o],d[1-o]=v[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function LI(r,e){return[r[2*e],r[2*e+1]]}function II(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Qt.length;e++)if(r.get([Qt[e],"endLabel","show"]))return!0;return!1}function u_(r,e,t,a){if(ko(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=II(a)?function(h,p){r._endLabelOnDuring(h,p,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=xI(e,t,a,function(){var h=r._endLabel;h&&t&&null!=s.originalX&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var v=f.shape,c=Math.max(v.width,v.height);u?(v.y-=c,v.height+=2*c):(v.x-=c,v.width+=2*c)}return l&&l(1,f),f}return bI(e,t,a)}var f8=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.init=function(){var t=new oe,a=new _f;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=q(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],v="polar"===i.type,c=this._coordSys,h=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,y=!a.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=yI(i,s,_),x=m&&function r8(r,e,t){if(null==t.valueDim)return[];for(var a=e.count(),n=Pa(2*a),i=0;i<a;i++){var o=mI(t,r,e,i);n[2*i]=o[0],n[2*i+1]=o[1]}return n}(i,s,S),b=t.get("showSymbol"),w=t.get("connectNulls"),C=b&&!v&&function i8(r,e,t){var a=r.get("showAllSymbol"),n="auto"===a;if(!a||n){var i=t.getAxesByScale("ordinal")[0];if(i&&(!n||!function o8(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(1.5*mf.getSymbolSize(e,o)[r.isHorizontal()?1:0]>a)return!1;return!0}(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){l.tick.offInterval||(s[ul(i.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}(t,s,i),T=this._data;T&&T.eachItemGraphicEl(function(ee,_e){ee.__temp&&(o.remove(ee),T.setItemGraphicEl(_e,null))}),b||h.remove(),o.add(g);var D,M=!v&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(D=i.getArea()).width?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=function n8(r,e,t){var a=r.getVisual("visualMeta");if(a&&a.length&&r.count()&&"cartesian2d"===e.type){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if("x"===(n=s&&s.coordDim)||"y"===n){i=a[o];break}}if(i){var l=e.getAxis(n),u=W(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var c=function a8(r,e){var n,i,t=[],a=r.length;function o(f,v,c){var h=f.coord;return{coord:c,color:cg((c-h)/(v.coord-h),[f.color,v.color])}}for(var s=0;s<a;
vendor: 1,772 bytes, line 1
1s++){var l=r[s],u=l.coord;if(u<0)n=l;else{if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}}return t}(u,"x"===n?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var d=c[0].coord-10,g=c[h-1].coord+10,y=g-d;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-d)/y}),c.push({offset:h?c[h-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:v[0]||"transparent"});var m=new fo(0,0,0,0,c,!0);return m[n]=d,m[n+"2"]=g,m}}}(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(p&&c.type===i.type&&M===this._step){m&&!d?d=this._newPolygon(f,x):d&&!m&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,Qi(I));var L=g.getClipPath();L?Ze(L,{shape:u_(this,i,!1,t).shape},t):g.setClipPath(u_(this,i,!0,t)),b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ee){return[f[2*ee],f[2*ee+1]]}}),(!CI(this._stackedOnPoints,x)||!CI(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,n,M,_,w):(M&&(x&&(x=ai(x,f,i,M,w)),f=ai(f,null,i,M,w)),p.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:x})))}else b&&h.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ee){return[f[2*ee],f[2*ee+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),M&&(x&&(x=ai(x,f,i,M,w)),f=ai(f,null,i,M,w)),p=this._newPolyline(f),m?d=this._newPolygon(f,x):d&&(g.remove(d),d=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,Qi(I)),g.setClipPath(u_(this,i,!0,t));var E=t.getModel("emphasis"),R=E.get("focus"),k=E.get("blurScope"),O=E.get("disabled");p.useStyle(ie(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),gt(p,t,"lineStyle"),p.style.lineWidth>
vendor: 12,575 bytes, line 1
10&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),ue(p).seriesIndex=t.seriesIndex,Je(p,R,k,O);var z=DI(t.get("smooth")),F=t.get("smoothMonotone");if(p.setShape({smooth:z,smoothMonotone:F,connectNulls:w}),d){var U=s.getCalculationInfo("stackedOnSeries"),Y=0;d.useStyle(ie(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(Y=DI(U.get("smooth"))),d.setShape({smooth:z,stackedOnSmooth:Y,smoothMonotone:F,connectNulls:w}),gt(d,t,"areaStyle"),ue(d).seriesIndex=t.seriesIndex,Je(d,R,k,O)}var Z=this._changePolyState;s.eachItemGraphicEl(function(ee){ee&&(ee.onHoverStateChange=Z)}),this._polyline.onHoverStateChange=Z,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=_;var $=t.get("triggerEvent"),ye=t.get("triggerLineEvent"),ve=!0===ye||!0===$||"area"===$;this.packEventData(t,p,!0===ye||!0===$||"line"===$),d&&this.packEventData(t,d,ve)},e.prototype.packEventData=function(t,a,n){ue(a).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:a===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=Oi(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&null!=s&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[2*s],v=l[2*s+1];if(Fr(f,v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var c=t.get("zlevel")||0,h=t.get("z")||0;(u=new mf(o,s)).x=f,u.y=v,u.setZ(c,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ze.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=Oi(o,i);if(this._changePolyState("normal"),null!=s&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ze.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;yc(this._polyline,t),a&&yc(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new e8({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new SI({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;"cartesian2d"===a.type?(i=s.isHorizontal(),o=!1):"polar"===a.type&&(i="angle"===s.dim,o=!0);var u=t.hostModel,f=u.get("animationDuration");ae(f)&&(f=f(null));var v=u.get("animationDelay")||0,c=ae(v)?v(null):v;t.eachItemGraphicEl(function(h,p){var d=h;if(d){var y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,x=a.pointToCoord([h.x,h.y]);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else i?(y=n.x,m=n.x+n.width,_=h.x):(y=n.y+n.height,m=n.y,_=h.y);var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var C=ae(v)?v(p):f*w+c,T=d.getSymbolPath(),M=T.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),T.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(II(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new Me({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=function s8(r){for(var e=r.length/2;e>0&&Fr(r[2*e-2],r[2*e-1]);e--);return e-1}(l);f>=0&&(bt(s,yt(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(v,c,h){return null!=h?hI(o,h):dl(o,v)},enableTextSetter:!0},function u8(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&null==i.originalX&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),c=n.hostModel,h=c.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",C=function l8(r,e,t){for(var i,o,a=r.length/2,n="x"===t?0:1,s=0,l=-1,u=0;u<a;u++)if(!Fr(o=r[2*u+n],r[2*u+1-n])){if(0===u){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}(v,S,w),T=C.range,M=T[1]-T[0],D=void 0;if(M>=1){if(M>1&&!h){var I=LI(v,T[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=c.getRawValue(T[0]))}else{(I=f.getPointOn(S,w))&&u.attr({x:I[0]+x,y:I[1]+b});var L=c.getRawValue(T[0]),P=c.getRawValue(T[1]);o&&(D=_w(n,p,L,P,C.t))}i.lastFrameIndex=T[0]}else{var E=1===t||i.lastFrameIndex>0?T[0]:0;I=LI(v,E),o&&(D=c.getRawValue(E)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var R=Is(u);"function"==typeof R.setLabelText&&R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,v=t.hostModel,c=function $Y(r,e,t,a,n,i,o){for(var l=function QY(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}(r,e),u=[],f=[],v=[],c=[],h=[],p=[],d=[],g=yI(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":var C=y[b=2*S.idx],T=y[b+1],M=m[w=2*S.idx1],D=m[w+1];(isNaN(C)||isNaN(T))&&(C=M,T=D),u.push(C,T),f.push(M,D),v.push(t[b],t[b+1]),c.push(a[w],a[w+1]),d.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=n.dataToPoint([e.get(L[0],I),e.get(L[1],I)]);w=2*I,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var E=mI(g,n,e,I);v.push(E[0],E[1]),c.push(a[w],a[w+1]),d.push(e.getRawIndex(I));break;case"-":x=!1}x&&(h.push(S),p.push(p.length))}p.sort(function($,ye){return d[$]-d[ye]});var R=u.length,k=Pa(R),O=Pa(R),V=Pa(R),z=Pa(R),F=[];for(_=0;_<p.length;_++){var U=p[_],Y=2*_,Z=2*U;k[Y]=u[Z],k[Y+1]=u[Z+1],O[Y]=f[Z],O[Y+1]=f[Z+1],V[Y]=v[Z],V[Y+1]=v[Z+1],z[Y]=c[Z],z[Y+1]=c[Z+1],F[_]=h[U]}return{current:k,next:O,stackedOnCurrent:V,stackedOnNext:z,status:F}}(this._data,t,this._stackedOnPoints,a,this._coordSys,0,this._valueOrigin),h=c.current,p=c.stackedOnCurrent,d=c.next,g=c.stackedOnNext;if(o&&(p=ai(c.stackedOnCurrent,c.current,n,o,l),h=ai(c.current,null,n,o,l),g=ai(c.stackedOnNext,c.next,n,o,l),d=ai(c.next,null,n,o,l)),MI(h,d)>3e3||f&&MI(p,g)>3e3)return u.stopAnimation(),u.setShape({points:d}),void(f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g})));u.shape.__points=c.current,u.shape.points=h;var y={shape:{points:d}};c.current!==h&&(y.shape.__points=c.next),u.stopAnimation(),Pe(u,y,v),f&&(f.setShape({points:h,stackedOnPoints:p}),f.stopAnimation(),Pe(f,{shape:{stackedOnPoints:g}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++)if("="===_[S].cmd){var b=t.getItemGraphicEl(_[S].idx1);b&&m.push({el:b,ptIdx:S})}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,C=0;C<m.length;C++){var T=m[C].el,M=2*m[C].ptIdx;T.x=w[M],T.y=w[M+1],T.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(ze);const v8=f8;function wf(r,e){return{seriesType:r,plan:lo(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,o=e||t.pipelineContext.large;if(n){var s=W(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");gn(a,s[0])&&(s[0]=u),gn(a,s[1])&&(s[1]=u);var f=a.getStore(),v=a.getDimensionIndex(s[0]),c=a.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var g=o&&Pa((h.end-h.start)*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(1===l){var b=f.get(v,_);x=n.dataToPoint(b,null,m)}else y[0]=f.get(v,_),y[1]=f.get(c,_),x=n.dataToPoint(y,null,m);o?(g[S++]=x[0],g[S++]=x[1]):p.setItemLayout(_,x.slice())}o&&(p.setLayout("points",g),p.setLayout("pointsRange",{start:h.start,end:h.end}))}}}}}}var c8={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return 0===t?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},h8=function(r){return Math.round(r.length/2)};function PI(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&"cartesian2d"===o.type&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=a.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(v||1),h=Math.round(s/c);if(isFinite(h)&&h>1){"lttb"===i?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):"minmax"===i&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var p=void 0;X(i)?p=c8[i]:ae(i)&&(p=i),p&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,p,h8))}}}}}var f_=null;function Tf(){return f_}var Xh="expandAxisBreak",RI="collapseAxisBreak",EI="toggleAxisBreak",v_="axisbreakchanged",g8={type:Xh,event:v_,update:"update",refineEvent:c_},y8={type:RI,event:v_,update:"update",refineEvent:c_},m8={type:EI,event:v_,update:"update",refineEvent:c_};function c_(r,e,t,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}var ni=Math.PI,S8=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],x8=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Oo=ge(),kI=ge(),OI=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[t]||(n[t]=[]);return i[a]||(i[a]={ready:{}})},r}(),Cf=[1,0,0,1,0,0],Kh=new fe(0,0,0,0),NI=function(r,e,t,a,n,i){if(ll(r.nameLocation)){var o=i.stOccupiedRect;o&&BI(function YU(r,e,t){return r.transform=Om(r.transform,t),r.localRect=Hu(r.localRect,e),r.rect=Hu(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=km(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}({},o,i.transGroup.transform),a,n)}else VI(i.labelInfoList,i.dirVec,a,n)};function BI(r,e,t){var a=new le;zh(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&G0(e,a)}function VI(r,e,t,a){for(var n=le.dot(a,e)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||BI(s,t,a)}}var No=function(){function r(e,t,a,n){this.group=new oe,this._axisModel=e,this._api=t,this._local={},this._shared=n||new OI(NI),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(e){var a=this._cfg.raw;a.position=e.position,a.labelOffset=e.labelOffset,this._resetCfgDetermined(a)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,a=t.getDefaultOption?t.getDefaultOption():{},n=Q(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(null==i||"auto"===i)&&(i=Q(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Q(e.nameDirection,1),tickDirection:Q(e.tickDirection,1),labelDirection:Q(e.labelDirection,1),labelOffset:Q(e.labelOffset,0),silent:Q(e.silent,!0),axisName:n,nameLocation:nr(t.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:p_(n)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new oe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new le(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var a=this;
1return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(w8,function(n){e[n]&&T8[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,t||{})}),this},r.innerTextLayout=function(e,t,a){var i,o,n=Fg(t-e);return Ei(n)?(o=a>0?"top":"bottom",i="center"):Ei(n-ni)?(o=a>0?"bottom":"top",i="center"):(o="middle",i=n>0&&n<ni?a>0?"right":"left":a>0?"left":"right"),{rotation:n,textAlign:i,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}(),w8=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],T8={axisLine:function(r,e,t,a,n,i,o){var l=a.get(["axisLine","show"]);if("auto"===l&&(l=!0,null!=r.raw.axisLineAutoShow&&(l=!!r.raw.axisLineAutoShow)),l){var u=a.axis.getExtent(),f=i.transform,v=[u[0],0],c=[u[1],0],h=v[0]>c[0];f&&(tt(v,v,f),tt(c,c,f));var p=G({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(a.get(["axisLine","breakLine"])&&wc(a.axis.scale))Tf().buildAxisBreakLine(a,n,i,d);else{var g=new ct(G({shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]}},d));Ys(g.shape,g.style.lineWidth),g.anid="line",n.add(g)}var y=a.get(["axisLine","symbol"]);if(null!=y){var m=a.get(["axisLine","symbolSize"]);X(y)&&(y=[y,y]),(X(m)||Ae(m))&&(m=[m,m]);var _=mo(a.get(["axisLine","symbolOffset"])||0,m),S=m[0],x=m[1];A([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((v[0]-c[0])*(v[0]-c[0])+(v[1]-c[1])*(v[1]-c[1]))}],function(b,w){if("none"!==y[w]&&null!=y[w]){var C=lt(y[w],-S/2,-x/2,S,x,p.stroke,!0),T=b.r+b.offset,M=h?c:v;C.attr({rotation:b.rotate,x:M[0]+T*Math.cos(r.rotation),y:M[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(r,e,t,a,n,i,o,s){FI(e,n,s)&&zI(r,e,t,a,n,i,o,1)},axisTickLabelDetermine:function(r,e,t,a,n,i,o,s){FI(e,n,s)&&zI(r,e,t,a,n,i,o,2);var f=function D8(r,e,t,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if("auto"===o&&(o=!0,null!=r.raw.axisTickAutoShow&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),f=GI(n.getTicksCoords(),t.transform,l,ie(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)e.add(f[v]);return f}(r,n,i,a);(function M8(r,e,t){r.showMinorTicks||A(e,function(a){if(a&&a.label.ignore)for(var n=0;n<t.length;n++){var i=t[n],o=kI(i),s=Oo(a.label);if(null!=o.tickValue&&!o.onBand&&o.tickValue===s.labelInfo.tick.value)return void yl(i)}})})(r,e.labelLayoutList,f),function L8(r,e,t,a,n){var i=a.axis,o=a.getModel("minorTick");if(r.showMinorTicks&&!i.scale.isBlank()){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ie(l.getLineStyle(),ie(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var c=GI(s[v],t.transform,u,f,"minorticks_"+v),h=0;h<c.length;h++)e.add(c[h])}}(r,n,i,a,r.tickDirection)},axisName:function(r,e,t,a,n,i,o,s){var l=t.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(p_(f)){var v=r.nameLocation,c=r.nameDirection,h=a.getModel("nameTextStyle"),p=a.get("nameGap")||0,d=a.axis.getExtent(),g=a.axis.inverse?-1:1,y=new le(0,0),m=new le(0,0);"start"===v?(y.x=d[0]-g*p,m.x=-g):"end"===v?(y.x=d[1]+g*p,m.x=g):(y.x=(d[0]+d[1])/2,y.y=r.labelOffset+c*p,m.y=c);var _=[1,0,0,1,0,0];m.transform(ja(_,_,r.rotation));var x,b,S=a.get("nameRotate");null!=S&&(S=S*ni/180),ll(v)?x=No.innerTextLayout(r.rotation,S??r.rotation,c):(x=function C8(r,e,t,a){var i,o,n=Fg(t-r),s=a[0]>a[1],l="start"===e&&!s||"start"!==e&&s;return Ei(n-ni/2)?(o=l?"bottom":"top",i="center"):Ei(n-1.5*ni)?(o=l?"top":"bottom",i="center"):(o="middle",i=n<1.5*ni&&n>ni/2?l?"left":"right":l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}(r.rotation,v,S||0,d),null!=(b=r.raw.axisNameAvailableWidth)&&(b=Math.abs(b/Math.sin(x.rotation)),!isFinite(b)&&(b=null)));var w=h.getFont(),C=a.get("nameTruncate",!0)||{},T=C.ellipsis,M=Ft(r.raw.nameTruncateMaxWidth,C.maxWidth,b),D=s.nameMarginLevel||0,I=new Me({x:y.x,y:y.y,rotation:x.rotation,silent:No.isLabelSilent(a),style:He(h,{text:f,font:w,overflow:"truncate",width:M,ellipsis:T,fill:h.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:h.get("align")||x.textAlign,verticalAlign:h.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(hn({el:I,componentModel:a,itemName:f}),I.__fullText=f,I.anid="name",a.get("triggerEvent")){var L=No.makeAxisEventDataBase(a);L.targetType="axisName",L.name=f,ue(I).eventData=L}i.add(I),I.updateTransform(),e.nameEl=I;var P=l.nameLayout=La({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:ll(v)?S8[D]:x8[D]});if(l.nameLocation=v,n.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&P){var E=t.ensureRecord(a);t.resolveAxisNameOverlap(r,t,a,P,m,E)}}}};function zI(r,e,t,a,n,i,o,s){HI(e)||function I8(r,e,t,a,n,i){var o=n.axis,s=Ft(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new oe;t.add(l);var u=Eh(a);if(s&&!o.scale.isBlank()){var f=n.getModel("axisLabel"),v=o.getViewLabels(u),c=(Ft(r.raw.labelRotate,f.get("rotate"))||0)*ni/180,h=No.innerTextLayout(r.rotation,c,r.labelDirection),p=n.getCategories&&n.getCategories(!0),d=[],g=n.get("triggerEvent"),y=1/0,m=-1/0;A(v,function(S,x){var b,w=S.tick,C=S.formattedLabel,T=S.rawLabel,M=f,D=ul(o.scale,w);if(p&&p[D]){var I=p[D];se(I)&&I.textStyle&&(M=new De(I.textStyle,f,n.ecModel))}var L=M.getTextColor()||n.get(["axisLine","lineStyle","color"]),P=M.getShallow("align",!0)||h.textAlign,E=Q(M.getShallow("alignMinLabel",!0),P),R=Q(M.getShallow("alignMaxLabel",!0),P),k=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||h.textVerticalAlign,O=Q(M.getShallow("verticalAlignMinLabel",!0),k),V=Q(M.getShallow("verticalAlignMaxLabel",!0),k),z=10+((null===(b=w.time)||void 0===b?void 0:b.level)||0);y=Math.min(y,z),m=Math.max(m,z);var F=new Me({x:0,y:0,rotation:0,silent:No.isLabelSilent(n),z2:z,style:He(M,{text:C,align:0===x?E:x===v.length-1?R:P,verticalAlign:0===x?O:x===v.length-1?V:k,fill:ae(L)?L("category"===o.type?T:"value"===o.type?D+"":D,x):L})});F.anid="label_"+D;var U=Oo(F);if(U.labelInfo=S,U.layoutRotation=h.rotation,hn({el:F,componentModel:n,itemName:C,formatterParamsExtra:{isTruncated:function(){return F.isTruncated},value:T,tickIndex:x}}),g){var Y=No.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=T,Y.tickIndex=x;var Z=S.tick.break;if(Z){var $=Z.parsedBreak;Y.break={start:$.vmin,end:$.vmax}}"category"===o.type&&(Y.dataIndex=D),ue(F).eventData=Y,Z&&function E8(r,e,t,a){t.on("click",function(n){var i={type:Xh,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}(n,i,F,Z)}d.push(F),l.add(F)}),h_(e,W(d,function(S){return{label:S,priority:Oo(S).labelInfo.tick.break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}}),l,u)}else h_(e,[],l,u)}(r,e,n,s,a,o);var l=e.labelLayoutList;(function P8(r,e,t,a){var n=e.get(["axisLabel","margin"]);A(t,function(i,o){var s=La(i);if(s){var l=s.label,u=Oo(l);s.suggestIgnore=l.ignore,l.ignore=!1,ua(mn,R8);var f=e.axis;mn.x=f.dataToCoord(ul(f.scale,u.labelInfo.tick)),mn.y=r.labelOffset+r.labelDirection*n,mn.rotation=u.layoutRotation,a.add(mn),mn.updateTransform(),a.remove(mn),mn.decomposeTransform(),ua(l,mn),l.markRedraw(),Vh(s,!0),La(s)}})})(r,a,l,i),function k8(r,e,t){var a=ot();if(a){var n=a.retrieveAxisBreakPairs(t,function(o){return o&&Oo(o.label).labelInfo.tick.break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(!0===i||"auto"===i)&&A(n,function(o){Tf().adjustBreakLabelPair(r.axis.inverse,e,[La(t[o[0]]),La(t[o[1]])])})}}(a,r.rotation,l);var u=r.optionHideOverlap;(function A8(r,e,t){var a=r.axis,n=r.get(["axisLabel","customValues"]);if(!function OW(r){return"category"===r.type&&0===C0(r.getLabelModel())}(a)){var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;i(o,0,1),i(s,l-1,l-2)}function i(u,f,v){var c=La(e[f]),h=La(e[v]),p=a.scale;if(c&&h){if(null==u){if(!t&&n)return;var d=Oo(c.label).labelInfo.tick;if(il(p)&&d.notNice||Kt(p)&&d.offInterval)return void yl(c.label)}if(!1===u||c.suggestIgnore)return void yl(c.label);if(h.suggestIgnore)return void yl(h.label);if(!t){var y=[0,0,0,0];c=F0({marginForce:y},c),h=F0({marginForce:y},h)}zh(c,h,null,{touchThreshold:.1})&&yl(u?h.label:c.label)}}})(a,l,u),u&&LL(ke(l,function(f){return f&&!f.label.ignore})),function b8(r,e,t,a){var s,n=t.axis,i=e.ensureRecord(t),o=[],l=p_(r.axisName)&&ll(r.nameLocation);
1A(a,function(p){var d=La(p);if(d&&!d.label.ignore){o.push(d);var g=i.transGroup;l&&(g.transform?hr(Cf,g.transform):_i(Cf),d.transform&&cr(Cf,Cf,d.transform),fe.copy(Kh,d.localRect),Kh.applyTransform(Cf),s?s.union(Kh):fe.copy(s=new fe(0,0,0,0),Kh))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(p,d){return Math.abs(p.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var v=n.getExtent(),c=Math.min(v[0],v[1]),h=Math.max(v[0],v[1])-c;s.union(new fe(c,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}(r,t,a,l)}function yl(r){r&&(r.ignore=!0)}function GI(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(tt(o,o,e),tt(s,s,e));var f=new ct({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Ys(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var v=kI(f);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function FI(r,e,t){if(HI(r)){var n=r.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(r.labelGroup),h_(r,null,null,null))}return!0}function HI(r){return!!r.labelLayoutList}function h_(r,e,t,a){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=a}var mn=new be,R8=new be;function p_(r){return!!r}const _n=No;function qh(r,e,t){t=t||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,c="x"===l?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));c[f.onZero]=Math.max(Math.min(h,c[1]),c[0])}n.position=["y"===l?c[f[s]]:u[0],"x"===l?c[f[s]]:u[3]],n.rotation=Math.PI/2*("x"===l?0:1),n.labelDirection=n.tickDirection=n.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],n.labelOffset=i?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ft(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var d=e.get(["axisLabel","rotate"]);return n.labelRotate="top"===s?-d:d,n.z2=1,n}function F8(r,e,t){var o,a=j(),n=t.serUids,i=t.liPosMinGap,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,v=$C(f);function c(_){Ph(r,e.sers,function(S){var x=S.getRawData(),b=x.getDimensionIndex(x.mapDimension(s.dim));b>=0&&_(b,S,x.getStore())})}var h=0;if(c(function(_,S,x){a.set(S.uid,1),(!n||!n.hasKey(S.uid))&&(o=!0),h+=x.count()}),(!n||n.keys().length!==a.keys().length)&&(o=!0),o||null==i){s_(Bo,h);var p=0;c(function(_,S,x){for(var b=0,w=x.count();b<w;++b){var C=x.get(_,b);isFinite(C)&&(!f||eA(v,C))&&(u&&(C=l.transformIn(C,null)),Bo.arr[p++]=C)}});var d=Bo.typed?Bo.arr.subarray(0,p):(Bo.arr.length=p,Bo.arr);Bo.typed?d.sort():Ct(d);for(var g=1/0,y=1;y<p;++y){var m=d[y]-d[y-1];m>0&&m<g&&(g=m)}t.liPosMinGap=e.liPosMinGap=Pr(g)?g:p>0?-2:-1,t.serUids=a}else e.liPosMinGap=i}var Bo=s_({ctor:JY},50);function jh(r){return function(e,t){var a=Vt(e,{fromStat:{key:r}});if(Pr(a.w2))return[-a.w2/2,a.w2/2]}}function Vo(r){return r+"|&"}function zo(r,e){return r+"|&"+e}function d_(r){return function G8(){!function ZW(r,e){JD[r]=e}("liPosMinGap",F8)}(),{liPosMinGap:!Kt(r.scale)}}var Ra="bar",Af="pictorialBar";function WI(r,e,t,a){L0(r,{key:e,seriesType:t,coordSysType:a,getMetrics:d_})}function UI(r){return r.scale.rawExtentInfo.makeRenderInfo().startValue}var YI={left:0,right:0,top:0,bottom:0},Jh=["25%","25%"],oa="cartesian2d",H8=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.mergeDefaultAndTheme=function(t,a){var n=to(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&wa(t.outerBounds,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&wa(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:YI,outerBoundsContain:"all",outerBoundsClampWidth:Jh[0],outerBoundsClampHeight:Jh[1],backgroundColor:B.color.transparent,borderWidth:1,borderColor:B.color.neutral30},e}(Ce);const W8=H8;var U8=Ts(),g_="__ec_stack_";function ZI(r){return r.get("stack")||g_+r.seriesIndex}function XI(r){var n,i,e=r.bandWidthResult.w,t=e,a=0,o=[],s={};A(r.seriesInfo,function(d,g){g||(i=d.defaultBarGap||0);var y=d.stackId;J(s,y)||a++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},o.push(y));var _=d.barWidth;_&&!m.width&&(m.width=_,_=Be(t,_),t-=_);var S=d.barMaxWidth;S&&(m.maxWidth=S);var x=d.barMinWidth;x&&(m.minWidth=x);var b=d.barGap;null!=b&&(i=b);var w=d.barCategoryGap;null!=w&&(n=w)}),null==n&&(n=xe(35-4*o.length,15)+"%");var l=K(n,e),u=K(i,1),f=(t-l)/(a+(a-1)*u);f=xe(f,0),A(o,function(d){var g=s[d],y=g.maxWidth,m=g.minWidth;
1if(g.width){var _=g.width;y&&(_=Be(_,y)),m&&(_=xe(_,m)),g.width=_,t-=_+u*_,a--}else _=f,y&&y<_&&(_=Be(y,t)),m&&m>_&&(_=m),_!==f&&(g.width=_,t-=_+u*_,a--)}),f=xe(f=(t-l)/(a+(a-1)*u),0);var c,v=0;A(o,function(d){var g=s[d];g.width||(g.width=f),c=g,v+=g.width*(1+u)}),c&&(v-=c.width*u);var h={},p=-v/2;return A(o,function(d){var g=s[d];h[d]=h[d]||{bandWidth:e,offset:p,width:g.width},p+=g.width*(1+u)}),h}function KI(r){return{seriesType:r,overallReset:function(e){var t=zo(r,oa);M0(e,t,function(a){var n=function Z8(r,e){var t=function X8(r,e){var t=zo(e,oa),a=[],n=Vt(r,{fromStat:{key:t},min:1});return To(r,t,function(i){a.push({barWidth:K(i.get("barWidth"),n.w),barMaxWidth:K(i.get("barMaxWidth"),n.w),barMinWidth:K(i.get("barMinWidth")||(jI(i)?.5:1),n.w),barGap:i.get("barGap"),barCategoryGap:i.get("barCategoryGap"),defaultBarGap:i.get("defaultBarGap"),stackId:ZI(i)})}),{bandWidthResult:n,seriesInfo:a}}(r,e);return t.columnMap=XI(t),t}(a,r);To(a,t,function(i){var o=n.columnMap[ZI(i)];i.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function qI(r){return{seriesType:r,plan:lo(),reset:function(e){if(function O8(r){return r.coordinateSystem&&"cartesian2d"===r.coordinateSystem.type}(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),v=gn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=i.toGlobalCoord(i.dataToCoord(UI(i))),p=jI(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var D,x=_.count,b=p&&Pa(3*x),w=p&&l&&Pa(3*x),C=p&&Pa(x),T=a.master.getRect(),M=c?T.width:T.height,I=S.getStore(),L=0;null!=(D=_.next());){var P=I.get(v?g:o,D),E=I.get(s,D),R=h,k=void 0;v&&(k=+P-I.get(o,D));var O=void 0,V=void 0,z=void 0,F=void 0;if(c){var U=a.dataToPoint([P,E]);v&&(R=a.dataToPoint([k,E])[0]),O=R,V=U[1]+m,F=y,rt(z=U[0]-R)<d&&(z=(z<0?-1:1)*d)}else U=a.dataToPoint([E,P]),v&&(R=a.dataToPoint([E,k])[1]),O=U[0]+m,V=R,z=y,rt(F=U[1]-R)<d&&(F=(F<=0?-1:1)*d);p?(b[L]=O,b[L+1]=V,b[L+2]=c?z:F,w&&(w[L]=c?T.x:O,w[L+1]=c?V:T.y,w[L+2]=M),C[D]=D):S.setItemLayout(D,{x:O,y:V,width:z,height:F}),L+=3}p&&S.setLayout({largePoints:b,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function jI(r){return r.pipelineContext&&r.pipelineContext.large}function JI(r){U8(r,function(){function e(t){var a=zo(t,oa);WI(r,a,t,oa),Rh(a,function K8(r){return jh(zo(r,oa))}(t))}e("bar"),e("pictorialBar")})}var QI=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.getInitialData=function(t,a){return Ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(c,h){if("category"===c.type&&null!=a){var p=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),g=o[h],y="x1"===a[h]||"y1"===a[h];if(y&&!d&&(g+=1),p.length<2)return;if(2===p.length)return void(s[h]=c.toGlobalCoord(c.getExtent()[y?1:0]));for(var m=void 0,_=void 0,S=1,x=0;x<p.length;x++){var b=p[x].coord,w=x===p.length-1?p[x-1].tickValue+S:p[x].tickValue;if(w===g){_=b;break}if(w<g)m=b;else if(null!=m&&w>g){_=(b+m)/2;break}1===x&&(S=w-p[0].tickValue)}null==_&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[h]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(Ye);Ye.registerClass(QI);const Qh=QI;var q8=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.getInitialData=function(){return Ca(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.__preparePipelineContext=function(t,a){var n=bw(this,t,a);
1return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Kn(Qh.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:B.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Qh);const j8=q8;var J8=function(){return function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}}(),Q8=function(r){function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return N(e,r),e.prototype.getDefaultShape=function(){return new J8},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=.5*(s-o),u=o+l,f=a.startAngle,v=a.endAngle,c=a.clockwise,h=2*Math.PI,p=c?v-f<h:f-v<h;p||(f=v-(c?h:-h));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(v),m=Math.sin(v);p?(t.moveTo(d*o+n,g*o+i),t.arc(d*u+n,g*u+i,l,-Math.PI+f,f,!c)):t.moveTo(d*s+n,g*s+i),t.arc(n,i,s,f,v,!c),t.arc(y*u+n,m*u+i,l,v-2*Math.PI,v-Math.PI,!c),0!==o&&t.arc(n,i,o,v,f,c)},e}(we);const $h=Q8;function ep(r,e,t){return e*Math.sin(r)*(t?-1:1)}function tp(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Ea(r,e,t){var a=r.get("borderRadius");if(null==a)return t?{cornerRadius:0}:null;H(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:W(a,function(i){return fa(i,n)})}}var y_=Math.max,m_=Math.min,t6=function(r){function e(){var t=r.call(this)||this;return t.type=Ra,t._isFirstFrame=!0,t}return N(e,r),e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");("cartesian2d"===o||"polar"===o)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){Jn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(null==this._isLargeDraw||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var v,o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis();"cartesian2d"===u.type?v=f.isHorizontal():"polar"===u.type&&(v="angle"===f.dim);var c=t.isAnimationEnabled()?t:null,h=function r6(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&"category"===a.type&&"cartesian2d"===e.type)return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}(t,u);h&&this._enableRealtimeSort(h,s,n);var p=t.get("clip",!0)||h,d=u.getArea();o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=i&&i.isInitSort,w=i&&"changeAxisOrder"===i.type;function C(D){var I=rp[u.type](s,D);if(!I)return null;var L=function u6(r,e,t){return new("polar"===r.type?Yt:be)({shape:uP(e,t,r),silent:!0,z2:0})}(u,v,I);return L.useStyle(m.getItemStyle()),L.setShape("cartesian2d"===u.type?"r":"cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=rp[u.type](s,D,I);if(L&&(y&&C(D),s.hasValue(D)&&aP[u.type](L))){var P=!1;p&&(P=$I[u.type](d,L));var E=eP[u.type](t,s,D,L,v,c,f.model,!1,g);h&&(E.forceLabelAnimation=!0),iP(E,s,D,I,L,t,v,"polar"===u.type),b?E.attr({shape:L}):h?tP(h,c,E,L,D,v,!1,!1):Ze(E,{shape:L},t,D),s.setItemGraphicEl(D,E),o.add(E),E.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=rp[u.type](s,D,L);if(P){if(y){var E=void 0;0===x.length?E=C(I):((E=x[I]).useStyle(m.getItemStyle()),E.setShape("cartesian2d"===u.type?"r":"cornerRadius",_),S[D]=E);var R=rp[u.type](s,D);Pe(E,{shape:uP(v,R,u)},c,D)}var O=l.getItemGraphicEl(I);if(!s.hasValue(D)||!aP[u.type](P))return void o.remove(O);var V=!1;if(p&&(V=$I[u.type](d,P))&&o.remove(O),O&&("sector"===O.type&&g||"sausage"===O.type&&!g)&&(O&&fn(O,t,I),O=null),O?kr(O):O=eP[u.type](t,s,D,P,v,c,f.model,!0,g),h&&(O.forceLabelAnimation=!0),w){var F=O.getTextContent();if(F){var U=Is(F);null!=U.prevValue&&(U.prevValue=U.value)}}
vendor: 6,967 bytes, line 1
1else iP(O,s,D,L,P,t,v,"polar"===u.type);b?O.attr({shape:P}):h?tP(h,c,O,P,D,v,!0,w):Pe(O,{shape:P},t,D,null),s.setItemGraphicEl(D,O),O.ignore=V,o.add(O)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&fn(I,t,D)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new oe);T.removeAll();for(var M=0;M<S.length;++M)T.add(S[M]);o.add(T),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),sP(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),sP(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Eo(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);i.push({dataIndex:s,mappedValue:l=l??NaN,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:W(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:a(t.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},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,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){fn(i,t,ue(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=Ra,e}(ze),$I={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 n=r.x+r.width,i=r.y+r.height,o=y_(e.x,r.x),s=m_(e.x+e.width,n),l=y_(e.y,r.y),u=m_(e.y+e.height,i),f=s<o,v=u<l;return e.x=f&&o>n?s:o,e.y=v&&l>i?u:l,e.width=f?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||v},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 n=m_(e.r,r.r),i=y_(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;return t<0&&(a=e.r,e.r=e.r0,e.r0=a),o}},eP={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new be({shape:G({},a),z2:1});return u.__dataIndex=t,u.name="item",i&&(u.shape[n?"height":"width"]=0),u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?$h:Yt,f=new u({shape:a,z2:1});f.name="item";var v=nP(n);if(f.calculateTextPosition=function $8(r,e){var t=(e=e||{}).isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Wv(a,n,i);var s=r(o),l=null!=n.distance?n.distance:5,u=this.shape,f=u.cx,v=u.cy,c=u.r,h=u.r0,p=(c+h)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(c-h)/2:0,_=Math.cos,S=Math.sin,x=f+c*_(d),b=v+c*S(d),w="left",C="top";switch(s){case"startArc":x=f+(h-l)*_(y),b=v+(h-l)*S(y),w="center",C="top";break;case"insideStartArc":x=f+(h+l)*_(y),b=v+(h+l)*S(y),w="center",C="bottom";break;case"startAngle":x=f+p*_(d)+ep(d,l+m,!1),b=v+p*S(d)+tp(d,l+m,!1),w="right",C="middle";break;case"insideStartAngle":x=f+p*_(d)+ep(d,-l+m,!1),b=v+p*S(d)+tp(d,-l+m,!1),w="left",C="middle";break;case"middle":x=f+p*_(y),b=v+p*S(y),w="center",C="middle";break;case"endArc":x=f+(c+l)*_(y),b=v+(c+l)*S(y),w="center",C="bottom";break;case"insideEndArc":x=f+(c-l)*_(y),b=v+(c-l)*S(y),w="center",C="top";break;case"endAngle":x=f+p*_(g)+ep(g,l+m,!0),b=v+p*S(g)+tp(g,l+m,!0),w="left",C="middle";break;case"insideEndAngle":x=f+p*_(g)+ep(g,-l+m,!0),b=v+p*S(g)+tp(g,-l+m,!0),w="right",C="middle";break;default:return Wv(a,n,i)}return(a=a||{}).x=x,a.y=b,a.align=w,a.verticalAlign=C,a}}(v,{isRoundCap:u===$h}),i){var h=n?"r":"endAngle",p={};f.shape[h]=n?a.r0:a.startAngle,p[h]=a[h],(s?Pe:Ze)(f,{shape:p},i)}return f}};function tP(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Pe:Ze)(t,{shape:l},e,n,null),(o?Pe:Ze)(t,{shape:u},e?r.baseAxis.model:null,n)}function rP(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var a6=["x","y","width","height"],n6=["cx","cy","r","startAngle","endAngle"],aP={cartesian2d:function(r){return!rP(r,a6)},polar:function(r){return!rP(r,n6)}},rp={cartesian2d:function(r,e,t){var a=r.getItemLayout(e);if(!a)return null;var n=t?function o6(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||"none"===t)return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},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,clockwise:a.clockwise}}};function nP(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function iP(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape;G(f,Ea(a.getModel("itemStyle"),f,!0)),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=a.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>
1=n.startAngle?"endAngle":"startAngle":o?function f6(r,e){return 0===r.height?e.getOtherAxis(e.getBaseAxis()).inverse?"bottom":"top":r.height>0?"bottom":"top"}(n,i.coordinateSystem):function v6(r,e){return 0===r.width?e.getOtherAxis(e.getBaseAxis()).inverse?"left":"right":r.width>=0?"right":"left"}(n,i.coordinateSystem),p=yt(a);bt(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:dl(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var d=r.getTextContent();if(s&&d){var g=a.get(["label","position"]);r.textConfig.inside="middle"===g||null,function e6(r,e,t,a){if(Ae(a))r.setTextConfig({rotation:a});else if(H(e))r.setTextConfig({rotation:0});else{var l,n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:return void r.setTextConfig({rotation:0})}var f=1.5*Math.PI-l;"middle"===u&&f>Math.PI/2&&f<1.5*Math.PI&&(f-=Math.PI),r.setTextConfig({rotation:f})}}(r,"outside"===g?h:g,nP(o),a.get(["label","rotate"]))}ET(d,p,i.getRawValue(t),function(m){return hI(e,m)});var y=a.getModel(["emphasis"]);Je(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),gt(r,a),function i6(r){return null!=r.startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle}(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}var s6=function(){return function r(){}}(),oP=function(r){function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return N(e,r),e.prototype.getDefaultShape=function(){return new s6},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(we);function sP(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints"),f=a?da(r):0;if(u){var v=new oP({shape:{points:u},incremental:f,silent:!0,z2:0});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,v.useStyle(l.getItemStyle()),e.add(v),t&&t.push(v)}var c=new oP({shape:{points:n.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(n.getVisual("style")),c.style.stroke=null,ue(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",lP),c.on("mousemove",lP)),t&&t.push(c)}var lP=th(function(r){var t=function l6(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f<v;f++){var c=3*f;if(l[a]=u,l[n]=i[c+2],s[a]=i[c+a],s[n]=i[c+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}(this,r.offsetX,r.offsetY);ue(this).dataIndex=t>=0?t:null},30,!1);function uP(r,e,t){if(ko(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}return{cx:(n=t.getArea()).cx,cy:n.cy,r0:r?n.r0:e.r0,r:r?n.r:e.r,startAngle:r?e.startAngle:0,endAngle:r?e.endAngle:2*Math.PI}}const c6=t6;function Mf(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(a&&a.length){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}function ml(r,e,t){e=H(e)&&{coordDimensions:e}||G({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=al(a,e).dimensions,i=new Xt(n,r);return i.initData(a,t),i}var p6=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){return this._getRawData().indexOfName(e)>=0},r.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},r.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},r}();const _l=p6;var ii="pie",d6=ge(),fP=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}
1return N(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new _l(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return ml(this,{coordDimensions:["value"],encodeDefaulter:Se(tm,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=d6(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=lw(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ki(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ye);!function XG(r){QT.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}({fullType:fP.type,getCoord2:function(r){return r.getShallow("center")}});const g6=fP;var y6=Math.PI/180;function vP(r,e,t,a,n,i,o,s,l,u){if(!(r.length<2)){for(var c=r.length,h=0;h<c;h++)"outer"===r[h].position&&"labelLine"===r[h].labelAlignTo&&(r[h].linePoints[1][0]+=r[h].label.x-u,r[h].label.x=u);H0(r,1,l,l+o)&&function v(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if("none"===d[m].labelAlignTo){var _=d[m],S=_.label.y>t?y:g,x=Math.abs(_.label.y-t);if(x>=S.maxY){var b=_.label.x-e-_.len2*n,w=a+_.len,C=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=C,S.maxY=x}S.list.push(_)}f(g),f(y)}(r)}function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-t),x=a+_.len,w=Math.sqrt(Math.abs(x*x*(1-S*S/y))),C=e+(w+_.len2)*n;cP(_,_.targetTextWidth-(C-_.label.x)*n,!0),_.label.x=C}}}function cP(r,e,t){if(null==r.labelStyleWidth){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var c=e-l;a.setStyle("width",e<f?c:t?c>r.unconstrainedWidth?null:c:null)}hP(i,a)}}}function hP(r,e){pP.rect=r,ML(pP,e,_6)}var _6={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},pP={};function __(r){return"center"===r.position}var dP=2*Math.PI,ap=Math.PI/180,x6=dt(ii,function b6(r,e){r.eachSeriesByType(ii,function(t){var a=t.getData(),n=a.mapDimension("value"),i=iC(t,e),o=i.cx,s=i.cy,l=i.r,u=i.r0,f=i.viewRect,v=-t.get("startAngle")*ap,c=t.get("endAngle"),h=t.get("padAngle")*ap;c="auto"===c?v-dP:-c*ap;
vendor: 4,428 bytes, line 1
1var d=t.get("minAngle")*ap+h,g=0;a.each(n,function(R){!isNaN(R)&&g++});var y=a.getSum(n),m=Math.PI/(y||g)*2,_=t.get("clockwise"),S=t.get("roseType"),x=t.get("stillShowZeroSum"),b=a.getDataExtent(n);b[0]=0;var w=_?1:-1,C=[v,c],T=w*h/2;uc(C,!_),v=C[0],c=C[1];var M=gP(t);M.startAngle=v,M.endAngle=c,M.clockwise=_,M.cx=o,M.cy=s,M.r=l,M.r0=u;var D=Math.abs(c-v),I=D,L=0,P=v;if(a.setLayout({viewRect:f,r:l}),a.each(n,function(R,k){var O;if(isNaN(R))a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:S?NaN:l});else{(O="area"!==S?0===y&&x?m:R*m:D/g)<d?(O=d,I-=d):L+=R;var V=P+w*O,z=0,F=0;h>O?F=z=P+w*O/2:(z=P+T,F=V-T),a.setItemLayout(k,{angle:O,startAngle:z,endAngle:F,clockwise:_,cx:o,cy:s,r0:u,r:S?Re(R,b,[u,l]):l}),P=V}}),I<dP&&g)if(I<=.001){var E=D/g;a.each(n,function(R,k){if(!isNaN(R)){var O=a.getItemLayout(k);O.angle=E;var V=0,z=0;E<h?z=V=v+w*(k+.5)*E:(V=v+w*k*E+T,z=v+w*(k+1)*E-T),O.startAngle=V,O.endAngle=z}})}else m=I/L,P=v,a.each(n,function(R,k){if(!isNaN(R)){var O=a.getItemLayout(k),V=O.angle===d?d:R*m,z=0,F=0;V<h?F=z=P+w*V/2:(z=P+T,F=P+w*V-T),O.startAngle=z,O.endAngle=F,P+=w*V}})})}),gP=ge(),w6=function(r){function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new Me;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return N(e,r),e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),v=G(Ea(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle))o.setShape(v);else{if(i){o.setShape(v);var c=s.getShallow("animationType");s.ecModel.ssr?(Ze(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):"scale"===c?(o.shape.r=f.r0,Ze(o,{shape:{r:f.r}},s,a)):null!=n?(o.setShape({startAngle:n,endAngle:n}),Ze(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Pe(o,{shape:{endAngle:f.endAngle}},s,a))}else kr(o),Pe(o,{shape:v},s,a);o.useStyle(t.getItemVisual(a,"style")),gt(o,l);var h=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(h)*p,g=Math.sin(h)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=G({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ea(u.getModel("itemStyle"),f)),G(o.ensureState("select"),{x:d,y:g,shape:Ea(l.getModel(["select","itemStyle"]),f)}),G(o.ensureState("blur"),{shape:Ea(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&G(m.ensureState("select"),{x:d,y:g}),G(_.ensureState("select"),{x:d,y:g}),Je(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;bt(i,yt(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var c=o.get(["label","position"]);if("outside"!==c&&"outer"!==c)i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Bt,this.setTextGuideLine(h)),B0(this,V0(o),{stroke:u,opacity:nr(s.get(["lineStyle","opacity"]),f,1)})}},e}(Yt),T6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=ii,t.ignoreLabelLineUpdate=!0,t}return N(e,r),e.prototype.render=function(t,a,n,i){var u,o=t.getData(),s=this._data,l=this.group;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v<o.count();++v)f=o.getItemLayout(v);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=gP(t),h=new Yt({shape:re(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(p){var d=new w6(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){fn(s.getItemGraphicEl(p),t,p)}).execute(),function S6(r){var a,n,e=r.getData(),t=[],i=!1,o=(r.get("minShowLabelAngle")||0)*y6,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,v=s.y,c=s.height;function h(b){b.ignore=!0}e.each(function(b){var w=e.getItemGraphicEl(b),C=w.shape,T=w.getTextContent(),M=w.getTextGuideLine(),D=e.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emp
1hasis","label","position"]),P=I.get("distanceToLabelLine"),E=I.get("alignTo"),R=K(I.get("edgeDistance"),u),k=I.get("bleedMargin");null==k&&(k=Math.min(u,c)>200?10:2);var O=D.getModel("labelLine"),V=O.get("length");V=K(V,u);var z=O.get("length2");if(z=K(z,u),Math.abs(C.endAngle-C.startAngle)<o)return A(T.states,h),T.ignore=!0,void(M&&(A(M.states,h),M.ignore=!0));if(function p(b){if(!b.ignore)return!0;for(var w in b.states)if(!1===b.states[w].ignore)return!0;return!1}(T)){var Z,$,ye,Ne,F=(C.startAngle+C.endAngle)/2,U=Math.cos(F),Y=Math.sin(F);a=C.cx,n=C.cy;var ve="inside"===L||"inner"===L;if("center"===L)Z=C.cx,$=C.cy,Ne="center";else{var ee=(ve?(C.r+C.r0)/2*U:C.r*U)+a,_e=(ve?(C.r+C.r0)/2*Y:C.r*Y)+n;if(Z=ee+3*U,$=_e+3*Y,!ve){var te=ee+U*(V+l-C.r),ce=_e+Y*(V+l-C.r),Ge=te+(U<0?-1:1)*z;Z="edge"===E?U<0?f+R:f+u-R:Ge+(U<0?-P:P),$=ce,ye=[[ee,_e],[te,ce],[Ge,ce]]}Ne=ve?"center":"edge"===E?U>0?"right":"left":U>0?"left":"right"}var Ve=Math.PI,We=0,ht=I.get("rotate");if(Ae(ht))We=ht*(Ve/180);else if("center"===L)We=0;else if("radial"===ht||!0===ht)We=U<0?-F+Ve:-F;else if("tangential"===ht||"tangential-noflip"===ht&&"outside"!==L&&"outer"!==L){var fr=Math.atan2(U,Y);fr<0&&(fr=2*Ve+fr),Y>0&&"tangential-noflip"!==ht&&(fr=Ve+fr),We=fr-Ve}if(i=!!We,T.x=Z,T.y=$,T.rotation=We,T.setStyle({verticalAlign:"middle"}),ve){T.setStyle({align:Ne});var Rx=T.states.select;Rx&&(Rx.x+=T.x,Rx.y+=T.y)}else{var Gl=new fe(0,0,0,0);hP(Gl,T),t.push({label:T,labelLine:M,position:L,len:V,len2:z,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new le(U,Y),linePoints:ye,textAlign:Ne,labelDistance:P,labelAlignTo:E,edgeDistance:R,bleedMargin:k,rect:Gl,unconstrainedWidth:Gl.width,labelStyleWidth:T.style.width})}w.setTextConfig({inside:ve})}}),!i&&r.get("avoidLabelOverlap")&&function m6(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,v=-Number.MAX_VALUE,c=0;c<r.length;c++){var h=r[c].label;__(r[c])||(h.x<e?(f=Math.min(f,h.x),l.push(r[c])):(v=Math.max(v,h.x),u.push(r[c])))}for(c=0;c<r.length;c++)if(!__(p=r[c])&&p.linePoints){if(null!=p.labelStyleWidth)continue;h=p.label;var g,d=p.linePoints;p.targetTextWidth=g="edge"===p.labelAlignTo?h.x<e?d[2][0]-p.labelDistance-o-p.edgeDistance:o+n-p.edgeDistance-d[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?h.x<e?f-o-p.bleedMargin:o+n-v-p.bleedMargin:h.x<e?h.x-o-p.bleedMargin:o+n-h.x-p.bleedMargin,cP(p,g,!1)}for(vP(u,e,t,a,1,0,i,0,s,v),vP(l,e,t,a,-1,0,i,0,s,f),c=0;c<r.length;c++){var p;if(!__(p=r[c])&&p.linePoints){var m=(h=p.label).style.padding,x=p.rect.width+(h.style.backgroundColor?0:m?m[1]+m[3]:0),b=(d=p.linePoints)[1][0]-d[2][0];"edge"===p.labelAlignTo?d[2][0]=h.x<e?o+p.edgeDistance+x+p.labelDistance:o+n-p.edgeDistance-x-p.labelDistance:(d[2][0]=h.x<e?h.x+p.labelDistance:h.x-p.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=h.y}}}(t,a,n,l,u,c,f,v);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var x=g.linePoints;_||!x?(A(m.states,h),m.ignore=!0):(wL(x,g.minTurnAngle),HU(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new le(x[0][0],x[0][1])})}}}(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var i=a.getData().getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=ii,e}(ze);const C6=T6;var D6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return N(e,r),e.prototype.getInitialData=function(t,a){return Ca(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:B.color.primary}},universalTransition:{divideShape:"clone"}},e}(Ye);const L6=D6;var I6=function(){return function r(){}}(),P6=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return N(e,r),e.prototype.getDefaultShape=function(){return new I6},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,a){var v,n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,f
vendor: 3,004 bytes, line 1
1=this.softClipShape;if(l&&i[0]<4)this._ctx=l;else{for(this._ctx=null,v=this._off;v<n.length;){var c=n[v++],h=n[v++];isNaN(c)||isNaN(h)||f&&!f.contain(c,h)||(s.x=c-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)}},e.prototype.afterBrush=function(){var s,t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=2*u,v=i[f]-s/2,c=i[f+1]-l/2;if(t>=v&&a>=c&&t<=v+s&&a<=c+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,v=-1/0,c=0;c<n.length;){var h=n[c++],p=n[c++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(p,u),v=Math.max(p,v)}t=this._rect=new fe(l-o/2,u-s/2,f-l+o,v-u+s)}return t},e}(we),R6=function(){function r(){this.group=new oe}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var a=t.getLayout("points");this.group.eachChild(function(n){null!=n.startIndex&&(a=new Float32Array(a.buffer,4*n.startIndex*2,2*(n.endIndex-n.startIndex))),n.setShape("points",a),n.reset(),n.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a,n){var i=this._newAdded[0],o=t.getLayout("points"),s=i&&i.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),i.endIndex=e.end,i.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=a,f.setShape({points:o}),this._setCommon(f,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new P6({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=lt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=ue(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var v=e.hoverDataIdx;v>
vendor: 8,325 bytes, line 1
1=0&&(u.dataIndex=v+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const E6=R6;var k6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,S_(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),da(a),S_(a)),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished)return{update:!0};var o=wf("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(S_(t))},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,o=a.pipelineContext.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new E6:new _f,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ze);function S_(r){return{clipShape:wI(r)}}const O6=k6;var x_=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",at).models[0]},e.type="cartesian2dAxis",e}(Ce);it(x_,fl);var mP={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:B.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:B.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:B.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[B.color.backgroundTint,B.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:B.color.neutral00,borderColor:B.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},N6=de({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},mP),b_=de({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:B.color.axisMinorSplitLine,width:1}}},mP);const _P={category:N6,value:b_,time:de({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},b_),log:ie({logBase:10},b_)};function Sl(r,e,t,a){A(WD,function(n,i){var o=de(de({},_P[i],!0),a,!0),s=function(l){function u(){var f=null!==l&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return N(u,l),u.prototype.mergeDefaultAndTheme=function(f,v){var c=Mu(this),h=c?to(f):{};de(f,v.getTheme().get(i+"Axis")),de(f,this.getDefaultOption()),f.type=SP(f),c&&wa(f,h,c)},u.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=ef.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if("category"===v.type)return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=Tf();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",SP)}function SP(r){return r.type||(r.data?"category":"value")}var z6=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return W(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ke(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}(),np=["x","y"];function xP(r){return("interval"===r.type||"time"===r.type)&&!wc(r)}var F6=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=oa,t.dimensions=np,t}return N(e,r),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(xP(t)&&xP(a)){var n=af(t,null),i=af(a,null),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(l&&u){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,p=this._transform=[f,0,0,v,o[0]-n[0]*f,o[1]-i[0]*v];this._invTransform=hr([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new fe(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=o&&isFinite(o))return tt(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return(a=a||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a,n){if(n=n||[],this._invTransform)return tt(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new fe(i,o,s,l)},e}(z6);const H6=F6;var W6=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return N(e,r),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Gr);const bP=W6;function wP(r,e){var c,h,p,t=r.scale,a=r.model,n=aL(t,a,a.ecModel,r,null),i=ol(t),o=ol(e)?e.intervalStub:e,s=i?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),v=u.length-1;if(1===v)c=h=0,p=1;else if(2===v){var d=rt(u[0].value-u[1].value),g=rt(u[1].value-u[2].value);c=h=0,d===g?p=2:(p=1,d<g?c=d/g:h=g/d)}else{var y=o.getConfig().interval;p=v-((c=(1-(u[0].value-f[0].value)/y)%1)?1:0)-((h=(1-(f[v].value-u[v].value)/y)%1)?1:0)}var C,T,M,D,I,L,m=n.zoomFixMM,_=m[0]||m[1],S=[n.fixMM[0]||_,n.fixMM[1]||_],x=t.getExtent(),b=s.getExtent(),w=R
1D(b,S);function P(U){for(var Z=0;Z<50&&!U();Z++)M=i?M*xe(l,2):gW(M),D=ei(M)}function E(){C=Ie(L-M*c,D)}function R(){T=Ie(I+M*h,D)}function k(){L=c?Ie(C+M*c,D):C}function O(){I=h?Ie(T-M*h,D):T}if(S[0]&&S[1]){M=((T=w[1])-(C=w[0]))/(p+c+h);var V=r.getExtent(),z=rt(V[1]-V[0]);D=Gg([T,C],z,.5/p),k(),O(),Pr(D)&&(M=Ie(M,D))}else{var F=w[1]-w[0];M=i?xe(Hg(F),1):Qv(F/p,2),D=ei(M),S[0]?(C=w[0],P(function(){if(k(),I=Ie(L+M*p,D),R(),T>=w[1])return!0})):S[1]?(T=w[1],P(function(){if(O(),L=Ie(I-M*p,D),E(),C<=w[0])return!0})):P(function(){L=Ie(Li(w[0]/M)*M,D),I=Ie(Ir(w[1]/M)*M,D);var U=va((I-L)/M);if(U<=p){var Y=p-U,Z=void 0,$=n.incl0||i;if($&&0===w[0])Z=[0,Y];else if($&&0===w[1])Z=[Y,0];else{var ye=Ir(Y/2);Z=Y%2==0?[ye,ye]:C+T<w[0]+w[1]?[ye,ye+1]:[ye+1,ye]}if(L=Ie(L-M*Z[0],D),I=Ie(I+M*Z[1],D),E(),R(),C<=w[0]&&T>=w[1])return!0}})}ZD(t,S,b,[C,T],x,{interval:M,intervalCount:p,intervalPrecision:D,niceExtent:[L,I]})}var T_,TP=[[3,1],[0,2]],U6=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=np,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;function n(o){for(var s=Te(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):hl(f)}A(l,function(v){!function Z6(r,e){return wc(r.scale)||wc(e.scale)||e.scale.getTicks().length<2}(v,v.__alignTo)?wP(v,v.__alignTo.scale):hl(v)})}A(this._axesList,function(o){Ao(o,1);var s=o.scale;Kt(s)&&s.setSortInfo(o.model.get("categorySortInfo"))}),n(a.x),n(a.y);var i={};A(a.x,function(o){CP(a,"y",o,i)}),A(a.y,function(o){CP(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=mt(e,t),i=this._rect=qe(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(w_(o,i),!a){var u=function q6(r,e,t,a,n){var i=new OI(J6);return A(t,function(o){return A(o,function(s){lf(s.model)&&(s.axisBuilder=function B8(r,e,t,a,n,i){for(var o=qh(r,t),s=!1,l=!1,u=0;u<e.length;u++)PD(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,"category"===t.axis.type&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new _n(t,a,o,n)}(r,e,s.model,n,i,!a))})}),i}(i,s,o,l,t),f=void 0;if(l)T_?(T_(this._axesList,i),w_(o,i)):f=LP(i.clone(),"axisLabel",null,i,o,u,n);else{var v=function j6(r,e,t){var a,n=r.get("outerBoundsMode",!0);"same"===n?a=e.clone():(null==n||"auto"===n)&&(a=qe(r.get("outerBounds",!0)||YI,t.refContainer));var i=r.get("outerBoundsContain",!0);return{outerBoundsRect:a,parsedOuterBoundsContain:null==i||"auto"===i||pe(["all","axisLabel"],i)<0?"all":i,outerBoundsClamp:[jv(Q(r.get("outerBoundsClampWidth",!0),Jh[0]),e.width),jv(Q(r.get("outerBoundsClampHeight",!0),Jh[1]),e.height)]}}(e,i,n),c=v.outerBoundsRect;c&&(f=LP(c,v.parsedOuterBoundsContain,v.outerBoundsClamp,i,o,u,n))}IP(i,o,2,null,f,n),A(this._coordsList,function(d){d.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(null!=a)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(null!=e&&null!=t)return this._coordsMap["x"+e+"y"+t];se(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var s,l,t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",at).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",at).models[0],i=e.gridModel;return t?pe(this._coordsList,s=t.coordinateSystem)<0&&(s=null):a&&n?s=this.getCartesian(a.c
1omponentIndex,n.componentIndex):a?l=this.getAxis("x",a.componentIndex):n?l=this.getAxis("y",n.componentIndex):i&&i.coordinateSystem===this&&(s=this._coordsList[0]),{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y)return this._axesMap={},void(this._axesList=[]);function u(f){return function(v,c){if(function Y6(r,e){return r.getCoordSysModel()===e}(v,e)){var h=v.get("position");"x"===f?"top"!==h&&"bottom"!==h&&(h=o.bottom?"top":"bottom"):"left"!==h&&"right"!==h&&(h=o.left?"right":"left"),o[h]=!0;var p=of(v),d=new bP(f,sl(v,p,!0),[0,0],p,h);d.onBand=uf(d.scale,v),d.inverse=v.get("inverse"),v.axis=d,d.model=v,d.grid=i,d.index=c,i._axesList.push(d),s[f][c]=d,l[f]++}}}this._axesMap=s,A(s.x,function(f,v){A(s.y,function(c,h){var p="x"+v+"y"+h,d=new H6(p);d.master=n,d.model=e,n._coordsMap[p]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(c)})}),MP(s.x),MP(s.y)},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return A(this.getCartesians(),function(n){var i=null!=e&&"auto"!==e?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);pe(t,i)<0&&t.push(i),pe(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o),A(o._axesList,function(s){!function JW(r,e){tL(r).dimIdxInCoord=e.get(r.dim)}(s,r.dimIdxMap)})}),e.eachSeries(function(n){var i,o;Cu({targetModel:n,coordSysType:oa,coordSysProvider:function s(){var l=function N8(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,at).models[0];e[a]=i}),e}(n),u=l.xAxisModel,f=l.yAxisModel;return i=u.axis,o=f.axis,u.getCoordSysModel().coordinateSystem.getCartesian(u.componentIndex,f.componentIndex)}}),i&&o&&(Co(i,n,oa),Co(o,n,oa))},this),a},r.dimensions=np,r.dimIdxMap=p0(np),r}();function CP(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var i,n=r[e],o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)AP(s,n[l])&&(i=n[l]);else for(var u in n)if(J(n,u)&&AP(s,n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0)}function f(v){return v.dim+"_"+v.index}}function AP(r,e){if(!e)return!1;var a=function IW(r,e,t){var a=t?af(r,null):r.getExtentUnsafe(0,null),n=a[0],i=a[1];return Ni(n,i)?n===e||i===e?2:n<e&&i>e?1:3:3}(e.scale,0,!1),n=e&&"category"!==e.type&&"time"!==e.type&&3!==a;return n&&"auto"===r&&function kW(r){return UD(r).noOnMyZero}(e)&&(n=!1),n}function MP(r){for(var t,e=Te(r),a=[],n=e.length-1;n>=0;n--){var i=r[+e[n]];PD(i.scale)&&null==YD(i.model,i.type,!0)&&(i.model.get("alignTicks")&&null==i.model.get("interval")?a.push(i):t=i)}t||(t=a.pop()),t&&A(a,function(o){o.__alignTo=t})}function w_(r,e){A(r.x,function(t){return DP(t,e.x,e.width)}),A(r.y,function(t){return DP(t,e.y,e.height)})}function DP(r,e,t){var a=[0,t],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),function X6(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord="x"===r.dim?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord="x"===r.dim?function(n){return n-e}:function(n){return a-n+e}}(r,e)}function LP(r,e,t,a,n,i,o){IP(a,n,1,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=null==Ua(s,function(c){return c>0});return po(a,s,!0,!0,t),w_(n,a),l;function u(c){A(n[he[c]],function(h){if(lf(h.model)){var p=i.ensureRecord(h.model),d=p.labelInfoList;if(d)for(var g=0;g<d.length;g++){var y=d[g],m=h.scale.normalize(ul(h.scale,Oo(y.label).labelInfo.tick));f(y.rect,c,m=1===c?1-m:m),f(y.rect,1-c,NaN)}var _=p.nameLayout;_&&(m=ll(p.nameLocation)?.5:NaN,f(_.rect,c,m),f(_.rect,1-c,NaN))}})}function f(c,h,p){var d=r[he[h]]-c[he[h]],g=c[nt[h]]+c[he[h]]-(r[nt[h]]+r[he[h]]);d=v(d,1-p),g=v(g,p);var y=TP[h][0],m=TP[h][1];s[y]=xe(s[y],d),s[m]=xe(s[m],g)}function v(c,h){return c>0&&!Pt(h)&&h>1e-4&&(c/=h),c}}function IP(r,e,t,a,n,i){var o=2===t;A(e,function(u){return A(u,function(f){lf(f.model)&&(function V8(r,e,t){var a=qh(e,t);r.updateCfg(a)}(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};function l(u){s[he[1-u]]=r[nt[u]]<=.5*i.refContainer[nt[u]]?0:1-u==1?2:1}l(0),l(1),A(e,function(u,f){return A(u,function(v){lf(v.model)&&(("all"===a||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}
vendor: 10,222 bytes, line 1
1),o&&v.axisBuilder.build({axisLine:!0}))})})}var J6=function(r,e,t,a,n,i){var o="x"===t.axis.dim?"y":"x";NI(r,0,0,a,n,i),ll(r.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&VI(s.labelInfoList,s.dirVec,a,n)})};const Q6=U6;function C_(r,e){return"all"===r||H(r)&&pe(r,e)>=0||r===e}function A_(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Df(r)]}function M_(r){return!!r.get(["handle","show"])}function Df(r){return r.type+"||"+r.id}var PP={},o7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n,i){this.axisPointerClass&&function n7(r){var e=A_(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");null!=o&&(o=a.parse(o));var s=M_(t);null==i&&(n.status=s?"show":"hide");var l=a.getExtent();(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=function i7(r){var e=A_(r);return e&&e.axisPointerModel}(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){PP[t]=a},e.getAxisPointerClass=function(t){return t&&PP[t]},e.type="axis",e}(Xe);const Go=o7;var D_=ge();function RP(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,v=D_(r).splitAreaColors,c=j(),h=0;if(v)for(var p=0;p<u.length;p++){var d=v.get(u[p].tickValue);if(null!=d){h=(d+(f-1)*p)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();for(s=H(s)?s:[s],p=1;p<u.length;p++){var m=n.toGlobalCoord(u[p].coord),_=void 0,S=void 0,x=void 0,b=void 0;n.isHorizontal()?(S=l.y,b=l.height,g=(_=g)+(x=m-_)):(_=l.x,x=l.width,g=(S=g)+(b=m-S));var w=u[p-1].tickValue;null!=w&&c.set(w,h),e.add(new be({anid:null!=w?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:ie({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}D_(r).splitAreaColors=c}}}function EP(r){D_(r).splitAreaColors=null}var s7=["splitArea","splitLine","minorSplitLine","breakArea"],kP=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return N(e,r),e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new oe,this.group.add(this._axisGroup),lf(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),A(s7,function(l){t.get([l,"show"])&&l7[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Gu(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i))},e.prototype.remove=function(){EP(this)},e.type="cartesianAxis",e}(Go),l7={splitLine:function(r,e,t,a,n){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=!1!==o.get("showMinLine"),f=!1!==o.get("showMaxLine");l=H(l)?l:[l];for(var v=a.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],y=s.getLineStyle(),m=0;m<p.length;m++){var _=i.toGlobalCoord(p[m].coord);if((0!==m||u)&&(m!==p.length-1||f)){var S=p[m].tickValue;c?(d[0]=_,d[1]=v.y,g[0]=_,g[1]=v.y+v.height):(d[0]=v.x,d[1]=_,g[0]=v.x+v.width,g[1]=_);var x=h++%l.length,b=new ct({anid:null!=S?"line_"+S:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:ie({stroke:l[x]},y),silent:!0});Ys(b.shape,y.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,a,n){var i=t.axis,s=t.getModel("minorSplitLine").getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var v=[],c=[],h=s.getLineStyle(),p=0;p<f.length;p++)for(var d=0;d<f[p].length;d++){var g=i.toGlobalCoord(f[p][d].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=new ct({anid:"minor_line_"+f[p][d].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:h,silent:!0});Ys(y.shape,h.lineWidth),e.add(y)}},splitArea:function(r,e,t,a,n){RP(r,e,t,a)},breakArea:function(r,e,t,a,n){var i=Tf();i&&"ordinal"!==t.axis.scale.type&&i.rectCoordBuildBreakAxis(e,r,t,a.coordinateSystem.getRect(),n)}},OP=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="xAxis",e}(kP),u7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=OP.type,t}return N(e,r),e.type="yAxis",e}(kP),f7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="grid",t}return N(e,r),e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new be({shape:t.coordinateSystem.getRect(),style:ie({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Xe),NP={offset:0};function BP(r){r.registerComponentView(f7),r.registerComponentModel(W8),r.registerCoordinateSystem("cartesian2d",Q6),Sl(r,"x",x_,NP),Sl(r,"y",x_,NP),r.registerComponentView(OP),r.registerComponentView(u7),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var ip="single",L_="singleAxis",VP=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.getCoordSysModel=function(){return this},e.type=L_,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(Ce);it(VP,fl.prototype);const I_=VP;var h7=ge();function zP(r,e,t,a){if(r instanceof bP&&"ordinal"!==r.scale.type)return t;var i=r.model,o=i.get("jitter");if(!(o>0))return t;var s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=Kt(r.scale)?Vt(r).w:null;return s?GP(t,o,u,a):function p7(r,e,t,a,n,i){var o=h7(r);o.items||(o.items=[]);var s=o.items,l=FP(s,e,t,a,n,i,1),u=FP(s,e,t,a,n,i,-1),f=Math.abs(l-t)<Math.abs(u-t)?l:u,v=Kt(r.scale)?Vt(r).w:null,c=Math.abs(f-t);return c>n/2||v&&c>v/2-a?GP(t,n,v,a):(s.push({fixedCoord:e,floatCoord:f,r:a}),f)}(r,e,t,a,o,l)}function GP(r,e,t,a){if(null===t)return r+(Math.random()-.5)*e;var n=t-2*a,i=Math.min(Math.max(0,e),n);return r+(Math.random()-.5)*i}function FP(r,e,t,a,n,i,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],f=e-u.fixedCoord,v=s-u.floatCoord,h=a+u.r+i;if(f*f+v*v<h*h){var p=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(p-t)>n/2)return Number.MAX_VALUE;if(1===o&&p>s||-1===o&&p<s){s=p,l=-1;continue}}}return s}function m7(r){var e=r.polar;if(e){H(e)||(e=[e]);var t=[];A(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],H(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}A(r.series,function(a){a&&"radar"===a.type&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var Lf="radar",_7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return N(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new _l(q(this.getData,this),q(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return ml(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),s=this.coordinateSystem.getIndicatorAxes(),l=this.getData().getName(t),u=""===l?this.name:l,f=dA(this,t);return vt("section",{header:u,sortBlocks:!0,blocks:W(s,function(v){var c=i.get(i.mapDimension(v.dim),t);return vt("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(W(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}},e.type="series."+Lf,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Ye);const S7=_7;var x7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=Lf,t}return N(e,r),e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,h){var p=c.getItemVisual(h,"symbol")||"circle";if("none"!==p){var d=js(c.getItemVisual(h,"symbolSize")),g=lt(p,-1,-1,2,2),y=c.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,h,p,d,g,y){p.removeAll();for(var m=0;m<h.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),Ha[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},t,g)):_.setPosition(h[m]),p.add(_))}}function v(c){return W(c,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(c){var h=s.getItemLayout(c);if(h){var p=new Zt,d=new Bt,g={shape:{points:h}};p.shape.points=v(h),d.shape.points=v(h),Ze(p,g,t,c),Ze(d,g,t,c);var y=new oe,m=new oe;y.add(d),y.add(p),y.add(m),f(d.shape.points,h,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,h){var p=l.getItemGraphicEl(h),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(c)}};
1m.shape.points&&(f(d.shape.points,m.shape.points,y,s,c,!1),kr(g),kr(d),Pe(d,m,t),Pe(g,m,t),s.setItemGraphicEl(c,p))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var p=s.getItemModel(h),d=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(c),d.useStyle(ie(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),gt(d,p,"lineStyle"),gt(g,p,"areaStyle");var S=p.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,A(["emphasis","select","blur"],function(w){var C=p.getModel([w,"areaStyle"]),T=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(w).ignore=T&&x;var M=p.getModel([w,"lineStyle"]).getLineStyle();d.ensureState(w).style=M;var D=C.getAreaStyle();g.ensureState(w).style=D;var I=p.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(L){L.ensureState(w).style=re(I)})}),g.useStyle(ie(p.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=p.getModel("emphasis");y.eachChild(function(w){if(w instanceof At){var C=w.style;w.useStyle(G({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(null==T||isNaN(T))&&(T=""),bt(w,yt(p),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:m.opacity})}),Je(c,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Lf,e}(ze);const b7=x7;var If=_P.value,Pf="radar",HP=Pf,w7=Pf;function op(r,e){return ie({show:e},r)}var T7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("clockwise"),i=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),v=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),p=W(this.get("indicator")||[],function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var g=u;null!=d.color&&(g=ie({color:d.color},u));var y=de(re(d),{boundaryGap:t,splitNumber:a,clockwise:n,scale:i,axisLine:o,axisTick:s,axisLabel:l,name:d.text,showName:f,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:h},!1);X(v)?y.name=v.replace("{value}",y.name??""):ae(v)&&(y.name=v(y.name,y));var _=new De(y,null,this.ecModel);return it(_,fl.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=Ji("ec_radar"),_},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=HP,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:B.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:de({lineStyle:{color:B.color.neutral20}},If.axisLine),axisLabel:op(If.axisLabel,!1),axisTick:op(If.axisTick,!1),splitLine:op(If.splitLine,!0),splitArea:op(If.splitArea,!0),indicator:[]},e}(Ce);const C7=T7;var A7=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){this.group.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var n=t.coordinateSystem;A(W(n.getIndicatorAxes(),function(s){var l=s.model.get("showName")?s.name:"";return new _n(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(n.length){var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),c=l.get("color"),h=u.get("color"),p=H(c)?c:[c],d=H(h)?h:[h],g=[],y=[];if("circle"===i)for(var _=n[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++)f&&g[m(g,p,b)].push(new cn({shape:{cx:S,cy:x,r:_[b].coord}})),v&&b<_.length-1&&y[m(y,d,b)].push(new Nu({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}));else{var C,T=W(n,function(E,R){var k=E.getTicksCoords();
1return C=null==C?k.length-1:Math.min(k.length-1,C),W(k,function(O){return a.coordToPoint(O.coord,R)})}),M=[];for(b=0;b<=C;b++){for(var D=[],I=0;I<n.length;I++)D.push(T[I][b]);D[0]&&D.push(D[0].slice()),f&&g[m(g,p,b)].push(new Bt({shape:{points:D}})),v&&M&&y[m(y,d,b-1)].push(new Zt({shape:{points:D.concat(M)}})),M=D.slice().reverse()}}var L=l.getLineStyle(),P=u.getAreaStyle();A(y,function(E,R){this.group.add(xr(E,{style:ie({stroke:"none",fill:d[R%d.length]},P),silent:!0}))},this),A(g,function(E,R){this.group.add(xr(E,{style:ie({fill:"none",stroke:p[R%p.length]},L),silent:!0}))},this)}function m(E,R,k){var O=k%R.length;return E[O]=E[O]||[],O}},e.type="radar",e}(Xe);const M7=A7;var D7=function(r){function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return N(e,r),e}(Gr);const L7=D7;var I7=function(){function r(e,t,a){this.type=Pf,this.dimensions=[],this._model=e,this._indicatorAxes=W(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new L7(o,new wo);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){return this.coordToPoint(this._indicatorAxes[t].dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var s,i=Math.atan2(-a,t),o=1/0,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],v=Math.abs(i-f.angle);v<o&&(s=f,l=u,o=v)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=mt(e,t).refContainer,n=e.get("center"),i=e.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=K(n[0],a.width)+a.x,this.cy=K(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(X(s)||Ae(s))&&(s=[0,s]),this.r0=K(s[0],o),this.r=K(s[1],o);var l=i?-1:1;A(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var v=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;v=Math.atan2(Math.sin(v),Math.cos(v)),u.angle=v},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,i=Th(this._model.get("splitNumber"),5),o=new wo;o.setExtent(0,i),o.setConfig({interval:1}),A(a,function(s){Ao(s,1),wP(s,o)})},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(HP,function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType(w7,function(n){if(n.get("coordinateSystem")===Pf){var i=n.coordinateSystem=a[n.get("radarIndex")||0];i&&A(i.getIndicatorAxes(),function(o){Co(o,n,Pf)})}}),a},r.dimensions=[],r}();const P7=I7;function R7(r){r.registerCoordinateSystem("radar",P7),r.registerComponentModel(C7),r.registerComponentView(M7),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var E7=dt(Lf,function k7(r){r.eachSeriesByType(Lf,function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=UP(f)?f:YP(n)})}),t.each(function(o){var s=Ua(a[o],function(l){return UP(l)})||YP(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})});function UP(r){return!isNaN(r[0])&&!isNaN(r[1])}function YP(r){return[r.cx,r.cy]}var P_=ge();function ZP(r,e){return!!P_(r)[e]}ra({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},et);var V7={axisPointer:1,tooltip:1,brush:1};function XP(r,e,t){var a=e.getComponentByElement(r.topTarget);if(!a||a===t||V7.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===t)return!1;var i=go(a),o=go(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var z7=function(r){function e(t){var a=r.call(this)||this;a._zr=t;var n=q(a._mousedownHandler,a),i=q(a._mousemoveHandler,a),o=q(a._mouseupHandler,a),s=q(a._mousewheelHandler,a),l=q(a._pinchHandler,a);return a.enable=function(u,f){var v=f.zInfo,c=go(v.component),d={component:v.component,z:c.z,zlevel:c.zlevel,z2:Q(v.z2,-1/0)},g=G({},f.triggerInfo);this._opt=ie(G({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:g,cursorGrab:"grab",cursorGrabbing:"grabbing"}),null==u&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(!0===u||"move"===u||"pan"===u)&&(Ef(t,"mousedown",n,d),Ef(t,"mousemove",i,d),Ef(t,"mouseup",o,d)),(!0===u||"scale"===u||"zoom"===u)&&(Ef(t,"mousewheel",s,d),Ef(t,"pinch",l,d)))},a.disable=function(){this._enabled&&(this._enabled=!1,kf(t,"mousedown",n),kf(t,"mousemove",i),kf(t,"mouseup",o),kf(t,"mousewheel",s),kf(t,"pinch",l))},a}return N(e,r),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,a,n){var i=this._opt;if(XP(t,i.api,i.zInfoParsed.component))return!1;var s=i.triggerInfo,u=!1;return"global"===s.roamTrigger&&(u=!0),u||(u=s.isInSelf(t,a,n)),u&&s.isInCl
1ip&&!s.isInClip(t,a,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,a,n,i){var o=t.target;return!o&&this._checkPointer(t,a,n)?this._opt.cursorGrab:i?o&&o.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!Qx(t)&&!Rf(t)){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var a=this._zr;if("pinch"!==t.gestureEvent&&!ZP(a,"globalPan")&&!Rf(t)){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!lp("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,i,!1);return void(o&&a.setCursorStyle(o))}a.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&qa(t.event),t.__ecRoamConsumed=!0,KP(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!Rf(t)){var a=this._zr;if(!Qx(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&a.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!Rf(t)){var a=lp("zoomOnMouseWheel",t,this._opt),n=lp("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(0!==i&&(a||n)){if(a){var u=o>3?1.4:o>1?1.2:1.1;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(v>3?.4:v>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){ZP(this._zr,"globalPan")||Rf(t)||this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e.prototype._checkTriggerMoveZoom=function(t,a,n,i,o){t._checkPointer(i,o.originX,o.originY)&&(qa(i.event),i.__ecRoamConsumed=!0,KP(t,a,n,i,o))},e}(Cr);function Rf(r){return r.__ecRoamConsumed}var G7=ge();function sp(r){var e=G7(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function Ef(r,e,t,a){for(var i=sp(r).roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;
vendor: 8,354 bytes, line 1
1if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:a}),function F7(r,e){var t=sp(r);t.uniform[e]||r.on(e,t.uniform[e]=function(a){var n=t.roam[e];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}(r,e)}function kf(r,e,t){for(var n=sp(r).roam[e]||[],i=0;i<n.length;i++)if(n[i].listener===t)return n.splice(i,1),void(n.length||H7(r,e))}function H7(r,e){var a=sp(r).uniform;a[e]&&(r.off(e,a[e]),a[e]=null)}function KP(r,e,t,a,n){n.isAvailableBehavior=q(lp,null,t,a),r.trigger(e,n)}function lp(r,e,t){var a=t[r];return!r||a&&(!X(a)||e.event[a+"Key"])}const Fo=z7;function qP(r){X(r)&&(r=(new DOMParser).parseFromString(r,"text/xml"));var t=r;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var R_,up={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},jP=Te(up),fp={"alignment-baseline":"textBaseline","stop-color":"stopColor"},JP=Te(fp),W7=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=qP(e);this._defsUsePending=[];var n=new oe;this._root=n;var f,v,i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),br(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;if(function Z7(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var c=vp(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&null!=s&&null!=l&&(v=i2(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=n;(n=new oe).add(h),h.scaleX=h.scaleY=v.scale,h.x=v.x,h.y=v.y}return!t.ignoreRootClip&&null!=s&&null!=l&&n.setClipPath(new be({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:v,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var l,s=e.nodeName.toLowerCase(),u=n;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)l=t;else{if(!i){var f=R_[s];if(f&&J(R_,s)){l=f.call(this,e,t);var v=e.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};a.push(c),"g"===s&&(u=c)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var h=QP[s];if(h&&J(QP,s)){var p=h.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)1===g.nodeType?this._parseNode(g,l,a,u,i,o):3===g.nodeType&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new mu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Hr(t,a),br(e,a,this._defsUsePending,!1,!1),function U7(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;a&&"auto"!==a&&"baseline"!==a?"before-edge"===a||"text-before-edge"===a?n="top":"after-edge"===a||"text-after-edge"===a?n="bottom":("central"===a||"mathematical"===a)&&(n="middle"):n="alphabetic",r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&("middle"===o&&(s="center"),r.style.textAlign=s)}}(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=void(R_={g:function(e,t){var a=new oe;return Hr(t,a),br(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new be;return Hr(t,a),br(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 cn;return Hr(t,a),br(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 ct;return Hr(t,a),br(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 Hc;return Hr(t,a),br(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 n,a=e.getAttribute("points");a&&(n=t2(a));var i=new Zt({shape:{points:n||[]},silent:!0});return Hr(t,i),br(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,a=e.getAttribute("points");a&&(n=t2(a));var i=new Bt({shape:{points:n||[]},silent:!0});return Hr(t,i),br(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new At;return Hr(t,a),br(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("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",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new oe;return Hr(t,s),br(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");null!=a&&(this._textX=parseFloat(a)),null!=n&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new oe;return Hr(t,s),br(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=DA(e.getAttribute("d")||"");return Hr(t,n),br(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),r}(),QP={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),n=parseInt(r.getAttribute("y2")||"0",10),i=new fo(e,t,a,n);return $P(r,i),e2(r,i),i},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),n=new Am(e,t,a);return $P(r,n),e2(r,n),n}};function $P(r,e){"userSpaceOnUse"===r.getAttribute("gradientUnits")&&(e.global=!0)}function e2(r,e){for(var t=r.firstChild;t;){if(1===t.nodeType&&"stop"===t.nodeName.toLocaleLowerCase()){var n,a=t.getAttribute("offset");n=a&&a.indexOf("%")>0?parseInt(a,10)/100:a?parseFloat(a):0;var i={};n2(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Ht(o);l&&l[3]&&(l[3]*=Qa(s),o=Lr(l,"rgba"))}e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Hr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ie(e.__inheritedStyle,r.__inheritedStyle))}function t2(r){for(var e=vp(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function br(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};1===r.nodeType&&(function q7(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(K7,function(v,c,h){return a.push(c,h),""});for(var i=a.length-1;i>0;i-=2){var s=a[i-1],l=vp(a[i]);switch(n=n||[1,0,0,1,0,0],s){case"translate":Zr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Sv(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ja(n,n,-parseFloat(l[0])*E_,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":cr(n,[1,0,Math.tan(parseFloat(l[0])*E_),1,0,0],n);break;case"skewY":cr(n,[1,Math.tan(parseFloat(l[0])*E_),0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=
1parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5])}}e.setLocalTransform(n)}}(r,e),n2(r,o,s),a||function j7(r,e,t){for(var a=0;a<jP.length;a++)null!=(i=r.getAttribute(n=jP[a]))&&(e[up[n]]=i);for(a=0;a<JP.length;a++){var n,i;null!=(i=r.getAttribute(n=JP[a]))&&(t[fp[n]]=i)}}(r,o,s)),i.style=i.style||{},null!=o.fill&&(i.style.fill=r2(i,"fill",o.fill,t)),null!=o.stroke&&(i.style.stroke=r2(i,"stroke",o.stroke,t)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){null!=o[l]&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){null!=o[l]&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=W(vp(o.lineDash),function(l){return parseFloat(l)})),("hidden"===o.visibility||"collapse"===o.visibility)&&(i.invisible=!0),"none"===o.display&&(i.ignore=!0)}var Y7=/^url\(\s*#(.*?)\)/;function r2(r,e,t,a){var n=t&&t.match(Y7);if(!n)return"none"===t&&(t=null),t;var i=vr(n[1]);a.push([r,e,i])}var X7=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function vp(r){return r.match(X7)||[]}var K7=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,E_=Math.PI/180,a2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function n2(r,e,t){var a=r.getAttribute("style");if(a){a2.lastIndex=0;for(var n;null!=(n=a2.exec(a));){var i=n[1],o=J(up,i)?up[i]:null;o&&(e[o]=n[2]);var s=J(fp,i)?fp[i]:null;s&&(t[s]=n[2])}}}function i2(r,e){var n=Math.min(e.width/r.width,e.height/r.height);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}for(var Q7=j(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),$7=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=j(),this._freedGraphics=[],this._mapName=e,this._parsedXML=qP(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function tZ(r){var e=[],t=j();return A(r,function(a){if(null==a.namedFrom){var n=new hU(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}(e.named),n=t.regionsMap;this._regions=t.regions,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&function J7(r,e){return(new W7).parse(r,e)}(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},Rt(null!=(a=t.root))}catch(g){throw new Error("Invalid svg format\n"+g.message)}var n=new oe;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,c=void 0;if(null!=i?(u=0,v=i):s&&(u=s.x,v=s.width),null!=o?(f=0,c=o):s&&(f=s.y,c=s.height),null==u||null==f){var h=a.getBoundingRect();null==u&&(u=h.x,v=h.width),null==f&&(f=h.y,c=h.height)}l=this._boundingRect=new fe(u,f,v,c)}if(s){var p=i2(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new be({shape:l.plain()}));var d=[];return A(t.named,function(g){null!=Q7.get(g.svgNodeTagLower)&&(d.push(g),function eZ(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}(),k_=[126,25],Ho=[[[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]]],Wo=0;Wo<Ho.length;Wo++)for(var xl=0;xl<Ho[Wo].length;xl++)Ho[Wo][xl][0]/=10.5,Ho[Wo][xl][1]/=-14,Ho[Wo][xl][0]+=k_[0],Ho[Wo][xl][1]+=k_[1];var aZ={\u5357\u6d77\u8bf8\u5c9b:[32,80],\u5e7f\u4e1c:[0,-10],\u9999\u6e2f:[10,5],\u6fb3\u95e8:[-10,10],\u5929\u6d25:[5,5]},iZ=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]],lZ=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=j(),this._mapName=e,this._specialAreas=a,this._geoJSON=function fZ(r){return X(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}(t)}return r.prototype.load=function(e,t){var a=this._parsedMap.get(t=t||"name");if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:uZ(n)})}var i=j(),o=[];return A(a.regions,function(s){var l=s.name;e&&J(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new fe(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var n,t=this._mapName,a=this._geoJSON;try{n=a?k0(a,e):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return function rZ(r,e){if("china"===r){for(var t=0;t<e.length;t++)if("\u5357\u6d77\u8bf8\u5c9b"===e[t].name)return;e.push(new cL("\u5357\u6d77\u8bf8\u5c9b",W(Ho,function(a){return{type:"polygon",exterior:a}}),k_))}}(t,n),A(n,function(i){var o=i.name;(function nZ(r,e){if("china"===r){var t=aZ[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/14,e.setCenter(a)}}})(t,i),function oZ(r,e){"china"===r&&"\u53f0\u6e7e"===e.name&&e.geometries.push({type:"polygon",exterior:iZ[0]})}(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function uZ(r){for(var e,t=0;t<r.length;
1t++){var a=r[t].getBoundingRect();(e=e||a.clone()).union(a)}return e}var Of=j();const Sn_getGeoResource=function(r){return Of.get(r)},Sn_load=function(r,e,t){var a=Of.get(r);if(a)return a.load(e,t)};var cZ=function(r){function e(t,a,n){var i=r.call(this)||this;i.type="view",i.dimensions=["x","y"];var o=i;o.invertY=t,o.lgCt=a,o.lgGeo=n;var s=o.trans=[];return s[0]=ms(),s[1]=ms(),s[2]=ms(),o.mtRaw=[1,0,0,1,0,0],o.mtRawInv=[1,0,0,1,0,0],o.mtOverall=[1,0,0,1,0,0],o.mtOverallInv=[1,0,0,1,0,0],o.zoom=1,i}return N(e,r),e.prototype.getBoundingRect=function(){return s2(null,this)},e.prototype.getViewRect=function(){return O_(null,this)},e.prototype.getRoamTransform=function(){return zn(this.trans[1])},e.prototype.dataToPoint=function(t,a,n){var i=a?this.mtRaw:this.mtOverall;return n=n||[],i?tt(n,t,i):Et(n,t)},e.prototype.pointToData=function(t,a,n){n=n||[];var i=this.mtOverallInv;return i?tt(n,t,i):Et(n,t)},e.prototype.convertToPixel=function(t,a,n){var i=h2(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=h2(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return vs(cp,this.dataRect),ab(cp,cp,this.mtOverall),sV(cp,t[0],t[1])},e.dimensions=["x","y"],e}(Gn),cp=xv();function hp(r,e){return En(r||[],e.mtOverall)}function hZ(r){return r.zoom}function s2(r,e){return vs(r||xv(),e.dataRect)}function O_(r,e){return vs(r||xv(),e.viewRect)}function Nf(r,e,t){return ua(r||ms(),e.trans[t])}function N_(r){return!(!r.dataRect||!r.viewRect)}function l2(r,e,t){zn(t,pp),cr(pp,pp,e.mtRawInv),$c(r,pp)}var pp=[1,0,0,1,0,0];function B_(r,e){var t=r;t.centerOption=e.getShallow("center");var a=t.zoomLimit=e.getShallow("scaleLimit"),n=e.getShallow("zoom");t.zoom=H_(n||1,a)||1,N_(t)&&V_(t)}function dp(r,e,t,a,n){var i=r;i.dataRect=new fe(e,t,a,n),N_(i)&&V_(i)}function gp(r,e,t,a,n){var i=r;i.viewRect=new fe(e,t,a,n),N_(i)&&V_(i)}function V_(r){(function dZ(r){var e=r.dataRect,t=r.viewRect,a=r.trans[0],n=r.invertY;n&&((e=vs(gZ,e)).y=-e.y-e.height),rb(u2,e,t),$c(a,u2),n&&(a.scaleY=-a.scaleY);var i=zn(a,r.mtRaw);hr(r.mtRawInv,i)})(r),function yZ(r){var e=p2(r),t=function xZ(r,e,t){var a=e.dataRect;if(!t)return!1;var n=e.lgCt;return n?Ya(r,K(t[0],n.w),K(t[1],n.h)):a&&Ya(r,K(t[0],a.width,a.x),K(t[1],a.height,a.y)),!0}(z_,r,r.centerOption)?tt(z_,z_,r.mtRaw):e,a=r.zoom,n=r.trans[1];n.x=e[0]-a*t[0],n.y=e[1]-a*t[1],n.scaleX=n.scaleY=a}(r),function mZ(r){var e=r.trans,n=e[2];v2(n,e[0],e[1]);var i=zn(n,r.mtOverall),o=hr(r.mtOverallInv,i);f2(r,n,i,o),f2(r.lgGeo,n,i,o)}(r)}var u2=[1,0,0,1,0,0],gZ=xv(),z_=[];function f2(r,e,t,a){r&&(ua(r,e),En(r.transform||(r.transform=[]),t),En(r.invTransform||(r.invTransform=[]),a))}function v2(r,e,t){zn(e,c2),zn(t,yp),cr(yp,yp,c2),$c(r,yp)}var c2=[1,0,0,1,0,0],yp=[1,0,0,1,0,0];function h2(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function p2(r){var e=r.viewRect;return G_[0]=e.x+e.width/2,G_[1]=e.y+e.height/2,G_}var G_=[];function d2(r){return r&&"view"===r.type}function oi(r,e,t,a){var n=t;n.syncBackEl=r,n.syncBackType=e,a?Pe(r,Nf(null,t,e),a):(Nf(r,t,e),r.dirty())}var si=ms(),F_=ms();function g2(r,e,t){var a=mp(e);a&&(function _Z(r,e,t,a){var n=r,i=n.syncBackEl;i?(i.stopAnimation(),function pZ(r,e,t,a){1===a?v2(r,e.trans[0],t):ua(r,t)}(si,n,i,n.syncBackType)):ua(si,n.trans[2]),l2(F_,n,si),a?function SZ(r,e,t,a){null!=a.dx&&null!=a.dy&&(r.x+=a.dx,r.y+=a.dy);var n=a.zoom;if(null!=n){var i=m2(e),s=H_(i*n,t.zoomLimit)/i;r.x-=(a.originX-r.x)*(s-1),r.y-=(a.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}(si,F_,n,a):ua(si,F_),l2(si,n,si),function wZ(r,e,t,a){var n=p2(r),i=m2(a),o=rt(i)>1e-6;Bf[0]=o?(n[0]-a.x)/i:n[0],Bf[1]=o?(n[1]-a.y)/i:n[1],tt(Bf,Bf,r.mtRawInv);var s=function bZ(r,e){var t=r.centerOption,a=r.dataRect;return!t||r.lgCt?e.slice():[_2(0,e,t,a),_2(1,e,t,a)]}(r,Bf);x2(e,s,i),A(t,function(l){l!==e&&x2(l,s.slice(),i)})}(n,e,t,si)}(a,e,t,r),B_(a,e))}function mp(r){return r.__ownRoamView?r.__ownRoamView():null}function y2(r,e,t,a){t.setUpdatePayload(Nm(r));var n=sT(a,e);n&&n.__updateOnOwnRoam&&n.__updateOnOwnRoam(r,e,a)}function m2(r){return r.scaleX}function _2(r,e,t,a){return t&&a&&a[nt[r]]&&function Tz(r){return X(r)&&ow(r)}
1(t[r])?(e[r]-a[he[r]])/a[nt[r]]*100+"%":e[r]}function S2(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}var Bf=[];function x2(r,e,t){var a=r.option;a.center=e,a.zoom=t}function H_(r,e){if(e){var t=e.min||0;r=Math.max(Math.min(e.max||1/0,r),t)}return r}function b2(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1;return((r.zoom-1)*t+1)/(r.trans[2].scaleX||1)}const _p=cZ;function Sp(r,e,t,a,n,i,o,s){function u(f){var v=r.mainType,c=Nm(ie({type:T2(v,r.subType,"Roam")},f));s&&(c.componentType=v),c[v+"Id"]=r.id,e.dispatchAction(c)}mp(r)?(t.enable(Q(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:a,isInClip:function(f,v,c){return!n||n.contain(v,c)}}}),t.off("pan").off("zoom").on("pan",function(f){i&&i("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){i&&i("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})):t.disable()}function w2(r){return function(e,t,a){return W_.copy(r.getBoundingRect()),W_.applyTransform(r.getComputedTransform()),W_.contain(t,a)}}var W_=new fe(0,0,0,0);function U_(r,e,t){var a=T2(e,t,"Roam");r.registerAction({type:a,event:a,update:"none"},function(n,i,o){i.eachComponent(Kg(n,e,t),function(s){g2(n,s),y2(n,s,i,o)})})}function T2(r,e,t){return(r!==ba?r:"map"===e?"geo":e)+t}function C2(r){return null!=r.zoom}function Y_(r,e,t,a,n,i,o){var s=new _p(null,S2(r.ecModel,e));return dp(s,t,a,n,i),o?gp(s,o.x,o.y,o.width,o.height):gp(s,t,a,n,i),B_(s,r),s}var Z_=["rect","circle","line","ellipse","polygon","polyline","path"],TZ=j(Z_),CZ=j(Z_.concat(["g"])),AZ=j(Z_.concat(["g"])),A2=ge();function xp(r){var e=r.getItemStyle(),t=r.get("areaColor");return null!=t&&(e.fill=t),e}function M2(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var MZ=function(){function r(e){var t=this.group=new oe,a=this._transformGroup=new oe;t.add(a),this.uid=Ji("ec_map_draw"),this._controller=new Fo(e.getZr()),a.add(this._regionsGroup=new oe),a.add(this._svgGroup=new oe)}return r.prototype.draw=function(e,t,a,n,i){var o=this,s=e.getData&&e.getData();bl(e)&&t.eachComponent({mainType:"series",subType:"map"},function(d){!s&&d.getHostGeoModel()===e&&(s=d.getData())});var h,l=e.coordinateSystem,u=l.view,f=this._regionsGroup,v=this._transformGroup,c=!f.childAt(0)||i;l.shouldClip()?(h=O_(null,u),this.group.setClipPath(new be({shape:h.clone()}))):this.group.removeClipPath(),oi(v,1,u,c?null:e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;"geoJSON"===l.resourceType?this._buildGeoJSON(u,a,l,e,s,p):"geoSVG"===l.resourceType&&this._buildSVG(u,a,l,e,s,p),Sp(e,a,this._controller,function(d,g,y){return e.coordinateSystem.containPoint([g,y])},h,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,a,n)},r.prototype.__updateOnOwnRoam=function(e){oi(this._transformGroup,1,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,a,n,i,o){var s=this._regionsGroupByName=j(),l=j(),u=this._regionsGroup,f=
vendor: 16,163 bytes, line 1
1a.projection,v=f&&f.stream,c=zn(Nf(null,e,0));function h(g,y){return y&&(g=y(g)),g&&tt([],g,c)}function p(g){for(var y=[],m=!v&&f&&f.project,_=0;_<g.length;++_){var S=h(g[_],m);S&&y.push(S)}return y}function d(g){return{shape:{points:p(g)}}}u.removeAll(),A(a.regions,function(g){var y=g.name,m=s.get(y),_=l.get(y)||{},S=_.dataIdx,x=_.regionModel;if(!m){m=s.set(y,new oe),u.add(m),S=i?i.indexOfName(y):null;var b=(x=bl(n)?n.getRegionModel(y):i?i.getItemModel(S):null).get("silent",!0);null!=b&&(m.silent=b),l.set(y,{dataIdx:S,regionModel:x})}var w=[],C=[];A(g.geometries,function(D){if("polygon"===D.type){var I=[D.exterior].concat(D.interiors||[]);v&&(I=E2(I,v)),A(I,function(P){w.push(new Zt(d(P)))})}else{var L=D.points;v&&(L=E2(L,v,!0)),A(L,function(P){C.push(new Bt(d(P)))})}});var T=h(g.getCenter(),f&&f.project);function M(D,I){if(D.length){var L=new Vu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});m.add(L),D2(t,i,o,L,S,x),L2(n,i,L,y,x,S,T),I&&(M2(L),A(L.states,M2))}}M(w),M(C,!0)}),s.each(function(g,y){var m=l.get(y),S=m.regionModel;I2(n,i,g,y,S,m.dataIdx),P2(n,i,g,y,S),R2(n,g,y,S)},this)},r.prototype._buildSVG=function(e,t,a,n,i,o){var s=a.map;Nf(this._svgGroup,e,0),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=j(),u=!1;A(this._svgGraphicRecord.named,function(f){var v=f.name,c=f.svgNodeTagLower,h=f.el,p=i?i.indexOfName(v):null,d=n.getRegionModel(v);null!=TZ.get(c)&&h instanceof Rr&&D2(t,i,o,h,p,d),h instanceof Rr&&(h.culling=!0);var g=d.get("silent",!0);null!=g&&(h.silent=g),h.z2EmphasisLift=0,f.namedFrom||(null!=AZ.get(c)&&L2(n,i,h,v,d,p,null),I2(n,i,h,v,d,p),P2(n,i,h,v,d),null==CZ.get(c))||("self"===R2(n,h,v,d)&&(u=!0),(l.get(v)||l.set(v,[])).push(h))},this),this._enableBlurEntireSVG(u,n)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&bl(t)){var n=t.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Ki(i);var o=i.ensureState("blur").style||{};null==o.opacity&&null!=n&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var a=t.coordinateSystem;if("geoJSON"===a.resourceType){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if("geoSVG"===a.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Sn_getGeoResource(e);if(t&&"geoSVG"===t.type){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=Sn_getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=A2(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function D2(r,e,t,a,n,i){var o=i.getModel("itemStyle"),s=i.getModel(["emphasis","itemStyle"]),l=i.getModel(["blur","itemStyle"]),u=i.getModel(["select","itemStyle"]),f=xp(o),v=xp(s),c=xp(u),h=xp(l);if(e){var p=e.getItemVisual(n,"style"),d=e.getItemVisual(n,"decal");t&&p.fill&&(f.fill=p.fill),d&&(f.decal=$s(d,r))}a.setStyle(f),a.style.strokeNoScale=!0,a.ensureState("emphasis").style=v,a.ensureState("select").style=c,a.ensureState("blur").style=h,Ki(a)}function L2(r,e,t,a,n,i,o){var s=e&&isNaN(e.get(e.mapDimension("value"),i)),l=e&&e.getItemLayout(i);if(bl(r)||s||l&&l.showLabel){var u=bl(r)?a:i,f=void 0;(!e||i>=0)&&(f=r);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;bt(t,yt(n),{labelFetcher:f,labelDataIndex:u,defaultText:a},v);var c=t.getTextContent();if(c&&(A2(c).ignore=c.ignore,t.textConfig&&o)){var h=t.getBoundingRect().clone();t.textConfig.layoutRect=h,t.textConfig.position=[(o[0]-h.x)/h.width*100+"%",(o[1]-h.y)/h.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function I2(r,e,t,a,n,i){e?e.setItemGraphicEl(i,t):ue(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:a,region:n&&n.option||{}}}function P2(r,e,t,a,n){e||hn({el:t,componentModel:r,itemName:a,itemTooltipOption:n.get("tooltip")})}function R2(r,e,t,a){e.highDownSilentOnTouch=!!r.get("selectedMode");var n=a.getModel("emphasis"),i=n.get("focus");return Je(e,i,n.get("blurScope"),n.get("disabled")),bl(r)&&function cG(r,e,t){var a=ue(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}(e,r,t),i}function E2(r,e,t){var n,a=[];function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}function bl(r){return"geo"===r.mainType}const k2=MZ;var Zo="map",DZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(a){if(null!=a){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return N(e,r),e.prototype.getInitialData=function(t){for(var a=ml(this,{coordDimensions:["value"],encodeDefaulter:Se(tm,this)}),n=j(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}return A(Sn_load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(f){var p,v=f.name,c=n.get(v),h=f.properties&&f.properties.echartsStyle;null==c?i.push(p={name:v}):p=a.getRawDataItem(c),h&&de(p,h)}),a.appendData(i),a},e.prototype.getHostGeoModel=function(){if(2!==tC(this).kind)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=[];return A(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),v=i.mapDimension("value");isNaN(u.originalData.get(v,f))||l.push(u.name)}),vt("section",{header:l.join(", "),noHeader:!l.length,blocks:[vt("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=lt(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=B.color.neutral00,n.style.lineWidth=2),n},e.prototype.__ownRoamView=function(){return bp(this)?this.coordinateSystem.view:null},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={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:B.color.tertiary},itemStyle:{borderWidth:.5,borderColor:B.color.border,areaColor:B.color.background},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{areaColor:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},nameProperty:"name"},e}(Ye);function O2(r){return 0===r.indexOf("i")}function bp(r){return Vf(r.seriesGroup)===r&&!r.getHostGeoModel()}function Vf(r){return r.f[0]}function X_(r,e){var t={};return r.eachRawSeriesByType(Zo,function(a){var n=a.getHostGeoModel(),i=n?"o"+n.id:"i"+a.getMapType(),o=t[i]=t[i]||{f:[],r:[]};!r.isSeriesFiltered(a)&&!e&&o.f.push(a),o.r.push(a)}),t}const LZ=DZ;var IZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=Zo,t}return N(e,r),e.prototype.render=function(t,a,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){var s=this._mapDraw;s&&i&&"geoRoam"===i.type&&s.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?s&&o.add(s.group):bp(t)?(s=s||(this._mapDraw=new k2(n)),o.add(s.group),s.draw(t,a,n,this,i)):this._clearMapDraw(),t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,a,n){var i=this._mapDraw;bp(a)&&i&&i.__updateOnOwnRoam(a)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var a=t.originalData,n=this.group;a.each(a.mapDimension("value"),function(i,o){if(!isNaN(i)){var s=a.getItemLayout(o);if(s&&s.point){var l=s.point,u=s.offset,f=new cn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+9*u,cy:l[1],r:3},silent:!0,z2:8+(u?0:11)});if(!u){var v=Vf(t.seriesGroup).getData(),c=a.getName(o),h=v.indexOfName(c),p=a.getItemModel(o),d=p.getModel("label"),g=v.getItemGraphicEl(h);bt(f,yt(p),{labelFetcher:{getFormattedLabel:function(y,m){return t.getFormattedLabel(h,m)}},defaultText:c}),f.disableLabelAnimation=!0,d.get("position")||f.setTextConfig({position:"bottom"}),g.onHoverStateChange=function(y){yc(f,y)}}n.add(f)}}})},e.type=Zo,e}(ze);const PZ=IZ;var RZ={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},N2=["lng","lat"],EZ=function(r){function e(t,a,n){var i=r.call(this)||this;i.dimensions=N2,i.type="geo",i._nameCoordMap=j(),i.name=t;var h,o=n.projection,s=Sn_load(a,n.nameMap,n.nameProperty),l=Sn_getGeoResource(a),f=(i.resourceType=l?l.type:null,i.regions=s.regions),v=RZ[l.type];if(i._clip=n.clip,i.view=new _p(!o&&v.invertLongitute,S2(n.ecModel,n.api),i),i.map=a,i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o,o)for(var p=0;p<f.length;p++){var d=f[p].getBoundingRect(o);(h=h||d.clone()).union(d)}else h=s.boundingRect;return dp(i.view,h.x,h.y,h.width,h.height),i.aspectScale=o?1:Q(n.aspectScale,v.aspectScale),i}return N(e,r),e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if("geoJSON"===i.type&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(X(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.view.dataToPoint(t,a,n)}},e.prototype.pointToData=function(t,a,n){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.view.pointToData(t,n)},e.prototype.convertToPixel=function(t,a,n){var i=B2(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=B2(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var a=O_(null,this.view);return a.x-=t,a.y-=t,a.width+=2*t,a.height+=2*t,a},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e}(Gn);function B2(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",at).models[0]||{}).coordinateSystem:null}const V2=EZ;function z2(r,e){var t=this.view,a=r.get("boundingCoords");if(null!=a){var n=a[0],i=a[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var s=n[0],l=n[1],u=i[0],f=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var v=function(b,w,C,T){for(var M=C-b,D=T-w,I=0;I<=100;I++){var L=I/100,P=o.project([b+M*L,w+D*L]);Xa(n,n,P),Ka(i,i,P)}};v(s,l,u,l),v(u,l,u,f),v(u,f,s,f),v(s,f,u,l)}dp(t,n[0],n[1],i[0]-n[0],i[1]-n[1])}}var m,_,S,c=t.getBoundingRect(),h=r.get("layoutCenter"),p=r.get("layoutSize"),d=mt(r,e).refContainer,g=c.width/c.height*this.aspectScale,y=!1;if(h&&p&&(m=[K(h[0],d.width)+d.x,K(h[1],d.height)+d.y],_=K(p,Math.min(d.width,d.height)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0)),y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var x=r.getBoxLayoutParams();x.aspect=g,S=oC(r,S=qe(x,d),g)}gp(t,S.x,S.y,S.width,S.height),B_(t,r)}var OZ=function(){function r(){this.dimensions=N2}return r.prototype.create=function(e,t){var a=[];function n(i){return{nameProperty:i.get("nameProperty"),aspectScale:i.get("aspectScale"),projection:i.get("projection"),clip:i.getShallow("clip",!0)}}return e.eachComponent("geo",function(i,o){var s=i.get("map"),l=new V2(s+o,s,G({nameMap:i.get("nameMap"),api:t,ecModel:e},n(i)));a.push(l),i.coordinateSystem=l,l.model=i,l.resize=z2,l.resize(i,t)}),e.eachSeries(function(i){Cu({targetModel:i,coordSysType:"geo",coordSysProvider:function(){var o=i.subType===Zo?i.getHostGeoModel():i.getReferringComponents("geo",at).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),A(X_(e,!0),function(i,o){if(O2(o)){var s=i.r[0],l=[];A(i.r,function(c){l.push(c.get("nameMap")),c.seriesGroup=null});var v,u=o.slice(1),f=new V2(u,u,G({nameMap:pv(l),api:t,ecModel:e},n(s)));A(i.r,function(c){v=Q(v,c.get("scaleLimit"))}),a.push(f),f.resize=z2,f.resize(s,t),A(i.r,function(c){c.coordinateSystem=f,function kZ(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}(f,c)})}}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=j(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);return A(Sn_load(t,a,n).regions,function(u){var f=u.name,v=o.get(f),c=u.properties&&u.properties.echartsStyle;v||i.push(v={name:f}),c&&de(v,c)}),i},r}();const G2=new OZ;var BZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n);var i=Sn_getGeoResource(t.map);if(i&&"geoJSON"===i.type){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||B.color.backgroundTint)}ki(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=G2.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=Tr(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new De(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},j()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new De(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var i=this.getRegionModel(t).get("normal"===a?["label","formatter"]:["emphasis","label","formatter"]),o={name:t};return ae(i)?(o.status=a,i(o)):X(i)?i.replace("{a}",t??""):void 0},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;n&&("multiple"!==n&&(a.selectedMap=null),(a.selectedMap||(a.selectedMap={}))[t]=!0)},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!(!a||!a[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:B.color.tert
1iary},itemStyle:{borderWidth:.5,borderColor:B.color.border},emphasis:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},select:{label:{show:!0,color:B.color.primary},itemStyle:{color:B.color.highlight}},regions:[]},e}(Ce);const VZ=BZ;var zZ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return N(e,r),e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new k2(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype.__updateOnOwnRoam=function(t,a,n){var i=this._mapDraw;i&&i.__updateOnOwnRoam(a)},e.prototype._handleRegionClick=function(t){var a;yo(t.target,function(n){return null!=(a=ue(n).eventData)},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=ue(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Xe);const GZ=zZ;function FZ(r,e,t){!function(r,e,t){if(e.svg){var a=new $7(r,e.svg);Of.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e,a=new lZ(r,n,t),Of.set(r,a)}}(r,e,t)}function F2(r){function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name),A(l.coordinateSystem.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var f=[];A(o,function(v,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}r.registerCoordinateSystem("geo",G2),r.registerComponentModel(VZ),r.registerComponentView(GZ),r.registerImpl("registerMap",FZ),r.registerImpl("getMap",function(t){return function(r){var e=Of.get(r);return e&&"geoJSON"===e.type&&e.getMapForUser()}(t)}),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||(null!=t.geoId||null!=t.geoName||null!=t.geoIndex?"geo":ba),o=i===ba;("geo"===i||o)&&a.eachComponent(Kg(t,i,o?"map":null),function(l){o&&!bp(l)||(g2(t,l,o?l.seriesGroup.r:null),y2(t,l,a,n))})})}var HZ=dt(Zo,function WZ(r){A(X_(r),function(e,t){if(Vf(e)&&O2(t)){var a={};A(e.f,function(i){var o=i.coordinateSystem,s=i.originalData;i.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),v=o.getRegion(f);if(v&&!isNaN(l)){var c=a[f]||0,h=o.dataToPoint(v.getCenter());a[f]=c+1,s.setItemLayout(u,{point:h,offset:c})}})});var n=Vf(e).getData();n.each(function(i){var o=n.getName(i),s=n.getItemLayout(i)||{};s.showLabel=!a[o],n.setItemLayout(i,s)})}})}),YZ=dt(Zo,function ZZ(r){A(X_(r),function(e){var t=Vf(e);if(t){var a=function UZ(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];return 0===u?NaN:"min"===e?s:"max"===e?l:"average"===e?o/u:o})}(W(e.f,function(n){return n.getData()}),t.get("mapValueCalculation"));A(e.f,function(n){n.seriesGroup=e,n.originalData=n.getData(),n.setData(a.cloneShallow())})}})});function qZ(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hier
vendor: 1,429 bytes, line 1
1Node.i?a[r.hierNode.i-1]:null;if(t.length){!function JZ(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,a+=i.hierNode.shift+(n+=i.hierNode.change)}}(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=function QZ(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=K_(s),i=q_(i),s&&i;){n=K_(n),o=q_(o),n.hierNode.ancestor=r;var c=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);c>0&&(eX($Z(s,r,t),r,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!K_(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!q_(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function jZ(r){r.setLayout({x:r.hierNode.prelim+r.parentNode.hierNode.modifier},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function H2(r){return arguments.length?r:tX}function zf(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function K_(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function q_(r){var e=r.children;
vendor: 13,410 bytes, line 1
1return e.length&&r.isExpand?e[0]:r.hierNode.thread}function $Z(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function eX(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 tX(r,e){return r.parentNode===e.parentNode?1:2}var Wr=ge();function aX(r,e){if(function lX(r){return Wr(r).mainData===r}(this)){var t=G({},Wr(this).datas);t[this.dataType]=e,W2(e,t,r)}else j_(e,this.dataType,Wr(this).mainData,r);return e}function nX(r,e){return r.struct&&r.struct.update(),e}function iX(r,e){return A(Wr(e).datas,function(t,a){t!==e&&j_(t.cloneShallow(),a,e,r)}),e}function oX(r){var e=Wr(this).mainData;return null==r||null==e?e:Wr(e).datas[r]}function sX(){var r=Wr(this).mainData;return null==r?[{data:r}]:W(Te(Wr(r).datas),function(e){return{type:e,data:Wr(r).datas[e]}})}function W2(r,e,t){Wr(r).datas={},A(e,function(a,n){j_(a,n,r,t)})}function j_(r,e,t,a){Wr(t).datas[e]=r,Wr(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=oX,r.getLinkedDataAll=sX}const U2=function rX(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,W2(e,t,r),A(t,function(a){A(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,Se(aX,r))})}),e.wrapMethod("cloneShallow",Se(iX,r)),A(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,Se(nX,r))}),Rt(t[e.dataType]===e)};var uX=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){ae(e)&&(a=t,t=e,e=null),X(e=e||{})&&(e={order:e});var o,n=e.order||"preorder",i=this[e.attr||"children"];"preorder"===n&&(o=t.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,a);"postorder"===n&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=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))return this.hostTree.data.getItemModel(this.dataIndex).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.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},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}(),fX=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,n=t.length;a<n;a++)t[a].dataIndex=-1;for(a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;!function s(f,v){var c=f.value;o=Math.max(o,H(c)?c.length:1),i.push(f);var h=new uX(pt(f.name,""),n);v?function vX(r,e){r.parentNode!==e&&(e.children.push(r),r.parentNode=e)}(h,v):n.root=h,n._nodes.push(h);var p=f.children;if(p)for(var d=0;d<p.length;d++)s(p[d],h)}(e),n.root.updateDepthAndHeight(0);var l=al(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Xt(l,t);return u.initData(i),a&&a(u),U2({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();const J_=fX;function Gf(r,e,t){if(r&&pe(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(X(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(null!=i&&(n=a.getNodeById(i)))return{node:n}}}function Y2(r){for(var e=[];r;)(r=r.parentNode)&&e.push(r);return e.reverse()}function Q_(r,e){return pe(Y2(r),e)>=0}function wp(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 Xo="tree",cX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return N(e,r),e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},i=new De(t.leaves||{},this,this.ecModel),o=J_.createTree(a,this,function s(v){v.wrapMethod("getItemModel",function(c,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(c.parentModel=i),c})}),l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var f=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&null!=c.collapsed?!c.collapsed:v.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return vt("nameValue",{name:u,value:l,noValue:isNaN(l)||null==l})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=wp(n,this),a.collapsed=!n.isExpand,a},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Xo,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:B.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Ye);const hX=cX;var pX=function(){return function r(){this.parentPoint=[],this.childPoints=[]}}(),dX=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new pX},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(1===i)return t.moveTo(o[0],o[1]),void t.lineTo(s[0],s[1]);var u=a.orient,f="TB"===u||"BT"===u?0:1,v=1-f,c=K(a.forkPosition,1),h=[];h[f]=o[f],h[v]=o[v]+(l[v]-o[v])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=n[p];t.moveTo(d[0],d[1]),h[f]=d[f],t.lineTo(h[0],h[1])}},e}(we),gX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=Xo,t._mainGroup=new oe,t}return N(e,r),e.prototype.init=function(t,a){this._controller=new Fo(a.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup;"radial"===t.get("layout")?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),Sp(t,n,this._controller,w2(this.group),null);var u=this._data;i.diff(u).add(function(f){Z2(i,f)&&X2(i,f,null,s,t)}).update(function(f,v){var c=u.getItemGraphicEl(v);Z2(i,f)?X2(i,f,c,s,t):c&&j2(u,v,c,s,t)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&j2(u,f,v,s,t)}).execute(),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:v})})}),this._data=i,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,a,n){oi(this.group,2,a.coordinateSystem,null),C2(t)&&this._updateNodeAndLinkScale(a)},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(v){var c=n.getItemLayout(v);c&&!isNaN(c.x)&&!isNaN(c.y)&&i.push([+c.x,+c.y])});var o=[],s=[];lc(i,o,s);var l=this._min,u=this._max;s[0]-o[0]==0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]==0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=Y_(t,a,o[0],o[1],s[0]-o[0],s[1]-o[1]);oi(this.group,2,f,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=b2(t.coordinateSystem,t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=Xo,e}(ze);function Z2(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function X2(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:B.color.neutral00,f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(v.dataIndex),h=v.getLayout(),p=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,d=o.getLayout();i?((t=new mf(r,e,null,{symbolInnerColor:u,useNameLabel:!0})).x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Pe(t,{x:d.x,y:d.y},n);var g=t.getSymbolPath();if("radial"===n.get("layout")){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(d.x===m.x&&!0===o.isExpand&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};(S=Math.atan2(b.y-m.y,b.x-m.x))<0&&(S=2*Math.PI+S),(x=b.x<m.x)&&(S-=Math.PI)}else(S=Math.atan2(d.y-m.y,d.x-m.x))<0&&(S=2*Math.PI+S),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(x=d.x<m.x)&&(S-=Math.PI):(x=d.x>m.x)||(S-=Math.PI);var w=x?"left":"right",C=s.getModel("label"),T=C.get("rotate"),M=T*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:C.get("position")||w,rotation:null==T?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L="relative"===I?ls(o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===I?o.getAncestorsIndices():"descendant"===I?o.getDescendantIndices():null;L&&(ue(t).focus=L),function yX(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=a.__edge;if("curve"===u)e.parentNode&&e.parentNode!==t&&(d||(d=a.__edge=new Bu({shape:$_(f,v,c,n,n)})),Pe(d,{shape:$_(f,v,c,i,o)},r));else if("polyline"===u&&"orthogonal"===f&&e!==t&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}d||(d=a.__edge=new dX({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:h}})),Pe(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}d&&("polyline"!==u||e.isExpand)&&(d.useStyle(ie({strokeNoScale:!0,fill:null},p)),gt(d,l,"lineStyle"),Ki(d),s.add(d))}(n,o,f,t,p,h,d,a),t.__edge&&(t.onHoverStateChange=function(P){if("blur"!==P){var E=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);E&&1===E.hoverState||yc(t.__edge,P)}})}function K2(r,e,t,a,n){var o=q2(e.tree.root,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),c=u.__edge||(!1===s.isExpand||1===s.children.length?f.__edge:void 0),h=a.get("edgeShape"),p=a.get("layout"),d=a.get("orient"),g=a.get(["lineStyle","curveness"]);c&&("curve"===h?Xn(c,{shape:$_(p,d,g,l,l),style:{opacity:0}
1},a,{cb:function(){t.remove(c)},removeOpt:n}):"polyline"===h&&"orthogonal"===a.get("layout")&&Xn(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(c)},removeOpt:n}))}}function q2(r,e){for(var a,t=e.parentNode===r?e:e.parentNode||e;null==(a=t.getLayout());)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function j2(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),s=q2(r.tree.root,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Xn(t,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),A(i.children,function(u){K2(u,r,a,n,l)}),K2(i,r,a,n,l)}function $_(r,e,t,a,n){var i,o,s,l,u,f,v,c;if("radial"===r){f=n.rawX,c=n.rawY;var h=zf(u=a.rawX,v=a.rawY),p=zf(u,v+(c-v)*t),d=zf(f,c+(v-c)*t),g=zf(f,c);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}return u=a.x,v=a.y,f=n.x,c=n.y,("LR"===e||"RL"===e)&&(i=u+(f-u)*t,o=v,s=f+(u-f)*t,l=c),("TB"===e||"BT"===e)&&(i=u,o=v+(c-v)*t,s=f,l=c+(v-c)*t),{x1:u,y1:v,x2:f,y2:c,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const mX=gX;function Ff(r,e){for(var a,t=[r];a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function SX(r,e){r.eachSeriesByType("tree",function(t){!function xX(r,e){var t=mt(r,e).refContainer,a=qe(r.getBoxLayoutParams(),t);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;"radial"===n?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=H2(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=H2());var l=r.getData().tree.root,u=l.children[0];if(u){(function KZ(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a,n,t=[e];a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var o=n.length-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}})(l),function _X(r,e,t){for(var i,a=[r],n=[];i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)e(i,t)}(u,qZ,s),l.hierNode.modifier=-u.hierNode.prelim,Ff(u,jZ);var f=u,v=u,c=u;Ff(u,function(S){var x=S.getLayout().x;x<f.getLayout().x&&(f=S),x>v.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=f===v?1:s(f,v)/2,p=h-f.getLayout().x,d=0,g=0,y=0,m=0;if("radial"===n)d=i/(v.getLayout().x+h+p),g=o/(c.depth-1||1),Ff(u,function(S){var x=zf(y=(S.getLayout().x+p)*d,m=(S.depth-1)*g);S.setLayout({x:x.x,y:x.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();"RL"===_||"LR"===_?(g=o/(v.getLayout().x+h+p),d=i/(c.depth-1||1),Ff(u,function(S){m=(S.getLayout().x+p)*g,S.setLayout({x:y="LR"===_?(S.depth-1)*d:i-(S.depth-1)*d,y:m},!0)})):("TB"===_||"BT"===_)&&(d=i/(v.getLayout().x+h+p),g=o/(c.depth-1||1),Ff(u,function(S){y=(S.getLayout().x+p)*d,S.setLayout({x:y,y:m="TB"===_?(S.depth-1)*g:o-(S.depth-1)*g},!0)}))}}}(t,e)})}var wX=dt(Xo,function TX(r){r.eachSeriesByType(Xo,function(e){var t=e.getData();t.tree.eachNode(function(n){var o=n.getModel().getModel("itemStyle").getItemStyle();G(t.ensureUniqueItemVisual(n.dataIndex,"style"),o)})})}),J2=["treemapZoomToNode","treemapRender","treemapMove"];function Q2(r){var e=r.getData(),a={};e.tree.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=im(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var MX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return N(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};$2(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new De({itemStyle:o},this,a);i=t.levels=function DX(r,e){var t=Fe(e.get("color")),a=Fe(e.get(["aria","decal","decals"]));if(t){var n,i;A(r=r||[],function(s){var l=new De(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&"none"!==u)&&(n=!0),(l.get(["itemStyle","decal"])||f&&"none"!==f)&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}(i,a);var l=W(i||[],function(v){return new De(v,s,a)},this),u=J_.createTree(n,this,function f(v){v.wrapMethod("getItemModel",function(c,h){var p=u.getNodeByDataIndex(h);return c.parentModel=(p?l[p.depth]:null)||s,c})});return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t);return vt("nameValue",{name:i.getName(t),value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=wp(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},G(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=j(),this._idIndexMapCount=0);var n=a.get(t);return null==n&&a.set(t,n=this._idIndexMapCount++),n},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(){Q2(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:B.size.l,top:B.size.xxxl,right:B.size.l,bottom:B.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:B.size.m,emptyItemWidth:25,itemStyle:{color:B.color.backgroundShade,textStyle:{color:B.color.secondary}},emphasis:{itemStyle:{color:B.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:B.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:B.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}}
vendor: 9,140 bytes, line 1
1,visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ye);function $2(r){var e=0;A(r.children,function(a){$2(a);var n=a.value;H(n)&&(n=n[0]),e+=n});var t=r.value;H(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),H(r.value)?r.value[0]=t:r.value=t}const LX=MX;var PX=function(){function r(e){this.group=new oe,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&a){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),v=mt(e,t).refContainer,c={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=qe(c,v);this._prepare(a,h,u),this._renderContent(e,h,p,s,l,u,f,n),Pc(o,c,v)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=pt(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=s+8,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s,l){for(var u=0,f=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=t.totalWidth,h=t.renderList,p=i.getModel("itemStyle").getItemStyle(),d=h.length-1;d>=0;d--){var g=h[d],y=g.node,m=g.width,_=g.text;c>a.width&&(c-=m-f,m=f,_=null);var S=new Zt({shape:{points:RX(u,0,m,v,d===h.length-1,0===d)},style:ie(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Me({style:He(o,{text:_})}),textConfig:{position:"inside"},z2:1e5,onclick:Se(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=He(s,{text:_}),S.ensureState("emphasis").style=p,Je(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),EX(S,e,y),u+=m+8}},r.prototype.remove=function(){this.group.removeAll()},r}();function RX(r,e,t,a,n,i){var o=[[n?r:r-5,e],[r+t,e],[r+t,e+a],[n?r:r-5,e+a]];return!i&&o.splice(2,0,[r+t+5,e+a/2]),!n&&o.push([r,e+a/2]),o}function EX(r,e,t){ue(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&wp(t,e)}}const kX=PX;var OX=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!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<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}(),Hf=Math.max,Tp=Math.min,tS=A,tR=["itemStyle","borderWidth"],BX=["itemStyle","gapWidth"],VX=["upperLabel","show"],zX=["upperLabel","height"];const GX={seriesType:"treemap",reset:function(r,e,t,a){var n=r.option,i=mt(r,t).refContainer,o=qe(r.getBoxLayoutParams(),i),s=a&&a.type,u=Gf(a,["treemapZoomToNode","treemapRootToNode"],r),f="treemapRender"===s||"treemapMove"===s?a.rootRect:null,v=r.getViewRoot(),c=Y2(v);if("treemapMove"!==s){var h=!1,p="treemapZoomToNode"===s?(h=!0,function ZX(r,e,t,a){var n=(e||{}).node,i=a.width,o=a.height,s=G({},a);if(!n||n===t)return s;for(var l,u=i*o,f=u*r.option.zoomToNodeRatio;l=n.parentNode;){for(var v=0,c=l.children,h=0,p=c.length;h<p;h++)v+=c[h].getValue();var d=n.getValue();if(0===d)return s;f*=v/d;var g=l.getModel(),y=g.get(tR);(f+=4*y*y+(3*y+Math.max(y,iR(g)))*Math.pow(f,.5))>cu&&(f=cu),n=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:i*_,height:o*_}}(r,u,v,o)):f?(h=!0,G({},f)):G({},o);if(h){var d=oR(o,p);d=sR(d,r),p.width=o.width*d,p.height=o.height*d}var g=n.sort;g&&"asc"!==g&&"desc"!==g&&(g="desc");var y={squareRatio:n.squareRatio,sort:g,leafDepth:n.leafDepth};v.hostTree.clearLayouts();var m={x:0,y:0,width:p.width,height:p.height,area:p.width*p.height};v.setLayout(m),rR(v,y,!1,0),m=v.getLayout(),tS(c,function(S,x){var b=(c[x+1]||v).getValue();S.setLayout(G({dataExtent:[b,b],borderWidth:0,upperHeight:0},m))})}var _=r.getData().tree.root;_.setLayout(function XX(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}(o,f,u),!0),r.setLayoutInfo(o),nR(_,new fe(-o.x,-o.y,t.getWidth(),t.getHeight()),c,v,0)}};function rR(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(tR),u=s.get(BX)/2,f=iR(s),v=Math.max(l,f),c=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0);var p=(n=Hf(n-2*c,0))*(i=Hf(i-c-h,0)),d=function FX(r,e,t,a,n,i){var o=r.children||[],s=a.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=a.leafDepth&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=ke(o,function(h){return!h.isRemoved()}),function WX(r,e){e&&r.sort(function(t,a){var n="asc"===e?t.getValue()-a.getValue():a.getValue()-t.getValue();return 0===n?"asc"===e?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n})}(o,s);var u=function UX(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var s,o=r.get("visualDimension");return e&&e.length?"value"===o&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],"asc"===t&&s.reverse()):(s=[1/0,-1/0],tS(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})):s=[NaN,NaN],{sum:a,dataExtent:s}}(e,o,s);if(0===u.sum)return r.viewChildren=[];if(u.sum=function HX(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n["asc"===a?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n.splice("asc"===a?0:s,o-s),t}(e,t,u.sum,s,o),0===u.sum)return r.viewChildren=[];for(var f=0,v=o.length;f<v;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}(r,s,p,e,t,a);if(d.length){var g={x:c,y:h,width:n,height:i},y=Tp(n,i),m=1/0,_=[];_.area=0;for(var S=0,x=d.length;S<x;){var b=d[S];_.push(b),_.area+=b.getLayout().area;var w=YX(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,aR(_,y,g,u,!1),y=Tp(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&aR(_,y,g,u,!0),!t){var C=s.get("childrenVisibleMin");null!=C&&p<C&&(t=!0)}for(S=0,x=d.length;S<x;S++)rR(d[S],e,t,a+1)}}}function YX(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)(o=r[i].getLayout().area)&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Hf(u*a/l,l/(u*n)):1/0}function aR(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var v=0,c=r.length;v<c;v++){var h=r[v],p={},d=f?h.getLayout().area/f:0,g=p[l[o]]=Hf(f-2*a,0),y=t[s[i]]+t[l[i]]-u,m=v===c-1||y<d?y:d,_=p[l[i]]=Hf(m-2*a,0);p[s[o]]=t[s[o]]+Tp(a,g/2),p[s[i]]=u+Tp(a,_/2),u+=m,h.setLayout(p,!0)}t[s[o]]+=f,t[l[o]]-=f}function nR(r,e,t,a,n){var i=r.getLayout(),o=t[n],s=o&&o===r;if(!(o&&!s||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new fe(e.x-i.x,e.y-i.y,e.width,e.height);tS(r.viewChildren||[],function(u){nR(u,l,t,a,n+1)})}}function iR(r){return r.get(VX)?r.get(zX):0}function oR(r,e){return e.width/r.width||e.height/r.height||1}function sR(r,e){return H_(r,e.get("scaleLimit",!0))}var rS=oe,lR=be,vR="upperLabel",Ko=Vi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),cR=function(r){var e=Ko(r);return e.stroke=e.fill=e.lineWidth=null,e},Cp=ge(),JX=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage={nodeGroup:[],background:[],content:[]},t}return N(e,r),e.prototype.render=function(t,a,n,i){if(!(pe(a.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var l=Gf(i,["treemapZoomToNode","treemapRootToNode"],t),u=i&&i.type,f=t.layoutInfo,v=!this._oldTree,c=this._storage,h="treemapRootToNode"===u&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),d=t.get("animation"),g=this._doRender(p,t,h);!d||v||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?g.renderFinally():this._doAnimation(p,g,t,h),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new rS,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,s={nodeGroup:[],background:[],content:[]},l={nodeGroup:[],background:[],content:[]}
1,u=this._storage,f=[];function v(g,y,m,_){return function QX(r,e,t,a,n,i,o,s,l,u){if(o){var f=o.getLayout(),v=r.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),f&&f.isInView){var h=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,x=_&&_.length,b=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),C=c.getModel(["blur","itemStyle"]),T=c.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=$("nodeGroup",rS);if(D){if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Cp(D).nodeWidth=h,Cp(D).nodeHeight=p,f.isAboveViewRoot)return D;var I=$("background",lR,u,20);I&&function z(ve,ee,_e){var te=ue(ee);if(te.dataIndex=o.dataIndex,te.seriesIndex=r.seriesIndex,ee.setShape({x:0,y:0,width:h,height:p,r:M}),g)U(ee);else{ee.invisible=!1;var ce=o.getVisual("style"),Ge=ce.stroke,Le=cR(b);Le.fill=Ge;var Ve=Ko(w);Ve.fill=w.get("borderColor");var We=Ko(C);We.fill=C.get("borderColor");var ht=Ko(T);ht.fill=T.get("borderColor"),_e?Y(ee,Ge,ce.opacity,{x:d,y:0,width:h-2*d,height:S}):ee.removeTextContent(),ee.setStyle(Le),ee.ensureState("emphasis").style=Ve,ee.ensureState("blur").style=We,ee.ensureState("select").style=ht,Ki(ee)}ve.add(ee)}(D,I,x&&f.upperLabelHeight);var L=c.getModel("emphasis"),P=L.get("focus"),E=L.get("blurScope"),R=L.get("disabled"),k="ancestor"===P?o.getAncestorsIndices():"descendant"===P?o.getDescendantIndices():P;if(x)xu(D)&&qi(D,!1),I&&(qi(I,!R),v.setItemGraphicEl(o.dataIndex,I),Dy(I,k,E));else{var O=$("content",lR,u,30);O&&function F(ve,ee){var _e=ue(ee);_e.dataIndex=o.dataIndex,_e.seriesIndex=r.seriesIndex;var te=Math.max(h-2*d,0),ce=Math.max(p-2*d,0);if(ee.culling=!0,ee.setShape({x:d,y:d,width:te,height:ce,r:M}),g)U(ee);else{ee.invisible=!1;var Ge=o.getVisual("style"),Le=Ge.fill,Ve=cR(b);Ve.fill=Le,Ve.decal=Ge.decal;var We=Ko(w),ht=Ko(C),wr=Ko(T);Y(ee,Le,Ge.opacity,null),ee.setStyle(Ve),ee.ensureState("emphasis").style=We,ee.ensureState("blur").style=ht,ee.ensureState("select").style=wr,Ki(ee)}ve.add(ee)}(D,O),I.disableMorphing=!0,I&&xu(I)&&qi(I,!1),qi(D,!R),v.setItemGraphicEl(o.dataIndex,D);var V=c.getShallow("cursor");V&&O.attr("cursor",V),Dy(D,k,E)}return D}}}function U(ve){!ve.invisible&&i.push(ve)}function Y(ve,ee,_e,te){var ce=c.getModel(te?vR:"label"),Ge=pt(c.get("name"),null),Le=ce.getShallow("show");bt(ve,yt(c,te?vR:"label"),{defaultText:Le?Ge:null,inheritColor:ee,defaultOpacity:_e,labelFetcher:r,labelDataIndex:o.dataIndex});var Ve=ve.getTextContent();if(Ve){var We=Ve.style,ht=Hl(We.padding||0);te&&(ve.setTextConfig({layoutRect:te}),Ve.disableLabelLayout=!0),Ve.beforeUpdate=function(){var fr=Math.max((te?te.width:ve.shape.width)-ht[1]-ht[3],0),is=Math.max((te?te.height:ve.shape.height)-ht[0]-ht[2],0);(We.width!==fr||We.height!==is)&&Ve.setStyle({width:fr,height:is})},We.truncateMinChar=2,We.lineOverflow="truncate",Z(We,te,f);var wr=Ve.getState("emphasis");Z(wr?wr.style:null,te,f)}}function Z(ve,ee,_e){var te=ve?ve.text:null;if(!ee&&_e.isLeafRoot&&null!=te){var ce=r.get("drillDownIcon",!0);ve.text=ce?ce+" "+te:te}}function $(ve,ee,_e,te){var ce=null!=m&&t[ve][m],Ge=n[ve];return ce?(t[ve][m]=null,function ye(ve,ee){var _e=ve[y]={};ee instanceof rS?(_e.oldX=ee.x,_e.oldY=ee.y):_e.oldShape=G({},ee.shape)}(Ge,ce)):g||((ce=new ee)instanceof Rr&&(ce.z2=function $X(r,e){return 100*r+e}(_e,te)),function Ne(ve,ee){var _e=ve[y]={},te=o.parentNode,ce=ee instanceof oe;if(te&&(!a||"drillDown"===a.direction)){var Ge=0,Le=0,Ve=n.background[te.getRawIndex()];!a&&Ve&&Ve.oldShape&&(Ge=Ve.oldShape.width,Le=Ve.oldShape.height),ce?(_e.oldX=0,_e.oldY=Le):_e.oldShape={x:Ge,y:Le,width:0,height:0}}_e.fadein=!ce}(Ge,ce)),e[ve][y]=ce}}(a,l,u,n,s,f,g,y,m,_)}!function h(g,y,m,_,S){function x(w){return w.getId()}function b(w,C){var T=null!=w?g[w]:null,M=null!=C?y[C]:null,D=v(T,M,m,S);D&&h(T&&T.viewChildren||[],M&&M.viewChildren||[],D,_,S+1)}_?(y=g,A(g,function(w,C){!w.isRemoved()&&b(C,C)})):new dn(y,g,x,x).add(b).update(b).remove(Se(b,null)).execute()}(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var c=function p(g){var y={nodeGroup:[],background:[],content:[]};return g&&A(g,function(m,_){var S=y[_];A(m,function(x){x&&(S.push(x),Cp(x).willDelete=!0)})}),y}(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:function d(){A(c,function(g){A(g,function(y){y.parent&&y.parent.remove(y)})}),A(f,function(g){g.invisible=!0,g.dirty()})}}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(ae(o)?0:o)||0,u=(ae(s)?null:s)||"cubicOut",f=function NX(){return new OX}();
vendor: 40,590 bytes, line 1
1A(a.willDeleteEls,function(v,c){A(v,function(h,p){if(!h.invisible){var g,d=h.parent,y=Cp(d);if(i&&"drillDown"===i.direction)g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g="nodeGroup"===c?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),A(this._storage,function(v,c){A(v,function(h,p){var d=a.lastsForAnimation[c][p],g={};d&&(h instanceof oe?null!=d.oldX&&(g.x=h.x,g.y=h.y,h.x=d.oldX,h.y=d.oldY):(d.oldShape&&(g.shape=G({},h.shape),h.setShape(d.oldShape)),d.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):1!==h.style.opacity&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(q(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this,n=this.seriesModel,i=this._controller;i||((i=this._controller=new Fo(t.getZr())).on("pan",q(this._onPan,this)),i.on("zoom",q(this._onZoom,this))),i.enable(n.get("roam"),{api:t,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(o,s,l){var u=a._containerGroup;return!!u&&u.getBoundingRect().contain(s-u.x,l-u.y)}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>3||Math.abs(t.dy)>3)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale,o=this.seriesModel;if("animating"!==this._state){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new fe(l.x,l.y,l.width,l.height),f=o.layoutInfo,v=oR(f,l),c=v*i,h=(c=sR(c,o))/v,p=[1,0,0,1,0,0];Zr(p,p,[-(a-=f.x),-(n-=f.y)]),Sv(p,p,[h,h]),Zr(p,p,[a,n]),u.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if("ready"===a._state){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if("zoomToNode"===i)a._zoomToNode(o);else if("link"===i){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&Mc(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new kX(this.group))).render(t,a,n.node,function(o){"animating"!==i._state&&(Q_(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},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 n;return this.seriesModel.getViewRoot().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))return!1;n={node:o,offsetX:l[0],offsetY:l[1]}}},this),n},e.type="treemap",e}(ze);const e9=JX;var Uf=A,t9=se,aS=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=re(e);this.type=a,this.mappingMethod=t,this._normalizeData=n9[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],"piecewise"===t?(nS(n),function r9(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,null!=t.visual&&(r.hasSpecialVisual=!0)})}(n)):"category"===t?n.categories?function a9(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Uf(e,function(o,s){t[o]=s}),!H(a)){var n=[];se(a)?Uf(a,function(o,s){n[t[s]??-1]=o}):n[-1]=a,a=pR(r,n)}for(var i=e.length-1;i>=0;i--)null==a[i]&&(delete t[e[i]],e.pop())}(n):nS(n,!0):(Rt("linear"!==t||n.dataExtent),nS(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return q(this._normalizeData,this)},r.listVisualTypes=function(){return Te(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){se(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=H(e)?[]:se(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var a,t={};return e&&Uf(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(H(e))e=e.slice();else{if(!t9(e))return[];var t=[];Uf(e,function(a,n){t.push(n)}),e=t}return e.sort(function(a,n){return"color"===n&&"color"!==a&&0===a.indexOf("color")?1:-1}),e},r.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(null!=l){if(l===e||X(l)&&l===e+"")return o;a&&c(l,o)}}for(o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(Dp(v[1],e,f[1]))return o}else if(f[1]===1/0){if(Dp(v[0],f[0],e))return o}else if(Dp(v[0],f[0],e)&&Dp(v[1],e,f[1]))return o;a&&c(f[0],o),a&&c(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function c(h,p){var d=Math.abs(h-e);d<i&&(i=d,n=p)}},r.visualHandlers={color:{applyVisual:Yf("color"),getColorMapper:function(){var e=this.option;return q("category"===e.mappingMethod?function(t,a){return!a&&(t=this._normalizeData(t)),Zf.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=ru(t,e.parsedVisual,n),i?n:Lr(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Lr(ru(e,this.option.parsedVisual),"rgba")},category:Zf,piecewise:function(e,t){var a=oS.call(this,t);return null==a&&(a=Lr(ru(e,this.option.parsedVisual),"rgba")),a},fixed:qo}},colorHue:Mp(function(e,t){return $a(e,t)}),colorSaturation:Mp(function(e,t){return $a(e,null,t)}),colorLightness:Mp(function(e,t){return $a(e,null,null,t)}),colorAlpha:Mp(function(e,t){return au(e,t)}),decal:{applyVisual:Yf("decal"),_normalizedToVisual:{linear:null,category:Zf,piecewise:null,fixed:null}},opacity:{applyVisual:Yf("opacity"),_normalizedToVisual:iS([0,1])},liftZ:{applyVisual:Yf("liftZ"),_normalizedToVisual:{linear:qo,category:qo,piecewise:qo,fixed:qo}},symbol:{applyVisual:function(e,t,a){a("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:hR,category:Zf,piecewise:function(e,t){var a=oS.call(this,t);return null==a&&(a=hR.call(this,e)),a},fixed:qo}},symbolSize:{applyVisual:Yf("symbolSize"),_normalizedToVisual:iS([0,1])}},r}();function nS(r,e){var t=r.visual,a=[];se(t)?Uf(t,function(i){a.push(i)}):null!=t&&a.push(t),!e&&1===a.length&&!{color:1,symbol:1}.hasOwnProperty(r.type)&&(a[1]=a[0]),pR(r,a)}function Mp(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:iS([0,1])}}function hR(r){var e=this.option.visual;return e[Math.round(Re(r,[0,1],[0,e.length-1],!0))]||{}}function Yf(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Zf(r){var e=this.option.visual;return e[this.option.loop&&-1!==r?r%e.length:r]}function qo(){return this.option.visual[0]}function iS(r){return{linear:function(e){return Re(e,r,this.option.visual,!0)},category:Zf,piecewise:function(e,t){var a=oS.call(this,t);return null==a&&(a=Re(e,r,this.option.visual,!0)),a},fixed:qo}}function oS(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=t[aS.findPieceIndex(r,t)];if(n&&n.visual)return n.visual[this.type]}}function pR(r,e){return r.visual=e,"color"===r.type&&(r.parsedVisual=W(e,function(t){return Ht(t)||[0,0,0,1]})),e}var n9={linear:function(r){return Re(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=aS.findPieceIndex(r,e,!0);if(null!=t)return Re(t,[0,e.length-1],[0,1],!0)},category:function(r){return(this.option.categories?this.option.categoryMap[r]:r)??-1},fixed:et};function Dp(r,e,t){return r?e<=t:e<t}const zt=aS;var dR=ge();const o9={seriesType:"treemap",reset:function(r){var t=r.getData().tree.root;t.isRemoved()||gR(t,{},r.getViewRoot().getAncestors(),r)}};function gR(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(i&&!i.invisible&&i.isInView){var c,s=n.getModel("itemStyle"),l=function s9(r,e,t){var a=G({},e),n=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,null!=o&&(a[i]=o)}),a}(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation");null!=v&&(f=function l9(r,e){return null!=e?$a(e,null,null,r):null}(v,c=yR(l))),u.stroke=f;var h=r.viewChildren;if(h&&h.length){var p=function u9(r,e,t,a,n,i){if(i&&i.length){var o=lS(e,"color")||null!=n.color&&"none"!==n.color&&(lS(e,"colorAlpha")||lS(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};"color"!==v.type||"index"!==f&&"id"!==f?v.mappingMethod="linear":(v.mappingMethod="category",v.loop=!0);var c=new zt(v);return dR(c).drColorMappingBy=f,c}}}(0,n,i,0,l,h);A(h,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=function f9(r,e,t,a,n,i){var o=G({},e);if(n){var s=n.type,l="color"===s&&dR(n).drColorMappingBy,u="index"===l?a:"id"===l?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}(n,l,d,g,p,a);gR(d,y,t,a)}})}else c=yR(l),u.fill=c}}function yR(r){var e=sS(r,"color");if(e){var t=sS(r,"colorAlpha"),a=sS(r,"colorSaturation");return a&&(e=$a(e,null,null,a)),t&&(e=au(e,t)),e}}function sS(r,e){var t=r[e];if(null!=t&&"none"!==t)return t}function lS(r,e){var t=r.get(e);return H(t)&&t.length?{name:e,range:t}:null}function wl(r){return"_EC_"+r}var c9=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){var a=this._nodesMap;if(!a[wl(e=null==e?""+t:""+e)]){var n=new jo(e,t);return n.hostGraph=this,this.nodes.push(n),a[wl(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[wl(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Ae(e)&&(e=this.nodes[e]),Ae(t)&&(t=this.nodes[t]),e instanceof jo||(e=n[wl(e)]),t instanceof jo||(t=n[wl(t)]),e&&t){var o=e.id+"-"+t.id,s=new mR(e,t,a);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof jo&&(e=e.id),t instanceof jo&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof jo||(t=this._nodesMap[wl(t)]),t){for(var i="out"===a?"outEdges":"in"===a?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;){var l=s.shift(),u=l[i];for(o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(e.call(n,v,l))return;s.push(v),v.__visited=!0}}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;for(t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0}),i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),jo=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=j(),t=j(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,v=0,c=f.length,h=void 0,p=void 0;v<c;v++)(p=(h=f[v]).dataIndex)>=0&&!e.hasKey(p)&&(e.set(p,!0),o.push(h.node1))}for(l=0;l<s.length;){var d=s[l];l++,t.set(d.dataIndex,!0);for(var g=d.outEdges,y=(v=0,g.length),m=void 0,_=void 0;v<y;v++)(_=(m=g[v]).dataIndex)>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(m.node2))}}}return{edge:e.keys(),node:t.keys()}},r}(),mR=function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=j(),t=j();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var l=0,u=o.inEdges.length,f=void 0,v=void 0;l<u;l++)(v=(f=o.inEdges[l]).dataIndex)>=0&&!e.hasKey(v)&&(e.set(v,!0),a.push(f.node1))}for(i=0;i<n.length;){var c=n[i];i++,t.set(c.dataIndex,!0),l=0,u=c.outEdges.length;for(var p=void 0,d=void 0;l<u;l++)(d=(p=c.outEdges[l]).dataIndex)>=0&&!e.hasKey(d)&&(e.set(d,!0),n.push(p.node2))}return{edge:e.keys(),node:t.keys()}},r}();function _R(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=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)}}}it(jo,_R("hostGraph","data")),it(mR,_R("hostGraph","edgeData"));const h9=c9;function uS(r,e,t,a,n){for(var i=new h9(a),o=0;o<r.length;o++)i.addNode(Ft(r[o].id,r[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<e.length;o++){var f=e[o],v=f.source,c=f.target;i.addEdge(v,c,u)&&(l.push(f),s.push(Ft(pt(f.id,null),v+" > "+c)),u++)}var p,h=t.get("coordinateSystem");if("cartesian2d"===h||"polar"===h||"matrix"===h)p=Ca(r,t);else{var d=Ns.get(h),g=d&&d.dimensions||[];pe(g,"value")<0&&g.concat(["value"]);var y=al(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;(p=new Xt(y,t)).initData(r)}var m=new Xt(["value"],t);return m.initData(l,s),n&&n(p,m),U2({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var Lp=function(r){return r.get("autoCurveness")||null},SR=function(r,e){var t=Lp(r),a=20,n=[];if(Ae(t))a=t;else if(H(t))return void(r.__curvenessList=t);e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Xf=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join("--\x3e")},xR=function(r){var e=r.split("--\x3e");return[e[0],e[2],e[1]].join("--\x3e")},vS=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function cS(r,e,t,a){var n=Lp(e),i=H(n);if(!n)return null;var o=function(r,e){var t=Xf(r.node1,r.node2,e);return e.__edgeMap[t]}(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=function(r,e){return vS(Xf(r.node1,r.node2,e),e)+vS(Xf(r.node2,r.node1,e),e)}(r,e);SR(e,u),r.lineStyle=r.lineStyle||{};var f=Xf(r.node1,r.node2,e),v=e.__curvenessList,c=i||u%2?0:1;if(o.isForward)return v[c+s];var h=xR(f),p=vS(h,e),d=v[s+p+c];return a?i?n&&0===n[0]?(p+c)%2?d:-d:((p%2?0:1)+c)%2?d:-d:(p+c)%2?d:-d:v[s+p+c]}var ar="graph",m9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return N(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new _l(n,n),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),ki(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){!function g9(r){Lp(r)&&(r.__curvenessList=[],r.__edgeMap={},SR(r))}(this);var s=uS(i,n,this,!0,function l(u,f){u.wrapMethod("getItemModel",function(p){var y=o._categoriesModels[p.getShallow("category")];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var v=De.prototype.getModel;function c(p,d){var g=v.call(this,p,d);return g.resolveParentPath=h,g}function h(p){if(p&&("label"===p[0]||"label"===p[1])){var d=p.slice();return"label"===p[0]?d[0]="edgeLabel":"label"===p[1]&&(d[1]="edgeLabel"),d}return p}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=c,p})});return A(s.edges,function(u){!function y9(r,e,t,a){if(Lp(t)){var n=Xf(r,e,t),i=t.__edgeMap,o=i[xR(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}(u.node1,u.node2,this,u.dataIndex)},this),s.data}},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,n){if("edge"===n){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return null!=l&&f.push(l),null!=u&&f.push(u),vt("nameValue",{name:f.join(" > "),value:o.value,noValue:null==o.value})}return yA({series:this,dataIndex:t,multipleSeries:a})},e.prototype._updateCategoriesData=function(){var t=W(this.option.categories||[],function(n){return null!=n.value?n:G({value:0},n)}),a=new Xt(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return d2(t)&&t},e.type="series."+ar,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={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:B.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},e}(Ye);const _9=m9;function Ip(r){return r instanceof Array||(r=[r,r]),r}var S9=dt(ar,function x9(r){r.eachSeriesByType(ar,function(e){var t=e.getGraph(),a=e.getEdgeData(),n=Ip(e.get("edgeSymbol")),i=Ip(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=Ip(s.getShallow("symbol",!0)),f=Ip(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),c=a.ensureUniqueItemVisual(o,"style");switch(G(c,v),c.stroke){case"source":var h=l.node1.getVisual("style");c.stroke=h&&h.fill;break;case"target":h=l.node2.getVisual("style"),c.stroke=h&&h.fill}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})});function bR(r){var e=r.coordinateSystem;if(!e||"view"===e.type){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),hS(t,r)}}function hS(r,e){r.eachEdge(function(t,a){var n=nr(t.getModel().get(["lineStyle","curveness"]),-cS(t,e,a,!0),0),i=sa(t.node1.getLayout()),o=sa(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}var b9=dt(ar,function w9(r,e){r.eachSeriesByType(ar,function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];A(n.dimensions,function(c){o=o.concat(i.mapDimensionsAll(c))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var v=i.get(o[f],s);isNaN(v)||(u=!0),l.push(v)}i.setItemLayout(s,u?n.dataToPoint(l):[NaN,NaN])}hS(i.graph,t)}else(!a||"none"===a)&&bR(t)})});function Kf(r){var e=r.coordinateSystem;return d2(e)?b2(e,r):1}function qf(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var wR=Math.PI,pS=[];function dS(r,e,t,a){var n=r.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),v){if(t){var c=n.pointToData(a),d=[c[0]-l,c[1]-u];mi(d,d),Xl(d,d,f),t.setLayout([l+d[0],u+d[1]],!0),TR(t,r.get(["circular","rotateLabel"]),l,u)}T9[e](r,s,o,f,l,u,v),s.eachEdge(function(y,m){var b,_=nr(y.getModel().get(["lineStyle","curveness"]),cS(y,r,m),0),S=sa(y.node1.getLayout()),x=sa(y.node2.getLayout());+_&&(b=[l*(_*=3)+(S[0]+x[0])/2*(1-_),u*_+(S[1]+x[1])/2*(1-_)]),y.setLayout([S,x,b])})}}}var T9={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=2*Math.PI/(l||o);e.eachNode(function(f){var v=f.getValue("value"),c=u*(l?v:1)/2;s+=c,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=c})},symbolSize:function(r,e,t,a,n,i,o){var s=0;pS.length=o;var l=Kf(r);e.eachNode(function(v){var c=qf(v);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var h=Math.asin(c/2/a);isNaN(h)&&(h=wR/2),pS[v.dataIndex]=h,s+=2*h});var u=(2*wR-s)/o/2,f=0;e.eachNode(function(v){var c=u+pS[v.dataIndex];f+=c,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=c})}};function TR(r,e,t,a){var n=r.getGraphicEl();if(n){var o=r.getModel().get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=2*Math.PI+u);var f=l[0]<t;f&&(u-=Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var c=s.ensureState("emphasis");G(c.textConfig||(c.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var C9=dt(ar,function A9(r){r.eachSeriesByType("graph",function(e){"circular"===e.get("layout")&&dS(e,"symbolSize")})}),Tl=yv,D9=dt(ar,function L9(r){r.eachSeriesByType(ar,function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):l&&"none"!==l?"circular"===l&&dS(e,"value"):bR(e);var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),c=s.get("edgeLength"),h=H(v)?v:[v,v],p=H(c)?c:[c,c];p=[p[1],p[0]];var d=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),b=Re(_,u,h);return isNaN(b)&&(b=(h[0]+h[1])/2),{w:b,rep:b,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=n.getEdgeByIndex(S),b=Re(_,f,p);isNaN(b)&&(b=(p[0]+p[1])/2);var w=x.getModel(),C=nr(x.getModel().get(["lineStyle","curveness"]),-cS(x,e,S,!0),0);return{n1:d[x.node1.dataIndex],n2:d[x.node2.dataIndex],d:b,curveness:C,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=function M9(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=null==t.gravity?.1:t.gravity,f=0;f<a.length;f++){var v=a[f];v.p||(v.p=In(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=sa(v.p),v.edges=null}var p,d,c=null==t.friction?.6:t.friction,h=c;return{warmUp:function(){h=.8*c},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(a,n);for(var y=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){Pn(y,(b=S.n2).p,(x=S.n1).p);var w=Zl(y)-S.d,C=b.w/(x.w+b.w);isNaN(C)&&(C=0),mi(y,y),!x.fixed&&Tl(x.p,x.p,y,C*w*h),!b.fixed&&Tl(b.p,b.p,y,-(1-C)*w*h)}}for(_=0;_<m;_++)(T=a[_]).fixed||(Pn(y,l,T.p),Tl(T.p,T.p,y,u*h));for(_=0;_<m;_++)for(var x=a[_],M=_+1;M<m;M++){var b;Pn(y,(b=a[M]).p,x.p),0===(w=Zl(y))&&(Ya(y,Math.random()-.5,Math.random()-.5),w=1);var D=(x.rep+b.rep)/w/w;!x.fixed&&Tl(x.pp,x.pp,y,D),!b.fixed&&Tl(b.pp,b.pp,y,-D)}var I=[];for(_=0;_<m;_++){var T;(T=a[_]).fixed||(Pn(I,T.p,T.pp),Tl(T.p,T.p,I,h),Et(T.pp,T.p))}var L=(h*=.992)<.01;d&&d(a,n,L),g&&g(L)}}}(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var x=0,b=_.length;x<b;x++)_[x].fixed&&Et(_[x].p,n.getNodeByIndex(x).getLayout())}),m.afterStep(function(_,S,x){for(var b=0,w=_.length;b<w;b++)_[b].fixed||n.getNodeByIndex(b).setLayout(_[b].p),a[i.getId(b)]=_[b].p;for(b=0,w=S.length;b<w;b++){var C=S[b],T=n.getEdgeByIndex(b),M=C.n1.p,D=C.n2.p,I=T.getLayout();(I=I?I.slice():[])[0]=I[0]||[],I[1]=I[1]||[],Et(I[0],M),Et(I[1],D),+C.curveness&&(I[2]=[(M[0]+D[0])/2-(M[1]-D[1])*C.curveness,(M[1]+D[1])/2-(D[0]-M[0])*C.curveness]),T.setLayout(I)}}),e.forceLayout=m,e.preservedPoints=a,m.step()}else e.forceLayout=null})});function P9(r,e){var t=[];return r.eachSeriesByType("graph",function(a){Cu({targetModel:a,coordSysType:"view",coordSysProvider:function n(){var i=a.getData(),s=[],l=[];lc(i.mapArray(function(p){var d=i.getItemModel(p);return[+d.get("x"),+d.get("y")]}),s,l),l[0]-s[0]==0&&(l[0]+=1,s[0]-=1),l[1]-s[1]==0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=function I9(r,e,t){var a=mt(r,e),n=G(r.getBoxLayoutParams(),{aspect:t});return oC(r,qe(n,a.refContainer),t)}(a,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var h=Y_(a,e,s[0],s[1],l[0]-s[0],l[1]-s[1],f);return t.push(h),h},isDefaultDataCoordSys:!0})}),t}var CR=ct.prototype,gS=Bu.prototype,AR=function(){return function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}}();function yS(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}!function(r){N(function e(){return null!==r&&r.apply(this,arguments)||this},r)}(AR);var R9=function(r){function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return N(e,r),e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new AR},e.prototype.buildPath=function(t,a){yS(a)?CR.buildPath.call(this,t,a):gS.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return yS(this.shape)?CR.pointAt.call(this,t):gS.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=yS(a)?[a.x2-a.x1,a.y2-a.y1]:gS.tangentAt.call(this,t);return mi(n,n)},e}(we);const MR=R9;var mS=["fromSymbol","toSymbol"];function DR(r){return"_"+r+"Type"}function LR(r,e,t){var a=e.getItemVisual(t,r);if(!a||"none"===a)return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=js(n);return a+l+mo(o||0,l)+(i||"")+(s||"")}function IR(r,e,t){var a=e.getItemVisual(t,r);if(a&&"none"!==a){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=js(n),u=mo(o||0,l),f=lt(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function _S(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var k9=function(r){function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return N(e,r),e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=t.getItemVisual(a,"z2"),l=function E9(r){var e=new MR({name:"line",subPixelOptimize:!0});return _S(e.shape,r),e}(o);l.shape.percent=0,Ze(l,{z2:Q(s,0),shape:{percent:1}},i,a),this.add(l),A(mS,function(u){var f=IR(u,t,a);this.add(f),this[DR(u)]=LR(u,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};_S(l.shape,s),Pe(o,l,i,a),A(mS,function(u){var f=LR(u,t,a),v=DR(u);if(this[v]!==f){this.remove(this.childOfName(u));var c=IR(u,t,a);this.add(c)}this[v]=f},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,v=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var p=t.getItemModel(a),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),v=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),f=yt(p)}var g=t.getItemVisual(a,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(mS,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var C=0;C<Qt.length;C++){var T=Qt[C],M=o.getState(T);if(M){var D=M.style||{},I=w.ensureState(T),L=I.style||(I.style={});null!=D.stroke&&(L[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),null!=D.opacity&&(L.opacity=D.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);bt(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,t.dataType)}},inheritColor:y||B.color.neutral99,defaultOpacity:g.opacity,defaultText:(null==m?t.getName(a):isFinite(m)?Ie(m,10):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");H(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Je(this,c,h,v)},e.prototype.highlight=function(){ln(this)},e.prototype.downplay=function(){un(this)},e.prototype.updateLayout=function(t,a){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");_S(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(a||n||i&&!i.ignore){for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(this.__dirty||l.__dirty){var u=l.shape.percent,f=l.pointAt(0),v=l.pointAt(u),c=Pn([],v,f);if(mi(c,c),a&&(a.setPosition(f),h(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(v),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],b=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var C=-Math.atan2(S[1],S[0]);v[0]<f[0]&&(C=Math.PI+C),i.rotation=C}var T=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-m,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=m,d="top";break;default:T=0,d="middle"}switch(i.__position){case"end":i.x=c[0]*y+v[0],i.y=c[1]*m+v[1],p=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*y+f[0],i.y=-c[1]*m+f[1],p=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+T,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+T,p="center",i.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+v[0],i.y=v[1]+T,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-T}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}}}function h(M,D){var I=M.__specifiedRotation;if(null==I){var L=l.tangentAt(D);M.attr("rotation",(1===D?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else M.attr("rotation",I)}},e}(oe);const SS=k9;var O9=function(){function r(e){this.group=new oe,this._LineCtor=e||SS}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=PR(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.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=PR(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){function n(l){!l.isGroup&&!function N9(r){return r.animators&&r.animators.length>0}(l)&&(l.incremental=a,l.ensureState("emphasis").hoverLayer=Ws)}this._progressiveEls=[];for(var i=e.start;i<e.end;i++)if(xS(t.getItemLayout(i))){var s=new this._LineCtor(t,i,this._seriesScope);s.traverse(n),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Jn(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){if(xS(e.getItemLayout(t))){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);xS(t.getItemLayout(n))?(o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)):this.group.remove(o)},r}();function PR(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:yt(e)}}function RR(r){return isNaN(r[0])||isNaN(r[1])}function xS(r){return r&&!RR(r[0])&&!RR(r[1])}const bS=O9;var wS=[],TS=[],CS=[],Cl=Tt,AS=Rn,ER=Math.abs;function kR(r,e,t){for(var s,a=r[0],n=r[1],i=r[2],o=1/0,l=t*t,u=.1,f=.1;f<=.9;f+=.1)wS[0]=Cl(a[0],n[0],i[0],f),wS[1]=Cl(a[1],n[1],i[1],f),(v=ER(AS(wS,e)-l))<o&&(o=v,s=f);for(var c=0;c<32;c++){var h=s+u;TS[0]=Cl(a[0],n[0],i[0],s),TS[1]=Cl(a[1],n[1],i[1],s),CS[0]=Cl(a[0],n[0],i[0],h),CS[1]=Cl(a[1],n[1],i[1],h);var v=AS(TS,e)-l;if(ER(v)<.01)break;var p=AS(CS,e)-l;u/=2,v<0?p>=0?s+=u:s-=u:p>=0?s-=u:s+=u}return s}function MS(r,e){var t=[],a=eu,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[sa(u[0]),sa(u[1])],u[2]&&u.__original.push(sa(u[2])));var c=u.__original;if(null!=u[2]){if(Et(n[0],c[0]),Et(n[1],c[2]),Et(n[2],c[1]),f&&"none"!==f){var h=qf(s.node1),p=kR(n,c[0],h*e);a(n[0][0],n[1][0],n[2][0],p,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],p,t),n[0][1]=t[3],n[1][1]=t[4]}v&&"none"!==v&&(h=qf(s.node2),p=kR(n,c[1],h*e),a(n[0][0],n[1][0],n[2][0],p,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],p,t),n[1][1]=t[1],n[2][1]=t[2]),Et(u[0],n[0]),Et(u[1],n[2]),Et(u[2],n[1])}else Et(i[0],c[0]),Et(i[1],c[1]),Pn(o,i[1],i[0]),mi(o,o),f&&"none"!==f&&(h=qf(s.node1),yv(i[0],i[0],o,h*e)),v&&"none"!==v&&(h=qf(s.node2),yv(i[1],i[1],o,-h*e)),Et(u[0],i[0]),Et(u[1],i[1])})}var OR=ge();function NR(r,e){r&&(OR(r).bridge=e)}var V9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=ar,t}return N(e,r),e.prototype.init=function(t,a){var n=new _f,i=new bS,o=this.group,s=new oe;this._controller=new Fo(a.getZr()),s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=mp(t),s=!1;this._model=t,this._api=n,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(n);var f=this._symbolDraw,v=this._lineDraw;o&&oi(l,2,o,this._firstRender?null:t),MS(t.getGraph(),Kf(t));var c=t.getData();f.updateData(c);var h=t.getEdgeData();v.updateData(h),this._updateNodeAndLinkScale(),o&&Sp(t,n,this._controller,function(S,x,b){return t.coordinateSystem.containPoint([x,b])},null),clearTimeout(this._layoutTimeout);var p=t.forceLayout,d=t.get(["force","layoutAnimation"]);p&&(s=!0,this._startForceLayoutIteration(p,n,d));var g=t.get("layout");c.graph.eachNode(function(S){var x=S.dataIndex,b=S.getGraphicEl(),w=S.getModel();if(b){b.off("drag").off("dragend");var C=w.get("draggable");C&&b.on("drag",function(M){switch(g){case"force":p.warmUp(),!i._layouting&&i._startForceLayoutIteration(p,n,d),p.setFixed(x),c.setItemLayout(x,[b.x,b.y]);break;case"circular":c.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),dS(t,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(t);break;default:c.setItemLayout(x,[b.x,b.y]),hS(t.getGraph(),t),i.updateLayout(t)}}).on("dragend",function(){p&&p.setUnfixed(x)}),b.setDraggable(C,!!w.get("cursor")),"adjacency"===w.get(["emphasis","focus"])&&(ue(b).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&"adjacency"===b&&(ue(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){TR(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,a,n){var i=this,o=!1;
1!function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})}()},e.prototype.__updateOnOwnRoam=function(t,a,n){var i=mp(a);!this._active||!i||(oi(this._mainGroup,2,i,null),C2(t)&&(this._updateNodeAndLinkScale(),MS(a.getGraph(),Kf(a)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Kf(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){this._active&&(MS(t.getGraph(),Kf(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,a=t.coordinateSystem;if("view"===a.type){var n=function B9(r){if(r)return OR(r).bridge}(t);if(n)return{bridge:n,coordSys:a}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(hp(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new oe,l=n.group.children(),u=i.group.children(),f=new oe,v=new oe;s.add(v),s.add(f);for(var c=0;c<l.length;c++){var p=(h=l[c]).children()[0],d=h.x,g=h.y,m=G(re(p.shape),{width:p.scaleX,height:p.scaleY,x:d-p.scaleX/2,y:g-p.scaleY/2}),_=re(p.style),S=new p.constructor({shape:m,style:_,z2:151});v.add(S)}for(c=0;c<u.length;c++){var h,x=(h=u[c]).children()[0],b=(_=re(x.style),m=re(x.shape),new MR({style:_,shape:m,z2:151}));f.add(b)}o.bridge.renderContent({api:a,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:hp(null,o.coordSys)})}},e.type=ar,e}(ze);const z9=V9;var G9=dt(ar,function F9(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType(ar,function(t){var a=t.getCategoriesData(),i=t.getGraph().data,o=a.mapArray(a.getName);i.filterSelf(function(s){var u=i.getItemModel(s).getShallow("category");if(null!=u){Ae(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}),H9=dt(ar,function W9(r){var e={};r.eachSeriesByType(ar,function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var c=l.getShallow(f[v],!0);null!=c&&a.setItemVisual(o,f[v],c)}}),a.count()&&n.each(function(o){var l=n.getItemModel(o).getShallow("category");if(null!=l){X(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style");G(n.ensureUniqueItemVisual(o,"style"),u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++)n.setItemVisual(o,v[c],a.getItemVisual(l,v[c]))}})})}),jf="chord",Y9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new _l(q(this.getData,this),q(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&n)return uS(i,n,this,!0,function s(l,u){var f=De.prototype.getModel;function v(h,p){var d=f.call(this,h,p);return d.resolveParentPath=c,d}function c(h){if(h&&("label"===h[0]||"label"===h[1])){var p=h.slice();return"label"===h[0]?p[0]="edgeLabel":"label"===h[1]&&(p[1]="edgeLabel"),p}return h}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=v,h})}).data},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){var i=this.getDataParams(t,n);if("edge"===n){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return null!=l&&f.push(l),null!=u&&f.push(u),vt("nameValue",{name:f.join(" >
1 "),value:i.value,noValue:null==i.value})}return vt("nameValue",{name:i.name,value:i.value,noValue:null==i.value})},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if("node"===a){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(null==n.name&&(n.name=i.getName(t)),null==n.value){var s=o.getLayout().value;n.value=s}}return n},e.type="series."+jf,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e}(Ye);const Z9=Y9;var X9=function(r){function e(t,a,n){var i=r.call(this)||this;ue(i).dataType="node",i.z2=2;var o=new Me;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return N(e,r),e.prototype.updateData=function(t,a,n,i){var o=this,s=t.graph.getNodeByIndex(a),l=t.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=t.getItemLayout(a),c=G(Ea(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(c.startAngle))h.setShape(c);else{i?h.setShape(c):Pe(h,{shape:c},l,a);var p=G(Ea(u.getModel("itemStyle"),v,!0),v);o.setShape(p),o.useStyle(t.getItemVisual(a,"style")),gt(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(a,h),gt(h,u,"itemStyle");var d=f.get("focus");Je(this,"adjacency"===d?s.getAdjacentDataIndices():d,f.get("blurScope"),f.get("disabled"))}},e.prototype._updateLabel=function(t,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=a.getModel("label");i.ignore=!f.get("show");var v=yt(a),c=n.getVisual("style");bt(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return t.getFormattedLabel(m,_,"node",x,nr(b,v.normal&&v.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var d,h=f.get("position")||"outside",p=f.get("distance")||0;d="outside"===h?o.r+p:(o.r+o.r0)/2,this.textConfig={inside:"outside"!==h};var g="outside"!==h?f.get("align")||"center":l>0?"left":"right",y="outside"!==h?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*d+o.cx,y:u*d+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},e}(Yt);const BR=X9;var K9=function(r){function e(t,a,n,i){var o=r.call(this)||this;return ue(o).dataType="edge",o.updateData(t,a,n,i,!0),o}return N(e,r),e.prototype.buildPath=function(t,a){t.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;t.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),t.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),t.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),t.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),t.closePath()},e.prototype.updateData=function(t,a,n,i,o){var s=t.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),f=l.node1.getModel(),v=a.getItemModel(l.dataIndex),c=v.getModel("lineStyle"),h=v.getModel("emphasis"),p=h.get("focus"),d=G(Ea(f.getModel("itemStyle"),u,!0),u),g=this;isNaN(d.sStartAngle)||isNaN(d.tStartAngle)?g.setShape(d):(o?(g.setShape(d),VR(g,l,t,c)):(kr(g),VR(g,l,t,c),Pe(g,{shape:d},s,n)),Je(this,"adjacency"===p?l.getAdjacentDataIndices():p,h.get("blurScope"),h.get("disabled")),gt(g,v,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g))},e}(we);function VR(r,e,t,a){var n=e.node1,i=e.node2,o=r.style;switch(r.setStyle(a.getLineStyle()),a.get("color")){case"source":o.fill=t.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(n.dataIndex,"style").fill,u=t.getItemVisual(i.dataIndex,"style").fill;if(X(l)&&X(u)){var f=r.shape;o.fill=new fo((f.s1[0]+f.s2[0])/2,(f.s1[1]+f.s2[1])/2,(f.t1[0]+f.t2[0])/2,(f.t1[1]+f.t2[1])/2,[{offset:0,color:l},{offset:1,color:u}],!0)}}}var q9=Math.PI/180,j9=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=jf,t}return N(e,r),e.prototype.init=function(t,a){},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*q9;if(i.diff(o).add(function(f){if(i.getItemLayout(f)){var c=new BR(i,f,l);ue(c).dataIndex=f,s.add(c)}}).update(function(f,v){var c=o.getItemGraphicEl(v);i.getItemLayout(f)?(c?c.updateData(i,f,l):c=new BR(i,f,l),s.add(c)):c&&fn(c,t,v)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&fn(v,t,f)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=K(u[0],n.getWidth()),this.group.originY=K(u[1],n.getHeight()),Ze(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,a){var n=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new K9(n,i,l,a);ue(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,i,l,a),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&fn(u,t,l)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type=jf,e}(ze);const J9=j9;var DS=Math.PI/180,Q9=dt(jf,function $9(r,e){r.eachSeriesByType(jf,function(t){!function eK(r,e){var t=r.getData(),a=t.graph,n=r.getEdgeData();if(n.count()){var o=iC(r,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*DS,0),c=Math.max((r.get("minA
1ngle")||0)*DS,0),h=-r.get("startAngle")*DS,p=h+2*Math.PI,d=r.get("clockwise"),g=d?1:-1,y=[h,p];uc(y,!d);var m=y[0],S=y[1]-m,x=0===t.getSum("value")&&0===n.getSum("value"),b=[],w=0;a.eachEdge(function(V){var z=x?1:V.getValue("value");x&&(z>0||c)&&(w+=2);var F=V.node1.dataIndex,U=V.node2.dataIndex;b[F]=(b[F]||0)+z,b[U]=(b[U]||0)+z});var C=0;if(a.eachNode(function(V){var z=V.getValue("value");isNaN(z)||(b[V.dataIndex]=Math.max(z,b[V.dataIndex]||0)),!x&&(b[V.dataIndex]>0||c)&&w++,C+=b[V.dataIndex]||0}),0!==w&&0!==C){v*w>=Math.abs(S)&&(v=Math.max(0,(Math.abs(S)-c*w)/w)),(v+c)*w>=Math.abs(S)&&(c=(Math.abs(S)-v*w)/w);var T=(S-v*w*g)/C,M=0,D=0,I=0,L=1/0;a.eachNode(function(V){var z=b[V.dataIndex]||0,F=T*(C?z:1)*g;Math.abs(F)<c?M+=c-Math.abs(F):(L=Math.min(L,Math.abs(F)-c),D+=Math.abs(F)-c,I+=Math.abs(F)),V.setLayout({angle:F,value:z})});var P=!1;if(M>D){var E=M/D;a.eachNode(function(V){var z=V.getLayout().angle;Math.abs(z)>=c?V.setLayout({angle:z*E,ratio:E},!0):V.setLayout({angle:c,ratio:0===c?1:z/c},!0)})}else a.eachNode(function(V){if(!P){var z=V.getLayout().angle;z-Math.min(z/I,1)*M<c&&(P=!0)}});var R=M;a.eachNode(function(V){if(!(R<=0)){var z=V.getLayout().angle;if(z>c&&c>0){var F=P?1:Math.min(z/I,1),Y=Math.min(z-c,Math.min(R,M*F));R-=Y,V.setLayout({angle:z-Y,ratio:(z-Y)/z},!0)}else c>0&&V.setLayout({angle:c,ratio:0===z?1:c/z},!0)}});var k=m,O=[];a.eachNode(function(V){var z=Math.max(V.getLayout().angle,c);V.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:k,endAngle:k+z*g,clockwise:d},!0),O[V.dataIndex]=k,k+=(z+v)*g}),a.eachEdge(function(V){var z=x?1:V.getValue("value"),F=T*(C?z:1)*g,U=V.node1.dataIndex,Y=O[U]||0,$=Y+Math.abs((V.node1.getLayout().ratio||1)*F)*g,ye=[s+f*Math.cos(Y),l+f*Math.sin(Y)],Ne=[s+f*Math.cos($),l+f*Math.sin($)],ve=V.node2.dataIndex,ee=O[ve]||0,te=ee+Math.abs((V.node2.getLayout().ratio||1)*F)*g,ce=[s+f*Math.cos(ee),l+f*Math.sin(ee)],Ge=[s+f*Math.cos(te),l+f*Math.sin(te)];V.setLayout({s1:ye,s2:Ne,sStartAngle:Y,sEndAngle:$,t1:ce,t2:Ge,tStartAngle:ee,tEndAngle:te,cx:s,cy:l,r:f,value:z,clockwise:d}),O[U]=$,O[ve]=te})}}}(t,e)})}),rK=function(){return function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}}(),aK=function(r){function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return N(e,r),e.prototype.getDefaultShape=function(){return new rK},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(we);const nK=aK;function Pp(r,e){var t=null==r?"":r+"";return e&&(X(e)?t=e.replace("{value}",t):ae(e)&&(t=e(r))),t}var oK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=function iK(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n);return{cx:K(t[0],e.getWidth()),cy:K(t[1],e.getHeight()),r:K(r.get("radius"),i/2)}}(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),h=v.get("roundCap")?$h:Yt,p=v.get("show"),d=v.getModel("lineStyle"),g=d.get("width"),y=[u,f];uc(y,!l);for(var m=(f=y[1])-(u=y[0]),_=u,S=[],x=0;p&&x<i.length;x++){var w=new h({shape:{startAngle:_,endAngle:f=u+m*Math.min(Math.max(i[x][0],0),1),cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[x][1]}),w.setStyle(d.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),A(S,function(T){return s.add(T)});var C=function(T){if(T<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=T&&(0===M?0:i[M-1][0])<T)return i[M][1];return i[M-1][1]};this._renderTicks(t,a,n,C,o,u,f,l,g),this._renderTitleAndDetail(t,a,n,C,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,C,o,u,f,l,g)},e.prototype._renderTicks=function(t,a,n,i,o,s,l,u,f){for(var P,E,v=this.group,c=o.cx,h=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),x=m.get("splitNumber"),b=K(y.get("length"),p),w=K(m.get("length"),p),C=s,T=(l-s)/S,M=T/x,D=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),R=0;R<=S;R++){if(P=Math.cos(C),E=Math.sin(C),y.get("show")){var O=new ct({shape:{x1:P*(p-(k=L?L+f:f))+c,y1:E*(p-k)+h,x2:P*(p-b-k)+c,y2:E*(p-b-k)+h},style:D,silent:!0});"auto"===D.stroke&&O.setStyle({stroke:i(R/S)}),v.add(O)}if(_.get("show")){var k=_.get("distance")+L,V=Pp(Ie(R*(g-d)/S+d,14),_.get("formatter")),z=i(R/S),F=P*(p-b-k)+c,U=E*(p-b-k)+h,Y=_.get("rotate"),Z=0;"radial"===Y?(Z=-C+2*Math.PI)>Math.PI/2&&(Z+=Math.PI):"tangential"===Y?Z=-C-Math.PI/2:Ae(Y)&&(Z=Y*Math.PI/180),v.add(new Me(0===Z?{style:He(_,{text:V,x:F,y:U,verticalAlign:E<-.8?"top":E>
vendor: 34,792 bytes, line 1
1.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:z}),silent:!0}:{style:He(_,{text:V,x:F,y:U,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:F,originY:U,rotation:Z}))}if(m.get("show")&&R!==S){k=(k=m.get("distance"))?k+f:f;for(var $=0;$<=x;$++){P=Math.cos(C),E=Math.sin(C);var ye=new ct({shape:{x1:P*(p-k)+c,y1:E*(p-k)+h,x2:P*(p-w-k)+c,y2:E*(p-w-k)+h},silent:!0,style:I});"auto"===I.stroke&&ye.setStyle({stroke:i((R+$/x)/S)}),v.add(ye),C+=M}C-=M}else C+=T}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var v=this.group,c=this._data,h=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 C(M,D){var F,L=m.getItemModel(M).getModel("pointer"),P=K(L.get("width"),o.r),E=K(L.get("length"),o.r),R=t.get(["pointer","icon"]),k=L.get("offsetCenter"),O=K(k[0],o.r),V=K(k[1],o.r),z=L.get("keepAspect");return(F=R?lt(R,O-P/2,V-E,P,E,null,z):new nK({shape:{angle:-Math.PI/2,width:P,r:E,x:O,y:V}})).rotation=-(D+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function T(M,D){var L=g.get("roundCap")?$h:Yt,P=g.get("overlap"),E=P?g.get("width"):f/m.count(),O=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:P?o.r-E:o.r-(M+1)*E,r:P?o.r:o.r-M*E}});return P&&(O.z2=Re(m.get(_,M),[S,x],[100,0],!0)),O}(y||d)&&(m.diff(c).add(function(M){var D=m.get(_,M);if(d){var I=C(M,s);Ze(I,{rotation:-((isNaN(+D)?w[0]:Re(D,b,w,!0))+Math.PI/2)},t),v.add(I),m.setItemGraphicEl(M,I)}if(y){var L=T(M,s),P=g.get("clip");Ze(L,{shape:{endAngle:Re(D,b,w,P)}},t),v.add(L),yy(t.seriesIndex,m.dataType,M,L),p[M]=L}}).update(function(M,D){var I=m.get(_,M);if(d){var L=c.getItemGraphicEl(D),P=L?L.rotation:s,E=C(M,P);E.rotation=P,Pe(E,{rotation:-((isNaN(+I)?w[0]:Re(I,b,w,!0))+Math.PI/2)},t),v.add(E),m.setItemGraphicEl(M,E)}if(y){var R=h[D],O=T(M,R?R.shape.endAngle:s),V=g.get("clip");Pe(O,{shape:{endAngle:Re(I,b,w,V)}},t),v.add(O),yy(t.seriesIndex,m.dataType,M,O),p[M]=O}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),E=I.get("disabled"),R=i(Re(m.get(_,M),b,[0,1],!0));if(d){var k=m.getItemGraphicEl(M),O=m.getItemVisual(M,"style"),V=O.fill;if(k instanceof At){var z=k.style;k.useStyle(G({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},O))}else k.useStyle(O),"pointer"!==k.type&&k.setColor(V);k.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===k.style.fill&&k.setStyle("fill",R),k.z2EmphasisLift=0,gt(k,D),Je(k,L,P,E)}if(y){var F=p[M];F.useStyle(m.getItemVisual(M,"style")),F.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),"auto"===F.style.fill&&F.setStyle("fill",R),F.z2EmphasisLift=0,gt(F,D),Je(F,L,P,E)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor");if(n.get("show")){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=lt(s,a.cx-o/2+K(l[0],a.r),a.cy-o/2+K(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),v=+t.get("max"),c=new oe,h=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Me({silent:!0}),p[y]=new Me({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new oe,x=i(Re(_,[f,v],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),C=o.cx+K(w[0],o.r),T=o.cy+K(w[1],o.r);(M=h[y]).attr({z2:g?0:2,style:He(b,{x:C,y:T,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+K(I[0],o.r),P=o.cy+K(I[1],o.r),E=K(D.get("width"),o.r),R=K(D.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=p[y],O=D.get("formatter");M.attr({z2:g?0:2,style:He(D,{x:L,y:P,text:Pp(_,O),width:isNaN(E)?null:E,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:k})}),ET(M,{normal:D},_,function(z){return Pp(z,O)}),d&&kT(M,y,l,t,{getFormattedLabel:function(z,F,U,Y,Z,$){return Pp($?$.interpolatedValue:_,O)}}),S.add(M)}c.add(S)}),this.group.add(c),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(ze);const sK=oK;var lK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return N(e,r),e.prototype.getInitialData=function(t,a){return ml(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",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,B.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:B.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:B.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:B.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:B.color.neutral00,borderWidth:0,borderColor:B.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:B.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:B.color.transparent,borderWidth:0,borderColor:B.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:B.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ye);const uK=lK;var Al="funnel",vK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new _l(q(this.getData,this),q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return ml(this,{coordDimensions:["value"],encodeDefaulter:Se(tm,this)})},e.prototype._defaultLabelLine=function(t){ki(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series."+Al,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:B.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:B.color.primary}}},e}(Ye);const cK=vK;var hK=["itemStyle","opacity"],pK=function(r){function e(t,a){var n=r.call(this)||this,i=n,o=new Bt,s=new Me;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return N(e,r),e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(hK);f=f??1,n||kr(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Ze(i,{style:{opacity:f}},o,a)):Pe(i,{style:{opacity:f},shape:{points:l.points}},o,a),gt(i,s),this._updateLabel(t,a),Je(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),f=t.getItemLayout(a).label,v=t.getItemVisual(a,"style"),c=v.fill;bt(o,yt(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var d="inherit"===l.getModel("label").get("color")?c:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:d,outsideFill:d});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new le(g[0][0],g[0][1]):null},Pe(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),B0(n,V0(l),{stroke:c})},e}(Zt),dK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=Al,t.ignoreLabelLineUpdate=!0,t}return N(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new pK(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){fn(o.getItemGraphicEl(l),t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Al,e}(ze);const gK=dK;var _K=dt(Al,function SK(r,e){r.eachSeriesByType(Al,function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=mt(t,e),s=qe(t.getBoxLayoutParams(),o.refContainer),l=zR(t),u=s.width,f=s.height,v=function yK(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i="ascending"===e,o=0,s=r.count();o<s;o++)n[o]=o;return ae(e)?n.sort(e):"none"!==e&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}(a,i),c=s.x,h=s.y,p=l?[K(t.get("minSize"),f),K(t.get("maxSize"),f)]:[K(t.get("minSize"),u),K(t.get("maxSize"),u)],d=a.getDataExtent(n),g=t.get("min"),y=t.get("max");null==g&&(g=Math.min(d[0],0)),null==y&&(y=d[1]);var m=t.get("funnelAlign"),_=t.get("gap"),x=((l?u:f)-_*(a.count()-1))/a.count(),b=function(E,R){if(l){var O=Re(a.get(n,E)||0,[g,y],p,!0),V=void 0;switch(m){case"top":V=h;break;case"center":V=h+(f-O)/2;break;case"bottom":V=h+(f-O)}return[[R,V],[R,V+O]]}var U,F=Re(a.get(n,E)||0,[g,y],p,!0);switch(m){case"left":U=c;break;case"center":U=c+(u-F)/2;break;case"right":U=c+u-F}return[[U,R],[U+F,R]]};"ascending"===i&&(x=-x,_=-_,l?c+=u:h+=f,v=v.reverse());for(var w=0;w<v.length;w++){var C=v[w],T=v[w+1],M=a.getItemModel(C);if(l){var D=M.get(["itemStyle","width"]);null==D?D=x:(D=K(D,u),"ascending"===i&&(D=-D));var I=b(C,c),L=b(T,c+D);c+=D+_,a.setItemLayout(C,{points:I.concat(L.slice().reverse())})}else{var P=M.get(["itemStyle","height"]);null==P?P=x:(P=K(P,f),"ascending"===i&&(P=-P)),I=b(C,h),L=b(T,h+P),h+=P+_,a.setItemLayout(C,{points:I.concat(L.slice().reverse())})}}!function mK(r){var t=zR(r.hostModel);r.each(function(a){var v,c,h,p,n=r.getItemModel(a),o=n.getModel("label").get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,f="inner"===o||"inside"===o||"center"===o||"insideLeft"===o||"insideRight"===o;if(f)"insideLeft"===o?(c=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,v="left"):"insideRight"===o?(c=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,v="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),p=[[c,h],[c,h]];else{var d=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");X(o)&&(!t&&pe(["top","bottom"],o)>-1&&(o="left"),t&&pe(["left","right"],o)>-1&&(o="bottom")),"left"===o?(g=(u[3][1]+u[0][1])/2,c=(y=(d=(u[3][0]+u[0][0])/2)-_)-5,v="right"):"right"===o?(g=(u[1][1]+u[2][1])/2,c=(y=(d=(u[1][0]+u[2][0])/2)+_)+5,v="left"):"top"===o?(d=(u[3][0]+u[0][0])/2,h=(m=(g=(u[3][1]+u[0][1])/2)-_)-5,v="center"):"bottom"===o?(d=(u[1][0]+u[2][0])/2,h=(m=(g=(u[1][1]+u[2][1])/2)+_)+5,v="center"):"rightTop"===o?(d=t?u[3][0]:u[1][0],g=t?u[3][1]:u[1][1],t?(h=(m=g-_)-5,v="center"):(c=(y=d+_)+5,v="top")):"rightBottom"===o?(d=u[2][0],g=u[2][1],t?(h=(m=g+_)+5,v="center"):(c=(y=d+_)+5,v="bottom")):"leftTop"===o?(d=u[0][0],g=t?u[0][1]:u[1][1],t?(h=(m=g-_)-5,v="center"):(c=(y=d-_)-5,v="right")):"leftBottom"===o?(d=t?u[1][0]:u[3][0],g=t?u[1][1]:u[2][1],t?(h=(m=g+_)+5,v="center"):(c=(y=d-_)-5,v="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t?(h=(m=g+_)+5,v="center"):(c=(y=d+_)+5,v="left")),t?c=y=d:h=m=g,p=[[d,g],[y,m]]}l.label={linePoints:p,x:c,y:h,verticalAlign:"middle",textAlign:v,inside:f}})}(a)})});function zR(r){return"horizontal"===r.get("orient")}var wK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new oe,t._initialized=!1,t}return N(e,r),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,v=HR(t);if(s.diff(l).add(function c(g){LS(FR(s,o,g,f,u),s,g,v)}).update(function h(g,y){var m=l.getItemGraphicEl(y);o.add(m);var _=GR(s,g,f,u);s.setItemGraphicEl(g,m),Pe(m,{shape:{points:_}},t,g),kr(m),LS(m,s,g,v)}).remove(function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}).execute(),!this._initialized){this._initialized=!0;var d=function TK(r,e,t){var a=r.model,n=r.getRect(),i=new be({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o="horizontal"===a.get("layout")?"width":"height";return i.setShape(o,0),Ze(i,{shape:{width:n.width,height:n.height}},e,t),i}(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=FR(i,this._dataGroup,l,o.dimensions,o);u.incremental=da(a),LS(u,i,l,HR(a)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(ze);function GR(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);CK(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function FR(r,e,t,a,n){var i=GR(r,t,a,n),o=new Bt({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function HR(r){var e=r.get("smooth",!0);return!0===e&&(e=.3),Pt(e=pa(e))&&(e=0),{smooth:e}}function LS(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");gt(r,n,"lineStyle"),Je(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function CK(r,e){return"category"===e?null==r:null==r||isNaN(r)}const AK=wK;var MK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return N(e,r),e.prototype.getInitialData=function(t,a){return Ca(null,this,{useEncodeDefaulter:q(DK,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e}(Ye);function DK(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return A(e.dimensions,function(a){var n=function LK(r){return+r.replace("dim","")}(a);t[a]=n}),t}}const IK=MK;var PK=["lineStyle","opacity"],RK={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=a[o];if("normal"===o&&i.hasItemOption){var u=i.getItemModel(s).get(PK,!0);null!=u&&(l=u)}i.ensureUniqueItemVisual(s,"style").opacity=l},n.start,n.end)}}}};const EK=RK;function kK(r){(function OK(r){if(!r.parallel){var e=!1;A(r.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(r.parallel=[{}])}})(r),function NK(r){A(Fe(r.parallelAxis),function(t){if(se(t)){var a=t.parallelIndex||0,n=Fe(r.parallel)[a];n&&n.parallelAxisDefault&&de(t,n.parallelAxisDefault,!1)}})}(r)}var VK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},A(zK,function(i,o){n.getZr().on(o,this._handlers[o]=q(i,this))},this)),Xs(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){Uu(this,"_throttledDispatchExpand"),A(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(G({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Xe),zK={mousedown:function(r){IS(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(IS(this,"click")&&e){var t=[r.offsetX,r.offsetY];if(Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)>5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!this._mouseDownPoint&&IS(this,"mousemove")){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;"jump"===a&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===a?null:{axisExpandWindow:t.axisExpandWindow,animation:"jump"===a?null:{duration:0}})}}};function IS(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const GK=VK;var Rp="parallel",PS=Rp,FK=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&de(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return null!=n&&a.getComponent("parallel",n)===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=[];A(ke(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this),function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type=PS,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={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}(Ce);const HK=FK;var WK=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return N(e,r),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Gr);const UK=WK;function li(r,e,t,a,n,i){r=r||0;var o=Ri(t[1],-t[0]);if(null!=n&&(n=Ml(n,[0,o])),null!=i&&(i=Math.max(i,n??0)),"all"===a){var s=Math.abs(Ri(e[1],-e[0]));s=Ml(s,[0,o]),n=i=Ml(s,[n,i]),a=0}e[0]=Ml(e[0],t),e[1]=Ml(e[1],t);var l=RS(e,a);e[a]+=r;var v,u=n||0,f=t.slice();return l.sign<0?f[0]=Ri(f[0],u):f[1]=Ri(f[1],-u),e[a]=Ml(e[a],f),v=RS(e,a),null!=n&&(v.sign!==l.sign||v.span<n)&&(e[1-a]=Ri(e[a],l.sign*n)),v=RS(e,a),null!=i&&v.span>i&&(e[1-a]=Ri(e[a],v.sign*i)),e}function RS(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 Ml(r,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,r))}var YK=function(){function r(e,t,a){this.type=Rp,this._axesMap=j(),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.parallelAxisIndex;A(e.dimensions,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=of(u),v=this._axesMap.set(o,new UK(o,sl(u,f,!1),[0,0],f,l));v.onBand=uf(v.scale,u),v.inverse=u.get("inverse"),u.axis=v,v.model=u,v.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){A(this.dimensions,function(a){var n=this._axesMap.get(a);Ao(n,1),hl(n)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var a=mt(e,t).refContainer;this._rect=qe(e.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var p,e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o="horizontal"===i?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Ep(e.get("axisExpandWidth"),l),v=Ep(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,h=e.get("axisExpandWindow");h?(p=Ep(h[1]-h[0],l),h[1]=h[0]+p):(p=Ep(f*(v-1),l),(h=[f*(e.get("axisExpandCenter")||Ir(u/2))-p/2])[1]=h[0]+p);var g=(s-p)/(u-v);g<3&&(g=0);var y=[Ir(Ie(h[0]/f,1))+1,Li(Ie(h[1]/f,1))-1];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:g/f*h[0]}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),A(a,function(o,s){var l=(n.axisExpandable?XK:ZK)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},v=[u[i].x+e.x,u[i].y+e.y],c={horizontal:qv/2,vertical:0}[i],h=[1,0,0,1,0,0];ja(h,h,c),Zr(h,h,v),this._axesLayout[o]={position:v,rotation:c,transform:h,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,n){null==a&&(a=0),null==n&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var v=void 0;if(u){v="active";for(var c=e.getValues(s,f),h=0,p=o.length;h<p;h++)if("inactive"===l[h].getActiveState(c[h])){v="inactive";break}}else v="normal";t(v,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)"normal"!==t.get(e[n]).model.getActiveState()&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){return ta([e,0],this._axesLayout[t].transform)},r.prototype.getAxisLayout=function(e){return re(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var l,s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,u="slide",f=t.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),c=null!=v[0];if(f)c&&f&&s<i*v[0]?(u="jump",l=s-i*v[2]):c&&f&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),(l*=t.axisExpandWidth/f)?li(l,n,o,"all"):u="none";else{var h=n[1]-n[0];(n=[xe(0,o[1]*s/h-h/2)])[1]=Be(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function Ep(r,e){return Be(xe(r,e[0]),e[1])}function ZK(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function XK(r,e){var s,f,a=e.axisExpandWidth,i=e.axisCollapseWidth,o=e.winInnerIndices,l=i,u=!1;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=e.layoutLength-(e.axisCount-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const KK=YK;var jK={create:function qK(r,e){var t=[];return r.eachComponent(PS,function(a,n){var i=new KK(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")===Rp){var n=a.getReferringComponents(PS,at).models[0],i=a.coordinateSystem=n.coordinateSystem;i&&A(i.dimensions,function(o){Co(i.getAxis(o),a,Rp)})}}),t}};const JK=jK;var WR=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return N(e,r),e.prototype.getAreaSelectStyle=function(){return Vi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=re(t);if(a)for(var n=a.length-1;n>=0;n--)Ct(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===a.length){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e}(Ce);it(WR,fl);const UR=WR;var Jo=!0,Jf=Math.min,Dl=Math.max,QK=Math.pow,YR="globalPan",rq={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},aq={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},ZR={brushStyle:{lineWidth:2,stroke:B.color.backgroundTint,fill:B.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},nq=0,iq=function(r){function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new oe,a._uid="brushController_"+nq++,A(cq,function(n,i){this._handlers[i]=q(n,this)},a),a}return N(e,r),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||function N7(r,e,t){P_(r)[e]=t}(a,YR,this._uid),A(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=de(re(ZR),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;(function B7(r,e,t){var a=P_(r);a[e]===t&&(a[e]=null)})(t,YR,this._uid),A(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};A(t,function(n){a[n.panelId]=re(n)})}else this._panels=null;return this},e.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=W(t,function(c){return de(re(ZR),c,!0)});var n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new dn(n,t,function u(c,h){return l(c.__brushOption,h)},l).add(f).update(f).remove(function v(c){n[c]!==s&&o.group.remove(n[c])}).execute(),this;function l(c,h){return(null!=c.id?c.id:"\0-brush-index-"+h)+"-"+c.brushType}function f(c,h){var p=t[c];if(null!=h&&n[h]===s)i[c]=n[h];else{var d=i[c]=null!=h?(n[h].__brushOption=p,n[h]):KR(o,XR(o,p));ES(o,d)}}},e.prototype.unmount=function(){return this.enableBrush(!1),NS(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Cr);function XR(r,e){var t=kp[e.brushType].createCover(r,e);return t.__brushOption=e,jR(t,e),r.group.add(t),t}function KR(r,e){var t=kS(e);return t.endCreating&&(t.endCreating(r,e),jR(e,e.__brushOption)),e}function qR(r,e){var t=e.__brushOption;kS(e).updateCoverShape(r,e,t.range,t)}function jR(r,e){var t=e.z;null==t&&(t=1e4),r.traverse(function(a){a.z=t,a.z2=t})}function ES(r,e){kS(e).updateCommon(r,e),qR(r,e)}function kS(r){return kp[r.__brushOption.brushType]}function OS(r,e,t){var a=r._panels;if(!a)return Jo;var n,i=r._transform;return A(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function JR(r,e){var t=r._panels;if(!t)return Jo;var a=e.__brushOption.panelId;return null!=a?t[a]:Jo}function NS(r){var e=r._covers,t=e.length;return A(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function Qo(r,e){var t=W(r._covers,function(a){var n=a.__brushOption,i=re(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function QR(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function $R(r,e,t,a){var n=new oe;return n.add(new be({name:"main",style:VS(t),silent:!0,draggable:!0,cursor:"move",drift:Se(rE,r,e,n,["n","s","w","e"]),ondragend:Se(Qo,e,{isEnd:!0})})),A(a,function(i){n.add(new be({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Se(rE,r,e,n,i),ondragend:Se(Qo,e,{isEnd:!0})}))}),n}function eE(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=Dl(n,6),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],v=t[1][1],c=f-i+n/2,h=v-i+n/2,p=f-o,d=v-s,g=p+n,y=d+n;xn(r,e,"main",o,s,p,d),a.transformable&&(xn(r,e,"w",l,u,i,y),xn(r,e,"e",c,u,i,y),xn(r,e,"n",l,u,g,i),xn(r,e,"s",l,h,g,i),xn(r,e,"nw",l,u,i,i),xn(r,e,"ne",c,u,i,i),xn(r,e,"sw",l,h,i,i),xn(r,e,"se",c,h,i,i))}function BS(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(VS(t)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=1===i.length?zS(r,i[0]):function lq(r,e){var t=[zS(r,e[0]),zS(r,e[1])];return("e"===t[0]||"w"===t[0])&&t.reverse(),t.join("")}(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?aq[s]+"-resize":null})})}function xn(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(function fq(r){var e=Jf(r[0][0],r[1][0]),t=Jf(r[0][1],r[1][1]);return{x:e,y:t,width:Dl(r[0][0],r[1][0])-e,height:Dl(r[0][1],r[1][1])-t}}(GS(r,e,[[a,n],[a+i,n+o]])))}function VS(r){return ie({strokeNoScale:!0},r.brushStyle)}function tE(r,e,t,a){var n=[Jf(r,t),Jf(e,a)],i=[Dl(r,t),Dl(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function zS(r,e){var n=jc({w:"left",e:"right",n:"top",s:"bottom"}[e],function sq(r){return ho(r.group)}(r));return{left:"w",right:"e",top:"n",bottom:"s"}[n]}function rE(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=aE(e,n,i);A(a,function(u){var f=rq[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(tE(s[0][0],s[1][0],s[0][1],s[1][1])),ES(e,t),Qo(e,{isEnd:!1})}function uq(r,e,t,a){var n=e.__brushOption.range,i=aE(r,t,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),ES(r,e),Qo(r,{isEnd:!1})}function aE(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function GS(r,e,t){var a=JR(r,e);return a&&a!==Jo?a.clipPath(t,r._transform):re(t)}function FS(r){var e=r.event;e.preventDefault&&e.preventDefault()}function HS(r,e,t){return r.childOfName("main").contain(e,t)}function nE(r,e,t,a){var s,n=r._creatingCover,i=r._creatingPanel,o=r._brushOption;if(r._track.push(t.slice()),function oq(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1];return QK(n*n+i*i,.5)>6}(r)||n){if(i&&!n){"single"===o.brushMode&&NS(r);var l=re(o);l.brushType=iE(l.brushType,i),l.panelId=i===Jo?null:i.panelId,n=r._creatingCover=XR(r,l),r._covers.push(n)}if(n){var u=kp[iE(r._brushType,i)];n.__brushOption.range=u.getCreatingRange(GS(r,n,r._track)),a&&(KR(r,n),u.updateCommon(r,n)),qR(r,n),s={isEnd:a}}}else a&&"single"===o.brushMode&&o.removeOnClick&&OS(r,e,t)&&NS(r)&&(s={isEnd:a,removeOnClick:!0});return s}function iE(r,e){return"auto"===r?e.defaultBrushType:r}var cq={mousedown:function(r){if(this._dragging)oE(this,r);else if(!r.target||!r.target.draggable){FS(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null,(this._creatingPanel=OS(this,r,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var a=this.group.transformCoordToLocal(r.offsetX,r.offsetY);if(function vq(r,e,t){if(r._brushType&&!function hq(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}(r,e.offsetX,e.offsetY)){var a=r._zr,n=r._covers,i=OS(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===Jo||s.panelId===i.panelId)&&kp[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}(this,r,a),this._dragging){FS(r);var n=nE(this,r,a,!1);n&&Qo(this,n)}},mouseup:function(r){oE(this,r)}};function oE(r,e){if(r._dragging){FS(e);var n=r.group.transformCoordToLocal(e.offsetX,e.offsetY),i=nE(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Qo(r,i)}}var kp={lineX:sE(0),lineY:sE(1),rect:{createCover:function(r,e){function t(a){return a}return $R({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=QR(r);return tE(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){eE(r,e,t,a)},updateCommon:BS,contain:HS},polygon:{createCover:function(r,e){var t=new oe;return t.add(new Bt({name:"main",style:VS(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Zt({name:"main",draggable:!0,drift:Se(uq,r,e),ondragend:Se(Qo,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:GS(r,e,t)})},updateCommon:BS,contain:HS}};function sE(r){return{createCover:function(e,t){return $R({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=QR(e);return[Jf(t[0][r],t[1][r]),Dl(t[0][r],t[1][r])]},updateCoverShape:function(e,t,a,n){var i,o=JR(e,t);if(o!==Jo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),eE(e,t,l,n)},updateCommon:BS,contain:HS}}const WS=iq;function lE(r){return r=US(r),function(e){return Pm(e,r)}}function uE(r,e){return r=US(r),function(t){var a=e??t,i=a?r.x:r.y;return[i,i+((a?r.width:r.height)||0)]}}function fE(r,e,t){var a=US(r);return function(n,i){return a.contain(i[0],i[1])&&!XP(n,e,t)}}function US(r){return fe.create(r)}var pq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}
1return N(e,r),e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new WS(a.getZr())).on("brush",q(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!function dq(r,e,t){return t&&"axisAreaSelect"===t.type&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new oe,this.group.add(this._axisGroup),t.get("show")){var s=function yq(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=G({strokeContainThreshold:f},l.getAxisLayout(t.axis.dim)),p=new _n(t,n,h);p.build(),this._axisGroup.add(p.group),this._refreshBrushController(h,u,t,s,f,n),Gu(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,.1*Math.abs(u)),v=fe.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:lE(v),isTargetByCursor:fE(v,s,i),getLinearBrushOtherExtent:uE(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(function gq(r){var e=r.axis;return W(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}(n))},e.prototype._onBrush=function(t){var n=this.axisModel,i=n.axis,o=W(t.areas,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Xe);const mq=pq;var _q={type:"axisAreaSelect",event:"axisAreaSelected"},xq={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function vE(r){r.registerComponentView(GK),r.registerComponentModel(HK),r.registerCoordinateSystem("parallel",JK),r.registerPreprocessor(kK),r.registerComponentModel(UR),r.registerComponentView(mq),Sl(r,"parallel",UR,xq),function Sq(r){r.registerAction(_q,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)})})}(r)}var bn="sankey",wq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)null!=o[l].depth&&o[l].depth>=0&&(s[o[l].depth]=new De(o[l],this,a));return uS(i,n,this,!0,function f(v,c){v.wrapMethod("getItemModel",function(h,p){var d=h.parentModel,g=d.getData().getItemLayout(p);if(g){var m=d.levelModels[g.depth];m&&(h.parentModel=m)}return h}),c.wrapMethod("getItemModel",function(h,p){var d=h.parentModel,y=d.getGraph().getEdgeByIndex(p).node1.getLayout();if(y){var _=d.levelModels[y.depth];_&&(h.parentModel=_)}return h})}).data},e.prototype.setNodePosition=function(t,a){var i=(this.option.data||this.option.nodes)[t];
vendor: 2,598 bytes, line 1
1i.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,n){function i(h){return isNaN(h)||null==h}if("edge"===n){var o=this.getDataParams(t,n),s=o.data,l=o.value;return vt("nameValue",{name:s.source+" -- "+s.target,value:l,noValue:i(l)})}var v=this.getGraph().getNodeByIndex(t).getLayout().value,c=this.getDataParams(t,n).data.name;return vt("nameValue",{name:null!=c?c+"":null,value:v,noValue:i(v)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(null==n.value&&"node"===a){var o=this.getGraph().getNodeByIndex(t).getLayout().value;n.value=o}return n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+bn,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:B.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:B.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(Ye);const Tq=wq;var Cq=function(){return 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}}(),Aq=function(r){function e(t){return r.call(this,t)||this}return N(e,r),e.prototype.getDefaultShape=function(){return new Cq},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),"vertical"===a.orient?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){ln(this)},e.prototype.downplay=function(){un(this)},e}(we),Mq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=bn,t._mainGroup=new oe,t}return N(e,r),e.prototype.init=function(t,a){this._controller=new Fo(a.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,a,n){var i=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,f=t.getData(),v=t.getData("edge"),c=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,n),Sp(t,
1n,this._controller,w2(o),null),i.eachEdge(function(h){var p=new Aq,d=ue(p);d.dataIndex=h.dataIndex,d.seriesIndex=t.seriesIndex,d.dataType="edge";var I,L,P,E,R,k,O,V,g=h.getModel(),y=g.getModel("lineStyle"),m=y.get("curveness"),_=h.node1.getLayout(),S=h.node1.getModel(),x=S.get("localX"),b=S.get("localY"),w=h.node2.getLayout(),C=h.node2.getModel(),T=C.get("localX"),M=C.get("localY"),D=h.getLayout();p.shape.extent=Math.max(1,D.dy),p.shape.orient=c,"vertical"===c?(R=I=(null!=x?x*l:_.x)+D.sy,k=(L=(null!=b?b*u:_.y)+_.dy)*(1-m)+(E=null!=M?M*u:w.y)*m,O=P=(null!=T?T*l:w.x)+D.ty,V=L*m+E*(1-m)):(R=(I=(null!=x?x*l:_.x)+_.dx)*(1-m)+(P=null!=T?T*l:w.x)*m,k=L=(null!=b?b*u:_.y)+D.sy,O=I*m+P*(1-m),V=E=(null!=M?M*u:w.y)+D.ty),p.setShape({x1:I,y1:L,x2:P,y2:E,cpx1:R,cpy1:k,cpx2:O,cpy2:V}),p.useStyle(y.getItemStyle()),cE(p.style,c,h);var z=""+g.get("value"),F=yt(g,"edgeLabel");bt(p,F,{labelFetcher:{getFormattedLabel:function(Z,$,ye,Ne,ve,ee){return t.getFormattedLabel(Z,$,"edge",Ne,nr(ve,F.normal&&F.normal.get("formatter"),z),ee)}},labelDataIndex:h.dataIndex,defaultText:z}),p.setTextConfig({position:"inside"});var U=g.getModel("emphasis");gt(p,g,"lineStyle",function(Z){var $=Z.getItemStyle();return cE($,c,h),$}),o.add(p),v.setItemGraphicEl(h.dataIndex,p);var Y=U.get("focus");Je(p,"adjacency"===Y?h.getAdjacentDataIndices():"trajectory"===Y?h.getTrajectoryDataIndices():Y,U.get("blurScope"),U.get("disabled"))}),i.eachNode(function(h){var p=h.getLayout(),d=h.getModel(),g=d.get("localX"),y=d.get("localY"),m=d.getModel("emphasis"),_=d.get(["itemStyle","borderRadius"])||0,S=new be({shape:{x:null!=g?g*l:p.x,y:null!=y?y*u:p.y,width:p.dx,height:p.dy,r:_},style:d.getModel("itemStyle").getItemStyle(),z2:10});bt(S,yt(d),{labelFetcher:{getFormattedLabel:function(b,w){return t.getFormattedLabel(b,w,"node")}},labelDataIndex:h.dataIndex,defaultText:h.id}),S.disableLabelAnimation=!0,S.setStyle("fill",h.getVisual("color")),S.setStyle("decal",h.getVisual("style").decal),gt(S,d),o.add(S),f.setItemGraphicEl(h.dataIndex,S),ue(S).dataType="node";var x=m.get("focus");Je(S,"adjacency"===x?h.getAdjacentDataIndices():"trajectory"===x?h.getTrajectoryDataIndices():x,m.get("blurScope"),m.get("disabled"))}),f.eachItemGraphicEl(function(h,p){f.getItemModel(p).get("draggable")&&(h.drift=function(g,y){this.shape.x+=g,this.shape.y+=y,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/l,localY:this.shape.y/u})},h.draggable=!0,h.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(function Dq(r,e,t){var a=new be({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ze(a,{shape:{width:r.width+20}},e,t),a}(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,a,n){oi(this.group,2,a.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,a){var n=t.layoutInfo,i=t.coordinateSystem=Y_(t,a,n.x,n.y,n.width,n.height);oi(this.group,2,i,this._firstRender?null:t)},e.type=bn,e}(ze);function cE(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");X(a)&&X(n)&&(r.fill=new fo(0,0,+("horizontal"===e),+("vertical"===e),[{color:a,offset:0},{color:n,offset:1}]))}}const Lq=Mq;var Iq=dt(bn,function Pq(r,e){r.eachSeriesByType(bn,function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=mt(t,e).refContainer,o=qe(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,v=u.edges;!function Eq(r){A(r,function(e){var t=fi(e.outEdges,Op),a=fi(e.inEdges,Op),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}(f),function Rq(r,e,t,a,n,i,o,s,l){(function kq(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],v=0,c=0;c<e.length;c++)s[c]=1;for(c=0;c<r.length;c++)l[c]=r[c].inEdges.length,0===l[c]&&u.push(r[c]);for(var h=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=null!=g.depth&&g.depth>=0;y&&g.depth>h&&(h=g.depth),d.setLayout({depth:y?g.depth:v},!0),d.setLayout("vertical"===i?{dy:t}:{dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var _=d.outEdges[m];s[pe(e,_)]=0;var x=_.node2;0==--l[pe(r,x)]&&pe(f,x)<0&&f.push(x)}}++v,u=f,f=[]}for(c=0;c<s.length;c++)if(1===s[c])throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>v-1?h:v-1;
vendor: 32,245 bytes, line 1
1o&&"left"!==o&&function Oq(r,e,t,a){if("right"===e){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];pe(n,f.node1)<0&&n.push(f.node1)}}i=n,n=[],++o}A(r,function(v){hE(v)||v.setLayout({depth:Math.max(0,a-v.getLayout().skNodeHeight)},!0)})}else"justify"===e&&function Nq(r,e){A(r,function(t){!hE(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}(r,a)}(r,o,0,w),function Bq(r,e,t){A(r,function(a){var n=a.getLayout().depth*e;a.setLayout("vertical"===t?{y:n}:{x:n},!0)})}(r,"vertical"===i?(n-t)/w:(a-t)/w,i)})(r,e,t,n,i,s,l),function Vq(r,e,t,a,n,i,o){var s=function zq(r,e){var t=[],a="vertical"===e?"y":"x",n=qg(r,function(i){return i.getLayout()[a]});return Ct(n.keys),A(n.keys,function(i){t.push(n.buckets.get(i))}),t}(r,o);(function Gq(r,e,t,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(v){u+=v.getLayout().value});var f="vertical"===i?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f<o&&(o=f)}),A(r,function(s){A(s,function(l,u){var f=l.getLayout().value*o;"vertical"===i?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),A(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})})(s,e,t,a,n,o),YS(s,n,t,a,o);for(var l=1;i>0;i--)Fq(s,l*=.99,o),YS(s,n,t,a,o),Zq(s,l,o),YS(s,n,t,a,o)}(r,e,i,n,a,o,s),function Xq(r,e){var t="vertical"===e?"x":"y";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}(r,s)}(f,v,a,n,s,l,0!==ke(f,function(g){return 0===g.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})});function hE(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return null!=e.depth&&e.depth>=0}function YS(r,e,t,a,n){var i="vertical"===n?"x":"y";A(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,v=o.length,c="vertical"===n?"dx":"dy",h=0;h<v;h++)(u=f-(l=o[h]).getLayout()[i])>0&&(s=l.getLayout()[i]+u,l.setLayout("vertical"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]+l.getLayout()[c]+e;if((u=f-e-("vertical"===n?a:t))>0)for(s=l.getLayout()[i]-u,l.setLayout("vertical"===n?{x:s}:{y:s},!0),f=s,h=v-2;h>=0;--h)(u=(l=o[h]).getLayout()[i]+l.getLayout()[c]+e-f)>0&&(s=l.getLayout()[i]-u,l.setLayout("vertical"===n?{x:s}:{y:s},!0)),f=l.getLayout()[i]})}function Fq(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=fi(n.outEdges,Hq,t)/fi(n.outEdges,Op);if(isNaN(i)){var o=n.outEdges.length;i=o?fi(n.outEdges,Wq,t)/o:0}if("vertical"===t){var s=n.getLayout().x+(i-ui(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-ui(n,t))*e;n.setLayout({y:l},!0)}}})})}function Hq(r,e){return ui(r.node2,e)*r.getValue()}function Wq(r,e){return ui(r.node2,e)}function Uq(r,e){return ui(r.node1,e)*r.getValue()}function Yq(r,e){return ui(r.node1,e)}function ui(r,e){return"vertical"===e?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function Op(r){return r.getValue()}function fi(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function Zq(r,e,t){A(r,function(a){A(a,function(n){if(n.inEdges.length){var i=fi(n.inEdges,Uq,t)/fi(n.inEdges,Op);if(isNaN(i)){var o=n.inEdges.length;i=o?fi(n.inEdges,Yq,t)/o:0}if("vertical"===t){var s=n.getLayout().x+(i-ui(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-ui(n,t))*e;n.setLayout({y:l},!0)}}})})}var Kq=dt(bn,function qq(r){r.eachSeriesByType(bn,function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;A(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),A(a,function(s){var u=new zt({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}).mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);null!=f?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}),pE=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},r.prototype.getInitialData=function(e,t){var a,l,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),u=e.layout;"category"===o?(u="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):"category"===s&&(u="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u="time"===s?"vertical":"horizontal"),this._layout=u;var f=["x","y"],v="horizontal"===u?0:1,c=this._baseAxisDim=f[v],h=f[1-v],p=[n,i],d=p[v].get("type"),g=p[1-v].get("type"),y=e.data;if(y&&l){var m=[];A(y,function(x,b){var w;H(x)?(w=x.slice(),x.unshift(b)):H(x.value)?((w=G({},x)).value=w.value.slice(),x.value.unshift(b)):w=x,m.push(w)}),e.data=m}var _=this.defaultValueDimensions,S=[{name:c,type:_h(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:_h(g),dimsDef:_.slice()}];return ml(this,{coordDimensions:S,dimensionsCount:_.length+1,encodeDefaulter:Se(hC,S,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r}();function Np(r,e){for(var t=e.ends.length,a=0,n=0;n<t;n++)r.contain(e.ends[n][0],e.ends[n][1])&&a++;return a?a<t?1:0:2}var Oa="boxplot",dE=function(r){function e(){var t=null!==r&&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 N(e,r),e.type="series."+Oa,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:B.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}},animationDuration:800},e}(Ye);it(dE,pE,!0);const Jq=dE;var Qq=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=Oa,t}return N(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l="horizontal"===t.getWhiskerBoxesLayout()?1:0,u=t.get("clip",!0),f=t.coordinateSystem,v=f.getArea&&f.getArea(),c=u&&Eo(f,!1,t);i.diff(s).add(function(h){if(i.hasValue(h)){var p=i.getItemLayout(h),d=u?Np(v,p):0;if(2===d)return;var g=gE(p,i,h,l,!0);gl(1===d,g,c),i.setItemGraphicEl(h,g),o.add(g)}}).update(function(h,p){var d=s.getItemGraphicEl(p);if(i.hasValue(h)){var g=i.getItemLayout(h),y=u?Np(v,g):0;2!==y?(d?(kr(d),yE(g,d,i,h)):d=gE(g,i,h,l),gl(1===y,d,c),o.add(d),i.setItemGraphicEl(h,d)):o.remove(d)}else o.remove(d)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&o.remove(p)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type=Oa,e}(ze),$q=function(){return function r(){}}(),ej=function(r){function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return N(e,r),e.prototype.getDefaultShape=function(){return new $q},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(we);function gE(r,e,t,a,n){var i=r.ends,o=new ej({shape:{points:n?tj(i,a,r):i}});return yE(r,o,e,t,n),o}function yE(r,e,t,a,n){(0,Ha[n?"initProps":"updateProps"])(e,{shape:{points:r.ends}},t.hostModel,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");gt(e,s),Je(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function tj(r,e,t){return W(r,function(a){return(a=a.slice())[e]=t.initBaseline,a})}const rj=Qq;var aj=Ts(),nj=dt(Oa,function ij(r){var e=Vo(Oa);M0(r,e,function(t){var a=function UW(r,e){var t=A0(r,e);if(!t||!t.sers.length)return 0;var a=0;return Ph(r.model.ecModel,t.sers,function(){a++}),a}(t,e);if(a){var n=function oj(r,e){var t=[],a=[],n=[],i=Vt(r,{fromStat:{key:Vo(Oa)},min:1}).w;To(r,Vo(Oa),function(f){var v=f.get("boxWidth");H(v)||(v=[v,v]),n[f.seriesIndex]=[K(v[0],i)||0,K(v[1],i)||0]});var o=.8*i-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return To(r,Vo(Oa),function(f){var v=f.seriesIndex;a[v]=u,u+=s+l,t[v]=Be(xe(l,n[v][0]),n[v][1])}),{boxOffsetList:a,boxWidthList:t}}(t,a);To(t,e,function(i){var o=i.seriesIndex;!function sj(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o="horizontal"===r.getWhiskerBoxesLayout()?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),f=n.mapDimensionsAll(l[s]);if(!(null==u||f.length<5))for(var v=0;v<n.count();v++){var c=n.get(u,v),h=_(c,f[2],v),p=_(c,f[0],v),d=_(c,f[1],v),g=_(c,f[3],v),y=_(c,f[4],v),m=[];S(m,d,!1),S(m,g,!0),m.push(p,d,y,g),x(m,p),x(m,y),x(m,h),n.setItemLayout(v,{initBaseline:h[s],ends:m})}function _(b,w,C){var D,T=n.get(w,C),M=[];return M[o]=b,M[s]=T,isNaN(b)||isNaN(T)?D=[NaN,NaN]:(D=a.dataToPoint(M))[o]+=e,D}function S(b,w,C){var T=w.slice(),M=w.slice();T[o]+=i,M[o]-=i,C?b.push(T,M):b.push(M,T)}function x(b,w){var C=w.slice(),T=w.slice();C[o]-=i,T[o]+=i,b.push(C,T)}}(i,n.boxOffsetList[o],n.boxWidthList[o])})}})}),fj={type:"echarts:boxplot",transform:function(e){var t=e.upstream;t.sourceFormat!==Mt&&Oe("");var n=function uj(r,e){for(var t=[],a=[],n=(e=e||{}).boundIQR,i="none"===n||0===n,o=0;o<r.length;o++){var s=Ct(r[o].slice()),l=$v(s,.25),u=$v(s,.5),f=$v(s,.75),v=s[0],c=s[s.length-1],h=(n??1.5)*(f-l),p=i?v:Math.max(v,l-h),d=i?c:Math.min(c,f+h),g=e.itemNameFormatter,y=ae(g)?g({value:o}):X(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,f,d]);for(var m=0;m<s.length;m++){var _=s[m];(_<p||_>d)&&a.push([y,_])}}return{boxData:t,outliers:a}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},vi="candlestick",mE=function(r){function e(){var t=null!==r&&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 N(e,r),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series."+vi,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Ye);it(mE,pE,!0);const cj=mE;var hj=["itemStyle","borderColor"],pj=["itemStyle","borderColor0"],dj=["itemStyle","borderColorDoji"],gj=["itemStyle","color"],yj=["itemStyle","color0"];function ZS(r,e){return e.get(r>0?gj:yj)}function XS(r,e){return e.get(0===r?dj:r>0?hj:pj)}var mj={seriesType:vi,plan:lo(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r))return!r.pipelineContext.large&&{progress:function(a,n){for(var i;null!=(i=a.next());){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=ZS(s,o),l.stroke=XS(s,o)||l.fill,G(n.ensureUniqueItemVisual(i,"style"),l)}}}}};const _j=mj;var Sj=["color","borderColor"],xj=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){Jn(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(null==this._isLargeDraw||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&Eo(l,!1,t);this._data||i.removeAll();var v=_E(t);a.diff(n).add(function(c){if(a.hasValue(c)){var h=a.getItemLayout(c),p=s?Np(u,h):0;if(2===p)return;var d=KS(h,0,v,!0);Ze(d,{shape:{points:h.ends}},t,c),gl(1===p,d,f),qS(d,a,c,o),i.add(d),a.setItemGraphicEl(c,d)}}).update(function(c,h){var p=n.getItemGraphicEl(h);if(a.hasValue(c)){var d=a.getItemLayout(c),g=s?Np(u,d):0;2!==g?(p?(Pe(p,{shape:{points:d.ends}},t,c),kr(p)):p=KS(d,0,v),qS(p,a,c,o),gl(1===g,p,f),i.add(p),a.setItemGraphicEl(c,p)):i.remove(p)}else i.remove(p)}).remove(function(c){var h=n.getItemGraphicEl(c);h&&i.remove(h)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),SE(t,this.group);var a=t.get("clip",!0)?Eo(t.coordinateSystem,!1,t):null;gl(!!a,this.group,a)},e.prototype._incrementalRenderNormal=function(t,a){for(var s,n=a.getData(),i=n.getLayout("isSimpleBox"),o=_E(a);null!=(s=t.next());){var u=KS(n.getItemLayout(s),0,o);qS(u,n,s,i),u.incremental=da(a),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,a){SE(a,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),gl(!1,this.group,null),this._data=null},e.type=vi,e}(ze),bj=function(){return function r(){}}(),wj=function(r){function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return N(e,r),e.prototype.getDefaultShape=function(){return new bj},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(we);function KS(r,e,t,a){var n=r.ends;return new wj({shape:{points:a?Tj(n,t,r):n},z2:100})}function qS(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var i=n.getShallow("cursor");i&&r.attr("cursor",i),r.__simpleBox=a,gt(r,n);var o=e.getItemLayout(t).sign;A(r.states,function(l,u){var f=n.getModel(u),v=ZS(o,f),c=XS(o,f)||v,h=l.style||(l.style={});v&&(h.fill=v),c&&(h.stroke=c)});var s=n.getModel("emphasis");Je(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Tj(r,e,t){return W(r,function(a){return(a=a.slice())[e]=t.initBaseline,a})}function _E(r){return"horizontal"===r.getWhiskerBoxesLayout()?1:0}var Cj=function(){return function r(){}}(),jS=function(r){function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return N(e,r),e.prototype.getDefaultShape=function(){return new Cj},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e}(we);function SE(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new jS({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new jS({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new jS({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),JS(1,o,r),JS(-1,s,r),JS(0,l,r),a&&(o.incremental=da(r),s.incremental=da(r),l.incremental=da(r)),t&&t.push(o,s,l)}function JS(r,e,t,a){var n=XS(r,t)||ZS(r,t),i=t.getModel("itemStyle").getItemStyle(Sj);e.useStyle(i),e.style.fill=null,e.style.stroke=n;var o=t.get("cursor");o&&e.attr("cursor",o)}const Aj=xj;function Mj(r){!r||!H(r.series)||A(r.series,function(e){se(e)&&"k"===e.type&&(e.type=vi)})}var Dj=Ts(),Lj={seriesType:vi,plan:lo(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=function Ij(r){var a=Vt(r.getBaseAxis(),{fromStat:{key:Vo(vi)},min:1}).w,n=K(Q(r.get("barMaxWidth"),a),a),i=K(Q(r.get("barMinWidth"),1),a),o=r.get("barWidth");return null!=o?K(o,a):xe(Be(a/2,n),i)}(r),n="horizontal"===r.getWhiskerBoxesLayout()?0:1,i=1-n,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=W(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],v=l[2],c=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),!(s<0||l.length<4))return{progress:r.pipelineContext.large?function p(d,g){for(var _,b,y=Pa(4*d.count),m=0,S=[],x=[],w=g.getStore(),C=!!r.get(["itemStyle","borderColorDoji"]);null!=(b=d.next());){var T=w.get(s,b),M=w.get(u,b),D=w.get(f,b),I=w.get(v,b),L=w.get(c,b);isNaN(T)||isNaN(I)||isNaN(L)?(y[m++]=NaN,m+=3):(y[m++]=xE(w,b,M,D,f,C),S[n]=T,S[i]=I,_=e.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=e.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN)}g.setLayout("largePoints",y)}:function h(d,g){for(var y,m=g.getStore();null!=(y=d.next());){var _=m.get(s,y),S=m.get(u,y),x=m.get(f,y),b=m.get(v,y),w=m.get(c,y),C=Be(S,x),T=xe(S,x),M=k(C,_),D=k(T,_),I=k(b,_),L=k(w,_),P=[];O(P,D,0),O(P,M,1),P.push(z(L),z(D),z(I),z(M));var R=!!g.getItemModel(y).get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:xE(m,y,S,x,f,R),initBaseline:S>x?D[i]:M[i],ends:P,brushRect:(F=b,U=w,Y=_,Z=void 0,$=void 0,Z=k(F,Y),$=k(U,Y),Z[n]-=a/2,$[n]-=a/2,{x:Z[0],y:Z[1],width:i?a:$[0]-Z[0],height:i?$[1]-Z[1]:a})})}var F,U,Y,Z,$;function k(F,U){var Y=[];return Y[n]=U,Y[i]=F,isNaN(U)||isNaN(F)?[NaN,NaN]:e.dataToPoint(Y)}function O(F,U,Y){var Z=U.slice(),$=U.slice();Z[n]=qc(Z[n]+a/2,1,!1),$[n]=qc($[n]-a/2,1,!0),Y?F.push(Z,$):F.push($,Z)}function z(F){return F[n]=qc(F[n],1),F}}}}};function xE(r,e,t,a,n,i){return t>a?-1:t<a?1:i?0:e>0?r.get(n,e-1)<=a?1:-1:1}function bE(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?t:null,fill:"fill"===e.brushType?t:null}})})}var Ej=function(r){function e(t,a){var n=r.call(this)||this,i=new mf(t,a),o=new oe;return n.add(i),n.add(o),n.updateData(t,a),n}return N(e,r),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=lt(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}bE(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==t[s])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}bE(n,t)},e.prototype.highlight=function(){ln(this)},e.prototype.downplay=function(){un(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=js(t.getItemVisual(a,"symbolSize")),f=t.getItemVisual(a,"style"),v=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var h=mo(t.getItemVisual(a,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var p=t.getItemVisual(a,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=1e3*s.get(["rippleEffect","period"]),d.effectOffset=a/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=v,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){"emphasis"===g?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===g&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,Je(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(oe);const kj=Ej;var Oj=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(){this._symbolDraw=new _f(kj)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,wE(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=wf("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(wE(t))},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=eb(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(ze);function wE(r){return{clipShape:wI(r)}}const Nj=Oj;var Bj=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return N(e,r),e.prototype.getInitialData=function(t,a){return Ca(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Ye);const Vj=Bj;var Gj=function(r){function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return N(e,r),e.prototype.createLine=function(t,a,n){return new SS(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var i=t.getItemModel(a).getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");H(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),(f=lt(s,-.5,-.5,1,1,u)).z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=1e3*a.get("period"),l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),v=Ft(a.get("delay"),function(h){return h/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var c=void 0;c=ae(v)?v(n):v,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?2*a:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Za(t.__p1,t.__cp1)+Za(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,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Tt,f=sg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=t.__t<=1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),c=t.__t<=1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(c,v)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*Za(l,s),1===o&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.scaleY=1===t.__lastT?2*Za(a,s):this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e}(oe);const TE=Gj;var Fj=function(r){function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return N(e,r),e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new Bt({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel;Pe(this.childAt(0),{shape:{points:t.getItemLayout(a)}},i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,f=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),f=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,Je(this,l,u,f)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.stopAnimation(),n.setShape("points",t.getItemLayout(a))},e}(oe);const CE=Fj;var Hj=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return N(e,r),e.prototype.createLine=function(t,a,n){return new CE(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++)i+=Za(a[o-1],a[o]),n.push(i);if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<=1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var l,s=this._lastFrame;if(a<this._lastFramePercent){for(l=Math.min(s+1,o-1);l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),v=n[l],c=n[l+1];t.x=v[0]*(1-f)+f*c[0],t.y=v[1]*(1-f)+f*c[1],t.rotation=-Math.atan2(t.__t<=1?c[1]-v[1]:v[1]-c[1],t.__t<=1?c[0]-v[0]:v[0]-c[0])-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(TE);const Wj=Hj;var Uj=function(){return function r(){this.polyline=!1,this.curveness=0,this.segs=[]}}(),Yj=function(r){function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return N(e,r),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:B.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Uj},e.prototype.buildPath=function(t,a){var o,n=a.segs,i=a.curveness;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],f=n[o++],v=n[o++],c=n[o++];t.moveTo(u,f),i>0?t.quadraticCurveTo((u+v)/2-(f-c)*i,(f+c)/2-(v-u)*i,v,c):t.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var v=i[u++],c=i[u++],h=1;h<f;h++)if(Un(v,c,p=i[u++],d=i[u++],s,t,a))return l;l++}else for(l=0,u=0;u<i.length;){v=i[u++],c=i[u++];var p=i[u++],d=i[u++];if(o>0){if(zw(v,c,(v+p)/2-(c-d)*o,(c+d)/2-(p-v)*o,p,d,s,t,a))return l}else if(Un(v,c,p,d,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a);return this.getBoundingRect().contain(t=n[0],a=n[1])?(this.hoverDataIdx=this.findDataIndex(t,a))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var f=n[u++],v=n[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(v,o),l=Math.max(v,l)}t=this._rect=new fe(i,o,s,l)}return t},e}(we),Zj=function(){function r(){this.group=new oe}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("linesPoints"),o=n&&n.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=a,u.setShape({segs:i}),this._setCommon(u,t),u.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new Yj({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=ue(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const Xj=Zj;var Kj={seriesType:"lines",plan:lo(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f<n.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var v=0,c=[];for(f=n.start;f<n.end;f++){var h=r.getLineCoords(f,o);t&&(s[v++]=h);for(var p=0;p<h;p++)c=e.dataToPoint(o[p],!1,c),s[v++]=c[0],s[v++]=c[1]}i.setLayout("linesPoints",s)}else for(f=n.start;f<n.end;f++){var d=i.getItemModel(f),g=(h=r.getLineCoords(f,o),[]);if(t)for(var y=0;y<h;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}};const AE=Kj;var qj=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),f=!!Bm(n);f&&u.painter.getLayer(s).clear(!0),null!=this._lastZlevel&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(i);var v=t.get("clip",!0)&&Eo(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData(),da(a)),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=this._lineDraw;
1if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=AE.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),o.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),l=a.pipelineContext.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new Xj:new bS(o?i?Wj:CE:i?TE:SS),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=Bm(t);a&&null!=this._lastZlevel&&a.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(ze);const jj=qj;var Jj=typeof Uint32Array>"u"?Array:Uint32Array,Qj=typeof Float64Array>"u"?Array:Float64Array;function ME(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=W(e,function(t){var n={coords:[t[0].coord,t[1].coord]};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),pv([n,t[0],t[1]])}))}var $j=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return N(e,r),e.prototype.init=function(t){t.data=t.data||[],ME(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(ME(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=ls(this._flatCoords,a.flatCoords),this._flatCoordsOffset=ls(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t);return a.option instanceof Array?a.option:a.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+2*o],a[o][1]=this._flatCoords[n+2*o+1];return i}var s=this._getCoordsFromItemModel(t);for(o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Ae(t[0])){for(var n=t.length,i=new Jj(n),o=new Qj(n),s=0,l=0,u=0,f=0;f<n;){u++;var v=t[f++];i[l++]=s+a,i[l++]=v;for(var c=0;c<v;c++){var h=t[f++],p=t[f++];o[s++]=h,o[s++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var i=new Xt(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;return null!=f?f instanceof Array?f[u]:f:void 0}),i},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),v=[];null!=u&&v.push(u),null!=f&&v.push(f),l=v.join(" > ")}return vt("nameValue",{name:l,value:o,noValue:null==o||isNaN(o)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){return this.option.progressive??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){return this.option.progressiveThreshold??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",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}(Ye);const eJ=$j;function Bp(r){return r instanceof Array||(r=[r,r]),r}var tJ={seriesType:"lines",reset:function(r){var e=Bp(r.get("symbol")),t=Bp(r.get("symbolSize")),a=r.getData();return a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]),{dataEach:a.hasItemOption?function n(i,o){var s=i.getItemModel(o),l=Bp(s.get
vendor: 8,644 bytes, line 1
1Shallow("symbol",!0)),u=Bp(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}:null}}};const rJ=tJ;var iJ=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=St.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),h=e.length;v.width=t,v.height=a;for(var p=0;p<h;++p){var d=e[p],g=d[0],y=d[1],_=n(d[2]);c.globalAlpha=_,c.drawImage(s,g-f,y-f)}if(!v.width||!v.height)return v;for(var S=c.getImageData(0,0,v.width,v.height),x=S.data,b=0,w=x.length,C=this.minOpacity,M=this.maxOpacity-C;b<w;){_=x[b+3]/256;var D=4*Math.floor(255*_);if(_>0){var I=o(_)?l:u;_>0&&(_=_*M+C),x[b++]=I[D],x[b++]=I[D+1],x[b++]=I[D+2],x[b++]=I[D+3]*_*256}else b+=4}return c.putImageData(S,0,0),v},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=St.createCanvas()),t=this.pointSize+this.blurSize,a=2*t;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=B.color.neutral99,n.beginPath(),n.arc(-t,t,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const oJ=iJ;var uJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type||"matrix"===o.type?this._renderOnGridLike(t,n,0,t.getData().count()):TI(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(TI(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Jn(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,a,n,i,o){var f,v,c,h,s=t.coordinateSystem,l=ko(s,"cartesian2d"),u=ko(s,"matrix");if(l){var p=s.getAxis("x"),d=s.getAxis("y");f=Vt(p).w+.5,v=Vt(d).w+.5,c=p.scale.getExtent(),h=d.scale.getExtent()}for(var g=this.group,y=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),b=yt(t),w=t.getModel("emphasis"),C=w.get("focus"),T=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],I=n;I<i;I++){var L=void 0,P=y.getItemVisual(I,"style");if(l){var E=y.get(D[0],I),R=y.get(D[1],I);if(isNaN(y.get(D[2],I))||isNaN(E)||isNaN(R)||E<c[0]||E>c[1]||R<h[0]||R>h[1])continue;var k=s.dataToPoint([E,R]);L=new be({shape:{x:k[0]-f/2,y:k[1]-v/2,width:f,height:v},style:P})}else if(u){if(Pt((O=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect).x))continue;L=new be({z2:1,shape:O,style:P})}else{if(isNaN(y.get(D[1],I)))continue;var O,V=s.dataToLayout([y.get(D[0],I)]);if(Pt((O=V.contentRect||V.rect).x)||Pt(O.y))continue;L=new be({z2:1,shape:O,style:P})}if(y.hasItemOption){var z=y.getItemModel(I),F=z.getModel("emphasis");m=F.getModel("itemStyle").getItemStyle(),_=z.getModel(["blur","itemStyle"]).getItemStyle(),S=z.getModel(["select","itemStyle"]).getItemStyle(),x=z.get(["itemStyle","borderRadius"]),C=F.get("focus"),T=F.get("blurScope"),M=F.get("disabled"),b=yt(z)}L.shape.r=x;var U=t.getRawValue(I),Y="-";U&&null!=U[2]&&(Y=U[2]+""),bt(L,b,{labelFetcher:t,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:Y}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Je(L,C,T,M),L.incremental=da(t,o),o&&(L.states.emphasis.hoverLayer=Ws),g.add(L),y.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new oJ;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),v=t.getRoamTransform();f.applyTransform(v);var c=Math.max(f.x,0),h=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-c,y=d-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,C,T){var M=t.dataToPoint([w,C]);return M[0]-=c,M[1]-=h,M.push(T),M}),S=n.getExtent(),x="visualMap.continuous"===n.type?function lJ(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}(S,n.option.range):function sJ(r,e,t){var a=r[1]-r[0],n=(e=W(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}})).length,i=0;return function(o){var s;for(s=i;s<n;s++)if((l=e[s].interval)[0]<=o&&o<=l[1]){i=s;break}if(s===n)for(s=i-1;s>=0;s--){var l;if((l=e[s].interval)[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var b=new At({style:{width:g,height:y,x:c,y:h,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(ze);const fJ=uJ;var vJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.getInitialData=function(t,a){return Ca(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Ns.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:B.color.primary}}},e}(Ye);const cJ=vJ;var pJ=["itemStyle","borderWidth"],DE=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],QS=new cn,dJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=Af,t}return N(e,r),e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,f=l.getBaseAxis().isHorizontal(),v=l.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:DE[+f],categoryDim:DE[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=OE(o,p),g=LE(o,p,d,c),y=NE(o,c,g);o.setItemGraphicEl(p,y),i.add(y),zE(y,c,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(o.hasValue(p)){var y=OE(o,p),m=LE(o,p,y,c),_=VE(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(p,null),g=null),g?function bJ(r,e,t){Pe(r.__pictorialBundle,{x:t.bundlePosition[0],y:t.bundlePosition[1]},t.animationModel,t.dataIndex),t.symbolRepeat?PE(r,e,t,!0):RE(r,0,t,!0),EE(r,t,!0),kE(r,e,t,!0)}(g,c,m):g=NE(o,c,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,i.add(g),zE(g,c,m)}else i.remove(g)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&BE(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var h=t.get("clip",!0)?Eo(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){BE(i,ue(o).dataIndex,t,o)}):n.removeAll()},e.type=Af,e}(ze);function LE(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",u=(t.get("symbolRotate")||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),c={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emp
1hasis","scale"]),z2:t.getShallow("z",!0)||0};(function gJ(r,e,t,a,n){var f,i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0);if(H(o)){var v=[$S(s,o[0])-l,$S(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else f=null!=o?$S(s,o)-l:e?a.coordSysExtent[i.index][u]-l:t[i.wh];n.boundingLength=f,e&&(n.repeatCutLength=t[i.wh]);var c="x"===i.xy,h=s.inverse;n.pxSign=c&&!h||!c&&h?f>=0?1:-1:f>0?1:-1})(t,i,n,a,c),function yJ(r,e,t,a,n,i,o,s,l,u){var p,f=l.valueDim,v=l.categoryDim,c=Math.abs(t[v.wh]),h=r.getItemVisual(e,"symbolSize");(p=H(h)?h.slice():null==h?["100%","100%"]:[h,h])[v.index]=K(p[v.index],c),p[f.index]=K(p[f.index],a?c:Math.abs(i)),u.symbolSize=p,(u.symbolScale=[p[0]/s,p[1]/s])[f.index]*=(l.isHorizontal?-1:1)*o}(r,e,n,i,0,c.boundingLength,c.pxSign,f,a,c),function mJ(r,e,t,a,n){var i=r.get(pJ)||0;i&&(QS.attr({scaleX:e[0],scaleY:e[1],rotation:t}),QS.updateTransform(),i/=QS.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}(t,c.symbolScale,u,a,c);var h=c.symbolSize,p=mo(t.get("symbolOffset"),h);return function _J(r,e,t,a,n,i,o,s,l,u,f,v){var c=f.categoryDim,h=f.valueDim,p=v.pxSign,d=Math.max(e[h.index]+s,0),g=d;if(a){var y=Math.abs(l),m=Ft(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=K(m,e[h.index]),x=Math.max(d+2*S,0),b=_?0:2*S,w=Ug(a),C=w?a:GE((y+b)/x);x=d+2*(S=(y-C*d)/2/(_?C:Math.max(C-1,1))),b=_?0:2*S,!w&&"fixed"!==a&&(C=u?GE((Math.abs(u)+b)/x):0),g=C*x-b,v.repeatTimes=C,v.symbolMargin=S}var M=p*(g/2),D=v.pathPosition=[];D[c.index]=t[c.wh]/2,D[h.index]="start"===o?M:"end"===o?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=v.bundlePosition=[];I[c.index]=t[c.xy],I[h.index]=t[h.xy];var L=v.barRectShape=G({},t);L[h.wh]=p*Math.max(Math.abs(t[h.wh]),Math.abs(D[h.index]+M)),L[c.wh]=t[c.wh];var P=v.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}(t,h,n,i,0,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,a,c),c}function $S(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function IE(r){var e=r.symbolPatternSize,t=lt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),"image"!==t.type&&t.setStyle({strokeNoScale:!0}),t}function PE(r,e,t,a){var n=r.__pictorialBundle,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,v=t.symbolSize[e.valueDim.index]+t.valueLineWidth+2*t.symbolMargin;for(e1(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?Ll(d,null,p(f),t,a):Ll(d,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(d)}),f++});f<u;f++){var c=IE(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,n.add(c);var h=p(f);Ll(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,a)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return("start"===t.symbolRepeatDirection?y>
vendor: 4,122 bytes, line 1
10:y<0)&&(m=u-1-d),g[l.index]=v*(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 RE(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?Ll(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=IE(t),n.add(i),Ll(i,{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 EE(r,e,t){var a=G({},e.barRectShape),n=r.__pictorialBarRect;n?Ll(n,null,{shape:a},e,t):((n=r.__pictorialBarRect=new be({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,r.add(n))}function kE(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=G({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Pe(n,{shape:i},s,l);else{i[o.wh]=0,n=new be({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],Ha[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function OE(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=SJ,t.isAnimationEnabled=xJ,t}function SJ(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function xJ(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function NE(r,e,t,a){var n=new oe,i=new oe;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?PE(n,e,t):RE(n,0,t),EE(n,t,a),kE(n,e,t,a),n.__pictorialShapeStr=VE(r,t),n.__pictorialSymbolMeta=t,n}function BE(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];e1(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(i,function(o){Xn(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function VE(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function e1(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function Ll(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&Ha[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function zE(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),v=i.get("blurScope"),c=i.get("scale");e1(r,function(d){if(d instanceof At){var g=d.style;d.useStyle(G({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,c&&(y.scaleX=1.1*d.scaleX,y.scaleY=1.1*d.scaleY),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,bt(p,yt(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:dl(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),Je(r,f,v,i.get("disabled"))}function GE(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const wJ=dJ;var TJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return N(e,r),e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series."+Af,e.dependencies=["grid"],e.defaultOption=Kn(Qh.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:B.color.primary}}}),e}(Qh);const CJ=TJ;var Il="themeRiver",MJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}
1return N(e,r),e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new _l(q(this.getData,this),q(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=qg(t,function(c){return n.hasOwnProperty(c[0]+"")||(n[c[0]+""]=-1),c[2]}),o=[];i.buckets.each(function(c,h){o.push({name:h,dataList:c})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f)n[v=o[l].dataList[f][0]+""]=l;for(var v in n)n.hasOwnProperty(v)&&n[v]!==l&&(n[v]=l,t[a]=[v,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var i=this.getReferringComponents("singleAxis",at).models[0].get("type"),o=ke(t.data,function(p){return void 0!==p[2]}),s=this.fixData(o||[]),l=[],u=this.nameMap=j(),f=0,v=0;v<s.length;++v)l.push(s[v][2]),u.get(s[v][2])||(u.set(s[v][2],f),f++);var c=al(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:_h(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Xt(c,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),s=qg(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,c){return t.get(o,v)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,n){H(t)||(t=t?[t]:[]);for(var u,i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,f=0;f<l;++f){for(var v=Number.MAX_VALUE,c=-1,h=o[f].indices.length,p=0;p<h;++p){var d=i.get(t[0],o[f].indices[p]),g=Math.abs(d-a);g<=v&&(u=d,v=g,c=o[f].indices[p])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData();return vt("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},e.type="series."+Il,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Ye);const DJ=MJ;var LJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=Il,t._layers=[],t}return N(e,r),e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;function c(g){return g.name}s.x=0,s.y=f.y+v[0];var h=new dn(this._layersSeries||[],l,c,c),p=[];function d(g,y,m){var _=o._layers;if("remove"!==g){for(var b,S=[],x=[],w=l[y].indices,C=0;C<w.length;C++){var T=i.getItemLayout(w[C]),M=T.x,D=T.y0,I=T.y;S.push(M,D),x.push(M,D+I),b=i.getItemVisual(w[C],"style")}var L,P=i.getItemLayout(w[0]),R=t.getModel("label").get("margin"),k=t.getModel("emphasis");if("add"===g){var O=p[y]=new oe;L=new SI({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(L),s.add(O),t.isAnimationEnabled()&&L.setClipPath(function IJ(r,e,t){var a=new be({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ze(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}(L.getBoundingRect(),t,function(){L.removeClipPath()}))}else L=(O=_[m]).childAt(0),s.add(O),p[y]=O,Pe(L,{shape:{points:S,stackedOnPoints:x}},t),kr(L);bt(L,yt(t),{labelDataIndex:w[C-1],defaultText:i.getName(w[C-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var V=L.getTextContent();V&&(V.x=P.x-R,V.y=P.y0+P.y/2),L.useStyle(b),i.setItemGraphicEl(y,L),gt(L,t),Je(L,k.get("focus"),k.get("blurScope"),k.get("disabled"))}else s.remove(_[y])}h.add(q(d,this,"add")).update(q(d,this,"update")).remove(q(d,this,"remove")).execute(),this._layersSeries=l,this._layers=p},e.type=Il,e}(ze);const PJ=LJ;var RJ=dt(Il,function EJ(r,e){r.eachSeriesByType(Il,function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();i.boundaryGap=s,"horizontal"===l.orient?(s[0]=K(s[0],o.height),s[1]=K(s[1],o.height),FE(a,t,o.height-s[0]-s[1])):(s[0]=K(s[0],o.width),s[1]=K(s[1],o.width),FE(a,t,o.width-s[0]-s[1])),a.setLayout("layoutInfo",i)})});function FE(r,e,t){if(r.count())for(var h,a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=W(n,function(g){return W(g.indices,function(y){var m=a.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=function kJ(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var f=0;f<t;++f){var v=a[f]+n[f];v>i&&(i=v)}return{y0:n,max:i}}(s),u=l.y0,f=t/l.max,v=n.length,c=n[0].indices.length,p=0;p<c;++p){r.setItemLayout(n[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:h=u[p]*f,y:s[0][p][1]*f});for(var d=1;d<v;++d)r.setItemLayout(n[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:h+=s[d-1][p][1]*f,y:s[d][p][1]*f})}}var VJ=function(r){function e(t,a,n,i){var o=r.call(this)||this;o.z2=2,o.textConfig={inside:!0},ue(o).seriesIndex=a.seriesIndex;var s=new Me({z2:4,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return N(e,r),e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ue(s).dataIndex=a.dataIndex;
1var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),v=G({},f);v.label=null;var c=a.getVisual("style");c.lineJoin="bevel";var h=a.getVisual("decal");h&&(c.decal=$s(h,o));var p=Ea(l.getModel("itemStyle"),v,!0);G(v,p),A(Qt,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Ea(S,v);x&&(_.shape=x)}),t?(s.setShape(v),s.shape.r=f.r0,Ze(s,{shape:{r:f.r}},n,a.dataIndex)):(Pe(s,{shape:v},n),kr(s)),s.useStyle(c),this._updateLabel(n);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus");Je(this,"relative"===g?ls(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===g?a.getAncestorsIndices():"descendant"===g?a.getDescendantIndices():g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),v=this,c=v.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(null!=p&&Math.abs(s)<p);function g(y,m){return y.get(m)??i.get(m)}c.ignore=!d,A(Su,function(y){var m=n.getModel("normal"===y?"label":[y,"label"]),_="normal"===y,S=_?c:c.ensureState(y),x=t.getFormattedLabel(h,y);_&&(x=x||a.node.name),S.style=He(m,{},null,"normal"!==y,!0),x&&(S.style.text=x);var b=m.get("show");null!=b&&!_&&(S.ignore=!b);var w=g(m,"position"),C=_?v:v.states[y],T=C.style.fill;C.textConfig={outsideFill:"inherit"===m.get("color")?T:null,inside:"outside"!==w};var M,D=g(m,"distance")||0,I=g(m,"align"),L=g(m,"rotate"),P=.5*Math.PI,E=1.5*Math.PI,R=dr("tangential"===L?Math.PI/2-l:l),k=R>P&&!Ei(R-P)&&R<E;"outside"===w?(M=o.r+D,I=k?"right":"left"):I&&"center"!==I?"left"===I?(M=o.r0+D,I=k?"right":"left"):"right"===I&&(M=o.r-D,I=k?"left":"right"):(M=0===o.r0&&Ei(s-2*Math.PI)?0:(o.r+o.r0)/2,I="center"),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var O=0;"radial"===L?O=dr(-l)+(k?Math.PI:0):"tangential"===L?O=dr(Math.PI/2-l)+(k?Math.PI:0):Ae(L)&&(O=L*Math.PI/180),S.rotation=dr(O)}),c.dirtyStyle()},e}(Yt);const HE=VJ;var $o="sunburst",zJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return N(e,r),e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};WE(n);var i=this._levelModels=W(t.levels||[],function(l){return new De(l,this,a)},this),o=J_.createTree(n,this,function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),c=i[v.depth];return c&&(u.parentModel=c),u})});return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=wp(n,this),a},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},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(){Q2(this)},e.type="series."+$o,e.defaultOption={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:[],sort:"desc"},e}(Ye);function WE(r){var e=0;A(r.children,function(a){WE(a);var n=a.value;H(n)&&(n=n[0]),e+=n});var t=r.value;H(t)&&(t=t[0]),(null==t||isNaN(t))&&(t=e),t<0&&(t=0),H(r.value)?r.value[0]=t:r.value=t}const GJ=zJ;var r1="sunburstRootToNode",UE="sunburstHighlight",WJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=$o,t}return N(e,r),e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,v=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(m){c.push(m)}),function p(m,_){function S(b){return b.getId()}function x(b,w){!function d(m,_){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&_!==l)if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}(_);else if(m){var S=new HE(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}(null==b?null:m[b],null==w?null:_[w])}0===m.length&&0===_.length||new dn(_,m,S,S).add(x).update(x).remove(Se(x,null)).execute()}(c,this._oldChildren||[]),function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new HE(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}(l,u),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;
1this.group.off("click"),this.group.on("click",function(a){var n=!1;t.seriesModel.getViewRoot().eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if("rootToNode"===s)t._rootToNode(o);else if("link"===s){var l=o.getModel(),u=l.get("link");u&&Mc(u,l.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:r1,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var i=a.getData().getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type=$o,e}(ze);const UJ=WJ;var YJ=dt($o,function ZJ(r){var e={};r.eachSeriesByType($o,function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var l=o.getModel().getModel("itemStyle").getItemStyle();l.fill||(l.fill=function t(a,n,i){if(0===a.depth)return B.color.neutral50;for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&X(s)&&(s=Iv(s,(a.depth-1)/(i-1)*.5)),s}(o,a,i.root.height)),G(n.ensureUniqueItemVisual(o.dataIndex,"style"),l)})})}),YE=Math.PI/180,XJ=dt($o,function KJ(r,e){r.eachSeriesByType($o,function(t){var a=t.get("center"),n=t.get("radius");H(n)||(n=[0,n]),H(a)||(a=[a,a]);var i=e.getWidth(),o=e.getHeight(),s=Math.min(i,o),l=K(a[0],i),u=K(a[1],o),f=K(n[0],s/2),v=K(n[1],s/2),c=-t.get("startAngle")*YE,h=t.get("minA
1ngle")*YE,p=t.getData().tree.root,d=t.getViewRoot(),g=d.depth,y=t.get("sort");null!=y&&ZE(d,y);var m=0;A(d.children,function(E){!isNaN(E.getValue())&&m++});var _=d.getValue(),S=Math.PI/(_||m)*2,x=d.depth>0,w=(v-f)/(d.height-(x?-1:1)||1),C=t.get("clockwise"),T=t.get("stillShowZeroSum"),M=C?1:-1,D=function(E,R){if(E){var k=R;if(E!==p){var O=E.getValue(),V=0===_&&T?S:O*S;V<h&&(V=h),k=R+M*V;var z=E.depth-g-(x?-1:1),F=f+w*z,U=f+w*(z+1),Y=t.getLevelModel(E);if(Y){var Z=Y.get("r0",!0),$=Y.get("r",!0),ye=Y.get("radius",!0);null!=ye&&(Z=ye[0],$=ye[1]),null!=Z&&(F=K(Z,s/2)),null!=$&&(U=K($,s/2))}E.setLayout({angle:V,startAngle:R,endAngle:k,clockwise:C,cx:l,cy:u,r0:F,r:U})}if(E.children&&E.children.length){var Ne=0;A(E.children,function(ve){Ne+=D(ve,R+Ne)})}return k-R}};if(x){var P=2*Math.PI;p.setLayout({angle:P,startAngle:c,endAngle:c+P,clockwise:C,cx:l,cy:u,r0:f,r:f+w})}D(d,c)})});function ZE(r,e){var t=r.children||[];r.children=function qJ(r,e){if(ae(e)){var t=W(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),W(t,function(n){return r[n.index]})}var a="asc"===e;return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return 0===o?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}(t,e),t.length&&A(r.children,function(a){ZE(a,e)})}var XE={color:"fill",borderColor:"stroke"},JJ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},wn=ge(),QJ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,a){return Ca(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=wn(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ye);const $J=QJ;function eQ(r,e){return e=e||[0,0],W(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return"category"===n.type?Vt(n).w:Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function rQ(r,e){return e=e||[0,0],W([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function nQ(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return"category"===t.type?Vt(t).w:Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function oQ(r,e){return e=e||[0,0],W(["Radius","Angle"],function(t,a){var i=this["get"+t+"Axis"](),o=e[a],s=r[a]/2,l="category"===i.type?Vt(i).w:Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return"Angle"===t&&(l=l*Math.PI/180),l},this)}function KE(r,e,t,a){return r&&(r.legacy||!1!==r.legacy&&!t&&!a&&"tspan"!==e&&("text"===e||J(r,"text")))}function qE(r,e,t){var n,i,o,a=r;if("text"===e)o=a;else{o={},J(a,"text")&&(o.text=a.text),J(a,"rich")&&(o.rich=a.rich),J(a,"textFill")&&(o.fill=a.textFill),J(a,"textStroke")&&(o.stroke=a.textStroke),J(a,"fontFamily")&&(o.fontFamily=a.fontFamily),J(a,"fontSize")&&(o.fontSize=a.fontSize),J(a,"fontStyle")&&(o.fontStyle=a.fontStyle),J(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=J(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),J(a,"textPosition")&&(n.position=a.textPosition),J(a,"textOffset")&&(n.offset=a.textOffset),J(a,"textRotation")&&(n.rotation=a.textRotation),J(a,"textDistance")&&(n.distance=a.textDistance)}return jE(o,r),A(o.rich,function(l){jE(l,l)}),{textConfig:n,textContent:i}}function jE(r,e){e&&(e.font=e.textFont||e.font,J(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),J(e,"textAlign")&&(r.align=e.textAlign),J(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),J(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),J(e,"textWidth")&&(r.width=e.textWidth),J(e,"textHeight")&&(r.height=e.textHeight),J(e,"textBackgroun
1dColor")&&(r.backgroundColor=e.textBackgroundColor),J(e,"textPadding")&&(r.padding=e.textPadding),J(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),J(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),J(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),J(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),J(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),J(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),J(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function JE(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",null!=t.offset&&(a.textOffset=t.offset),null!=t.rotation&&(a.textRotation=t.rotation),null!=t.distance&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||B.color.neutral99;QE(a,e);var o=null==a.textFill;return n?o&&(a.textFill=t.insideFill||B.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),null==a.textStrokeWidth&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||B.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){QE(s,s)}),a}function QE(r,e){e&&(J(e,"fill")&&(r.textFill=e.fill),J(e,"stroke")&&(r.textStroke=e.fill),J(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),J(e,"font")&&(r.font=e.font),J(e,"fontStyle")&&(r.fontStyle=e.fontStyle),J(e,"fontWeight")&&(r.fontWeight=e.fontWeight),J(e,"fontSize")&&(r.fontSize=e.fontSize),J(e,"fontFamily")&&(r.fontFamily=e.fontFamily),J(e,"align")&&(r.textAlign=e.align),J(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),J(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),J(e,"width")&&(r.textWidth=e.width),J(e,"height")&&(r.textHeight=e.height),J(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),J(e,"padding")&&(r.textPadding=e.padding),J(e,"borderColor")&&(r.textBorderColor=e.borderColor),J(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),J(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),J(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),J(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),J(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),J(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),J(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),J(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),J(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),J(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var $E={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ek=Te($E),Vp=(Tr(tn,function(r,e){return r[e]=1,r},{}),tn.join(", "),["","style","shape","extra"]),Pl=ge();function a1(r,e,t,a,n){var i=r+"Animation",o=Ds(r,a,n)||{},s=Pl(e).userDuring;return o.duration>0&&(o.during=s?q(pQ,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),G(o,t[i]),o}function zp(r,e,t,a){var n=(a=a||{}).dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Pl(r),u=e.style;l.userDuring=e.during;var f={},v={};if(function gQ(r,e,t){for(var a=0;a<ek.length;a++){var n=ek[a],i=$E[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(a=0;a<tn.length;a++){var s=tn[a];null!=e[s]&&(t[s]=e[s])}}(0,e,v),"compound"===r.type)for(var c=r.shape.paths,h=e.shape.paths,p=0;p<h.length;p++)n1("shape",h[p],c[p]);else n1("shape",e,v),n1("extra",e,v);if(!i&&s&&(function dQ(r,e,t){for(var a=e.transition,n=es(a)?tn:Fe(a||[]),i=0;i<n.length;i++){var o=n[i];"style"!==o&&"shape"!==o&&"extra"!==o&&(t[o]=r[o])}}(r,e,f),rk("shape",r,e,f),rk("extra",r,e,f),function yQ(r,e,t,a){if(t){var i,n=r.style;if(n){var o=t.transition,s=e.transition;if(o&&!es(o)){var l=Fe(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++)i[f=l[u]]=n[f]}else if(r.getAnimationStyleProps&&(es(s)||es(o)||pe(s,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=a.style={});var p=Te(t);for(u=0;u<p.length;u++){var f;h[f=p[u]]&&(i[f]=n[f])}}}}}}(r,e,u,f)),v.style=u,function fQ(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];"style"===o.targetName&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}(r,v,o),function cQ(r,e){J(e,"silent")&&(r.silent=e.silent),J(e,"
1ignore")&&(r.ignore=e.ignore),r instanceof Rr&&J(e,"invisible")&&(r.invisible=e.invisible),r instanceof we&&J(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}(r,e),s)if(i){var g={};A(Vp,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),G(m?g[m]:g,_.enterFrom))});var y=a1("enter",r,e,t,n);y.duration>0&&r.animateFrom(g,y)}else!function vQ(r,e,t,a,n){if(n){var i=a1("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}(r,e,n||0,t,f);tk(r,e),u?r.dirty():r.markRedraw()}function tk(r,e){for(var t=Pl(r).leaveToProps,a=0;a<Vp.length;a++){var n=Vp[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Pl(r).leaveToProps={}),n&&(t[n]=t[n]||{}),G(n?t[n]:t,i.leaveTo))}}function Gp(r,e,t,a){if(r){var n=r.parent,i=Pl(r).leaveToProps;if(i){var o=a1("update",r,e,t,0);o.done=function(){n&&n.remove(r),a&&a()},r.animateTo(i,o)}else n&&n.remove(r),a&&a()}}function es(r){return"all"===r}var Na={},hQ={setTransform:function(r,e){return Na.el[r]=e,this},getTransform:function(r){return Na.el[r]},setShape:function(r,e){var t=Na.el;return(t.shape||(t.shape={}))[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=Na.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=Na.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=Na.el.style;if(e)return e[r]},setExtra:function(r,e){return(Na.el.extra||(Na.el.extra={}))[r]=e,this},getExtra:function(r){var e=Na.el.extra;if(e)return e[r]}};function pQ(){var r=this,e=r.el;if(e){var t=Pl(e).userDuring,a=r.userDuring;if(t!==a)return void(r.el=r.userDuring=null);Na.el=e,a(hQ)}}function rk(r,e,t,a){var n=t[r];if(n){var o,i=e[r];if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),es(l))G(o,i);else for(var u=Fe(l),f=0;f<u.length;f++)o[v=u[f]]=c=i[v];else if(es(s)||pe(s,r)>=0){!o&&(o=a[r]={});var h=Te(i);for(f=0;f<h.length;f++){var v,c;mQ(n[v=h[f]],c=i[v])&&(o[v]=c)}}}}}function n1(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Te(a),o=0;o<i.length;o++){var s=i[o];n[s]=su(a[s])}}function mQ(r,e){return It(r)?r!==e:null!=r&&isFinite(r)}var ak=ge(),_Q=["percent","easing","shape","style","extra"];function nk(r){r.stopAnimation("keyframe"),r.attr(ak(r))}function Fp(r,e,t){if(t.isAnimationEnabled()&&e){if(H(e))return void A(e,function(s){Fp(r,s,t)});var a=e.keyframes,n=e.duration;if(t&&null==n){var i=Ds("enter",t,0);n=i&&i.duration}if(a&&n){var o=ak(r);A(Vp,function(s){var l;s&&!r[s]||(a.sort(function(f,v){return f.percent-v.percent}),A(a,function(f){var v=r.animators,c=s?f[s]:f;if(c){var h=Te(c);if(s||(h=ke(h,function(g){return pe(_Q,g)<0})),h.length){l||((l=r.animate(s,e.loop,!0)).scope="keyframe");for(var p=0;p<v.length;p++)v[p]!==l&&v[p].targetName===l.targetName&&v[p].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;A(h,function(g){d[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(n*f.percent,c,h,f.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing))})}}}var Tn="emphasis",ci="normal",i1="blur",o1="select",hi=[ci,Tn,i1,o1],s1={normal:["itemStyle"],emphasis:[Tn,"itemStyle"],blur:[i1,"itemStyle"],select:[o1,"itemStyle"]},l1={normal:["label"],emphasis:[Tn,"label"],blur:[i1,"label"],select:[o1,"label"]},SQ=["x","y"],Ur={normal:{},emphasis:{},blur:{},select:{}},bQ={cartesian2d:function tQ(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:q(eQ,r)}}},geo:function aQ(r){var e=r.view,t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:hZ(e)},api:{coord:function(a){return r.dataToPoint(a)},size:q(rQ,r)}}},single:function iQ(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:q(nQ,r)}}},polar:function sQ(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(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:q(oQ,r)}}},calendar:function lQ(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,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}},matrix:function uQ(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,a){return r.dataToPoint(t,a)},layout:function(t,a){return r.dataToLayout(t,a)}}}}};function u1(r){return r instanceof we}function f1(r){return r instanceof Rr}var TQ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=ok(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(v){h1(n,null,v,u(v,i),t,l,s)}).remove(function(v){var c=o.getItemGraphicEl(v);c&&Gp(c,wn(c).option,t)}).update(function(v,c){var h=o.getItemGraphicEl(c);h1(n,h,v,u(v,i),t,l,s)}).execute();var f=t.get("clip",!0)?Eo(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=ok(a,s,n,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=da(a),h.ensureState("emphasis").hoverLayer=Ws)}for(var v=t.start;v<t.end;v++){var c=h1(null,null,v,l(v,o),a,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){Jn(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e}(ze);const CQ=TQ;function v1(r){var t,e=r.type;if("path"===e){var n=null!=(a=r.shape).width&&null!=a.height?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=vk(a);t=Us(i,null,n,a.layout||"center"),wn(t).customPathData=i}else if("image"===e)t=new At({}),wn(t).customImagePath=r.style.image;else if("text"===e)t=new Me({});else if("group"===e)t=new oe;else if("compoundPath"===e){var a;(a=r.shape)&&a.paths||Oe("");
1var s=W(a.paths,function(f){if("path"===f.type)return Us(f.shape.pathData,f,null);var v=zu(f.type);return v||Oe(""),new v});t=new Vu({shape:{paths:s}})}else{var l=zu(e);l||Oe(""),t=new l}return wn(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function c1(r,e,t,a,n,i,o){nk(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&null==a.transition&&(a.transition=SQ);var l=a&&a.style;if(l){if("text"===e.type){var u=l;J(u,"textFill")&&(u.fill=u.textFill),J(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=u1(e)?l.decal:null;r&&v&&(v.dirty=!0,f=$s(v,r)),l.__decalPattern=f}f1(e)&&l&&(f=l.__decalPattern)&&(l.decal=f),zp(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),Fp(e,a.keyframeAnimation,i)}function ik(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(!1===a){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Ki(i)}}function MQ(r,e,t){var a=t===ci,n=a?e:Hp(e,t),i=n?n.z2:null;null!=i&&((a?r:r.ensureState(t)).z2=i||0)}function ok(r,e,t,a){var n=r.get("renderItem");if("string"==typeof n){var i=function IH(r){return TM[r]}(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):bQ[o.type](o));for(var f,v,l=ie({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:function x(E,R){return null==R&&(R=f),e.getStore().get(e.getDimensionIndex(E||0),R)},style:function w(E,R){null==R&&(R=f);var k=e.getItemVisual(R,"style"),O=k&&k.fill,V=k&&k.opacity,z=_(R,ci).getItemStyle();null!=O&&(z.fill=O),null!=V&&(z.opacity=V);var F={inheritColor:X(O)?O:B.color.neutral99},U=S(R,ci),Y=He(U,null,F,!1,!0);Y.text=U.getShallow("show")?Q(r.getFormattedLabel(R,ci),dl(e,R)):null;var Z=_c(U,F,!1);return M(E,z),z=JE(z,Y,Z),E&&T(z,E),z.legacy=!0,z},ordinalRawValue:function b(E,R){null==R&&(R=f);var k=e.getDimensionInfo(E=E||0);if(!k){var O=e.getDimensionIndex(E);return O>=0?e.getStore().get(O,R):void 0}var V=e.get(k.name,R),z=k&&k.ordinalMeta;return z?z.categories[V]:V},styleEmphasis:function C(E,R){null==R&&(R=f);var k=_(R,Tn).getItemStyle(),O=S(R,Tn),V=He(O,null,null,!0,!0);V.text=O.getShallow("show")?nr(r.getFormattedLabel(R,Tn),r.getFormattedLabel(R,ci),dl(e,R)):null;var z=_c(O,null,!0);return M(E,k),k=JE(k,V,z),E&&T(k,E),k.legacy=!0,k},visual:function D(E,R){if(null==R&&(R=f),J(XE,E)){var k=e.getItemVisual(R,"style");return k?k[XE[E]]:null}if(J(JJ,E))return e.getItemVisual(R,E)},barLayout:function I(E){if("cartesian2d"===o.type)return function Y8(r){if(Kt(r.axis.scale)){for(var e=Vt(r.axis),t=[],a=0;a<r.count;a++)t.push(ie({stackId:g_+a},r));var n=XI({bandWidthResult:e,seriesInfo:t}),i=[];for(a=0;a<r.count;a++){var o=n[g_+a];o.offsetCenter=o.offset+o.width/2,i.push(o)}return i}}(ie({axis:o.getBaseAxis()},E))},currentSeriesIndices:function L(){return t.getCurrentSeriesIndices()},font:function P(E){return Ry(E,t)}},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:DQ(r.getData()),itemPayload:r.get("itemPayload")||{}},c={},h={},p={},d={},g=0;g<hi.length;g++){var y=hi[g];p[y]=r.getModel(s1[y]),d[y]=r.getModel(l1[y])}function m(E){return E===f?v||(v=e.getItemModel(E)):e.getItemModel(E)}function _(E,R){return e.hasItemOption?E===f?c[R]||(c[R]=m(E).getModel(s1[R])):m(E).getModel(s1[R]):p[R]}function S(E,R){return e.hasItemOption?E===f?h[R]||(h[R]=m(E).getModel(l1[R])):m(E).getModel(l1[R]):d[R]}return function(E,R){return f=E,v=null,c={},h={},n&&n(ie({dataIndexInside:E,dataIndex:e.getRawIndex(E),actionType:R?R.type:null},u),l)};function T(E,R){for(var k in R)J(R,k)&&(E[k]=R[k])}function M(E,R){E&&(E.textFill&&(R.textFill=E.textFill),E.textPosition&&(R.textPosition=E.textPosition))}}function DQ(r){var e={};return A(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim;(e[n]=e[n]||[])[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function h1(r,e,t,a,n,i,o){if(a){var s=p1(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&Je(s,a.focus,a.blurScope,a.emphasisDisabled),s}i.remove(e)}function p1(r,e,t,a,n,i){var o=-1,s=e;e&&sk(e,a,n)&&(o=pe(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=v1(a),s&&function wQ(r,e){e.copyTransform(r),f1(e)&&f1(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,u1(e)&&u1(r)&&e.setShape(r.shape))}(s,u)),!1===a.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Ur.normal.cfg=Ur.normal.conOpt=Ur.emphasis.cfg=Ur.emphasis.conOpt=Ur.blur.cfg=Ur.blur.conOpt=Ur.select.cfg=Ur.select.conOpt=null,Ur.isLegacy=!1,function IQ(r,e,t,a,n,i){if(!r.isGroup&&"compoundPath"!==r.type){lk(t,null,i),lk(t,Tn,i);var o=i.normal.conOpt;if(null!=o||null!=i.emphasis.conOpt||null!=i.select.conOpt||null!=i.blur.conOpt){var f=r.getTextContent();if(!1===o)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=v1(o),r.setTextContent(f)),c1(null,f,e,o,null,a,n);for(var v=o&&o.style,c=0;c<hi.length;
vendor: 4,903 bytes, line 1
1c++){var h=hi[c];if(h!==ci)ik(h,f,0,d1(o,i[h].conOpt,h),null)}v?f.dirty():f.markRedraw()}}}}(u,t,a,n,l,Ur),function LQ(r,e,t,a,n){var i=t.clipPath;if(!1===i)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&sk(o,i,a)&&(o=null),o||(o=v1(i),r.setClipPath(o)),c1(null,o,e,i,null,a,n)}}(u,t,a,n,l),c1(r,u,t,a,Ur,n,l),J(a,"info")&&(wn(u).info=a.info);for(var f=0;f<hi.length;f++){var v=hi[f];if(v!==ci)ik(v,u,0,d1(a,Hp(a,v),v),Ur)}return function AQ(r,e,t){if(!r.isGroup){var a=r,i=t.currentZLevel;a.z=t.currentZ,a.zlevel=i;var o=e.z2;null!=o&&(a.z2=o||0);for(var s=0;s<hi.length;s++)MQ(a,e,hi[s])}}(u,a,n),"group"===a.type&&function PQ(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l="byName"===s||a.diffChildrenByName,u=!1===s;if(o||l||u){if(l)return void function EQ(r){new dn(r.oldChildren,r.newChildren,uk,uk,r).add(fk).update(fk).remove(kQ).execute()}({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});u&&e.removeAll();for(var f=0;f<o;f++){var v=i[f],c=e.childAt(f);v?(null==v.ignore&&(v.ignore=!1),p1(r,c,t,v,n,e)):c.ignore=!0}for(var h=e.childCount()-1;h>=f;h--){var p=e.childAt(h);RQ(e,p,n)}}}(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function sk(r,e,t){var a=wn(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||null!=n&&n!==a.customGraphicType||"path"===n&&function OQ(r){return r&&(J(r,"pathData")||J(r,"d"))}(i)&&vk(i)!==a.customPathData||"image"===n&&J(o,"image")&&o.image!==a.customImagePath}function lk(r,e,t){var a=e?Hp(r,e):r,n=e?d1(r,a,Tn):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?Hp(s,e):s:null;if(n&&(t.isLegacy||KE(n,i,!!o,!!l))){t.isLegacy=!0;var u=qE(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}!e&&l&&!l.type&&(l.type="text");var v=e?t[e]:t.normal;v.cfg=o,v.conOpt=l}function Hp(r,e){return e?r?r[e]:null:r}function d1(r,e,t){var a=e&&e.style;return null==a&&t===Tn&&r&&(a=r.styleEmphasis),a}function RQ(r,e,t){e&&Gp(e,wn(r).option,t)}function uk(r,e){return(r&&r.name)??"e\0\0"+e}function fk(r,e){var t=this.context;p1(t.api,null!=e?t.oldChildren[e]:null,t.dataIndex,null!=r?t.newChildren[r]:null,t.seriesModel,t.group)}function kQ(r){var e=this.context,t=e.oldChildren[r];t&&Gp(t,wn(t).option,e.seriesModel)}function vk(r){return r&&(r.pathData||r.d)}var ts=ge(),ck=re,g1=q,BQ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,n||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||"hide"===o)return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(e,t);if(s){var c=Se(hk,t,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}else s=this._group=new oe,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);gk(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i="category"===n.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===a||null==a){var s=this.animationThreshold;if(i&&Vt(n).w>s)return!0;if(o){var l=A_(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return!0===a},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=ts(e).pointerEl=new Ha[i.type](ck(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=ts(e).labelEl=new Me(ck(t.label));e.add(i),dk(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=ts(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=ts(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),dk(i,n))},r.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var s,t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||"hide"===o)return n&&a.remove(n),void(this._handle=null);this._handle||(s=!0,n=this._handle=Zs(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){qa(u.event)},onmousedown:g1(this._onHandleDragMove,this,0,0),drift:g1(this._onHandleDragMove,this),ondragend:g1(this._onHandleDragEnd,this)}),a.add(n)),gk(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");H(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Xs(this,"_doDispat
1chAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){hk(this._axisPointerModel,!t&&this._moveAnimation,this._handle,y1(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(y1(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(y1(n)),ts(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){if(this._handle){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(){if(this._dragging=!1,this._handle){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,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Uu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return{x:e[a=a||0],y:e[1-a],width:t[a
vendor: 4,950 bytes, line 1
1],height:t[1-a]}},r}();function hk(r,e,t,a){pk(ts(t).lastProp,a)||(ts(t).lastProp=a,e?Pe(t,a,r):(t.stopAnimation(),t.attr(a)))}function pk(r,e){if(se(r)&&se(e)){var t=!0;return A(e,function(a,n){t=t&&pk(r[n],a)}),!!t}return r===e}function dk(r,e){r[e.get(["label","show"])?"show":"hide"]()}function y1(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function gk(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){"group"!==i.type&&(null!=a&&(i.z=a),null!=n&&(i.zlevel=n),i.silent=t)})}const m1=BQ;function _1(r){var a,e=r.get("type"),t=r.getModel(e+"Style");return"line"===e?(a=t.getLineStyle()).fill=null:"shadow"===e&&((a=t.getAreaStyle()).stroke=null),a}function yk(r,e,t,a,n){var o=mk(t.get("value"),e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ks(s.get("padding")||0),u=s.getFont(),f=Hv(o,u),v=n.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],p=n.align;"right"===p&&(v[0]-=c),"center"===p&&(v[0]-=c/2);var d=n.verticalAlign;"bottom"===d&&(v[1]-=h),"middle"===d&&(v[1]-=h/2),function VQ(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}(v,c,h,a);var g=s.get("backgroundColor");(!g||"auto"===g)&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:He(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function mk(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Lh(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),v=u&&u.getDataParams(l.dataIndexInside);v&&s.seriesData.push(v)}),X(o)?i=o.replace("{value}",i):ae(o)&&(i=o(s))}return i}function S1(r,e,t){var a=[1,0,0,1,0,0];return ja(a,a,t.rotation),Zr(a,a,t.position),ta([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function _k(r,e,t,a,n,i){var o=_n.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),yk(e,a,n,i,{position:S1(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function x1(r,e,t){return{x1:r[t=t||0],y1:r[1-t],x2:e[t],y2:e[1-t]}}function Sk(r,e,t){return{x:r[t=t||0],y:r[1-t],width:e[t],height:e[1-t]}}function xk(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}function b1(r,e,t){return Vt(r,{fromStat:{sers:W(e,function(a){return t.getSeriesByIndex(a.seriesIndex)})},min:1}).w}function w1(r,e,t){return[xe(Be(e[0],e[1]),r-t/2),Be(r+t/2,xe(e[0],e[1]))]}var zQ=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=s.getGlobalExtent(),v=bk(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&"none"!==u){var h=_1(i),p=GQ[u](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);p.style=h,t.graphicKey=p.type,t.pointer=p}_k(a,t,qh(l.getRect(),n),n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=qh(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=S1(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=bk(s,o).getOtherAxis(o).getGlobalExtent(),f="x"===o.dim?0:1,v=[t.x,t.y];v[f]+=a[f],v[f]=Be(l[1],v[f]),v[f]=xe(l[0],v[f]);var c=(u[1]+u[0])/2,h=[c,c];return h[f]=v[f],{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][f]}},e}(m1);function bk(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var GQ={line:function(r,e,t,a){return{type:"Line",subPixelOptimize:!0,shape:x1([e,a[0]],[e,a[1]],wk(r))}},shadow:function(r,e,t,a,n,i){var o=b1(r,n,i),s=a[1]-a[0],l=w1(e,t,o),u=l[0];return{type:"Rect",shape:Sk([u,a[0]],[l[1]-u,s],wk(r))}}};function wk(r){return"x"===r.dim?0:1}const FQ=zQ;var HQ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:B.color.border,width:1,type:"dashed"},shadowStyle:{color:B.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:B.color.neutral00,padding:[5,7,5,7],backgroundColor:B.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:B.color.accent40,throttle:40}},e}(Ce);const WQ=HQ;
1var Cn=ge(),UQ=A;function Tk(r,e,t){if(!Ee.node){var a=e.getZr();Cn(a).records||(Cn(a).records={}),function YQ(r,e){function t(a,n){r.on(a,function(i){var o=function KQ(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}(e);UQ(Cn(r).records,function(s){s&&n(s,i,o.dispatchAction)}),function ZQ(r,e){var n,t=r.showTip.length,a=r.hideTip.length;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(o.pendings,e)})}Cn(r).initialized||(Cn(r).initialized=!0,t("click",Se(T1,"click")),t("mousemove",Se(T1,"mousemove")),t("mousewheel",Se(T1,"mousewheel")),t("globalout",XQ))}(a,e),(Cn(a).records[r]||(Cn(a).records[r]={})).handler=t}}function XQ(r,e,t){r.handler("leave",null,t)}function T1(r,e,t,a){e.handler(r,t,a)}function C1(r,e){if(!Ee.node){var t=e.getZr();(Cn(t).records||{})[r]&&(Cn(t).records[r]=null)}}var qQ=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click|mousewheel";Tk("axisPointer",n,function(s,l,u){"none"!==o&&("leave"===s||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){C1("axisPointer",a)},e.prototype.dispose=function(t,a){C1("axisPointer",a)},e.type="axisPointer",e}(Xe);const jQ=qQ;function Ck(r,e){var n,t=[],a=r.seriesIndex;if(null==a||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Oi(i,r);if(null==o||o<0||H(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),v=l.getOtherAxis(u).dim,h="x"===v||"radius"===v?1:0,p=i.mapDimension(u.dim),d=[];d[h]=i.get(p,o),d[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(W(l.dimensions,function(y){return i.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 Ak=ge();function JQ(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||q(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Wp(n)&&(n=Ck({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Wp(n),u=i.axesInfo,f=s.axesInfo,v="leave"===a||Wp(n),c={},h={},p={list:[],map:{}},d={showPointer:Se($Q,h),showTooltip:Se(e$,p)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=function n$(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}}(u,S);if(!v&&_&&(!u||w)){var C=w&&w.value;null==C&&!l&&(C=b.pointToData(n)),null!=C&&Mk(S,C,d,!1,c)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,x){var b=h[x];if(S!==y&&b){var w=b.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Dk(S),Dk(y)))),g[y.key]=w}})}),A(g,function(y,m){Mk(f[m],y,d,!0,c)}),function t$(r,e,t){var a=t.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),"show"===o.status&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}(h,f,c),function r$(r,e,t,a){if(!Wp(e)&&r.list.length){var n=((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:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}else a({type:"hideTip"})}(p,n,r,o),function a$(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=Ak(a)[n]||{},o=Ak(a)[n]={};A(r,function(f,v){var c=f.axisPointerModel.option;"show"===c.status&&f.triggerEmphasis&&A(c.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}A(i,function(f,v){!o[v]&&l.push(u(f))}),A(o,function(f,v){!i[v]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(f,0,t),c}}function Mk(r,e,t,a,n){var i=r.axis;
vendor: 16,120 bytes, line 1
1if(!i.scale.isBlank()&&i.containData(e)){if(!r.involveSeries)return void t.showPointer(r,e);var o=function QQ(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var v,c,f=l.getData().mapDimensionsAll(a);if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,v=h.nestestValue}else{if(!(c=l.indicesOfNearest(a,f[0],r,"category"===t.type?.5:null)).length)return;v=l.getData().get(f[0],c[0])}if(Pr(v)){var p=r-v,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,n=v,i.length=0),A(c,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==n.seriesIndex&&G(n,s[0]),!a&&r.snap&&i.containData(l)&&null!=l&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function $Q(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function e$(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(e.triggerTooltip&&n.length){var l=e.coordSys.model,u=Df(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function Dk(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 Wp(r){return!r||null==r[0]||isNaN(r[0])||null==r[1]||isNaN(r[1])}function Qf(r){Go.registerAxisPointerClass("CartesianAxisPointer",FQ),r.registerComponentModel(WQ),r.registerComponentView(jQ),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=function $6(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function e7(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(s.axisPointerEnabled){var l=Df(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var v=s.model.getModel("tooltip",a);if(A(s.getAxes(),Se(d,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var c="axis"===v.get("trigger"),h="cross"===v.get(["axisPointer","type"]),p=s.getTooltipAxes(v.get(["axisPointer","axis"]));(c||h)&&A(p.baseAxes,Se(d,!h||"cross",c)),h&&A(p.otherAxes,Se(d,"cross",!1))}}function d(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(S&&("auto"!==S||g||M_(_))){null==y&&(y=_.get("triggerTooltip")),_=g?function t7(r,e,t,a,n,i){var o=e.getModel("axisPointer"),l={};A(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(c){l[c]=re(o.get(c))}),l.snap="category"!==r.type&&!!i,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===n){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&ie(u,v.textStyle)}}return r.model.getModel("axisPointer",new De(l,t,a))}(m,v,n,e,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=Df(m.model),C=y||x||"category"===m.type,T=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:C,snap:x,useHandle:M_(_),seriesModels:[],linkGroup:null};u[w]=T,r.seriesInvolved=r.seriesInvolved||C;var M=function a7(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(C_(i[a+"AxisId"],t.id)||C_(i[a+"AxisIndex"],t.componentIndex)||C_(i[a+"AxisName"],t.name))return n}}(i,m);if(null!=M){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=T,D.mapper=i[M].mapper,T.linkGroup=D}}}})}(t,r,e),t.seriesInvolved&&function r7(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||!a.model||"none"===n||!1===n||"item"===n||!1===i||!1===t.get(["axisPointer","show"],!0)||A(r.coordSysAxesInfo[Df(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),null==o.seriesDataCount&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}(t,r),t}(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},JQ)}var o$=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),v=s.dataToCoord(a),c=i.get("type");if(c&&"none"!==c){var h=_1(i),p=l$[c](s,l,v,u,f,i.get("seriesDataIndices"),i.ecModel);p.style=h,t.graphicKey=p.type,t.pointer=p}var g=function s$(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var u,f,v,l=a.getRadiusAxis().getExtent();if("radius"===i.dim){var c=[1,0,0,1,0,0];ja(c,c,s),Zr(c,c,[a.cx,a.cy]),u=ta([o,-n],c);var h=e.getModel("axisLabel").get("rotate")||0,p=_n.innerTextLayout(s,h*Math.PI/180,-1);f=p.textAlign,v=p.textVerticalAlign}else{var d=l[1];u=a.coordToPoint([d+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}(a,n,0,l,i.get(["label","margin"]));yk(t,n,i,o,g)},e}(m1),l$={line:function(r,e,t,a,n){return"angle"===r.dim?{type:"Line",shape:x1(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a,n,i,o){var u,s=Math.PI/180,l=b1(r,i,o);if("angle"===r.dim)u=xk(e.cx,e.cy,n[0],n[1],(-t-l/2)*s,(l/2-t)*s);else{var f=w1(t,a,l);u=xk(e.cx,e.cy,f[0],f[1],0,2*Math.PI)}return{type:"Sector",shape:u}}};const u$=o$;var Ba="polar",Lk=Ba,f$=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.findAxisModel=function(t){var a;return this.ecModel.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type=Ba,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Ce);const v$=f$;var A1=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",at).models[0]},e.type="polarAxis",e}(Ce);it(A1,fl);var c$=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="angleAxis",e}(A1),h$=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="radiusAxis",e}(A1),M1=function(r){function e(t,a){return r.call(this,"radius",t,a)||this}return N(e,r),e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)["radius"===this.dim?0:1]},e}(Gr);M1.prototype.dataToRadius=Gr.prototype.dataToCoord,M1.prototype.radiusToData=Gr.prototype.coordToData;const p$=M1;var d$=ge(),D1=function(r){function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return N(e,r),e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Hv(null==s?"":s+"",a.getFont(),"center","top"),c=Math.max(f.height,7)/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),p=d$(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return null!=d&&null!=g&&Math.abs(d-h)<=1&&Math.abs(g-o)<=1&&d>h?h=d:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(Gr);D1.prototype.dataToAngle=Gr.prototype.dataToCoord,D1.prototype.angleToData=Gr.prototype.coordToData;const g$=D1;var Ik=["radius","angle"],y$=function(){function r(e){this.dimensions=Ik,this.type=Ba,this.cx=0,this.cy=0,this._radiusAxis=new p$,this._angleAxis=new g$,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){return this["_"+e+"Axis"]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),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=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,a){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],a)},r.prototype.pointToData=function(e,t,a){a=a||[];var n=this.pointToCoord(e);return a[0]=this._radiusAxis.radiusToData(n[0],t),a[1]=this._angleAxis.angleToData(n[1],t),a},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.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,f=u<o?1:-1;u<o||u>s;)u+=360*f;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var a=e[0],n=e[1]/180*Math.PI;return t[0]=Math.cos(n)*a+this.cx,t[1]=-Math.sin(n)*a+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),a=this.getRadiusAxis().getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,v=u*u+f*f,c=this.r,h=this.r0;return c!==h&&v-o<=c*c&&v+o>=h*h},x:this.cx-a[1],y:this.cy-a[1],width:2*a[1],height:2*a[1]}},r.prototype.convertToPixel=function(e,t,a){return Pk(t)===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){return Pk(t)===this?this.pointToData(a):null},r}();function Pk(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const m$=y$;function S$(r,e){var a=this.getAngleAxis(),n=this.getRadiusAxis();if(Ao(a,1),Ao(n,1),hl(a),hl(n),"category"===a.type&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function Rk(r,e){var t;if(r.type=of(e),r.scale=sl(e,r.type,!1),r.onBand=uf(r.scale,e),r.inverse=e.get("inverse"),function x$(r){return"angleAxis"===r.mainType}(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=null!==(t=e.get("endAngle"))&&void 0!==t?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var b$={dimensions:Ik,create:function(r,e){var t=[];return r.eachComponent(Lk,function(a,n){var i=new m$(n+"");i.update=S$;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");Rk(o,l),Rk(s,u),function _$(r,e,t){var a=e.get("center"),n=mt(e,t).refContainer;r.cx=K(a[0],n.width)+n.x,r.cy=K(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=e.get("radius");null==s?s=[0,"100%"]:H(s)||(s=[0,s]);var l=[K(s[0],o),K(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")===Ba){var n=a.getReferringComponents(Lk,at).models[0],i=a.coordinateSystem=n.coordinateSystem;i&&(Co(i.getRadiusAxis(),a,Ba),Co(i.getAngleAxis(),a,Ba))}}),t}};const w$=b$;var T$=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Up(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Yp(r){return r.getRadiusAxis().inverse?0:1}function Ek(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 C$=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return N(e,r),e.prototype.render=function(t,a){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=[];A(n.getViewLabels(),function(f){f.tick.offInterval||((f=re(f)).coord=n.dataToCoord(ul(n.scale,f.tick)),u.push(f))}),Ek(u),Ek(s),A(T$,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||"axisLine"===f)&&A$[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Go),A$={axisLine:function(r,e,t,a,n,i){var c,o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Yp(t),v=f?0:1,h=360===Math.abs(u[1]-u[0])?"Circle":"Arc";(c=0===i[v]?new Ha[h]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):new Nu({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0})).style.fill=null,r.add(c)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Yp(t)],u=W(a,function(f){return new ct({shape:Up(t,[l,l+s],f.coord)})});r.add(xr(u,{style:ie(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Yp(t)],f=[],v=0;v<n.length;v++)for(var c=0;c<n[v].length;c++)f.push(new ct({shape:Up(t,[u,u+l],n[v][c].coord)}));r.add(xr(f,{style:ie(s.getModel("lineStyle").getLineStyle(),ie(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");A(o,function(v,c){var h=l,p=v.tick.value,d=i[Yp(t)],g=t.coordToPoint([d+u,v.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var x=s[p];se(x)&&x.textStyle&&(h=new De(x.textStyle,l,l.ecModel))}var b=new Me({silent:_n.isLabelSilent(e),style:He(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),hn({el:b,componentModel:e,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:v.rawLabel,tickIndex:c}}),f){var w=_n.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=v.rawLabel,ue(b).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<a.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new ct({shape:Up(t,i,a[v].coord)}))}for(v=0;v<f.length;v++)r.add(xr(f[v],{style:ie({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var s=e.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new ct({shape:Up(t,i,n[u][f].coord)}));r.add(xr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=Math.PI/180,c=-a[0].coord*v,h=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=e.get("
1clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Yt({shape:{cx:t.cx,cy:t.cy,r0:h,r:p,startAngle:c,endAngle:-m*v,clockwise:d},silent:!0})),c=-m*v}for(g=0;g<f.length;g++)r.add(xr(f[g],{style:ie({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const M$=C$;var D$=["splitLine","splitArea","minorSplitLine"],L$=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return N(e,r),e.prototype.render=function(t,a,n){if(this.group.removeAll(),t.get("show")){var i=this._axisGroup,o=this._axisGroup=new oe;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),v=s.getMinorTicksCoords(),c=u.getExtent()[0],h=s.getExtent(),p=function P$(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}(l,t,c),d=new _n(t,n,p);d.build(),o.add(d.group),Gu(i,o,t),A(D$,function(g){t.get([g,"show"])&&!s.scale.isBlank()&&I$[g](this.group,t,l,c,h,f,v)},this)}},e.type="radiusAxis",e}(Go),I$={splitLine:function(r,e,t,a,n,i){var s=e.getModel("splitLine").getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),v=Math.PI/180,c=f.getExtent(),h=360===Math.abs(c[1]-c[0])?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<i.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Ha[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[d].coord,0),startAngle:-c[0]*v,endAngle:-c[1]*v,clockwise:f.inverse}}))}for(d=0;d<p.length;d++)r.add(xr(p[d],{style:ie({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var l=e.getModel("minorSplitLine").getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new cn({shape:{cx:t.cx,cy:t.cy,r:o[f][v].coord}}));r.add(xr(u,{style:ie({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var s=e.getModel("splitArea").getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=i[0].coord,c=1;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new Yt({shape:{cx:t.cx,cy:t.cy,r0:v,r:i[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),v=i[c].coord}for(c=0;c<f.length;c++)r.add(xr(f[c],{style:ie({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};const R$=L$;var E$=Ts();function kk(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var k$=dt(Ra,function O$(r){var e=zo(Ra,Ba);M0(r,e,function(t){var a=function B$(r,e){var t=zo(e,Ba),a=Vt(r,{fromStat:{key:t},min:1}).w,n=a,i=0,o="20%",s="30%",l={};To(r,t,function(g){var y=kk(g);l[y]||i++,l[y]=l[y]||{width:0,maxWidth:0};var m=K(g.get("barWidth"),a),_=K(g.get("barMaxWidth"),a),S=g.get("barGap"),x=g.get("barCategoryGap");m&&!l[y].width&&(m=Be(n,m),l[y].width=m,n-=m),_&&(l[y].maxWidth=_),null!=S&&(s=S),null!=x&&(o=x)});var u={},f=K(o,a),v=K(s,1),c=(n-f)/(i+(i-1)*v);c=xe(c,0),A(l,function(g,y){var m=g.maxWidth;m&&m<c&&(m=Be(m,n),g.width&&(m=Be(m,g.width)),n-=m,g.width=m,i--)}),c=xe(c=(n-f)/(i+(i-1)*v),0);var p,h=0;A(l,function(g,y){g.width||(g.width=c),p=g,h+=g.width*(1+v)}),p&&(h-=p.width*v);var d=-h/2;return A(l,function(g,y){u[y]=u[y]||{offset:d,width:g.width},d+=g.width*(1+v)}),u}(t,Ra),n={};To(t,e,function(i){!function N$(r,e,t,a){var n=e.getData(),i=kk(e),o=t[i],s=o.offset,l=o.width,u=e.coordinateSystem,f=u.getOtherAxis(r),v=u.cx,c=u.cy,h=e.get("barMinHeight")||0,p=e.get("barMinAngle")||0;a[i]=a[i]||[];for(var d=n.mapDimension(f.dim),g=n.mapDimension(r.dim),y=gn(n,d),m="radius"!==r.dim||!e.get("roundCap",!0),_=f.dataToCoord(UI(f)),S=0,x=n.count();S<x;S++){var b=n.get(d,S),w=n.get(g,S),C=b>=0?"p":"n",T=_;y&&(a[i][w]||(a[i][w]={p:_,n:_}),T=a[i][w][C]);var M=void 0,D=void 0,I=void 0,L=void 0;if("radius"===f.dim){var P=f.dataToCoord(b)-_,E=r.dataToCoord(w);rt(P)<h&&(P=(P<0?-1:1)*h),M=T,D=T+P,L=(I=E-s)-l,y&&(a[i][w][C]=D)}else{var R=f.dataToCoord(b,m)-_,k=r.dataToCoord(w);rt(R)<p&&(R=(R<0?-1:1)*p),D=(M=k+s)+l,I=T,L=T+R,y&&(a[i][w][C]=L)}n.setItemLayout(S,{cx:v,cy:c,r0:M,r:D,startAngle:-I*qv/180,endAngle:-L*qv/180,clockwise:I>=L})}}(t,i,a,n)})})}),z$={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},G$={splitNumber:5},F$=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="polar",e}(Xe);function L1(r,e){e=e||{};var a=r.axis,n={},i=a.position,o=a.orient,s=r.coordinateSystem.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};n.position=["vertical"===o?u.vertical[i]:l[0],"horizontal"===o?u.horizontal[i]:l[3]],n.rotation=Math.PI/2*{horizontal:0,vertical:1}[o],n.labelDirection=n.tickDirection=n.nameDirection={top:-1,bottom:1,right:1,left:-1}
vendor: 18,203 bytes, line 1
1[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ft(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var c=r.get(["axisLabel","rotate"]);return n.labelRotate="top"===i?-c:c,n.z2=1,n}var W$=["splitArea","splitLine","breakArea"],U$=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return N(e,r),e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new oe;var l=L1(t),u=new _n(t,n,l);u.build(),o.add(this._axisGroup),o.add(u.group),A(W$,function(f){t.get([f,"show"])&&Y$[f](this,this.group,this._axisGroup,t,n)},this),Gu(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){EP(this)},e.type="singleAxis",e}(Go),Y$={splitLine:function(r,e,t,a,n){var i=a.axis;if(!i.scale.isBlank()){var o=a.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=a.coordinateSystem.getRect(),v=i.isHorizontal(),c=[],h=0,p=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],g=[],y=0;y<p.length;++y){var m=i.toGlobalCoord(p[y].coord);v?(d[0]=m,d[1]=f.y,g[0]=m,g[1]=f.y+f.height):(d[0]=f.x,d[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new ct({shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},silent:!0});Ys(_.shape,u);var S=h++%l.length;c[S]=c[S]||[],c[S].push(_)}var x=s.getLineStyle(["color"]);for(y=0;y<c.length;++y)e.add(xr(c[y],{style:ie({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,e,t,a,n){RP(r,t,a,a)},breakArea:function(r,e,t,a,n){var i=Tf();i&&"ordinal"!==a.axis.scale.type&&i.rectCoordBuildBreakAxis(e,r,a,a.coordinateSystem.getRect(),n)}};const Z$=U$;var X$=function(r){function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return N(e,r),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e}(Gr);const K$=X$;var Ok=["single"],q$=function(){function r(e,t,a){this.type=ip,this.dimension="single",this.dimensions=Ok,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=this.dimension,i=of(e),o=new K$(n,sl(e,i,!0),[0,0],i,e.get("position"));o.onBand=uf(o.scale,e),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(e,t){var a=this._axis;Ao(a,1),hl(a)},r.prototype.resize=function(e,t){var a=mt(e,t).refContainer;this._rect=qe(e.getBoxLayoutParams(),a),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis();return"horizontal"===a.orient?a.contain(a.toLocalCoord(e[0]))&&e[1]>=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,t,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(e["horizontal"===n.orient?0:1])),a},r.prototype.dataToPoint=function(e,t,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o="horizontal"===n.orient?0:1;return e instanceof Array&&(e=e[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+e)),a[1-o]=0===o?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(e,t,a){return Nk(t)===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){return Nk(t)===this?this.pointToData(a):null},r}();function Nk(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const j$=q$;var Q$={create:function J$(r,e){var t=[];return r.eachComponent(L_,function(a,n){var i=new j$(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if("singleAxis"===a.get("coordinateSystem")){var n=a.getReferringComponents(L_,at).models[0],i=a.coordinateSystem=n&&n.coordinateSystem;i&&Co(i.getAxis(),a,ip)}}),t},dimensions:Ok};const $$=Q$;var Bk=["x","y"],eee=["width","height"],tee=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Zp(s),f=Xp(l,u),v=Xp(l,1-u),c=l.dataToPoint(a)[0],h=i.get("type");if(h&&"none"!==h){var p=_1(i),d=ree[h](s,c,f,v,i.get("seriesDataIndices"),i.ecModel);d.style=p,t.graphicKey=d.type,t.pointer=d}_k(a,t,L1(n),n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=L1(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=S1(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Zp(o),u=Xp(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=Xp(s,1-l),c=(v[1]+v[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(m1),ree={line:function(r,e,t,a){return{type:"Line",subPixelOptimize:!0,shape:x1([e,a[0]],[e,a[1]],Zp(r))}},shadow:function(r,e,t,a,n,i){var o=b1(r,n,i),s=a[1]-a[0],l=w1(e,t,o),u=l[0];return{type:"Rect",shape:Sk([u,a[0]],[l[1]-u,s],Zp(r))}}};function Zp(r){return r.isHorizontal()?0:1}function Xp(r,e){var t=r.getRect();return[t[Bk[e]],t[Bk[e]]+t[eee[e]]]}const aee=tee;var nee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="single",e}(Xe),oee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t,a,n){var i=to(t);r.prototype.init.apply(this,arguments),Vk(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),Vk(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:B.color.axisLine,width:1,type:"solid"}},itemStyle:{color:B.color.neutral00,borderWidth:1,borderColor:B.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:B.size.s,color:B.color.secondary},monthLabel:{show:!0,position:"start",margin:B.size.s,align:"center",formatter:null,color:B.color.secondary},yearLabel:{show:!0,position:null,margin:B.size.xl,formatter:null,color:B.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Ce);function Vk(r,e){var a,t=r.cellSize;1===(a=H(t)?t:r.cellSize=[t,t]).length&&(a[1]=a[0]);var n=W([0,1],function(i){return function qG(r,e){return null!=r[$i[e][0]]||null!=r[$i[e][1]]&&null!=r[$i[e][2]]}(e,i)&&(a[i]="auto"),null!=a[i]&&"auto"!==a[i]});wa(r,e,{type:"box",ignoreSize:n})}const see=oee;var lee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,v=new be({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=a.start,c=0;v.time<=a.end.time;c++){p(v.formatedDate),0===c&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=s.getDateInfo(h)}function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToCalendarLayout([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}p(s.getNextNDay(a.end.time,1).formatedDate),u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o="horizontal"===n?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new Bt({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f["horizontal"===n?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return X(t)&&t?qT(t,a):ae(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];"bottom"===i?(l+=o,u=["center","top"]):"left"===i?s-=o:"right"===i?(s+=o,u=["center","top"]):l-=o;var f=0;return("left"===i||"right"===i)&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l="horizontal"!==n?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,c="horizontal"===n?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],v],right:[u[c][0],v]},p=a.start.y;+a.end.y>+a.start.y&&(p=p+"-"+a.end.y);var d=o.get("formatter"),y=this._formatterLabel(d,{start:a.start.y,end:a.end.y,nameMap:p}),m=new Me({z2:30,style:He(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return"horizontal"===n?(f+=o,a&&(s="center"),"start"===i&&(l="bottom")):(u+=o,a&&(l="middle"),"start"===i&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||X(s))&&(s&&(a=Vy(s)||a),s=a.get(["time","monthAbbr"])||[]);var c="start"===u?0:1,h="horizontal"===n?0:1;l="start"===u?-l:l;for(var p="center"===f,d=o.get("silent"),g=0;g<v[c].length-1;g++){var y=v[c][g].slice(),m=this._firstDayOfMonth[g];p&&(y[h]=(this._firstDayPoints[g][h]+v[0][g+1][h])/2);var S=o.get("formatter"),x=s[+m.m-1],b={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:x},w=this._formatterLabel(S,b),C=new Me({z2:30,style:G(He(o,{text:w}),this._monthTextPositionControl(y,p,n,u,l)),silent:d});i.add(C)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],f=t[1],v="start"===n;return"horizontal"===a?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(f=f+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),c=l.getFirstDayOfWeek();f&&!X(f)||(f&&(a=Vy(f)||a),f=a.get(["time","dayOfWeekShort"])||W(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]}));var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];v=K(v,Math.min(d[1],d[0])),"start"===u&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var S,m=l.getNextNDay(p,y),_=l.dataToCalendarLayout([m.time],!1).center;S=Math.abs((y+c)%7);var x=new Me({z2:30,style:G(He(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,v,d)),silent:g});o.add(x)}}},e.type="calendar",e}(Xe);const uee=lee;var I1=864e5,fee=function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){var t=(e=ha(e)).getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return{y:t+"",m:n,d:o,day:s=Math.abs((s+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return 0===(t=t||0)||(e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e)},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s="horizontal"===this._orient?[a,7]:[7,a];A([0,1],function(v){f(i,v)&&(o[n[v]]=i[v]*s[v])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=qe(o,l);function f(v,c){return null!=v[c]&&"auto"!==v[c]}A([0,1],function(v){f(i,v)||(i[v]=u[n[v]]/s[v])}),this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,a){a=a||[],H(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+I1))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,a){var n=(a=a||{}).rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(e,t);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,fe.copy(i,n),po(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(e,t){var a=this.dataToPoint(e,t);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=P1(t);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(e,t,a){var n=P1(t);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=P1(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(H(e)&&1===e.length&&(e=e[0]),H(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var a,t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/I1)-Math.floor(t[0].time/I1)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),v=a?1-f:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:v,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||0===e&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=7*(e-1)-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){Cu({targetModel:i,coordSysType:"calendar",coordSysProvider:rC})}),a},r.dimensions=["time","value"],r}();function P1(r){var e=r.calendarModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}const vee=fee;var Mn={none:0,all:1,body:2,corner:3};function R1(r,e,t){var a=e[he[t]].getCell(r);return!a&&Ae(r)&&r<0&&(a=e[he[1-t]].getUnitLayoutInfo(t,Math.round(r))),a}function zk(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function Gk(r,e,t,a,n){Fk(r[0],e,n,t,a,0),Fk(r[1],e,n,t,a,1)}function Fk(r,e,t,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=H(o)?o:[o],l=s.length,u=!!t;if(l>
1=1?(Hk(r,0,s,0,n,i,0),l>1&&Hk(r,0,s,0,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[he[1-i]].getLocatorCount(i),v=n[he[i]].getLocatorCount(i)-1;t===Mn.body?f=xe(0,f):t===Mn.corner&&(v=Be(-1,v)),v<f&&(f=v=NaN),Pt(r[0])&&(r[0]=f),Pt(r[1])&&(r[1]=v),r[0]=xe(Be(r[0],v),f),r[1]=xe(Be(r[1],v),f)}}function Hk(r,e,t,a,n,i,o){var s=R1(t[o],n,i);if(s){var l=s.id[he[i]],u=l,f=function gee(r){return!r||2!==r.type&&3!==r.type?null:r}(s);f&&(u+=f.span[he[i]]-1),r[0]=Be(r[0],l,u),r[1]=xe(r[1],l,u)}else r[0]=r[1]=NaN}function Kp(r,e){return Pt(r[e][0])||Pt(r[e][1])}function Wk(r,e,t,a){e=e||hee;for(var n=0;n<a;n++)e[n]=!1;for(;;){var i=!1;for(n=0;n<a;n++){var o=t[n];!e[n]&&o.cellMergeOwner&&pee(r,o.locatorRange)&&(e[n]=!0,i=!0)}if(!i)break}}var hee=[];function pee(r,e){return!(!Uk(r[0],e[0])||!Uk(r[1],e[1])||(r[0][0]=Be(r[0][0],e[0][0]),r[0][1]=xe(r[0][1],e[0][1]),r[1][0]=Be(r[1][0],e[1][0]),r[1][1]=xe(r[1][1],e[1][1]),0))}function Uk(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function Yk(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function Zk(r,e,t,a){var n=R1(e[a][0],t,a),i=R1(e[a][1],t,a);r[he[a]]=r[nt[a]]=NaN,n&&i&&(r[he[a]]=n.xy,r[nt[a]]=i.xy+i.wh-n.xy)}function $f(r,e,t,a){return r[he[e]]=t,r[he[1-e]]=a,r}var Xk=function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx="x"===e?0:1,this._model=t,this._uniqueValueGen=function yee(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),a=0;return{calcDupBase:function n(s){var l;null!=s&&(l=s.match(t))&&(a=xe(a,+l[1]+1))},ensureValueUnique:function o(s,l){for(var u=j(),f=0;f<s.length;f++){var v=s[f];(null==v||null!=u.get(v))&&(s[f]=v=""+e+a++,l[f].option=ie({value:v},l[f].option)),u.set(v,!0)}}}}(e);var a=t.get("data",!0),n=t.get("length",!0);if(null!=a&&!H(a)&&(a=[]),a)this._initByDimModelData(a);else if(null!=n){a=Array(n);for(var i=0;i<n;i++)a[i]=null;this._initByDimModelData(a)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,a=t._cells,n=t._levels,i=[],o=0;return t._leavesCount=function s(u,f,v){var c=0;return u&&A(u,function(h,p){var g;X(h)?g={value:h}:se(h)?(g=h,null!=h.value&&!X(h.value)&&(g={value:null})):g={value:null};var y={type:3,ordinal:NaN,level:v,firstLeafLocator:f,id:new le,span:$f(new le,t.dimIdx,1,1),option:g,xy:NaN,wh:NaN,dim:t,rect:{x:NaN,y:NaN,width:NaN,height:NaN}};o++,(i[f]||(i[f]=[])).push(y),n[v]||(n[v]={type:1,xy:NaN,wh:NaN,option:null,id:new le,dim:t});var m=s(g.children,f,v+1),_=Math.max(1,m);y.span[he[t.dimIdx]]=_,c+=_,f+=_}),c}(e,0,0),void function l(){for(var u=[];a.length<o;)for(var f=0;f<i.length;f++){var v=i[f].pop();if(v){v.ordinal=u.length;var c=v.option.value;u.push(c),a.push(v),t._uniqueValueGen.calcDupBase(c)}}t._uniqueValueGen.ensureValueUnique(u,a);var h=t._ordinalMeta=new ef({categories:u,needCollect:!1,deduplication:!1});t._scale=new Ch({ordinalMeta:h});for(var p=0;p<t._leavesCount;p++){var d=t._cells[p];d.type=2,d.span[he[1-t.dimIdx]]=t._levels.length-d.level}t._initCellsId(),t._initLevelIdOptions()}()},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:1,xy:NaN,wh:NaN,option:null,id:new le,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new ef({needCollect:!0,deduplication:!0,onCollect:function(a,n){var i=e._cells[n]={type:2,ordinal:n,level:0,firstLeafLocator:n,id:new le,span:$f(new le,e.dimIdx,1,1),option:{value:a+""},xy:NaN,wh:NaN,dim:e,rect:{x:NaN,y:NaN,width:NaN,height:NaN}};e._leavesCount++,e._setCellId(i)}});e._scale=new Ch({ordinalMeta:t})},r.prototype._setCellId=function(e){$f(e.id,this.dimIdx,e.firstLeafLocator,e.level-this._levels.length)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;A(this._cells,function(a){$f(a.id,t,a.firstLeafLocator,a.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,a=this._model.get("levels",!0);a=H(a)?a:[],A(this._levels,function(n,i){$f(n.id,t,0,i-e),n.option=a[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,a,n){if(e=e||new Fn,t===this.dimIdx){var i=this._leavesCount,o=null!=a?Math.max(0,a):0;n=null!=n?Math.min(n,i):i,e.reset(this._cells,o,o+n)}else i=this._levels.length,o=null!=a?Math.max(0,a+i):0,n=null!=n?Math.min(n,i):i,e.reset(this._levels,o,o+n);return e},r.prototype.resetCellIterator=function(e){return(e||new Fn).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new Fn).reset(this._levels,0)},r.prototype.getLayout=function(e,t,a){var n=this.getUnitLayoutInfo(t,a);e[he[t]]=n?n.xy:NaN,e[nt[t]]=n?n.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return Pt(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}(),Kk=function(){function r(e,t,a){this._model=t,this._dims=a,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=j(),function a(){var i=[],o=e._model.getShallow("data");o&&!H(o)&&(o=null),A(o,function(p,d){if(se(p)&&H(p.coord)){var g=zk([]);if(Gk(g,null,p.coord,e._dims,p.coordClamp?Mn[e._kind]:Mn.none),!Kp(g,0)&&!Kp(g,1)){var m=p&&p.mergeCells,_={id:new le,span:new le,locatorRange:g,option:p,cellMergeOwner:m};Yk(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;Wk(f,s,i,l);for(var v=0;v<l;v++)s[v]&&(i[v].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var c=G({}
vendor: 14,481 bytes, line 1
1,u.option);c.coord=null;var h={id:new le,span:new le,locatorRange:f,option:c,cellMergeOwner:!0};Yk(h,f),i.push(h)}}}A(i,function(p){var d=n(p.id.x,p.id.y);if(p.cellMergeOwner&&(d.cellMergeOwner=!0,d.span=p.span,d.locatorRange=p.locatorRange,d.spanRect={x:NaN,y:NaN,width:NaN,height:NaN},e._cellMergeOwnerList.push(d)),p.cellMergeOwner||p.option)for(var g=0;g<p.span.y;g++)for(var y=0;y<p.span.x;y++){var m=n(p.id.x+y,p.id.y+g);m.option=p.option,p.cellMergeOwner&&(m.inSpanOf=d)}})}()),t;function n(i,o){var s=qk(i,o),l=t.get(s);return l||(l=t.set(s,{id:new le(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(qk(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!Kp(e,0)&&!Kp(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){E1[0]=e[0][0],E1[1]=e[1][0];var t=this.getCell(E1),a=t&&t.inSpanOf;if(a)return void function dee(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}(e,a.locatorRange)}var n=this._cellMergeOwnerList;Wk(e,null,n,n.length)},r}(),E1=[];function qk(r,e){return r+"|"+e}var k1={show:!0,color:B.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function O1(r){return{color:"none",borderWidth:1,borderColor:r?"none":B.color.borderTint}}var jk={show:!0,label:k1,itemStyle:O1(!1),silent:void 0,dividerLineStyle:{width:1,color:B.color.border}},See={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:jk,y:jk,body:{label:k1,itemStyle:O1(!1),silent:void 0},corner:{label:k1,itemStyle:O1(!0),silent:void 0},backgroundStyle:{color:"none",borderColor:B.color.axisLine,borderWidth:1},triggerEvent:!1},xee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.optionUpdated=function(){var t=this._dimModels={x:new Jk(this.get("x",!0)||{}),y:new Jk(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var i={x:t.x.dim=new Xk("x",t.x),y:t.y.dim=new Xk("y",t.y)};this._body=new Kk("body",new De(this.getShallow("body")),i),this._corner=new Kk("corner",new De(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=See,e}(Ce),Jk=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e}(De);const bee=xee;var jp=Math.round,Cee={normal:25,special:100},Aee={normal:50,special:125},Mee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a){this.group.removeAll();var n=this.group,o=t.coordinateSystem.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,f=l.dim;(function Dee(r,e,t){function a(n){var i=e.getDimensionModel(he[n]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),f=[],v=o.resetCellIterator();v.next();){var c=v.item,h={};fe.copy(h,c.rect),Ya(f,c.id.x,c.id.y),Qk(f,e,r,t,c.option,s,l,i,h,c.option.value,Aee,u,0===n?"x":"y")}}a(0),a(1)})(n,t,a),function Lee(r,e,t,a,n){function i(o,s,l,u){var f=new De(e.getShallow(o,!0)),v=f.getModel("itemStyle"),c=f.getModel("label"),h=new Fn,p=new Fn,d=[],g=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(p,1);p.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=p.item;Ya(d,y.id.x,m.id.y);var _=s.getCell(d);if(!_||!_.inSpanOf||_.inSpanOf===_){var S={};_&&_.span?fe.copy(S,_.spanRect):(y.dim.getLayout(S,0,d[0]),m.dim.getLayout(S,1,d[1]));var x=_?_.option:null;Qk(d,e,r,n,x,v,c,f,S,x?x.value:null,Cee,g,o)}}}i("body",e.getBody(),t,a),t.shouldShow()&&a.shouldShow()&&i("corner",e.getCorner(),a,t)}(n,t,u,f,a);var c=Q(t.getShallow("borderZ2",!0),99),h=c-1,p=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);p.lineWidth=0;var d=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);d.fill="none";var g=N1(o.clone(),p,0),y=N1(o.clone(),d,c);g.silent=!0,y.silent=!0,n.add(g),n.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&n.add($k({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&n.add($k({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e}(Xe);function Qk(r,e,t,a,n,i,o,s,l,u,f,v,c){var h;Jp.option=n?n.itemStyle:null,Jp.parentModel=i,Rl.option=n,Rl.parentModel=s;var p=Q(Rl.getShallow("z2"),n&&n.itemStyle?f.special:f.normal),d=v&&v.show,g=N1(l,Jp.getItemStyle(),p);t.add(g);var m,y=Rl.get("cursor");if(null!=y&&g.attr("cursor",y),null!=u){var _=u+"";rs.option=n?n.label:null,rs.parentModel=o,rs.ecModel=a;var S=rs.getShallow("formatter");if(S){var x={componentType:"matrix",componentIndex:e.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(X(S))_=qT(S,x);else if(ae(S)){var b=S(x);null!=b&&(_=b+"")}}if(bt(g,{normal:rs},{defaultText:_,autoOverflowArea:!0,layoutRect:re(g.shape)}),m=g.getTextContent()){m.z2=p+1;var w=m.style;if(w&&w.overflow&&"none"!==w.overflow&&w.lineOverflow){var C={};fe.copy(C,l),po(C,((null===(h=g.style)||void 0===h?void 0:h.lineWidth)||0)/2,!0,!0),g.updateInnerText(),m.getLocalTransform(Qp),hr(Qp,Qp),fe.applyTransform(C,C,Qp),m.setClipPath(new be({shape:C}))}}hn({el:g,componentModel:e,itemName:_,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}var T=e.get("triggerEvent",!0);if(m){var M=rs.get("silent");null==M&&(M=!(T||d)),m.silent=M,m.ignoreHostSilent=!0}var D=Rl.get("silent");if(null==D&&(D=!g.style||"none"===g.style.fill||!g.style.fill),g.silent=D,T&&g){var I={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:c,name:m&&m.style?m.style.text:void 0,value:u,coord:r.slice()};ue(g).eventData=I}jg(Rl),jg(Jp),jg(rs)}var Rl=new De,Jp=new De,rs=new De,Qp=[];function N1(r,e,t){var a=e.lineWidth;if(a){var n=r.x+r.width,i=r.y+r.height;r.x=gr(r.x,a,!0),r.y=gr(r.y,a,!0),r.width=gr(n,a,!0)-r.x,r.height=gr(i,a,!0)-r.y}return new be({shape:r,style:e,z2:t})}function $k(r,e,t){var a=e.lineWidth;return a&&(jp(2*r.x1)===jp(2*r.x2)&&(r.x1=r.x2=gr(r.x1,a,!0)),jp(2*r.y1)===jp(2*r.y2)&&(r.y1=r.y2=gr(r.y1,a,!0))),new ct({shape:r,style:e,silent:!0,z2:t})}const Iee=Mee;var Pee=function(){function r(e,t,a){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var n=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:n.x.dim,y:n.y.dim},this._resize(e,a)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var a=[];return e.eachComponent("matrix",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){Cu({targetModel:i,coordSysType:"matrix",coordSysProvider:rC})}),a},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var a=this._dims,n=this._dimModels,i=this._rect=qe(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});eO(n,a,i,0),eO(n,a,i,1),tO(0,a),tO(1,a),rO(this._model.getBody(),a),rO(this._model.getCorner(),a)},r.prototype.dataToPoint=function(e,t,a){return a=a||[],this.dataToLayout(e,t,ev),a[0]=ev.rect.x+ev.rect.width/2,a[1]=ev.rect.y+ev.rect.height/2,a},r.prototype.dataToLayout=function(e,t,a){var n=this._dims,i=(a=a||{}).rect=a.rect||{};i.x=i.y=i.width=i.height=NaN;var o=a.matrixXYLocatorRange=zk(a.matrixXYLocatorRange);return H(e)&&(Gk(o,null,e,n,Q(t&&t.clamp,Mn.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==Mn.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==Mn.body)&&this._model.getCorner().expandRangeByCellMerge(o)),Zk(i,o,n,0),Zk(i,o,n,1)),a},r.prototype.pointToData=function(e,t,a){var n=this._dims;return aO(Va,0,n,e,t&&t.clamp),aO(Va,1,n,e,t&&t.clamp),(a=a||[])[0]=a[1]=NaN,Va.y===Gt.inCorner&&Va.x===Gt.inBody?nO(Va,a,0,n):Va.x===Gt.inCorner&&Va.y===Gt.inBody?nO(Va,a,1,n):(iO(Va,a,0,n),iO(Va,a,1,n)),a},r.prototype.convertToPixel=function(e,t,a,n){var i=z1(t);return i===this?i.dataToPoint(a,n):void 0},r.prototype.convertToLayout=function(e,t,a,n){var i=z1(t);return i===this?i.dataToLayout(a,n):void 0},r.prototype.convertFromPixel=function(e,t,a,n){var i=z1(t);return i===this?i.pointToData(a,n):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r}(),ev={rect:{x:NaN,y:NaN,width:NaN,height:NaN}},$p=new Fn,B1=new Fn;function eO(r,e,t,a){for(var n=1-a,i=e[he[a]],o=e[he[n]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,a);u.next();)u.item.wh=u.item.xy=NaN;for(var f=t[nt[a]],v=i.getLocatorCount(a)+o.getLocatorCount(a),c=new De,h=o.resetLevelIterator();h.next();)c.option=h.item.option,c.parentModel=r[he[n]],g(h.item,s?c.get("levelSize"):0);for(var p=new De,d=i.resetCellIterator();d.next();)2===d.item.type&&(p.option=d.item.option,p.parentModel=void 0,g(d.item,p.get("size")));function g(w,C){var T=function Ree(r,e,t){return V1(jv(r,t[nt[e]]),t[nt[e]])}(C,a,t);Pt(T)||(w.wh=V1(T,f),f=V1(f-w.wh),v--)}var y=v?f/v:0,m=!v&&f>=1,_=t[he[a]],S=i.getLocatorCount(a)-1,x=new Fn;for(o.resetLayoutIterator(x,a);x.next();)b(x.item);for(i.resetLayoutIterator(x,a);x.next();)b(x.item);function b(w){Pt(w.wh)&&(w.wh=y),w.xy=_,w.id[he[a]]===S&&!m&&(w.wh=t[he[a]]+t[nt[a]]-w.xy),_+=w.wh}}function tO(r,e){for(var t=e[he[r]].resetCellIterator();t.next();){var a=t.item;ed(a.rect,r,a.id,a.span,e),ed(a.rect,1-r,a.id,a.span,e),3===a.type&&(a.xy=a.rect[he[r]],a.wh=a.rect[nt[r]])}}function rO(r,e){r.travelExistingCells(function(t){var a=t.span;if(a){var n=t.spanRect,i=t.id;ed(n,0,i,a,e),ed(n,1,i,a,e)}})}function ed(r,e,t,a,n){r[nt[e]]=0;var o=t[he[e]]<0?n[he[1-e]]:n[he[e]],s=o.getUnitLayoutInfo(e,t[he[e]]);if(r[he[e]]=s.xy,r[nt[e]]=s.wh,a[he[e]]>1){var l=o.getUnitLayoutInfo(e,t[he[e]]+a[he[e]]-1);r[nt[e]]=l.xy+l.wh-s.xy}}function V1(r,e){return Math.max(Math.min(r,Q(e,1/0)),0)}function z1(r){var e=r.matrixModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}var Gt={inBody:1,inCorner:2,outside:3},Va={x:null,y:null,point:[]};function aO(r,e,t,a,n){var i=t[he[e]],o=t[he[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,v=r.point[e]=a[e];if(l||f)if(n!==Mn.body)if(n!==Mn.corner){var c=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:c,p=s?s.xy+s.wh:c;if(v<h){if(!n)return void(r[he[e]]=Gt.outside);v=h}else if(v>p){if(!n)return void(r[he[e]]=Gt.outside);v=p}r.point[e]=v,r[he[e]]=c<=v&&v<=p?Gt.inBody:h<=v&&v<=c?Gt.inCorner:Gt.outside}else f?(r[he[e]]=Gt.inCorner,v=Be(f.xy+f.wh,xe(u.xy,v)),r.point[e]=v):r[he[e]]=Gt.outside;else l?(r[he[e]]=Gt.inBody,v=Be(s.xy+s.wh,xe(l.xy,v)),r.point[e]=v):r[he[e]]=Gt.outside;else r[he[e]]=Gt.outside}function nO(r,e,t,a){var n=1-t;if(r[he[t]]!==Gt.outside)for(a[he[t]].resetCellIterator(B1);B1.next();){var i=B1.item;if(oO(r.point[t],i.rect,t)&&oO(r.point[n],i.rect,n))return e[t]=i.ordinal,void(e[n]=i.id[he[n]])}}function iO(r,e,t,a){if(r[he[t]]!==Gt.outside)for((r[he[t]]===Gt.inCorner?a[he[1-t]]:a[he[t]]).resetLayoutIterator($p,t);$p.next();)if(Eee(r.point[t],$p.item))return void(e[t]=$p.item.id[he[t]])}function Eee(r,e){return e.xy<=r&&r<=e.xy+e.wh}function oO(r,e,t){return e[he[t]]<=r&&r<=e[he[t]]+e[nt[t]]}const kee=Pee;function sO(r,e){var t;return A(e,function(a){null!=r[a]&&"auto"!==r[a]&&(t=!0)}),t}var lO=["transition","enterFrom","leaveTo"],Vee=lO.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function td(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),r&&e)for(var a=t?lO:Vee,n=0;n<a.length;n++){var i=a[n];null==r[i]&&null!=e[i]&&(r[i]=e[i])}}var Gee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return N(e,r),e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=gw(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,v){var c=f.newOption;c&&(u.push(c),function Nee(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),null==e.parentId){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}(f,c),function Bee(r,e,t){var a=G({},t),n=r[e],i=t.$action||"merge";"merge"===i?n?(de(n,a,!0),wa(n,a,{ignoreSize:!0}),sC(t,n),td(t,n),td(t,n,"shape"),td(t,n,"style"),td(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:"replace"===i?r[e]=a:"remove"===i&&n&&(r[e]=null)}(o,v,c),function zee(r,e){if(r&&(r.hv=e.hv=[sO(e,["left","right"]),sO(e,["top","bottom"])],"group"===r.type)){var t=r,a=e;null==t.width&&(t.width=a.width=0),null==t.height&&(t.height=a.height=0)}}(o[v],c))},this),n.elements=ke(o,function(f){return f&&delete f.$action,null!=f})},e.prototype._flatten=function(t,a,n){A(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Ce),uO={path:null,compoundPath:null,group:oe,image:At,text:Me},Yr=ge(),Fee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(){this._elMap=j()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");A(a,function(l){var u=pt(l.id,null),f=null!=u?n.get(u):null,v=pt(l.parentId,null),c=null!=v?n.get(v):i,h=l.type,p=l.style;"text"===h&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&KE(p,h,!!g,!!d)){var y=qE(p,h,!0);
1!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=function Hee(r){return r=G({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(aC),function(e){delete r[e]}),r}(l),_=l.$action||"merge",S="merge"===_,x="replace"===_;if(S){var w=f;(b=!f)?w=fO(u,c,l.type,n):(w&&(Yr(w).isNew=!1),nk(w)),w&&(zp(w,m,t,{isInit:b}),vO(w,l,o,s))}else if(x){rd(f,l,n,t);var C=fO(u,c,l.type,n);C&&(zp(C,m,t,{isInit:!0}),vO(C,l,o,s))}else"remove"===_&&(tk(f,l),rd(f,l,n,t));var T=n.get(u);if(T&&d)if(S){var M=T.getTextContent();M?M.attr(d):T.setTextContent(new Me(d))}else x&&T.setTextContent(new Me(d));if(T){var D=l.clipPath;if(D){var I=D.type,L=void 0,b=!1;if(S){var P=T.getClipPath();L=(b=!P||Yr(P).type!==I)?G1(I):P}else x&&(b=!0,L=G1(I));T.setClipPath(L),zp(L,D,t,{isInit:b}),Fp(L,D.keyframeAnimation,t)}var E=Yr(T);T.setTextConfig(g),E.option=l,function Wee(r,e,t){var a=ue(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ue(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}(T,t,l),hn({el:T,componentModel:t,itemName:T.name,itemTooltipOption:l.tooltip}),Fp(T,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],f=0;f<n.length;f++)if((h=null!=(c=pt((v=n[f]).id,null))?o.get(c):null)&&h.isGroup){var d=(p=h.parent)===i,g=Yr(h),y=Yr(p);g.width=K(g.option.width,d?s:y.width)||0,g.height=K(g.option.height,d?l:y.height)||0}for(f=n.length-1;f>=0;f--){var v,c,h;if(h=null!=(c=pt((v=n[f]).id,null))?o.get(c):null){y=Yr(p=h.parent);var p,_={},S=Pc(h,v,p===i?{width:s,height:l}:{width:y.width,height:y.height},null,{hv:v.hv,boundingMode:v.bounding},_);if(!Yr(h).isNew&&S){for(var x=v.transition,b={},w=0;w<u.length;w++){var C=u[w],T=_[C];x&&(es(x)||pe(x,C)>=0)?b[C]=T:h[C]=T}Pe(h,b,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){rd(n,Yr(n).option,a,t._lastGraphicModel)}),this._elMap=j()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Xe);function G1(r){var t=new(J(uO,r)?uO[r]:zu(r))({});return Yr(t).type=r,t}function fO(r,e,t,a){var n=G1(t);return e.add(n),a.set(r,n),Yr(n).id=r,Yr(n).isNew=!0,n}function rd(r,e,t,a){r&&r.parent&&("group"===r.type&&r.traverse(function(i){rd(i,e,t,a)}),Gp(r,e,a),t.removeKey(Yr(r).id))}function vO(r,e,t,a){r.isGroup||A([["cursor",Rr.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];J(e,i)?r[i]=Q(e[i],n[1]):null==r[i]&&(r[i]=n[1])}),A(Te(e),function(n){if(0===n.indexOf("on")){var i=e[n];r[n]=ae(i)?i:null}}),J(e,"draggable")&&(r.draggable=e.draggable),null!=e.name&&(r.name=e.name),null!=e.id&&(r.id=e.id)}var cO=["x","y","radius","angle","single"],Yee=ge(),Zee=["cartesian2d","polar","singleAxis"];function pi(r){return r+"Axis"}function hO(r){var e=r.ecModel,t={infoList:[],infoMap:j()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(pi(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(t.infoList.push(l={model:o,axisModels:[]}),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}function pO(r){var e=Yee(AM(r));return e.axisProxyMap||(e.axisProxyMap=j())}function ad(r){if(r)return pO(r.ecModel).get(r.uid)}function dO(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?ad(t.model):null}var F1=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}(),jee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return N(e,r),e.prototype.init=function(t,a,n){var i=gO(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=gO(t);de(this.option,t,!0),de(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){"value"===this._rangePropMode[o]&&
vendor: 13,520 bytes, line 1
1(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=j();this._fillSpecifiedTargetAxis(a)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(cO,function(n){var i=this.getReferringComponents(pi(n),Uz);if(i.specified){a=!0;var o=new F1;A(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o="vertical"===a?"y":"x";l(n.findComponents({mainType:o+"Axis"}),o)}function l(u,f){var v=u[0];if(v){var c=new F1;if(c.add(v.componentIndex),t.set(f,c),i=!1,"x"===f||"y"===f){var h=v.getReferringComponents("grid",at).models[0];h&&A(u,function(p){v.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",at).models[0]&&c.add(p.componentIndex)})}}}i&&l(n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}}),"single"),i&&A(cO,function(u){if(i){var f=n.findComponents({mainType:pi(u),filter:function(c){return"category"===c.get("type",!0)}});if(f[0]){var v=new F1;v.add(f[0].componentIndex),t.set(u,v),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),"y"===t?"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,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=null!=t[i[0]],l=null!=t[i[1]];s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){null==t&&(t=this.ecModel.getComponent(pi(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){return ad(this.getAxisModel(t,a))},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(pi(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(null!=t[i[0]]||null!=t[i[1]])&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,a){if(null!=t||null!=a)return this.getAxisProxy(t,a).getWindow().value;var n=this.findRepresentativeAxisProxy();return n?n.getWindow().value:void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return ad(t);for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Ce);function gO(r){var e={};return A(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const tv=jee;var Jee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="dataZoom.select",e}(tv);const Qee=Jee;var $ee=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e}(Xe);const H1=$ee;var ete=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="dataZoom.select",e}(H1);const tte=ete;var rte=function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return re(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(function Xee(r){var e=r.get("coordinateSystem");return pe(Zee,e)>=0}(t)){var a=pi(this._dimName),n=t.getReferringComponents(a,at).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return re(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var f,t=this._extent,a=this.getAxisModel().axis,n=a.scale,o=this._dataZoomModel.getRangePropMode(),s=[0,100],l=[],u=[],v=[!1,!1];A(["start","end"],function(_,S){var x=e[_],b=e[_+"Value"];"percent"===o[S]?(null==x&&(x=s[S]),b=Re(x,s,t),v[S]=!0):(f=!0,null==b?b=t[S]:(b=n.parse(b),n.sanitize&&(b=n.sanitize(b,t))),x=Re(b,t,s)),u[S]=null==b||isNaN(b)?t[S]:b,l[S]=null==x||isNaN(x)?s[S]:x}),Ct(u),Ct(l);var c=this._minMaxSpan;function h(_,S,x,b,w){var C=w?"Span":"ValueSpan";li(0,_,x,"all",c["min"+C],c["max"+C]);for(var T=0;T<2;T++)S[T]=Re(_[T],x,b,!0),w&&(S[T]=S[T],v[T]=!0);ec(S)}f?h(u,l,t,s,!1):h(l,u,s,t,!0);var p=Kt(n)||il(n),d=a.getExtent(),g=rt(d[1]-d[0]),y=p?0:Gg(u,g,.5);A([[0,Li],[1,Ir]],function(_){var S=_[0],x=_[1];!v[S]||!isFinite(y)||(u[S]=Ie(u[S],y),u[S]=Be(t[1],xe(t[0],u[S])),l[S]===s[S]&&(u[S]=t[S],p&&(u[S]=x(u[S]))))}),ec(u);var m=[Re(u[0],t,s,!0),Re(u[1],t,s,!0)];return ec(m),{value:u,percent:l,percentInverted:m,valuePrecision:y}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var a=this.getAxisModel().axis;Ao(a,2);var n=a.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=ie({start:t[0],end:t[1]},i));var o=this._window=this.calculateDataWindow(i),s=o.percent,l=o.value;0!==s[0]&&n.setZoomMM(0,l[0]),100!==s[1]&&n.setZoomMM(1,l[1])}},r.prototype.filterData=function(e,t){if(this.hostedBy(e)){var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._window.value;"none"!==i&&A(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if("weakFilter"===i){var v=u.getStore(),c=W(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,d,g,y=0;y<f.length;y++){var m=v.get(c[y],h),_=!isNaN(m),S=m<o[0],x=m>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(p=!0),x&&(d=!0)}return g&&p&&d})}else A(f,function(h){if("empty"===i)l.setData(u=u.map(h,function(d){return function s(l){return l>=o[0]&&l<=o[1]}(d)?d:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});A(f,function(h){u.setApproximateExtent(o,h)})}})}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._extent;A(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Re(a[0]+o,a,[0,100],!0):null!=i&&(o=Re(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r}();const ate=rte;var nte={dirtyOnOverallProgress:!0,getTargetSeries:function(r){var t=[];!function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(pi(o),s);n(o,s,l,i)})})}(function(n,i,o,s){if(!ad(o)){var l=new ate(n,i,s,r);t.push(l),function qee(r,e){pO(r.ecModel).set(r.uid,e)}(o,l)}});var a=j();return A(t,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var a=[];t.eachTargetAxis(function(n,i){var o=t.getAxisProxy(n,i),s=dO(t,o);s?a.push([o,s]):o.reset(t,null)}),A(a,function(n){n[0].reset(t,n[1].getWindow().percentInverted)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getWindow(),i=n.percent,o=n.value;t.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};const ite=nte;var ste=Ts();function W1(r){ste(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,ite),function ote(r){r.registerAction("dataZoom",function(e,t){A(function Kee(r,e){var i,t=j(),a=[],n=j();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});do{i=!1,r.eachComponent("dataZoom",o)}while(i);function o(f){!n.get(f.uid)&&function l(f){var v=!1;return f.eachTargetAxis(function(c,h){var p=t.get(c);p&&p[h]&&(v=!0)}),v}(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),function u(f){f.eachTargetAxis(function(v,c){(t.get(v)||t.set(v,[]))[c]=!0})}(f)}return a}(t,e),function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function lte(r){r.registerComponentModel(Qee),r.registerComponentView(tte),W1(r)}var za=function(){return function r(){}}(),yO={};function El(r,e){yO[r]=e}function mO(r){return yO[r]}var ute=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t,a,n){var i=n.getTheme().get("toolbox"),o=i?i.feature:null;o&&(this._themeFeatureOption=G({},o),i.feature={}),r.prototype.init.call(this,t,a,n),o&&(i.feature=o)},e.prototype.optionUpdated=function(){A(this.option.feature,function(t,a){var n=this._themeFeatureOption,i=mO(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(this.ecModel)),n&&n[a]&&(de(t,n[a]),n[a]=null),de(t,i.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:B.size.m,itemSize:15,itemGap:B.size.s,showTitle:!0,iconStyle:{borderColor:B.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:B.color.accent70}},tooltip:{show:!1,position:"bottom"}},e}(Ce);const fte=ute;function _O(r,e){var t=ks(e.get("padding")),a=e.getItemStyle(["color","opacity"]);return a.fill=e.get("backgroundColor"),new be({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})}var vte=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),t.get("show")){var s=+t.get("itemSize"),l="vertical"===t.get("orient"),u=t.get("feature")||{},f=this._features||(this._features=j()),v=[];A(u,function(m,_){v.push(_)}),new dn(this._featureNames||[],v).add(c).update(c).remove(Se(c,null)).execute(),this._featureNames=ke(v,function(m){return f.hasKey(m)});var p=mt(t,n).refContainer,d=t.getBoxLayoutParams(),g=t.get("padding"),y=qe(d,p,g);eo(t.get("orient"),o,t.get("itemGap"),y.width,y.height),Pc(o,d,p,g),o.add(_O(o.getBoundingRect(),t)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),x=S.textConfig||(S.textConfig={}),b=m.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!ae(w)&&_){var C=w.style||(w.style={}),T=Hv(_,Me.makeFont(C)),M=m.x+o.x,I=!1;m.y+o.y+s+T.height>n.getHeight()&&(x.position="top",I=!0);var L=I?-5-T.height:s+10;M+T.width/2>n.getWidth()?(x.position=["100%",L],C.align="right"):M-T.width/2<0&&(x.position=[0,L],C.align="left")}})}function c(m,_){var D,S=null!=m&&null==_,x=null!=m&&null!=_,b=null==m,w=S||x?v[m]:v[_],C=u[w],T=S||x?new De(C,t,a):null,M=T&&T.get("show");if(S){if(!M)return;if(function cte(r){return 0===r.indexOf("my")}(w))D={onclick:T.option.onclick,featureName:w};else{var I=mO(w);if(!I)return;D=new I}f.set(w,D)}else D=f.get(w);if(b||!M)return SO(D)&&D.dispose&&D.dispose(a,n),void f.removeKey(w);i&&null!=i.newTitle&&i.featureName===w&&(C.title=i.newTitle),S&&(D.uid=Ji("toolbox-feature")),D.model=T,D.ecModel=a,D.api=n,function h(m,_,S){var T,M,x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof za&&_.getIcons?_.getIcons():m.get("icon"),C=m.get("title")||{};X(w)?(T={})[S]=w:T=w,X(C)?(M={})[S]=C:M=C;var D=m.iconPaths={};A(T,function(I,L){var P=Zs(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle()),P.ensureState("emphasis").style=b.getItemStyle();var R=new Me({style:{text:M[L],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Ry({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},a)},ignore:!0});P.setTextContent(R),hn({el:P,componentModel:t,itemName:L,formatterParamsExtra:{title:M[L]}}),P.__title=M[L],P.on("mouseover",function(){var k=b.getItemStyle(),O=l?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";R.setStyle({fill:b.get("textFill")||k.fill||k.stroke||B.color.neutral99,backgroundColor:b.get("textBackgroun
1dColor")}),P.setTextConfig({position:b.get("textPosition")||O}),R.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==m.get(["iconStatus",L])&&n.leaveEmphasis(this),R.hide()}),("emphasis"===m.get(["iconStatus",L])?ln:un)(P),o.add(P),P.on("click",q(_.onclick,_,a,n,L)),D[L]=P})}(T,D,w),T.setIconStatus=function(L,P){var E=this.option,R=this.iconPaths;E.iconStatus=E.iconStatus||{},E.iconStatus[L]=P,R[L]&&("emphasis"===P?ln:un)(R[L])},SO(D)&&D.render&&D.render(T,a,n,i)}},e.prototype.updateView=function(t,a,n,i){A(this._features,function(o){o&&o instanceof za&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.dispose=function(t,a){A(this._features,function(n){n&&n instanceof za&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(Xe);function SO(r){return r instanceof za}const hte=vte;var pte=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===a.getZr().painter.getType(),s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||B.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Ee.browser;if("function"!=typeof MouseEvent||!u.newEdge&&(u.ie||u.edge))if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,p=o?decodeURIComponent(c[1]):c[1];h&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),S.focus(),x.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=i}else{var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}},e.getDefaultOption=function(t){return{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.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:B.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(za);const dte=pte;var xO="__ec_magicType_stack__",gte=[["line","bar"],["stack"]],yte=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return A(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){return{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.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(bO[n]){var s={series:[]};A(gte,function(v){pe(v,n)>=0&&A(v,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},function(v){var p=bO[n](v.subType,v.id,v,i);p&&(ie(p,v.option),s.series.push(p));var d=v.coordinateSystem;if(d&&"cartesian2d"===d.type&&("line"===n||"bar"===n)){var g=d.getAxesByScale("ordinal")[0];if(g){var m=g.dim+"Axis",S=v.getReferringComponents(m,at).models[0].componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap="bar"===n}}});var u,f=n;"stack"===n&&(u=de({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(za),bO={line:function(r,e,t,a){if("bar"===r)return de({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("line"===r)return de({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 n=t.get("stack")===xO;if("line"===r||"bar"===r)return a.setIconStatus("stack",n?"normal":"emphasis"),de({id:e,stack:n?"":xO},a.get(["option","stack"])||{},!0)}};ra({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const mte=yte;var nd=new Array(60).join("-");function Ste(r){var e=[];return A(r,function(t,a){var n=t.categoryAxis,o=t.valueAxis.dim,s=[" "].concat(W(t.series,function(h){return h.name})),l=[n.model.getCategories()];A(t.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join("\t")],f=0;f<l[0].length;f++){for(var v=[],c=0;c<l.length;
1c++)v.push(l[c][f]);u.push(v.join("\t"))}e.push(u.join("\n"))}),e.join("\n\n"+nd+"\n\n")}function xte(r){return W(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,s=t.getName(arguments[i-1]),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+"\t":"")+n.join("\t"))}),a.join("\n")}).join("\n\n"+nd+"\n\n")}function id(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var U1=new RegExp("[\t]+","g");var Mte=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||B.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),c=i.get("contentToOption"),h=function bte(r){var e=function _te(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)t.push(n);else{var o=i.getBaseAxis();if("category"===o.type){var s=function z8(r){return r.dim+"_"+r.index}(o);e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}(r);return{value:ke([Ste(e.seriesGroupByCategoryAxis),xte(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+nd+"\n\n"),meta:e.meta}}(t);if(ae(v)){var p=v(a.getOption());X(p)?u.innerHTML=p:yi(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=h.value,u.appendChild(f)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function b(){n.removeChild(o),x._dom=null}jd(_,"click",b),jd(S,"click",function(){if(null==c&&null!=v||null!=c&&null==v)b();else{var w;try{w=ae(c)?c(u,a.getOption()):function Ate(r,e){var t=r.split(new RegExp("\n*"+nd+"\n*","g")),a={series:[]};return A(t,function(n,i){if(function wte(r){if(r.slice(0,r.indexOf("\n")).indexOf("\t")>=0)return!0}(n)){var o=function Tte(r){for(var e=r.split(/\n+/g),a=[],n=W(id(e.shift()).split(U1),function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=id(e[i]).split(U1);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else o=function Cte(r){for(var e=r.split(/\n+/g),t=id(e.shift()),a=[],n=0;n<e.length;n++){var i=id(e[n]);if(i){var o=i.split(U1),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);1===l.length&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}(n),a.series.push(o)}),a}(f.value,g)}catch(C){throw b(),new Error("Data view format error "+C)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),b()}}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.dispose=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:B.color.background,textColor:B.color.primary,textareaColor:B.color.background,textareaBorderColor:B.color.border,buttonColor:B.color.accent50,buttonTextColor:B.color.neutral00}},e}(za);function Dte(r,e){return W(r,function(t,a){var n=e&&e[a];if(se(n)&&!H(n)){se(t)&&!H(t)||(t={value:t});var o=null!=n.name&&null==t.name;return t=ie(t,n),o&&delete t.name,t}return t})}ra({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];A(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(n){var i=n.get("data");t.push({name:a.name,data:Dte(a.data,i)})}else t.push(G({type:"scatter"},a))}),e.mergeOption(ie({series:t},r.newOption))});const Lte=Mte;var wO=A,TO=ge();function Y1(r){var e=TO(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var kte=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.onclick=function(t,a){(function Rte(r){TO(r).snapshots=null})(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){return{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.getLocaleModel().get(["toolbox","restore","title"])}},e}(za);ra({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const Ote=kte;var Nte=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Bte=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=CO(t,e);
vendor: 5,177 bytes, line 1
1A(Vte,function(o,s){(!a||!a.include||pe(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=X1[a.brushType](0,i,n);a.__rangeOffset={offset:LO[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(n){var i=this.findTargetInfo(n,t);i&&!0!==i&&A(i.coordSyses,function(o){var s=X1[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&!0!==n){a.panelId=n.panelId;var i=X1[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?LO[a.brushType](i.values,o.offset,function zte(r,e){var t=PO(r),a=PO(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return W(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:lE(n),isTargetByCursor:fE(n,e,a.coordSysModel),getLinearBrushOtherExtent:uE(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return!0===n||n&&pe(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=CO(t,e),i=0;i<a.length;i++){var o=a[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<AO.length;l++)if(AO[l](n,o))return o}return!0},r}();function Z1(r){return r[0]>r[1]&&r.reverse(),r}function CO(r,e){return bs(r,e,{includeMainTypes:Nte})}var Vte={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=j(),o={},s={};!t&&!a&&!n||(A(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var f=[];A(l.coordinateSystem.getCartesians(),function(v,c){(pe(t,v.getAxis("x").model)>=0||pe(a,v.getAxis("y").model)>=0)&&f.push(v)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:MO.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:MO.geo})})}},AO=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],MO={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=s2(null,r);return ab(e,e,hp(null,r)),e}},X1={lineX:Se(DO,0),lineY:Se(DO,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[Z1([n[0],i[0]]),Z1([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]];return{values:W(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s}),xyMinMax:n}}};function DO(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=Z1(W([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var LO={lineX:Se(IO,0),lineY:Se(IO,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 W(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function IO(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function PO(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const K1=Bte;var q1=A,Gte=function zz(r){return"\0_ec_\0"+r}("toolbox-dataZoom_"),Fte={x:"width",y:"height"},Hte=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new WS(n.getZr()),this._brushController.on("brush",q(this._onBrush,this)).mount()),function Yte(r,e,t,a,n){var i=t._isZoomActive;a&&"takeGlobalCursor"===a.type&&(i="dataZoomSelect"===a.key&&a.dataZoomSelectActive),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var s=new K1(j1(r),e,{include:["grid"]}).makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(!(!i||!s.length)&&{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()})}(t,a,this,i,n),function Ute(r,e){r.setIconStatus("back",function Ete(r){return Y1(r).length}(e)>1?"emphasis":"normal")}(t,a)},e.prototype.onclick=function(t,a,n){Wte[n].call(this)},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;
vendor: 4,550 bytes, line 1
1if(t.isEnd&&a.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new K1(j1(this.model),i,{include:["grid"]}).matchOutputRanges(a,i,function(u,f,v){if("cartesian2d"===v.type){var c=v.master.getRect().clone(),h=u.brushType;"rect"===h?(s("x",v,c,f[0]),s("y",v,c,f[1])):s({lineX:"x",lineY:"y"}[h],v,c,f)}}),function Ite(r,e){var t=Y1(r);wO(e,function(a,n){for(var i=t.length-1;i>=0&&!t[i][n];i--);if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}(i,n),this._dispatchZoomAction(n)}function s(u,f,v,c){var h=f.getAxis(u),p=h.model,d=function l(u,f,v){var c;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){h.getAxisModel(u,f.componentIndex)&&(c=h)}),c}(u,p,i),g=d.findRepresentativeAxisProxy(p).getMinMaxSpan(),y=h.scale.getExtent();(null!=g.minValueSpan||null!=g.maxValueSpan)&&(c=li(0,c.slice(),y,0,g.minValueSpan,g.maxValueSpan));var m=Gg(y,v[Fte[u]],.5);d&&(n[d.id]={dataZoomId:d.id,startValue:isFinite(m)?Ie(c[0],m):c[0],endValue:isFinite(m)?Ie(c[1],m):c[1]})}},e.prototype._dispatchZoomAction=function(t){var a=[];q1(t,function(n,i){a.push(re(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){return{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.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:B.color.backgroundTint}}},e}(za),Wte={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function Pte(r){var e=Y1(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return wO(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i]){a[i]=n;break}}),a}(this.ecModel))}};function j1(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}!function tF(r,e){Rt(null==am.get(r)&&e),am.set(r,e)}("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(e&&null!=e.get(t)){var a=e.getModel(t),n=[],o=bs(r,j1(a));return q1(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),q1(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")}),n}function s(l,u,f){var v=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:Gte+u+v};c[f]=v,n.push(c)}});const Zte=Hte;var Kte=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:B.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:B.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:B.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:B.color.tertiary,fontSize:14}},e}(Ce);const qte=Kte;function RO(r){var e=r.get("confine");return null!=e?!!e:"richText"===r.get("renderMode")}function EO(r){if(Ee.domSupported)for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}var kO=EO(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function OO(r,e){if(!r)return e;e=qy(e,!0);var t=r.indexOf(e);return(r=-1===t?e:"-"+r.slice(0,t)+"-"+e).toLowerCase()}var Qte=OO(EO(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),J1=OO(kO,"transform"),$te="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ee.transform3dSupported?"will-change:transform;":"");function NO(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!Ee.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Ee.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;
1"+J1+":"+o+";":[["top",0],["left",0],[kO,o]]}function BO(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&function XB(r,e,t,a,n){Zd(Yd,e,a,n,!0)&&Zd(r,t,Yd[0],Yd[1])}(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var ire=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ee.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(X(i)?document.querySelector(i):yi(i)?i:ae(i)&&i(e.getDom()));BO(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler;Ar(n.painter.getViewportRoot(),l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=function Jte(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}(t,"position"),n=t.style;"absolute"!==n.position&&"absolute"!==a&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=$te+function nre(r,e,t,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),v=r.getModel("textStyle"),c=gA(r,"html");return n.push("box-shadow:"+u+"px "+f+"px "+s+"px "+l),e&&i>0&&n.push(function rre(r,e,t){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return t&&(i="opacity"+(n=" "+r/2+"s "+a)+",visibility"+n),e||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Ee.transformSupported?""+J1+n:",left"+n+",top"+n)),Qte+":"+i}(i,t,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(p){var d="border-"+p,g=qy(d),y=r.get(g);null!=y&&n.push(d+":"+y+("color"===p?"":"px"))}),n.push(function are(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=Q(r.get("lineHeight"),Math.round(3*t/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}(v)),null!=c&&n.push("padding:"+ks(c).join("px ")+"px"),n.join(";")+";"}(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+NO(i[0],i[1],!0)+"border-color:"+Qi(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(null!=e){var s="";if(X(i)&&"item"===a.get("trigger")&&!RO(a)&&(s=function tre(r,e,t){if(!X(t)||"inside"===t)return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=Qi(e);var u,i=function ere(r){return"left"===r?"right":"right"===r?"left":"top"===r?"bottom":"top"}(t),o=Math.max(1.5*Math.round(n),6),s="",l=J1+":";pe(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u="left"===i?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u="top"===i?225:45)+"deg)");var f=u*Math.PI/180,v=o+n,c=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),p=e+" solid "+n+"px;";return'<div style="'+["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",(s+=";"+i+":-"+Math.round(100*((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-v)/2))/100+"px")+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+a+";"].join("")+'"></div>'}(a,n,i)),X(e))o.innerHTML=e+s;else if(e){o.innerHTML="",H(e)||(e=[e]);for(var l=0;l<e.length;l++)yi(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}}else o.innerHTML=""},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(BO(a,this._zr,this._container,e,t),null!=a[0]&&null!=a[1]){var n=this.el.style;A(NO(a[0],a[1]),function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",Ee.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;!function KB(r,e){function t(a){var n=a[_v];n&&(n.clearMarkers&&n.clearMarkers(),delete a[_v])}r&&t(r),e&&t(e)}(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var a=t.parentNode;a&&a.removeChild(t)}this.el=this._container=null},r}();const ore=ire;var sre=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),zO(this._styleCoord,this._zr,e.getW
1idth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;se(e)&&Oe(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Me({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:gA(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=VO(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;zO(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=di(i.borderWidth||0),s=VO(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[3];this.moveTo(this._styleCoord[2]*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&(!this._inContent||!this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function di(r){return Math.max(0,r)}function VO(r){var e=di(r.shadowBlur||0),t=di(r.shadowOffsetX||0),a=di(r.shadowOffsetY||0);return{left:di(e-t),right:di(e+t),top:di(e-a),bottom:di(e+a)}}function zO(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const lre=sre;var ure=new be({shape:{x:-1,y:-1,width:2,height:2}}),fre=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t,a){if(!Ee.node&&a.getDom()){var n=t.getComponent("tooltip"),i=this._renderMode=function Zz(r){return"auto"===r?Ee.domSupported?"html":"richText":r||"html"}(n.get("renderMode"));this._tooltipContent="richText"===i?new lre(a):new ore(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!Ee.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?Xs(this,"_updatePosition",50,"fixRate"):Uu(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var a=this._tooltipModel.get("triggerOn");Tk("itemTooltip",this._api,q(function(n,i,o){"none"!==a&&(a.indexOf(n)>=0?this._tryShow(i,o):"leave"===n&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(i.from!==this.uid&&!Ee.node&&n.getDom()){var o=GO(i,n);this._ticket="";var s=i.dataByCoordSys,l=function pre(r,e,t){var a=Xg(r).queryOptionMap,n=a.keys()[0];if(n&&"series"!==n){var l,o=ws(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o&&(t.getViewOfComponentModel(o).group.traverse(function(u){var f=ue(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l))return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}(i,a,n);
vendor: 2,792 bytes, line 1
1if(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:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&null!=i.x&&null!=i.y){var f=ure;f.x=i.x,f.y=i.y,f.update(),ue(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,a,n,i))return;var v=Ck(i,a),c=v.point[0],h=v.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:v.el,position:i.position,positionDefault:"bottom"},o)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,i.from!==this.uid&&this._hide(GO(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=s&&null!=l){var u=a.getSeriesByIndex(o);if(u&&"axis"===rv([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}},e.prototype._tryShow=function(t,a){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var l,u;if("legend"===ue(n).ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,yo(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(null!=ue(f).dataIndex?l=f:null!=ue(f).tooltipConfig&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=q(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=rv([a.tooltipOption],i),l=this._renderMode,u=[],f=vt("section",{blocks:[],noHeader:!0}),v=[],c=new _m;A(t,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value,b=S.axis,w=b.scale.parse(x);if(S&&null!=x){var C=mk(x,b,n,_.seriesDataIndices,_.valueLabelOpt),T=vt("section",{header:C,noHeader:!vr(C),sortBlocks:!0,blocks:[]});
vendor: 4,647 bytes, line 1
1f.blocks.push(T),A(_.seriesDataIndices,function(M){var D=n.getSeriesByIndex(M.seriesIndex),I=M.dataIndexInside,L=D.getDataParams(I);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=Lh(S.axis,{value:w}),L.axisValueLabel=C,L.marker=c.makeTooltipMarker("item",Qi(L.color),l);var P=KC(D.formatTooltip(I,!0,null)),E=P.frag;if(E){var R=rv([D],i).get("valueFormatter");T.blocks.push(R?G({valueFormatter:R},E):E)}P.text&&v.push(P.text),u.push(L)}})}})}),f.blocks.reverse(),v.reverse();var h=a.position,p=s.get("order"),d=hA(f,c,l,p,n.get("useUTC"),s.get("textStyle"));d&&v.unshift(d);var y=v.join("richText"===l?"\n\n":"<br/>");this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=ue(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,c=u.getData(v),h=this._renderMode,p=t.positionDefault,d=rv([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(null==g||"item"===g){var y=u.getDataParams(f,v),m=new _m;y.marker=m.makeTooltipMarker("item",Qi(y.color),h);var _=KC(u.formatTooltip(f,!1,v)),S=d.get("order"),x=d.get("valueFormatter"),b=_.frag,w=b?hA(x?G({valueFormatter:x},b):b,m,h,S,i.get("useUTC"),d.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,C,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i="html"===this._renderMode,o=ue(a),l=o.tooltipConfig.option||{},u=l.encodeHTMLContent;X(l)&&(l={content:l,formatter:l},u=!0),u&&i&&l.content&&((l=re(l)).content=kt(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=t.positionDefault,p=rv(v,this._tooltipModel,h?{position:h}:null),d=p.get("content"),g=Math.random()+"",y=new _m;this._showOrMove(p,function(){var m=re(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",t.get("showContent")&&t.get("show")){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(c)if(X(c)){var g=t.ecModel.get("useUTC"),y=H(n)?n[0]:n;h=c,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(h=Tu(y.axisValue,h,g)),h=Qy(h,n,!0)}else if(ae(c)){var _=q(function(S,x){S===this._ticket&&(v.setContent(x,f,t,d,l),this._updatePosition(t,l,o,s,v,n,u))},this);this._ticket=i,h=c(n,i,_)}else h=c;v.setContent(h,f,t,d,l),v.show(t,d),this._updatePosition(t,l,o,s,v,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i,o){return"axis"===n||H(a)?{color:i||o}:H(a)?void 0:{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var v=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ae(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:v.slice()})),H(a))n=K(a[0],u),i=K(a[1],f);else if(se(a)){var d=a;d.width=v[0],d.height=v[1];var g=qe(d,{width:u,height:f});n=g.x,i=g.y,c=null,h=null}else if(X(a)&&l){var y=function hre(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}(a,p,v,t.get("borderWidth"));n=y[0],i=y[1]}else y=function vre(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return null!=i&&(r+l+i+2>a?r-=l+i:r+=i),null!=o&&(e+u+o>n?e-=u+o:e+=o),[r,e]}(n,i,o,u,f,c?null:20,h?null:20),n=y[0],i=y[1];c&&(n-=FO(c)?v[0]/2:"right"===c?v[0]:0),h&&(i-=FO(h)?v[1]/2:"bottom"===h?v[1]:0),RO(t)&&(y=function cre(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,[r=Math.max(r,0),e=Math.max(e,0)]}(n,i,o,u,f),n=y[0],i=y[1]),o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParam
vendor: 4,834 bytes, line 1
1sList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],v=(t[l]||{}).dataByAxis||[];(o=o&&u.length===v.length)&&A(u,function(c,h){var p=v[h]||{},d=c.seriesDataIndices||[],g=p.seriesDataIndices||[];(o=o&&c.value===p.value&&c.axisType===p.axisType&&c.axisId===p.axisId&&d.length===g.length)&&A(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){Ee.node||!a.getDom()||(Uu(this,"_updatePosition"),this._tooltipContent.dispose(),C1("itemTooltip",a),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(Xe);function rv(r,e,t){var n,a=e.ecModel;t?(n=new De(t,a,a),n=new De(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof De&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(n=new De(o,n,a)))}return n}function GO(r,e){return r.dispatchAction||q(e.dispatchAction,e)}function FO(r){return"center"===r||"middle"===r}const dre=fre;var yre=["rect","polygon","keep","clear"];function mre(r,e){var t=Fe(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 n=r&&r.toolbox;H(n)&&(n=n[0]),n||(r.toolbox=[n={feature:{}}]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),tc(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,yre)}}var HO=A;function WO(r){if(r)for(var e in r)if(r.hasOwnProperty(e))return!0}function Q1(r,e,t){var a={};return HO(e,function(i){var o=a[i]=function n(){var i=function(){};return i.prototype.__hidden=i.prototype,new i}();HO(r[i],function(s,l){if(zt.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new zt(u),"opacity"===l&&((u=re(u)).type="colorAlpha",o.__hidden.__alphaForOpacity=new zt(u))}})}),a}function UO(r,e,t){var a;A(t,function(n){e.hasOwnProperty(n)&&WO(e[n])&&(a=!0)}),a&&A(t,function(n){e.hasOwnProperty(n)&&WO(e[n])?r[n]=re(e[n]):delete r[n]})}var YO={lineX:ZO(0),lineY:ZO(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Mo(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];return!!(Mo(a,n,i)||Mo(a,n+o,i)||Mo(a,n,i+s)||Mo(a,n+o,i+s)||fe.create(r).contain(l[0],l[1])||Fu(n,i,n+o,i,a)||Fu(n,i,n,i+s,a)||Fu(n+o,i,n+o,i+s,a)||Fu(n,i+s,n+o,i+s,a))||void 0}}};function ZO(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a)return av(a[r],i.range)},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),av(s[0],o)||av(s[1],o)||av(o[0],s)||av(o[1],s)}}}}function av(r,e){return e[0]<=r&&r<=e[1]}var XO=["inBrush","outOfBrush"],$1="__ecBrushSelect",ex="__ecInBrushSelectEvent";function KO(r){r.eachComponent({mainType:"brush"},function(e){(e.brushTargetManager=new K1(e.option,r)).setInputRanges(e.areas,r)})}var bre=du(function wre(r,e,t){var n,i,a=[];r.eachComponent({mainType:"brush"},function(o){t&&"takeGlobalCursor"===t.type&&o.setBrushOption("brush"===t.key?t.brushOption:{brushType:!1})}),KO(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:re(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,v=[],c=[],h=[],p=!1;s||(n=u.throttleType,i=u.throttleDelay);var d=W(o.areas,function(x){var b=Mre[x.brushType],w=ie({boundingRect:b?b(x):void 0},x);return w.selectors=function xre(r){var e=r.brushType,t={point:function(a){return YO[e].point(a,t,r)},rect:function(a){return YO[e].rect(a,t,r)}};return t}(w),w}),g=Q1(o.option,XO,function(x){x.mappingMethod="fixed"});function y(x){return"all"===f||!!v[x]}function m(x){return!!x.length}H(f)&&A(f,function(x){v[x]=1}),r.eachSeries(function(x,b){var w=h[b]=[];"parallel"===x.subType?function _(x,b){var w=x.coordinateSystem;p=p||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(C,T){"active"===C&&(c[T]=1)})}(x,b):function S(x,b,w){if(x.brushSelector&&!function Are(r,e){var t=r.option.seriesIndex;return null!=t&&"all"!==t&&(H(t)?pe(t,e)<0:e!==t)}(o,b)&&(A(d,function(T){o.brushTargetManager.controlSeries(T,x,r)&&w.push(T),p=p||m(w)}),y(b)&&m(w))){var C=x.getData();C.each(function(T){qO(x,w,C,T)&&(c[T]=1)})}}(x,b,w)}),r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);
1var C=h[b],T=x.getData(),M=y(b)?function(D){return c[D]?(w.dataIndex.push(T.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return qO(x,C,T,D)?(w.dataIndex.push(T.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?p:m(C))&&function _re(r,e,t,a,n,i){var s,o={};function l(v){return Gm(t,s,v)}function u(v,c){SM(t,s,v,c)}function f(v,c){var h=t.getRawDataItem(s=null==i?v:c);if(!h||!1!==h.visualMap)for(var p=a.call(n,v),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(v,l,u)}}A(r,function(v){var c=zt.prepareVisualTypes(e[v]);o[v]=c}),null==i?t.each(f):t.each([i],f)}(XO,g,T,M)})}),function Tre(r,e,t,a,n){if(n){var i=r.getZr();i[ex]||(i[$1]||(i[$1]=Cre),Xs(i,$1,t,e)(r,a))}}(e,n,i,a,t)});function Cre(r,e){if(!r.isDisposed()){var t=r.getZr();t[ex]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[ex]=!1}}function qO(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}var Mre={rect:function(r){return jO(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){var i=t[a];i[0]<(e=e||[[1/0,-1/0],[1/0,-1/0]])[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&jO(e)}};function jO(r){return new fe(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Dre=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t,a){this.ecModel=t,this.api=a,(this._brushController=new WS(a.getZr())).on("brush",q(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){KO(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:re(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:re(n),$from:a})},e.type="brush",e}(Xe);const Lre=Dre;var Ire=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return N(e,r),e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&UO(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=W(t,function(a){return JO(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=JO(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:B.color.backgroundTint,borderColor:B.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:B.color.disabled},e}(Ce);function JO(r,e){return de({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new De(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const Pre=Ire;var Rre=["rect","polygon","lineX","lineY","keep","clear"],Ere=function(r){function e(){return null!==r&&r.apply(this,arguments)||this}return N(e,r),e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,("keep"===l?"multiple"===o:"clear"===l?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return A(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brush
vendor: 30,435 bytes, line 1
1Mode;"clear"===n?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},e.getDefaultOption=function(t){return{show:!0,type:Rre.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.getLocaleModel().get(["toolbox","brush","title"])}},e}(za);const kre=Ere;var Nre=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return N(e,r),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:B.size.m,backgroundColor:B.color.transparent,borderColor:B.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:B.color.primary},subtextStyle:{fontSize:12,color:B.color.quaternary}},e}(Ce),Bre=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){if(this.group.removeAll(),t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Q(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Me({style:He(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=t.get("subtext"),h=new Me({style:He(s,{text:c,fill:s.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,h.silent=!d&&!g,p&&f.on("click",function(){Mc(p,"_"+t.get("target"))}),d&&h.on("click",function(){Mc(d,"_"+t.get("subtarget"))}),ue(f).eventData=ue(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var S=qe(m,mt(t,n).refContainer,t.get("padding"));l||("middle"===(l=t.get("left")||t.get("right"))&&(l="center"),"right"===l?S.x+=S.width:"center"===l&&(S.x+=S.width/2)),u||("center"===(u=t.get("top")||t.get("bottom"))&&(u="middle"),"bottom"===u?S.y+=S.height:"middle"===u&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var x={align:l,verticalAlign:u};f.setStyle(x),h.setStyle(x),y=i.getBoundingRect();var b=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var C=new be({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e}(Xe),zre=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return N(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(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 o,t=this.option,a=t.data||[],n=t.axisType,i=this._names=[];"category"===n?(o=[],A(a,function(u,f){var c,v=pt(xs(u),"");se(u)?(c=re(u)).value=f:c=f,o.push(c),i.push(v)})):o=a,(this._data=new Xt([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[n]||"number"}],this)).initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:B.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:B.color.secondary},data:[]},e}(Ce);const QO=zre;var $O=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="timeline.slider",e.defaultOption=Kn(QO.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:B.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:B.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:B.color.tertiary},itemStyle:{color:B.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:B.color.accent50,borderColor:B.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:B.color.accent50,borderColor:B.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:B.color.accent60},itemStyle:{color:B.color.accent60,borderColor:B.color.accent60},controlStyle:{color:B.color.accent70,borderColor:B.color.accent70}},progress:{lineStyle:{color:B.color.accent30},itemStyle:{color:B.color.accent40}},data:[]}),e}(QO);it($O,Oc.prototype);const Gre=$O;var Fre=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="timeline",e}(Xe);const Hre=Fre;var Wre=function(r){function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return N(e,r),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Gr);const Ure=Wre;var tx=Math.PI,eN=ge(),Yre=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){return vt("nameValue",{noName:!0,value:l.scale.getLabel({value:u})})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,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 s,n=t.get(["label","position"]),i=t.get("orient"),o=function Zre(r,e){return qe(r.getBoxLayoutParams(),mt(r,e).refContainer,r.get("padding"))}(t,a),l={horizontal:"center",vertical:(s=null==n||"auto"===n?"horizontal"===i?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":X(n)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:n)>=0||"+"===s?"left":"right"},u={horizontal:s>=0||"+"===s?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:tx/2},v="vertical"===i?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),p=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*tx/180;var m,_,S,x=c.get("position",!0),b=h&&c.get("showPlayBtn",!0),w=h&&c.get("showPrevBtn",!0),C=h&&c.get("showNextBtn",!0),T=0,M=v;"left"===x||"bottom"===x?(b&&(m=[0,0],T+=g),w&&(_=[T,0],T+=g),C&&(S=[M-p,0],M-=g)):(b&&(m=[M-p,0],M-=g),w&&(_=[0,0],T+=g),C&&(S=[M-p,0],M-=g));var D=[T,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if("vertical"===t.orient){var s=[1,0,0,1,0,0],l=o.x,u=o.y+o.height;Zr(s,s,[-l,-u]),ja(s,s,-tx/2),Zr(s,s,[l,u]),(o=o.clone()).applyTransform(s)}var f=m(o),v=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],p=[i.x,i.y];p[0]=h[0]=f[0][0];var g,d=t.labelPosOpt;function y(S){S.originX=f[0][0]-S.x,S.originY=f[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,C){S[w]+=b[w][C]-x[w][C]}null==d||X(d)?(_(h,v,f,1,g="+"===d?0:1),_(p,c,f,1,1-g)):(_(h,v,f,1,g=d>=0?0:1),p[1]=h[1]+d),n.setPosition(h),i.setPosition(p),n.rotation=i.rotation=t.rotation,y(n),y(i)},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType")||a.get("type");"category"!==i&&"time"!==i&&(i="value");var o=sl(a,i,!1);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),oL(o,{fixMinMax:[!0,!0]});var l=new Ure("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new oe;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new ct({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:G({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new ct({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ie({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),v=s.getItemModel(u.value),c=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),p=v.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:q(o._changeTimeline,o,u.value)},g=tN(v,c,a,d);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Zn(g);var y=ue(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this;if(n.getLabelModel().get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){if(!f.tick.offInterval){var v=f.tick.value,c=l.getItemModel(v),h=c.getModel("label"),p=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),g=n.dataToCoord(v),y=new Me({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:q(o._changeTimeline,o,v),silent:!1,style:He(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=He(p),y.ensureState("progress").style=He(d),a.add(y),Zn(y),eN(y).dataIndex=v,o._tickLabels.push(y)}})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);function c(h,p,d,g){if(h){var y=fa(Q(i.get(["controlStyle",p+"BtnSize"]),o),o),_=function Xre(r,e,t,a){var n=a.style,i=Zs(r.get(["controlStyle",e]),a||{},new fe(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}(i,p+"Icon",[0,-y/2,y,y],{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,a.add(_),Zn(_)}}c(t.nextBtnPosition,"next",q(this._changeTimeline,this,v?"-":"+")),c(t.prevBtnPosition,"prev",q(this._changeTimeline,this,v?"+":"-")),c(t.playPosition,f?"stop":"play",q(this._handlePlayClick,this,!f),!0)},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this;this._currentPointer=tN(l,l,this._mainGroup,{},this._currentPointer,{onCreate:function(v){v.draggable=!0,v.drift=q(u._handlePointerDrag,u),v.ondragend=q(u._handlePointerDragend,u),rN(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){rN(v,u._progressLine,s,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],o=Ct(this._axis.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){return ta(t,this._mainGroup.getLocalTransform(),!0)},e.prototype._findNearestTick=function(t){var i,a=this.model.getData(),n=1/0,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<n&&(n=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();"+"===t?t=a+1:"-"===t&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",eN(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(Hre);function tN(r,e,t,a,n,i){var o=e.get("color");n?(n.setColor(o),t.add(n),i&&i.onUpdate(n)):((n=lt(r.get("symbol"),-1,-1,2,2,o)).setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n));var l=e.getItemStyle(["color"]);n.setStyle(l),a=de({rectHover:!0,z2:100},a,!0);var u=js(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=mo(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var v=r.get("symbolRotate");return a.rotation=(v||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function rN(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const Kre=Yre;function jre(r){var e=r&&r.timeline;H(e)||(e=e?[e]:[]),A(e,function(t){t&&function Jre(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),aN(r),as(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});as(a,"position")||(a.position=r.controlPosition),"none"===a.position&&!as(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(n){se(n)&&!H(n)&&(!as(n,"value")&&as(n,"name")&&(n.value=n.name),aN(n))})}(t)})}function aN(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};A(a,function(o,s){!i[s]&&!as(n,s)&&(n[s]=o)}),t.label&&!as(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function as(r,e){return r.hasOwnProperty(e)}function rx(r,e){if(!r)return!1;for(var t=H(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function od(r){ki(r,"label",["show"])}var sd=ge(),nN=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return N(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ee.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=sd(s)[o];l&&l.data?(u?u._mergeOption(l,a,!0):(i&&od(l),A(l.data,function(f){f instanceof Array?(od(f[0]),od(f[1])):od(f)}),G(u=this.createMarkerModelFromSeries(l,this,a),{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),sd(s)[o]=u):sd(s)[o]=null},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return vt("section",{header:this.name,blocks:[vt("nameValue",{name:s,value:o,noName:!s,noValue:null==o})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=Oc.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return sd(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Ce);it(nN,Oc.prototype);const Dn=nN;var $re=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Dn);const eae=$re;function ax(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function ld(r,e,t,a,n,i,o){var s=[],u=gn(e,n)?e.getCalculationInfo("stackResultDimension"):n,f=fd(e,u,r),c=e.hostModel.indicesOfNearest(t,u,f)[0];s[i]=e.get(a,c),s[o]=e.get(u,c);var h=e.get(n,c),p=ca(e.get(n,c));return(p=Math.min(p,20))>=0&&(s[o]=+s[o].toFixed(p)),[s,h]}var ud={min:Se(ld,"min"),max:Se(ld,"max"),average:Se(ld,"average"),median:Se(ld,"median")};function nv(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!function tae(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}(e)&&!H(e.coord)&&H(n)){var i=iN(e,t,a,r);if((e=re(e)).type&&ud[e.type]&&i.baseAxis&&i.valueAxis){var o=pe(n,i.baseAxis.dim),s=pe(n,i.valueAxis.dim),l=ud[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&H(n))for(var v=e.coord,c=0;c<2;c++)ud[v[c]]&&(v[c]=fd(t,t.mapDimension(n[c]),v[c]));else{e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&ud[e.type]){var f=a.getOtherAxis(u);f&&(e.value=fd(t,t.mapDimension(f.dim),e.type))}}return e}}function iN(r,e,t,a){var n={};return null!=r.valueIndex||null!=r.valueDim?(n.valueDataDim=null!=r.valueIndex?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(function rae(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function iv(r,e){return!(r&&r.containData&&e.coord&&!ax(e))||r.containData(e.coord)}function oN(r,e){return r?function(t,a,n,i){return qn(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,a,n,i){return qn(t.value,e[i])}}function fd(r,e,t){if("average"===t){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}return"median"===t?r.getMedian(e):r.getDataExtent(e)["max"===t?1:0]}var nx=ge(),nae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.init=function(){this.markerGroupMap=j()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){nx(s).keep=!1}),a.eachSeries(function(s){var l=Dn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!nx(s).keep&&i.group.remove(s.group)}),function iae(r,e,t){r.eachSeries(function(a){var n=Dn.getMarkerModelFromSeries(a,t),i=e.get(a.id);if(n&&i&&i.group){var o=go(n);Qc(i.group,o.z,o.zlevel)}})}(a,o,this.type)},e.prototype.markKeep=function(t){nx(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;A(t,function(i){var o=Dn.getMarkerModelFromSeries(i,n.type);o&&o.getData().eachItemGraphicEl(function(l){l&&(a?mT(l):Ty(l))})})},e.type="marker",e}(Xe);const ix=nae;function sN(r,e,t){var a=e.coordinateSystem,n=t.getWidth(),i=t.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var p,l=r.getItemModel(s),u="coordinate"===l.get("relativeTo"),f=u?o?o.width:0:n,v=u?o?o.height:0:i,c=u&&o?o.x:0,h=u&&o?o.y:0,d=K(l.get("x"),f)+c,g=K(l.get("y"),v)+h;if(isNaN(d)||isNaN(g)){if(e.getMarkerPosition)p=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);p=a.dataToPoint([y,m])}}else p=[d,g];isNaN(d)||(p[0]=d),isNaN(g)||(p[1]=g),r.setItemLayout(s,p)})}var oae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Dn.getMarkerModelFromSeries(i,"markPoint");o&&(sN(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new _f),v=function sae(r,e,t){var a;a=r?W(r&&r.dimensions,function(s){var l=e.getData();return G(G({},l.getDimensionInfo(l.mapDimension(s))||{}),{name:s,ordinalMeta:null})}):[{name:"value",type:"float"}];var n=new Xt(a,t),i=W(t.get("data"),Se(nv,e));r&&(i=ke(i,Se(iv,r)));var o=oN(!!r,a);return n.initData(i,null,o),n}(o,t,a);a.setData(v),sN(a.getData(),t,i),v.each(function(c){var h=v.getItemModel(c),p=h.getShallow("symbol"),d=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(ae(p)||ae(d)||ae(g)||ae(y)){var _=a.getRawValue(c),S=a.getDataParams(c);ae(p)&&(p=p(_,S)),ae(d)&&(d=d(_,S)),ae(g)&&(g=g(_,S)),ae(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=Ku(l,"color");x.fill||(x.fill=w),v.setItemVisual(c,{z2:Q(b,0),symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){ue(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(ix);const lae=oae;var fae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(Dn);const vae=fae;var vd=ge(),cae=function(r,e,t,a){var i,n=r.getData();if(H(a))i=a;else{var o=a.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=a.xAxis||null!=a.yAxis){var s=void 0,l=void 0;if(null!=a.yAxis||null!=a.xAxis)s=e.getAxis(null!=a.yAxis?"y":"x"),l=Ft(a.yAxis,a.xAxis);else{var u=iN(a,n,e,r);s=u.valueAxis,l=fd(n,y0(n,u.valueDataDim),o)}var v="x"===s.dim?0:1,c=1-v,h=re(a),p={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,p.coord[c]=1/0;var d=t.get("precision");d>=0&&Ae(l)&&(l=+l.toFixed(Math.min(d,20))),h.coord[v]=p.coord[v]=l,i=[h,p,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[nv(r,i[0]),nv(r,i[1]),G({},i[2])];return g[2].type=g[2].type||null,de(g[2],g[0]),de(g[2],g[1]),g};function cd(r){return!isNaN(r)&&!isFinite(r)}function lN(r,e,t,a){var n=1-r,i=a.dimensions[r];return cd(e[n])&&cd(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function hae(r,e){if("cartesian2d"===r.type){var t=e[0].coord,a=e[1].coord;if(t&&a&&(lN(1,t,a,r)||lN(0,t,a,r)))return!0}return iv(r,e[0])&&iv(r,e[1])}function ox(r,e,t,a,n){var s,i=a.coordinateSystem,o=r.getItemModel(e),l=K(o.get("x"),n.getWidth()),u=K(o.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var v=r.get((f=i.dimensions)[0],e),c=r.get(f[1],e);s=i.dataToPoint([v,c])}if(ko(i,"cartesian2d")){var f,h=i.getAxis("x"),p=i.getAxis("y");cd(r.get((f=i.dimensions)[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):cd(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}else s=[l,u];r.setItemLayout(e,s)}var pae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Dn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=vd(o).from,u=vd(o).to;l.each(function(f){ox(l,f,!0,i,n),ox(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new bS);this.group.add(f.group);var v=function dae(r,e,t){var a;a=r?W(r&&r.dimensions,function(u){var f=e.getData();return G(G({},f.getDimensionInfo(f.mapDimension(u))||{}),{name:u,ordinalMeta:null})}):[{name:"value",type:"float"}];var n=new Xt(a,t),i=new Xt(a,t),o=new Xt([],t),s=W(t.get("data"),Se(cae,e,r,t));r&&(s=ke(s,Se(hae,r)));var l=oN(!!r,a);return n.initData(W(s,function(u){return u[0]}),null,l),i.initData(W(s,function(u){return u[1]}),null,l),o.initData(W(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}(o,t,a),c=v.from,h=v.to,p=v.line;vd(a).from=c,vd(a).to=h,a.setData(p);var d=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");function _(S,x,b){var w=S.getItemModel(x);ox(S,x,b,t,i);var C=w.getModel("itemStyle").getItemStyle();null==C.fill&&(C.fill=Ku(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Q(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:Q(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:Q(w.get("symbolSize"),g[b?0:1]),symbol:Q(w.get("symbol",!0),d[b?0:1]),style:C})}H(d)||(d=[d,d]),H(g)||(g=[g,g]),H(y)||(y=[y,y]),H(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),p.each(function(S){var x=p.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();p.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");null==b.stroke&&(b.stroke=c.getItemVisual(S,"style").fill),p.setItemVisual(S,{z2:Q(w,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol
vendor: 8,366 bytes, line 1
1:c.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),v.line.eachItemGraphicEl(function(S){ue(S).dataModel=a,S.traverse(function(x){ue(x).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(ix);const gae=pae;var mae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Dn);const _ae=mae;var hd=ge(),Sae=function(r,e,t,a){var n=a[0],i=a[1];if(n&&i){var o=nv(r,n),s=nv(r,i),l=o.coord,u=s.coord;l[0]=Ft(l[0],-1/0),l[1]=Ft(l[1],-1/0),u[0]=Ft(u[0],1/0),u[1]=Ft(u[1],1/0);var f=pv([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function pd(r){return!isNaN(r)&&!isFinite(r)}function uN(r,e,t,a){var n=1-r;return pd(e[n])&&pd(t[n])}function xae(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return ko(r,"cartesian2d")?!(!t||!a||!uN(1,t,a)&&!uN(0,t,a))||function aae(r,e,t){return!(r&&r.containZone&&e.coord&&t.coord&&!ax(e)&&!ax(t))||r.containZone(e.coord,t.coord)}(r,n,i):iv(r,n)||iv(r,i)}function fN(r,e,t,a,n){var s,i=a.coordinateSystem,o=r.getItemModel(e),l=K(o.get(t[0]),n.getWidth()),u=K(o.get(t[1]),n.getHeight());if(isNaN(l)||isNaN(u)){if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),v=r.getValues(["x1","y1"],e),c=i.clampData(f),h=i.clampData(v),p=[];p[0]="x0"===t[0]?c[0]>h[0]?v[0]:f[0]:c[0]>h[0]?f[0]:v[0],p[1]="y0"===t[1]?c[1]>h[1]?v[1]:f[1]:c[1]>h[1]?f[1]:v[1],s=a.getMarkerPosition(p,t,!0)}else{var y=[d=r.get(t[0],e),g=r.get(t[1],e)];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(ko(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);pd(d)?s[0]=m.toGlobalCoord(m.getExtent()["x0"===t[0]?0:1]):pd(g)&&(s[1]=_.toGlobalCoord(_.getExtent()["y0"===t[1]?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}else s=[l,u];return s}var vN=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],bae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=Dn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=W(vN,function(v){return fN(s,l,v,i,n)});s.setItemLayout(l,u),s.getItemGraphicEl(l).setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new oe});this.group.add(f.group),this.markKeep(f);var v=function wae(r,e,t){var a,n;if(r){var o=W(r&&r.dimensions,function(u){var f=e.getData();return G(G({},f.getDimensionInfo(f.mapDimension(u))||{}),{name:u,ordinalMeta:null})});n=W(["x0","y0","x1","y1"],function(u,f){return{name:u,type:o[f%2].type}}),a=new Xt(n,t)}else a=new Xt(n=[{name:"value",type:"float"}],t);var s=W(t.get("data"),Se(Sae,e,r,t));r&&(s=ke(s,Se(xae,r)));var l=r?function(u,f,v,c){return qn(u.coord[Math.floor(c/2)][c%2],n[c])}:function(u,f,v,c){return qn(u.value,n[c])};return a.initData(s,null,l),a.hasItemOption=!0,a}(o,t,a);a.setData(v),v.each(function(c){var h=W(vN,function(M){return fN(v,c,M,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(v.get("x0",c)),p.parse(v.get("x1",c))],_=[d.parse(v.get("y0",c)),d.parse(v.get("y1",c))];Ct(m),Ct(_),v.setItemLayout(c,{points:h,allClipped:!!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0])});var b=v.getItemModel(c),w=b.getModel("itemStyle").getItemStyle(),C=b.get("z2"),T=Ku(l,"color");w.fill||(w.fill=T,X(w.fill)&&(w.fill=au(w.fill,.4))),w.stroke||(w.stroke=T),v.setItemVisual(c,"style",w),v.setItemVisual(c,"z2",Q(C,0))}),v.diff(hd(f).data).add(function(c){var h=v.getItemLayout(c),p=v.getItemVisual(c,"z2");if(!h.allClipped){var d=new Zt({z2:Q(p,0),shape:{points:h.points}});v.setItemGraphicEl(c,d),f.group.add(d)}}).update(function(c,h){var p=hd(f).data.getItemGraphicEl(h),d=v.getItemLayout(c),g=v.getItemVisual(c,"z2");d.allClipped?p&&f.group.remove(p):(p?Pe(p,{z2:Q(g,0),shape:{points:d.points}},a,c):p=new Zt({shape:{points:d.points}}),v.setItemGraphicEl(c,p),f.group.add(p))}).remove(function(c){var h=hd(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var p=v.getItemModel(h),d=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),bt(c,yt(p),{labelFetcher:a,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:X(d.fill)?au(d.fill,1):B.color.neutral99}),gt(c,p),Je(c,null,null,p.get(["emphasis","disabled"])),ue(c).dataModel=a}),hd(f).data=v,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(ix);const Tae=bae;var Mae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return N(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),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,n=this.ecModel;!0===a&&(a=t.selector=["all","inverse"]),H(a)&&A(a,function(i,o){X(i)&&(i={type:i}),a[o]=de(i,function(r,e){return"all"===e?{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var f;if(n.push(l.name),l.legendVisualProvider){var c=l.legendVisualProvider.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(c)),c.length?a=a.concat(c):f=!0}else f=!0;f&&Zg(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=j(),s=W(i,function(l){return(X(l)||Ae(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new De(l,this,this.ecModel))},this);this._data=ke(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected;"single"===this.get("selectedMode")&&A(this._data,function(o){a[o.get("name")]=!1}),a[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var a=this.option.selected;A(this._data,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var a=this.option.selected;A(this._data,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&pe(this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:B.size.m,align:"auto",backgroundColor:B.color.transparent,borderColor:B.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:B.color.disabled,inactiveBorderColor:B.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:B.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
1Limit:"inherit"},textStyle:{color:B.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:B.color.tertiary,borderWidth:1,borderColor:B.color.border},emphasis:{selectorLabel:{show:!0,color:B.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(Ce);const sx=Mae;var Ol=Se,lx=A,dd=oe,Dae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return N(e,r),e.prototype.init=function(){this.group.add(this._contentGroup=new dd),this.group.add(this._selectorGroup=new dd),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||"auto"===o)&&(o="right"===t.get("left")&&"vertical"===s?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||"auto"===u)&&(u="horizontal"===s?"end":"start"),this.renderInner(o,t,a,n,l,s,u);var f=mt(t,n).refContainer,v=t.getBoxLayoutParams(),c=t.get("padding"),h=qe(v,f,c),p=this.layoutInner(t,o,h,i,l,u),d=qe(ie({width:p.width,height:p.height},v),f,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=_O(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,n,i,o,s,l){var u=this.getContentGroup(),f=j(),v=a.get("selectedMode"),c=a.get("triggerEvent"),h=[];n.eachRawSeries(function(p){!p.get("legendHoverLink")&&h.push(p.id)}),lx(a.getData(),function(p,d){var g=this,y=p.get("name");if(!this.newlineDisabled&&(""===y||"\n"===y)){var m=new dd;return m.newline=!0,void u.add(m)}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},b=S.getVisual("legendIcon"),w=S.getVisual("style"),C=this._createItem(_,y,d,p,a,t,x,w,b,v,i);C.on("click",Ol(cN,y,null,i,h)).on("mouseover",Ol(ux,_.name,null,i,h)).on("mouseout",Ol(fx,_.name,null,i,h)),n.ssr&&C.eachChild(function(T){var M=ue(T);M.seriesIndex=_.seriesIndex,M.dataIndex=d,M.ssrType="legend"}),c&&C.eachChild(function(T){g.packEventData(T,a,_,d,y)}),f.set(y,!0)}else n.eachRawSeries(function(T){var M=this;if(!f.get(y)&&T.legendVisualProvider){var D=T.legendVisualProvider;if(!D.containName(y))return;var I=D.indexOfName(y),L=D.getItemVisual(I,"style"),P=D.getItemVisual(I,"legendIcon"),E=Ht(L.fill);E&&0===E[3]&&(E[3]=.2,L=G(G({},L),{fill:Lr(E,"rgba")}));var R=this._createItem(T,y,d,p,a,t,{},L,P,v,i);R.on("click",Ol(cN,null,y,i,h)).on("mouseover",Ol(ux,null,y,i,h)).on("mouseout",Ol(fx,null,y,i,h)),n.ssr&&R.eachChild(function(k){var O=ue(k);O.seriesIndex=T.seriesIndex,O.dataIndex=d,O.ssrType="legend"}),c&&R.eachChild(function(k){M.packEventData(k,a,T,d,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(t,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ue(t).eventData=s},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();lx(t,function(u){var f=u.type,v=new Me({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===f?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v),bt(v,{normal:a.getModel("selectorLabel"),emphasis:a.getModel(["emphasis","selectorLabel"])},{defaultText:u.title}),Zn(v)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,v,c){var h=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon"),S=function Lae(r,e,t,a,n,i,o){function s(g,y){"auto"===g.lineWidth&&(g.lineWidth=y.lineWidth>0?2:0),lx(g,function(m,_){"inherit"===g[_]&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=0===r.lastIndexOf("empty",0)?"fill":"stroke",v=l.getShallow("decal");u.decal=v&&"inherit"!==v?$s(v,o):a.decal,"inherit"===u.fill&&(u.fill=a[n]),"inherit"===u.stroke&&(u.stroke=a[f]),"inherit"===u.opacity&&(u.opacity=("fill"===n?a:t).opacity),s(u,a);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),"auto"===u.fill&&(u.fill=a.fill),"auto"===u.stroke&&(u.stroke=a.fill),"auto"===h.stroke&&(h.stroke=a.fill),!i){var p=e.get("inactiveBorderWidth");u.lineWidth="auto"===p?a.lineWidth>0&&u[f]?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}(f=_||f||"roundRect",i,l,u,h,g,c),x=new dd,b=i.getModel("textStyle");if(!ae(t.getLegendIcon)||_&&"inherit"!==_){var w="inherit"===_&&t.getData().getVisual("symbol")?"inherit"===y?t.getData().getVisual("symbolRotate"):y:0;x.add(function Iae(r){var e=r.icon||"roundRect",t=lt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=B.color.neutral00,t.style.lineWidth=2),t}({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}else x.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));var C="left"===s?p+5:-5,T=s,M=o.get("formatter"),D=a;X(M)&&M?D=M.replace("{name}
1",a??""):ae(M)&&(D=M(a));var I=g?b.getTextColor():i.get("inactiveColor");x.add(new Me({style:He(b,{text:D,x:C,y:d/2,fill:I,align:T,verticalAlign:"middle"},{inheritColor:I})}));var L=new be({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&hn({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(E){E.silent=!0}),L.silent=!v,this.getContentGroup().add(x),Zn(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();eo(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){eo("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=0===d?"width":"height",y=0===d?"height":"width",m=0===d?"y":"x";"end"===s?h[d]+=f[g]+p:v[d]+=c[g]+p,h[1-d]+=f[y]/2-c[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+p+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-d]),_}return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Xe);function cN(r,e,t,a){fx(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),ux(r,e,t,a)}function ux(r,e,t,a){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function fx(r,e,t,a){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}const hN=Dae;function ov(r,e,t){var a="allSelect"===r||"inverseSelect"===r,n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),pN(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),pN(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function pN(r,e){var t=e||{};return A(r.getData(),function(a){var n=a.get("name");if("\n"!==n&&""!==n){var i=r.isSelected(n);t[n]=J(t,n)?t[n]&&i:i}}),t}var Rae=du(function Eae(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})});function dN(r){r.registerComponentModel(sx),r.registerComponentView(hN),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Rae),r.registerSubTypeDefaulter("legend",function(){return"plain"}),function Pae(r){r.registerAction("legendToggleSelect","legendselectchanged",Se(ov,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Se(ov,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Se(ov,"inverseSelect")),r.registerAction("legendSelect","legendselected",Se(ov,"select")),r.registerAction("legendUnSelect","legendunselected",Se(ov,"unSelect"))}(r)}var kae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=to(t);r.prototype.init.call(this,t,a,n),gN(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),gN(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Kn(sx.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:B.color.accent50,pageIconInactiveColor:B.color.accent10,pageIconSize:15,pageTextStyle:{color:B.color.tertiary},animationDurationUpdate:800}),e}(sx);function gN(r,e,t){var n=[1,1];n[r.getOrient().index]=0,wa(e,t,{type:"box",ignoreSize:!!n})}const Oae=kae;var yN=oe,vx=["width","height"],cx=["x","y"],Nae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return N(e,r),e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new yN),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new yN)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,v=a.get("pageIconSize",!0),c=H(v)?v:[v,v];p("pagePrev",0);var h=a.getModel("pageTextStyle");function p(d,g){var y=d+"DataIndex",m=Zs(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:q(u._pageGo,u,y,a,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=d,f.add(m)}f.add(new Me({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=vx[u],v=cx[u],c=vx[1-u],h=cx[1-u];o&&eo("horizontal",l,t.get("selectorItemGap",!0));
vendor: 6,213 bytes, line 1
1var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=re(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,c,h,v);if(o){if("end"===s)g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[v]-=_}m[f]+=d[f]+p,g[1-u]+=m[h]+m[c]/2-d[c]/2,m[c]=Math.max(m[c],d[c]),m[h]=Math.min(m[h],d[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;eo(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),eo("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=Q(t.get("pageButtonGap",!0),t.get("itemGap",!0));d&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[o]-p[o]:y[i]+=p[o]+_),m[1-i]+=h[s]/2-p[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var x={x:0,y:0};if(x[o]=d?n[o]:h[o],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+m[1-i]),v.__rectSize=n[o],d){var b={x:0,y:0};b[o]=Math.max(n[o]-p[o]-_,0),b[s]=x[s],v.setClipPath(new be({shape:b})),v.__rectSize=b[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return null!=w.pageIndex&&Pe(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var c=null!=a[f+"DataIndex"],h=n.childOfName(f);h&&(h.setStyle("fill",t.get(c?"pageIconColor":"pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=null!=s?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",X(o)?o.replace("{current}",null==l?"":l+"").replace("{total}",null==u?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=vx[o],l=cx[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],c=f.length,h=c?1:0,p={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return p;var d=S(v);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=c;++g)(!(_=S(f[g]))&&m.e>y.s+i||_&&!x(_,y.s))&&(y=m.i>y.i?m:_)&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=y.i),++p.pageCount),m=_;for(g=u-1,y=d,m=d,_=null;g>=-1;--g)(!(_=S(f[g]))||!x(m,_.s))&&y.i<m.i&&(m=y,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(b){if(b){var w=b.getBoundingRect(),C=w[l]+b[l];return{s:C,e:C+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(o,s){var l=o.__legendDataIndex;null==i&&null!=l&&(i=s),l===t&&(a=s)}),a??i):0;var a,i},e.type="legend.scroll",e}(hN);const Bae=Nae;function zae(r){me(dN),r.registerComponentModel(Oae),r.registerComponentView(Bae),function Vae(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;null!=a&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}(r)}var Fae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="dataZoom.inside",e.defaultOption=Kn(tv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(tv);const Hae=Fae;var hx=ge();function mN(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Zae(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Xae(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}var jae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return N(e,r),e.prototype.render=function(t,a,n){r.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),function Wae(r,e,t){hx(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}(n,t,{pan:q(px.pan,this),zoom:q(px.zoom,this),scrollMove:q(px.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){(function Uae(r,e){for(var t=hx(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var o=t.get(a[n]),s=o.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||mN(t,o))}}})(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(H1),px={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=dx[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*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(li(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:_N(function(r,e,t,a,n,i){var o=dx[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:_N(function(r,e,t,a,n,i){return dx[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t).signal*(r[1]-r[0])*i.scrollDelta})};function _N(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s&&(li(r(o,s,e,t,a,n),o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1]))return o}}var dx={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],"x"===i.dim?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();
vendor: 14,545 bytes, line 1
1return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),"radiusAxis"===t.mainType?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],"horizontal"===i.orient?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Jae=jae;function SN(r){W1(r),r.registerComponentModel(Hae),r.registerComponentView(Jae),function qae(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var a=hx(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=j());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){A(hO(i).infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,function Yae(r,e){var t={model:e,containsPoint:Se(Xae,e),dispatchAction:Se(Zae,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Fo(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}(t,s.model));(u.dataZoomInfoMap||(u.dataZoomInfoMap=j())).set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var s,o=i.controller,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];null!=u&&(s=l.get(u))}if(s){var f=function Kae(r,e,t){var a,s,l,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(u){var f=u.model,v=!f.get("disabled",!0)&&(!f.get("zoomLock",!0)||"move");i[n+v]>i[n+a]&&(a=v),o=o&&f.get("preventDefaultMouseMove",!0),s=Q(f.get("cursorGrab",!0),s),l=Q(f.get("cursorGrabbing",!0),l)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}(l,i,t);o.enable(f.controlType,f.opt),Xs(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")}else mN(n,i)})})}(r)}var Qae=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Kn(tv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:B.color.accent10,borderRadius:0,backgroundColor:B.color.transparent,dataBackground:{lineStyle:{color:B.color.accent30,width:.5},areaStyle:{color:B.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:B.color.accent40,width:.5},areaStyle:{color:B.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:B.color.neutral00,borderColor:B.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:B.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:B.color.tertiary},brushSelect:!0,brushStyle:{color:B.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:B.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(tv);const $ae=Qae;var sv=be,lv="horizontal",xN="vertical",ane=["line","bar","candlestick","scatter"],nne={easing:"cubicOut",duration:100,delay:0},ine=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return N(e,r),e.prototype.init=function(t,a){this.api=a,this._onBrush=q(this._onBrush,this),this._onBrushEnd=q(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Xs(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show"))return t.noTarget()?(this._clear(),void this.group.removeAll()):((!i||"dataZoom"!==i.type||i.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Uu(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 oe;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")?7:0,o=mt(t,a).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===lv?{right:o.width-s.x-s.width,top:o.height-30-l-i,width:s.width,height:30}:{right:l,top:s.y,width:30,height:s.height},f=to(t.option);A(["right","top","width","height"],function(c){"ph"===f[c]&&(f[c]=u[c])});var v=qe(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===xN&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n!==lv||o?n===lv&&o?{scaleY:l?1:-1,scaleX:-1}:n!==xN||o?{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?1:-1,scaleX:1});var u=t.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,v=isNaN(u.y)?0:u.y;t.x=a.x-f,t.y=a.y-v,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new sv({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new sv({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:q(this._onClickPanel,this)}),s=this.api.getZr();i?(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)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(null!=l){var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),h=.3*(c[1]-c[0]);c=[c[0]-h,c[1]+h];var w,p=[0,a[1]],g=[[a[0],0],[0,0]],y=[],m=a[0]/Math.max(1,o.count()-1),_=a[0]/(v[1]-v[0]),S="time"===t.thisAxis.type,x=-m,b=Math.round(o.count()/a[0]);o.each([t.thisDim,l],function(I,L,P){if(b>0&&P%b)S||(x+=m);else{x=S?(+I-v[0])*_:x+m;var E=null==L||isNaN(L)||""===L,R=E?0:Re(L,c,p,!0);E&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!E&&w&&(g.push([x,0]),y.push([x,0])),E||(g.push([x,R]),y.push([x,R])),w=E}}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];for(var L,P,E,R,C=this.dataZoomModel,M=0;M<3;M++){var D=(L=void 0,P=void 0,void 0,void 0,L=C.getModel(1===M?"selectedDataBackground":"dataBackground"),P=new oe,E=new Zt({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Bt({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),P.add(E),P.add(R),P);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}}}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(!1!==a){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){A(t.getAxisProxy(o,s).getTargetSeriesModels(),function(u){if(!(n||!0!==a&&pe(ane,u.get("type"))<0)){var c,f=i.getComponent(pi(o),s).axis,v=function one(r){return{x:"y",y:"x",radius:"angle",angle:"radius"}[r]}(o),h=u.coordinateSystem;null!=v&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var p=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:p,otherDim:v,otherAxisInverse:c}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),c=a.filler=new sv({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new sv({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:B.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!ih[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=lt(S,-1,0,2,2,null,!0);x.attr({cursor:sne(this._orient),draggable:!0,drift:q(this._onDragMove,this,_),ondragend:q(this._onDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=K(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(),Zn(x);var C=l.get("handleColor");null!=C&&(x.style.fill=C),o.add(n[_]=x);var T=l.getModel("textStyle"),M=l.get("handleLabel")||{};t.add(i[_]=new Me({silent:!0,invisible:!M.show,style:He(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=c;if(v){var p=K(l.get("moveHandleSize"),s[1]),d=a.moveHandle=new be({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=.8*p,y=a.moveHandleIcon=lt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,B.color.neutral00,!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));(h=a.moveZone=new be({invisible:!0,shape:{y:s[1]-m,height:p+m}})).on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"grab",drift:q(this._onActualMoveZoneDrift,this),ondragstart:q(this._onActualMoveZoneDragStart,this),ondragend:q(this._onActualMoveZoneDragEnd,this),onmouseover:q(this._onOverDataInfoTriggerArea,this,!0),onmouseout:q(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Re(t[0],[0,100],a,!0),Re(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];li(a,i,o,n.get("zoomLock")?"all":t,null!=s.minSpan?Re(s.minSpan,l,o,!0):null,null!=s.maxSpan?Re(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Ct([Re(i[0],o,l,!0),Re(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=Ct(n.slice()),o=this._size;A([0,1],function(h){var d=this._handleHeight;a.handles[h].attr({scaleX:d/2,scaleY:d/2,x:n[h]+(h?-1:1),y:o[1]/2-d/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[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,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],c=v.getClipPath();c||(c=new be,v.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var v,f=this._range;if(t){var c={start:f[0],end:f[1]},h=dO(a,l);if(h){var p=h.calculateDataWindow(c).percentInverted;c={start:p[0],end:p[1]}}v=l.calculateDataWindow(c)}else v=l.getWindow();s=[bN(a,0,v,u),bN(a,1,v,u)]}}var d=Ct(this._handleEnds.slice());function g(y){var m=ho(n.handles[y].parent,this.group),_=jc(0===y?"right":"left",m),S=this._handleWidth/2+5,x=ta([d[y]+(0===y?-S:S),this._size[1]/2],m);i[y].setStyle({x:x[0],y:x[1],verticalAlign:o===lv?"middle":_,align:o===lv?_:"center",text:s[y]})}g.call(this,0),g.call(this,1)},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var n=(this.dataZoomModel.get("handleLabel")||{}).show||!1,o=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,a,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,a,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,qa(i.event);
vendor: 5,098 bytes, line 1
1var s=ta([a,n],this._displayables.sliderGroup.getLocalTransform(),!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,s=this._updateInterval("all",n[0]-(i[0]+i[1])/2);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){this._brushStart=new le(t.offsetX,t.offsetY),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 n=a.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();li(0,l,o,0,null!=u.minSpan?Re(u.minSpan,s,o,!0):null,null!=u.maxSpan?Re(u.maxSpan,s,o,!0):null),this._range=Ct([Re(l[0],o,s,!0),Re(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(qa(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,o=n.brushRect;o||(o=n.brushRect=new sv({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?nne:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=hO(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:.2*i,y:.2*o,width:.6*i,height:.6*o}}return t},e.type="dataZoom.slider",e}(H1);function bN(r,e,t,a){var n=r.get("labelFormatter"),i=r.get("labelPrecision");(null==i||"auto"===i)&&(i=t.valuePrecision);var o=t.value[e],s=null==o||isNaN(o)?"":Kt(a)||il(a)?a.getLabel({value:Math.round(o)}):isFinite(i)?Ie(o,i,!0):o+"";return ae(n)?n(o,s):X(n)?n.replace("{value}",s):s}function sne(r){return"vertical"===r?"ns-resize":"ew-resize"}const lne=ine;function wN(r){r.registerComponentModel($ae),r.registerComponentView(lne),W1(r)}var fne={get:function(r,e,t){var a=re((vne[r]||{})[e]);return t&&H(a)?a[a.length-1]:a}},vne={color:{active:["#006edd","#e0ffff"],inactive:[B.color.transparent]},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]}};const TN=fne;var CN=zt.mapVisual,cne=zt.eachVisual,hne=H,yx=A,pne=Ct,dne=Re,gne=function(r){function e(){var t=null!==r&&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=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return N(e,r),e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){!a&&UO(this.option,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=q(t,this),this.controllerVisuals=Q1(this.option.controller,a,t),this.targetVisuals=Q1(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,a=this.option.seriesTargets;if(a){var n=[];return yx(a,function(l){if(null!=l.seriesIndex)n.push(l.seriesIndex);else if(null!=l.seriesId){var u;t.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&n.push(u.componentIndex)}}),n}var i=this.option.seriesId,o=this.option.seriesIndex;return null==o&&null==i&&(o="all"),W(ws(this.ecModel,"series",{index:o,id:i},{useDefault:!1,enableAll:!0,enableNone:!1}).models,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var u,i=this.option,o=i.precision,s=this.dataBound,l=i.formatter;n=n||["<",">
1"],H(t)&&(t=t.slice(),u=!0);var f=a?t:u?[v(t[0]),v(t[1])]:v(t);return X(l)?l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f):ae(l)?u?l(t[0],t[1]):l(t):u?t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1]:f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=pne([t.min,t.max]);this._dataExtent=a},e.prototype.getDimension=function(t){var a=this,n=this.option.seriesTargets;if(n){var i=Ua(n,function(o){return null!=o.seriesIndex&&o.seriesIndex===t||null!=o.seriesId&&o.seriesId===a.ecModel.getSeriesByIndex(t).id});if(i)return i.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var n=this.getDimension(t.hostModel.seriesIndex);if(null!=n)return t.getDimensionIndex(n);for(var i=t.dimensions,o=i.length-1;o>=0;o--){var l=t.getDimensionInfo(i[o]);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});de(i,n),de(o,n);var s=this.isCategory();function l(v){hne(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}l.call(this,i),l.call(this,o),function u(v,c,h){var p=v[c],d=v[h];p&&!d&&(d=v[h]={},yx(p,function(g,y){if(zt.isValidType(y)){var m=TN.get(y,"inactive",s);null!=m&&(d[y]=m,"color"===y&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}.call(this,i,"inRange","outOfRange"),function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),g=this.getItemSymbol()||"roundRect";yx(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?p:[p]}),null==_.symbol&&(_.symbol=c&&re(c)||(s?g:[g])),null==_.symbolSize&&(_.symbolSize=h&&re(h)||(s?m[0]:[m[0],m[0]])),_.symbol=CN(_.symbol,function(b){return"none"===b?g:b});var S=_.symbolSize;if(null!=S){var x=-1/0;cne(S,function(b){b>x&&(x=b)}),_.symbolSize=CN(S,function(b){return dne(b,[0,x],[0,m[0]],!0)})}},this)}.call(this,o)},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,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:B.color.transparent,borderColor:B.color.borderTint,contentColor:B.color.theme[0],inactiveColor:B.color.disabled,borderWidth:0,padding:B.size.m,textGap:10,precision:0,textStyle:{color:B.color.secondary}},e}(Ce);const gd=gne;var AN=[20,140],yne=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=AN[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=AN[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):H(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=Ct((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent(),i=Q(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=t)&&(i&&a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=MN(0,0,this.getExtent()),n=MN(0,0,this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:t(h,p)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(v=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var c=i.length;
vendor: 4,335 bytes, line 1
1return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Kn(gd.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:B.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:B.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:B.color.shadow}}),e}(gd);function MN(r,e,t){if(t[0]===t[1])return t.slice();for(var n=(t[1]-t[0])/200,i=t[0],o=[],s=0;s<=200&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}const mne=yne;var _ne=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return N(e,r),e.prototype.init=function(t,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,a,n,i):this.group.removeAll()},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=ks(a.get("padding")||0),i=t.getBoundingRect();t.add(new be({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){var i=(n=n||{}).forceState,o=this.visualMapModel,s={};if("color"===a){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,p){s[h]=p}var v=o.controllerVisuals[i||o.getValueState(t)];return A(zt.prepareVisualTypes(v),function(h){var p=v[h];n.convertOpacityToAlpha&&"opacity"===h&&(h="colorAlpha",p=v.__alphaForOpacity),zt.dependsOn(h,a)&&p&&p.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,i=mt(a,this.api).refContainer;Pc(t,a.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e}(Xe);const DN=_ne;var LN=[["left","right","width"],["top","bottom","height"]];function IN(r,e,t){var a=r.option,n=a.align;if(null!=n&&"auto"!==n)return n;for(var i={width:e.getWidth(),height:e.getHeight()},o="horizontal"===a.orient?1:0,s=LN[o],l=[0,null,10],u={},f=0;f<3;f++)u[LN[1-o][f]]=l[f],u[s[f]]=2===f?t[0]:a[s[f]];var v=[["x","width",3],["y","height",0]][o],c=qe(u,i,a.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+.5*c[v[1]]<.5*i[v[1]]?0:1]}function yd(r,e){return A(r||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Ga=Re,Sne=A,PN=Math.min,mx=Math.max,wne=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return N(e,r),e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=q(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||"selectDataRange"!==i.type||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=null!=i?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,0===n?-s:l[1]+s],u),v=this._applyTransform(0===n?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Me({style:He(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||("horizontal"===c?"middle":v),align:h.get("align")||("horizontal"===c?v:"center"),text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=IN(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new oe;
vendor: 6,185 bytes, line 1
1u.add(f),f.add(n.outOfRange=RN()),f.add(n.inRange=RN(null,s?kN(this._orient):null,q(this._dragHandle,this,"all",!1),q(this._dragHandle,this,"all",!0))),f.setClipPath(new be({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("\u56fd"),c=mx(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,c,o),this._createHandle(a,u,1,i,c,o)),this._createIndicator(a,u,i,c,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=q(this._dragHandle,this,n,!1),u=q(this._dragHandle,this,n,!0),f=fa(t.get("handleSize"),i[0]),v=lt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=kN(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){qa(y.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),qi(v,!0),a.add(v);var p=new Me({cursor:c,draggable:!0,drift:l,onmousemove:function(y){qa(y.event)},ondragend:u,style:He(this.visualMapModel.textStyleModel,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},e.prototype._createIndicator=function(t,a,n,i,o){var s=fa(t.get("indicatorSize"),n[0]),l=lt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof At){var f=l.style;l.useStyle(G({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var c=new Me({silent:!0,invisible:!0,style:He(this.visualMapModel.textStyleModel,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===o?i/2:6)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=c,p.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():EN(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Ga(a[0],n,i,!0),Ga(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];li(a=a||0,i,o,t,0);var s=n.getExtent();this._dataInterval=[Ga(i[0],o,s,!0),Ga(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new fo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var i=[],o=(t[1]-t[0])/100;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<100;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/100})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new oe("horizontal"!==a||n?"horizontal"===a&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==a||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);Sne([0,1],function(v){var c=o[v];c.setStyle("fill",a.handlesColor[v]),c.y=t[v];var h=Ga(t[v],[0,l[1]],u,!0),p=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=p/l[0],c.x=l[0]-p/2;var d=ta(n.handleLabelPoints[v],ho(c,this.group));"horizontal"===this._orient&&(d[1]+="left"===f||"top"===f?(l[0]-p)/2:(l[0]-p)/-2),s[v].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(t,"symbolSize"),d=Ga(t,s,u,!0),g=l[0]-p/2,y={x:v.x,y:v.y};v.y=d,v.x=g;var m=ta(f.indicatorLabelPoint,ho(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b="horizontal"===this._orient;_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:d,style:{fill:h}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,T),_.animateTo(C,T)}else v.attr(w),_.attr(C);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;
vendor: 18,606 bytes, line 1
1this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=PN(mx(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,a){var n=this.visualMapModel;if(n.option.hoverLink){var o=[0,n.itemSize[1]],s=n.getExtent();t=PN(mx(o[0],t),o[1]);var l=function Tne(r,e,t){var a=6,n=r.get("hoverLinkDataSize");return n&&(a=Ga(n,e,t,!0)/2),a}(n,s,o),u=[t-l,t+l],f=Ga(t,o,s,!0),v=[Ga(u[0],o,s,!0),Ga(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,h=[];(a||EN(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var p=function Hz(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=pt(o[u].seriesId,null);if(null==v)return;for(var c=Fe(o[u].dataIndex),h=l&&l[v],p=0,d=c.length;p<d;p++){var g=c[p];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&null!=o[u])if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}(c,h);this._dispatchHighDown("downplay",yd(p[0],n)),this._dispatchHighDown("highlight",yd(p[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(yo(t.target,function(l){var u=ue(l);if(null!=u.dataIndex)return a=u,!0},!0),a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},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 n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",yd(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,a,n,i){var o=ho(a,i?null:this.group);return H(t)?ta(t,o,n):jc(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(DN);function RN(r,e,t,a){return new Zt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){qa(n.event)},ondragend:a})}function EN(r){return!!(r.get("hoverLinkOnHandle")??r.get("realtime"))}function kN(r){return"vertical"===r?"ns-resize":"ew-resize"}const Cne=wne;var Ane={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Mne=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},Dne=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(function Sre(r,e,t,a){var n={};return A(r,function(i){var o=zt.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;function u(x){return Gm(s,v,x)}function f(x,b){SM(s,v,x,b)}null!=a&&(l=s.getDimensionIndex(a));for(var v,c=s.getStore();null!=(v=o.next());){var h=s.getRawDataItem(v);if(!h||!1!==h.visualMap)for(var p=null!=a?c.get(l,v):v,d=t(p),g=e[d],y=n[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}(a.stateList,a.targetVisuals,q(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(q(Lne,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function Lne(r,e,t,a){for(var n=e.targetVisuals[a],i=zt.prepareVisualTypes(n),o={color:Ku(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n["opacity"===u?"__alphaForOpacity":u];f&&f.applyVisual(t,v,c)}return o.color;function v(h){return o[h]}function c(h,p){o[h]=p}}var ON=A;function Ine(r){var e=r&&r.visualMap;H(e)||(e=e?[e]:[]),ON(e,function(t){if(t){Nl(t,"splitList")&&!Nl(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&H(a)&&ON(a,function(i){se(i)&&(Nl(i,"start")&&!Nl(i,"min")&&(i.min=i.start),Nl(i,"end")&&!Nl(i,"max")&&(i.max=i.end))})}})}function Nl(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var NN=!1;function BN(r){NN||(NN=!0,r.registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}),r.registerAction(Ane,Mne),A(Dne,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(Ine))}function VN(r){r.registerComponentModel(mne),r.registerComponentView(Cne),BN(r)}var Pne=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return N(e,r),e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],Rne[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){"categories"===n?(o.mappingMethod="category",o.categories=re(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=W(this._pieceList,function(l){return l=re(l),"inRange"!==s&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=zt.listVisualTypes(),i=this.isCategory();function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=TN.get(l,"inRange"===f?"active":"inactive",i)})},this),r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),"single"===n.selectedMode){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?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=re(t)},e.prototype.getValueState=function(t){var a=zt.findPieceIndex(t,this._pieceList);return null!=a&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){zt.findPieceIndex(l,n)===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(null!=t.value)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var a=[],n=["",""],i=this,s=this._pieceList.slice();if(s.length){var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),(l=s[s.length-1].interval[1])!==1/0&&s.push({interval:[l,1/0]})}else s.push({interval:[-1/0,1/0]});var u=-1/0;return A(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}}function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=t(c,v);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}},e.type="visualMap.piecewise",e.defaultOption=Kn(gd.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}(gd),Rne={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++)r.push({interval:[s,o===n-1?a[1]:s+i],close:[1,1]});e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),Wg(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;A(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),zN(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,a){se(t)||(t={value:t});var n={text:"",index:a};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],v=0;v<2;v++){for(var c=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&null==o[v];h++)o[v]=t[c[h]],s[v]=l[h],f[v]=2===h;null==o[v]&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=zt.retrieveVisuals(t),r.push(n)},this),zN(e,r),Wg(r),A(r,function(t){var a=t.close;t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,[["<","\u2264"][a[1]],[">","\u2265"][a[0]]])},this)}};function zN(r,e){var t=r.inverse;("vertical"===r.orient?!t:t)&&e.reverse()}const Ene=Pne;var kne=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Ft(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),A(l.viewPieceList,function(c){var h=c.piece,p=new oe;p.onclick=q(this._onItemClick,this,h),this._enableHoverLink(p,c.indexInModelPieceList);var d=a.getRepresentValue(h);if(this._createItemSymbol(p,d,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(d),y=i.get("align")||o;p.add(new Me({style:He(i,{x:"right"===y?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:Q(i.get("opacity"),"outOfRange"===g?.5:1)}),silent:v}))}t.add(p)},this),u&&this._renderEndsText(t,u[1],s,f,o),eo(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:yd(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if("vertical"===a.orient)return IN(t,this.api,t.itemSize);var n=a.align;return(!n||"auto"===n)&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new oe;s.add(new Me({style:He(this.visualMapModel.textStyleModel,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=W(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=lt(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=re(n.selected),s=a.getSelectedMapKey(t);"single"===i||!0===i?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(DN);const One=kne;function GN(r){r.registerComponentModel(Ene),r.registerComponentView(One),BN(r)}var Bne=function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:tM(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var a=t.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r}(),Vne=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return N(e,r),e.prototype.optionUpdated=function(t,a){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new Bne(this);this._target=null,this.ecModel.eachSeries(function(n){NR(n,null)}),this.shouldShow()&&NR(this.getTarget().baseMapProvider,t)},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?"graph"!==t.subType&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:B.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:B.color.neutral30,borderColor:B.color.neutral40,opacity:.3},z:10},e}(Ce),zne=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type=e.type,t}return N(e,r),e.prototype.render=function(t,a,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new _p),this._isEnabled()){this._renderVersion=n.getECUpdateCycleVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();null==s.fill&&(s.fill=a.get("backgroundColor")||B.color.neutral00);var l=mt(t,n).refContainer,u=qe(nC(t,!0),l),f=s.lineWidth||0,v=this._contentRect=po(u.clone(),f/2,!0,!0),c=new oe;i.add(c),c.setClipPath(new be({shape:v.plain()}));var h=this._targetGroup=new oe;c.add(h);var p=u.plain();p.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new be({style:s,shape:p,silent:!1,cursor:"grab"}));var d=t.getModel("windowStyle"),g=d.getShallow("borderRadius",!0);c.add(this._windowRect=new be({shape:{x:0,y:0,width:0,height:0,r:g},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),HN(t,this)}else this._clear()},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),HN(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),t){var o=t.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=t.z2Range.min-10,dp(n,s.x,s.y,s.width,s.height);var l=qe({left:"center",top:"center",aspect:s.width/s.height},i);gp(n,l.x,l.y,l.width,l.height),Nf(o,n,0),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var a=this._bridgeRendered;a&&a.renderVersion===t.renderVersion&&(a.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var a=hr([],t.targetTrans),n=cr([],hp(null,this._coordSys),a);this._transThisToTarget=hr([],n);var i=t.viewportRect;(i=i?i.clone():new fe(0,0,this._api.getWidth(),this._api.getHeight())).applyTransform(n);var o=this._windowRect;o.setShape(ie({r:o.shape.r},i))}},e.prototype._resetRoamController=function(t){var a=this,n=this._api,i=this._roamController;i||(i=this._roamController=new Fo(n.getZr())),t&&this._isEnabled()?(i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",q(this._onPan,this)).on("zoom",q(this._onZoom,this))):i.disable()},e.prototype._onPan=function(t){var a=this._transThisToTarget;if(this._isEnabled()&&a){var n=tt([],[t.oldX,t.oldY],a),i=tt([],[t.oldX-t.dx,t.oldY-t.dy],a);this._api.dispatchAction(FN(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var a=this._transThisToTarget;if(this._isEnabled()&&a){var n=tt([],[t.originX,t.originY],a);this._api.dispatchAction(FN(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;return!(!t||!t.shouldShow()||!t.getTarget().baseMapProvider)},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(Xe);function FN(r,e){var a={type:"series"===r.mainType?r.subType+"Roam":r.mainType+"Roam"};return a[r.mainType+"Id"]=r.id,G(a,e),a}function HN(r,e){var t=go(r);Qc(e.group,t.z,t.zlevel)}var Fne={label:{enabled:!0},decal:{show:!1}}
1,WN=ge(),UN=ge(),Hne=du(function Wne(r,e){var t=r.getModel("aria");if(t.get("enabled")){var a=UN(r).scope||(UN(r).scope={}),n=re(Fne);de(n.label,r.getLocaleModel().get("aria"),!1),de(t.option,n,!1),function i(){if(t.getModel("decal").get("show")){var c=j();r.eachSeries(function(h){h.isColorBySeries()||(WN(h).scope=c.get(h.type)||c.set(h.type,{}))}),r.eachSeries(function(h){if(ae(h.enableAriaDecal))h.enableAriaDecal();else{var p=h.getData();if(h.isColorBySeries()){var _=im(h.ecModel,h.name,a,r.getSeriesCount()),S=p.getVisual("decal");p.setVisual("decal",x(S,_))}else{var d=h.getRawData(),g={},y=WN(h).scope;p.each(function(b){var w=p.getRawIndex(b);g[w]=b});var m=d.count();d.each(function(b){var w=g[b],C=d.getName(b)||b+"",T=im(h.ecModel,C,y,m),M=p.getItemVisual(w,"decal");p.setItemVisual(w,"decal",x(M,T))})}}function x(b,w){var C=b?G(G({},w),b):w;return C.dirty=!0,C}})}}(),function o(){var f=e.getZr().dom;if(f){var v=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=ie(c.option,v),c.get("enabled")){if(f.setAttribute("role","img"),c.get("description"))return void f.setAttribute("aria-label",c.get("description"));var y,h=r.getSeriesCount(),p=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,g=Math.min(h,d);if(!(h<1)){var m=function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}();y=m?s(c.get(["general","withTitle"]),{title:m}):c.get(["general","withoutTitle"]);var S=[];y+=s(c.get(h>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:h}),r.eachSeries(function(T,M){if(M<g){var D=void 0,L=T.get("name")?"withName":"withoutName";D=s(D=c.get(h>1?["series","multiple",L]:["series","single",L]),{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var P=T.getData();P.count()>p?D+=s(c.get(["data","partialData"]),{displayCnt:p}):D+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),k=c.get(["data","separator","end"]),O=c.get(["data","excludeDimensionId"]),V=[],z=0;z<P.count();z++)if(z<p){var F=P.getName(z),U=O?ke(P.getValues(z),function(Z,$){return-1===pe(O,$)}):P.getValues(z),Y=c.get(["data",F?"withName":"withoutName"]);V.push(s(Y,{name:F,value:U.join(R)}))}D+=V.join(R)+k,S.push(D)}});var b=c.getModel(["series","multiple","separator"]),w=b.get("middle"),C=b.get("end");y+=S.join(w)+C,f.setAttribute("aria-label",y)}}}}()}function s(f,v){if(!X(f))return f;var c=f;return A(v,function(h,p){c=c.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),h)}),c}function u(f){var v=r.getLocaleModel().get(["series","typeNames"]);return v[f]||v.chart}});function Une(r){if(r&&r.aria){var e=r.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},A(["description","general","series","data"],function(t){null!=e[t]&&(e.label[t]=e[t])})}}var YN={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Zne=function(){function r(e){null==(this._condVal=X(e)?new RegExp(e):Ux(e)?e:null)&&Oe("")}return r.prototype.evaluate=function(e){var t=typeof e;return X(t)?this._condVal.test(e):!!Ae(t)&&this._condVal.test(e+"")},r}(),Xne=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Kne=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),qne=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),jne=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),Jne=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,a=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r}();function _x(r,e){if(!0===r||!1===r){var t=new Xne;return t.value=r,t}return XN(r)||Oe(""),r.and?ZN("and",r,e):r.or?ZN("or",r,e):r.not?function Qne(r,e){var t=r.not;XN(t)||Oe("");var n=new jne;return n.child=_x(t,e),n.child||Oe(""),n}(r,e):function $ne(r,e){for(var a=e.prepareGetValue(r),n=[],i=Te(r),o=r.parser,s=o?jC(o):null,l=0;l<i.length;l++){var u=i[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var f=J(YN,u)?YN[u]:u,v=r[u],c=s?s(v):v,h=ZF(f,c)||"reg"===f&&new Zne(c);h||Oe(""),n.push(h)}}n.length||Oe("");var p=new Jne;return p.valueGetterParam=a,p.valueParser=s,p.getValue=e.getValue,p.subCondList=n,p}(r,e)}function ZN(r,e,t){var a=e[r];H(a)||Oe(""),a.length||Oe("");var i="and"===r?new Kne:new qne;return i.children=W(a,function(o){return _x(o,t)}),i.children.length||Oe(""),i}function XN(r){return se(r)&&!It(r)}var eie=function(){function r(e,t){this._cond=_x(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}(),rie={type:"echarts:filter",transform:function(r){for(var t,e=r.upstream,a=function tie(r,e){return new eie(r,e)}(r.config,{valueGetterAttrMap:j({dimension:!0}),prepareGetValue:function(s){var u=s.dimension;J(s,"dimension")||Oe("");var f=e.getDimensionInfo(u);return f||Oe(""),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},aie={type:"echarts:sort",transform:function(r){var e=r.upstream,a="",n=Fe(r.config);n.length||Oe(a);var i=[];A(n,function(f){var v=f.dimension,c=f.order,h=f.parser,p=f.incomparable;null==v&&Oe(a),"asc"!==c&&"desc"!==c&&Oe(a),p&&"min"!==p&&"max"!==p&&Oe(""),"asc"!==c&&"desc"!==c&&Oe("");var y=e.getDimensionInfo(v);y||Oe(a);var m=h?jC(h):null;
1h&&!m&&Oe(a),i.push({dimIdx:y.index,parser:m,comparator:new QC(c,p)})});var o=e.sourceFormat;o!==Mt&&o!==_r&&Oe(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],p=e.retrieveValueFromItem(f,h.dimIdx),d=e.retrieveValueFromItem(v,h.dimIdx);h.parser&&(p=h.parser(p),d=h.parser(d));var g=h.comparator.evaluate(p,d);if(0!==g)return g}return 0}),{data:s}}},iie=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="dataset",t}return N(e,r),e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new oA(this),sA(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),sA(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Qr},e}(Ce),oie=function(r){function e(){var t=null!==r&&r.apply(this,arguments)||this;return t.type="dataset",t}return N(e,r),e.type="dataset",e}(Xe),Fa=Sa.CMD;function Bl(r,e){return Math.abs(r-e)<1e-5}function Sx(r){var n,L,P,E,R,k,O,V,z,F,U,Y,Z,$,ve,ee,_e,te,e=r.data,t=r.len(),a=[],i=0,o=0,s=0,l=0;function u(L,P){n&&n.length>2&&a.push(n),n=[L,P]}function f(L,P,E,R){Bl(L,E)&&Bl(P,R)||n.push(L,P,E,R,E,R)}for(var c,h,p,d,g=0;g<t;){var y=e[g++],m=1===g;switch(m&&(s=i=e[g],l=o=e[g+1],(y===Fa.L||y===Fa.C||y===Fa.Q)&&(n=[s,l])),y){case Fa.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case Fa.L:f(i,o,c=e[g++],h=e[g++]),i=c,o=h;break;case Fa.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case Fa.Q:c=e[g++],h=e[g++],p=e[g++],d=e[g++],n.push(i+2/3*(c-i),o+2/3*(h-o),p+2/3*(c-p),d+2/3*(h-d),p,d),i=p,o=d;break;case Fa.A:var _=e[g++],S=e[g++],x=e[g++],b=e[g++],w=e[g++],C=e[g++]+w;g+=1;var T=!e[g++];c=Math.cos(w)*x+_,h=Math.sin(w)*b+S,m?u(s=c,l=h):f(i,o,c,h),i=Math.cos(C)*x+_,o=Math.sin(C)*b+S;for(var M=(T?-1:1)*Math.PI/2,D=w;T?D>C:D<C;D+=M){L=D,P=T?Math.max(D+M,C):Math.min(D+M,C),E=_,R=S,k=x,O=b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,V=Math.abs(P-L),z=4*Math.tan(V/4)/3,F=P<L?-1:1,U=Math.cos(L),Y=Math.sin(L),Z=Math.cos(P),$=Math.sin(P),n.push(U*k+E-(_e=k*z*F)*Y,Y*O+R+(te=O*z*F)*U,(ve=Z*k+E)+_e*$,(ee=$*O+R)-te*Z,ve,ee)}break;case Fa.R:s=i=e[g++],l=o=e[g++],c=s+e[g++],h=l+e[g++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case Fa.Z:n&&f(i,o,s,l),i=s,o=l}}return n&&n.length>2&&a.push(n),a}function xx(r,e,t,a,n,i,o,s,l,u){if(Bl(r,t)&&Bl(e,a)&&Bl(n,o)&&Bl(i,s))l.push(o,s);else{var f=2/u,v=f*f,c=o-r,h=s-e,p=Math.sqrt(c*c+h*h);c/=p,h/=p;var d=t-r,g=a-e,y=n-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<v&&S<v)l.push(o,s);else{var x=c*d+h*g,b=-c*y-h*m;if(_-x*x<v&&x>=0&&S-b*b<v&&b>=0)l.push(o,s);else{var T=[],M=[];Nn(r,t,n,o,.5,T),Nn(e,a,i,s,.5,M),xx(T[0],M[0],T[1],M[1],T[2],M[2],T[3],M[3],l,u),xx(T[4],M[4],T[5],M[5],T[6],M[6],T[7],M[7],l,u)}}}}function KN(r,e,t){var i=Math.abs(r[e]/r[1-e]),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);0===s&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var v=t-o*s;if(v>0)for(u=0;u<v;u++)l[u%o]+=1;return l}function qN(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,s=Math.abs(r.endAngle-i),l=s*n,u=n-a,f=l>Math.abs(u),v=KN([l,u],f?0:1,e),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var p=(f?u:s)/v[h],d=0;d<v[h];d++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(h+1),g.r0=a+p*d,g.r=a+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=a+c*h,g.r=a+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function jN(r,e,t,a){return r*a-t*e}function fie(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=jN(f,v,l,u);if(Math.abs(c)<1e-6)return null;var d=jN(r-n,e-i,f,v)/c;return d<0||d>1?null:new le(d*l+r,d*u+e)}function vie(r,e,t){var a=new le;le.sub(a,t,e),a.normalize();var n=new le;return le.sub(n,r,e),n.dot(a)}function Vl(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function JN(r){var e=r.points,t=[],a=[];lc(e,t,a);var n=new fe(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new le,f=new le;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),function cie(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=fie(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:vie(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],p=[c],d=[h];for(i=u.idx+1;i<=f.idx;i++)Vl(p,r[i].slice());for(Vl(p,h),Vl(p,c),i=f.idx+1;i<=u.idx+a;
vendor: 4,189 bytes, line 1
1i++)Vl(d,r[i%a].slice());return Vl(d,c),Vl(d,h),[{points:p},{points:d}]}(e,u,f)}function md(r,e,t,a){if(1===t)a.push(e);else{var n=Math.floor(t/2),i=r(e);md(r,i[0],n,a),md(r,i[1],t-n,a)}return a}function pie(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function yie(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,f=Math.ceil(l/((s-2)/6))+1,v=[o[0],o[1]],c=l,h=2;h<s;){var p=o[h-2],d=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],x=o[h++];if(c<=0)v.push(g,y,m,_,S,x);else{for(var b=Math.min(c,f-1)+1,w=1;w<=b;w++){var C=w/b;Nn(p,g,m,S,C,n),Nn(d,y,_,x,C,i),v.push(n[1],i[1],n[2],i[2],p=n[3],d=i[3]),g=n[5],y=i[5],m=n[6],_=i[6]}c-=b-1}}return o===r?[v,e]:[r,v]}function QN(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function $N(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;e+=v,t+=(s+u)*v,a+=(l+f)*v}return 0===e?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function _ie(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=6*u,v=0,c=0;c<s;c+=2){var h=0===c?f:(f+c-2)%l+2,m=e[c]-a[0]-(r[h]-t[0]),_=e[c+1]-a[1]-(r[h+1]-t[1]);v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function Sie(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function _d(r){return r.__isCombineMorphing}var eB="__mOriginal_";function Sd(r,e,t){var a=eB+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var u,l=arguments;return s&&s.apply(this,l),u=i?i.apply(this,l):n.apply(this,l),o&&o.apply(this,l),u}}function uv(r,e){var t=eB+e;r[t]&&(r[e]=r[t],r[t]=null)}function tB(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function rB(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=function mie(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(a=f=(t=yie(l,u))[0],n=v=t[1]):(v=QN(n||l,l),f=l):(f=QN(a||u,u),v=u),i.push(f),o.push(v)}return[i,o]}(Sx(t),Sx(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();s&&tB(i,s),l&&tB(o,l),Sd(e,"updateTransform",{replace:function u(){this.transform=null}}),e.transform=null;var f=function xie(r,e,t,a){for(var i,n=[],o=0;o<r.length;o++){var s=r[o],l=e[o],u=$N(s),f=$N(l);null==i&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,p=1/0,d=[],g=s.length;i&&(s=Sie(s));for(var y=6*_ie(s,l,u,f),m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}if(v[0]=s[y]-u[0],v[1]=s[y+1]-u[1],t>0)for(var x=a/t,b=-a/2;b<=a/2;b+=x){var w=Math.sin(b),C=Math.cos(b),T=0;for(_=0;_<s.length;_+=2){var M=v[_],D=v[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*C-L*w,E=I*w+L*C;d[_]=P,d[_+1]=E;var R=P-M,k=E-D;T+=R*R+k*k}if(T<p){p=T,h=b;for(var O=0;O<d.length;O++)c[O]=d[O]}}else for(var V=0;V<g;V+=2)c[V]=l[V]-f[0],c[V+1]=l[V+1]-f[1];n.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return n}(i,o,10,Math.PI),v=[];Sd(e,"buildPath",{replace:function(c){for(var h=e.__morphT,p=1-h,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,x=y.fromCp,b=y.toCp,w=Math.sin(S),C=Math.cos(S);Kl(d,x,b,h);for(var T=0;T<m.length;T+=2){var P=m[T]*p+(I=_[T])*h,E=m[T+1]*p+(L=_[T+1])*h;v[T]=P*C-E*w+d[0],v[T+1]=P*w+E*C+d[1]}var R=v[0],k=v[1];for(c.moveTo(R,k),T=2;T<m.length;){var I=v[T++],L=v[T++],O=v[T++],V=v[T++],z=v[T++],F=v[T++];R===I&&k===L&&O===z&&V===F?c.lineTo(z,F):c.bezierCurveTo(I,L,O,V,z,F),R=z,k=F}}}})}function bx(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;return rB(r,e),e.__morphT=0,e.animateTo({__morphT:1},ie({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){(function i(){uv(e,"buildPath"),uv(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()})(),a&&a()}},t)),e}function bie(r,e,t,a,n,i){r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var l,s=0,u=32768;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),0===v&&(1===f&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function xd(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=W(r,function(s){var l=s.getBoundingRect
vendor: 4,489 bytes, line 1
1(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),a=Math.max(f,a),n=Math.max(v,n),[f,v]});return W(i,function(s,l){return{cp:s,z:bie(s[0],s[1],e,t,a,n),path:r[l]}}).sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function aB(r){return function gie(r,e){var n,t=[],a=r.shape;switch(r.type){case"rect":(function uie(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=KN([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],p=0;p<o[c];p++){var d={};d[u]=c*v,d[f]=p*h,d[s]=v,d[l]=h,d.x+=r.x,d.y+=r.y,t.push(d)}})(a,e,t),n=be;break;case"sector":qN(a,e,t),n=Yt;break;case"circle":qN({r0:0,r:a.r,startAngle:0,endAngle:2*Math.PI,cx:a.cx,cy:a.cy},e,t),n=Yt;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=W(function lie(r,e){var t=Sx(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],c=i[u++],h=i[u++],p=i[u++],d=i[u++];xx(s,l,f,v,c,h,p,d,o,e),s=p,l=d}a.push(o)}return a}(r.getUpdatedPathProxy(),o),function(y){return function die(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}(y)}),l=s.length;if(0===l)md(JN,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,v=W(s,function(y){var m=[],_=[];lc(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});var c=e;for(u=0;u<l;u++){var h=v[u];if(c<=0)break;var p=u===l-1?c:Math.ceil(h.area/f*e);p<0||(md(JN,{points:h.poly},p,t),c-=p)}}n=Zt}if(!n)return function hie(r,e){for(var t=[],a=0;a<e;a++)t.push(Tm(r));return t}(r,e);var d=[];for(u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),pie(r,g),d.push(g)}return d}(r.path,r.count)}function nB(r){return H(r[0])}function iB(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}var s=0;for(n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1){if(!s)return t;s=0}i=l.length;var u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var Cie={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=Tm(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function Cx(r,e,t,a,n,i){if(r.length&&e.length){var o=Ds("update",a,n);if(o&&o.duration>0){var u,f,s=a.getModel("universalTransition").get("delay"),l=G({setToFinal:!0},o);nB(r)&&(u=r,f=e),nB(e)&&(u=e,f=r);for(var c=u?u===r:r.length>e.length,h=u?iB(f,u):iB(c?e:r,[c?r:e]),p=0,d=0;d<h.length;d++)p+=h[d].many.length;var g=0;for(d=0;d<h.length;d++)v(h[d],c,g,p),g+=h[d].many.length}}function v(y,m,_,S,x){var b=y.many,w=y.one;if(1!==b.length||x)for(var D=ie({dividePath:Cie[t],individualDelay:s&&function(k,O,V,z){return s(k+_,S)}},l),I=m?function wie(r,e,t){var a=[];!function n(x){for(var b=0;b<x.length;b++){var w=x[b];_d(w)?n(w.childrenRef()):w instanceof we&&a.push(w)}}(r);var i=a.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var s=(t.dividePath||aB)({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};a=xd(a),s=xd(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new Gn,c=0;c<i;c++){var h=a[c],p=s[c];p.parent=e,p.copyTransform(v),f||rB(h,p)}function d(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,uv(e,"addSelfToZr"),uv(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},Sd(e,"addSelfToZr",{after:function(x){d(x)}}),Sd(e,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});var y=s.length;if(f){var m=y,_=function(){0==--m&&(g(),l&&l())};for(c=0;c<y;c++){var S=f?ie({delay:(t.delay||0)+f(c,y,a[c],s[c]),done:_},t):t;bx(a[c],s[c],S)}}else e.__morphT=0,e.animateTo({__morphT:1},ie({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)uv(r[x],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}(b,w,D):function Tie(r,e,t){var a=e.length,n=[],i=t.dividePath||aB;if(_d(r)){!function o(h){for(var p=0;p<h.length;
vendor: 2,220 bytes, line 1
1p++){var d=h[p];_d(d)?o(d.childrenRef()):d instanceof we&&n.push(d)}}(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(Tm(n[l++%s]));n.length=a}else{n=i({path:r,count:a});var f=r.getComputedTransform();for(u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}n=xd(n),e=xd(e);var v=t.individualDelay;for(u=0;u<a;u++){var c=v?ie({delay:(t.delay||0)+v(u,a,n[u],e[u])},t):t;bx(n[u],e[u],c)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,E=L.length,R=0;R<E;R++)M=s?ie({delay:s(R,E)},l):l,i(L[R],P[R],m?b[R]:y.one,m?y.one:b[R],M);else{var M,C=m?b[0]:w,T=m?w:b[0];_d(C)?v({many:[C],one:T},!0,_,S,!0):(bx(C,T,M=s?ie({delay:s(_,S)},l):l),i(C,T,C,T,M))}}}function ns(r){if(!r)return[];if(H(r)){for(var e=[],t=0;t<r.length;t++)e.push(ns(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof we&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var Mie=ge();function uB(r,e,t,a){var i=function Die(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&0===n.otherDims[e])return t[a]}}(r,a?"itemChildGroupId":"itemGroupId");if(i){var o=function Lie(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";return s&&s[l]?s[l]+"":a?void 0:t||r.getId(e)}function fB(r){var e=[];return A(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>1e4))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:uB(a,o,n,!1),childGroupId:uB(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function Ax(r,e,t){r.traverse(function(a){a instanceof we&&Ze(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Mx(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function zl(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function vB(r,e,t){var a=fB(r),n=fB(e);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?G(G({},x.style),_.style):_.style},w)}var o=!1,s=0,l=j(),u=j();
vendor: 12,530 bytes, line 1
1A(a,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){if(u.get(n[f].groupId)){s=1;break}var c=n[f].childGroupId;if(c&&l.get(c)){s=2;break}}function h(_,S){return function(x){return S?x.data.getId(x.dataIndex):_?1===s?x.childGroupId:x.groupId:2===s?x.childGroupId:x.groupId}}var p=function Pie(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}(a,n),d={};if(!p)for(f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(_,S){var x=a[S],b=n[_],w=b.data.hostModel,C=x.data.getItemGraphicEl(x.dataIndex),T=b.data.getItemGraphicEl(b.dataIndex);C!==T?C&&d[C.id]||T&&(zl(T),C?(zl(C),Mx(C),o=!0,Cx(ns(C),ns(T),b.divide,w,_,i)):Ax(T,w,_)):T&&function Iie(r,e,t){var a=Ds("update",t,e);a&&r.traverse(function(n){if(n instanceof Rr){var i=function dG(r){return AT(r).oldStyle}(n);i&&n.animateFrom({style:i},a)}})}(T,b.dataIndex,w)}new dn(a,n,h(!0,p),h(!1,p),null,"multiple").update(m).updateManyToOne(function(_,S){var x=n[_],b=x.data,w=b.hostModel,C=b.getItemGraphicEl(x.dataIndex),T=ke(W(S,function(M){return a[M].data.getItemGraphicEl(a[M].dataIndex)}),function(M){return M&&M!==C&&!d[M.id]});C&&(zl(C),T.length?(A(T,function(M){zl(M),Mx(M)}),o=!0,Cx(ns(T),ns(C),x.divide,w,_,i)):Ax(C,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=a[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!b||!d[b.id]){var w=ke(W(_,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==b}),C=n[_[0]].data.hostModel;w.length&&(A(w,function(T){return zl(T)}),b?(zl(b),Mx(b),o=!0,Cx(ns(b),ns(w),x.divide,C,_[0],i)):A(w,function(T){return Ax(T,C,_[0])}))}}).updateManyToMany(function(_,S){new dn(S,_,function(x){return a[x].data.getId(a[x].dataIndex)},function(x){return n[x].data.getId(n[x].dataIndex)}).update(function(x,b){m(_[x],S[b])}).execute()}).execute(),o&&A(e,function(_){var x=_.data.hostModel,b=x&&t.getViewOfSeriesModel(x),w=Ds("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(C){C instanceof we&&!C.animators.length&&C.animateFrom({style:{opacity:0}},w)})})}function cB(r){return r.getModel("universalTransition").get("seriesKey")||r.id}function hB(r){return H(r)?r.sort().join(","):r}function gi(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function pB(r,e){for(var t=0;t<r.length;t++)if(null!=e.seriesIndex&&e.seriesIndex===r[t].seriesIndex||null!=e.seriesId&&e.seriesId===r[t].id)return t}var Oie=function(){function r(e,t){_0(this,r.decoratedMethods),this._outOfBrk=x0(null,t),this._linear=x0(null,t),S0(this),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<e&&e<n.vmax)return t(e,n.vmax)}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return null==t||2===t?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,a){Ni(t,a)&&(0===e&&function Bie(r,e){var t=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i={S:{tpAbs:{has:!1,span:NaN,inExtFrac:NaN,val:NaN},tpPrct:{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},E:{tpAbs:{has:!1,span:NaN,inExtFrac:NaN,val:NaN},tpPrct:{has:!1,span:NaN,inExtFrac:NaN,val:NaN}}};A(r.breaks,function(s){var l=s.gapParsed;"tpPrct"===l.type&&(t+=l.val);var u=Dx(s,e);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!f||!v)if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=c,a[l.type].val+=l.val}});var o=t*(e[1]-e[0]+0+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;"tpPrct"===l.type&&(s.gapReal=0!==t?xe(o,0)*l.val/t:0),"tpAbs"===l.type&&(s.gapReal=l.val),null==s.gapReal&&(s.gapReal=0)})}(this,[t,a]),this._outOfBrk.setExtent2(e,t,a),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(a,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&2===t.depth)return e;for(var a=dB,n=gB,i=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){a+=e>s.vmin?s.vmin-n+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:e-n,n=s.vmax,i=!1;break}a+=s.vmin-n+s.gapReal,n=s.vmax}return i&&(a+=e-n),a},transformOut:function(e,t){if(t&&2===t.depth)return e;for(var a=dB,n=gB,i=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=a+l.vmin-n,f=u+l.gapReal;if(e<=f){o=e>u?l.vmin+(e-u)/(f-u)*(l.vmax-l.vmin):n+e-a,n=l.vmax,i=!1;break}a=f,n=l.vmax}return i&&(o=n+e-a),o}},r}();function Nie(r,e){return new Oie(r,e)}var dB=0,gB=0;function Vie(r,e,t,a,n,i){"no"!==r&&A(t,function(o){var s=Dx(o,i);if(s)for(var l=e.length-1;l>=0;l--){var f=a(e[l]),v=3*n/4;f>s.vmin-v&&f<s.vmax+v&&("preserve_extent_bound"!==r||f!==i[0]&&f!==i[1])&&e.splice(l,1)}})}function zie(r,e,t,a){A(e,function(n){var i=Dx(n,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:a?a(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:a?a(i):void 0}))}),e.length&&r.sort(function(n,i){return n.value-i.value})}function Dx(r,e){var t=xe(r.vmin,e[0]),a=Be(r.vmax,e[1]);return t<a||t===a&&t>e[0]&&t<e[1]?{vmin:t,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function Lx(r,e,t){var a=[];if(!r)return{breaks:a};A(r,function(o){if(o&&null!=o.start&&null!=o.end&&!o.isExpanded){var s={breakOption:re(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(null!=o.gap){var l=!1;if(X(o.gap)){var u=vr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;(function n(o){return o>=0&&o<.99999})(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=e.parse(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&A(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:ke(a,function(o){return!!o})}}function Ix(r,e){return Px(e)===Px(r)}function Px(r){return r.start+"_\0_"+r.end}function Gie(r,e,t){var a=[];A(r,function(i,o){var s=e(i);s&&"vmin"===s.type&&a.push([o])}),A(r,function(i,o){var s=e(i);if(s&&"vmax"===s.type){var l=Ua(a,function(u){return Ix(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){2===i.length&&n.push(t?i:[r[i[0]],r[i[1]]])}),n}function Fie(r,e,t,a){if(e.break){var n=e.break.parsedBreak,i=Ua(t,function(f){return Ix(f.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:a,depth:2},u={vmin:r.transformOut(n.vmin,o),vmax:r.transformOut(n.vmax,o),breakOption:n.breakOption,gapParsed:re(i.gapParsed),gapReal:n.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function Hie(r,e,t,a,n){n.original=Lx(r,e,t);var i=n.transformed=Lx(r,e,t),o=n.lookup;i.breaks=W(i.breaks,function(s,l){var u={depth:2},f=e.transformIn(s.vmin,u),v=e.transformIn(s.vmax,u),c={type:s.gapParsed.type,val:"tpAbs"===s.gapParsed.type?e.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[a+l]=f,o.to[a+l]=s.vmin,o.from[a+l+1]=v,o.to[a+l+1]=s.vmax,{vmin:f,vmax:v,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}})}var Wie={vmin:"start",vmax:"end"};function Uie(r,e){return e&&((r=r||{}).break={type:Wie[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}var yB=ge();function qie(r,e,t,a,n){var i=t.axis;if(!i.scale.isBlank()&&ot()){var o=ot().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(T){return T.break},!1);if(o.length){var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var v=s.get("expandOnClick"),c=s.get("zigzagZ"),p=s.getModel("itemStyle").getItemStyle(),d=p.stroke,g=p.lineWidth,y=p.lineDash,m=p.fill,_=new oe({ignoreModelZ:!0}),S=i.isHorizontal(),x=yB(e).visualList||(yB(e).visualList=[]);!function Xie(r){A(r,function(e){return e.shouldRemove=!0})}(x);for(var b=function(T){var M=o[T][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]<D[0]&&D.reverse();var I=function Zie(r,e){var t=Ua(r,function(a){return ot().identifyAxisBreak(a.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}(x,M);I.shouldRemove=!1;var L=new oe;(function C(T,M,D,I,L,P){var E={stroke:d,lineWidth:g,lineDash:y,fill:"none"},R=L?0:1,k=1-R,O=a[he[k]]+a[nt[k]];function V(Ge){var Le=[],Ve=[];Le[R]=Ve[R]=Ge,Le[k]=a[he[k]],Ve[k]=O;var We={x1:Le[0],y1:Le[1],x2:Ve[0],y2:Ve[1]};return vc(We,We,{lineWidth:1}),Le[0]=We.x1,Le[1]=We.y1,Le[R]}D=V(D),I=V(I);for(var z=[],F=[],U=!0,Y=a[he[k]],Z=0;;Z++){var $=Y===a[he[k]],ye=Y>=O;ye&&(Y=O);var Ne=[],ve=[];Ne[R]=D,ve[R]=I,!$&&!ye&&(Ne[R]+=U?-l:l,ve[R]-=U?l:-l),Ne[k]=Y,ve[k]=Y,z.push(Ne),F.push(ve);var ee=void 0;if(Z<T.length?ee=T[Z]:(ee=Math.random(),T.push(ee)),Y+=ee*(f-u)+u,U=!U,ye)break}var _e=ot().serializeAxisBreakIdentifier(P.breakOption);if(M.add(new Bt({anid:"break_a_"+_e,shape:{points:z},style:E,z:c})),0!==P.gapReal){M.add(new Bt({anid:"break_b_"+_e,shape:{points:F},style:E,z:c}));var te=F.slice();te.reverse();var ce=z.concat(te);M.add(new Zt({anid:"break_c_"+_e,shape:{points:ce},style:{fill:m,opacity:p.opacity},z:c}))}})(I.zigzagRandomList,L,D[0],D[1],S,M),v&&L.on("click",function(){var P={type:Xh,breaks:[{start:M.breakOption.start,end:M.breakOption.end}]};P[i.dim+"AxisIndex"]=t.componentIndex,n.dispatchAction(P)}),L.silent=!v,_.add(L)},w=0;w<o.length;w++)b(w);r.add(_),function Kie(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}(x)}}}function jie(r,e,t,a){var n=r.axis,i=t.transform;Rt(a.style);var o=n.getExtent();n.inverse&&(o=o.slice()).reverse();var l=W(ot().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),function(g){var y=g[0].break.parsedBreak,m=[n.dataToCoord(y.vmin,!0),n.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:ot().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var c=l[v],h=Math.max(c.coordPair[0],o[0]),p=Math.min(c.coordPair[1],o[1]);u<=h&&d(u,h,f,c),u=p,f=c}function d(g,y,m,_){function S(D,I){i&&(tt(D,D,i),tt(I,I,i))}function x(D,I){var L={x1:D[0],y1:D[1],x2:I[0],y2:I[1]};vc(L,L,a.style),D[0]=L.x1,D[1]=L.y1,I[0]=L.x2,I[1]=L.y2}var b=[g,0],w=[y,0],C=[g,5],T=[y,5];S(b,C),x(b,C),S(w,T),x(w,T),x(b,w);var M=new ct(G({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},a));e.add(M),M.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}u<=o[1]&&d(u,o[1],f,null)}function Jie(r,e,t){if(!Ua(t,function(m){return!m})){var a=new le;if(zh(t[0],t[1],a,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1})){var n=[1,0,0,1,0,0];ja(n,n,-e);var i=W(t,function(m){return m.transform?cr([1,0,0,1,0,0],n,m.transform):n}),s=.5;if(o(0)||o(1)){var l=W(t,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new le;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(n);var f=a.clone().transform(n),c=(l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width)+f.x)/2-u.x,h=Math.min(c,c-f.x),p=Math.max(c,c-f.x);s=(c-(p<0?p:h>0?h:0))/f.x}var g=new le,y=new le;le.scale(g,a,-s),le.scale(y,a,1-s),G0(t[0],g),G0(t[1],y)}}function o(m){var _=t[0].localRect,S=new le(_[nt[m]]*i[0][0],_[nt[m]]*i[0][1]);return Math.abs(S.y)<1e-5}}function Qie(r,e){var t={breaks:[]};
1return A(e.breaks,function(a){if(a){var n=Ua(r.get("breaks",!0),function(s){return ot().identifyAxisBreak(s,a)});if(n){var i=e.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===Xh||i!==RI&&(i===EI?!n.isExpanded:n.isExpanded),t.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),t}function roe(r,e){A(r,function(t){if(!t.model.get(["axisLabel","inside"])){var a=function aoe(r){var t=r.scale;if(r.model.get(["axisLabel","show"])&&!t.isBlank()){var a,n,i=t.getExtent();t instanceof Ch?n=t.count():n=(a=t.getTicks()).length;var l,g,y,m,_,S,x,b,o=r.getLabelModel(),s=sf(r),u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var c=s(a?a[f]:{value:i[0]+f},f),p=(g=o.getTextRect(c),y=o.get("rotate")||0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,m=y*Math.PI/180,S=g.height,x=(_=g.width)*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),b=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),new fe(g.x,g.y,x,b));l?l.union(p):l=p}return l}}(t);if(a){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[n]-=a[n]+i,"top"===t.position?e.y+=a.height+i:"left"===t.position&&(e.x+=a.width+i)}}})}me([function oY(r){r.registerPainter("canvas",iY)}]),me([function WY(r){r.registerPainter("svg",HY)}]),me([function p8(r){r.registerChartView(v8),r.registerSeriesModel(YY),r.registerLayout(wf("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,PI("line"))},function h6(r){r.registerChartView(c6),r.registerSeriesModel(j8),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,KI(Ra)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qI(Ra)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,PI(Ra)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){t.eachComponent({mainType:e.componentType||"series",query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})}),JI(r)},function M6(r){r.registerChartView(C6),r.registerSeriesModel(g6),xM(ii,r.registerAction),r.registerLayout(x6),r.registerProcessor(Mf(ii)),r.registerProcessor(function A6(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Ae(o)&&!isNaN(o)&&o<0)})}}}(ii))},function g7(r){me(BP),r.registerSeriesModel(L6),r.registerChartView(O6),r.registerLayout(wf("scatter"))},function O7(r){me(R7),r.registerChartView(b7),r.registerSeriesModel(S7),r.registerLayout(E7),r.registerProcessor(Mf("radar")),r.registerPreprocessor(m7)},function XZ(r){me(F2),r.registerChartView(PZ),r.registerSeriesModel(LZ),r.registerLayout(HZ),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,YZ),xM("map",r.registerAction)},function CX(r){r.registerChartView(mX),r.registerSeriesModel(hX),r.registerLayout(SX),r.registerVisual(wX),function bX(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:ba,subType:Xo,query:e},function(a){var n=e.dataIndex,o=a.getData().tree.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),U_(r,ba,Xo)}(r)},function v9(r){r.registerSeriesModel(LX),r.registerChartView(e9),r.registerVisual(o9),r.registerLayout(GX),function AX(r){for(var e=0;e<J2.length;e++)r.registerAction({type:J2[e],update:"updateView"},et);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},function n(i,o){var l=Gf(t,["treemapZoomToNode","treemapRootToNode"],i);if(l){var u=i.getViewRoot();u&&(t.direction=Q_(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}})})}(r)},function U9(r){r.registerChartView(z9),r.registerSeriesModel(_9),r.registerProcessor(G9),r.registerVisual(H9),r.registerVisual(S9),r.registerLayout(b9),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,C9),r.registerLayout(D9),r.registerCoordinateSystem("graphView",{dimensions:_p.dimensions,create:P9}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},et),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},et),U_(r,ba,ar)},function tK(r){r.registerChartView(J9),r.registerSeriesModel(Z9),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,Q9),r.registerProcessor(Mf("chord"))},function fK(r){r.registerChartView(sK),r.registerSeriesModel(uK)},function xK(r){r.registerChartView(gK),r.registerSeriesModel(cK),r.registerLayout(_K),r.registerProcessor(Mf(Al))},function bq(r){me(vE),r.registerChartView(AK),r.registerSeriesModel(IK),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,EK)},function jq(r){r.registerChartView(Lq),r.registerSeriesModel(Tq),r.registerLayout(Iq),r.registerVisual(Kq),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:ba,subType:bn,query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),U_(r,ba,bn)},function vj(r){r.registerSeriesModel(Jq),r.registerChartView(rj),r.registerLayout(nj),r.registerTransform(fj),function lj(r){aj(r,function(){var e=Vo(Oa);L0(r,{key:e,seriesType:Oa,getMetrics:d_}),Rh(e,jh(e))})}(r)},function Rj(r){r.registerChartView(Aj),r.registerSeriesModel(cj),r.registerPreprocessor(Mj),r.registerVisual(_j),r.registerLayout(Lj),function Pj(r){Dj(r,function(){var e=Vo(vi);L0(r,{key:e,seriesType:vi,getMetrics:d_}),Rh(e,jh(e))})}(r)},function zj(r){r.registerChartView(Nj),r.registerSeriesModel(Vj),r.registerLayout(wf("effectScatter"))},function aJ(r){r.registerChartView(jj),r.registerSeriesModel(eJ),r.registerLayout(AE),r.registerVisual(rJ)},function hJ(r){r.registerChartView(fJ),r.registerSeriesModel(cJ)},function AJ(r){r.registerChartView(wJ),r.registerSeriesModel(CJ),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,KI(Af)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,qI(Af)),JI(r)},function OJ(r){r.registerChartView(PJ),r.registerSeriesModel(DJ),r.registerLayout(RJ),r.registerProcessor(Mf(Il))},function jJ(r){r.registerChartView(UJ),r.registerSeriesModel(GJ),r.registerLayout(XJ),r.registerVisual(YJ),function HJ(r){r.registerAction({type:r1,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},function a(n,i){var o=Gf(e,[r1],n);if(o){var s=n.getViewRoot();s&&(e.direction=Q_(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}})}),r.registerAction({type:UE,update:"none"},function(e,t,a){e=G({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function n(i){var o=Gf(e,[UE],i);o&&(e.dataIndex=o.node.dataIndex)}),a.dispatchAction(G(e,{type:"highlight"}))}),r.registerAction({type:"sunburstUnhighlight",update:"updateView"},function(e,t,a){e=G({},e),a.dispatchAction(G(e,{type:"downplay"}))})}(r)},function NQ(r){r.registerChartView(CQ),r.registerSeriesModel($J)}]),me(function i$(r){me(BP),me(Qf)}),me(function H$(r){me(Qf),Go.registerAxisPointerClass("PolarAxisPointer",u$),r.registerCoordinateSystem("polar",w$),r.registerComponentModel(v$),r.registerComponentView(F$),Sl(r,"angle",c$,z$),Sl(r,"radius",h$,G$),r.registerComponentView(M$),r.registerComponentView(R$),r.registerLayout(k$),function V$(r,e){E$(r,function(){var t=zo(e,Ba);WI(r,t,e,Ba),Rh(t,jh(t))})}(r,Ra)}),me(F2),me(function iee(r){me(Qf),Go.registerAxisPointerClass("SingleAxisPointer",aee),r.registerComponentView(nee),r.registerComponentView(Z$),r.registerComponentModel(I_),Sl(r,"single",I_,I_.defaultOption),r.registerCoordinateSystem("single",$$)}),me(vE),me(function cee(r){r.registerComponentModel(see),r.registerComponentView(uee),r.registerCoordinateSystem("calendar",vee)}),me(function Oee(r){r.registerComponentModel(bee),r.registerComponentView(Iee),r.registerCoordinateSystem("matrix",kee)}),me(function Uee(r){r.registerComponentModel(Gee),r.registerComponentView(Fee),r.registerPreprocessor(function(e){var t=e.graphic;H(t)?e.graphic=t[0]&&t[0].elements?[e.graphic[0]]:[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}),me(function Xte(r){r.registerComponentModel(fte),r.registerComponentView(hte),El("saveAsImage",dte),El("magicType",mte),El("dataView",Lte),El("dataZoom",Zte),El("restore",Ote),me(lte)}),me(function gre(r){me(Qf),r.registerComponentModel(qte),r.registerComponentView(dre),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},et),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},et)}),me(Qf),me(function Ore(r){r.registerComponentView(Lre),r.registerComponentModel(Pre),r.registerPreprocessor(mre),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,bre),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"},et),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},et),El("brush",kre)}),me(function Vre(r){r.registerComponentModel(Nre),r.registerComponentView(Bre)}),me(function Qre(r){r.registerComponentModel(Gre),r.registerComponentView(Kre),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),function qre(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),ie({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&null!=e.playState&&a.setPlayState(e.playState)})}(r),r.registerPreprocessor(jre)}),me(function uae(r){r.registerComponentModel(eae),r.registerComponentView(lae),r.registerPreprocessor(function(e){rx(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}),me(function yae(r){r.registerComponentModel(vae),r.registerComponentView(gae),r.registerPreprocessor(function(e){rx(e.series,"markLine")&&(e.markLine=e.markLine||{})})}),me(function Cae(r){r.registerComponentModel(_ae),r.registerComponentView(Tae),r.registerPreprocessor(function(e){rx(e.series,"markArea")&&(e.markArea=e.markArea||{})})}),me(function Gae(r){me(dN),me(zae)}),me(function une(r){me(SN),me(wN)}),me(SN),me(wN),me(function Nne(r){me(VN),me(GN)}),me(VN),me(GN),me(function Gne(r){r.registerComponentModel(Vne),r.registerComponentView(zne)}),me(function Yne(r){r.registerPreprocessor(Une),r.registerVisual(r.PRIORITY.VISUAL.ARIA,Hne)}),me(function nie(r){r.registerTransform(rie),r.registerTransform(aie)}),me(function sie(r){r.registerComponentModel(iie),r.registerComponentView(oie)}),me(function kie(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Fe(a.seriesTransition),function(n){A(Fe(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(null!=i.seriesIndex&&i.seriesIndex===o[s].seriesIndex||null!=i.seriesId&&i.seriesId===o[s].id)&&(o[s][Vc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=Mie(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Fe(i),function(h){!function Eie(r,e,t,a){var n=[],i=[];A(Fe(r.from),function(o){var s=pB(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:gi(e.oldData[s]),groupIdDim:o.dimension})}),A(Fe(r.to),function(o){var s=pB(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:gi(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&vB(n,i,a)}(h,n,a,t)});else{var o=function Rie(r,e){var t=j(),a=j(),n=j();return A(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=cB(o),v=hB(f);a.set(v,{dataGroupId:l,data:u}),H(f)&&A(f,function(c){n.set(c,{key:v,dataGroupId:l,data:u})})}
1),A(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=cB(o),f=hB(u),v=a.get(f);if(v)t.set(f,{oldSeries:[{dataGroupId:v.dataGroupId,divide:gi(v.data),data:v.data}],newSeries:[{dataGroupId:s,divide:gi(l),data:l}]});else if(H(u)){var c=[];A(u,function(d){var g=a.get(d);g.data&&c.push({dataGroupId:g.dataGroupId,divide:gi(g.data),data:g.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:gi(l)}]})}else{var h=n.get(u);if(h){var p=t.get(h.key);p||(p={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:gi(h.data)}],newSeries:[]},t.set(h.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:gi(l)})}}}}),t}(n,a);A(o.keys(),function(h){var p=o.get(h);vB(p.oldSeries,p.newSeries,t)})}A(a.updatedSeries,function(h){h[Vc]&&(h[Vc]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<1e4&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}),me(PL),me(function eoe(r){(function _8(r){function e(t,a){var n=[],i=bs(a,t);function o(s,l){A(i[s],function(u){A(u.updateAxisBreaks(t).breaks,function(v){var c;n.push(ie(((c={})[l]=u.componentIndex,c),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}r.registerAction(g8,e),r.registerAction(y8,e),r.registerAction(m8,e)})(r),function Yie(){!function RG(r){zy||(zy=r)}({createBreakScaleMapper:Nie,pruneTicksByBreak:Vie,addBreaksToTicks:zie,parseAxisBreakOption:Lx,identifyAxisBreak:Ix,serializeAxisBreakIdentifier:Px,retrieveAxisBreakPairs:Gie,getTicksBreakOutwardTransform:Fie,parseAxisBreakOptionInwardTransform:Hie,makeAxisLabelFormatterParamBreak:Uie})}(),function $ie(){!function d8(r){f_||(f_=r)}({adjustBreakLabelPair:Jie,buildAxisBreakLine:jie,rectCoordBuildBreakAxis:qie,updateModelAxisBreak:Qie})}()}),me(function toe(){!function K6(r){T_=r}(roe)}),me(function y7(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,function d7(){return{seriesType:"scatter",plan:lo(),reset:function(r){var e=r.coordinateSystem;if(e&&(e.type===oa||e.type===ip)){var t=e.getBaseAxis&&e.getBaseAxis(),a=t&&function c7(r,e){var t=r.coordinateSystem,a=t&&t.type,n=t&&t.getBaseAxis&&t.getBaseAxis(),o=a===oa&&"ordinal"===(n&&n.scale&&n.scale.type)||a===ip,s=e.model.get("jitter")>0;return o&&s}(r,t);if(a){var n=t.dim,i=t.orient,o="horizontal"===i&&"category"!==t.type||"vertical"===i&&"category"===t.type,s="y"===n||"single"===n&&o,l="x"===n||"single"===n&&!o;if(s||l)return{progress:function(u,f){for(var v=f.getLayout("points"),c=!!v,h=u.start;h<u.end;h++){var p=c?2*(h-u.start):-1,d=c?[v[p],v[p+1]]:f.getItemLayout(h);if(d){var g=f.getItemVisual(h,"symbolSize"),y=g instanceof Array?(g[1]+g[0])/2:g;if(s){var m=zP(t,d[0],d[1],y/2);c?v[p+1]=m:d[1]=m}else l&&(m=zP(t,d[1],d[0],y/2),c?v[p]=m:d[0]=m)}}}}}}}}}())})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.