sd-webui-infinite-image-bro.../vue/dist/assets/TopicSearch-5af266be.js

63 lines
1.1 MiB
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import{ay as Jl,P as zl,bK as PA,d as Zn,G as Gt,a as be,c as St,Z as Lv,_ as kA,cz as eg,r as te,cA as PR,bC as RA,cB as kR,b7 as EA,h as cr,u as OA,be as RR,cb as ER,bc as OR,ca as NR,cw as NA,m as fs,an as BR,ao as zR,az as VR,o as BA,I as GR,U as Jt,V as De,W as Tt,a3 as ke,X as Tr,Y as Ft,$ as ur,cC as FR,z as Oi,aO as zA,aP as VA,aQ as GA,a0 as FA,a1 as HR,J as WR,B as sr,bk as $R,a2 as ln,cp as UR,a4 as Jn,a9 as YR,a8 as ZR,cD as XR,cE as qR,cF as KR,ck as jR,cG as JR,cH as QR,R as Ao,ak as tE,aj as eE,ah as rE,T as aE,cI as nE}from"./index-d6594e8e.js";import{u as iE}from"./index-154b94da.js";import{S as HA}from"./index-4be8cdd9.js";import{_ as oE}from"./index-e620c28b.js";import{_ as sE}from"./index-cb6a3d31.js";/* empty css */import{_ as WA}from"./index-30b8f89a.js";var $A=Jl("normal","exception","active","success"),lE=Jl("line","circle","dashboard"),uE=Jl("default","small"),Bc=function(){return{prefixCls:String,type:zl.oneOf(lE),percent:Number,format:{type:Function},status:zl.oneOf($A),showInfo:{type:Boolean,default:void 0},strokeWidth:Number,strokeLinecap:String,strokeColor:{type:[String,Object],default:void 0},trailColor:String,width:Number,success:{type:Object,default:function(){return{}}},gapDegree:Number,gapPosition:String,size:zl.oneOf(uE),steps:Number,successPercent:Number,title:String}};function $i(r){return!r||r<0?0:r>100?100:r}function Iv(r){var t=r.success,e=r.successPercent,a=e;return t&&"progress"in t&&(PA(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),a=t.progress),t&&"percent"in t&&(a=t.percent),a}var fE=["from","to","direction"],vE=function(){return be(be({},Bc()),{},{prefixCls:String,direction:{type:String}})},cE=function(t){var e=[];return Object.keys(t).forEach(function(a){var n=parseFloat(a.replace(/%/g,""));isNaN(n)||e.push({key:n,value:t[a]})}),e=e.sort(function(a,n){return a.key-n.key}),e.map(function(a){var n=a.key,i=a.value;return"".concat(i," ").concat(n,"%")}).join(", ")},hE=function(t,e){var a=t.from,n=a===void 0?eg.blue:a,i=t.to,o=i===void 0?eg.blue:i,s=t.direction,l=s===void 0?e==="rtl"?"to left":"to right":s,u=kA(t,fE);if(Object.keys(u).length!==0){var f=cE(u);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(f,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(n,", ").concat(o,")")}};const dE=Zn({compatConfig:{MODE:3},name:"Line",props:vE(),setup:function(t,e){var a=e.slots,n=Gt(function(){var u=t.strokeColor,f=t.direction;return u&&typeof u!="string"?hE(u,f):{background:u}}),i=Gt(function(){return t.trailColor?{backgroundColor:t.trailColor}:void 0}),o=Gt(function(){var u=t.percent,f=t.strokeWidth,v=t.strokeLinecap,c=t.size;return be({width:"".concat($i(u),"%"),height:"".concat(f||(c==="small"?6:8),"px"),borderRadius:v==="square"?0:""},n.value)}),s=Gt(function(){return Iv(t)}),l=Gt(function(){var u=t.strokeWidth,f=t.size,v=t.strokeLinecap,c=t.success;return{width:"".concat($i(s.value),"%"),height:"".concat(u||(f==="small"?6:8),"px"),borderRadius:v==="square"?0:"",backgroundColor:c==null?void 0:c.strokeColor}});return function(){var u;return St(Lv,null,[St("div",{class:"".concat(t.prefixCls,"-outer")},[St("div",{class:"".concat(t.prefixCls,"-inner"),style:i.value},[St("div",{class:"".concat(t.prefixCls,"-bg"),style:o.value},null),s.value!==void 0?St("div",{class:"".concat(t.prefixCls,"-success-bg"),style:l.value},null):null])]),(u=a.default)===null||u===void 0?void 0:u.call(a)])}}});var pE={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},gE=function(t){var e=te(null);return PR(function(){var a=Date.now(),n=!1;t.value.forEach(function(i){var o=(i==null?void 0:i.$el)||i;if(o){n=!0;var s=o.style;s.transitionDuration=".3s, .3s, .3s, .06s",e.value&&a-e.value<100&&(s.transitionDuration="0s, 0s")}}),n&&(e.value=Date.now())}),t},yE={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String},mE=["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"],H_=0;function W_(r){return+r.replace("%","")}function $_(r){return Array.isArray(r)?r:[r]}function U_(r,t,e,a){var n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,o=50-a/2,s=0,l=-o,u=0,f=-2*o;switch(i){case"left":s=-o,l=0,u=2*o,f=0;break;case"right":s=o,l=0,u=-2*o,f=0;break;case"bottom":l=o,f=2*o;break}var v="M 50,50 m ".concat(s,",").concat(l,`
a `).concat(o,",").concat(o," 0 1 1 ").concat(u,",").concat(-f,`
a `).concat(o,",").concat(o," 0 1 1 ").concat(-u,",").concat(f),c=Math.PI*2*o,h={stroke:e,strokeDasharray:"".concat(t/100*(c-n),"px ").concat(c,"px"),strokeDashoffset:"-".concat(n/2+r/100*(c-n),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:v,pathStyle:h}}const _E=Zn({compatConfig:{MODE:3},name:"VCCircle",props:RA(yE,pE),setup:function(t){H_+=1;var e=te(H_),a=Gt(function(){return $_(t.percent)}),n=Gt(function(){return $_(t.strokeColor)}),i=kR(),o=EA(i,2),s=o[0],l=o[1];gE(l);var u=function(){var v=t.prefixCls,c=t.strokeWidth,h=t.strokeLinecap,d=t.gapDegree,p=t.gapPosition,g=0;return a.value.map(function(y,m){var _=n.value[m]||n.value[n.value.length-1],S=Object.prototype.toString.call(_)==="[object Object]"?"url(#".concat(v,"-gradient-").concat(e.value,")"):"",x=U_(g,y,_,c,d,p),b=x.pathString,w=x.pathStyle;g+=y;var T={key:m,d:b,stroke:S,"stroke-linecap":h,"stroke-width":c,opacity:y===0?0:1,"fill-opacity":"0",class:"".concat(v,"-circle-path"),style:w};return St("path",be({ref:s(m)},T),null)})};return function(){var f=t.prefixCls,v=t.strokeWidth,c=t.trailWidth,h=t.gapDegree,d=t.gapPosition,p=t.trailColor,g=t.strokeLinecap;t.strokeColor;var y=kA(t,mE),m=U_(0,100,p,v,h,d),_=m.pathString,S=m.pathStyle;delete y.percent;var x=n.value.find(function(w){return Object.prototype.toString.call(w)==="[object Object]"}),b={d:_,stroke:p,"stroke-linecap":g,"stroke-width":c||v,"fill-opacity":"0",class:"".concat(f,"-circle-trail"),style:S};return St("svg",be({class:"".concat(f,"-circle"),viewBox:"0 0 100 100"},y),[x&&St("defs",null,[St("linearGradient",{id:"".concat(f,"-gradient-").concat(e.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(x).sort(function(w,T){return W_(w)-W_(T)}).map(function(w,T){return St("stop",{key:T,offset:w,"stop-color":x[w]},null)})])]),St("path",b,null),u().reverse()])}}});function SE(r){var t=r.percent,e=r.success,a=r.successPercent,n=$i(Iv({success:e,successPercent:a}));return[n,$i($i(t)-n)]}function xE(r){var t=r.success,e=t===void 0?{}:t,a=r.strokeColor,n=e.strokeColor;return[n||eg.green,a||null]}const bE=Zn({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:Bc(),setup:function(t,e){var a=e.slots,n=Gt(function(){if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),i=Gt(function(){var c=t.width||120;return{width:typeof c=="number"?"".concat(c,"px"):c,height:typeof c=="number"?"".concat(c,"px"):c,fontSize:"".concat(c*.15+6,"px")}}),o=Gt(function(){return t.strokeWidth||6}),s=Gt(function(){return t.gapPosition||t.type==="dashboard"&&"bottom"||"top"}),l=Gt(function(){return SE(t)}),u=Gt(function(){return Object.prototype.toString.call(t.strokeColor)==="[object Object]"}),f=Gt(function(){return xE({success:t.success,strokeColor:t.strokeColor})}),v=Gt(function(){var c;return c={},cr(c,"".concat(t.prefixCls,"-inner"),!0),cr(c,"".concat(t.prefixCls,"-circle-gradient"),u.value),c});return function(){var c;return St("div",{class:v.value,style:i.value},[St(_E,{percent:l.value,strokeWidth:o.value,trailWidth:o.value,strokeColor:f.value,strokeLinecap:t.strokeLinecap,trailColor:t.trailColor,prefixCls:t.prefixCls,gapDegree:n.value,gapPosition:s.value},null),(c=a.default)===null||c===void 0?void 0:c.call(a)])}}});var wE=function(){return be(be({},Bc()),{},{steps:Number,size:{type:String},strokeColor:String,trailColor:String})};const TE=Zn({compatConfig:{MODE:3},name:"Steps",props:wE(),setup:function(t,e){var a=e.slots,n=Gt(function(){return Math.round(t.steps*((t.percent||0)/100))}),i=Gt(function(){return t.size==="small"?2:14}),o=Gt(function(){for(var s=t.steps,l=t.strokeWidth,u=l===void 0?8:l,f=t.strokeColor,v=t.trailColor,c=t.prefixCls,h=[],d=0;d<s;d+=1){var p,g=(p={},cr(p,"".concat(c,"-steps-item"),!0),cr(p,"".concat(c,"-steps-item-active"),d<=n.value-1),p);h.push(St("div",{key:d,class:g,style:{backgroundColor:d<=n.value-1?f:v,width:"".concat(i.value,"px"),height:"".concat(u,"px")}},null))}return h});return function(){var s;return St("div",{class:"".concat(t.prefixCls,"-steps-outer")},[o.value,(s=a.default)===null||s===void 0?void 0:s.call(a)])}}}),CE=Zn({compatConfig:{MODE:3},name:"AProgress",props:RA(Bc(),{type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",strokeLinecap:"round"}),slots:["format"],setup:function(t,e){var a=e.slots,n=OA("progress",t),i=n.prefixCls,o=n.direction;PA(t.successPercent==null,"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var s=Gt(function(){var v,c=t.type,h=t.showInfo,d=t.size,p=i.value;return v={},cr(v,p,!0),cr(v,"".concat(p,"-").concat(c==="dashboard"&&"circle"||c),!0),cr(v,"".concat(p,"-show-info"),h),cr(v,"".concat(p,"-").concat(d),d),cr(v,"".concat(p,"-rtl"),o.value==="rtl"),v}),l=Gt(function(){var v=t.percent,c=v===void 0?0:v,h=Iv(t);return parseInt(h!==void 0?h.toString():c.toString(),10)}),u=Gt(function(){var v=t.status;return $A.indexOf(v)<0&&l.value>=100?"success":v||"normal"}),f=function(){var c=t.showInfo,h=t.format,d=t.type,p=t.percent,g=t.title,y=Iv(t);if(!c)return null;var m,_=h||(a==null?void 0:a.format)||function(x){return"".concat(x,"%")},S=d==="line";return h||a!=null&&a.format||u.value!=="exception"&&u.value!=="success"?m=_($i(p),$i(y)):u.value==="exception"?m=S?St(RR,null,null):St(ER,null,null):u.value==="success"&&(m=S?St(OR,null,null):St(NR,null,null)),St("span",{class:"".concat(i.value,"-text"),title:g===void 0&&typeof m=="string"?m:void 0},[m])};return function(){var v=t.type,c=t.steps,h=t.strokeColor,d=t.title,p=f(),g;v==="line"?g=c?St(TE,be(be({},t),{},{strokeColor:typeof h=="string"?h:void 0,prefixCls:i.value,steps:c}),{default:function(){return[p]}}):St(dE,be(be({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}):(v==="circle"||v==="dashboard")&&(g=St(bE,be(be({},t),{},{prefixCls:i.value}),{default:function(){return[p]}}));var y=be(be({},s.value),{},cr({},"".concat(i.value,"-status-").concat(u.value),!0));return St("div",{class:y,title:d},[g])}}}),AE=NA(CE);var ME={small:8,middle:16,large:24},DE=function(){return{prefixCls:String,size:{type:[String,Number,Array]},direction:zl.oneOf(Jl("horizontal","vertical")).def("horizontal"),align:zl.oneOf(Jl("start","end","center","baseline")),wrap:{type:Boolean,default:void 0}}};function LE(r){return typeof r=="string"?ME[r]:r||0}var IE=Zn({compatConfig:{MODE:3},name:"ASpace",props:DE(),slots:["split"],setup:function(t,e){var a=e.slots,n=OA("space",t),i=n.prefixCls,o=n.space,s=n.direction,l=iE(),u=Gt(function(){var g,y,m;return(g=(y=t.size)!==null&&y!==void 0?y:(m=o.value)===null||m===void 0?void 0:m.size)!==null&&g!==void 0?g:"small"}),f=te(),v=te();fs(u,function(){var g=(Array.isArray(u.value)?u.value:[u.value,u.value]).map(function(m){return LE(m)}),y=EA(g,2);f.value=y[0],v.value=y[1]},{immediate:!0});var c=Gt(function(){return t.align===void 0&&t.direction==="horizontal"?"center":t.align}),h=Gt(function(){var g;return BR(i.value,"".concat(i.value,"-").concat(t.direction),(g={},cr(g,"".concat(i.value,"-rtl"),s.value==="rtl"),cr(g,"".concat(i.value,"-align-").concat(c.value),c.value),g))}),d=Gt(function(){return s.value==="rtl"?"marginLeft":"marginRight"}),p=Gt(function(){var g={};return l.value&&(g.columnGap="".concat(f.value,"px"),g.rowGap="".concat(v.value,"px")),be(be({},g),t.wrap&&{flexWrap:"wrap",marginBottom:"".concat(-v.value,"px")})});return function(){var g,y,m=t.wrap,_=t.direction,S=_===void 0?"horizontal":_,x=(g=a.default)===null||g===void 0?void 0:g.call(a),b=zR(x),w=b.length;if(w===0)return null;var T=(y=a.split)===null||y===void 0?void 0:y.call(a),C="".concat(i.value,"-item"),M=f.value,D=w-1;return St("div",{class:h.value,style:p.value},[b.map(function(I,L){var P=x.indexOf(I),k={};return l.value||(S==="vertical"?L<D&&(k={marginBottom:"".concat(M/(T?2:1),"px")}):k=be(be({},L<D&&cr({},d.value,"".concat(M/(T?2:1),"px"))),m&&{paddingBottom:"".concat(v.value,"px")})),St(Lv,{key:P},[St("div",{class:C,style:k},[I]),L<D&&T&&St("span",{class:"".concat(C,"-split"),style:k},[T])])})])}}});const PE=NA(IE);/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var rg=function(r,t){return rg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},rg(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");rg(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var kE=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),RE=function(){function r(){this.browser=new kE,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),mn=new RE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(mn.wxa=!0,mn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?mn.worker=!0:!mn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(mn.node=!0,mn.svgSupported=!0):EE(navigator.userAgent,mn);function EE(r,t){var e=t.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);a&&(e.firefox=!0,e.version=a[1]),n&&(e.ie=!0,e.version=n[1]),i&&(e.edge=!0,e.version=i[1],e.newEdge=+i[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}const Et=mn;var hm=12,UA="sans-serif",qa=hm+"px "+UA,OE=20,NE=100,BE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function zE(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var a=String.fromCharCode(e+32),n=(r.charCodeAt(e)-OE)/NE;t[a]=n}return t}var VE=zE(BE),qr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,a){if(!r){var n=qr.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==a&&(t=r.font=a||qa),r.measureText(e);e=e||"",a=a||qa;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||hm,s=0;if(a.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=VE[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var a=new Image;return a.onload=t,a.onerror=e,a.src=r,a}},YA=Ca(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),ZA=Ca(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Is=Object.prototype.toString,zc=Array.prototype,GE=zc.forEach,FE=zc.filter,dm=zc.slice,HE=zc.map,Y_=function(){}.constructor,Yu=Y_?Y_.prototype:null,pm="__proto__",WE=2311;function XA(){return WE++}function gm(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function nt(r){if(r==null||typeof r!="object")return r;var t=r,e=Is.call(r);if(e==="[object Array]"){if(!Vl(r)){t=[];for(var a=0,n=r.length;a<n;a++)t[a]=nt(r[a])}}else if(ZA[e]){if(!Vl(r)){var i=r.constructor;if(i.from)t=i.from(r);else{t=new i(r.length);for(var a=0,n=r.length;a<n;a++)t[a]=r[a]}}}else if(!YA[e]&&!Vl(r)&&!gs(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==pm&&(t[o]=nt(r[o]))}return t}function mt(r,t,e){if(!ut(t)||!ut(r))return e?nt(t):r;for(var a in t)if(t.hasOwnProperty(a)&&a!==pm){var n=r[a],i=t[a];ut(i)&&ut(n)&&!U(i)&&!U(n)&&!gs(i)&&!gs(n)&&!Z_(i)&&!Z_(n)&&!Vl(i)&&!Vl(n)?mt(n,i,e):(e||!(a in r))&&(r[a]=nt(t[a]))}return r}function ym(r,t){for(var e=r[0],a=1,n=r.length;a<n;a++)e=mt(e,r[a],t);return e}function H(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==pm&&(r[e]=t[e]);return r}function lt(r,t,e){for(var a=Mt(t),n=0,i=a.length;n<i;n++){var o=a[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}function yt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,a=r.length;e<a;e++)if(r[e]===t)return e}return-1}function $E(r,t){var e=r.prototype;function a(){}a.prototype=t.prototype,r.prototype=new a;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function pe(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(t),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(e?t[i]!=null:r[i]==null)&&(r[i]=t[i])}else lt(r,t,e)}function We(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===GE)r.forEach(t,e);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)t.call(e,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&t.call(e,r[i],i,r)}function Y(r,t,e){if(!r)return[];if(!t)return mm(r);if(r.map&&r.map===HE)return r.map(t,e);for(var a=[],n=0,i=r.length;n<i;n++)a.push(t.call(e,r[n],n,r));return a}function Ca(r,t,e,a){if(r&&t){for(var n=0,i=r.length;n<i;n++)e=t.call(a,e,r[n],n,r);return e}}function Bt(r,t,e){if(!r)return[];if(!t)return mm(r);if(r.filter&&r.filter===FE)return r.filter(t,e);for(var a=[],n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r)&&a.push(r[n]);return a}function fo(r,t,e){if(r&&t){for(var a=0,n=r.length;a<n;a++)if(t.call(e,r[a],a,r))return r[a]}}function Mt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function UE(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return function(){return r.apply(t,e.concat(dm.call(arguments)))}}var j=Yu&&at(Yu.bind)?Yu.call.bind(Yu.bind):UE;function gt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(dm.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):Is.call(r)==="[object Array]"}function at(r){return typeof r=="function"}function K(r){return typeof r=="string"}function ag(r){return Is.call(r)==="[object String]"}function Lt(r){return typeof r=="number"}function ut(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Z_(r){return!!YA[Is.call(r)]}function or(r){return!!ZA[Is.call(r)]}function gs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Vc(r){return r.colorStops!=null}function YE(r){return r.image!=null}function ZE(r){return Is.call(r)==="[object RegExp]"}function He(r){return r!==r}function Oe(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,a=r.length;e<a;e++)if(r[e]!=null)return r[e]}function rt(r,t){return r??t}function gr(r,t,e){return r??t??e}function mm(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return dm.apply(r,t)}function Gc(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function $e(r,t){if(!r)throw new Error(t)}function Rr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var qA="__ec_primitive__";function Pv(r){r[qA]=!0}function Vl(r){return r[qA]}var XE=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Mt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var a in e)e.hasOwnProperty(a)&&t(e[a],a)},r}(),KA=typeof Map=="function";function qE(){return KA?new Map:new XE}var KE=function(){function r(t){var e=U(t);this.data=qE();var a=this;t instanceof r?t.each(n):t&&A(t,n);function n(i,o){e?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(a,n){t.call(e,a,n)})},r.prototype.keys=function(){var t=this.data.keys();return KA?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function et(r){return new KE(r)}function Ql(r,t){for(var e=new r.constructor(r.length+t.length),a=0;a<r.length;a++)e[a]=r[a];for(var n=r.length,a=0;a<t.length;a++)e[a+n]=t[a];return e}function Fc(r,t){var e;if(Object.create)e=Object.create(r);else{var a=function(){};a.prototype=r,e=new a}return t&&H(e,t),e}function jA(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Q(r,t){return r.hasOwnProperty(t)}function oe(){}var sv=180/Math.PI;function vo(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Xe(r,t){return r[0]=t[0],r[1]=t[1],r}function $a(r){return[r[0],r[1]]}function _m(r,t,e){return r[0]=t,r[1]=e,r}function X_(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function ng(r,t,e,a){return r[0]=t[0]+e[0]*a,r[1]=t[1]+e[1]*a,r}function Ni(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function ig(r){return Math.sqrt(jE(r))}function jE(r){return r[0]*r[0]+r[1]*r[1]}function lv(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function Ps(r,t){var e=ig(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function og(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var wn=og;function JE(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Ui=JE;function uv(r,t,e,a){return r[0]=t[0]+a*(e[0]-t[0]),r[1]=t[1]+a*(e[1]-t[1]),r}function se(r,t,e){var a=t[0],n=t[1];return r[0]=e[0]*a+e[2]*n+e[4],r[1]=e[1]*a+e[3]*n+e[5],r}function Tn(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Cn(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Mo=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),QE=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Mo(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var a=t.offsetX,n=t.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,e.drift(i,o,t),this.handler.dispatchToElement(new Mo(e,t),"drag",t.event);var s=this.handler.findHover(a,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Mo(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Mo(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Mo(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Mo(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const tO=QE;var eO=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof e=="function"&&(n=a,a=e,e=null),!a||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===a)return this;var l={h:a,query:e,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[t].length-1,f=i[t][u];return f&&f.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var a=this._$handlers;if(!a)return this;if(!t)return this._$handlers={},this;if(e){if(a[t]){for(var n=[],i=0,o=a[t].length;i<o;i++)a[t][i].h!==e&&n.push(a[t][i]);a[t]=n}a[t]&&a[t].length===0&&delete a[t]}else delete a[t];return this},r.prototype.trigger=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],a=1;a<arguments.length;a++)e[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[t],i=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},r}();const zr=eO;var rO=Math.log(2);function sg(r,t,e,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/rO);return r[e][l]}for(var u=a|1<<e,f=e+1;a&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&n||(v+=(h%2?-1:1)*r[e][c]*sg(r,t-1,f,u,n|d,i),h++)}return i[o]=v,v}function q_(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],a={},n=sg(e,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*sg(e,7,o===0?1:0,1<<o,1<<s,a)/n*t[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 kv="___zrEVENTSAVED",Ch=[];function aO(r,t,e,a,n){return lg(Ch,t,a,n,!0)&&lg(r,e,Ch[0],Ch[1])}function nO(r,t){r&&e(r),t&&e(t);function e(a){var n=a[kv];n&&(n.clearMarkers&&n.clearMarkers(),delete a[kv])}}function lg(r,t,e,a,n){if(t.getBoundingClientRect&&Et.domSupported&&!JA(t)){var i=t[kv]||(t[kv]={}),o=iO(t,i),s=oO(o,i,n);if(s)return s(r,e,a),!0}return!1}function iO(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){A(e,function(f){f.parentNode&&f.parentNode.removeChild(f)})},e}function oO(r,t,e){for(var a=e?"invTrans":"trans",n=t[a],i=t.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:(t.srcCoords=o,t[a]=e?q_(s,o):q_(o,s))}function JA(r){return r.nodeName.toUpperCase()==="CANVAS"}var sO=/([&<>"'])/g,lO={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Fe(r){return r==null?"":(r+"").replace(sO,function(t,e){return lO[e]})}var uO=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ah=[],fO=Et.browser.firefox&&+Et.browser.version.split(".")[0]<39;function ug(r,t,e,a){return e=e||{},a?K_(r,t,e):fO&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):K_(r,t,e),e}function K_(r,t,e){if(Et.domSupported&&r.getBoundingClientRect){var a=t.clientX,n=t.clientY;if(JA(r)){var i=r.getBoundingClientRect();e.zrX=a-i.left,e.zrY=n-i.top;return}else if(lg(Ah,r,a,n)){e.zrX=Ah[0],e.zrY=Ah[1];return}}e.zrX=e.zrY=0}function Sm(r){return r||window.event}function Cr(r,t,e){if(t=Sm(t),t.zrX!=null)return t;var a=t.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&ug(r,o,t,e)}else{ug(r,t,t,e);var i=vO(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&uO.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function vO(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,a=r.deltaY;if(e==null||a==null)return t;var n=Math.abs(a!==0?a:e),i=a>0?-1:a<0?1:e>0?-1:1;return 3*n*i}function fg(r,t,e,a){r.addEventListener(t,e,a)}function cO(r,t,e,a){r.removeEventListener(t,e,a)}var Ka=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function j_(r){return r.which===2||r.which===3}var hO=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,a){return this._doTrack(t,e,a),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,a){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=ug(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(t){for(var e in Mh)if(Mh.hasOwnProperty(e)){var a=Mh[e](this._track,t);if(a)return a}},r}();function J_(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function dO(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Mh={pinch:function(r,t){var e=r.length;if(e){var a=(r[e-1]||{}).points,n=(r[e-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=J_(a)/J_(n);!isFinite(i)&&(i=1),t.pinchScale=i;var o=dO(a);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Ie(){return[1,0,0,1,0,0]}function Hc(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Wc(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function xa(r,t,e){var a=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],i=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Aa(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Xn(r,t,e,a){a===void 0&&(a=[0,0]);var n=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),v=Math.cos(e);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 xm(r,t,e){var a=e[0],n=e[1];return r[0]=t[0]*a,r[1]=t[1]*n,r[2]=t[2]*a,r[3]=t[3]*n,r[4]=t[4]*a,r[5]=t[5]*n,r}function Kr(r,t){var e=t[0],a=t[2],n=t[4],i=t[1],o=t[3],s=t[5],l=e*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=e*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-e*s)*l,r):null}function pO(r){var t=Ie();return Wc(t,r),t}var gO=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,a=this.y-t.y;return Math.sqrt(e*e+a*a)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,a=this.y-t.y;return e*e+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,a=this.y;return this.x=t[0]*e+t[2]*a+t[4],this.y=t[1]*e+t[3]*a+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,a){t.x=e,t.y=a},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,a){t.x=e.x+a.x,t.y=e.y+a.y},r.sub=function(t,e,a){t.x=e.x-a.x,t.y=e.y-a.y},r.scale=function(t,e,a){t.x=e.x*a,t.y=e.y*a},r.scaleAndAdd=function(t,e,a,n){t.x=e.x+a.x*n,t.y=e.y+a.y*n},r.lerp=function(t,e,a,n){var i=1-n;t.x=i*e.x+n*a.x,t.y=i*e.y+n*a.y},r}();const st=gO;var Bi=Math.min,as=Math.max,vg=Math.abs,Q_=["x","y"],yO=["width","height"],Qn=new st,ti=new st,ei=new st,ri=new st,vr=QA(),Cl=vr.minTv,cg=vr.maxTv,Gl=[0,0],bm=function(){function r(t,e,a,n){r.set(this,t,e,a,n)}return r.set=function(t,e,a,n,i){return n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),t.x=e,t.y=a,t.width=n,t.height=i,t},r.prototype.union=function(t){var e=Bi(t.x,this.x),a=Bi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=as(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=as(t.y+t.height,this.y+this.height)-a:this.height=t.height,this.x=e,this.y=a},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,a=t.width/e.width,n=t.height/e.height,i=Ie();return Aa(i,i,[-e.x,-e.y]),xm(i,i,[a,n]),Aa(i,i,[t.x,t.y]),i},r.prototype.intersect=function(t,e,a){return r.intersect(this,t,e,a)},r.intersect=function(t,e,a,n){a&&st.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),!t||!e)return!1;t instanceof r||(t=r.set(mO,t.x,t.y,t.width,t.height)),e instanceof r||(e=r.set(_O,e.x,e.y,e.width,e.height));var s=!!a;vr.reset(n,s);var l=vr.touchThreshold,u=t.x+l,f=t.x+t.width-l,v=t.y+l,c=t.y+t.height-l,h=e.x+l,d=e.x+e.width-l,p=e.y+l,g=e.y+e.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(Gl[0]=1/0,Gl[1]=0,t1(u,f,h,d,0,s,i,o),t1(v,c,p,g,1,s,i,o),s&&st.copy(a,y?vr.useDir?vr.dirMinTv:Cl:cg)),y},r.contain=function(t,e,a){return e>=t.x&&e<=t.x+t.width&&a>=t.y&&a<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,a){if(!a){t!==e&&r.copy(t,e);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];t.x=e.x*n+o,t.y=e.y*i+s,t.width=e.width*n,t.height=e.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Qn.x=ei.x=e.x,Qn.y=ri.y=e.y,ti.x=ri.x=e.x+e.width,ti.y=ei.y=e.y+e.height,Qn.transform(a),ri.transform(a),ti.transform(a),ei.transform(a),t.x=Bi(Qn.x,ti.x,ei.x,ri.x),t.y=Bi(Qn.y,ti.y,ei.y,ri.y);var l=as(Qn.x,ti.x,ei.x,ri.x),u=as(Qn.y,ti.y,ei.y,ri.y);t.width=l-t.x,t.height=u-t.y},r}(),mO=new bm(0,0,0,0),_O=new bm(0,0,0,0);function t1(r,t,e,a,n,i,o,s){var l=vg(t-e),u=vg(a-r),f=Bi(l,u),v=Q_[n],c=Q_[1-n],h=yO[n];t<e||a<r?l<u?(i&&(cg[v]=-l),s&&(o[v]=t,o[h]=0)):(i&&(cg[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=as(r,e),o[h]=Bi(t,a)-o[v]),i&&(f<Gl[0]||vr.useDir)&&(Gl[0]=Bi(f,Gl[0]),(l<u||!vr.bidirectional)&&(Cl[v]=l,Cl[c]=0,vr.useDir&&vr.calcDirMTV()),(l>=u||!vr.bidirectional)&&(Cl[v]=-u,Cl[c]=0,vr.useDir&&vr.calcDirMTV())))}function QA(){var r=0,t=new st,e=new st,a={minTv:new st,maxTv:new st,useDir:!1,dirMinTv:new st,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=as(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),e.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||t.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;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(e.x=s*u/f,e.y=s*l/f,n(e.x)&&n(e.y)){o.set(0,0);return}(a.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(i){return vg(i)<1e-10}return a}const vt=bm;var tM="silent";function SO(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:xO}}function xO(){Ka(this.event)}var bO=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(zr),Zs=function(){function r(t,e){this.x=t,this.y=e}return r}(),wO=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Dh=new vt(0,0,0,0),eM=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Zs(0,0),s.storage=e,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new bO,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new tO(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(wO,function(a){e.on&&e.on(a,this[a],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var a=e.zrX,n=e.zrY,i=rM(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Zs(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",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var a=e.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Zs(0,0)},t.prototype.dispatch=function(e,a){var n=this[e];n&&n.call(this,a)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var a=this.proxy;a.setCursor&&a.setCursor(e)},t.prototype.dispatchToElement=function(e,a,n){e=e||{};var i=e.target;if(!(i&&i.silent)){for(var o="on"+a,s=SO(a,e,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){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},t.prototype.findHover=function(e,a,n){var i=this.storage.getDisplayList(),o=new Zs(e,a);if(e1(i,o,e,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new vt(e-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)&&(Dh.copy(c.getBoundingRect()),c.transform&&Dh.applyTransform(c.transform),Dh.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=a+g*Math.sin(y);if(e1(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,a){this._gestureMgr||(this._gestureMgr=new hO);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;e.gestureEvent=o;var s=new Zs;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(zr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){eM.prototype[r]=function(t){var e=t.zrX,a=t.zrY,n=rM(this,e,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(e,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||wn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,t)}});function TO(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(t,e))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?tM:!0}return!1}function e1(r,t,e,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=TO(o,e,a))&&(!t.topTarget&&(t.topTarget=o),s!==tM)){t.target=o;break}}}function rM(r,t,e){var a=r.painter;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}const CO=eM;var aM=32,Xs=7;function AO(r){for(var t=0;r>=aM;)t|=r&1,r>>=1;return r+t}function r1(r,t,e,a){var n=t+1;if(n===e)return 1;if(a(r[n++],r[t])<0){for(;n<e&&a(r[n],r[n-1])<0;)n++;MO(r,t,n)}else for(;n<e&&a(r[n],r[n-1])>=0;)n++;return n-t}function MO(r,t,e){for(e--;t<e;){var a=r[t];r[t++]=r[e],r[e--]=a}}function a1(r,t,e,a,n){for(a===t&&a++;a<e;a++){for(var i=r[a],o=t,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function Lh(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])>0){for(s=a-n;l<s&&i(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=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,t[e+f])>0?o=f+1:l=f}return l}function Ih(r,t,e,a,n,i){var o=0,s=0,l=1;if(i(r,t[e+n])<0){for(s=n+1;l<s&&i(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=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,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,t[e+f])<0?l=f:o=f+1}return l}function DO(r,t){var e=Xs,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}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)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=a[h],p=n[h],g=a[h+1],y=n[h+1];n[h]=p+y,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var m=Ih(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=Lh(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var x=e,b,w,T;;){b=0,w=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,b=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],b++,w=0,--d===1){T=!0;break}while((b|w)<x);if(T)break;do{if(b=Ih(r[_],o,m,d,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=o[m+y];if(S+=b,m+=b,d-=b,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=Lh(o[m],r,_,g,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}x--}while(b>=Xs||w>=Xs);if(T)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,x=0,b=0;if(r[S--]=r[m--],--d===0){for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y];return}if(g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)<w);if(M)break;do{if(T=d-Ih(o[_],r,h,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,b=S+1,x=m+1,y=T-1;y>=0;y--)r[b+y]=r[x+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-Lh(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,b=S+1,x=_+1,y=0;y<C;y++)r[b+y]=o[x+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}w--}while(T>=Xs||C>=Xs);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=d,m-=d,b=S+1,x=m+1,y=d-1;y>=0;y--)r[b+y]=r[x+y];r[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)r[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function fv(r,t,e,a){e||(e=0),a||(a=r.length);var n=a-e;if(!(n<2)){var i=0;if(n<aM){i=r1(r,e,a,t),a1(r,e,a,e+i,t);return}var o=DO(r,t),s=AO(n);do{if(i=r1(r,e,a,t),i<s){var l=n;l>s&&(l=s),a1(r,e,e+l,e+i,t),i=l}o.pushRun(e,i),o.mergeRuns(),n-=i,e+=i}while(n!==0);o.forceMergeRuns()}}var hr=1,Al=2,Qo=4,n1=!1;function Ph(){n1||(n1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function i1(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var LO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=i1}return r.prototype.traverse=function(t,e){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var a=this._displayList;return(t||!a.length)&&this.updateDisplayList(e),a},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,a=this._displayList,n=0,i=e.length;n<i;n++)this._updateAndAddDisplayable(e[n],null,t);a.length=this._displayListLen,fv(a,i1)},r.prototype._updateAndAddDisplayable=function(t,e,a){if(!(t.ignore&&!a)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),i=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(i||n)){if(s||(s=t.__clipPaths=[]),i)for(var l=0;l<e.length;l++)s[o++]=e[l];for(var u=n,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var v=t.childrenRef(),c=0;c<v.length;c++){var h=v[c];t.__dirty&&(h.__dirty|=hr),this._updateAndAddDisplayable(h,s,a)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Ph(),d.z=0),isNaN(d.z2)&&(Ph(),d.z2=0),isNaN(d.zlevel)&&(Ph(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,s,a);var g=t.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,a)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,a=t.length;e<a;e++)this.delRoot(t[e]);return}var n=yt(this._roots,t);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 IO=LO;var nM;nM=Et.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const hg=nM;var vv={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)))},elasticOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var t,e=.1,a=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=a/4):t=a*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-vv.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?vv.bounceIn(r*2)*.5:vv.bounceOut(r*2-1)*.5+.5}};const iM=vv;var Zu=Math.pow,kn=Math.sqrt,Rv=1e-8,oM=1e-4,o1=kn(3),Xu=1/3,ca=vo(),Lr=vo(),vs=vo();function An(r){return r>-Rv&&r<Rv}function sM(r){return r>Rv||r<-Rv}function we(r,t,e,a,n){var i=1-n;return i*i*(i*r+3*n*t)+n*n*(n*a+3*i*e)}function s1(r,t,e,a,n){var i=1-n;return 3*(((t-r)*i+2*(e-t)*n)*i+(a-e)*n*n)}function Ev(r,t,e,a,n,i){var o=a+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-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(An(f)&&An(v))if(An(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if(An(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=kn(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-Zu(-_,Xu):_=Zu(_,Xu),S<0?S=-Zu(-S,Xu):S=Zu(S,Xu);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var x=(2*f*s-3*o*v)/(2*kn(f*f*f)),b=Math.acos(x)/3,w=kn(f),T=Math.cos(b),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+o1*Math.sin(b)))/(3*o),C=(-s+w*(T-o1*Math.sin(b)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function lM(r,t,e,a,n){var i=6*e-12*t+6*r,o=9*t+3*a-3*r-9*e,s=3*t-3*r,l=0;if(An(o)){if(sM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(An(f))n[0]=-i/(2*o);else if(f>0){var v=kn(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Vn(r,t,e,a,n,i){var o=(t-r)*n+r,s=(e-t)*n+t,l=(a-e)*n+e,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 uM(r,t,e,a,n,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;ca[0]=l,ca[1]=u;for(var m=0;m<1;m+=.05)Lr[0]=we(r,e,n,o,m),Lr[1]=we(t,a,i,s,m),g=Ui(ca,Lr),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<oM);_++)d=v-c,p=v+c,Lr[0]=we(r,e,n,o,d),Lr[1]=we(t,a,i,s,d),g=Ui(Lr,ca),d>=0&&g<h?(v=d,h=g):(vs[0]=we(r,e,n,o,p),vs[1]=we(t,a,i,s,p),y=Ui(vs,ca),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=we(r,e,n,o,v),f[1]=we(t,a,i,s,v)),kn(h)}function PO(r,t,e,a,n,i,o,s,l){for(var u=r,f=t,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=we(r,e,n,o,d),g=we(t,a,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Le(r,t,e,a){var n=1-a;return n*(n*r+2*a*t)+a*a*e}function dg(r,t,e,a){return 2*((1-a)*(t-r)+a*(e-t))}function kO(r,t,e,a,n){var i=r-2*t+e,o=2*(t-r),s=r-a,l=0;if(An(i)){if(sM(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(An(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=kn(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function fM(r,t,e){var a=r+e-2*t;return a===0?.5:(r-t)/a}function tu(r,t,e,a,n){var i=(t-r)*a+r,o=(e-t)*a+t,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function vM(r,t,e,a,n,i,o,s,l){var u,f=.005,v=1/0;ca[0]=o,ca[1]=s;for(var c=0;c<1;c+=.05){Lr[0]=Le(r,e,n,c),Lr[1]=Le(t,a,i,c);var h=Ui(ca,Lr);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<oM);d++){var p=u-f,g=u+f;Lr[0]=Le(r,e,n,p),Lr[1]=Le(t,a,i,p);var h=Ui(Lr,ca);if(p>=0&&h<v)u=p,v=h;else{vs[0]=Le(r,e,n,g),vs[1]=Le(t,a,i,g);var y=Ui(vs,ca);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Le(r,e,n,u),l[1]=Le(t,a,i,u)),kn(v)}function RO(r,t,e,a,n,i,o){for(var s=r,l=t,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Le(r,e,n,c),d=Le(t,a,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var EO=/cubic-bezier\(([0-9,\.e ]+)\)/;function wm(r){var t=r&&EO.exec(r);if(t){var e=t[1].split(","),a=+Rr(e[0]),n=+Rr(e[1]),i=+Rr(e[2]),o=+Rr(e[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Ev(0,a,i,1,l,s)&&we(0,n,o,1,s[0])}}}var OO=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||oe,this.ondestroy=t.ondestroy||oe,this.onrestart=t.onrestart||oe,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var a=this._life,n=t-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),i===1)if(this.loop){var l=n%a;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=at(t)?t:iM[t]||wm(t)},r}();const NO=OO;var cM=function(){function r(t){this.value=t}return r}(),BO=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new cM(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,a=t.next;e?e.next=a:this.head=a,a?a.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),zO=function(){function r(t){this._list=new BO,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var a=this._list,n=this._map,i=null;if(n[t]==null){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=e:s=new cM(e),s.key=t,a.insertEntry(s),n[t]=s}return i},r.prototype.get=function(t){var e=this._map[t],a=this._list;if(e!=null)return e!==a.tail&&(a.remove(e),a.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const ys=zO;var l1={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 Yr(r){return r=Math.round(r),r<0?0:r>255?255:r}function VO(r){return r=Math.round(r),r<0?0:r>360?360:r}function eu(r){return r<0?0:r>1?1:r}function kh(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Yr(parseFloat(t)/100*255):Yr(parseInt(t,10))}function Rn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?eu(parseFloat(t)/100):eu(parseFloat(t))}function Rh(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Mn(r,t,e){return r+(t-r)*e}function wr(r,t,e,a,n){return r[0]=t,r[1]=e,r[2]=a,r[3]=n,r}function pg(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var hM=new ys(20),qu=null;function Do(r,t){qu&&pg(qu,t),qu=hM.put(r,qu||t.slice())}function ir(r,t){if(r){t=t||[];var e=hM.get(r);if(e)return pg(t,e);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in l1)return pg(t,l1[a]),Do(r,t),t;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){wr(t,0,0,0,1);return}return wr(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Do(r,t),t}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){wr(t,0,0,0,1);return}return wr(t,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Do(r,t),t}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&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(u.length!==4)return u.length===3?wr(t,+u[0],+u[1],+u[2],1):wr(t,0,0,0,1);f=Rn(u.pop());case"rgb":if(u.length>=3)return wr(t,kh(u[0]),kh(u[1]),kh(u[2]),u.length===3?f:Rn(u[3])),Do(r,t),t;wr(t,0,0,0,1);return;case"hsla":if(u.length!==4){wr(t,0,0,0,1);return}return u[3]=Rn(u[3]),gg(u,t),Do(r,t),t;case"hsl":if(u.length!==3){wr(t,0,0,0,1);return}return gg(u,t),Do(r,t),t;default:return}}wr(t,0,0,0,1)}}function gg(r,t){var e=(parseFloat(r[0])%360+360)%360/360,a=Rn(r[1]),n=Rn(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return t=t||[],wr(t,Yr(Rh(o,i,e+1/3)*255),Yr(Rh(o,i,e)*255),Yr(Rh(o,i,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function GO(r){if(r){var t=r[0]/255,e=r[1]/255,a=r[2]/255,n=Math.min(t,e,a),i=Math.max(t,e,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-t)/6+o/2)/o,v=((i-e)/6+o/2)/o,c=((i-a)/6+o/2)/o;t===i?l=c-v:e===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function yg(r,t){var e=ir(r);if(e){for(var a=0;a<3;a++)t<0?e[a]=e[a]*(1-t)|0:e[a]=(255-e[a])*t+e[a]|0,e[a]>255?e[a]=255:e[a]<0&&(e[a]=0);return ba(e,e.length===4?"rgba":"rgb")}}function Eh(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=t[n],s=t[i],l=a-n;return e[0]=Yr(Mn(o[0],s[0],l)),e[1]=Yr(Mn(o[1],s[1],l)),e[2]=Yr(Mn(o[2],s[2],l)),e[3]=eu(Mn(o[3],s[3],l)),e}}function FO(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var a=r*(t.length-1),n=Math.floor(a),i=Math.ceil(a),o=ir(t[n]),s=ir(t[i]),l=a-n,u=ba([Yr(Mn(o[0],s[0],l)),Yr(Mn(o[1],s[1],l)),Yr(Mn(o[2],s[2],l)),eu(Mn(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function En(r,t,e,a){var n=ir(r);if(r)return n=GO(n),t!=null&&(n[0]=VO(at(t)?t(n[0]):t)),e!=null&&(n[1]=Rn(at(e)?e(n[1]):e)),a!=null&&(n[2]=Rn(at(a)?a(n[2]):a)),ba(gg(n),"rgba")}function Ov(r,t){var e=ir(r);if(e&&t!=null)return e[3]=eu(t),ba(e,"rgba")}function ba(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Nv(r,t){var e=ir(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var u1=new ys(100);function mg(r){if(K(r)){var t=u1.get(r);return t||(t=yg(r,-.1),u1.put(r,t)),t}else if(Vc(r)){var e=H({},r);return e.colorStops=Y(r.colorStops,function(a){return{offset:a.offset,color:yg(a.color,-.1)}}),e}return r}var Bv=Math.round;function ru(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=ir(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var f1=1e-4;function Dn(r){return r<f1&&r>-f1}function Ku(r){return Bv(r*1e3)/1e3}function _g(r){return Bv(r*1e4)/1e4}function HO(r){return"matrix("+Ku(r[0])+","+Ku(r[1])+","+Ku(r[2])+","+Ku(r[3])+","+_g(r[4])+","+_g(r[5])+")"}var WO={left:"start",right:"end",center:"middle",middle:"middle"};function $O(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function UO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function YO(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function dM(r){return r&&!!r.image}function ZO(r){return r&&!!r.svgElement}function Tm(r){return dM(r)||ZO(r)}function pM(r){return r.type==="linear"}function gM(r){return r.type==="radial"}function yM(r){return r&&(r.type==="linear"||r.type==="radial")}function $c(r){return"url(#"+r+")"}function mM(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function _M(r){var t=r.x||0,e=r.y||0,a=(r.rotation||0)*sv,n=rt(r.scaleX,1),i=rt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Bv(o*sv)+"deg, "+Bv(s*sv)+"deg)"),l.join(" ")}var XO=function(){return Et.hasGlobalWindow&&at(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Sg=Array.prototype.slice;function Va(r,t,e){return(t-r)*e+r}function Oh(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=Va(t[i],e[i],a);return r}function qO(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=Va(t[o][s],e[o][s],a)}return r}function ju(r,t,e,a){for(var n=t.length,i=0;i<n;i++)r[i]=t[i]+e[i]*a;return r}function v1(r,t,e,a){for(var n=t.length,i=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=t[o][s]+e[o][s]*a}return r}function KO(r,t){for(var e=r.length,a=t.length,n=e>a?t:r,i=Math.min(e,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(e,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function jO(r,t,e){var a=r,n=t;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(e===1?n[l]:Sg.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(e===1)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 Fl(r){if(We(r)){var t=r.length;if(We(r[0])){for(var e=[],a=0;a<t;a++)e.push(Sg.call(r[a]));return e}return Sg.call(r)}return r}function cv(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]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function JO(r){return We(r&&r[0])?2:1}var Ju=0,hv=1,SM=2,Ml=3,xg=4,bg=5,c1=6;function h1(r){return r===xg||r===bg}function Qu(r){return r===hv||r===SM}var qs=[0,0,0,0],QO=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,e,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=c1,l=e;if(We(e)){var u=JO(e);s=u,(u===1&&!Lt(e[0])||u===2&&!Lt(e[0][0]))&&(o=!0)}else if(Lt(e)&&!He(e))s=Ju;else if(K(e))if(!isNaN(+e))s=Ju;else{var f=ir(e);f&&(l=f,s=Ml)}else if(Vc(e)){var v=H({},l);v.colorStops=Y(e.colorStops,function(h){return{offset:h.offset,color:ir(h.color)}}),pM(e)?s=xg:gM(e)&&(s=bg),l=v}i===0?this.valType=s:(s!==this.valType||s===c1)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return a&&(c.easing=a,c.easingFunc=at(a)?a:iM[a]||wm(a)),n.push(c),c},r.prototype.prepare=function(t,e){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=Qu(n),u=h1(n),f=0;f<i;f++){var v=a[f],c=v.value,h=o.value;v.percent=v.time/t,s||(l&&f!==i-1?jO(c,h,n):u&&KO(c.colorStops,h.colorStops))}if(!s&&n!==bg&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=a[0].value,f=0;f<i;f++)n===Ju?a[f].additiveValue=a[f].value-d:n===Ml?a[f].additiveValue=ju([],a[f].value,d,-1):Qu(n)&&(a[f].additiveValue=n===hv?ju([],a[f].value,d,-1):v1([],a[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Ml,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-h.percent,y=g===0?1:c((e-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?qs:t[l];if((Qu(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:d.rawValue;else if(Qu(i))i===hv?Oh(m,h[n],d[n],y):qO(m,h[n],d[n],y);else if(h1(i)){var _=h[n],S=d[n],x=i===xg;t[l]={type:x?"linear":"radial",x:Va(_.x,S.x,y),y:Va(_.y,S.y,y),colorStops:Y(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:Va(w.offset,C.offset,y),color:cv(Oh([],w.color,C.color,y))}}),global:S.global},x?(t[l].x2=Va(_.x2,S.x2,y),t[l].y2=Va(_.y2,S.y2,y)):t[l].r=Va(_.r,S.r,y)}else if(u)Oh(m,h[n],d[n],y),a||(t[l]=cv(m));else{var b=Va(h[n],d[n],y);a?this._additiveValue=b:t[l]=b}a&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,a=this.propName,n=this._additiveValue;e===Ju?t[a]=t[a]+n:e===Ml?(ir(t[a],qs),ju(qs,qs,n,1),t[a]=cv(qs)):e===hv?ju(t[a],t[a],n,1):e===SM&&v1(t[a],t[a],n,1)},r}(),Cm=function(){function r(t,e,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){gm("Can' use additive animation on looped animation.");return}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(t){this._target=t},r.prototype.when=function(t,e,a){return this.whenWithKeys(t,e,Mt(e),a)},r.prototype.whenWithKeys=function(t,e,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 QO(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===Ml&&u&&(u=cv(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Fl(u),n),this._trackKeys.push(s)}l.addKeyframe(t,Fl(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,a=0;a<e;a++)t[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var a=0;a<e.length;a++)e[a].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,a=0;a<e.length;a++)t[e[a]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(t);i&&(e=i)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=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&&(e._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new NO({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(e._target,h);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,h)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return Y(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<t.length;i++){var o=a[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,a){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i=e[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(t[i]=Fl(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||Mt(t);for(var a=0;a<e.length;a++){var n=e[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function ns(){return new Date().getTime()}var tN=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,e=e||{},a.stage=e.stage||{},a}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var a=e.getClip();a&&this.addClip(a)},t.prototype.removeClip=function(e){if(e.animation){var a=e.prev,n=e.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var a=e.getClip();a&&this.removeClip(a),e.animation=null},t.prototype.update=function(e){for(var a=ns()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function a(){e._running&&(hg(a),!e._paused&&e.update())}hg(a)},t.prototype.start=function(){this._running||(this._time=ns(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ns(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ns()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var a=e.next;e.prev=e.next=e.animation=null,e=a}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,a){a=a||{},this.start();var n=new Cm(e,a.loop);return this.addAnimator(n),n},t}(zr);const eN=tN;var rN=300,Nh=Et.domSupported,Bh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Y(r,function(n){var i=n.replace("mouse","pointer");return e.hasOwnProperty(i)?i:n});return{mouse:r,touch:t,pointer:a}}(),d1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},p1=!1;function wg(r){var t=r.pointerType;return t==="pen"||t==="touch"}function aN(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function zh(r){r&&(r.zrByTouch=!0)}function nN(r,t){return Cr(r.dom,new iN(r,t),!0)}function xM(r,t){for(var e=t,a=!1;e&&e.nodeType!==9&&!(a=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return a}var iN=function(){function r(t,e){this.stopPropagation=oe,this.stopImmediatePropagation=oe,this.preventDefault=oe,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Hr={mousedown:function(r){r=Cr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Cr(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Cr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Cr(this.dom,r);var t=r.toElement||r.relatedTarget;xM(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){p1=!0,r=Cr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){p1||(r=Cr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Cr(this.dom,r),zh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Hr.mousemove.call(this,r),Hr.mousedown.call(this,r)},touchmove:function(r){r=Cr(this.dom,r),zh(r),this.handler.processGesture(r,"change"),Hr.mousemove.call(this,r)},touchend:function(r){r=Cr(this.dom,r),zh(r),this.handler.processGesture(r,"end"),Hr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<rN&&Hr.click.call(this,r)},pointerdown:function(r){Hr.mousedown.call(this,r)},pointermove:function(r){wg(r)||Hr.mousemove.call(this,r)},pointerup:function(r){Hr.mouseup.call(this,r)},pointerout:function(r){wg(r)||Hr.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){Hr[r]=function(t){t=Cr(this.dom,t),this.trigger(r,t)}});var Tg={pointermove:function(r){wg(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 t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function oN(r,t){var e=t.domHandlers;Et.pointerEventsSupported?A(Bh.pointer,function(a){dv(t,a,function(n){e[a].call(r,n)})}):(Et.touchEventsSupported&&A(Bh.touch,function(a){dv(t,a,function(n){e[a].call(r,n),aN(t)})}),A(Bh.mouse,function(a){dv(t,a,function(n){n=Sm(n),t.touching||e[a].call(r,n)})}))}function sN(r,t){Et.pointerEventsSupported?A(d1.pointer,e):Et.touchEventsSupported||A(d1.mouse,e);function e(a){function n(i){i=Sm(i),xM(r,i.target)||(i=nN(r,i),t.domHandlers[a].call(r,i))}dv(t,a,n,{capture:!0})}}function dv(r,t,e,a){r.mounted[t]=e,r.listenerOpts[t]=a,fg(r.domTarget,t,e,a)}function Vh(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&cO(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var g1=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),lN=function(r){N(t,r);function t(e,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=a,n._localHandlerScope=new g1(e,Hr),Nh&&(n._globalHandlerScope=new g1(document,Tg)),oN(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Vh(this._localHandlerScope),Nh&&Vh(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Nh&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var a=this._globalHandlerScope;e?sN(this,a):Vh(a)}},t}(zr);const uN=lN;var bM=1;Et.hasGlobalWindow&&(bM=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var zv=bM,Cg=.4,Ag="#333",Mg="#ccc",fN="#eee",y1=Hc,m1=5e-5;function ai(r){return r>m1||r<-m1}var ni=[],Lo=[],Gh=Ie(),Fh=Math.abs,vN=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return ai(this.rotation)||ai(this.x)||ai(this.y)||ai(this.scaleX-1)||ai(this.scaleY-1)||ai(this.skewX)||ai(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),a=this.transform;if(!(e||t)){a&&(y1(a),this.invTransform=null);return}a=a||Ie(),e?this.getLocalTransform(a):y1(a),t&&(e?xa(a,t,a):Wc(a,t)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(ni);var a=ni[0]<0?-1:1,n=ni[1]<0?-1:1,i=((ni[0]-a)*e+a)/ni[0]||0,o=((ni[1]-n)*e+n)/ni[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ie(),Kr(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],a=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);a=Math.sqrt(a)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ie(),xa(Lo,t.invTransform,e),e=Lo);var a=this.originX,n=this.originY;(a||n)&&(Gh[4]=a,Gh[5]=n,xa(Lo,e,Gh),Lo[4]-=a,Lo[5]-=n,e=Lo),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var a=[t,e],n=this.invTransform;return n&&se(a,a,n),a},r.prototype.transformCoordToGlobal=function(t,e){var a=[t,e],n=this.transform;return n&&se(a,a,n),a},r.prototype.getLineScale=function(){var t=this.transform;return t&&Fh(t[0]-1)>1e-10&&Fh(t[3]-1)>1e-10?Math.sqrt(Fh(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Vv(this,t)},r.getLocalTransform=function(t,e){e=e||[];var a=t.originX||0,n=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,v=t.y,c=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;e[4]=-d*i-c*p*o,e[5]=-p*o-h*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=h*i,e[2]=c*o,u&&Xn(e,e,u),e[4]+=a+f,e[5]+=n+v,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Ma=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Vv(r,t){for(var e=0;e<Ma.length;e++){var a=Ma[e];r[a]=t[a]}}const Ha=vN;function wa(r){tf||(tf=new ys(100)),r=r||qa;var t=tf.get(r);return t||(t={font:r,strWidthCache:new ys(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:qr.measureText("国",r).width,asciiCharWidth:qr.measureText("a",r).width},tf.put(r,t)),t}var tf;function cN(r){if(!(Hh>=_1)){r=r||qa;for(var t=[],e=+new Date,a=0;a<=127;a++)t[a]=qr.measureText(String.fromCharCode(a),r).width;var n=+new Date-e;return n>16?Hh=_1:n>2&&Hh++,t}}var Hh=0,_1=5;function wM(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=cN(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function Ta(r,t){var e=r.strWidthCache,a=e.get(t);return a==null&&(a=qr.measureText(t,r.font).width,e.put(t,a)),a}function S1(r,t,e,a){var n=Ta(wa(t),r),i=Iu(t),o=ms(0,n,e),s=Yi(0,i,a),l=new vt(o,s,n,i);return l}function Uc(r,t,e,a){var n=((r||"")+"").split(`
`),i=n.length;if(i===1)return S1(n[0],t,e,a);for(var o=new vt(0,0,0,0),s=0;s<n.length;s++){var l=S1(n[s],t,e,a);s===0?o.copy(l):o.union(l)}return o}function ms(r,t,e,a){return e==="right"?a?r+=t:r-=t:e==="center"&&(a?r+=t/2:r-=t/2),r}function Yi(r,t,e,a){return e==="middle"?a?r+=t/2:r-=t/2:e==="bottom"&&(a?r+=t:r-=t),r}function Iu(r){return wa(r).stWideCharWidth}function jr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Gv(r,t,e){var a=t.position||"inside",n=t.distance!=null?t.distance:5,i=e.height,o=e.width,s=i/2,l=e.x,u=e.y,f="left",v="top";if(a instanceof Array)l+=jr(a[0],e.width),u+=jr(a[1],e.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";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Wh="__zr_normal__",$h=Ma.concat(["ignore"]),hN=Ca(Ma,function(r,t){return r[t]=!0,r},{ignore:!1}),Io={},dN=new vt(0,0,0,0),ef=[],Am=function(){function r(t){this.id=XA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,a){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=e.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(e);var f=a.position!=null,v=a.autoOverflowArea,c=void 0;if((v||f)&&(c=dN,a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Io,a,c):Gv(Io,a,c),i.x=Io.x,i.y=Io.y,o=Io.align,s=Io.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=jr(h[0],c.width),p=jr(h[1],c.height)),u=!0,i.originX=-i.x+d+(n?0:c.x),i.originY=-i.y+p+(n?0:c.y)}}a.rotation!=null&&(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 vt(0,0,0,0);i.getLocalTransform(ef),Kr(ef,ef),vt.copy(m,c),m.applyTransform(ef)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,b=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),b=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),b=!0)),S=S||"#000",(S!==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,e.setDefaultTextStyle(y)),e.__dirty|=hr,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Mg:Ag},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),a=typeof e=="string"&&ir(e);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,ba(a,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},H(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ut(t))for(var a=t,n=Mt(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Wh)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,$h)},r.prototype._savePrimaryToNormal=function(t,e,a){for(var n=0;n<a.length;n++){var i=a[n];t[i]!=null&&!(i in e)&&(e[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Wh,!1,t)},r.prototype.useState=function(t,e,a,n){var i=t===Wh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(yt(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){gm("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!a&&!this.__inHover&&l&&l.duration>0,l);var v=this._textContent,c=this._textGuide;return v&&v.useState(t,e,a,f),c&&c.useState(t,e,a,f),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~hr),u}}},r.prototype.useStates=function(t,e,a){if(!t.length)this.clearStates();else{var n=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var v=n[o-1],c=!!(v&&v.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~hr)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=yt(this.currentStates,t);if(e>=0){var a=this.currentStates.slice();a.splice(e,1),this.useStates(a)}},r.prototype.replaceState=function(t,e,a){var n=this.currentStates.slice(),i=yt(n,t),o=yt(n,e)>=0;i>=0?o?n.splice(i,1):n[i]=e:a&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},a,n=0;n<t.length;n++){var i=t[n];H(e,i),i.textConfig&&(a=a||{},H(a,i.textConfig))}return a&&(e.textConfig=a),e},r.prototype._applyStateObj=function(t,e,a,n,i,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=H({},n?this.textConfig:a.textConfig),H(this.textConfig,e.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<$h.length;f++){var v=$h[f],c=i&&hN[v];e&&e[v]!=null?c?(u=!0,l[v]=e[v]):this[v]=e[v]:s&&a[v]!=null&&(c?(u=!0,l[v]=a[v]):this[v]=a[v])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(e||a)[d]:e||a)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Ha,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=hr;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,a=this._textGuide;e&&(e.__inHover=t),a&&(a.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.addAnimator(e[a]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var a=0;a<e.length;a++)t.animation.removeAnimator(e[a]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,a){var n=t?this[t]:this,i=new Cm(n,e,a);return t&&(i.targetName=t),this.addAnimator(i,t),i},r.prototype.addAnimator=function(t,e){var a=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var i=n.animators,o=yt(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),a&&a.animation.addAnimator(t),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!t||t===s.scope?s.stop(e):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(t,e,a){Uh(this,t,e,a)},r.prototype.animateFrom=function(t,e,a){Uh(this,t,e,a,!0)},r.prototype._transitionState=function(t,e,a,n){for(var i=Uh(this,e,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=hr;function e(a,n,i,o){Object.defineProperty(t,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();pe(Am,zr);pe(Am,Ha);function Uh(r,t,e,a,n){e=e||{};var i=[];TM(r,"",r,t,e,a,i,n);var o=i.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&e.during&&i[0].during(function(d,p){e.during(p)});for(var c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),e.force&&h.duration(e.duration),h.start(e.easing)}return i}function Yh(r,t,e){for(var a=0;a<e;a++)r[a]=t[a]}function pN(r){return We(r[0])}function gN(r,t,e){if(We(t[e]))if(We(r[e])||(r[e]=[]),or(t[e])){var a=t[e].length;r[e].length!==a&&(r[e]=new t[e].constructor(a),Yh(r[e],t[e],a))}else{var n=t[e],i=r[e],o=n.length;if(pN(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Yh(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Yh(i,n,o);i.length=n.length}else r[e]=t[e]}function yN(r,t){return r===t||We(r)&&We(t)&&mN(r,t)}function mN(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++)if(r[a]!==t[a])return!1;return!0}function TM(r,t,e,a,n,i,o,s){for(var l=Mt(a),u=n.duration,f=n.delay,v=n.additive,c=n.setToFinal,h=!ut(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&e[y]!=null&&(h||i[y]))if(ut(m)&&!We(m)&&!Vc(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}TM(r,y,e[y],m,n,i&&i[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!v&&_)for(var S=0;S<d.length;S++){var x=d[S];if(x.targetName===t){var b=x.stopTracks(p);if(b){var w=yt(d,x);d.splice(w,1)}}}if(n.force||(p=Bt(p,function(D){return!yN(a[D],e[D])}),_=p.length),_>0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],c?T[y]=a[y]:e[y]=a[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=Fl(e[y]),gN(e,a,y)}}var x=new Cm(e,!1,!1,v?Bt(d,function(I){return I.targetName===t}):null);x.targetName=t,n.scope&&(x.scope=n.scope),c&&T&&x.whenWithKeys(0,T,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(x,t),o.push(x)}}const CM=Am;var AM=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var a=this._children,n=0;n<a.length;n++)if(a[n].name===e)return a[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,a){if(e&&e!==this&&e.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,a){var n=yt(this._children,e);return n>=0&&this.replaceAt(a,n),this},t.prototype.replaceAt=function(e,a){var n=this._children,i=n[a];if(e&&e!==this&&e.parent!==this&&e!==i){n[a]=e,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var a=this.__zr;a&&a!==e.__zr&&e.addSelfToZr(a),a&&a.refresh()},t.prototype.remove=function(e){var a=this.__zr,n=this._children,i=yt(n,e);return i<0?this:(n.splice(i,1),e.parent=null,a&&e.removeSelfFromZr(a),a&&a.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,a=this.__zr,n=0;n<e.length;n++){var i=e[n];a&&i.removeSelfFromZr(a),i.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];e.call(a,o,i)}return this},t.prototype.traverse=function(e,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=e.call(a,i);i.isGroup&&!o&&i.traverse(e,a)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var a=new vt(0,0,0,0),n=e||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(vt.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},t}(CM);AM.prototype.type="group";const it=AM;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var pv={},MM={};function _N(r){delete MM[r]}function SN(r){if(!r)return!1;if(typeof r=="string")return Nv(r,1)<Cg;if(r.colorStops){for(var t=r.colorStops,e=0,a=t.length,n=0;n<a;n++)e+=Nv(t[n].color,1);return e/=a,e<Cg}return!1}var xN=function(){function r(t,e,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=e,this.id=t;var i=new IO,o=a.renderer||"canvas";pv[o]||(o=Mt(pv)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new pv[o](e,i,a,t),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Et.node&&!Et.worker&&!l?new uN(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,v=f==null||f==="auto"?Et.touchEventsSupported:!!f,c=44,h;v&&(h=rt(a.pointerSize,c)),this.handler=new CO(i,s,u,s.root,h),this.animation=new eN({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=SN(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,a=ns();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=ns();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,a){return this._disposed||this.handler.on(t,e,a),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof it&&t[e].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,_N(this.id))},r}();function x1(r,t){var e=new xN(XA(),r,t);return MM[e.id]=e,e}function bN(r,t){pv[r]=t}var Dg;function wN(r){if(typeof Dg=="function")return Dg(r)}function TN(r){Dg=r}var b1=1e-4,DM=20;function CN(r){return r.replace(/^\s+|\s+$/g,"")}var yr=Math.min,ie=Math.max,pa=Math.abs;function Nt(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?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 q=AN;function AN(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Fv(r,t,e)}function Fv(r,t,e){return K(r)?CN(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function fe(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),DM),r=(+r).toFixed(t),e?r:+r}function Er(r){return r.sort(function(t,e){return t-e}),r}function ga(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return MN(r)}function MN(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function LM(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(pa(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function DN(r,t){var e=Ca(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=Y(r,function(h){return(isNaN(h)?0:h)/e*a*100}),i=a*100,o=Y(n,function(h){return Math.floor(h)}),s=Ca(o,function(h,d){return h+d},0),l=Y(n,function(h,d){return h-o[d]});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 Y(o,function(h){return h/a})}function LN(r,t){var e=Math.max(ga(r),ga(t)),a=r+t;return e>DM?a:fe(a,e)}var w1=9007199254740991;function IM(r){var t=Math.PI*2;return(r%t+t)%t}function au(r){return r>-b1&&r<b1}var IN=/^(?:(\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 co(r){if(r instanceof Date)return r;if(K(r)){var t=IN.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function PN(r){return Math.pow(10,Mm(r))}function Mm(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function PM(r,t){var e=Mm(r),a=Math.pow(10,e),n=r/a,i;return t?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Zh(r,t){var e=(r.length-1)*t+1,a=Math.floor(e),n=+r[a-1],i=e-a;return i?n+i*(r[a]-n):n}function T1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=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 ja(r){var t=parseFloat(r);return t==r&&(t!==0||!K(r)||r.indexOf("x")<=0)?t:NaN}function kM(r){return!isNaN(ja(r))}function RM(){return Math.round(Math.random()*9)}function EM(r,t){return t===0?r:EM(t,r%t)}function C1(r,t){return r==null?t:t==null?r:r*t/EM(r,t)}var kN="[ECharts] ",A1={},RN=typeof console<"u"&&console.warn&&console.log;function EN(r,t,e){if(RN){if(e){if(A1[t])return;A1[t]=!0}console[r](kN+t)}}function OM(r,t){EN("error",r,t)}function Ot(r){throw new Error(r)}function M1(r,t,e){return(t-r)*e+r}var NM="series\0",BM="\0_ec_\0";function Ht(r){return r instanceof Array?r:r==null?[]:[r]}function eo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var D1=["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 ks(r){return ut(r)&&!U(r)&&!(r instanceof Date)?r.value:r}function ON(r){return ut(r)&&!(r instanceof Array)}function zM(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=et();A(t,function(l,u){if(!ut(l)){t[u]=null;return}});var s=NN(r,o,e);return(a||n)&&BN(s,r,o,t),a&&zN(s,t),a||n?VN(s,t,n):i&&GN(s,t),FN(s),s}function NN(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||nu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function BN(r,t,e,a){A(a,function(n,i){if(!(!n||n.id==null)){var o=Hl(n.id),s=e.get(o);if(s!=null){var l=r[s];$e(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function zN(r,t){A(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!nu(e)&&!nu(i)&&VM("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function VN(r,t,e){A(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||nu(n.existing)||n.existing&&a.id!=null&&!VM("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function GN(r,t){A(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function FN(r){var t=et();A(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),A(r,function(e){var a=e.newOption;$e(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(ut(i)){if(o.name=i.name!=null?Hl(i.name):n?n.name:NM+a,n)o.id=Hl(n.id);else if(i.id!=null)o.id=Hl(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function VM(r,t,e){var a=ye(t[r],null),n=ye(e[r],null);return a!=null&&n!=null&&a===n}function Hl(r){return ye(r,"")}function ye(r,t){return r==null?t:K(r)?r:Lt(r)||ag(r)?r+"":t}function Dm(r){var t=r.name;return!!(t&&t.indexOf(NM))}function nu(r){return r&&r.id!=null&&Hl(r.id).indexOf(BM)===0}function HN(r){return BM+r}function WN(r,t,e){A(r,function(a){var n=a.newOption;ut(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=$N(t,n,a.existing,e))})}function $N(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function UN(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=ye(o[u].seriesId,null);if(v==null)return;for(var c=Ht(o[u].dataIndex),h=l&&l[v],d=0,p=c.length;d<p;d++){var g=c[d];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)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function ro(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?Y(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?Y(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function wt(){var r="__ec_inner_"+YN++;return function(t){return t[r]||(t[r]={})}}var YN=RM();function cs(r,t,e){var a=Lm(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var v=Rs(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function Lm(r,t){var e;if(K(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=et(),i={},o=!1;return A(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||t&&t.includeMainTypes&&yt(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var ee={useDefault:!0,enableAll:!1,enableNone:!1},ZN={useDefault:!1,enableAll:!0,enableNone:!0};function Rs(r,t,e,a){a=a||ee;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s}function GM(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function XN(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function qN(r){return r==="auto"?Et.domSupported?"html":"richText":r||"html"}function Lg(r,t){var e=et(),a=[];return A(r,function(n){var i=t(n);(e.get(i)||(a.push(i),e.set(i,[]))).push(n)}),{keys:a,buckets:e}}function FM(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(Lt(a)){var o=M1(e||0,a,n);return fe(o,i?Math.max(ga(e||0),ga(a)):t)}else{if(K(a))return n<1?e:a;for(var s=[],l=e,u=a,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&c.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,d=u[v],o=M1(h,d,n);s[v]=fe(o,i?Math.max(ga(h),ga(d)):t)}}return s}}var On=function(){function r(){}return r.prototype.reset=function(t,e,a,n){return this._list=t,this._step=n=n||1,this._idx=e,this._end=a??(n>0?t.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):!1},r}();function Xh(r){r.option=r.parentModel=r.ecModel=null}var KN=".",ii="___EC__COMPONENT__CONTAINER___",HM="___EC__EXTENDED_CLASS___";function ya(r){var t={main:"",sub:""};if(r){var e=r.split(KN);t.main=e[0]||"",t.sub=e[1]||""}return t}function jN(r){$e(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function JN(r){return!!(r&&r[HM])}function Im(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return QN(a)?n=function(i){N(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(e.$constructor||a).apply(this,arguments)},$E(n,this)),H(n.prototype,e),n[HM]=!0,n.extend=this.extend,n.superCall=rB,n.superApply=aB,n.superClass=a,n}}function QN(r){return at(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function WM(r,t){r.extend=t.extend}var tB=Math.round(Math.random()*10);function eB(r){var t=["__\0is_clz",tB++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function rB(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function aB(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Yc(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){jN(n),a.prototype.type=n;var i=ya(n);if(!i.sub)t[i.main]=a;else if(i.sub!==ii){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[ii]&&(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=ya(a),i=[],o=t[n.main];return o&&o[ii]?A(o,function(s,l){l!==ii&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=ya(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=ya(a),i=t[n.main];return i&&i[ii]};function e(a){var n=t[a.main];return(!n||!n[ii])&&(n=t[a.main]={},n[ii]=!0),n}}function ao(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&yt(n,l)>=0||i&&yt(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var nB=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],iB=ao(nB),oB=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return iB(this,t,e)},r}(),Ig=new ys(50);function sB(r){if(typeof r=="string"){var t=Ig.get(r);return t&&t.image}else return r}function Pm(r,t,e,a,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var i=Ig.get(r),o={hostEl:e,cb:a,cbPayload:n};return i?(t=i.image,!Zc(t)&&i.pending.push(o)):(t=qr.loadImage(r,L1,L1),t.__zrImageSrc=r,Ig.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function L1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],a=e.cb;a&&a(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Zc(r){return r&&r.width&&r.height}var qh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function lB(r,t,e,a,n,i){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);i=$M(e,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)UM(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function $M(r,t,e,a){a=a||{};var n=H({},a);e=rt(e,"..."),n.maxIterations=rt(a.maxIterations,2);var i=n.minChar=rt(a.minChar,0),o=n.fontMeasureInfo=wa(t),s=o.asciiCharWidth;n.placeholder=rt(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=Ta(o,e);return f>l&&(e="",f=0),l=r-f,n.ellipsis=e,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function UM(r,t,e){var a=e.containerWidth,n=e.contentWidth,i=e.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ta(i,t);if(o<=a){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?uB(t,n,i):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,l),o=Ta(i,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function uB(r,t,e){for(var a=0,n=0,i=r.length;n<i&&a<t;n++)a+=wM(e,r.charCodeAt(n));return n}function fB(r,t,e,a){var n=km(r),i=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=i==="truncate",v=Iu(u),c=rt(t.lineHeight,v),h=t.lineOverflow==="truncate",d=!1,p=t.width;p==null&&e!=null&&(p=e-s);var g=t.height;g==null&&a!=null&&(g=a-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=n?YM(n,t.font,p,i==="breakAll",0).lines:[]:y=n?n.split(`
`):[];var m=y.length*c;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/c);d=d||y.length>_,y=y.slice(0,_),m=y.length*c}if(n&&f&&p!=null)for(var S=$M(p,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},b=0;b<y.length;b++)UM(x,y[b],S),y[b]=x.textLine,d=d||x.isTruncated;for(var w=g,T=0,C=wa(u),b=0;b<y.length;b++)T=Math.max(Ta(C,y[b]),T);p==null&&(p=T);var M=p;return w+=l,M+=s,{lines:y,height:g,outerWidth:M,outerHeight:w,lineHeight:c,calculatedLineHeight:v,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var vB=function(){function r(){}return r}(),I1=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),cB=function(){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}return r}();function hB(r,t,e,a,n){var i=new cB,o=km(r);if(!o)return i;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&e!=null&&(f=e-l);var v=t.height;v==null&&a!=null&&(v=a-u);for(var c=t.overflow,h=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=qh.lastIndex=0,p;(p=qh.exec(o))!=null;){var g=p.index;g>d&&Kh(i,o.substring(d,g),t,h),Kh(i,p[2],t,h,p[1]),d=qh.lastIndex}d<o.length&&Kh(i,o.substring(d,o.length),t,h);var y=[],m=0,_=0,S=c==="truncate",x=t.lineOverflow==="truncate",b={};function w(Dt,zt,ct){Dt.width=zt,Dt.lineHeight=ct,m+=ct,_=Math.max(_,zt)}t:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],M=0,D=0,I=0;I<C.tokens.length;I++){var L=C.tokens[I],P=L.styleName&&t.rich[L.styleName]||{},k=L.textPadding=P.padding,R=k?k[1]+k[3]:0,O=L.font=P.font||t.font;L.contentHeight=Iu(O);var E=rt(P.height,L.contentHeight);if(L.innerHeight=E,k&&(E+=k[0]+k[2]),L.height=E,L.lineHeight=gr(P.lineHeight,t.lineHeight,E),L.align=P&&P.align||n,L.verticalAlign=P&&P.verticalAlign||"middle",x&&v!=null&&m+L.lineHeight>v){var B=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,M),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<B;break t}var G=P.width,F=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")L.percentWidth=G,y.push(L),L.contentWidth=Ta(wa(O),L.text);else{if(F){var W=P.backgroundColor,X=W&&W.image;X&&(X=sB(X),Zc(X)&&(L.width=Math.max(L.width,X.width*E/X.height)))}var J=S&&f!=null?f-D:null;J!=null&&J<L.width?!F||J<R?(L.text="",L.width=L.contentWidth=0):(lB(b,L.text,J-R,O,t.ellipsis,{minChar:t.truncateMinChar}),L.text=b.text,i.isTruncated=i.isTruncated||b.isTruncated,L.width=L.contentWidth=Ta(wa(O),L.text)):L.contentWidth=Ta(wa(O),L.text)}L.width+=R,D+=L.width,P&&(M=Math.max(M,L.lineHeight))}w(C,D,M)}i.outerWidth=i.width=rt(f,_),i.outerHeight=i.height=rt(v,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var L=y[T],ft=L.percentWidth;L.width=parseInt(ft,10)/100*i.width}return i}function Kh(r,t,e,a,n){var i=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,v;if(a){var c=o.padding,h=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=jr(o.width,a.width)+h;s.length>0&&d+a.accumWidth>a.width&&(f=t.split(`
`),u=!0),a.accumWidth=d}else{var p=YM(t,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,v=p.linesWidths,f=p.lines}}f||(f=t.split(`
`));for(var g=wa(l),y=0;y<f.length;y++){var m=f[y],_=new vB;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=v?v[y]:Ta(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new I1)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new I1([_]))}}function dB(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var pB=Ca(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function gB(r){return dB(r)?!!pB[r]:!0}function YM(r,t,e,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,v=wa(t),c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=wM(v,h.charCodeAt(0)),p=a?!1:!gB(h);if(i.length?f+d>e:n+f+d>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function P1(r,t,e,a,n,i){if(r.baseX=e,r.baseY=a,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;vt.set(k1,ms(e,o,n),Yi(a,s,i),o,s),vt.intersect(t,k1,null,R1);var l=R1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=ms(l.x,l.width,n,!0),r.baseY=Yi(l.y,l.height,i,!0)}}var k1=new vt(0,0,0,0),R1={outIntersectRect:{},clamp:!0};function km(r){return r!=null?r+="":r=""}function yB(r){var t=km(r.text),e=r.font,a=Ta(wa(e),t),n=Iu(e);return Pg(r,a,n,null)}function Pg(r,t,e,a){var n=new vt(ms(r.x||0,t,r.textAlign),Yi(r.y||0,e,r.textBaseline),t,e),i=a??(ZM(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function ZM(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var kg="__zr_style_"+Math.round(Math.random()*10),Zi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zi[kg]=!0;var E1=["z","z2","invisible"],mB=["invisible"],_B=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var a=Mt(e),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(e[i]):r.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&SB(this,e,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},t.prototype.contain=function(e,a){return this.rectContain(e,a)},t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.rectContain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=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;e=this._paintRect||(this._paintRect=new vt(0,0,0,0)),a?vt.applyTransform(e,n,a):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new vt(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,a){e!=="style"?r.prototype.attrKV.call(this,e,a):this.style?this.setStyle(a):this.useStyle(a)},t.prototype.setStyle=function(e,a){return typeof e=="string"?this.style[e]=a:H(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Al,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Al)},t.prototype.styleUpdated=function(){this.__dirty&=~Al},t.prototype.createStyle=function(e){return Fc(Zi,e)},t.prototype.useStyle=function(e){e[kg]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[kg]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,a,E1)},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var v=Mt(f),c=0;c<v.length;c++){var h=v[c];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var d=Mt(u),c=0;c<d.length;c++){var h=d[c];this.style[h]=this.style[h]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?mB:E1,c=0;c<p.length;c++){var h=p[c];a&&a[h]!=null?this[h]=a[h]:l&&n[h]!=null&&(this[h]=n[h])}},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},t.prototype._mergeStyle=function(e,a){return H(e,a),e},t.prototype.getAnimationStyleProps=function(){return Xc},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=hr|Al}(),t}(CM),jh=new vt(0,0,0,0),Jh=new vt(0,0,0,0);function SB(r,t,e){return jh.copy(r.getBoundingRect()),r.transform&&jh.applyTransform(r.transform),Jh.width=t,Jh.height=e,!jh.intersect(Jh)}const Nr=_B;var rr=Math.min,ar=Math.max,Qh=Math.sin,td=Math.cos,oi=Math.PI*2,rf=vo(),af=vo(),nf=vo();function qc(r,t,e){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=rr(n,a[0]),i=ar(i,a[0]),o=rr(o,a[1]),s=ar(s,a[1]);t[0]=n,t[1]=o,e[0]=i,e[1]=s}}function O1(r,t,e,a,n,i){n[0]=rr(r,e),n[1]=rr(t,a),i[0]=ar(r,e),i[1]=ar(t,a)}var N1=[],B1=[];function xB(r,t,e,a,n,i,o,s,l,u){var f=lM,v=we,c=f(r,e,n,o,N1);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var d=v(r,e,n,o,N1[h]);l[0]=rr(d,l[0]),u[0]=ar(d,u[0])}c=f(t,a,i,s,B1);for(var h=0;h<c;h++){var p=v(t,a,i,s,B1[h]);l[1]=rr(p,l[1]),u[1]=ar(p,u[1])}l[0]=rr(r,l[0]),u[0]=ar(r,u[0]),l[0]=rr(o,l[0]),u[0]=ar(o,u[0]),l[1]=rr(t,l[1]),u[1]=ar(t,u[1]),l[1]=rr(s,l[1]),u[1]=ar(s,u[1])}function bB(r,t,e,a,n,i,o,s){var l=fM,u=Le,f=ar(rr(l(r,e,n),1),0),v=ar(rr(l(t,a,i),1),0),c=u(r,e,n,f),h=u(t,a,i,v);o[0]=rr(r,n,c),o[1]=rr(t,i,h),s[0]=ar(r,n,c),s[1]=ar(t,i,h)}function wB(r,t,e,a,n,i,o,s,l){var u=Tn,f=Cn,v=Math.abs(n-i);if(v%oi<1e-4&&v>1e-4){s[0]=r-e,s[1]=t-a,l[0]=r+e,l[1]=t+a;return}if(rf[0]=td(n)*e+r,rf[1]=Qh(n)*a+t,af[0]=td(i)*e+r,af[1]=Qh(i)*a+t,u(s,rf,af),f(l,rf,af),n=n%oi,n<0&&(n=n+oi),i=i%oi,i<0&&(i=i+oi),n>i&&!o?i+=oi:n<i&&o&&(n+=oi),o){var c=i;i=n,n=c}for(var h=0;h<i;h+=Math.PI/2)h>n&&(nf[0]=td(h)*e+r,nf[1]=Qh(h)*a+t,u(s,nf,s),f(l,nf,l))}var Wt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},si=[],li=[],ra=[],un=[],aa=[],na=[],ed=Math.min,rd=Math.max,ui=Math.cos,fi=Math.sin,Ea=Math.abs,Rg=Math.PI,_n=Rg*2,ad=typeof Float32Array<"u",Ks=[];function nd(r){var t=Math.round(r/Rg*1e8)/1e8;return t%2*Rg}function Kc(r,t){var e=nd(r[0]);e<0&&(e+=_n);var a=e-r[0],n=r[1];n+=a,!t&&n-e>=_n?n=e+_n:t&&e-n>=_n?n=e-_n:!t&&e>n?n=e+(_n-nd(e-n)):t&&e<n&&(n=e-(_n-nd(n-e))),r[0]=e,r[1]=n}var TB=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(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(t,e,a){a=a||0,a>0&&(this._ux=Ea(a/zv/t)||0,this._uy=Ea(a/zv/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Wt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var a=Ea(t-this._xi),n=Ea(e-this._yi),i=a>this._ux||n>this._uy;if(this.addData(Wt.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){return this._drawPendingPt(),this.addData(Wt.C,t,e,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,a,n){return this._drawPendingPt(),this.addData(Wt.Q,t,e,a,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(t,e,a,n,i,o){this._drawPendingPt(),Ks[0]=n,Ks[1]=i,Kc(Ks,o),n=Ks[0],i=Ks[1];var s=i-n;return this.addData(Wt.A,t,e,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,a,n,i,o),this._xi=ui(i)*a+t,this._yi=fi(i)*a+e,this},r.prototype.arcTo=function(t,e,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,a,n,i),this},r.prototype.rect=function(t,e,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,a,n),this.addData(Wt.R,t,e,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(Wt.Z);var t=this._ctx,e=this._x0,a=this._y0;return t&&t.closePath(),this._xi=e,this._yi=a,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&ad&&(this.data=new Float32Array(e));for(var a=0;a<e;a++)this.data[a]=t[a];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,a=0,n=this._len,i=0;i<e;i++)a+=t[i].len();var o=this.data;if(ad&&(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(var i=0;i<e;i++)for(var l=t[i].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(t,e,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 t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ad&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){ra[0]=ra[1]=aa[0]=aa[1]=Number.MAX_VALUE,un[0]=un[1]=na[0]=na[1]=-Number.MAX_VALUE;var t=this.data,e=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],a=t[o+1],n=e,i=a),s){case Wt.M:e=n=t[o++],a=i=t[o++],aa[0]=n,aa[1]=i,na[0]=n,na[1]=i;break;case Wt.L:O1(e,a,t[o],t[o+1],aa,na),e=t[o++],a=t[o++];break;case Wt.C:xB(e,a,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],aa,na),e=t[o++],a=t[o++];break;case Wt.Q:bB(e,a,t[o++],t[o++],t[o],t[o+1],aa,na),e=t[o++],a=t[o++];break;case Wt.A:var u=t[o++],f=t[o++],v=t[o++],c=t[o++],h=t[o++],d=t[o++]+h;o+=1;var p=!t[o++];l&&(n=ui(h)*v+u,i=fi(h)*c+f),wB(u,f,v,c,h,d,p,aa,na),e=ui(d)*v+u,a=fi(d)*c+f;break;case Wt.R:n=e=t[o++],i=a=t[o++];var g=t[o++],y=t[o++];O1(n,i,n+g,i+y,aa,na);break;case Wt.Z:e=n,a=i;break}Tn(ra,ra,aa),Cn(un,un,na)}return o===0&&(ra[0]=ra[1]=un[0]=un[1]=0),new vt(ra[0],ra[1],un[0]-ra[0],un[1]-ra[1])},r.prototype._calculateLength=function(){var t=this.data,e=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<e;){var h=t[c++],d=c===1;d&&(i=t[c],o=t[c+1],s=i,l=o);var p=-1;switch(h){case Wt.M:i=s=t[c++],o=l=t[c++];break;case Wt.L:{var g=t[c++],y=t[c++],m=g-i,_=y-o;(Ea(m)>a||Ea(_)>n||c===e-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case Wt.C:{var S=t[c++],x=t[c++],g=t[c++],y=t[c++],b=t[c++],w=t[c++];p=PO(i,o,S,x,g,y,b,w,10),i=b,o=w;break}case Wt.Q:{var S=t[c++],x=t[c++],g=t[c++],y=t[c++];p=RO(i,o,S,x,g,y,10),i=g,o=y;break}case Wt.A:var T=t[c++],C=t[c++],M=t[c++],D=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,d&&(s=ui(I)*M+T,l=fi(I)*D+C),p=rd(M,D)*ed(_n,Math.abs(L)),i=ui(P)*M+T,o=fi(P)*D+C;break;case Wt.R:{s=i=t[c++],l=o=t[c++];var k=t[c++],R=t[c++];p=k*2+R*2;break}case Wt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[v++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,v,c,h=e<1,d,p,g=0,y=0,m,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var b=0;b<o;){var w=a[b++],T=b===1;switch(T&&(u=a[b],f=a[b+1],s=u,l=f),w!==Wt.L&&_>0&&(t.lineTo(S,x),_=0),w){case Wt.M:s=u=a[b++],l=f=a[b++],t.moveTo(u,f);break;case Wt.L:{v=a[b++],c=a[b++];var C=Ea(v-u),M=Ea(c-f);if(C>n||M>i){if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+v*I,f*(1-I)+c*I);break t}g+=D}t.lineTo(v,c),u=v,f=c,_=0}else{var L=C*C+M*M;L>_&&(S=v,x=c,_=L)}break}case Wt.C:{var P=a[b++],k=a[b++],R=a[b++],O=a[b++],E=a[b++],B=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Vn(u,P,R,E,I,si),Vn(f,k,O,B,I,li),t.bezierCurveTo(si[1],li[1],si[2],li[2],si[3],li[3]);break t}g+=D}t.bezierCurveTo(P,k,R,O,E,B),u=E,f=B;break}case Wt.Q:{var P=a[b++],k=a[b++],R=a[b++],O=a[b++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;tu(u,P,R,I,si),tu(f,k,O,I,li),t.quadraticCurveTo(si[1],li[1],si[2],li[2]);break t}g+=D}t.quadraticCurveTo(P,k,R,O),u=R,f=O;break}case Wt.A:var G=a[b++],F=a[b++],W=a[b++],X=a[b++],J=a[b++],ft=a[b++],Dt=a[b++],zt=!a[b++],ct=W>X?W:X,V=Ea(W-X)>.001,$=J+ft,Z=!1;if(h){var D=d[y++];g+D>m&&($=J+ft*(m-g)/D,Z=!0),g+=D}if(V&&t.ellipse?t.ellipse(G,F,W,X,Dt,J,$,zt):t.arc(G,F,ct,J,$,zt),Z)break t;T&&(s=ui(J)*W+G,l=fi(J)*X+F),u=ui($)*W+G,f=fi($)*X+F;break;case Wt.R:s=u=a[b],l=f=a[b+1],v=a[b++],c=a[b++];var tt=a[b++],At=a[b++];if(h){var D=d[y++];if(g+D>m){var pt=m-g;t.moveTo(v,c),t.lineTo(v+ed(pt,tt),c),pt-=tt,pt>0&&t.lineTo(v+tt,c+ed(pt,At)),pt-=At,pt>0&&t.lineTo(v+rd(tt-pt,0),c+At),pt-=tt,pt>0&&t.lineTo(v,c+rd(At-pt,0));break t}g+=D}t.rect(v,c,tt,At);break;case Wt.Z:if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=Wt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const Da=TB;function xn(r,t,e,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>a+s||o<t-s&&o<a-s||i>r+s&&i>e+s||i<r-s&&i<e-s)return!1;if(r!==e)l=(t-a)/(r-e),u=(r*a-e*t)/(r-e);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,v=f*f/(l*l+1);return v<=s/2*s/2}function CB(r,t,e,a,n,i,o,s,l,u,f){if(l===0)return!1;var v=l;if(f>t+v&&f>a+v&&f>i+v&&f>s+v||f<t-v&&f<a-v&&f<i-v&&f<s-v||u>r+v&&u>e+v&&u>n+v&&u>o+v||u<r-v&&u<e-v&&u<n-v&&u<o-v)return!1;var c=uM(r,t,e,a,n,i,o,s,u,f,null);return c<=v/2}function XM(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>a+u&&l>i+u||l<t-u&&l<a-u&&l<i-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=vM(r,t,e,a,n,i,s,l,null);return f<=u/2}var z1=Math.PI*2;function dr(r){return r%=z1,r<0&&(r+=z1),r}var js=Math.PI*2;function AB(r,t,e,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(a-n)%js<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+=js);var c=Math.atan2(l,s);return c<0&&(c+=js),c>=a&&c<=n||c+js>=a&&c+js<=n}function Ga(r,t,e,a,n,i){if(i>t&&i>a||i<t&&i<a||a===t)return 0;var o=(i-t)/(a-t),s=a<t?1:-1;(o===1||o===0)&&(s=a<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var fn=Da.CMD,vi=Math.PI*2,MB=1e-4;function DB(r,t){return Math.abs(r-t)<MB}var qe=[-1,-1,-1],Mr=[-1,-1];function LB(){var r=Mr[0];Mr[0]=Mr[1],Mr[1]=r}function IB(r,t,e,a,n,i,o,s,l,u){if(u>t&&u>a&&u>i&&u>s||u<t&&u<a&&u<i&&u<s)return 0;var f=Ev(t,a,i,s,u,qe);if(f===0)return 0;for(var v=0,c=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=qe[p],y=g===0||g===1?.5:1,m=we(r,e,n,o,g);m<l||(c<0&&(c=lM(t,a,i,s,Mr),Mr[1]<Mr[0]&&c>1&&LB(),h=we(t,a,i,s,Mr[0]),c>1&&(d=we(t,a,i,s,Mr[1]))),c===2?g<Mr[0]?v+=h<t?y:-y:g<Mr[1]?v+=d<h?y:-y:v+=s<d?y:-y:g<Mr[0]?v+=h<t?y:-y:v+=s<h?y:-y)}return v}function PB(r,t,e,a,n,i,o,s){if(s>t&&s>a&&s>i||s<t&&s<a&&s<i)return 0;var l=kO(t,a,i,s,qe);if(l===0)return 0;var u=fM(t,a,i);if(u>=0&&u<=1){for(var f=0,v=Le(t,a,i,u),c=0;c<l;c++){var h=qe[c]===0||qe[c]===1?.5:1,d=Le(r,e,n,qe[c]);d<o||(qe[c]<u?f+=v<t?h:-h:f+=i<v?h:-h)}return f}else{var h=qe[0]===0||qe[0]===1?.5:1,d=Le(r,e,n,qe[0]);return d<o?0:i<t?h:-h}}function kB(r,t,e,a,n,i,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);qe[0]=-l,qe[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=vi-1e-4){a=0,n=vi;var f=i?1:-1;return o>=qe[0]+r&&o<=qe[1]+r?f:0}if(a>n){var v=a;a=n,n=v}a<0&&(a+=vi,n+=vi);for(var c=0,h=0;h<2;h++){var d=qe[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=vi+p),(p>=a&&p<=n||p+vi>=a&&p+vi<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function qM(r,t,e,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,c,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===fn.M&&d>1&&(e||(s+=Ga(l,u,f,v,a,n))),g&&(l=i[d],u=i[d+1],f=l,v=u),p){case fn.M:f=i[d++],v=i[d++],l=f,u=v;break;case fn.L:if(e){if(xn(l,u,i[d],i[d+1],t,a,n))return!0}else s+=Ga(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case fn.C:if(e){if(CB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=IB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case fn.Q:if(e){if(XM(l,u,i[d++],i[d++],i[d],i[d+1],t,a,n))return!0}else s+=PB(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case fn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],x=i[d++],b=i[d++];d+=1;var w=!!(1-i[d++]);c=Math.cos(x)*_+y,h=Math.sin(x)*S+m,g?(f=c,v=h):s+=Ga(l,u,c,h,a,n);var T=(a-y)*S/_+y;if(e){if(AB(y,m,S,x,x+b,w,t,T,n))return!0}else s+=kB(y,m,S,x,x+b,w,T,n);l=Math.cos(x+b)*_+y,u=Math.sin(x+b)*S+m;break;case fn.R:f=l=i[d++],v=u=i[d++];var C=i[d++],M=i[d++];if(c=f+C,h=v+M,e){if(xn(f,v,c,v,t,a,n)||xn(c,v,c,h,t,a,n)||xn(c,h,f,h,t,a,n)||xn(f,h,f,v,t,a,n))return!0}else s+=Ga(c,v,c,h,a,n),s+=Ga(f,h,f,v,a,n);break;case fn.Z:if(e){if(xn(l,u,f,v,t,a,n))return!0}else s+=Ga(l,u,f,v,a,n);l=f,u=v;break}}return!e&&!DB(u,v)&&(s+=Ga(l,u,f,v,a,n)||0),s!==0}function RB(r,t,e){return qM(r,0,!1,t,e)}function EB(r,t,e,a){return qM(r,t,!0,e,a)}var Hv=lt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zi),OB={style:lt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xc.style)},id=Ma.concat(["invisible","culling","z","z2","zlevel","parent"]),NB=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var 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<id.length;++s)n[id[s]]=this[id[s]];n.__dirty|=hr}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var a=Mt(e);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=e[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(K(e)){var a=Nv(e,0);return a>.5?Ag:a>.2?fN:Mg}else if(e)return Mg}return Ag},t.prototype.getInsideTextStroke=function(e){var a=this.style.fill;if(K(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=Nv(e,0)<Cg;if(i===o)return a}},t.prototype.buildPath=function(e,a,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Qo},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Da(!1)},t.prototype.hasStroke=function(){var e=this.style,a=e.stroke;return!(a==null||a==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,a=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Qo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect(),o=this.style;if(e=n[0],a=n[1],i.contain(e,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),EB(s,l/u,e,a)))return!0}if(this.hasFill())return RB(s,e,a)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Qo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,a){e==="shape"?this.setShape(a):r.prototype.attrKV.call(this,e,a)},t.prototype.setShape=function(e,a){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=a:H(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Qo)},t.prototype.createStyle=function(e){return Fc(Hv,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var a=this._normalState;e.shape&&!a.shape&&(a.shape=H({},this.shape))},t.prototype._applyStateObj=function(e,a,n,i,o,s){r.prototype._applyStateObj.call(this,e,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=H({},n.shape),H(u,a.shape)):(u=H({},i?this.shape:n.shape),H(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=H({},this.shape);for(var f={},v=Mt(u),c=0;c<v.length;c++){var h=v[c];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var a=r.prototype._mergeStates.call(this,e),n,i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},t.prototype.getAnimationStyleProps=function(){return OB},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var a=function(i){N(o,i);function o(s){var l=i.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return nt(e.style)},o.prototype.getDefaultShape=function(){return nt(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(a.prototype[n]=e[n]);return a},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=hr|Al|Qo}(),t}(Nr);const Ct=NB;var BB=lt({strokeFirst:!0,font:qa,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Hv),KM=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return ZM(this.style)},t.prototype.hasFill=function(){var e=this.style,a=e.fill;return a!=null&&a!=="none"},t.prototype.createStyle=function(e){return Fc(BB,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=yB(this.style)),this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Nr);KM.prototype.type="tspan";const iu=KM;var zB=lt({x:0,y:0},Zi),VB={style:lt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xc.style)};function GB(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var jM=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Fc(zB,e)},t.prototype._getSize=function(e){var a=this.style,n=a[e];if(n!=null)return n;var i=GB(a.image)?a.image:this.__image;if(!i)return 0;var o=e==="width"?"height":"width",s=a[o];return s==null?i[e]:i[e]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return VB},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new vt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Nr);jM.prototype.type="image";const Be=jM;function FB(r,t){var e=t.x,a=t.y,n=t.width,i=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var v;s+l>n&&(v=s+l,s*=n/v,l*=n/v),u+f>n&&(v=u+f,u*=n/v,f*=n/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(e+s,a),r.lineTo(e+n-l,a),l!==0&&r.arc(e+n-l,a+l,l,-Math.PI/2,0),r.lineTo(e+n,a+i-u),u!==0&&r.arc(e+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(e+f,a+i),f!==0&&r.arc(e+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(e,a+s),s!==0&&r.arc(e+s,a+s,s,Math.PI,Math.PI*1.5)}var is=Math.round;function jc(r,t,e){if(t){var a=t.x1,n=t.x2,i=t.y1,o=t.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=e&&e.lineWidth;return s&&(is(a*2)===is(n*2)&&(r.x1=r.x2=pr(a,s,!0)),is(i*2)===is(o*2)&&(r.y1=r.y2=pr(i,s,!0))),r}}function JM(r,t,e){if(t){var a=t.x,n=t.y,i=t.width,o=t.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=pr(a,s,!0),r.y=pr(n,s,!0),r.width=Math.max(pr(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(pr(n+o,s,!1)-r.y,o===0?0:1)),r}}function pr(r,t,e){if(!t)return r;var a=is(r*2);return(a+is(t))%2===0?a/2:(a+(e?1:-1))/2}var HB=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),WB={},QM=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new HB},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=JM(WB,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?FB(e,a):e.rect(n,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Ct);QM.prototype.type="rect";const bt=QM;var V1={fill:"#000"},G1=2,ia={},$B={style:lt({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},Xc.style)},tD=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=V1,a.attr(e),a}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var a=this._children[e];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var a=this.innerTransformable;return a?a.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,ZB(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new vt(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?(e.copy(l),e.applyTransform(u),i=i||e.clone(),i.union(e)):(i=i||l.clone(),i.union(l))}this._rect=i||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||V1},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,a){if(!a)return e;var n=a.rich,i=e.rich||n&&{};return H(e,a),n&&i?(this._mergeRich(i,n),e.rich=i):i&&(e.rich=i),e},t.prototype._mergeRich=function(e,a){for(var n=Mt(a),i=0;i<n.length;i++){var o=n[i];e[o]=e[o]||{},H(e[o],a[o])}},t.prototype.getAnimationStyleProps=function(){return $B},t.prototype._getOrCreateChild=function(e){var a=this._children[this._childCursor];return(!a||!(a instanceof e))&&(a=new e),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},t.prototype._updatePlainTexts=function(){var e=this.style,a=e.font||qa,n=e.padding,i=this._defaultStyle,o=e.x||0,s=e.y||0,l=e.align||i.align||"left",u=e.verticalAlign||i.verticalAlign||"top";P1(ia,i.overflowRect,o,s,l,u),o=ia.baseX,s=ia.baseY;var f=Z1(e),v=fB(f,e,ia.outerWidth,ia.outerHeight),c=od(e),h=!!e.backgroundColor,d=v.outerHeight,p=v.outerWidth,g=v.lines,y=v.lineHeight;this.isTruncated=!!v.isTruncated;var m=o,_=Yi(s,v.contentHeight,u);if(c||n){var S=ms(o,p,l),x=Yi(s,d,u);c&&this._renderBackground(e,e,S,x,p,d)}_+=y/2,n&&(m=Y1(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var b=0,w=!1,T=!1,C=U1("fill"in e?e.fill:(T=!0,i.fill)),M=$1("stroke"in e?e.stroke:!h&&(!i.autoStroke||T)?(b=G1,w=!0,i.stroke):null),D=e.textShadowBlur>0,I=0;I<g.length;I++){var L=this._getOrCreateChild(iu),P=L.createStyle();L.useStyle(P),P.text=g[I],P.x=m,P.y=_,l&&(P.textAlign=l),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=M,P.fill=C,M&&(P.lineWidth=e.lineWidth||b,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=a,H1(P,e),_+=y,L.setBoundingRect(Pg(P,v.contentWidth,v.calculatedLineHeight,w?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,a=this._defaultStyle,n=e.align||a.align,i=e.verticalAlign||a.verticalAlign,o=e.x||0,s=e.y||0;P1(ia,a.overflowRect,o,s,n,i),o=ia.baseX,s=ia.baseY;var l=Z1(e),u=hB(l,e,ia.outerWidth,ia.outerHeight,n),f=u.width,v=u.outerWidth,c=u.outerHeight,h=e.padding;this.isTruncated=!!u.isTruncated;var d=ms(o,v,n),p=Yi(s,c,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;od(e)&&this._renderBackground(e,e,d,p,v,c);for(var _=!!e.backgroundColor,S=0;S<u.lines.length;S++){for(var x=u.lines[S],b=x.tokens,w=b.length,T=x.lineHeight,C=x.width,M=0,D=g,I=m,L=w-1,P=void 0;M<w&&(P=b[M],!P.align||P.align==="left");)this._placeToken(P,e,T,y,D,"left",_),C-=P.width,D+=P.width,M++;for(;L>=0&&(P=b[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)P=b[M],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},t.prototype._placeToken=function(e,a,n,i,o,s,l){var u=a.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,v=i+n/2;f==="top"?v=i+e.height/2:f==="bottom"&&(v=i+n-e.height/2);var c=!e.isLineHolder&&od(u);c&&this._renderBackground(u,a,s==="right"?o-e.width:s==="center"?o-e.width/2:o,v-e.height/2,e.width,e.height);var h=!!u.backgroundColor,d=e.textPadding;d&&(o=Y1(o,s,d),v-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(iu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,x=U1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),b=$1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=G1,S=!0,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=e.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=e.font||qa,g.opacity=gr(u.opacity,a.opacity,1),H1(g,u),b&&(g.lineWidth=gr(u.lineWidth,a.lineWidth,_),g.lineDash=rt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=b),x&&(g.fill=x),p.setBoundingRect(Pg(g,e.contentWidth,e.contentHeight,S?0:null))},t.prototype._renderBackground=function(e,a,n,i,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,v=l&&l.image,c=l&&!v,h=e.borderRadius,d=this,p,g;if(c||e.lineHeight||u&&f){p=this._getOrCreateChild(bt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=rt(e.fillOpacity,1)}else if(v){g=this._getOrCreateChild(Be),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=rt(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=gr(e.opacity,a.opacity,1)},t.makeFont=function(e){var a="";return rD(e)&&(a=[e.fontStyle,e.fontWeight,eD(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),a&&Rr(a)||e.textFont||e.font},t}(Nr),UB={left:!0,right:1,center:1},YB={top:1,bottom:1,middle:1},F1=["fontStyle","fontWeight","fontSize","fontFamily"];function eD(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?hm+"px":r+"px"}function H1(r,t){for(var e=0;e<F1.length;e++){var a=F1[e],n=t[a];n!=null&&(r[a]=n)}}function rD(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function ZB(r){return W1(r),A(r.rich,W1),r}function W1(r){if(r){r.font=tD.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||UB[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||YB[e]?e:"top";var a=r.padding;a&&(r.padding=Gc(r.padding))}}function $1(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function U1(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Y1(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Z1(r){var t=r.text;return t!=null&&(t+=""),t}function od(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Pt=tD;var ht=wt(),Eg=function(r,t,e,a){if(a){var n=ht(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=ht(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},X1=1,q1={},aD=wt(),Rm=wt(),Em=0,Pu=1,Jc=2,Je=["emphasis","blur","select"],ou=["normal","emphasis","blur","select"],Es=10,XB=9,Xi="highlight",gv="downplay",Wv="select",Og="unselect",$v="toggleSelect",Om="selectchanged";function Po(r){return r!=null&&r!=="none"}function Qc(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function nD(r){Qc(r,"emphasis",Jc)}function iD(r){r.hoverState===Jc&&Qc(r,"normal",Em)}function Nm(r){Qc(r,"blur",Pu)}function oD(r){r.hoverState===Pu&&Qc(r,"normal",Em)}function qB(r){r.selected=!0}function KB(r){r.selected=!1}function K1(r,t,e){t(r,e)}function nn(r,t,e){K1(r,t,e),r.isGroup&&r.traverse(function(a){K1(a,t,e)})}function Uv(r,t){switch(t){case"emphasis":r.hoverState=Jc;break;case"normal":r.hoverState=Em;break;case"blur":r.hoverState=Pu;break;case"select":r.selected=!0}}function jB(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function JB(r,t,e,a){var n=e&&yt(e,"select")>=0,i=!1;if(r instanceof Ct){var o=aD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Po(s)||Po(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=H({},a),u=H({},u),u.fill=s):!Po(u.fill)&&Po(s)?(i=!0,a=H({},a),u=H({},u),u.fill=mg(s)):!Po(u.stroke)&&Po(l)&&(i||(a=H({},a),u=H({},u)),u.stroke=mg(l)),a.style=u}}if(a&&a.z2==null){i||(a=H({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Es)}return a}function QB(r,t,e){if(e&&e.z2==null){e=H({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??XB)}return e}function tz(r,t,e){var a=yt(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:jB(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=H({},e),o=H({opacity:a?n:i.opacity*.1},o),e.style=o),e}function sd(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return JB(this,r,t,e);if(r==="blur")return tz(this,r,e);if(r==="select")return QB(this,r,e)}return e}function no(r){r.stateProxy=sd;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=sd),e&&(e.stateProxy=sd)}function j1(r,t){!fD(r,t)&&!r.__highByOuter&&nn(r,nD)}function J1(r,t){!fD(r,t)&&!r.__highByOuter&&nn(r,iD)}function Ja(r,t){r.__highByOuter|=1<<(t||0),nn(r,nD)}function Qa(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&nn(r,iD)}function sD(r){nn(r,Nm)}function Bm(r){nn(r,oD)}function lD(r){nn(r,qB)}function uD(r){nn(r,KB)}function fD(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function vD(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Rm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){oD(u)}),s&&e.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Ng(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var v=0;v<f.length;v++){var c=u.getItemGraphicEl(f[v]);c&&Bm(c)}}if(r!=null&&!(!t||t==="none")){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;v&&v.master&&(v=v.master);var c=v&&s?v===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var h=a.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||Nm(g)}),We(t))i(u.getData(),t);else if(ut(t))for(var d=Mt(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Rm(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var v=a.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,n)}})}}function Bg(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){Rm(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Nm(i)})}}}function ez(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=ro(n,t);i=(U(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=ht(o);Ng(a,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);f!=null&&Ng(a,f,v,e)}}}function zm(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(ht(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function rz(r,t,e){var a=ht(r),n=zm(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Bg(a.componentMainType,a.componentIndex,e),A(i,function(s){return j1(s,t)})):(Ng(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Bg(a.componentMainType,a.componentIndex,e),j1(r,t))}function az(r,t,e){vD(e);var a=ht(r),n=zm(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?A(n,function(i){return J1(i,t)}):J1(r,t)}function nz(r,t,e){if(Vg(t)){var a=t.dataType,n=r.getData(a),i=ro(n,t);U(i)||(i=[i]),r[t.type===$v?"toggleSelect":t.type===Wv?"select":"unselect"](i,a)}}function Q1(r){var t=r.getAllData();A(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?lD(i):uD(i)})})}function iz(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();A(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function qi(r,t,e){zi(r,!0),nn(r,no),zg(r,t,e)}function oz(r){zi(r,!1)}function Xt(r,t,e,a){a?oz(r):qi(r,t,e)}function zg(r,t,e){var a=ht(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var tS=["emphasis","blur","select"],sz={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function _e(r,t,e,a){e=e||"itemStyle";for(var n=0;n<tS.length;n++){var i=tS[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=a?a(o):o[sz[e]]()}}function zi(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function su(r){return!!(r&&r.__highDownDispatcher)}function lz(r,t,e){var a=ht(r);a.componentMainType=t.mainType,a.componentIndex=t.componentIndex,a.componentHighDownName=e}function uz(r){var t=q1[r];return t==null&&X1<=32&&(t=q1[r]=X1++),t}function Vg(r){var t=r.type;return t===Wv||t===Og||t===$v}function eS(r){var t=r.type;return t===Xi||t===gv}function fz(r){var t=aD(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var ko=Da.CMD,vz=[[],[],[]],rS=Math.sqrt,cz=Math.atan2;function cD(r,t){if(t){var e=r.data,a=r.len(),n,i,o,s,l,u,f=ko.M,v=ko.C,c=ko.L,h=ko.R,d=ko.A,p=ko.Q;for(o=0,s=0;o<a;){switch(n=e[o++],s=o,i=0,n){case f:i=1;break;case c:i=1;break;case v:i=3;break;case p:i=2;break;case d:var g=t[4],y=t[5],m=rS(t[0]*t[0]+t[1]*t[1]),_=rS(t[2]*t[2]+t[3]*t[3]),S=cz(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case h:u[0]=e[o++],u[1]=e[o++],se(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],se(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<i;l++){var x=vz[l];x[0]=e[o++],x[1]=e[o++],se(x,x,t),e[s++]=x[0],e[s++]=x[1]}}r.increaseVersion()}}var ld=Math.sqrt,of=Math.sin,sf=Math.cos,Js=Math.PI;function aS(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Gg(r,t){return(r[0]*t[0]+r[1]*t[1])/(aS(r)*aS(t))}function nS(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Gg(r,t))}function iS(r,t,e,a,n,i,o,s,l,u,f){var v=l*(Js/180),c=sf(v)*(r-e)/2+of(v)*(t-a)/2,h=-1*of(v)*(r-e)/2+sf(v)*(t-a)/2,d=c*c/(o*o)+h*h/(s*s);d>1&&(o*=ld(d),s*=ld(d));var p=(n===i?-1:1)*ld((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,g=p*o*h/s,y=p*-s*c/o,m=(r+e)/2+sf(v)*g-of(v)*y,_=(t+a)/2+of(v)*g+sf(v)*y,S=nS([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=nS(x,b);if(Gg(x,b)<=-1&&(w=Js),Gg(x,b)>=1&&(w=0),w<0){var T=Math.round(w/Js*1e6)/1e6;w=Js*2+T%2*Js}f.addData(u,m,_,o,s,S,w,v,i)}var hz=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,dz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function pz(r){var t=new Da;if(!r)return t;var e=0,a=0,n=e,i=a,o,s=Da.CMD,l=r.match(hz);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),c=void 0,h=f.match(dz)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0,w=void 0,T=e,C=a,M=void 0,D=void 0;switch(v){case"l":e+=h[g++],a+=h[g++],c=s.L,t.addData(c,e,a);break;case"L":e=h[g++],a=h[g++],c=s.L,t.addData(c,e,a);break;case"m":e+=h[g++],a+=h[g++],c=s.M,t.addData(c,e,a),n=e,i=a,v="l";break;case"M":e=h[g++],a=h[g++],c=s.M,t.addData(c,e,a),n=e,i=a,v="L";break;case"h":e+=h[g++],c=s.L,t.addData(c,e,a);break;case"H":e=h[g++],c=s.L,t.addData(c,e,a);break;case"v":a+=h[g++],c=s.L,t.addData(c,e,a);break;case"V":a=h[g++],c=s.L,t.addData(c,e,a);break;case"C":c=s.C,t.addData(c,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),e=h[g-2],a=h[g-1];break;case"c":c=s.C,t.addData(c,h[g++]+e,h[g++]+a,h[g++]+e,h[g++]+a,h[g++]+e,h[g++]+a),e+=h[g-2],a+=h[g-1];break;case"S":y=e,m=a,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=a-D[M-3]),c=s.C,T=h[g++],C=h[g++],e=h[g++],a=h[g++],t.addData(c,y,m,T,C,e,a);break;case"s":y=e,m=a,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=a-D[M-3]),c=s.C,T=e+h[g++],C=a+h[g++],e+=h[g++],a+=h[g++],t.addData(c,y,m,T,C,e,a);break;case"Q":T=h[g++],C=h[g++],e=h[g++],a=h[g++],c=s.Q,t.addData(c,T,C,e,a);break;case"q":T=h[g++]+e,C=h[g++]+a,e+=h[g++],a+=h[g++],c=s.Q,t.addData(c,T,C,e,a);break;case"T":y=e,m=a,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=a-D[M-3]),e=h[g++],a=h[g++],c=s.Q,t.addData(c,y,m,e,a);break;case"t":y=e,m=a,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=a-D[M-3]),e+=h[g++],a+=h[g++],c=s.Q,t.addData(c,y,m,e,a);break;case"A":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],T=e,C=a,e=h[g++],a=h[g++],c=s.A,iS(T,C,e,a,b,w,_,S,x,c,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],b=h[g++],w=h[g++],T=e,C=a,e+=h[g++],a+=h[g++],c=s.A,iS(T,C,e,a,b,w,_,S,x,c,t);break}}(v==="z"||v==="Z")&&(c=s.Z,t.addData(c),e=n,a=i),o=c}return t.toStatic(),t}var hD=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Ct);function dD(r){return r.setData!=null}function pD(r,t){var e=pz(r),a=H({},t);return a.buildPath=function(n){var i=dD(n);if(i&&n.canSave()){n.appendPath(e);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=i?n.getContext():n;o&&e.rebuildPath(o,1)}},a.applyTransform=function(n){cD(e,n),this.dirtyShape()},a}function gD(r,t){return new hD(pD(r,t))}function gz(r,t){var e=pD(r,t),a=function(n){N(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return i}(hD);return a}function yz(r,t){for(var e=[],a=r.length,n=0;n<a;n++){var i=r[n];e.push(i.getUpdatedPathProxy(!0))}var o=new Ct(t);return o.createPathProxy(),o.buildPath=function(s){if(dD(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Vm(r,t){t=t||{};var e=new Ct;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?cD(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var mz=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),yD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new mz},t.prototype.buildPath=function(e,a){e.moveTo(a.cx+a.r,a.cy),e.arc(a.cx,a.cy,a.r,0,Math.PI*2)},t}(Ct);yD.prototype.type="circle";const qn=yD;var _z=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),mD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new _z},t.prototype.buildPath=function(e,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;e.moveTo(i-s,o),e.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),e.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),e.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),e.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),e.closePath()},t}(Ct);mD.prototype.type="ellipse";const Gm=mD;var _D=Math.PI,ud=_D*2,ci=Math.sin,Ro=Math.cos,Sz=Math.acos,Ve=Math.atan2,oS=Math.abs,Wl=Math.sqrt,Dl=Math.max,oa=Math.min,Fr=1e-4;function xz(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,v=s-i,c=v*l-f*u;if(!(c*c<Fr))return c=(f*(t-i)-v*(r-n))/c,[r+c*l,t+c*u]}function lf(r,t,e,a,n,i,o){var s=r-e,l=t-a,u=(o?i:-i)/Wl(s*s+l*l),f=u*l,v=-u*s,c=r+f,h=t+v,d=e+f,p=a+v,g=(c+d)/2,y=(h+p)/2,m=d-c,_=p-h,S=m*m+_*_,x=n-i,b=c*p-d*h,w=(_<0?-1:1)*Wl(Dl(0,x*x*S-b*b)),T=(b*_-m*w)/S,C=(-b*m-_*w)/S,M=(b*_+m*w)/S,D=(-b*m+_*w)/S,I=T-g,L=C-y,P=M-g,k=D-y;return I*I+L*L>P*P+k*k&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-v,x1:T*(n/x-1),y1:C*(n/x-1)}}function bz(r){var t;if(U(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function wz(r,t){var e,a=Dl(t.r,0),n=Dl(t.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,v=t.cy,c=!!t.clockwise,h=oS(u-l),d=h>ud&&h%ud;if(d>Fr&&(h=d),!(a>Fr))r.moveTo(f,v);else if(h>ud-Fr)r.moveTo(f+a*Ro(l),v+a*ci(l)),r.arc(f,v,a,l,u,!c),n>Fr&&(r.moveTo(f+n*Ro(u),v+n*ci(u)),r.arc(f,v,n,u,l,c));else{var p=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,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,k=a*Ro(l),R=a*ci(l),O=n*Ro(u),E=n*ci(u),B=h>Fr;if(B){var G=t.cornerRadius;G&&(e=bz(G),p=e[0],g=e[1],y=e[2],m=e[3]);var F=oS(a-n)/2;if(_=oa(F,y),S=oa(F,m),x=oa(F,p),b=oa(F,g),C=w=Dl(_,S),M=T=Dl(x,b),(w>Fr||T>Fr)&&(D=a*Ro(u),I=a*ci(u),L=n*Ro(l),P=n*ci(l),h<_D)){var W=xz(k,R,L,P,D,I,O,E);if(W){var X=k-W[0],J=R-W[1],ft=D-W[0],Dt=I-W[1],zt=1/ci(Sz((X*ft+J*Dt)/(Wl(X*X+J*J)*Wl(ft*ft+Dt*Dt)))/2),ct=Wl(W[0]*W[0]+W[1]*W[1]);C=oa(w,(a-ct)/(zt+1)),M=oa(T,(n-ct)/(zt-1))}}}if(!B)r.moveTo(f+k,v+R);else if(C>Fr){var V=oa(y,C),$=oa(m,C),Z=lf(L,P,k,R,a,V,c),tt=lf(D,I,O,E,a,$,c);r.moveTo(f+Z.cx+Z.x0,v+Z.cy+Z.y0),C<w&&V===$?r.arc(f+Z.cx,v+Z.cy,C,Ve(Z.y0,Z.x0),Ve(tt.y0,tt.x0),!c):(V>0&&r.arc(f+Z.cx,v+Z.cy,V,Ve(Z.y0,Z.x0),Ve(Z.y1,Z.x1),!c),r.arc(f,v,a,Ve(Z.cy+Z.y1,Z.cx+Z.x1),Ve(tt.cy+tt.y1,tt.cx+tt.x1),!c),$>0&&r.arc(f+tt.cx,v+tt.cy,$,Ve(tt.y1,tt.x1),Ve(tt.y0,tt.x0),!c))}else r.moveTo(f+k,v+R),r.arc(f,v,a,l,u,!c);if(!(n>Fr)||!B)r.lineTo(f+O,v+E);else if(M>Fr){var V=oa(p,M),$=oa(g,M),Z=lf(O,E,D,I,n,-$,c),tt=lf(k,R,L,P,n,-V,c);r.lineTo(f+Z.cx+Z.x0,v+Z.cy+Z.y0),M<T&&V===$?r.arc(f+Z.cx,v+Z.cy,M,Ve(Z.y0,Z.x0),Ve(tt.y0,tt.x0),!c):($>0&&r.arc(f+Z.cx,v+Z.cy,$,Ve(Z.y0,Z.x0),Ve(Z.y1,Z.x1),!c),r.arc(f,v,n,Ve(Z.cy+Z.y1,Z.cx+Z.x1),Ve(tt.cy+tt.y1,tt.cx+tt.x1),c),V>0&&r.arc(f+tt.cx,v+tt.cy,V,Ve(tt.y1,tt.x1),Ve(tt.y0,tt.x0),!c))}else r.lineTo(f+O,v+E),r.arc(f,v,n,u,l,c)}r.closePath()}}}var Tz=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),SD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Tz},t.prototype.buildPath=function(e,a){wz(e,a)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Ct);SD.prototype.type="sector";const Qe=SD;var Cz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),xD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Cz},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.PI*2;e.moveTo(n+a.r,i),e.arc(n,i,a.r,0,o,!1),e.moveTo(n+a.r0,i),e.arc(n,i,a.r0,0,o,!0)},t}(Ct);xD.prototype.type="ring";const th=xD;function Az(r,t,e,a){var n=[],i=[],o=[],s=[],l,u,f,v;if(a){f=[1/0,1/0],v=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)Tn(f,f,r[c]),Cn(v,v,r[c]);Tn(f,f,a[0]),Cn(v,v,a[1])}for(var c=0,h=r.length;c<h;c++){var d=r[c];if(e)l=r[c?c-1:h-1],u=r[(c+1)%h];else if(c===0||c===h-1){n.push($a(r[c]));continue}else l=r[c-1],u=r[c+1];Ni(i,u,l),lv(i,i,t);var p=og(d,l),g=og(d,u),y=p+g;y!==0&&(p/=y,g/=y),lv(o,i,-p),lv(s,i,g);var m=X_([],d,o),_=X_([],d,s);a&&(Cn(m,m,f),Tn(m,m,v),Cn(_,_,f),Tn(_,_,v)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function bD(r,t,e){var a=t.smooth,n=t.points;if(n&&n.length>=2){if(a){var i=Az(n,a,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;s<v;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var Mz=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),wD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Mz},t.prototype.buildPath=function(e,a){bD(e,a,!0)},t}(Ct);wD.prototype.type="polygon";const tr=wD;var Dz=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),TD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Dz},t.prototype.buildPath=function(e,a){bD(e,a,!1)},t}(Ct);TD.prototype.type="polyline";const Ue=TD;var Lz={},Iz=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),CD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Iz},t.prototype.buildPath=function(e,a){var n,i,o,s;if(this.subPixelOptimize){var l=jc(Lz,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;u!==0&&(e.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var a=this.shape;return[a.x1*(1-e)+a.x2*e,a.y1*(1-e)+a.y2*e]},t}(Ct);CD.prototype.type="line";const me=CD;var er=[],Pz=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function sS(r,t,e){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(e?s1:we)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?s1:we)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?dg:Le)(r.x1,r.cpx1,r.x2,t),(e?dg:Le)(r.y1,r.cpy1,r.y2,t)]}var AD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pz},t.prototype.buildPath=function(e,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=a.cpx2,v=a.cpy2,c=a.percent;c!==0&&(e.moveTo(n,i),f==null||v==null?(c<1&&(tu(n,l,o,c,er),l=er[1],o=er[2],tu(i,u,s,c,er),u=er[1],s=er[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(Vn(n,l,f,o,c,er),l=er[1],f=er[2],o=er[3],Vn(i,u,v,s,c,er),u=er[1],v=er[2],s=er[3]),e.bezierCurveTo(l,u,f,v,o,s)))},t.prototype.pointAt=function(e){return sS(this.shape,e,!1)},t.prototype.tangentAt=function(e){var a=sS(this.shape,e,!0);return Ps(a,a)},t}(Ct);AD.prototype.type="bezier-curve";const eh=AD;var kz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),MD=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kz},t.prototype.buildPath=function(e,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);e.moveTo(f*o+n,v*o+i),e.arc(n,i,o,s,l,!u)},t}(Ct);MD.prototype.type="arc";const Fm=MD;var Rz=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,a=this.shapeChanged(),n=0;n<e.length;n++)a=a||e[n].shapeChanged();a&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(a[0],a[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(e,n[i].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],a=0;a<e.length;a++)e[a].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ct.prototype.getBoundingRect.call(this)},t}(Ct);const rh=Rz;var Ez=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}();const DD=Ez;var Oz=function(r){N(t,r);function t(e,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(DD);const Os=Oz;var Nz=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,i)||this;return s.x=e??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return t}(DD);const LD=Nz;var fd=Math.min,Bz=Math.max,uf=Math.abs,hi=[0,0],di=[0,0],Me=QA(),ff=Me.minTv,vf=Me.maxTv,zz=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new st;for(var a=0;a<2;a++)this._axes[a]=new st;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var a=this._corners,n=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),e)for(var u=0;u<4;u++)a[u].transform(e);st.sub(n[0],a[1],a[0]),st.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(t,e,a){var n=!0,i=!e;return e&&st.set(e,0,0),Me.reset(a,!i),!this._intersectCheckOneSide(this,t,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(n=!1,i)||!i&&!Me.negativeSize&&st.copy(e,n?Me.useDir?Me.dirMinTv:ff:vf),n},r.prototype._intersectCheckOneSide=function(t,e,a,n){for(var i=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,hi),t._getProjMinMaxOnAxis(o,e._corners,di),Me.negativeSize||hi[1]<di[0]||hi[0]>di[1]){if(i=!1,Me.negativeSize||a)return i;var l=uf(di[0]-hi[1]),u=uf(hi[0]-di[1]);fd(l,u)>vf.len()&&(l<u?st.scale(vf,s,-l*n):st.scale(vf,s,u*n))}else if(!a){var l=uf(di[0]-hi[1]),u=uf(hi[0]-di[1]);(Me.useDir||fd(l,u)<ff.len())&&((l<u||!Me.bidirectional)&&(st.scale(ff,s,l*n),Me.useDir&&Me.calcDirMTV()),(l>=u||!Me.bidirectional)&&(st.scale(ff,s,-u*n),Me.useDir&&Me.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(t,e,a){for(var n=this._axes[t],i=this._origin,o=e[0].dot(n)+i[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+i[t];s=fd(f,s),l=Bz(f,l)}a[0]=s+Me.touchThreshold,a[1]=l-Me.touchThreshold,Me.negativeSize=a[1]<a[0]},r}();const ID=zz;var Vz=[],Gz=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,a){e.call(a,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,a){a?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,a){a=a||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],a)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var a=this._cursor;a<this._displayables.length;a++)e&&e(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)e&&e(this._temporaryDisplayables[a])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var a=this._displayables[e];a.parent=this,a.update(),a.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var a=this._temporaryDisplayables[e];a.parent=this,a.update(),a.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new vt(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Vz)),e.union(i)}this._rect=e}return this._rect},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,a))return!0}return!1},t}(Nr);const Fz=Gz;var PD=wt();function Ns(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,v=void 0;a?(u=rt(a.duration,200),f=rt(a.easing,"cubicOut"),v=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),v=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(v=i.delay)),at(v)&&(v=v(e,n)),at(u)&&(u=u(e));var c={duration:u||0,delay:v,easing:f};return c}else return null}function Hm(r,t,e,a,n,i,o){var s=!1,l;at(n)?(o=i,i=n,n=null):ut(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Ns(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var v=f.duration,c=f.delay,h=f.easing,d={duration:v,delay:c||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function kt(r,t,e,a,n,i){Hm("update",r,t,e,a,n,i)}function Zt(r,t,e,a,n,i){Hm("enter",r,t,e,a,n,i)}function hs(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Gn(r,t,e,a,n,i){hs(r)||Hm("leave",r,t,e,a,n,i)}function lS(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),Gn(r,{style:{opacity:0}},t,e,a)}function Ua(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||lS(n,t,e,a)}):lS(r,t,e,a)}function Br(r){PD(r).oldStyle=r.style}function Hz(r){return PD(r).oldStyle}var Fg={},dt=["x","y"],ce=["width","height"];function Wz(r){return Ct.extend(r)}var $z=gz;function Uz(r,t){return $z(r,t)}function Qr(r,t){Fg[r]=t}function Yv(r){if(Fg.hasOwnProperty(r))return Fg[r]}function lu(r,t,e,a){var n=gD(r,t);return e&&(a==="center"&&(e=RD(e,n.getBoundingRect())),ED(n,e)),n}function kD(r,t,e){var a=new Be({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(RD(t,i))}}});return a}function RD(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Pr=yz;function ED(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function _s(r,t){return jc(r,r,{lineWidth:t}),r}function Yz(r,t){return JM(r,r,t),r}var yv=pr;function Ki(r,t){for(var e=Hc([]);r&&r!==t;)xa(e,r.getLocalTransform(),e),r=r.parent;return e}function Zr(r,t,e){return t&&!We(t)&&(t=Ha.getLocalTransform(t)),e&&(t=Kr([],t)),se([],r,t)}function ah(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:pa(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:pa(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Zr(i,t,e),pa(i[0])>pa(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function uS(r){return!r.isGroup}function Zz(r){return r.shape!=null}function ku(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){uS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Zz(o)&&(s.shape=nt(o.shape)),s}var i=a(r);t.traverse(function(o){if(uS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),kt(o,l,e,ht(o).dataIndex)}}})}function OD(r,t){return Y(r,function(e){var a=e[0];a=ie(a,t.x),a=yr(a,t.x+t.width);var n=e[1];return n=ie(n,t.y),n=yr(n,t.y+t.height),[a,n]})}function Xz(r,t){var e=ie(r.x,t.x),a=yr(r.x+r.width,t.x+t.width),n=ie(r.y,t.y),i=yr(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Ru(r,t,e){var a=H({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),lt(n,e),new Be(a)):lu(r.replace("path://",""),a,e,"center")}function Ll(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(ND(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function ND(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,v=s-i,c=vd(f,v,l,u);if(qz(c))return!1;var h=r-n,d=t-i,p=vd(h,d,l,u)/c;if(p<0||p>1)return!1;var g=vd(h,d,f,v)/c;return!(g<0||g>1)}function vd(r,t,e,a){return r*a-e*t}function qz(r){return r<=1e-6&&r>=-1e-6}function io(r,t,e,a,n){return t==null||(Lt(t)?jt[0]=jt[1]=jt[2]=jt[3]=t:(jt[0]=t[0],jt[1]=t[1],jt[2]=t[2],jt[3]=t[3]),a&&(jt[0]=ie(0,jt[0]),jt[1]=ie(0,jt[1]),jt[2]=ie(0,jt[2]),jt[3]=ie(0,jt[3])),e&&(jt[0]=-jt[0],jt[1]=-jt[1],jt[2]=-jt[2],jt[3]=-jt[3]),fS(r,jt,"x","width",3,1,n&&n[0]||0),fS(r,jt,"y","height",0,2,n&&n[1]||0)),r}var jt=[0,0,0,0];function fS(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=ie(0,yr(o,l)),r[a]<o?(r[a]=o,r[e]+=t[n]>=0?-t[n]:t[i]>=0?l+t[i]:pa(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function on(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=K(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Mt(l),function(f){Q(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ht(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:lt({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Hg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Kn(r,t){if(r)if(U(r))for(var e=0;e<r.length;e++)Hg(r[e],t);else Hg(r,t)}function Wm(r){return!r||pa(r[1])<cf&&pa(r[2])<cf||pa(r[0])<cf&&pa(r[3])<cf}var cf=1e-5;function uu(r,t){return r?vt.copy(r,t):t.clone()}function $m(r,t){return t?Wc(r||Ie(),t):void 0}function oo(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function BD(r){var t=-1/0,e=1/0;Hg(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});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>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function nh(r,t,e){zD(r,t,e,-1/0)}function zD(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=ie(zD(s[l],t,e,a),a);else r.z=t,r.zlevel=e,a=ie(r.z2||0,a);if(n&&(n.z=t,n.zlevel=e,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}Qr("circle",qn);Qr("ellipse",Gm);Qr("sector",Qe);Qr("ring",th);Qr("polygon",tr);Qr("polyline",Ue);Qr("rect",bt);Qr("line",me);Qr("bezierCurve",eh);Qr("arc",Fm);const ho=Object.freeze(Object.defineProperty({__proto__:null,Arc:Fm,BezierCurve:eh,BoundingRect:vt,Circle:qn,CompoundPath:rh,Ellipse:Gm,Group:it,Image:Be,IncrementalDisplayable:Fz,Line:me,LinearGradient:Os,OrientedBoundingRect:ID,Path:Ct,Point:st,Polygon:tr,Polyline:Ue,RadialGradient:LD,Rect:bt,Ring:th,Sector:Qe,Text:Pt,WH:ce,XY:dt,applyTransform:Zr,calcZ2Range:BD,clipPointsByRect:OD,clipRectByRect:Xz,createIcon:Ru,ensureCopyRect:uu,ensureCopyTransform:$m,expandOrShrinkRect:io,extendPath:Uz,extendShape:Wz,getShapeClass:Yv,getTransform:Ki,groupTransition:ku,initProps:Zt,isBoundingRectAxisAligned:Wm,isElementRemoved:hs,lineLineIntersect:ND,linePolygonIntersect:Ll,makeImage:kD,makePath:lu,mergePath:Pr,registerShape:Qr,removeElement:Gn,removeElementWithFadeOut:Ua,resizePath:ED,retrieveZInfo:oo,setTooltipConfig:on,subPixelOptimize:yv,subPixelOptimizeLine:_s,subPixelOptimizeRect:Yz,transformDirection:ah,traverseElements:Kn,traverseUpdateZ:nh,updateProps:kt},Symbol.toStringTag,{value:"Module"}));var ih={};function VD(r,t){for(var e=0;e<Je.length;e++){var a=Je[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Wg(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=at(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<Je.length;u++){var f=Je[u],v=t[f];l[f]=rt(a?a.getFormattedLabel(n,f,null,i,v&&v.get("formatter")):null,s)}return l}function Ce(r,t,e,a){e=e||ih;for(var n=r instanceof Pt,i=!1,o=0;o<ou.length;o++){var s=t[ou[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Pt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Wg(e,t),f=t.normal,v=!!f.getShallow("show"),c=$t(f,a&&a.normal,e,!1,!n);c.text=u.normal,n||r.setTextConfig(Zv(f,e,!1));for(var o=0;o<Je.length;o++){var h=Je[o],s=t[h];if(s){var d=l.ensureState(h),p=!!rt(s.getShallow("show"),v);if(p!==v&&(d.ignore=!p),d.style=$t(s,a&&a[h],e,!0,!n),d.style.text=u[h],!n){var g=r.ensureState(h);g.textConfig=Zv(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!v,l.useStyle(c),l.dirty(),e.enableTextSetter&&(Bs(l).setLabelText=function(y){var m=Wg(e,t,y);VD(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Se(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<Je.length;a++){var n=Je[a];e[n]=r.getModel([n,t])}return e}function $t(r,t,e,a,n){var i={};return Kz(i,r,e,a,n),t&&H(i,t),i}function Zv(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=rt(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(a.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(a.layoutRect=t.layoutRect),a}function Kz(r,t,e,a,n){e=e||ih;var i=t.ecModel,o=i&&i.option.textStyle,s=jz(t),l;if(s){l={};var u="richInheritPlainLabel",f=rt(t.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var c=t.getModel(["rich",v]);dS(l[v]={},c,o,t,f,e,a,n,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=t.get("minMargin");if(g!=null)g=Lt(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=os.minMargin;else{var y=t.get("textMargin");y!=null&&(p.margin=Gc(y),p.__marginType=os.textMargin)}dS(r,t,o,null,null,e,a,n,!0,!1)}function jz(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||ih).rich;if(e){t=t||{};for(var a=Mt(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var vS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],cS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],hS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function dS(r,t,e,a,n,i,o,s,l,u){e=!o&&e||ih;var f=i&&i.inheritColor,v=t.getShallow("color"),c=t.getShallow("textBorderColor"),h=rt(t.getShallow("opacity"),e.opacity);(v==="inherit"||v==="auto")&&(f?v=f:v=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(v=v||e.color,c=c||e.textBorderColor),v!=null&&(r.fill=v),c!=null&&(r.stroke=c);var d=rt(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var p=rt(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var g=rt(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<vS.length;y++){var m=vS[y],_=n!==!1&&a?gr(t.getShallow(m),a.getShallow(m),e[m]):rt(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var y=0;y<cS.length;y++){var m=cS[y],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<hS.length;y++){var m=hS[y],_=t.getShallow(m);_!=null&&(r[m]=_)}var x=t.getShallow("borderType");x!=null&&(r.borderDash=x),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Um(r,t){var e=t&&t.getModel("textStyle");return Rr([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Bs=wt();function GD(r,t,e,a){if(r){var n=Bs(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function FD(r,t,e,a,n){var i=Bs(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=rt(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var v=FM(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:v;var c=Wg({labelDataIndex:t,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);VD(r,c)}r.percent=0,(i.prevValue==null?Zt:kt)(r,{percent:1},a,t,null,u)}var os={minMargin:1,textMargin:2},Jz=["textStyle","color"],cd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],hd=new Pt,Qz=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Jz):null)},r.prototype.getFont=function(){return Um({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<cd.length;a++)e[cd[a]]=this.getShallow(cd[a]);return hd.useStyle(e),hd.update(),hd.getBoundingRect()},r}();const tV=Qz;var HD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],eV=ao(HD),rV=function(){function r(){}return r.prototype.getLineStyle=function(t){return eV(this,t)},r}(),WD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],aV=ao(WD),nV=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return aV(this,t,e)},r}(),po=function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){mt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(nt(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!Et.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r}();Im(po);eB(po);pe(po,rV);pe(po,nV);pe(po,oB);pe(po,tV);const Rt=po;var iV=Math.round(Math.random()*10);function zs(r){return[r||"",iV++].join("_")}function oV(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=ya(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=ya(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function sV(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,v=u.noEntryList,c={};for(A(i,function(m){c[m]=!0});v.length;){var h=v.pop(),d=f[h],p=!!c[h];p&&(s.call(l,h,d.originalDeps.slice()),delete c[h]),A(d.successor,p?y:g)}A(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&v.push(m)}function y(m){c[m]=!0,g(m)}};function e(i){var o={},s=[];return A(i,function(l){var u=a(o,l),f=u.originalDeps=t(l),v=n(f,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),A(v,function(c){yt(u.predecessor,c)<0&&u.predecessor.push(c);var h=a(o,c);yt(h.successor,c)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return A(i,function(l){yt(o,l)>=0&&s.push(l)}),s}}function jn(r,t){return mt(mt({},r,!0),t,!0)}const lV={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:". "}}}},uV={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var Xv="ZH",Ym="EN",ds=Ym,mv={},Zm={},$D=Et.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ds).toUpperCase();return r.indexOf(Xv)>-1?Xv:ds}():ds;function UD(r,t){r=r.toUpperCase(),Zm[r]=new Rt(t),mv[r]=t}function fV(r){if(K(r)){var t=mv[r.toUpperCase()]||{};return r===Xv||r===Ym?nt(t):mt(nt(t),nt(mv[ds]),!1)}else return mt(nt(r),nt(mv[ds]),!1)}function $g(r){return Zm[r]}function vV(){return Zm[ds]}UD(Ym,lV);UD(Xv,uV);var Ug=null;function cV(r){Ug||(Ug=r)}function ve(){return Ug}var Xm=1e3,qm=Xm*60,$l=qm*60,kr=$l*24,pS=kr*365,hV={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})/},_v={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},dV="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",hf="{yyyy}-{MM}-{dd}",gS={year:"{yyyy}",month:"{yyyy}-{MM}",day:hf,hour:hf+" "+_v.hour,minute:hf+" "+_v.minute,second:hf+" "+_v.second,millisecond:dV},fr=["year","month","day","hour","minute","second","millisecond"],pV=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function gV(r){return!K(r)&&!at(r)?yV(r):r}function yV(r){r=r||{};var t={},e=!0;return A(fr,function(a){e&&(e=r[a]==null)}),A(fr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=fr[s],u=ut(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):K(u)?(o=u,f=[o]):(o==null?o=_v[a]:hV[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function vn(r,t){return r+="","0000".substr(0,t-r.length)+r}function Ul(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 mV(r){return r===Ul(r)}function _V(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function oh(r,t,e,a){var n=co(r),i=n[YD(e)](),o=n[Km(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[jm(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Jm(e)](),v=(f-1)%12+1,c=n[Qm(e)](),h=n[t0(e)](),d=n[e0(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof Rt?a:$g(a||$D)||vV(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),x=m.get("dayOfWeek"),b=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,vn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,vn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,vn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,vn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,vn(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,vn(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,vn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,vn(d,3)).replace(/{S}/g,d+"")}function SV(r,t,e,a,n){var i=null;if(K(e))i=e;else if(at(e)){var o={time:r.time,level:r.time.level},s=ve();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=ss(r.value,n);i=e[f][f][0]}}return oh(new Date(r.value),i,n,a)}function ss(r,t){var e=co(r),a=e[Km(t)]()+1,n=e[jm(t)](),i=e[Jm(t)](),o=e[Qm(t)](),s=e[t0(t)](),l=e[e0(t)](),u=l===0,f=u&&s===0,v=f&&o===0,c=v&&i===0,h=c&&n===1,d=h&&a===1;return d?"year":h?"month":c?"day":v?"hour":f?"minute":u?"second":"millisecond"}function Yg(r,t,e){switch(t){case"year":r[ZD(e)](0);case"month":r[XD(e)](1);case"day":r[qD(e)](0);case"hour":r[KD(e)](0);case"minute":r[jD(e)](0);case"second":r[JD(e)](0)}return r}function YD(r){return r?"getUTCFullYear":"getFullYear"}function Km(r){return r?"getUTCMonth":"getMonth"}function jm(r){return r?"getUTCDate":"getDate"}function Jm(r){return r?"getUTCHours":"getHours"}function Qm(r){return r?"getUTCMinutes":"getMinutes"}function t0(r){return r?"getUTCSeconds":"getSeconds"}function e0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xV(r){return r?"setUTCFullYear":"setFullYear"}function ZD(r){return r?"setUTCMonth":"setMonth"}function XD(r){return r?"setUTCDate":"setDate"}function qD(r){return r?"setUTCHours":"setHours"}function KD(r){return r?"setUTCMinutes":"setMinutes"}function jD(r){return r?"setUTCSeconds":"setSeconds"}function JD(r){return r?"setUTCMilliseconds":"setMilliseconds"}function QD(r){if(!kM(r))return K(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function tL(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Eu=Gc;function Zg(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Rr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?co(r):r;if(isNaN(+l)){if(s)return"-"}else return oh(l,a,e)}if(t==="ordinal")return ag(r)?n(r):Lt(r)&&i(r)?r+"":"-";var u=ja(r);return i(u)?QD(u):ag(r)?n(r):typeof r=="boolean"?r+"":"-"}var yS=["a","b","c","d","e","f","g"],dd=function(r,t){return"{"+r+(t??"")+"}"};function eL(r,t,e){U(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=yS[i];r=r.replace(dd(o),dd(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(dd(yS[l],s),e?Fe(u):u)}return r}function bV(r,t,e){return A(t,function(a,n){r=r.replace("{"+n+"}",e?Fe(a):a)}),r}function wV(r,t){var e=K(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Fe(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Fe(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function so(r,t){return t=t||"transparent",K(r)?r:ut(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function qv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sv={},pd={},TV=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(Sv),this._normalMasterList=a(pd);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){A(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){Sv[t]=e;return}pd[t]=e},r.get=function(t){return pd[t]||Sv[t]},r}();function CV(r){return!!Sv[r]}var Xg={coord:1,coord2:2};function AV(r){rL.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var rL=et();function MV(r){var t=r.getShallow("coord",!0),e=Xg.coord;if(t==null){var a=rL.get(r.type);a&&a.getCoord2&&(e=Xg.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var ha={none:0,dataCoordSys:1,boxCoordSys:2};function aL(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=ha.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=ha.dataCoordSys,i||(n=ha.none)):a==="box"&&(n=ha.boxCoordSys,!i&&!CV(e)&&(n=ha.none))}return{coordSysType:e,kind:n}}function Ou(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=aL(t),o=i.kind,s=i.coordSysType;if(n&&o!==ha.dataCoordSys&&(o=ha.dataCoordSys,s=e),o===ha.none||s!==e)return!1;var l=a(e,t);return l?(o===ha.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var nL=function(r,t){var e=t.getReferringComponents(r,ee).models[0];return e&&e.coordinateSystem};const Nu=TV;var xv=A,iL=["left","right","top","bottom","width","height"],Vi=[["width","left","right"],["height","top","bottom"]];function r0(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),v=t.childAt(u+1),c=v&&v.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+e:o=d+e)})}var ji=r0;gt(r0,"vertical");gt(r0,"horizontal");function oL(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function DV(r,t){var e=xe(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Il.point)i=e.refPoint,n=qt(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=qt(a,e.refContainer),i=e.boxCoordFrom===Xg.coord2?e.refPoint:[q(s[0],n.width)+n.x,q(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function sL(r,t){var e=DV(r,t),a=e.viewRect,n=e.center,i=r.get("radius");U(i)||(i=[0,i]);var o=q(a.width,t.getWidth()),s=q(a.height,t.getHeight()),l=Math.min(o,s),u=q(i[0],l/2),f=q(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function qt(r,t,e){e=Eu(e||0);var a=t.width,n=t.height,i=q(r.left,a),o=q(r.top,n),s=q(r.right,a),l=q(r.bottom,n),u=q(r.width,a),f=q(r.height,n),v=e[2]+e[0],c=e[1]+e[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-c-i),isNaN(f)&&(f=n-l-v-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>a/n?u=a*.8:f=n*.8),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-e[3];break;case"right":i=a-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-c-i-(s||0)),isNaN(f)&&(f=n-v-o-(l||0));var d=new vt((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}function lL(r,t,e){var a=r.getShallow("preserveAspect",!0);if(!a)return t;var n=t.width/t.height;if(Math.abs(Math.atan(e)-Math.atan(n))<1e-9)return t;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:t.width,height:t.height},l=a==="cover";return n>e&&!l||n<e&&l?(s.width=t.height*e,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=t.width/e,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),qt(s,t)}var Il={rect:1,point:2};function xe(r,t,e){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=MV(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Il.rect,s=f;var v=o.dataToLayout(u);a=v.contentRect||v.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Il.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=Il.rect),i===Il.rect&&(a||(a={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function sh(r,t,e,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new vt(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var v=qt(lt({width:u.width,height:u.height},t),e,a),c=o?v.x-u.x:0,h=s?v.y-u.y:0;return l==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function LV(r,t){return r[Vi[t][0]]!=null||r[Vi[t][1]]!=null&&r[Vi[t][2]]!=null}function fu(r){var t=r.layoutMode||r.constructor.layoutMode;return ut(t)?t:t?{type:t}:null}function La(r,t,e){var a=e&&e.ignoreSize;!U(a)&&(a=[a,a]);var n=o(Vi[0],0),i=o(Vi[1],1);l(Vi[0],r,n),l(Vi[1],r,i);function o(u,f){var v={},c=0,h={},d=0,p=2;if(xv(u,function(m){h[m]=r[m]}),xv(u,function(m){Q(t,m)&&(v[m]=h[m]=t[m]),s(v,m)&&c++,s(h,m)&&d++}),a[f])return s(t,u[1])?h[u[2]]=null:s(t,u[2])&&(h[u[1]]=null),h;if(d===p||!c)return h;if(c>=p)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!Q(v,y)&&Q(r,y)){v[y]=r[y];break}}return v}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,v){xv(u,function(c){f[c]=v[c]})}}function go(r){return uL({},r)}function uL(r,t){return t&&r&&xv(iL,function(e){Q(t,e)&&(r[e]=t[e])}),r}var IV=wt(),Vs=function(r){N(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=zs("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=fu(this),i=n?go(e):{},o=a.getTheme();mt(e,o.get(this.mainType)),mt(e,this.getDefaultOption()),n&&La(e,i,n)},t.prototype.mergeOption=function(e,a){mt(this.option,e,!0);var n=fu(this);n&&La(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!JN(e))return e.defaultOption;var a=IV(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=mt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return Rs(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return oL(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Rt);WM(Vs,Rt);Yc(Vs);oV(Vs);sV(Vs,PV);function PV(r){var t=[];return A(Vs.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Y(t,function(e){return ya(e).main}),r!=="dataset"&&yt(t,"dataset")<=0&&t.unshift("dataset"),t}const It=Vs;var Gi={color:{},darkColor:{},size:{}},ae=Gi.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)"};H(ae,{primary:ae.neutral80,secondary:ae.neutral70,tertiary:ae.neutral60,quaternary:ae.neutral50,disabled:ae.neutral20,border:ae.neutral30,borderTint:ae.neutral20,borderShade:ae.neutral40,background:ae.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ae.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ae.neutral70,axisLineTint:ae.neutral40,axisTick:ae.neutral70,axisTickMinor:ae.neutral60,axisLabel:ae.neutral70,axisSplitLine:ae.neutral15,axisMinorSplitLine:ae.neutral05});for(var pi in ae)if(ae.hasOwnProperty(pi)){var mS=ae[pi];pi==="theme"?Gi.darkColor.theme=ae.theme.slice():pi==="highlight"?Gi.darkColor.highlight="rgba(255,231,130,0.4)":pi.indexOf("accent")===0?Gi.darkColor[pi]=En(mS,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Gi.darkColor[pi]=En(mS,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Gi.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const z=Gi;var fL="";typeof navigator<"u"&&(fL=navigator.platform||"");var Eo="rgba(0, 0, 0, 0.2)",vL=z.color.theme[0],kV=En(vL,null,null,.9);const RV={darkMode:"auto",colorBy:"series",color:z.color.theme,gradientColor:[kV,vL],aria:{decal:{decals:[{color:Eo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Eo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Eo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Eo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Eo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Eo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fL.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 cL=et(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),mr="original",Pe="arrayRows",_r="objectRows",ta="keyedColumns",Nn="typedArray",hL="unknown",Xr="column",yo="row",Re={Must:1,Might:2,Not:3},dL=wt();function EV(r){dL(r).datasetMap=et()}function pL(r,t,e){var a={},n=n0(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=dL(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,v;r=r.slice(),A(r,function(p,g){var y=ut(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,v=d(y)),a[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;h(a[y],_,m),h(o,_,m),c.valueWayDim+=m}else if(f===g)h(a[y],0,m),h(i,0,m);else{var _=c.categoryWayDim;h(a[y],_,m),h(o,_,m),c.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function a0(r,t,e){var a={},n=n0(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===_r||i===ta)&&A(o,function(f,v){(ut(f)?f.name:f)==="name"&&(s=v)});var l=function(){for(var f={},v={},c=[],h=0,d=Math.min(5,e);h<d;h++){var p=yL(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);c.push(p);var g=p===Re.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&c[f.n]===Re.Not)&&(f.n=h),y(f)&&c[f.n]!==Re.Not)return f;g||(p===Re.Might&&v.v==null&&h!==s&&(v.v=h),(v.n==null||v.n===v.v)&&(v.n=h))}function y(m){return m.v!=null&&m.n!=null}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 n0(r){var t=r.get("data",!0);if(!t)return Rs(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},ee).models[0]}function OV(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Rs(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},ee).models}function gL(r,t){return yL(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function yL(r,t,e,a,n,i){var o,s=5;if(or(r))return Re.Not;var l,u;if(a){var f=a[i];ut(f)?(l=f.name,u=f.type):K(f)&&(l=f)}if(u!=null)return u==="ordinal"?Re.Must:Re.Not;if(t===Pe){var v=r;if(e===yo){for(var c=v[i],h=0;h<(c||[]).length&&h<s;h++)if((o=S(c[n+h]))!=null)return o}else for(var h=0;h<v.length&&h<s;h++){var d=v[n+h];if(d&&(o=S(d[i]))!=null)return o}}else if(t===_r){var p=r;if(!l)return Re.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===ta){var y=r;if(!l)return Re.Not;var c=y[l];if(!c||or(c))return Re.Not;for(var h=0;h<c.length&&h<s;h++)if((o=S(c[h]))!=null)return o}else if(t===mr)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=ks(g);if(!U(_))return Re.Not;if((o=S(_[i]))!=null)return o}function S(x){var b=K(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return b?Re.Might:Re.Not;if(b&&x!=="-")return Re.Must}return Re.Not}var qg=et();function NV(r,t){$e(qg.get(r)==null&&t),qg.set(r,t)}function BV(r,t,e){var a=qg.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var _S=wt(),zV=wt(),i0=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=Ht(this.get("color",!0)),i=this.get("colorLayer",!0);return mL(this,_S,n,i,t,e,a)},r.prototype.clearColorPalette=function(){GV(this,_S)},r}();function Kg(r,t,e,a){var n=Ht(r.get(["aria","decal","decals"]));return mL(r,zV,n,null,t,e,a)}function VV(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function mL(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:VV(a,o);if(f=f||e,!(!f||!f.length)){var v=f[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%f.length,v}}function GV(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var df,Qs,SS,xS="\0_ec_inner",FV=1,_L=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Rt(i),this._locale=new Rt(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=TS(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,TS(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?SS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=et(),u=a&&a.replaceMergeMainTypeMap;EV(this),A(e,function(v,c){v!=null&&(It.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?nt(v):mt(n[c],v,!0))}),u&&u.each(function(v,c){It.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),It.topologicalTravel(s,It.getAllClassMainTypes(),f,this);function f(v){var c=BV(this,v,Ht(e[v])),h=i.get(v),d=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",p=zM(h,c,d);WN(p,v,It),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,_;A(p,function(S,x){var b=S.existing,w=S.newOption;if(!w)b&&(b.mergeOption({},this),b.optionUpdated({},!1));else{var T=v==="series",C=It.getClass(v,S.keyInfo.subType,!T);if(!C)return;if(v==="tooltip"){if(_)return;_=!0}if(b&&b.constructor===C)b.name=S.keyInfo.name,b.mergeOption(w,this),b.optionUpdated(w,!1);else{var M=H({componentIndex:x},S.keyInfo);b=new C(w,this,this,M),H(b,M),S.brandNew&&(b.__requireNewView=!0),b.init(w,this,this),b.optionUpdated(null,!0)}}b?(g.push(b.option),y.push(b),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&df(this)}this._seriesIndices||df(this)},t.prototype.getOption=function(){var e=nt(this.option);return A(e,function(a,n){if(It.hasClass(n)){for(var i=Ht(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!nu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[xS],e},t.prototype.setTheme=function(e){this._theme=new Rt(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(Ht(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=bS("id",i,s):o!=null?l=bS("name",o,s):l=Bt(s,function(u){return!!u}),wS(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):Bt(this._componentsMap.get(n),function(u){return!!u});return l(wS(o,e));function s(u){var f=n+"Index",v=n+"Id",c=n+"Name";return u&&(u[f]!=null||u[v]!=null||u[c]!=null)?{mainType:n,index:u[f],id:u[v],name:u[c]}:null}function l(u){return e.filter?Bt(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(at(e)){var o=a,s=e;i.each(function(v,c){for(var h=0;v&&h<v.length;h++){var d=v[h];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=K(e)?i.get(e):ut(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=ye(e,null);return Bt(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Bt(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Bt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){Qs(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){A(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){Qs(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return A(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return Qs(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){Qs(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=et(n)},t.prototype.restoreData=function(e){df(this);var a=this._componentsMap,n=[];a.each(function(i,o){It.hasClass(o)&&n.push(o)}),It.topologicalTravel(n,It.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!HV(o,e))&&o.restoreData()})})},t.internalField=function(){df=function(e){var a=e._seriesIndices=[];A(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=et(a)},Qs=function(e){},SS=function(e,a){e.option={},e.option[xS]=FV,e._componentsMap=et({series:[]}),e._componentsCount=et();var n=a.aria;ut(n)&&n.enabled==null&&(n.enabled=!0),WV(a,e._theme.option),mt(a,RV,!1),e._mergeOption(a,null)}}(),t}(Rt);function HV(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function WV(r,t){var e=r.color&&!r.colorLayer;A(t,function(a,n){n==="colorLayer"&&e||n==="color"&&r.color||It.hasClass(n)||(typeof a=="object"?r[n]=r[n]?mt(r[n],a,!1):nt(a):r[n]==null&&(r[n]=a))})}function bS(r,t,e){if(U(t)){var a=et();return A(t,function(i){if(i!=null){var o=ye(i,null);o!=null&&a.set(i,!0)}}),Bt(e,function(i){return i&&a.get(i[r])})}else{var n=ye(t,null);return Bt(e,function(i){return i&&n!=null&&i[r]===n})}}function wS(r,t){return t.hasOwnProperty("subType")?Bt(r,function(e){return e&&e.subType===t.subType}):r}function TS(r){var t=et();return r&&A(Ht(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}pe(_L,i0);const SL=_L;var $V=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],UV=function(){function r(t){A($V,function(e){this[e]=j(t[e],t)},this)}return r}();const xL=UV;var YV=/^(min|max)?(.+)$/,ZV=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(A(Ht(t.series),function(o){o&&o.data&&or(o.data)&&Pv(o.data)}),A(Ht(t.dataset),function(o){o&&o.source&&or(o.source)&&Pv(o.source)})),t=nt(t);var n=this._optionBackup,i=XV(t,e,!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(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],nt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=nt(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=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++)qV(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!jV(o,this._currentMediaIndices)&&(s=Y(o,function(f){return nt(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function XV(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||f)&&(r.options=r.media=null),i=r),f&&U(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)});function c(h){A(t,function(d){d(h,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function qV(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return A(r,function(i,o){var s=o.match(YV);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();KV(a[u],i,l)||(n=!1)}}),n}function KV(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function jV(r,t){return r.join(",")===t.join(",")}const JV=ZV;var Gr=A,vu=ut,CS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gd(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=CS.length;e<a;e++){var n=CS[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?mt(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?mt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ge(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,lt(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Pl(r){Ge(r,"itemStyle"),Ge(r,"lineStyle"),Ge(r,"areaStyle"),Ge(r,"label"),Ge(r,"labelLine"),Ge(r,"upperLabel"),Ge(r,"edgeLabel")}function ue(r,t){var e=vu(r)&&r[t],a=vu(e)&&e.textStyle;if(a)for(var n=0,i=D1.length;n<i;n++){var o=D1[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Ar(r){r&&(Pl(r),ue(r,"label"),r.emphasis&&ue(r.emphasis,"label"))}function QV(r){if(vu(r)){gd(r),Pl(r),ue(r,"label"),ue(r,"upperLabel"),ue(r,"edgeLabel"),r.emphasis&&(ue(r.emphasis,"label"),ue(r.emphasis,"upperLabel"),ue(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(gd(t),Ar(t));var e=r.markLine;e&&(gd(e),Ar(e));var a=r.markArea;a&&Ar(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!or(i))for(var o=0;o<i.length;o++)Ar(i[o]);A(r.categories,function(u){Pl(u)})}if(n&&!or(n))for(var o=0;o<n.length;o++)Ar(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ar(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)U(l[o])?(Ar(l[o][0]),Ar(l[o][1])):Ar(l[o]);r.type==="gauge"?(ue(r,"axisLabel"),ue(r,"title"),ue(r,"detail")):r.type==="treemap"?(Ge(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Pl(u)})):r.type==="tree"&&Pl(r.leaves)}}function Oa(r){return U(r)?r:r?[r]:[]}function AS(r){return(U(r)?r[0]:r)||{}}function t5(r,t){Gr(Oa(r.series),function(a){vu(a)&&QV(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Gr(e,function(a){Gr(Oa(r[a]),function(n){n&&(ue(n,"axisLabel"),ue(n.axisPointer,"label"))})}),Gr(Oa(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ue(n,"axisLabel"),ue(n&&n.axisPointer,"label")}),Gr(Oa(r.calendar),function(a){Ge(a,"itemStyle"),ue(a,"dayLabel"),ue(a,"monthLabel"),ue(a,"yearLabel")}),Gr(Oa(r.radar),function(a){ue(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),Gr(Oa(r.geo),function(a){vu(a)&&(Ar(a),Gr(Oa(a.regions),function(n){Ar(n)}))}),Gr(Oa(r.timeline),function(a){Ar(a),Ge(a,"label"),Ge(a,"itemStyle"),Ge(a,"controlStyle",!0);var n=a.data;U(n)&&A(n,function(i){ut(i)&&(Ge(i,"label"),Ge(i,"itemStyle"))})}),Gr(Oa(r.toolbox),function(a){Ge(a,"iconStyle"),Gr(a.feature,function(n){Ge(n,"iconStyle")})}),ue(AS(r.axisPointer),"label"),ue(AS(r.tooltip).axisPointer,"label")}function e5(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function r5(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];(a||i[n[s]]==null)&&(i[n[s]]=e)}function MS(r){r&&A(a5,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var a5=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n5=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],yd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function tl(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<yd.length;e++){var a=yd[e][1],n=yd[e][0];t[a]!=null&&(t[n]=t[a])}}function DS(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function LS(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function i5(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function bL(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&bL(r[e].children,t)}function wL(r,t){t5(r,t),r.series=Ht(r.series),A(r.series,function(e){if(ut(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),DS(e.label);var n=e.data;if(n&&!or(n))for(var i=0;i<n.length;i++)DS(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=e5(e,"pointer.color");o!=null&&r5(e,"itemStyle.color",o)}else if(a==="bar"){tl(e),tl(e.backgroundStyle),tl(e.emphasis);var n=e.data;if(n&&!or(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(tl(n[i]),tl(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),LS(e),bL(e.data,LS)}else a==="graph"||a==="sankey"?i5(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&lt(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),MS(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(n5,function(e){var a=r[e];a&&(U(a)||(a=[a]),A(a,function(n){MS(n)}))})}function o5(r){var t=et();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.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:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var a=e[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),A(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),s5(e)}})}function s5(r){A(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var c=o.get(t.stackedDimension,v);if(isNaN(c))return n;var h,d;s?d=o.getRawIndex(v):h=o.get(t.stackedByDimension,v);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=LN(c,m),p=m;break}}}return a[0]=c,a[1]=p,a})})}var lh=function(){function r(t){this.data=t.data||(t.sourceFormat===ta?{}:[]),this.sourceFormat=t.sourceFormat||hL,this.seriesLayoutBy=t.seriesLayoutBy||Xr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&gL(this,a)===Re.Must&&(n.type="ordinal")}}return r}();function o0(r){return r instanceof lh}function jg(r,t,e){e=e||TL(r);var a=t.seriesLayoutBy,n=u5(r,e,a,t.sourceHeader,t.dimensions),i=new lh({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:nt(t)});return i}function s0(r){return new lh({data:r,sourceFormat:or(r)?Nn:mr})}function l5(r){return new lh({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:nt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function TL(r){var t=hL;if(or(r))t=Nn;else if(U(r)){r.length===0&&(t=Pe);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(U(n)||or(n)){t=Pe;break}else if(ut(n)){t=_r;break}}}}else if(ut(r)){for(var i in r)if(Q(r,i)&&We(r[i])){t=ta;break}}return t}function u5(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:IS(n),startIndex:o,dimensionsDetectedCount:i};if(t===Pe){var s=r;a==="auto"||a==null?PS(function(u){u!=null&&u!=="-"&&(K(u)?o==null&&(o=1):o=0)},e,s,10):o=Lt(a)?a:a?1:0,!n&&o===1&&(n=[],PS(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===yo?s.length:s[0]?s[0].length:null}else if(t===_r)n||(n=f5(r));else if(t===ta)n||(n=[],A(r,function(u,f){n.push(f)}));else if(t===mr){var l=ks(r[0]);i=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:IS(n),dimensionsDetectedCount:i}}function f5(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Mt(e)}function IS(r){if(r){var t=et();return Y(r,function(e,a){e=ut(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function PS(r,t,e,a){if(t===yo)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function CL(r){var t=r.sourceFormat;return t===_r||t===ta}var gi,yi,mi,_i,kS,RS,AL=function(){function r(t,e){var a=o0(t)?t:s0(t);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===Nn&&(this._offset=0,this._dimSize=e,this._data=n),RS(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;RS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,c=l.dimensionsDefine,h=kS[l0(u,f)];if(H(o,h),u===Nn)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=ML(u,f);o.getItem=j(d,null,s,v,c);var p=DL(u,f);o.count=j(p,null,s,v,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,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],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*v+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};kS=(t={},t[Pe+"_"+Xr]={pure:!0,appendData:i},t[Pe+"_"+yo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[_r]={pure:!0,appendData:i},t[ta]={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])})}},t[mr]={appendData:i},t[Nn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),pf=function(r){U(r)||OM("series.data or dataset.source must be an array.")};gi={},gi[Pe+"_"+Xr]=pf,gi[Pe+"_"+yo]=pf,gi[_r]=pf,gi[ta]=function(r,t){for(var e=0;e<t.length;e++){var a=t[e].name;a==null&&OM("dimension name must not be null/undefined.")}},gi[mr]=pf;var ES=function(r,t,e,a){return r[a]},v5=(yi={},yi[Pe+"_"+Xr]=function(r,t,e,a){return r[a+t]},yi[Pe+"_"+yo]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},yi[_r]=ES,yi[ta]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},yi[mr]=ES,yi);function ML(r,t){var e=v5[l0(r,t)];return e}var OS=function(r,t,e){return r.length},c5=(mi={},mi[Pe+"_"+Xr]=function(r,t,e){return Math.max(0,r.length-t)},mi[Pe+"_"+yo]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},mi[_r]=OS,mi[ta]=function(r,t,e){var a=e[0].name,n=a!=null?r[a]:null;return n?n.length:0},mi[mr]=OS,mi);function DL(r,t){var e=c5[l0(r,t)];return e}var md=function(r,t,e){return r[t]},h5=(_i={},_i[Pe]=md,_i[_r]=function(r,t,e){return r[e]},_i[ta]=md,_i[mr]=function(r,t,e){var a=ks(r);return a instanceof Array?a[t]:a},_i[Nn]=md,_i);function LL(r){var t=h5[r];return t}function l0(r,t){return r===Pe?r+"_"+t:r}function Ss(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return LL(i)(a,o,s)}else{var l=a;return i===mr&&(l=ks(a)),l}}}}var d5=/\{@(.+?)\}/g,uh=function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,c=v==="series",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:e,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&U(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(at(i))return l.status=e,l.dimensionIndex=n,i(l);if(K(i)){var f=eL(i,l);return f.replace(d5,function(v,c){var h=c.length,d=c;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=Ss(s,t,d);if(o&&U(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Ss(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r}();function NS(r){var t,e;return ut(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Yl(r){return new p5(r)}var p5=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(v||h<d)){var p=this._progress;if(U(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){BS.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:BS.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),U(e)&&!e.length&&(e=null)),this._progress=e,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(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.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(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),BS=function(){var r,t,e,a,n,i={reset:function(l,u,f,v){t=l,r=u,e=f,a=v,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}}();function Bn(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!Lt(r)&&r!=null&&r!=="-"&&(r=+co(r)),r==null||r===""?NaN:Number(r))}var g5=et({number:function(r){return parseFloat(r)},time:function(r){return+co(r)},trim:function(r){return K(r)?Rr(r):r}});function IL(r){return g5.get(r)}var PL={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},y5=function(){function r(t,e){if(!Lt(e)){var a="";Ot(a)}this._opFn=PL[t],this._rvalFloat=ja(e)}return r.prototype.evaluate=function(t){return Lt(t)?this._opFn(t,this._rvalFloat):this._opFn(ja(t),this._rvalFloat)},r}(),kL=function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=Lt(t)?t:ja(t),n=Lt(e)?e:ja(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=K(t),l=K(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),m5=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ja(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var a=typeof t;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(e=ja(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function _5(r,t){return r==="eq"||r==="ne"?new m5(r==="eq",t):Q(PL,r)?new y5(r,t):null}var S5=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Bn(t,e)},r}();function x5(r,t){var e=new S5,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==Xr&&Ot(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Q(l,y)&&Ot(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=ML(n,Xr);t.__isBuiltIn&&(e.getRawDataItem=function(p){return v(a,i,s,p)},e.getRawData=j(b5,null,r)),e.cloneRawData=j(w5,null,r);var c=DL(n,Xr);e.count=j(c,null,a,i,s);var h=LL(n);e.retrieveValue=function(p,g){var y=v(a,i,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return e.getDimensionInfo=j(T5,null,s,l),e.cloneAllDimensionInfo=j(C5,null,s),e}function b5(r){var t=r.sourceFormat;if(!u0(t)){var e="";Ot(e)}return r.data}function w5(r){var t=r.sourceFormat,e=r.data;if(!u0(t)){var a="";Ot(a)}if(t===Pe){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===_r){for(var n=[],i=0,o=e.length;i<o;i++)n.push(H({},e[i]));return n}}function T5(r,t,e){if(e!=null){if(Lt(e)||!isNaN(e)&&!Q(t,e))return r[e];if(Q(t,e))return t[e]}}function C5(r){return nt(r)}var RL=et();function A5(r){r=nt(r);var t=r.type,e="";t||Ot(e);var a=t.split(":");a.length!==2&&Ot(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,RL.set(t,r)}function M5(r,t,e){var a=Ht(r),n=a.length,i="";n||Ot(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=D5(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function D5(r,t,e,a){var n="";t.length||Ot(n),ut(r)||Ot(n);var i=r.type,o=RL.get(i);o||Ot(n);var s=Y(t,function(u){return x5(u,o)}),l=Ht(o.transform({upstream:s[0],upstreamList:s,config:nt(r.config)}));return Y(l,function(u,f){var v="";ut(u)||Ot(v),u.data||Ot(v);var c=TL(u.data);u0(c)||Ot(v);var h,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Xr,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Xr,sourceHeader:0,dimensions:u.dimensions};return jg(u.data,h,null)})}function u0(r){return r===Pe||r===_r}var fh="undefined",L5=typeof Uint32Array===fh?Array:Uint32Array,I5=typeof Uint16Array===fh?Array:Uint16Array,EL=typeof Int32Array===fh?Array:Int32Array,zS=typeof Float64Array===fh?Array:Float64Array,OL={float:zS,int:EL,ordinal:Array,number:Array,time:zS},_d;function Oo(r){return r>65535?L5:I5}function No(){return[1/0,-1/0]}function P5(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function VS(r,t,e,a,n){var i=OL[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var Jg=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=et()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=_d[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],CL(n),this._dimensions=Y(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new OL[e||"float"](this._rawCount),this._rawExtent[i]=No(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=No());for(var l=i[t],u=o;u<s;u++){var f=a[u]=e.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=n[u];VS(a,u,f.type,l,!0)}for(var v=[],c=s;c<l;c++)for(var h=c-s,d=0;d<i;d++){var f=n[d],p=_d.arrayRows.call(this,t[h]||v,f.property,h,d);a[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Y(o,function(m){return m.property}),f=0;f<s;f++){var v=o[f];l[f]||(l[f]=No()),VS(i,f,v.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var c=[],h=t;h<e;h++){c=n.getItem(h,c);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(c,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Oo(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Oo(a._rawCount),o=new i(n),s=[],l=t.length,u=0,f=t[0],v=a._chunks,c=0;c<n;c++){var h=void 0,d=a.getRawIndex(c);if(l===0)h=e(c);else if(l===1){var p=v[f][d];h=e(p,c)}else{for(var g=0;g<l;g++)s[g]=v[t[g]][d];s[g]=c,h=e.apply(null,s)}h&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Mt(t),i=n.length;if(!i)return this;var o=e.count(),s=Oo(e._rawCount),l=new s(o),u=0,f=n[0],v=t[f][0],c=t[f][1],h=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var g=h[n[0]],y=0;y<a;y++){var m=g[y];(m>=v&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],S=t[n[1]][0],x=t[n[1]][1],y=0;y<a;y++){var m=g[y],b=_[y];(m>=v&&m<=c||isNaN(m))&&(b>=S&&b<=x||isNaN(b))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=h[n[0]][w];(m>=v&&m<=c||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=e.getRawIndex(y),C=0;C<i;C++){var M=n[C],m=h[M][w];(m<t[M][0]||m>t[M][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=No();for(var v=0;v<s;v++){for(var c=t.getRawIndex(v),h=0;h<o;h++)l[h]=n[e[h]][c];l[o]=v;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=u[p],m=n[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,v,c,h=new(Oo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(m+=x)}m/=g-p;var b=d,w=Math.min(d+l,o),T=d-1,C=i[u];f=-1,c=b;for(var M=-1,D=0,_=b;_<w;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){D++,M<0&&(M=S);continue}v=Math.abs((T-y)*(x-C)-(T-_)*(m-C)),v>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(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(Oo(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var v=f,c=o[this.getRawIndex(v)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,v=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(h);v<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(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),v=i._rawExtent[t]=No(),c=new(Oo(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(d+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(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=No();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),v=e[f];v<s&&(s=v),v>l&&(l=v)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&Ca(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?P5(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=nt(this._extent),t._rawExtent=nt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,a,n,i){return Bn(e[i],this._dimensions[i])}_d={arrayRows:t,objectRows:function(e,a,n,i){return Bn(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return Bn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}}(),r}(),NL=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(gf(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=or(s)?Nn:mr,i=[];var v=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=rt(v.seriesLayoutBy,c.seriesLayoutBy)||null,d=rt(v.sourceHeader,c.sourceHeader),p=rt(v.dimensions,c.dimensions),g=h!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;n=g?[jg(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[jg(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&FS(i)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),v="";n!=null&&!f&&FS(v),s.push(f),l.push(u._getVersionSign())}),a?o=M5(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[l5(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];gf(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Jg,s.initData(new AL(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(gf(t)){var e=n0(t);return e?[e.getSourceManager()]:[]}else return Y(OV(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(gf(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r}();function GS(r){var t=r.option.transform;t&&Pv(r.option.transform)}function gf(r){return r.mainType==="series"}function FS(r){throw new Error(r)}var k5="line-height:1";function BL(r){var t=r.lineHeight;return t==null?k5:"line-height:"+Fe(t+"")+"px"}function zL(r,t){var e=r.color||z.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||z.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Fe(a+"")+"px;color:"+Fe(e)+";font-weight:"+Fe(n+""),valueStyle:"font-size:"+Fe(o+"")+"px;color:"+Fe(i)+";font-weight:"+Fe(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var R5=[0,10,20,30],E5=["",`
`,`
`,`
`];function he(r,t){return t.type=r,t}function Qg(r){return r.type==="section"}function VL(r){return Qg(r)?O5:N5}function GL(r){if(Qg(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var i=GL(n);i>=t&&(t=i+ +(a&&(!i||Qg(n)&&!n.noHeader)))}),t}return 0}function O5(r,t,e,a){var n=t.noHeader,i=B5(GL(t)),o=[],s=t.blocks||[];$e(!s||U(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var f=new kL(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=t.valueFormatter,m=VL(p)(y?H(H({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):ty(a,o.join(""),n?e:i.html);if(n)return v;var c=Zg(t.header,"ordinal",r.useUTC),h=zL(a,r.renderMode).nameStyle,d=BL(a);return r.renderMode==="richText"?FL(r,c,h)+i.richText+v:ty(a,'<div style="'+h+";"+d+';">'+Fe(c)+"</div>"+v,e)}function N5(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],Y(S,function(x,b){return Zg(x,U(h)?h[b]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||z.color.secondary,n),c=i?"":Zg(l,"ordinal",u),h=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,g=!s&&i,y=zL(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":FL(r,c,m))+(o?"":G5(r,d,p,g,_)):ty(a,(s?"":v)+(i?"":z5(c,!s,m))+(o?"":V5(d,p,g,_)),e)}}function HS(r,t,e,a,n,i){if(r){var o=VL(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function B5(r){return{html:R5[r],richText:E5[r]}}function ty(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=BL(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function z5(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Fe(r)+"</span>"}function V5(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],'<span style="'+i+";"+a+'">'+Y(r,function(o){return Fe(o)}).join("&nbsp;&nbsp;")+"</span>"}function FL(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function G5(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,i)}function HL(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return so(a)}function WL(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Sd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=RM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=wV({color:e,type:t,renderMode:a,markerId:n});return K(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};U(e)?A(e,function(i){return H(a,i)}):H(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r}();function $L(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=U(s),u=HL(t,e),f,v,c,h;if(o>1||l&&!o){var d=F5(s,t,e,i,u);f=d.inlineValues,v=d.inlineValueTypes,c=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=f=Ss(n,e,i[0]),v=p.type}else h=f=l?s[0]:s;var g=Dm(t),y=g&&t.name||"",m=n.getName(e),_=a?y:m;return he("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[he("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Rr(_),value:f,valueType:v,dataIndex:e})].concat(c||[])})}function F5(r,t,e,a,n){var i=t.getData(),o=Ca(r,function(v,c,h){var d=i.getDimensionInfo(h);return v=v||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(v){f(Ss(i,e,v),v)}):A(r,f);function f(v,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(he("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var cn=wt();function yf(r,t){return r.getName(t)||r.getId(t)}var bv="__universalTransitionEnabled",vh=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Yl({count:W5,reset:$5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=cn(this).sourceManager=new NL(this);i.prepareSource();var o=this.getInitialData(e,n);$S(o,this),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,WS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=fu(this),i=n?go(e):{},o=this.subType;It.hasClass(o)&&(o+="Series"),mt(e,a.getTheme().get(this.subType)),mt(e,this.getDefaultOption()),eo(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&La(e,i,n)},t.prototype.mergeOption=function(e,a){e=mt(this.option,e,!0),this.fillDataTextStyle(e.data);var n=fu(this);n&&La(this.option,e,n);var i=cn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);$S(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,cn(this).dataBeforeProcessed=o,WS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!or(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&eo(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=ey(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return cn(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=ey(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}cn(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return et(e)},t.prototype.getSourceManager=function(){return cn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return cn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var f=[],v=1/0,c=-1,h=0;return o.each(a,function(d,p){var g=l.dataToCoord(d),y=u-g,m=Math.abs(y);m<=i&&((m<v||m===v&&y>=0&&c<0)&&(v=m,c=y,h=0),y===c&&(f[h++]=p))}),f.length=h,f},t.prototype.formatTooltip=function(e,a,n){return $L({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Et.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=i0.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=yf(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Mt(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[yf(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[bv])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ut(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var v=a[f],c=yf(e,v);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(v)}}else if(s==="single"||s===!0){var h=a[l-1],c=yf(e,h);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(i={},i[c]=e.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return It.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(It);pe(vh,uh);pe(vh,i0);WM(vh,It);function WS(r){var t=r.name;Dm(r)||(r.name=H5(r)||t)}function H5(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return A(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function W5(r){return r.model.getRawData().count()}function $5(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),U5}function U5(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function $S(r,t){A(Ql(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,gt(Y5,t))})}function Y5(r,t){var e=ey(r);return e&&e.setOutputEnd((t||this).count()),t}function ey(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const Kt=vh;var f0=function(){function r(){this.group=new it,this.uid=zs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Im(f0);Yc(f0);const Qt=f0;function Gs(){var r=wt();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var UL=wt(),Z5=Gs(),v0=function(){function r(){this.group=new it,this.uid=zs("viewChart"),this.renderTask=Yl({plan:X5,reset:q5}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&YS(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&YS(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){Kn(this.group,t)},r.markUpdateMethod=function(t,e){UL(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function US(r,t,e){r&&su(r)&&(t==="emphasis"?Ja:Qa)(r,e)}function YS(r,t,e){var a=ro(r,t),n=t&&t.highlightKey!=null?uz(t.highlightKey):null;a!=null?A(Ht(a),function(i){US(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){US(i,e,n)})}Im(v0);Yc(v0);function X5(r){return Z5(r.model)}function q5(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&UL(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),K5[l]}var K5={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Ut=v0;var Kv="\0__throttleOriginMethod",ZS="\0__throttleRate",XS="\0__throttleType";function c0(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];a=new Date().getTime(),l=this,u=h;var p=f||t,g=f||e;f=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(v,p):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 Fs(r,t,e,a){var n=r[t];if(n){var i=n[Kv]||n,o=n[XS],s=n[ZS];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=c0(i,e,a==="debounce"),n[Kv]=i,n[XS]=a,n[ZS]=e}return n}}function cu(r,t){var e=r[t];e&&e[Kv]&&(e.clear&&e.clear(),r[t]=e[Kv])}var qS=wt(),KS={itemStyle:ao(WD,!0),lineStyle:ao(HD,!0)},j5={lineStyle:"stroke",itemStyle:"fill"};function YL(r,t){var e=r.visualStyleMapper||KS[t];return e||(console.warn("Unknown style type '"+t+"'."),KS.itemStyle)}function ZL(r,t){var e=r.visualDrawType||j5[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var J5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=YL(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=ZL(r,a),u=o[l],f=at(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||at(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||at(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=H({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},el=new Rt,Q5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=YL(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){el.option=l[a];var u=n(el),f=o.ensureUniqueItemVisual(s,"style");H(f,u),el.option.decal&&(o.setItemVisual(s,"decal",el.option.decal),el.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},tG={performRawSeries:!0,overallReset:function(r){var t=et();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),qS(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=qS(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=ZL(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var c=i.ensureUniqueItemVisual(f,"style"),h=a.getName(u)||u+"",d=a.count();c[l]=e.getColorFromPalette(h,o,d)}})}})}},mf=Math.PI;function eG(r,t){t=t||{},lt(t,{text:"loading",textColor:z.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:z.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new it,a=new bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new Pt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new bt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new Fm({shape:{startAngle:-mf/2,endAngle:-mf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:mf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:mf*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var rG=function(){function r(t,e,a,n){this._stageTaskMap=et(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=et();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";$e(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;A(t,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,d=c.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,a);var p=o.getPerformArgs(c,n.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(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&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=et(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(v){var c=v.uid,h=s.set(c,o&&o.get(c)||Yl({plan:sG,reset:lG,count:fG}));h.context={model:v,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Yl({reset:aG});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=et(),u=t.seriesType,f=t.getTargetSeries,v=!0,c=!1,h="";$e(!t.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(v=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,Yl({reset:nG,onDirty:oG})));y.context={model:p,overallProgress:v},y.agent=o,y.__block=v,i._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return at(t)&&(t={overallReset:t,seriesType:vG(t)}),t.uid=zs("stageHandler"),e&&(t.visualType=e),t},r}();function aG(r){r.overallReset(r.ecModel,r.api,r.payload)}function nG(r){return r.overallProgress&&iG}function iG(){this.agent.dirty(),this.getDownstream().dirty()}function oG(){this.agent&&this.agent.dirty()}function sG(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function lG(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ht(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?Y(t,function(e,a){return XL(a)}):uG}var uG=XL(0);function XL(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function fG(r){return r.data.count()}function vG(r){jv=null;try{r(hu,qL)}catch{}return jv}var hu={},qL={},jv;KL(hu,SL);KL(qL,xL);hu.eachSeriesByType=hu.eachRawSeriesByType=function(r){jv=r};hu.eachComponent=function(r){r.mainType==="series"&&r.subType&&(jv=r.subType)};function KL(r,t){for(var e in t.prototype)r[e]=oe}const jL=rG;var ot=z.darkColor,cG=ot.background,rl=function(){return{axisLine:{lineStyle:{color:ot.axisLine}},splitLine:{lineStyle:{color:ot.axisSplitLine}},splitArea:{areaStyle:{color:[ot.backgroundTint,ot.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ot.axisMinorSplitLine}},axisLabel:{color:ot.axisLabel},axisName:{}}},jS={label:{color:ot.secondary},itemStyle:{borderColor:ot.borderTint},dividerLineStyle:{color:ot.border}},JL={darkMode:!0,color:ot.theme,backgroundColor:cG,axisPointer:{lineStyle:{color:ot.border},crossStyle:{color:ot.borderShade},label:{color:ot.tertiary}},legend:{textStyle:{color:ot.secondary},pageTextStyle:{color:ot.tertiary}},textStyle:{color:ot.secondary},title:{textStyle:{color:ot.primary},subtextStyle:{color:ot.quaternary}},toolbox:{iconStyle:{borderColor:ot.accent50}},tooltip:{backgroundColor:ot.neutral20,defaultBorderColor:ot.border,textStyle:{color:ot.tertiary}},dataZoom:{borderColor:ot.accent10,textStyle:{color:ot.tertiary},brushStyle:{color:ot.backgroundTint},handleStyle:{color:ot.neutral00,borderColor:ot.accent20},moveHandleStyle:{color:ot.accent40},emphasis:{handleStyle:{borderColor:ot.accent50}},dataBackground:{lineStyle:{color:ot.accent30},areaStyle:{color:ot.accent20}},selectedDataBackground:{lineStyle:{color:ot.accent50},areaStyle:{color:ot.accent30}}},visualMap:{textStyle:{color:ot.secondary},handleStyle:{borderColor:ot.neutral30}},timeline:{lineStyle:{color:ot.accent10},label:{color:ot.tertiary},controlStyle:{color:ot.accent30,borderColor:ot.accent30}},calendar:{itemStyle:{color:ot.neutral00,borderColor:ot.neutral20},dayLabel:{color:ot.tertiary},monthLabel:{color:ot.secondary},yearLabel:{color:ot.secondary}},matrix:{x:jS,y:jS,backgroundColor:{borderColor:ot.axisLine},body:{itemStyle:{borderColor:ot.borderTint}}},timeAxis:rl(),logAxis:rl(),valueAxis:rl(),categoryAxis:rl(),line:{symbol:"circle"},graph:{color:ot.theme},gauge:{title:{color:ot.secondary},axisLine:{lineStyle:{color:[[1,ot.neutral05]]}},axisLabel:{color:ot.axisLabel},detail:{color:ot.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ot.background}},radar:function(){var r=rl();return r.axisName={color:ot.axisLabel},r.axisLine.lineStyle.color=ot.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:ot.neutral20,textStyle:{color:ot.secondary}},emphasis:{itemStyle:{color:ot.neutral30}}}},sunburst:{itemStyle:{borderColor:ot.background}},map:{itemStyle:{borderColor:ot.border,areaColor:ot.neutral10},label:{color:ot.tertiary},emphasis:{label:{color:ot.primary},itemStyle:{areaColor:ot.highlight}},select:{label:{color:ot.primary},itemStyle:{areaColor:ot.highlight}}},geo:{itemStyle:{borderColor:ot.border,areaColor:ot.neutral10},emphasis:{label:{color:ot.primary},itemStyle:{areaColor:ot.highlight}},select:{label:{color:ot.primary},itemStyle:{color:ot.highlight}}}};JL.categoryAxis.splitLine.show=!1;const hG=JL;var dG=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if(K(t)){var i=ya(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,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 d=u.slice(0,h);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){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=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(v,c,h,d){return v[h]==null||c[d||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ry=["symbol","symbolSize","symbolRotate","symbolOffset"],JS=ry.concat(["symbolKeepAspect"]),pG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<ry.length;o++){var s=ry[o],l=r.get(s);at(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(H({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Mt(n);function f(v,c){for(var h=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];v.setItemVisual(c,g,n[g](h,d))}}return{dataEach:i?f:null}}},gG={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<JS.length;s++){var l=JS[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function h0(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Bu(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function QL(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function tI(r,t){function e(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){t(a[0],function(n,i,o){n=H({},n),o.dispatchAction(H(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Bo(r,t,e,a,n){var i=r+t;e.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=ro(v,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:U(c)?v.getName(c[0]):v.getName(c),selected:K(l)?l:H({},l)})}})}function yG(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Bo("map","selectchanged",t,n,a),Bo("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Bo("map","selected",t,n,a),Bo("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Bo("map","unselected",t,n,a),Bo("pie","unselected",t,n,a))})}function Fi(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var mG=Math.round(Math.random()*9),_G=typeof Object.defineProperty=="function",SG=function(){function r(){this._id="__ec_inner_"+mG++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var a=this._guard(t);return _G?Object.defineProperty(a,this._id,{value:e,enumerable:!1,configurable:!0}):a[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}();const xG=SG;var bG=Ct.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),wG=Ct.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),TG=Ct.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.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=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-v*h,l+s+c*h,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-f+v*h,l+s+c*h,e-f,l+s),r.closePath()}}),CG=Ct.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),AG={line:me,rect:bt,roundRect:bt,square:bt,circle:qn,diamond:wG,pin:TG,arrow:CG,triangle:bG},MG={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},Jv={};A(AG,function(r,t){Jv[t]=new r});var DG=Ct.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=Gv(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=Jv[a];n||(a="rect",n=Jv[a]),MG[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function LG(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||z.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function de(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=kD(r.slice(8),new vt(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=lu(r.slice(7),{},new vt(t,e,a,n),o?"center":"cover"):l=new DG({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=LG,i&&l.setColor(i),l}function Hs(r){return U(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function mo(r,t){if(r!=null)return U(r)||(r=[r,r]),[q(r[0],t[0])||0,q(rt(r[1],r[0]),t[1])||0]}function Hi(r){return isFinite(r)}function IG(r,t,e){var a=t.x==null?0:t.x,n=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(a=a*e.width+e.x,n=n*e.width+e.x,i=i*e.height+e.y,o=o*e.height+e.y),a=Hi(a)?a:0,n=Hi(n)?n:1,i=Hi(i)?i:0,o=Hi(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function PG(r,t,e){var a=e.width,n=e.height,i=Math.min(a,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*a+e.x,s=s*n+e.y,l=l*i),o=Hi(o)?o:.5,s=Hi(s)?s:.5,l=l>=0&&Hi(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function ay(r,t,e){for(var a=t.type==="radial"?PG(r,t,e):IG(r,t,e),n=t.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function kG(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function _f(r){return parseInt(r,10)}function ls(r,t,e){var a=["width","height"][t],n=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[a]!=null&&e[a]!=="auto")return parseFloat(e[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||_f(s[a])||_f(r.style[a]))-(_f(s[i])||0)-(_f(s[o])||0)|0}function RG(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:Lt(r)?[r]:U(r)?r:null}function d0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&RG(t.lineDash,t.lineWidth),a=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=Y(e,function(i){return i/n}),a/=n)}return[e,a]}var EG=new Da(!0);function Qv(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function QS(r){return typeof r=="string"&&r!=="none"}function tc(r){var t=r.fill;return t!=null&&t!=="none"}function tx(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function ex(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function ny(r,t,e){var a=Pm(t.image,t.__image,e);if(Zc(a)){var n=r.createPattern(a,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*sv),i.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(i)}return n}}function OG(r,t,e,a){var n,i=Qv(e),o=tc(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||EG,v=t.__dirty;if(!a){var c=e.fill,h=e.stroke,d=o&&!!c.colorStops,p=i&&!!h.colorStops,g=o&&!!c.image,y=i&&!!h.image,m=void 0,_=void 0,S=void 0,x=void 0,b=void 0;(d||p)&&(b=t.getBoundingRect()),d&&(m=v?ay(r,c,b):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=v?ay(r,h,b):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=v||!t.__canvasFillPattern?ny(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=v||!t.__canvasStrokePattern?ny(r,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(x?r.strokeStyle=x:i=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(n=d0(t),T=n[0],C=n[1]);var M=!0;(u||v&Qo)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,a),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(e.strokeFirst?(i&&ex(r,e),o&&tx(r,e)):(o&&tx(r,e),i&&ex(r,e))),T&&r.setLineDash([])}function NG(r,t,e){var a=t.__image=Pm(e.image,t.__image,t,t.onload);if(!(!a||!Zc(a))){var n=e.x||0,i=e.y||0,o=t.getWidth(),s=t.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(a,u,f,e.sWidth,e.sHeight,n,i,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,v=o-u,c=s-f;r.drawImage(a,u,f,v,c,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function BG(r,t,e){var a,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||qa,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var i=void 0,o=void 0;r.setLineDash&&e.lineDash&&(a=d0(t),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),e.strokeFirst?(Qv(e)&&r.strokeText(n,e.x,e.y),tc(e)&&r.fillText(n,e.x,e.y)):(tc(e)&&r.fillText(n,e.x,e.y),Qv(e)&&r.strokeText(n,e.x,e.y)),i&&r.setLineDash([])}}var rx=["shadowBlur","shadowOffsetX","shadowOffsetY"],ax=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function eI(r,t,e,a,n){var i=!1;if(!a&&(e=e||{},t===e))return!1;if(a||t.opacity!==e.opacity){nr(r,n),i=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Zi.opacity:o}(a||t.blend!==e.blend)&&(i||(nr(r,n),i=!0),r.globalCompositeOperation=t.blend||Zi.blend);for(var s=0;s<rx.length;s++){var l=rx[s];(a||t[l]!==e[l])&&(i||(nr(r,n),i=!0),r[l]=r.dpr*(t[l]||0))}return(a||t.shadowColor!==e.shadowColor)&&(i||(nr(r,n),i=!0),r.shadowColor=t.shadowColor||Zi.shadowColor),i}function nx(r,t,e,a,n){var i=du(t,n.inHover),o=a?null:e&&du(e,n.inHover)||{};if(i===o)return!1;var s=eI(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(nr(r,n),s=!0),QS(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(nr(r,n),s=!0),QS(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(nr(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(nr(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<ax.length;f++){var v=ax[f],c=v[0];(a||i[c]!==o[c])&&(s||(nr(r,n),s=!0),r[c]=i[c]||v[1])}return s}function zG(r,t,e,a,n){return eI(r,du(t,n.inHover),e&&du(e,n.inHover),a,n)}function rI(r,t){var e=t.transform,a=r.dpr||1;e?r.setTransform(a*e[0],a*e[1],a*e[2],a*e[3],a*e[4],a*e[5]):r.setTransform(a,0,0,a,0,0)}function VG(r,t,e){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),rI(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}e.allClipped=a}function GG(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var ix=1,ox=2,sx=3,lx=4;function FG(r){var t=tc(r),e=Qv(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function nr(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function du(r,t){return t&&r.__hoverStyle||r.style}function aI(r,t){Wi(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Wi(r,t,e,a){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~hr,t.__isRendered=!1;return}var i=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||kG(i,o))&&(o&&o.length&&(nr(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),i&&i.length&&(nr(r,e),r.save(),VG(i,r,e),s=!0),e.prevElClipPaths=i),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof Ct&&t.autoBatch&&FG(t.style);s||GG(n,u.transform)?(nr(r,e),rI(r,t)):f||nr(r,e);var v=du(t,e.inHover);t instanceof Ct?(e.lastDrawType!==ix&&(l=!0,e.lastDrawType=ix),nx(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),OG(r,t,v,f),f&&(e.batchFill=v.fill||"",e.batchStroke=v.stroke||"")):t instanceof iu?(e.lastDrawType!==sx&&(l=!0,e.lastDrawType=sx),nx(r,t,u,l,e),BG(r,t,v)):t instanceof Be?(e.lastDrawType!==ox&&(l=!0,e.lastDrawType=ox),zG(r,t,u,l,e),NG(r,t,v)):t.getTemporalDisplayables&&(e.lastDrawType!==lx&&(l=!0,e.lastDrawType=lx),HG(r,t,e)),f&&a&&nr(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function HG(r,t,e){var a=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wi(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Wi(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var xd=new xG,ux=new ys(100),fx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function xs(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&xd.delete(r);var i=xd.get(r);if(i)return i;var o=lt(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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,xd.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],v=!0,c=0;c<fx.length;++c){var h=o[fx[c]];if(h!=null&&!U(h)&&!K(h)&&!Lt(h)&&typeof h!="boolean"){v=!1;break}f.push(h)}var d;if(v){d=f.join(",")+(n?"-svg":"");var p=ux.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=iI(o.dashArrayX),y=WG(o.dashArrayY),m=nI(o.symbol),_=$G(g),S=oI(y),x=!n&&qr.createCanvas(),b=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),T;x&&(x.width=w.width*e,x.height=w.height*e,T=x.getContext("2d")),M(),v&&ux.put(d,x||b),u.image=x,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var D=1,I=0,L=_.length;I<L;++I)D=C1(D,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=C1(P,m[I].length);D*=P;var k=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-S,P=0,k=0,R=0;L<w.height;){if(P%2===0){for(var O=k/2%m.length,E=0,B=0,G=0;E<w.width*2;){for(var F=0,I=0;I<g[R].length;++I)F+=g[R][I];if(F<=0)break;if(B%2===0){var W=(1-o.symbolSize)*.5,X=E+g[R][B]*W,J=L+y[P]*W,ft=g[R][B]*o.symbolSize,Dt=y[P]*o.symbolSize,zt=G/2%m[O].length;ct(X,J,ft,Dt,m[O][zt])}E+=g[R][B],++G,++B,B===g[R].length&&(B=0)}++R,R===g.length&&(R=0)}L+=y[P],++k,++P,P===y.length&&(P=0)}function ct(V,$,Z,tt,At){var pt=n?1:e,xt=de(At,V*pt,$*pt,Z*pt,tt*pt,o.color,o.symbolKeepAspect);if(n){var Vt=a.painter.renderOneToVNode(xt);Vt&&b.children.push(Vt)}else aI(T,xt)}}}}function nI(r){if(!r||r.length===0)return[["rect"]];if(K(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!K(r[e])){t=!1;break}if(t)return nI([r]);for(var a=[],e=0;e<r.length;++e)K(r[e])?a.push([r[e]]):a.push(r[e]);return a}function iI(r){if(!r||r.length===0)return[[0,0]];if(Lt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!Lt(r[a])){e=!1;break}if(e)return iI([r]);for(var n=[],a=0;a<r.length;++a)if(Lt(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=Y(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function WG(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Lt(r)){var t=Math.ceil(r);return[t,t]}var e=Y(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function $G(r){return Y(r,function(t){return oI(t)})}function oI(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function UG(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=xs(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=xs(n,t)}}})}var YG=new zr;const Wr=YG;var sI={};function ZG(r,t){sI[r]=t}function XG(r){return sI[r]}var lI={};function qG(r,t){lI[r]=t}function KG(r){return lI[r]}var jG=1,JG=800,QG=900,t3=1e3,e3=2e3,r3=5e3,uI=1e3,a3=1100,p0=2e3,fI=3e3,n3=4e3,ch=4500,i3=4600,o3=5e3,s3=6e3,vI=7e3,l3={PROCESSOR:{FILTER:t3,SERIES_FILTER:JG,STATISTIC:r3},VISUAL:{LAYOUT:uI,PROGRESSIVE_LAYOUT:a3,GLOBAL:p0,CHART:fI,POST_CHART_LAYOUT:i3,COMPONENT:n3,BRUSH:o3,CHART_ITEM:ch,ARIA:s3,DECAL:vI}},ge="__flagInMainProcess",Sf="__mainProcessVersion",Ae="__pendingUpdate",bd="__needsUpdateStatus",vx=/^[a-zA-Z0-9_]+$/,wd="__connectUpdateStatus",cx=0,u3=1,f3=2;function cI(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return dI(this,r,t)}}function hI(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return dI(this,r,t)}}function dI(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),zr.prototype[t].apply(r,e)}var pI=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(zr),gI=pI.prototype;gI.on=hI("on");gI.off=hI("off");var Si,Td,xf,Na,bf,Cd,Ad,zo,Vo,hx,dx,Md,px,wf,gx,yI,Sr,yx,Go,mI=function(r){N(t,r);function t(e,a,n){var i=r.call(this,new dG)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=e;var o="canvas",s="auto",l=!1;i[Sf]=1,n.ssr&&TN(function(c){var h=ht(c),d=h.dataIndex;if(d!=null){var p=et();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=i._zr=x1(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:rt(n.useDirtyRect,l),useCoarsePointer:rt(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=c0(j(u.flush,u),17),i._updateTheme(a),i._locale=fV(n.locale||$D),i._coordSysMgr=new Nu;var f=i._api=gx(i);function v(c,h){return c.__prio-h.__prio}return fv(rc,v),fv(sy,v),i._scheduler=new jL(i,f,sy,rc),i._messageCenter=new pI,i._initEvents(),i.resize=j(i.resize,i),u.animation.on("frame",i._onframe,i),hx(u,i),dx(u,i),Pv(i),i}return t.prototype._onframe=function(){if(!this._disposed){yx(this);var e=this._scheduler;if(this[Ae]){var a=this[Ae].silent;this[ge]=!0,Go(this);try{Si(this),Na.update.call(this,null,this[Ae].updateParams)}catch(l){throw this[ge]=!1,this[Ae]=null,l}this._zr.flush(),this[ge]=!1,this[Ae]=null,zo.call(this,a),Vo.call(this,a)}else if(e.unfinished){var n=jG,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Cd(this,i),e.performVisualTasks(i),wf(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[ge]){if(this._disposed){this.id;return}var i,o,s;if(ut(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[ge]=!0,Go(this),!this._model||a){var l=new JV(this._api),u=this._theme,f=this._model=new SL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},ly);var v={seriesTransition:s,optionChanged:!0};if(n)this[Ae]={silent:i,updateParams:v},this[ge]=!1,this.getZr().wakeUp();else{try{Si(this),Na.update.call(this,null,v)}catch(c){throw this[Ae]=null,this[ge]=!1,c}this._ssr||this._zr.flush(),this[Ae]=null,this[ge]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[ge]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ae]&&(i==null&&(i=this[Ae].silent),o=this[Ae].updateParams,this[Ae]=null),this[ge]=!0,Go(this);try{this._updateTheme(e),n.setTheme(this._theme),Si(this),Na.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ge]=!1,s}this[ge]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype._updateTheme=function(e){K(e)&&(e=_I[e]),e&&(e=nt(e),e&&wL(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Et.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;A(a,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=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(mx[n]){var l=s,u=s,f=-s,v=-s,c=[],h=e&&e.pixelRatio||this.getDevicePixelRatio();A(Zl,function(_,S){if(_.group===n){var x=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(nt(e)),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})}}),l*=h,u*=h,f*=h,v*=h;var d=f-l,p=v-u,g=qr.createCanvas(),y=x1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(c,function(_){var S=_.left-l,x=_.top-u;m+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new bt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new Be({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return bf(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return bf(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return bf(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=cs(n,e);return A(o,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(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=cs(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?h0(s,l,a):Bu(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(v3,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&Fi(l,function(p){var g=ht(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=H({},g.eventData),!0},!0),u){var v=u.componentType,c=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",c=u.seriesIndex);var h=v&&c!=null&&s.getComponent(v,c),d=h&&e[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;A(oy,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),yG(a,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&GM(this.getDom(),y0,"");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=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Zl[a.id]},t.prototype.resize=function(e){if(!this[ge]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Ae]&&(i==null&&(i=this[Ae].silent),n=!0,this[Ae]=null),this[ge]=!0,Go(this);try{n&&Si(this),Na.update.call(this,{type:"resize",animation:H({duration:0},e&&e.animation)})}catch(o){throw this[ge]=!1,o}this[ge]=!1,zo.call(this,i),Vo.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(ut(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!uy[e]){var n=uy[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=H({},e);return a.type=iy[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(ut(a)||(a={silent:!!a}),!!ec[e.type]&&this._model){if(this[ge]){this._pendingActions.push(e);return}var n=a.silent;Ad.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&Et.browser.weChat&&this._throttledZrFlush(),zo.call(this,n),Vo.call(this,n)}},t.prototype.updateLabelLayout=function(){Wr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Si=function(v){var c=v._scheduler;c.restorePipelines(v._model),c.prepareStageTasks(),Td(v,!0),Td(v,!1),c.plan()},Td=function(v,c){for(var h=v._model,d=v._scheduler,p=c?v._componentsViews:v._chartsViews,g=c?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_<p.length;_++)p[_].__alive=!1;c?h.eachComponent(function(b,w){b!=="series"&&S(w)}):h.eachSeries(S);function S(b){var w=b.__requireNewView;b.__requireNewView=!1;var T="_ec_"+b.id+"_"+b.type,C=!w&&g[T];if(!C){var M=ya(b.type),D=c?Qt.getClass(M.main,M.sub):Ut.getClass(M.sub);C=new D,C.init(h,m),g[T]=C,p.push(C),y.add(C.group)}b.__viewId=C.__id=T,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!c&&d.prepareView(C,b,h,m)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!c&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},xf=function(v,c,h,d,p){var g=v._model;if(g.setUpdatePayload(h),!d){A([].concat(v._componentsViews).concat(v._chartsViews),x);return}var y={};y[d+"Id"]=h[d+"Id"],y[d+"Index"]=h[d+"Index"],y[d+"Name"]=h[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=h.excludeSeriesId,S;_!=null&&(S=et(),A(Ht(_),function(b){var w=ye(b,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;if(!w)if(eS(h))if(b instanceof Kt)h.type===Xi&&!h.notBlur&&!b.get(["emphasis","disabled"])&&ez(b,h,v._api);else{var T=zm(b.mainType,b.componentIndex,h.name,v._api),C=T.focusSelf,M=T.dispatchers;h.type===Xi&&C&&!h.notBlur&&Bg(b.mainType,b.componentIndex,v._api),M&&A(M,function(D){h.type===Xi?Ja(D):Qa(D)})}else Vg(h)&&b instanceof Kt&&(nz(b,h,v._api),Q1(b),Sr(v))},v),g&&g.eachComponent(m,function(b){var w=S&&S.get(b.id)!=null;w||x(v[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},v);function x(b){b&&b.__alive&&b[c]&&b[c](b.__model,g,v._api,h)}},Na={prepareAndUpdate:function(v){Si(this),Na.update.call(this,v,v&&{optionChanged:v.newOption!=null})},update:function(v,c){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(v),y.restoreData(h,v),y.performSeriesTasks(h),g.create(h,d),y.performDataProcessorTasks(h,v),Cd(this,h),g.update(h,d),a(h),y.performVisualTasks(h,v);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Md(this,h,d,v,c),Wr.trigger("afterupdate",h,d)}},updateTransform:function(v){var c=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(v);var p=[];h.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,v);S&&S.update&&p.push(_)}else p.push(_)}});var g=et();h.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,h,d,v);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),a(h),this._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),wf(this,h,d,v,{},g),Wr.trigger("afterupdate",h,d)}},updateView:function(v){var c=this._model;c&&(c.setUpdatePayload(v),Ut.markUpdateMethod(v,"updateView"),a(c),this._scheduler.performVisualTasks(c,v,{setDirty:!0}),Md(this,c,this._api,v,{}),Wr.trigger("afterupdate",c,this._api))},updateVisual:function(v){var c=this,h=this._model;h&&(h.setUpdatePayload(v),h.eachSeries(function(d){d.getData().clearAllVisual()}),Ut.markUpdateMethod(v,"updateVisual"),a(h),this._scheduler.performVisualTasks(h,v,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,c._api,v)}}),h.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,h,c._api,v)}),Wr.trigger("afterupdate",h,this._api))},updateLayout:function(v){Na.update.call(this,v)}};function e(v,c,h,d,p){if(v._disposed){v.id;return}for(var g=v._model,y=v._coordSysMgr.getCoordinateSystems(),m,_=cs(g,h),S=0;S<y.length;S++){var x=y[S];if(x[c]&&(m=x[c](g,_,d,p))!=null)return m}}bf=e,Cd=function(v,c){var h=v._chartsMap,d=v._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},Ad=function(v,c){var h=this,d=this.getModel(),p=v.type,g=v.escapeConnect,y=ec[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&ya(m[0]);this[ge]=!0,Go(this);var x=[v],b=!1;v.batch&&(b=!0,x=Y(v.batch,function(R){return R=lt(H({},R),v),R.batch=null,R}));var w=[],T,C=[],M=y.nonRefinedEventType,D=Vg(v),I=eS(v);if(I&&vD(this._api),A(x,function(R){var O=y.action(R,d,h._api);if(y.refineEvent?C.push(O):T=O,T=T||H({},R),T.type=M,w.push(T),I){var E=Lm(v),B=E.queryOptionMap,G=E.mainTypeSpecified,F=G?B.keys()[0]:"series";xf(h,_,R,F),Sr(h)}else D?(xf(h,_,R,"series"),Sr(h)):S&&xf(h,_,R,S.main,S.sub)}),_!=="none"&&!I&&!D&&!S)try{this[Ae]?(Si(this),Na.update.call(this,v),this[Ae]=null):Na[_].call(this,v)}catch(R){throw this[ge]=!1,R}if(b?T={type:M,escapeConnect:g,batch:w}:T=w[0],this[ge]=!1,!c){var L=void 0;if(y.refineEvent){var P=y.refineEvent(C,v,d,this._api).eventContent;$e(ut(P)),L=lt({type:y.refinedEventType},P),L.fromAction=v.type,L.fromActionPayload=v,L.escapeConnect=!0}var k=this._messageCenter;k.trigger(T.type,T),L&&k.trigger(L.type,L)}},zo=function(v){for(var c=this._pendingActions;c.length;){var h=c.shift();Ad.call(this,h,v)}},Vo=function(v){!v&&this.trigger("updated")},hx=function(v,c){v.on("rendered",function(h){c.trigger("rendered",h),v.animation.isFinished()&&!c[Ae]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},dx=function(v,c){v.on("mouseover",function(h){var d=h.target,p=Fi(d,su);p&&(rz(p,h,c._api),Sr(c))}).on("mouseout",function(h){var d=h.target,p=Fi(d,su);p&&(az(p,h,c._api),Sr(c))}).on("click",function(h){var d=h.target,p=Fi(d,function(m){return ht(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=ht(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function a(v){v.clearColorPalette(),v.eachSeries(function(c){c.clearColorPalette()})}function n(v){var c=[],h=[],d=!1;if(v.eachComponent(function(m,_){var S=_.get("zlevel")||0,x=_.get("z")||0,b=_.getZLevelKey();d=d||!!b,(m==="series"?h:c).push({zlevel:S,z:x,idx:_.componentIndex,type:m,key:b})}),d){var p=c.concat(h),g,y;fv(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(p,function(m){var _=v.getComponent(m.type,m.idx),S=m.zlevel,x=m.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Md=function(v,c,h,d,p){n(c),px(v,c,h,d,p),A(v._chartsViews,function(g){g.__alive=!1}),wf(v,c,h,d,p),A(v._chartsViews,function(g){g.__alive||g.remove(c,h)})},px=function(v,c,h,d,p,g){A(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,h,d),l(m,y),f(m,y)})},wf=function(v,c,h,d,p,g){var y=v._scheduler;p=H(p||{},{updatedSeries:c.getSeries()}),Wr.trigger("series:beforeupdate",c,h,p);var m=!1;c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,d),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),Q1(_)}),y.unfinished=m||y.unfinished,Wr.trigger("series:layoutlabels",c,h,p),Wr.trigger("series:transition",c,h,p),c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(v,c),Wr.trigger("series:afterupdate",c,h,p)},Sr=function(v){v[bd]=!0,v.getZr().wakeUp()},Go=function(v){v[Sf]=(v[Sf]+1)%1e3},yx=function(v){v[bd]&&(v.getZr().storage.traverse(function(c){hs(c)||i(c)}),v[bd]=!1)};function i(v){for(var c=[],h=v.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}v.selected&&v.states.select&&c.push("select"),v.hoverState===Jc&&v.states.emphasis?c.push("emphasis"):v.hoverState===Pu&&v.states.blur&&c.push("blur"),v.useStates(c)}function o(v,c){var h=v._zr,d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>c.get("hoverLayerThreshold")&&!Et.node&&!Et.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=v._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(v,c){var h=v.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(v,c){if(!v.preventAutoZ){var h=oo(v);c.eachRendered(function(d){return nh(d,h.z,h.zlevel),!0})}}function u(v,c){c.eachRendered(function(h){if(!hs(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(v,c){var h=v.getModel("stateAnimation"),d=v.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(hs(y))return;if(y instanceof Ct&&fz(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}gx=function(v){return new(function(c){N(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return v._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){Ja(d,p),Sr(v)},h.prototype.leaveEmphasis=function(d,p){Qa(d,p),Sr(v)},h.prototype.enterBlur=function(d){sD(d),Sr(v)},h.prototype.leaveBlur=function(d){Bm(d),Sr(v)},h.prototype.enterSelect=function(d){lD(d),Sr(v)},h.prototype.leaveSelect=function(d){uD(d),Sr(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(d){return v.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return v.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return v[Sf]},h}(xL))(v)},yI=function(v){function c(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[wd]=d}}A(iy,function(h,d){v._messageCenter.on(d,function(p){if(mx[v.group]&&v[wd]!==cx){if(p&&p.escapeConnect)return;var g=v.makeActionFromEvent(p),y=[];A(Zl,function(m){m!==v&&m.group===v.group&&y.push(m)}),c(y,cx),A(y,function(m){m[wd]!==u3&&m.dispatchAction(g)}),c(y,f3)}})})}}(),t}(zr),g0=mI.prototype;g0.on=cI("on");g0.off=cI("off");g0.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var v3=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ec={},iy={},oy={},sy=[],ly=[],rc=[],_I={},uy={},Zl={},mx={},c3=+new Date-0,y0="_echarts_instance_";function h3(r,t,e){var a=!(e&&e.ssr);if(a){var n=d3(r);if(n)return n}var i=new mI(r,t,e);return i.id="ec_"+c3++,Zl[i.id]=i,a&&GM(r,y0,i.id),yI(i),Wr.trigger("afterinit",i),i}function d3(r){return Zl[XN(r,y0)]}function SI(r,t){_I[r]=t}function xI(r){yt(ly,r)<0&&ly.push(r)}function bI(r,t){_0(sy,r,t,e3)}function p3(r){m0("afterinit",r)}function g3(r){m0("afterupdate",r)}function m0(r,t){Wr.on(r,t)}function Pa(r,t,e){var a,n,i,o,s;at(t)&&(e=t,t=""),ut(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),i=r.refineEvent):(a=r,n=t);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;ec[a]||($e(vx.test(a)&&vx.test(n)),i&&$e(n!==a),ec[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:e,refineEvent:i},oy[n]=1,i&&s&&(oy[u]=1),iy[u]=a)}function y3(r,t){Nu.register(r,t)}function m3(r,t){_0(rc,r,t,uI,"layout")}function _o(r,t){_0(rc,r,t,fI,"visual")}var _x=[];function _0(r,t,e,a,n){if((at(t)||ut(t))&&(e=t,t=a),!(yt(_x,e)>=0)){_x.push(e);var i=jL.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function wI(r,t){uy[r]=t}function _3(r,t,e){var a=XG("registerMap");a&&a(r,t,e)}var S3=A5;_o(p0,J5);_o(ch,Q5);_o(ch,tG);_o(p0,pG);_o(ch,gG);_o(vI,UG);xI(wL);bI(QG,o5);wI("default",eG);Pa({type:Xi,event:Xi,update:Xi},oe);Pa({type:gv,event:gv,update:gv},oe);Pa({type:Wv,event:Om,update:Wv,action:oe,refineEvent:S0,publishNonRefinedEvent:!0});Pa({type:Og,event:Om,update:Og,action:oe,refineEvent:S0,publishNonRefinedEvent:!0});Pa({type:$v,event:Om,update:$v,action:oe,refineEvent:S0,publishNonRefinedEvent:!0});function S0(r,t,e,a){return{eventContent:{selected:iz(e),isFromClick:t.isFromClick||!1}}}SI("default",{});SI("dark",hG);var Sx=[],x3={registerPreprocessor:xI,registerProcessor:bI,registerPostInit:p3,registerPostUpdate:g3,registerUpdateLifecycle:m0,registerAction:Pa,registerCoordinateSystem:y3,registerLayout:m3,registerVisual:_o,registerTransform:S3,registerLoading:wI,registerMap:_3,registerImpl:ZG,PRIORITY:l3,ComponentModel:It,ComponentView:Qt,SeriesModel:Kt,ChartView:Ut,registerComponentModel:function(r){It.registerClass(r)},registerComponentView:function(r){Qt.registerClass(r)},registerSeriesModel:function(r){Kt.registerClass(r)},registerChartView:function(r){Ut.registerClass(r)},registerCustomSeries:function(r,t){qG(r,t)},registerSubTypeDefaulter:function(r,t){It.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){bN(r,t)}};function _t(r){if(U(r)){A(r,function(t){_t(t)});return}yt(Sx,r)>=0||(Sx.push(r),at(r)&&(r={install:r}),r.install(x3))}function al(r){return r==null?0:r.length||1}function xx(r){return r}var b3=function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||xx,this._newKeyGetter=n||xx,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=al(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(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._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],v=al(u),c=al(f);if(v>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(v===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(v===1&&c===1)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(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=al(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=al(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}();const tn=b3;var w3=function(){function r(t,e){this._encode=t,this._schema=e}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 T3(r,t){var e={},a=e.encode={},n=et(),i=[],o=[],s={};A(r.dimensions,function(c){var h=r.getDimensionInfo(c),d=h.coordDim;if(d){var p=h.coordDimIndex;Dd(a,d)[p]=c,h.isExtraCoord||(n.set(d,1),C3(h.type)&&(i[0]=c),Dd(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(c)}cL.each(function(g,y){var m=Dd(a,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};n.each(function(c,h){var d=a[h];u[h]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=Y(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.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,e.userOutput=new w3(s,t),e}function Dd(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function ac(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function C3(r){return!(r==="ordinal"||r==="time")}var A3=function(){function r(t){this.otherDims={},t!=null&&H(this,t)}return r}();const wv=A3;var M3=wt(),D3={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},TI=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=MI(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return rt(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=CL(this.source),a=!DI(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=e?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=D3[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function CI(r){return r instanceof TI}function AI(r){for(var t=et(),e=0;e<(r||[]).length;e++){var a=r[e],n=ut(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function MI(r){var t=M3(r);return t.dimNameMap||(t.dimNameMap=AI(r.dimensionsDefine))}function DI(r){return r>30}var nl=ut,hn=Y,L3=typeof Int32Array>"u"?Array:Int32Array,I3="e\0\0",bx=-1,P3=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],k3=["_approximateExtent"],Tx,Tf,il,ol,Ld,sl,Id,R3=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;CI(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var v=a[f],c=K(v)?new wv({name:v}):v instanceof wv?v:new wv(v),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(h),i[h]=c,u[h]!=null&&(l=!0),c.createInvertedIndices&&(s[h]=[]);var p=f;Lt(c.storeDimIndex)&&(p=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=et();A(o,function(y){g.set(i[y].storeDimIndex,y)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(Lt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Jg&&(i=t),!i){var o=this.dimensions,s=o0(t)||We(t)?new AL(t,o.length):t;i=new Jg;var l=hn(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=T3(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&Id(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Nn&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===mr;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var v=n.getItem(f,u);if(!this.hasItemOption&&ON(v)&&(this.hasItemOption=!0),v){var c=v.name;i[f]==null&&c!=null&&(i[f]=ye(c,null));var h=v.id;o[f]==null&&h!=null&&(o[f]=ye(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Id(this,f);Tx(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){nl(t)?H(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=il(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return Tf(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return U(t)?n.getValues(hn(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?bx:n},r.prototype.each=function(t,e,a){at(t)&&(a=e,e=t,t=[]);var n=a||this,i=hn(ol(t),this._getStoreDimIndex,this);this._store.each(i,n?j(e,n):e)},r.prototype.filterSelf=function(t,e,a){at(t)&&(a=e,e=t,t=[]);var n=a||this,i=hn(ol(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?j(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Mt(t);return A(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){at(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=hn(ol(t),this._getStoreDimIndex,this),s=sl(this);return s._store=this._store.map(o,i?j(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=hn(ol(t),this._getStoreDimIndex,this);this._store.modify(o,i?j(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=sl(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=sl(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=sl(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new Rt(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new tn(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Tf(t,a)},function(a){return Tf(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},nl(t)?H(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),U(i)?i=i.slice():nl(i)&&(i=H({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,nl(e)?H(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){nl(t)?H(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?H(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Eg(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:hn(this.dimensions,this._getDimInfo,this),this.hostModel)),Ld(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];at(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(mm(arguments)))})},r.internalField=function(){Tx=function(t){var e=t._invertedIndicesMap;A(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new L3(o.categories.length);for(var l=0;l<a.length;l++)a[l]=bx;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},il=function(t,e,a){return ye(t._getCategory(e,a),null)},Tf=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=il(t,t._idDimIdx,e)),a==null&&(a=I3+e),a},ol=function(t){return U(t)||(t=t!=null?[t]:[]),t},sl=function(t){var e=new r(t._schema?t._schema:hn(t.dimensions,t._getDimInfo,t),t.hostModel);return Ld(e,t),e},Ld=function(t,e){A(P3.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,A(k3,function(a){t[a]=nt(e[a])}),t._calculationInfo=H({},e._calculationInfo)},Id=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=il(t,i,e)),l==null&&o!=null&&(n[e]=l=il(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}}(),r}();const je=R3;function zu(r,t){o0(r)||(r=s0(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=et(),i=[],o=O3(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&DI(o),l=a===r.dimensionsDefine,u=l?MI(r):AI(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var v=et(f),c=new EL(o),h=0;h<c.length;h++)c[h]=-1;function d(C){var M=c[C];if(M<0){var D=a[C],I=ut(D)?D:{name:D},L=new wv,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var k=i.length;return c[C]=k,L.storeDimIndex=C,i.push(L),L}return i[M]}if(!s)for(var h=0;h<o;h++)d(h);v.each(function(C,M){var D=Ht(C).slice();if(D.length===1&&!K(D[0])&&D[0]<0){v.set(M,!1);return}var I=v.set(M,[]);A(D,function(L,P){var k=K(L)?u.get(L):L;k!=null&&k<o&&(I[P]=k,g(d(k),M,P))})});var p=0;A(e,function(C){var M,D,I,L;if(K(C))M=C,L={};else{L=C,M=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=H({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var k=v.get(M);if(k!==!1){if(k=Ht(k),!k.length)for(var R=0;R<(D&&D.length||1);R++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}A(k,function(O,E){var B=d(O);if(l&&L.type!=null&&(B.type=L.type),g(lt(B,L),M,E),B.name==null&&D){var G=D[E];!ut(G)&&(G={name:G}),B.name=B.displayName=G.name,B.defaultTooltip=G.defaultTooltip}I&&lt(B.otherDims,I)})}});function g(C,M,D){cL.get(M)!=null?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,n.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function x(C){C.name==null&&(C.name=C.coordDim)}if(s)A(i,function(C){x(C)}),i.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var b=0;b<o;b++){var w=d(b),T=w.coordDim;T==null&&(w.coordDim=N3(S,n,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),x(w),w.type==null&&(gL(r,b)===Re.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return E3(i),new TI({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function E3(r){for(var t=et(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function O3(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return A(t,function(i){var o;ut(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function N3(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var B3=function(){function r(t){this.coordSysDims=[],this.axisMap=et(),this.categoryAxisMap=et(),this.coordSysName=t}return r}();function z3(r){var t=r.get("coordinateSystem"),e=new B3(t),a=V3[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var V3={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",ee).models[0],i=r.getReferringComponents("yAxis",ee).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),Fo(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),Fo(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",ee).models[0];t.coordSysDims=["single"],e.set("single",n),Fo(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",ee).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),Fo(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),Fo(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Fo(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",ee).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function Fo(r){return r.get("type")==="category"}function G3(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;F3(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,v,c;if(A(i,function(m,_){K(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){v="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===h&&p++});var g={name:v,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(v,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:v}}function F3(r){return!CI(r.schema)}function Fn(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function LI(r,t){return Fn(r,t)?r.getCalculationInfo("stackResultDimension"):t}function H3(r,t){var e=r.get("coordinateSystem"),a=Nu.get(e),n;return t&&t.coordSysDims&&(n=Y(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=ac(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function W3(r,t,e){var a,n;return e&&A(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function sn(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;r?(i=!0,n=s0(r)):(n=a.getSource(),i=n.sourceFormat===mr);var o=z3(t),s=H3(t,o),l=e.useEncodeDefaulter,u=at(l)?l:l?gt(pL,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=zu(n,f),c=W3(v.dimensions,e.createInvertedIndices,o),h=i?null:a.getSharedDataStore(v),d=G3(t,{schema:v,store:h}),p=new je(v,t);p.setCalculationInfo(d);var g=c!=null&&$3(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function $3(r){if(r.sourceFormat===mr){var t=U3(r.data||[]);return!U(ks(t))}}function U3(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function fy(r){return r.type==="interval"||r.type==="log"}function Y3(r,t,e,a,n){var i={},o=i.interval=PM(t/e,!0);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=pu(o),l=i.niceTickExtent=[fe(Math.ceil(r[0]/o)*o,s),fe(Math.floor(r[1]/o)*o,s)];return Z3(l,r),i}function Pd(r){var t=Math.pow(10,Mm(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,fe(e*t)}function pu(r){return ga(r)+2}function Cx(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Z3(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Cx(r,0,t),Cx(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function x0(r,t){return r>=t[0]&&r<=t[1]}var X3=function(){function r(){this.normalize=Ax,this.scale=Mx}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=j(t.normalize,t),this.scale=j(t.scale,t)):(this.normalize=Ax,this.scale=Mx)},r}();function Ax(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Mx(r,t){return r*(t[1]-t[0])+t[0]}function vy(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var II=function(){function r(t){this._calculator=new X3,this._setting=t||{},this._extent=[1/0,-1/0];var e=ve();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){var e=ve();e&&this._innerSetBreak(e.parseAxisBreakOption(t,j(this.parse,this)))},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Yc(II);const So=II;var q3=0,K3=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++q3,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&Y(a,j3);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!K(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=et(this.categories))},r}();function j3(r){return ut(r)&&r.value!=null?r.value:r+""}const gu=K3;var PI=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new gu({})),U(n)&&(n=new gu({categories:Y(n,function(i){return ut(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:K(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return x0(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(So);So.registerClass(PI);const yu=PI;var dn=fe,kI=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return x0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=pu(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=ve(),l=[];if(!a)return l;if(e.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;n[0]<i[0]&&(e.expandToNicedExtent?l.push({value:dn(i[0]-a,o)}):l.push({value:n[0]}));for(var f=function(d,p){return Math.round((p-d)/a)},v=i[0];v<=i[1];){if(l.push({value:v}),v=dn(v+a,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(v,f);c>=0&&(v=dn(v+c*a,o))}if(l.length>0&&v===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:i[1];return n[1]>h&&(e.expandToNicedExtent?l.push({value:dn(h+a,o)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(e.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),e.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,f=[],v=s.value-l.value,c=v/e,h=pu(c);u<e-1;){var d=dn(l.value+(u+1)*c,h);d>i[0]&&d<i[1]&&f.push(d),u++}var p=ve();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,i),n.push(f)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=ga(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=dn(e.value,n,!0);return QD(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Y3(i,o,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval,s=this._intervalPrecision;e.fixMin||(a[0]=dn(Math.floor(a[0]/o)*o,s)),e.fixMax||(a[1]=dn(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t}(So);So.registerClass(kI);const Hn=kI;var RI=typeof Float32Array<"u",J3=RI?Float32Array:Array;function ma(r){return U(r)?RI?new Float32Array(r):r:new J3(r)}var cy="__ec_stack_";function b0(r){return r.get("stack")||cy+r.seriesIndex}function w0(r){return r.dim+r.index}function Q3(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(lt({bandWidth:n,axisKey:a,stackId:cy+i},r));for(var o=NI(t),s=[],i=0;i<r.count;i++){var l=o[a][cy+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function EI(r,t){var e=[];return t.eachSeriesByType(r,function(a){VI(a)&&e.push(a)}),e}function tF(r){var t={};A(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var v=l.getData(),c=f.dim+"_"+f.index,h=v.getDimensionIndex(v.mapDimension(f.dim)),d=v.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(h,p);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function OI(r){var t=tF(r),e=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),c=Math.abs(v[1]-v[0]);s=u?f/c*u:f}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=q(a.get("barWidth"),s),p=q(a.get("barMaxWidth"),s),g=q(a.get("barMinWidth")||(GI(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:w0(i),stackId:b0(a)})}),NI(e)}function NI(r){var t={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var v=a.barMaxWidth;v&&(l[u].maxWidth=v);var c=a.barMinWidth;c&&(l[u].minWidth=c);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Mt(i).length;s=Math.max(35-l*4,15)+"%"}var u=q(s,o),f=q(a.gap,1),v=a.remainedWidth,c=a.autoWidthCount,h=(v-u)/(c+(c-1)*f);h=Math.max(h,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,v-=S+f*S,c--}else{var S=h;m&&m<S&&(S=Math.min(m,v)),_&&_>S&&(S=_),S!==h&&(y.width=S,v-=S+f*S,c--)}}),h=(v-u)/(c+(c-1)*f),h=Math.max(h,0);var d=0,p;A(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function eF(r,t,e){if(r&&t){var a=r[w0(t)];return a!=null&&e!=null?a[b0(e)]:a}}function BI(r,t){var e=EI(r,t),a=OI(e);A(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=b0(n),u=a[w0(s)][l],f=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:v})})}function zI(r){return{seriesType:r,plan:Gs(),reset:function(t){if(VI(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),v=Fn(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=rF(n,i),d=GI(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var x=_.count,b=d&&ma(x*3),w=d&&l&&ma(x*3),T=d&&ma(x),C=a.master.getRect(),M=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(v?g:o,D),k=I.get(s,D),R=h,O=void 0;v&&(O=+P-I.get(o,D));var E=void 0,B=void 0,G=void 0,F=void 0;if(c){var W=a.dataToPoint([P,k]);if(v){var X=a.dataToPoint([O,k]);R=X[0]}E=R,B=W[1]+m,G=W[0]-R,F=y,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var W=a.dataToPoint([k,P]);if(v){var X=a.dataToPoint([k,O]);R=X[1]}E=W[0]+m,B=R,G=y,F=W[1]-R,Math.abs(F)<p&&(F=(F<=0?-1:1)*p)}d?(b[L]=E,b[L+1]=B,b[L+2]=c?G:F,w&&(w[L]=c?C.x:E,w[L+1]=c?B:C.y,w[L+2]=M),T[D]=D):S.setItemLayout(D,{x:E,y:B,width:G,height:F}),L+=3}d&&S.setLayout({largePoints:b,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function VI(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function GI(r){return r.pipelineContext&&r.pipelineContext.large}function rF(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var aF=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},FI=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return oh(e.value,gS[_V(Ul(this._minLevelUnit))]||gS.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return SV(e,a,n,o,i)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=ve(),o=[];if(!a)return o;var s=this.getSetting("useUTC");if(i&&e.breakTicks==="only_break")return ve().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var l=ss(n[1],s);o.push({value:n[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=fF(this._minLevelUnit,this._approxInterval,s,n,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var f=ss(n[1],s);o.push({value:n[1],time:{level:0,upperTimeUnit:f,lowerTimeUnit:f}});var v=this.getSetting("useUTC"),c=fr.length-1,h=0;return A(o,function(d){c=Math.min(c,yt(fr,d.time.upperTimeUnit)),h=Math.max(h,d.time.level)}),i&&ve().pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(d){return d.value},this._approxInterval,this._extent),i&&e.breakTicks!=="none"&&ve().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(d){for(var p=Math.max(yt(fr,ss(d.vmin,v)),yt(fr,ss(d.vmax,v))),g=0,y=0;y<fr.length;y++)if(!HI(fr[y],d.vmin,d.vmax,v)){g=y;break}var m=Math.min(g,c),_=Math.max(m,p);return{level:h,lowerTimeUnit:fr[_],upperTimeUnit:fr[m]}}),o},t.prototype.calcNiceExtent=function(e){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=kr,a[1]+=kr),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-kr}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=Cf.length,s=Math.min(aF(Cf,this._approxInterval,0,o),o-1);this._interval=Cf[s][1],this._intervalPrecision=pu(this._interval),this._minLevelUnit=Cf[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return Lt(e)?e:+co(e)},t.prototype.contain=function(e){return x0(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t}(Hn),Cf=[["second",Xm],["minute",qm],["hour",$l],["quarter-day",$l*6],["half-day",$l*12],["day",kr*1.2],["half-week",kr*3.5],["week",kr*7],["month",kr*31],["quarter",kr*95],["half-year",pS/2],["year",pS]];function HI(r,t,e,a){return Yg(new Date(t),r,a).getTime()===Yg(new Date(e),r,a).getTime()}function nF(r,t){return r/=kr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function iF(r){var t=30*kr;return r/=t,r>6?6:r>3?3:r>2?2:1}function oF(r){return r/=$l,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Dx(r,t){return r/=t?qm:Xm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function sF(r){return PM(r,!0)}function lF(r,t,e){var a=Math.max(0,yt(fr,t)-1);return Yg(new Date(r),fr[a],e).getTime()}function uF(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function fF(r,t,e,a,n,i){var o=1e4,s=pV,l=0;function u(L,P,k,R,O,E,B){for(var G=uF(O,L),F=P,W=new Date(F);F<k&&F<=a[1]&&(B.push({value:F}),!(l++>o));)if(W[O](W[R]()+L),F=W.getTime(),i){var X=i.calcNiceTickMultiple(F,G);X>0&&(W[O](W[R]()+X*L),F=W.getTime())}B.push({value:F,notAdd:!0})}function f(L,P,k){var R=[],O=!P.length;if(!HI(Ul(L),a[0],a[1],e)){O&&(P=[{value:lF(a[0],L,e)},{value:a[1]}]);for(var E=0;E<P.length-1;E++){var B=P[E].value,G=P[E+1].value;if(B!==G){var F=void 0,W=void 0,X=void 0,J=!1;switch(L){case"year":F=Math.max(1,Math.round(t/kr/365)),W=YD(e),X=xV(e);break;case"half-year":case"quarter":case"month":F=iF(t),W=Km(e),X=ZD(e);break;case"week":case"half-week":case"day":F=nF(t),W=jm(e),X=XD(e),J=!0;break;case"half-day":case"quarter-day":case"hour":F=oF(t),W=Jm(e),X=qD(e);break;case"minute":F=Dx(t,!0),W=Qm(e),X=KD(e);break;case"second":F=Dx(t,!1),W=t0(e),X=jD(e);break;case"millisecond":F=sF(t),W=e0(e),X=JD(e);break}G>=a[0]&&B<=a[1]&&u(F,B,G,W,X,J,R),L==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-F})}}for(var E=0;E<R.length;E++)k.push(R[E])}}for(var v=[],c=[],h=0,d=0,p=0;p<s.length;++p){var g=Ul(s[p]);if(mV(s[p])){f(s[p],v[v.length-1]||[],c);var y=s[p+1]?Ul(s[p+1]):null;if(g!==y){if(c.length){d=h,c.sort(function(L,P){return L.value-P.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/t;if(h>x*1.5&&d>x/1.5||(v.push(m),h>x||r===s[p]))break}c=[]}}}for(var b=Bt(Y(v,function(L){return Bt(L,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(L){return L.length>0}),w=[],T=b.length-1,p=0;p<b.length;++p)for(var C=b[p],M=0;M<C.length;++M){var D=ss(C[M].value,e);w.push({value:C[M].value,time:{level:T-p,upperTimeUnit:D,lowerTimeUnit:D}})}w.sort(function(L,P){return L.value-P.value});for(var I=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&I.push(w[p]);return I}So.registerClass(FI);const WI=FI;var hy=fe,vF=Math.floor,cF=Math.ceil,Af=Math.pow,Mf=Math.log,$I=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Hn,e}return t.prototype.getTicks=function(e){e=e||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,e),o=this.base,s=this._originalScale._innerGetBreaks(),l=ve();return Y(i,function(u){var f=u.value,v=null,c=Af(o,f);f===a[0]&&this._fixMin?v=n[0]:f===a[1]&&this._fixMax&&(v=n[1]);var h;if(l){var d=l.getTicksLogTransformBreak(u,o,s,Df);h=d.vBreak,v==null&&(v=d.brkRoundingCriterion)}return v!=null&&(c=Df(c,v)),{value:c,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,a){this._originalScale.setExtent(e,a);var n=vy(this.base,[e,a]);r.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var e=this.base,a=r.prototype.getExtent.call(this);a[0]=Af(e,a[0]),a[1]=Af(e,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=Df(a[0],n[0])),this._fixMax&&(a[1]=Df(a[1],n[1])),a},t.prototype.unionExtentFromData=function(e,a){this._originalScale.unionExtentFromData(e,a);var n=vy(this.base,e.getApproximateExtent(a),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=PN(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[hy(cF(a[0]/i)*i),hy(vF(a[1]/i)*i)];this._interval=i,this._intervalPrecision=pu(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Mf(e)/Mf(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Mf(e)/Mf(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),Af(this.base,e)},t.prototype.setBreaksFromOption=function(e){var a=ve();if(a){var n=a.logarithmicParseBreaksFromOption(e,this.base,j(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},t.type="log",t}(Hn);function Df(r,t){return hy(r,ga(t))}So.registerClass($I);const hF=$I;var dF=function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;at(o)?this._modelMinNum=Lf(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=Lf(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(at(s)?this._modelMaxNum=Lf(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=Lf(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=U(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[jr(u[0],1),jr(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var v=He(s)||He(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(s=c,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:v}},r.prototype.modifyDataMinMax=function(t,e){this[gF[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=pF[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),pF={min:"_determinedMin",max:"_determinedMax"},gF={min:"_dataMin",max:"_dataMax"};function UI(r,t,e){var a=r.rawExtentInfo;return a||(a=new dF(r,t,e),r.rawExtentInfo=a,a)}function Lf(r,t){return t==null?null:He(t)?NaN:r.parse(t)}function YI(r,t){var e=r.type,a=UI(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=EI("bar",o),l=!1;if(A(s,function(v){l=l||v.getBaseAxis()===t.axis}),l){var u=OI(s),f=yF(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function yF(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=eF(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,v=1-(s+l)/i,c=f/v-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function bs(r,t){var e=t,a=YI(r,e),n=a.extent,i=e.get("splitNumber");r instanceof hF&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(XI(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function hh(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new yu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new WI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(So.getClass(t)||Hn)}}function mF(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Ws(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=gV(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if(K(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(at(t)){if(r.type==="category")return function(n,i){return t(nc(r,n),n.value-r.scale.getExtent()[0],null)};var a=ve();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(nc(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function nc(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function T0(r){var t=r.get("interval");return t??"auto"}function ZI(r){return r.type==="category"&&T0(r.getLabelModel())===0}function ic(r,t){var e={};return A(r.mapDimensionsAll(t),function(a){e[LI(r,a)]=!0}),Mt(e)}function _F(r,t,e){t&&A(ic(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}function ws(r){return r==="middle"||r==="center"}function mu(r){return r.getShallow("show")}function XI(r){var t=r.get("breaks",!0);if(t!=null)return!ve()||!SF(r.axis)?void 0:t}function SF(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Vu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),xF=1e-8;function Lx(r,t){return Math.abs(r-t)<xF}function Pi(r,t,e){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=Ga(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!Lx(n[0],s[0])||!Lx(n[1],s[1]))&&(a+=Ga(n[0],n[1],s[0],s[1],t,e)),a!==0}var bF=[];function kd(r,t){for(var e=0;e<r.length;e++)se(r[e],r[e],t)}function Ix(r,t,e,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])&&(Tn(t,t,i),Cn(e,e,i))}}function wF(r){for(var t=0,e=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;t+=f,e+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return t?[e/t/3,a/t/3,t]:[r[0][0]||0,r[0][1]||0]}var qI=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),Px=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),kx=function(){function r(t){this.type="linestring",this.points=t}return r}(),KI=function(r){N(t,r);function t(e,a,n){var i=r.call(this,e)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,a,n=0,i=0;i<e.length;i++){var o=e[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return wF(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var a=this._rect;if(a&&!e)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Ix(s.exterior,n,i,e):A(s.points,function(l){Ix(l,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=a),a},t.prototype.contain=function(e){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(e[0],e[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Pi(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Pi(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new vt(e,a,n,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var c=f[v];c.type==="polygon"?(kd(c.exterior,u),A(c.interiors,function(h){kd(h,u)})):A(c.points,function(h){kd(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var a=new t(e,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},t}(qI),TF=function(r){N(t,r);function t(e,a){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,a=e.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Hc(bF),o=e;o&&!o.isGeoSVGGraphicRoot;)xa(i,o.getLocalTransform(),i),o=o.parent;return Kr(i,i),se(n,n,i),n},t}(qI);function CF(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var a=t.features;return A(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=jI(s,o,e);break;case"Polygon":Rd(s,o,e);break;case"MultiLineString":Rd(s,o,e);break;case"MultiPolygon":A(s,function(l,u){return Rd(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Rd(r,t,e){for(var a=0;a<r.length;a++)r[a]=jI(r[a],t[a],e)}function jI(r,t,e){for(var a=[],n=t[0],i=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/e,l/e])}return a}function AF(r,t){return r=CF(r),Y(Bt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var a=e.properties,n=e.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Px(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new Px(l[0],l.slice(1)))});break;case"LineString":i.push(new kx([n.coordinates]));break;case"MultiLineString":i.push(new kx(n.coordinates))}var s=new KI(a[t||"name"],i,a.cp);return s.properties=a,s})}var MF=wt(),Xl=wt(),Jr={estimate:1,determine:2};function oc(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function JI(r,t){var e=Y(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function DF(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Ws(r),n=r.scale.getExtent(),i=JI(r,e),o=Bt(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Y(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?IF(r,t):kF(r)}function LF(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=JI(r,a);return{ticks:Bt(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?PF(r,t):{ticks:Y(r.scale.getTicks(e),function(o){return o.value})}}function IF(r,t){var e=r.getLabelModel(),a=QI(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function QI(r,t,e){var a=EF(r),n=T0(t),i=e.kind===Jr.estimate;if(!i){var o=e2(a,n);if(o)return o}var s,l;at(n)?s=n2(r,n):(l=n==="auto"?OF(r,e):n,s=a2(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return dy(a,n,u),!0}):dy(a,n,u),u}function PF(r,t){var e=RF(r),a=T0(t),n=e2(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),at(a))i=n2(r,a,!0);else if(a==="auto"){var s=QI(r,r.getLabelModel(),oc(Jr.determine));o=s.labelCategoryInterval,i=Y(s.labels,function(l){return l.tickValue})}else o=a,i=a2(r,o,!0);return dy(e,a,{ticks:i,tickCategoryInterval:o})}function kF(r){var t=r.scale.getTicks(),e=Ws(r);return{labels:Y(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var RF=t2("axisTick"),EF=t2("axisLabel");function t2(r){return function(e){return Xl(e)[r]||(Xl(e)[r]={list:[]})}}function e2(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function dy(r,t,e){return r.list.push({key:t,value:e}),e}function OF(r,t){if(t.kind===Jr.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Xl(r).autoInterval=e,!0}),e}var a=Xl(r).autoInterval;return a??(Xl(r).autoInterval=r.calculateCategoryInterval(t))}function NF(r,t){var e=t.kind,a=zF(r),n=Ws(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,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var v=s[0],c=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),p=0,g=0;v<=s[1];v+=u){var y=0,m=0,_=Uc(n({value:v}),a.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,x=g/d;isNaN(S)&&(S=1/0),isNaN(x)&&(x=1/0);var b=Math.max(0,Math.floor(Math.min(S,x)));if(e===Jr.estimate)return t.out.noPxChangeTryDetermine.push(j(BF,null,r,b,l)),b;var w=r2(r,b,l);return w??b}function BF(r,t,e){return r2(r,t,e)==null}function r2(r,t,e){var a=MF(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function zF(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function a2(r,t,e){var a=Ws(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var v=ZI(r),c=o.get("showMinLabel")||v,h=o.get("showMaxLabel")||v;c&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function n2(r,t,e){var a=r.scale,n=Ws(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Rx=[0,1],VF=function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return LM(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ex(a,n.count())),Nt(t,Rx,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Ex(a,n.count()));var i=Nt(t,a,Rx,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=LF(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=Y(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return GF(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=Y(a,function(i){return Y(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||oc(Jr.determine),DF(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||oc(Jr.determine),NF(this,t)},r}();function Ex(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function GF(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(h){h.coord-=u/2,h.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var v=i[0]>i[1];c(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&c(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),c(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&c(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function c(h,d){return h=fe(h),d=fe(d),v?h>d:h<d}}const ea=VF;var ll=Math.PI*2,xi=Da.CMD,FF=["top","right","bottom","left"];function HF(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function WF(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,v=s*e+t;if(Math.abs(a-n)%ll<1e-4)return l[0]=f,l[1]=v,u-e;if(i){var c=a;a=dr(n),n=dr(c)}else a=dr(a),n=dr(n);a>n&&(n+=ll);var h=Math.atan2(s,o);if(h<0&&(h+=ll),h>=a&&h<=n||h+ll>=a&&h+ll<=n)return l[0]=f,l[1]=v,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function sc(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,v=a-t,c=Math.sqrt(f*f+v*v);f/=c,v/=c;var h=l*f+u*v,d=h/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=t+d*v;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function i2(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var $r=[];function $F(r,t,e){var a=i2(t.x,t.y,t.width,t.height,r.x,r.y,$r);return e.set($r[0],$r[1]),a}function UF(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,v=r.x,c=r.y,h=0;h<f.length;){var d=f[h++];h===1&&(a=f[h],n=f[h+1],i=a,o=n);var p=u;switch(d){case xi.M:i=f[h++],o=f[h++],a=i,n=o;break;case xi.L:p=sc(a,n,f[h],f[h+1],v,c,$r,!0),a=f[h++],n=f[h++];break;case xi.C:p=uM(a,n,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],v,c,$r),a=f[h++],n=f[h++];break;case xi.Q:p=vM(a,n,f[h++],f[h++],f[h],f[h+1],v,c,$r),a=f[h++],n=f[h++];break;case xi.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);var w=(v-g)*_/m+g;p=WF(g,y,_,S,S+x,b,w,c,$r),a=Math.cos(S+x)*m+g,n=Math.sin(S+x)*_+y;break;case xi.R:i=a=f[h++],o=n=f[h++];var T=f[h++],C=f[h++];p=i2(i,o,T,C,v,c,$r);break;case xi.Z:p=sc(a,n,i,o,v,c,$r,!0),a=i,n=o;break}p<u&&(u=p,e.set($r[0],$r[1]))}return u}var Ur=new st,Yt=new st,ne=new st,_a=new st,da=new st;function Ox(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||FF,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),v=f&&Kr([],f),c=t.get("length2")||0;u&&ne.copy(u);for(var h=0;h<o.length;h++){var d=o[h];HF(d,0,s,Ur,_a),st.scaleAndAdd(Yt,Ur,_a,c),Yt.transform(v);var p=r.getBoundingRect(),g=u?u.distance(Yt):r instanceof Ct?UF(Yt,r.path,ne):$F(Yt,p,ne);g<l&&(l=g,Yt.transform(f),ne.transform(f),ne.toArray(i[0]),Yt.toArray(i[1]),Ur.toArray(i[2]))}o2(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var lc=[],Ke=new st;function o2(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Ur.fromArray(r[0]),Yt.fromArray(r[1]),ne.fromArray(r[2]),st.sub(_a,Ur,Yt),st.sub(da,ne,Yt);var e=_a.len(),a=da.len();if(!(e<.001||a<.001)){_a.scale(1/e),da.scale(1/a);var n=_a.dot(da),i=Math.cos(t);if(i<n){var o=sc(Yt.x,Yt.y,ne.x,ne.y,Ur.x,Ur.y,lc,!1);Ke.fromArray(lc),Ke.scaleAndAdd(da,o/Math.tan(Math.PI-t));var s=ne.x!==Yt.x?(Ke.x-Yt.x)/(ne.x-Yt.x):(Ke.y-Yt.y)/(ne.y-Yt.y);if(isNaN(s))return;s<0?st.copy(Ke,Yt):s>1&&st.copy(Ke,ne),Ke.toArray(r[1])}}}}function YF(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ur.fromArray(r[0]),Yt.fromArray(r[1]),ne.fromArray(r[2]),st.sub(_a,Yt,Ur),st.sub(da,ne,Yt);var a=_a.len(),n=da.len();if(!(a<.001||n<.001)){_a.scale(1/a),da.scale(1/n);var i=_a.dot(t),o=Math.cos(e);if(i<o){var s=sc(Yt.x,Yt.y,ne.x,ne.y,Ur.x,Ur.y,lc,!1);Ke.fromArray(lc);var l=Math.PI/2,u=Math.acos(da.dot(t)),f=l+u-e;if(f>=l)st.copy(Ke,ne);else{Ke.scaleAndAdd(da,s/Math.tan(Math.PI/2-f));var v=ne.x!==Yt.x?(Ke.x-Yt.x)/(ne.x-Yt.x):(Ke.y-Yt.y)/(ne.y-Yt.y);if(isNaN(v))return;v<0?st.copy(Ke,Yt):v>1&&st.copy(Ke,ne)}Ke.toArray(r[1])}}}}function Ed(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function ZF(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=wn(a[0],a[1]),i=wn(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=uv([],a[1],a[0],o/n),l=uv([],a[1],a[2],o/i),u=uv([],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 C0(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<ou.length;l++){var u=ou[l],f=t[u],v=u==="normal";if(f){var c=f.get("show"),h=v?s:rt(n.states[u]&&n.states[u].ignore,s);if(h||!rt(c,o)){var d=v?a:a&&a.states[u];d&&(d.ignore=!0),a&&Ed(a,!0,u,f);continue}a||(a=new Ue,r.setTextGuideLine(a),!v&&(s||!o)&&Ed(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),Ed(a,!1,u,f)}}if(a){lt(a.style,e),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=ZF}}function A0(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<Je.length;a++){var n=Je[a];e[n]=r.getModel([n,t])}return e}var Nx=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],XF=1,uc=2,s2=XF|uc;function fc(r,t,e){e=e||s2,t?r.dirty|=e:r.dirty&=~e}function l2(r,t){return t=t||s2,r.dirty==null||!!(r.dirty&t)}function Ia(r){if(r)return l2(r)&&u2(r,r.label,r),r}function u2(r,t,e){var a=t.getComputedTransform();r.transform=$m(r.transform,a);var n=r.localRect=uu(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=os.textMargin);for(var v=0;v<4;v++)Od[v]=f===os.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;f===os.textMargin&&io(n,Od,!1,!1);var c=r.rect=uu(r.rect,n);return a&&c.applyTransform(a),f===os.minMargin&&io(c,Od,!1,!1),r.axisAligned=Wm(a),(r.label=r.label||{}).ignore=t.ignore,fc(r,!1),fc(r,!0,uc),r}var Od=[0,0,0,0];function qF(r,t,e){return r.transform=$m(r.transform,e),r.localRect=uu(r.localRect,t),r.rect=uu(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=Wm(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function py(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var a=r.rect;a&&(a.x+=t.x,a.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function gy(r,t){for(var e=0;e<Nx.length;e++){var a=Nx[e];r[a]==null&&(r[a]=t[a])}return Ia(r)}function Bx(r){var t=r.obb;return(!t||l2(r,uc))&&(r.obb=t=t||new ID,t.fromBoundingRect(r.localRect,r.transform),fc(r,!1,uc)),t}function yy(r,t,e,a,n){var i=r.length,o=dt[t],s=ce[t];if(i<2)return!1;r.sort(function(C,M){return C.rect[o]-M.rect[o]});for(var l=0,u,f=!1,v=0,c=0;c<i;c++){var h=r[c],d=h.rect;u=d[o]-l,u<0&&(d[o]-=u,h.label[o]-=u,f=!0);var p=Math.max(-u,0);v+=p,l=d[o]+d[s]}v>0&&n&&b(-v/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),x(m,_,1),x(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-e,_=a-y.rect[o]-y.rect[s]}function x(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){b(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function b(C,M,D){C!==0&&(f=!0);for(var I=M;I<D;I++){var L=r[I],P=L.rect;P[o]+=C,L.label[o]+=C}}function w(C,M){for(var D=[],I=0,L=1;L<i;L++){var P=r[L-1].rect,k=Math.max(r[L].rect[o]-P[o]-P[s],0);D.push(k),I+=k}if(I){var R=Math.min(Math.abs(C)/I,M);if(C>0)for(var L=0;L<i-1;L++){var O=D[L]*R;b(O,0,L+1)}else for(var L=i-1;L>0;L--){var O=D[L-1]*R;b(-O,L,i)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),I=0;I<i-1;I++)if(M>0?b(D,0,I+1):b(-D,i-I-1,i),C-=D,C<=0)return}return f}function KF(r){for(var t=0;t<r.length;t++){var e=r[t],a=e.defaultAttr,n=e.labelLine;e.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function f2(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=Ia(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(dh(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(n)}}}function dh(r,t,e,a){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,a)?!1:r.axisAligned&&t.axisAligned?!0:Bx(r).intersect(Bx(t),e,a)}function jF(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function JF(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:jF(a&&a.shape.points)}}var zx=["align","verticalAlign","width","height","fontSize"],Ze=new Ha,Nd=wt(),QF=wt();function If(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var Pf=["x","y","rotation"],tH=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();vt.applyTransform(f,f,u),u?Ze.setLocalTransform(u):(Ze.x=Ze.y=Ze.rotation=Ze.originX=Ze.originY=0,Ze.scaleX=Ze.scaleY=1),Ze.rotation=dr(Ze.rotation);var v=n.__hostTarget,c;if(v){c=v.getBoundingRect().plain();var h=v.getComputedTransform();vt.applyTransform(c,c,h)}var d=c&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Ze.x,y:Ze.y,scaleX:Ze.scaleX,scaleY:Ze.scaleY,rotation:Ze.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(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(at(n)||Mt(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=ht(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,S){return function(){Ox(_,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;at(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(JF(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=q(f.x,e),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=q(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)}var d=Nd(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<zx.length;p++){var g=zx[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=[];A(this._labelList,function(l){l.defaultAttr.ignore||n.push(gy({},l))});var i=Bt(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Bt(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});yy(i,0,0,e),yy(o,1,0,a);var s=Bt(n,function(l){return l.layoutOption.hideOverlap});KF(s),f2(s)},r.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Nd(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=ht(t),i=n.dataIndex;if(a&&i!=null){var o=e.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");C0(t,A0(s),l),Ox(t,v)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!hs(t))){var i=Nd(a),o=i.oldLayout,s=ht(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=e.getData(s.dataType);if(o){a.attr(o);var c=t.prevStates;c&&(yt(c,"select")>=0&&a.attr(i.oldLayoutSelect),yt(c,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),kt(a,u,e,l)}else if(a.attr(u),!Bs(a).valueAnimation){var v=rt(a.style.opacity,1);a.style.opacity=0,Zt(a,{style:{opacity:v}},e,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};If(h,u,Pf),If(h,a.states.select,Pf)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};If(d,u,Pf),If(d,a.states.emphasis,Pf)}FD(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=QF(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),kt(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Zt(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r}();const eH=tH;var Bd=wt();function rH(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=Bd(e).labelManager;n||(n=Bd(e).labelManager=new eH),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=Bd(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}var zd=Math.sin,Vd=Math.cos,v2=Math.PI,bi=Math.PI*2,aH=180/v2,nH=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,n,i,o){this._add("C",t,e,a,n,i,o)},r.prototype.quadraticCurveTo=function(t,e,a,n){this._add("Q",t,e,a,n)},r.prototype.arc=function(t,e,a,n,i,o){this.ellipse(t,e,a,a,0,n,i,o)},r.prototype.ellipse=function(t,e,a,n,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),c=Dn(v-bi)||(f?u>=bi:-u>=bi),h=u>0?u%bi:u%bi+bi,d=!1;c?d=!0:Dn(v)?d=!1:d=h>=v2==!!f;var p=t+a*Vd(o),g=e+n*zd(o);this._start&&this._add("M",p,g);var y=Math.round(i*aH);if(c){var m=1/this._p,_=(f?1:-1)*(bi-m);this._add("A",a,n,y,1,+f,t+a*Vd(o+_),e+n*zd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=t+a*Vd(s),x=e+n*zd(s);this._add("A",a,n,y,+d,+f,S,x)}},r.prototype.rect=function(t,e,a,n){this._add("M",t,e),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(t,e,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)){this._invalid=!0;return}f.push(Math.round(h*v)/v)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const c2=nH;var ql="none",iH=Math.round;function oH(r){var t=r.fill;return t!=null&&t!==ql}function sH(r){var t=r.stroke;return t!=null&&t!==ql}var my=["lineCap","miterLimit","lineJoin"],lH=Y(my,function(r){return"stroke-"+r.toLowerCase()});function uH(r,t,e,a){var n=t.opacity==null?1:t.opacity;if(e instanceof Be){r("opacity",n);return}if(oH(t)){var i=ru(t.fill);r("fill",i.color);var o=t.fillOpacity!=null?t.fillOpacity*i.opacity*n:i.opacity*n;(a||o<1)&&r("fill-opacity",o)}else r("fill",ql);if(sH(t)){var s=ru(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*n:s.opacity*n,v=t.strokeFirst;if((a||u!==1)&&r("stroke-width",u),(a||v)&&r("paint-order",v?"stroke":"fill"),(a||f<1)&&r("stroke-opacity",f),t.lineDash){var c=d0(e),h=c[0],d=c[1];h&&(d=iH(d||0),r("stroke-dasharray",h.join(",")),(d||a)&&r("stroke-dashoffset",d))}else a&&r("stroke-dasharray",ql);for(var p=0;p<my.length;p++){var g=my[p];if(a||t[g]!==Hv[g]){var y=t[g]||Hv[g];y&&r(lH[p],y)}}}else a&&r("stroke",ql)}var h2="http://www.w3.org/2000/svg",d2="http://www.w3.org/1999/xlink",fH="http://www.w3.org/2000/xmlns/",vH="http://www.w3.org/XML/1998/namespace",Vx="ecmeta_";function p2(r){return document.createElementNS(h2,r)}function Te(r,t,e,a,n){return{tag:r,attrs:e||{},children:a,text:n,key:t}}function cH(r,t){var e=[];if(t)for(var a in t){var n=t[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),e.push(i))}return"<"+r+" "+e.join(" ")+">"}function hH(r){return"</"+r+">"}function M0(r,t){t=t||{};var e=t.newline?`
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return cH(o,s)+(o!=="style"?Fe(l):l||"")+(i?""+e+Y(i,function(u){return a(u)}).join(e)+e:"")+hH(o)}return a(r)}function dH(r,t,e){e=e||{};var a=e.newline?`
`:"",n=" {"+a,i=a+"}",o=Y(Mt(r),function(l){return l+n+Y(Mt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Y(Mt(t),function(l){return"@keyframes "+l+n+Y(Mt(t[l]),function(u){return u+n+Y(Mt(t[l][u]),function(f){var v=t[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function _y(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Gx(r,t,e,a){return Te("svg","root",{width:r,height:t,xmlns:h2,"xmlns:xlink":d2,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var pH=0;function g2(){return pH++}var Fx={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"},Ci="transform-origin";function gH(r,t,e){var a=H({},r.shape);H(a,t),r.buildPath(e,a);var n=new c2;return n.reset(mM(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function yH(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[Ci]=e+"px "+a+"px")}var mH={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function y2(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function _H(r,t,e){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=_y(e.zrId);u.animation=!0,ph(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,c=Mt(f),h=c.length;if(h){o=c[h-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){t.d=!1;var s=y2(n,e);return i.replace(o,s)}}function Hx(r){return K(r)?Fx[r]?"cubic-bezier("+Fx[r]+")":wm(r)?r:"":""}function ph(r,t,e,a){var n=r.animators,i=n.length,o=[];if(r instanceof rh){var s=_H(r,t,e);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=Hx(f.getClip().easing),h=f.getDelay();c?v.push(c):v.push("linear"),h&&v.push(h/1e3+"s"),f.getLoop()&&v.push("infinite");var d=v.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},b={},w={},T="animation-timing-function";function C(ct,V,$){for(var Z=ct.getTracks(),tt=ct.getMaxTime(),At=0;At<Z.length;At++){var pt=Z[At];if(pt.needsAnimate()){var xt=pt.keyframes,Vt=pt.propName;if($&&(Vt=$(Vt)),Vt)for(var re=0;re<xt.length;re++){var Ye=xt[re],ze=Math.round(Ye.time/tt*100)+"%",ka=Hx(Ye.easing),Ra=Ye.rawValue;(K(Ra)||Lt(Ra))&&(V[ze]=V[ze]||{},V[ze][Vt]=Ye.rawValue,ka&&(V[ze][T]=ka))}}}}for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I?I==="shape"&&C(D,b):!a&&C(D,x)}for(var L in x){var P={};Vv(P,r),H(P,x[L]);var k=_M(P),R=x[L][T];w[L]=k?{transform:k}:{},yH(w[L],P),R&&(w[L][T]=R)}var O,E=!0;for(var L in b){w[L]=w[L]||{};var B=!O,R=b[L][T];B&&(O=new Da);var G=O.len();O.reset(),w[L].d=gH(r,b[L],O);var F=O.len();if(!B&&G!==F){E=!1;break}R&&(w[L][T]=R)}if(!E)for(var L in w)delete w[L].d;if(!a)for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I==="style"&&C(D,w,function(Z){return mH[Z]})}for(var W=Mt(w),X=!0,J,M=1;M<W.length;M++){var ft=W[M-1],Dt=W[M];if(w[ft][Ci]!==w[Dt][Ci]){X=!1;break}J=w[ft][Ci]}if(X&&J){for(var L in w)w[L][Ci]&&delete w[L][Ci];t[Ci]=J}if(Bt(W,function(ct){return Mt(w[ct]).length>0}).length){var zt=y2(w,e);return zt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+g2();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function SH(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};Wx(a,t,e,!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=mg(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),Wx(a,t,e,!0)}}function Wx(r,t,e,a){var n=JSON.stringify(r),i=e.cssStyleCache[n];i||(i=e.zrId+"-cls-"+g2(),e.cssStyleCache[n]=i,e.cssNodes["."+i+(a?":hover":"")]=r),t.class=t.class?t.class+" "+i:i}var _u=Math.round;function m2(r){return r&&K(r.src)}function _2(r){return r&&at(r.toDataURL)}function D0(r,t,e,a){uH(function(n,i){var o=n==="fill"||n==="stroke";o&&yM(i)?x2(t,r,n,a):o&&Tm(i)?b2(e,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},t,e,!1),MH(e,r,a)}function L0(r,t){var e=wN(t);e&&(e.each(function(a,n){a!=null&&(r[(Vx+n).toLowerCase()]=a+"")}),t.isSilent()&&(r[Vx+"silent"]="true"))}function $x(r){return Dn(r[0]-1)&&Dn(r[1])&&Dn(r[2])&&Dn(r[3]-1)}function xH(r){return Dn(r[4])&&Dn(r[5])}function I0(r,t,e){if(t&&!(xH(t)&&$x(t))){var a=e?10:1e4;r.transform=$x(t)?"translate("+_u(t[4]*a)/a+" "+_u(t[5]*a)/a+")":HO(t)}}function Ux(r,t,e){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(_u(a[i][0]*e)/e),n.push(_u(a[i][1]*e)/e);t.points=n.join(" ")}function Yx(r){return!r.smooth}function bH(r){var t=Y(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,a,n){for(var i=0;i<t.length;i++){var o=t[i],s=e[o[0]];s!=null&&(a[o[1]]=_u(s*n)/n)}}}var wH={circle:[bH(["cx","cy","r"])],polyline:[Ux,Yx],polygon:[Ux,Yx]};function TH(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function S2(r,t){var e=r.style,a=r.shape,n=wH[r.type],i={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&mM(r)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&TH(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);n[0](a,i,f)}else{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(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new c2),p.reset(u),c.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return I0(i,r.transform),D0(i,e,r,t),L0(i,r),t.animation&&ph(r,i,t),t.emphasis&&SH(r,i,t),Te(s,r.id+"",i)}function CH(r,t){var e=r.style,a=e.image;if(a&&!K(a)&&(m2(a)?a=a.src:_2(a)&&(a=a.toDataURL())),!!a){var n=e.x||0,i=e.y||0,o=e.width,s=e.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),I0(l,r.transform),D0(l,e,r,t),L0(l,r),t.animation&&ph(r,l,t),Te("image",r.id+"",l)}}function AH(r,t){var e=r.style,a=e.text;if(a!=null&&(a+=""),!(!a||isNaN(e.x)||isNaN(e.y))){var n=e.font||qa,i=e.x||0,o=$O(e.y||0,Iu(n),e.textBaseline),s=WO[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(rD(e)){var u="",f=e.fontStyle,v=eD(e.fontSize);if(!parseFloat(v))return;var c=e.fontFamily||UA,h=e.fontWeight;u+="font-size:"+v+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(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),I0(l,r.transform),D0(l,e,r,t),L0(l,r),t.animation&&ph(r,l,t),Te("text",r.id+"",l,void 0,a)}}function Zx(r,t){if(r instanceof Ct)return S2(r,t);if(r instanceof Be)return CH(r,t);if(r instanceof iu)return AH(r,t)}function MH(r,t,e){var a=r.style;if(UO(a)){var n=YO(r),i=e.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=ru(a.shadowColor),d=h.opacity,p=h.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Te("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Te("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[n]=o}t.filter=$c(o)}}function x2(r,t,e,a){var n=r[e],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(pM(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(gM(n))i="radialGradient",o.cx=rt(n.x,.5),o.cy=rt(n.y,.5),o.r=rt(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var v=_g(s[u].offset)*100+"%",c=s[u].color,h=ru(c),d=h.color,p=h.opacity,g={offset:v};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(Te("stop",u+"",g))}var y=Te(i,"",o,l),m=M0(y),_=a.gradientCache,S=_[m];S||(S=a.zrId+"-g"+a.gradientIdx++,_[m]=S,o.id=S,a.defs[S]=Te(i,S,o,l)),t[e]=$c(S)}function b2(r,t,e,a){var n=r.style[e],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",v;if(dM(n)){var c=n.imageWidth,h=n.imageHeight,d=void 0,p=n.image;if(K(p)?d=p:m2(p)?d=p.src:_2(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";$e(c,g),$e(h,g)}else if(c==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=c||D.width,P=h||D.height;M.tag==="pattern"&&(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=Pm(d,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=Te("image","img",{href:d,width:c,height:h}),o.width=c,o.height=h}else n.svgElement&&(v=nt(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=_),S!=null&&!isNaN(S)&&(o.height=S);var x=_M(n);x&&(o.patternTransform=x);var b=Te("pattern","",o,[v]),w=M0(b),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,b=a.defs[C]=Te("pattern",C,o,[v])),t[e]=$c(C)}}function DH(r,t,e){var a=e.clipPathCache,n=e.defs,i=a[r.id];if(!i){i=e.zrId+"-c"+e.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=Te("clipPath",i,o,[S2(r,e)])}t["clip-path"]=$c(i)}function Xx(r){return document.createTextNode(r)}function ki(r,t,e){r.insertBefore(t,e)}function qx(r,t){r.removeChild(t)}function Kx(r,t){r.appendChild(t)}function w2(r){return r.parentNode}function T2(r){return r.nextSibling}function Gd(r,t){r.textContent=t}var jx=58,LH=120,IH=Te("","");function Sy(r){return r===void 0}function va(r){return r!==void 0}function PH(r,t,e){for(var a={},n=t;n<=e;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function kl(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Su(r){var t,e=r.children,a=r.tag;if(va(a)){var n=r.elm=p2(a);if(P0(IH,r),U(e))for(t=0;t<e.length;++t){var i=e[t];i!=null&&Kx(n,Su(i))}else va(r.text)&&!ut(r.text)&&Kx(n,Xx(r.text))}else r.elm=Xx(r.text);return r.elm}function C2(r,t,e,a,n){for(;a<=n;++a){var i=e[a];i!=null&&ki(r,Su(i),t)}}function vc(r,t,e,a){for(;e<=a;++e){var n=t[e];if(n!=null)if(va(n.tag)){var i=w2(n.elm);qx(i,n.elm)}else qx(r,n.elm)}}function P0(r,t){var e,a=t.elm,n=r&&r.attrs||{},i=t.attrs||{};if(n!==i){for(e in i){var o=i[e],s=n[e];s!==o&&(o===!0?a.setAttribute(e,""):o===!1?a.removeAttribute(e):e==="style"?a.style.cssText=o:e.charCodeAt(0)!==LH?a.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?a.setAttributeNS(fH,e,o):e.charCodeAt(3)===jx?a.setAttributeNS(vH,e,o):e.charCodeAt(5)===jx?a.setAttributeNS(d2,e,o):a.setAttribute(e,o))}for(e in n)e in i||a.removeAttribute(e)}}function kH(r,t,e){for(var a=0,n=0,i=t.length-1,o=t[0],s=t[i],l=e.length-1,u=e[0],f=e[l],v,c,h,d;a<=i&&n<=l;)o==null?o=t[++a]:s==null?s=t[--i]:u==null?u=e[++n]:f==null?f=e[--l]:kl(o,u)?(ts(o,u),o=t[++a],u=e[++n]):kl(s,f)?(ts(s,f),s=t[--i],f=e[--l]):kl(o,f)?(ts(o,f),ki(r,o.elm,T2(s.elm)),o=t[++a],f=e[--l]):kl(s,u)?(ts(s,u),ki(r,s.elm,o.elm),s=t[--i],u=e[++n]):(Sy(v)&&(v=PH(t,a,i)),c=v[u.key],Sy(c)?ki(r,Su(u),o.elm):(h=t[c],h.tag!==u.tag?ki(r,Su(u),o.elm):(ts(h,u),t[c]=void 0,ki(r,h.elm,o.elm))),u=e[++n]);(a<=i||n<=l)&&(a>i?(d=e[l+1]==null?null:e[l+1].elm,C2(r,d,e,n,l)):vc(r,t,a,i))}function ts(r,t){var e=t.elm=r.elm,a=r.children,n=t.children;r!==t&&(P0(r,t),Sy(t.text)?va(a)&&va(n)?a!==n&&kH(e,a,n):va(n)?(va(r.text)&&Gd(e,""),C2(e,null,n,0,n.length-1)):va(a)?vc(e,a,0,a.length-1):va(r.text)&&Gd(e,""):r.text!==t.text&&(va(a)&&vc(e,a,0,a.length-1),Gd(e,t.text)))}function RH(r,t){if(kl(r,t))ts(r,t);else{var e=r.elm,a=w2(e);Su(t),a!==null&&(ki(a,t.elm,T2(e)),vc(a,[r],0,0))}return t}var EH=0,OH=function(){function r(t,e,a){if(this.type="svg",this.refreshHover=Jx(),this.configLayer=Jx(),this.storage=e,this._opts=a=H({},a),this.root=t,this._id="zr"+EH++,this._oldVNode=Gx(a.width,a.height),t&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=p2("svg");P0(null,this._oldVNode),n.appendChild(i),t.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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",RH(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Zx(t,_y(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=_y(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=NH(a,n,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Te("g","main",{},[]);this._paintList(e,i,l?l.children:o),l&&o.push(l);var u=Y(Mt(i.defs),function(c){return i.defs[c]});if(u.length&&o.push(Te("defs","defs",{},u)),t.animation){var f=dH(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=Te("style","stl",{},[],f);o.push(v)}}return Gx(a,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},M0(this.renderToVNode({animation:rt(t.cssAnimation,!0),emphasis:rt(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:rt(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var n=t.length,i=[],o=0,s,l,u=0,f=0;f<n;f++){var v=t[f];if(!v.invisible){var c=v.__clipPaths,h=c&&c.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(c&&l&&c[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};DH(c[y],m,e);var _=Te("g","clip-g-"+u++,m,[]);(s?s.children:a).push(_),i[o++]=_,s=_}l=c;var S=Zx(v,e);S&&(s?s.children:a).push(S)}}},r.prototype.resize=function(t,e){var a=this._opts,n=this.root,i=this._viewport;if(t!=null&&(a.width=t),e!=null&&(a.height=e),n&&i&&(i.style.display="none",t=ls(n,0,a),e=ls(n,1,a),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}if(Tm(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},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(t){var e=this.renderToString(),a="data:image/svg+xml;";return t?(e=XO(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+encodeURIComponent(e)},r}();function Jx(r){return function(){}}function NH(r,t,e,a){var n;if(e&&e!=="none")if(n=Te("rect","bg",{width:r,height:t,x:"0",y:"0"}),yM(e))x2({fill:e},n.attrs,"fill",a);else if(Tm(e))b2({style:{fill:e},dirty:oe,getBoundingRect:function(){return{width:r,height:t}}},n.attrs,"fill",a);else{var i=ru(e),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}const BH=OH;function zH(r){r.registerPainter("svg",BH)}function Qx(r,t,e){var a=qr.createCanvas(),n=t.getWidth(),i=t.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*e,a.height=i*e,a}var VH=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||zv,typeof e=="string"?o=Qx(e,a,n):ut(e)&&(o=e,e=o.id),i.id=e,i.dom=o;var s=o.style;return s&&(jA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Qx("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new vt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new vt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,x=1/0,b=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new vt(0,0,0,0);C.copy(T),C.union(m),o[w]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,D=T.width*T.height,I=u.width*u.height,L=I-M-D;L<x&&(x=L,b=w)}}if(l&&(o[b].union(m),S=!0),!S){var _=new vt(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var c=e[v];if(c){var h=c.shouldBePainted(n,i,!0,!0),d=c.__isRendered&&(c.__dirty&hr||!h)?c.getPrevPaintRect():null;d&&f(d);var p=h&&(c.__dirty&hr||!c.__isRendered)?c.getPaintRect():null;p&&f(p)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var c=a[v],h=c&&c.shouldBePainted(n,i,!0,!0);if(c&&(!h||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var y=v+1;y<o.length;)o[v].intersect(o[y])?(g=!0,o[v].union(o[y]),o.splice(y,1)):y++;v++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=e+"px",o.height=a+"px"),i.width=e*n,i.height=a*n,s&&(s.width=e*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!e,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 d(p,g,y,m){if(o.clearRect(p,g,y,m),a&&a!=="transparent"){var _=void 0;if(Vc(a)){var S=a.global||a.__width===y&&a.__height===m;_=S&&a.__canvasGradient||ay(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_,a.__width=y,a.__height=m}else YE(a)&&(a.scaleX=a.scaleX||v,a.scaleY=a.scaleY||v,_=ny(o,a,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||a,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!n||u?d(0,0,s,l):n.length&&A(n,function(p){d(p.x*v,p.y*v,p.width*v,p.height*v)})},t}(zr);const Fd=VH;var tb=1e5,wi=314159,kf=.01,GH=.001;function FH(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function HH(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var WH=function(){function r(t,e,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=a=H({},a||{}),this.dpr=a.devicePixelRatio||zv,this._singleCanvas=i,this.root=t;var o=t.style;o&&(jA(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=t,v=f.width,c=f.height;a.width!=null&&(v=a.width),a.height!=null&&(c=a.height),this.dpr=a.devicePixelRatio||1,f.width=v*this.dpr,f.height=c*this.dpr,this._width=v,this._height=c;var h=new Fd(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[wi]=h,h.zlevel=wi,s.push(wi),this._domRoot=t}else{this._width=ls(t,0,a),this._height=ls(t,1,a);var u=this._domRoot=HH(this._width,this._height);t.appendChild(u)}}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,a,t,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,a=this._hoverlayer;if(a&&a.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<e;o++){var s=t[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(tb)),i||(i=a.ctx,i.save()),Wi(i,s,n,o===e-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(tb)},r.prototype.paintOne=function(t,e){aI(t,e)},r.prototype._paintList=function(t,e,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;hg(function(){l._paintList(t,e,a,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(wi).ctx,e=this._domRoot.width,a=this._domRoot.height;t.clearRect(0,0,e,a),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,a)})},r.prototype._doPaintList=function(t,e,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var f=!0,v=!1,c=function(p){var g=i[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,h._width,h._height),_=a?g.__startIndex:g.__drawIndex,S=!a&&g.incremental&&Date.now,x=S&&Date.now(),b=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,b,m);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||a)&&g.clear(!1,b,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(T=_;T<g.__endIndex;T++){var k=t[T];if(k.__inHover&&(v=!0),n._doPaintEl(k,g,o,L,P,T===g.__endIndex-1),S){var R=Date.now()-x;if(R>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,D=0;D<m.length;++D){var I=m[D];y.save(),y.beginPath(),y.rect(I.x*M,I.y*M,I.width*M,I.height*M),y.clip(),C(I),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},h=this,d=0;d<i.length;d++)c(d);return Et.wxa&&A(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:v}},r.prototype._doPaintEl=function(t,e,a,n,i,o){var s=e.ctx;if(a){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(Wi(s,t,i,o),t.setPrevPaintRect(l))}else Wi(s,t,i,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=wi);var a=this._layers[t];return a||(a=new Fd("zr_"+t,this,this.dpr),a.zlevel=t,a.__builtin__=!0,this._layerConfig[t]?mt(a,this._layerConfig[t],!0):this._layerConfig[t-kf]&&mt(a,this._layerConfig[t-kf],!0),e&&(a.virtual=e),this.insertLayer(t,a),a.initContext()),a},r.prototype.insertLayer=function(t,e){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[t]&&FH(e)){if(i>0&&t>n[0]){for(l=0;l<i-1&&!(n[l]<t&&n[l+1]>t);l++);s=a[n[l]]}if(n.splice(l+1,0,t),a[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];t.call(e,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},r.prototype.eachOtherLayer=function(t,e){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(v,c){v.__dirty=v.__used=!1});function e(v){i&&(i.__endIndex!==v&&(i.__dirty=!0),i.__endIndex=v)}if(this._singleCanvas)for(var a=1;a<t.length;a++){var n=t[a];if(n.zlevel!==t[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+GH,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?kf:0),this._needsManuallyCompositing),f.__builtin__||gm("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),i=f),n.__dirty&hr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(v,c){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var a=this._layerConfig;a[t]?mt(a[t],e,!0):a[t]=e;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===t||i===t+kf){var o=this._layers[i];mt(o,a[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,a=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],a.splice(yt(a,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=ls(i,0,n),e=ls(i,1,n),a.style.display="",this._width!==t||e!==this._height){a.style.width=t+"px",a.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(wi).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[wi].dom;var e=new Fd("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var a=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,i=e.dom.height;this.eachLayer(function(v){v.__builtin__?a.drawImage(v.dom,0,0,n,i):v.renderToCanvas&&(a.save(),v.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Wi(a,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const $H=WH;function UH(r){r.registerPainter("canvas",$H)}var YH=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return sn(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new it,n=de("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=de(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=z.color.neutral00,u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Kt);const ZH=YH;function Ts(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=Ss(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(Ss(r,t,e[o]));return i.join(" ")}}function A2(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!U(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var XH=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=de(e,-1,-1,2,2,null,s);l.attr({z2:rt(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=qH,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ja(this.childAt(0))},t.prototype.downplay=function(){Qa(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var c=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(d):kt(h,d,s,a),Br(h)}if(this._updateCommon(e,a,l,n,i),f){var h=this.childAt(0);if(!v){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Zt(h,d,s,a)}}v&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,v,c,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,c=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.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"),d=_.get("disabled"),p=Se(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=mo(e.getItemVisual(a,"symbolOffset"),n);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var b=e.getItemVisual(a,"style"),w=b.fill;if(s instanceof Be){var T=s.style;s.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},b))}else s.__isEmptyBrush?s.useStyle(H({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ce(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(k){return D?e.getName(k):Ts(e,k)}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=g==null||g===!0?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),Xt(this,c,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=ht(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Gn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Gn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Hs(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t}(it);function qH(r,t){this.parent.drift(r,t)}const Gu=XH;function Hd(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function eb(r){return r!=null&&!ut(r)&&(r={isIgnore:r}),r||{}}function rb(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Se(t),cursorStyle:t.get("cursor")}}var KH=function(){function r(t){this.group=new it,this._SymbolCtor=t||Gu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=eb(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=rb(t),u={disableAnimation:s},f=e.getSymbolPoint||function(v){return t.getItemLayout(v)};i||a.removeAll(),t.diff(i).add(function(v){var c=f(v);if(Hd(t,c,v,e)){var h=new o(t,v,l,u);h.setPosition(c),t.setItemGraphicEl(v,h),a.add(h)}}).update(function(v,c){var h=i.getItemGraphicEl(c),d=f(v);if(!Hd(t,d,v,e)){a.remove(h);return}var p=t.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(t,v,l,u),h.setPosition(d);else{h.updateData(t,v,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):kt(h,y,n)}a.add(h),t.setItemGraphicEl(v,h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&c.fadeOut(function(){a.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=rb(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=eb(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Hd(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Kn(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r}();const Fu=KH;function M2(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=jH(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=Y(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,h=t.getCalculationInfo("stackResultDimension");return Fn(t,v[0])&&(c=!0,v[0]=h),Fn(t,v[1])&&(c=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function jH(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:Lt(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function D2(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function JH(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function QH(r,t,e,a,n,i,o,s){for(var l=JH(r,t),u=[],f=[],v=[],c=[],h=[],d=[],p=[],g=M2(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,b=void 0,w=void 0;switch(S.cmd){case"=":b=S.idx*2,w=S.idx1*2;var T=y[b],C=y[b+1],M=m[w],D=m[w+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),u.push(T,C),f.push(M,D),v.push(e[b],e[b+1]),c.push(a[w],a[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=n.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);w=I*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var k=D2(g,n,t,I);v.push(k[0],k[1]),c.push(a[w],a[w+1]),p.push(t.getRawIndex(I));break;case"-":x=!1}x&&(h.push(S),d.push(d.length))}d.sort(function(ft,Dt){return p[ft]-p[Dt]});for(var R=u.length,O=ma(R),E=ma(R),B=ma(R),G=ma(R),F=[],_=0;_<d.length;_++){var W=d[_],X=_*2,J=W*2;O[X]=u[J],O[X+1]=u[J+1],E[X]=f[J],E[X+1]=f[J+1],B[X]=v[J],B[X+1]=v[J+1],G[X]=c[J],G[X+1]=c[J+1],F[_]=h[W]}return{current:O,next:E,stackedOnCurrent:B,stackedOnNext:G,status:F}}var pn=Math.min,gn=Math.max;function Ji(r,t){return isNaN(r)||isNaN(t)}function xy(r,t,e,a,n,i,o,s,l){for(var u,f,v,c,h,d,p=e,g=0;g<a;g++){var y=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Ji(y,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](y,m),v=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,b=t[x*2],w=t[x*2+1];b===y&&w===m&&g<a;)g++,x+=i,p+=i,b=t[x*2],w=t[x*2+1],y=t[p*2],m=t[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;Ji(b,w)&&T<a;)T++,x+=i,b=t[x*2],w=t[x*2+1];var C=.5,M=0,D=0,I=void 0,L=void 0;if(T>=a||Ji(b,w))h=y,d=m;else{M=b-u,D=w-f;var P=y-u,k=b-y,R=m-f,O=w-m,E=void 0,B=void 0;if(s==="x"){E=Math.abs(P),B=Math.abs(k);var G=M>0?1:-1;h=y-G*E*o,d=m,I=y+G*B*o,L=m}else if(s==="y"){E=Math.abs(R),B=Math.abs(O);var F=D>0?1:-1;h=y,d=m-F*E*o,I=y,L=m+F*B*o}else E=Math.sqrt(P*P+R*R),B=Math.sqrt(k*k+O*O),C=B/(B+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=pn(I,gn(b,y)),L=pn(L,gn(w,m)),I=gn(I,pn(b,y)),L=gn(L,pn(w,m)),M=I-y,D=L-m,h=y-M*E/B,d=m-D*E/B,h=pn(h,gn(u,y)),d=pn(d,gn(f,m)),h=gn(h,pn(u,y)),d=gn(d,pn(f,m)),M=y-h,D=m-d,I=y+M*B/E,L=m+D*B/E}r.bezierCurveTo(v,c,h,d,y,m),v=I,c=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var L2=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),t4=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new L2},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Ji(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Ji(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=xy(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=Da.CMD,s,l,u=a==="x",f=[],v=0;v<i.length;){var c=i[v++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=i[v++],l=i[v++];break;case o.L:if(h=i[v++],d=i[v++],_=u?(e-s)/(h-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[e,S]:[S,e]}s=h,l=d;break;case o.C:h=i[v++],d=i[v++],p=i[v++],g=i[v++],y=i[v++],m=i[v++];var x=u?Ev(s,h,p,y,e,f):Ev(l,d,g,m,e,f);if(x>0)for(var b=0;b<x;b++){var w=f[b];if(w<=1&&w>=0){var S=u?we(l,d,g,m,w):we(s,h,p,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(Ct),e4=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(L2),I2=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new e4},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Ji(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Ji(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=xy(e,n,o,s,s,1,a.smooth,l,a.connectNulls);xy(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t}(Ct);function P2(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=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 bt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),h=c.isHorizontal(),d=c.inverse;h?(d&&(v.shape.x+=l),v.shape.width=0):(d||(v.shape.y+=u),v.shape.height=0);var p=at(n)?function(g){n(g,v)}:null;Zt(v,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return v}function k2(r,t,e){var a=r.getArea(),n=fe(a.r0,1),i=fe(a.r,1),o=new Qe({shape:{cx:fe(r.cx,1),cy:fe(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Zt(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function Hu(r,t,e,a,n){if(r){if(r.type==="polar")return k2(r,t,e);if(r.type==="cartesian2d")return P2(r,t,e,a,n)}else return null;return null}function Wn(r,t){return r.type===t}function ab(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function nb(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function ib(r,t){var e=nb(r),a=e[0],n=e[1],i=nb(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function ob(r){return Lt(r)?r:r?.5:0}function r4(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=ma(a*2),i=0;i<a;i++){var o=D2(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function yn(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],v=[],c=[];if(n){for(l=0;l<r.length;l+=2){var h=t||r;!isNaN(h[l])&&!isNaN(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=(f[o]+v[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=v[1-o],s.push(u[0],u[1]),s.push(p[0],p[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 a4(r,t){var e=[],a=r.length,n,i;function o(f,v,c){var h=f.coord,d=(c-h)/(v.coord-h),p=FO(d,[f.color,v.color]);return{coord:c,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function n4(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=Y(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=a4(u,n==="x"?e.getWidth():e.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=10,p=c[0].coord-d,g=c[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-p)/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 Os(0,0,0,0,c,!0);return m[n]=p,m[n+"2"]=g,m}}}function i4(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&o4(i,t))){var o=t.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function o4(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(Gu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function s4(r,t){return isNaN(r)||isNaN(t)}function l4(r){for(var t=r.length/2;t>0&&s4(r[t*2-2],r[t*2-1]);t--);return t-1}function sb(r,t){return[r[t*2],r[t*2+1]]}function u4(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function R2(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Je.length;t++)if(r.get([Je[t],"endLabel","show"]))return!0;return!1}function Wd(r,t,e,a){if(Wn(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=R2(a)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=P2(t,e,a,function(){var h=r._endLabel;h&&e&&s.originalX!=null&&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+=c*2):(v.x-=c,v.width+=c*2)}return l&&l(1,f),f}else return k2(t,e,a)}function f4(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.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}}}var v4=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new it,a=new Fu;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=j(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],v=i.type==="polar",c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!a.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=M2(i,s,_),x=m&&r4(i,s,S),b=e.get("showSymbol"),w=e.get("connectNulls"),T=b&&!v&&i4(e,s,i),C=this._data;C&&C.eachItemGraphicEl(function(ft,Dt){ft.__temp&&(o.remove(ft),C.setItemGraphicEl(Dt,null))}),b||h.remove(),o.add(g);var M=v?!1:e.get("step"),D;i&&i.getArea&&e.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=n4(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===i.type&&M===this._step))b&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ft){return[f[ft*2],f[ft*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),M&&(x&&(x=yn(x,f,i,M,w)),f=yn(f,null,i,M,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,x):p&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,so(I)),g.setClipPath(Wd(this,i,!0,e));else{m&&!p?p=this._newPolygon(f,x):p&&!m&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(e,i,so(I));var L=g.getClipPath();if(L){var P=Wd(this,i,!1,e);Zt(L,{shape:P.shape},e)}else g.setClipPath(Wd(this,i,!0,e));b&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ft){return[f[ft*2],f[ft*2+1]]}}),(!ab(this._stackedOnPoints,x)||!ab(this._points,f))&&(y?this._doUpdateAnimation(s,x,i,n,M,_,w):(M&&(x&&(x=yn(x,f,i,M,w)),f=yn(f,null,i,M,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:x})))}var k=e.getModel("emphasis"),R=k.get("focus"),O=k.get("blurScope"),E=k.get("disabled");if(d.useStyle(lt(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),_e(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}ht(d).seriesIndex=e.seriesIndex,Xt(d,R,O,E);var G=ob(e.get("smooth")),F=e.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:F,connectNulls:w}),p){var W=s.getCalculationInfo("stackedOnSeries"),X=0;p.useStyle(lt(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),W&&(X=ob(W.get("smooth"))),p.setShape({smooth:G,stackedOnSmooth:X,smoothMonotone:F,connectNulls:w}),_e(p,e,"areaStyle"),ht(p).seriesIndex=e.seriesIndex,Xt(p,R,O,E)}var J=this._changePolyState;s.eachItemGraphicEl(function(ft){ft&&(ft.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=s,this._coordSys=i,this._stackedOnPoints=x,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){ht(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=ro(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],v=l[s*2+1];if(isNaN(f)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var c=e.get("zlevel")||0,h=e.get("z")||0;u=new Gu(o,s),u.x=f,u.y=v,u.setZ(c,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Ut.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=ro(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Ut.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Uv(this._polyline,e),a&&Uv(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new t4({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new I2({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");at(f)&&(f=f(null));var v=u.get("animationDelay")||0,c=at(v)?v(null):v;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,x=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,m=S.r,_=x[0])}else{var b=n;i?(y=b.x,m=b.x+b.width,_=h.x):(y=b.y+b.height,m=b.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=at(v)?v(d):f*w+c,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(R2(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Pt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=l4(l);f>=0&&(Ce(s,Se(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(v,c,h){return h!=null?A2(o,h):Ts(o,v)},enableTextSetter:!0},f4(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=s.get("precision"),p=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?p:0)*(m?-1:1),b=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=u4(v,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=sb(v,C[0]);u.attr({x:I[0]+x,y:I[1]+b}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+x,y:I[1]+b});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=FM(n,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var k=e===1||i.lastFrameIndex>0?C[0]:0,I=sb(v,k);o&&(D=c.getRawValue(k)),u.attr({x:I[0]+x,y:I[1]+b})}if(o){var R=Bs(u);typeof R.setLabelText=="function"&&R.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,v=e.hostModel,c=QH(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=yn(c.stackedOnCurrent,c.current,n,o,l),h=yn(c.current,null,n,o,l),g=yn(c.stackedOnNext,c.next,n,o,l),p=yn(c.next,null,n,o,l)),ib(h,p)>3e3||f&&ib(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=h;var y={shape:{points:p}};c.current!==h&&(y.shape.__points=c.next),u.stopAnimation(),kt(u,y,v),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),kt(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++){var x=_[S].cmd;if(x==="="){var b=e.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,T=0;T<m.length;T++){var C=m[T].el,M=m[T].ptIdx*2;C.x=w[M],C.y=w[M+1],C.markRedraw()}})},t.prototype.remove=function(e){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},t.type="line",t}(Ut);const c4=v4;function Wu(r,t){return{seriesType:r,plan:Gs(),reset:function(e){var a=e.getData(),n=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(n){var s=Y(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Fn(a,s[0])&&(s[0]=u),Fn(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,d){for(var p=h.end-h.start,g=o&&ma(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){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]):d.setItemLayout(_,x.slice())}o&&d.setLayout("points",g)}}}}}}var h4={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},d4=function(r){return Math.round(r.length/2)};function E2(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&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){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;K(i)?d=h4[i]:at(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/h,d,d4))}}}}}function p4(r){r.registerChartView(c4),r.registerSeriesModel(ZH),r.registerLayout(Wu("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,E2("line"))}var O2=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return sn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(c,h){if(c.type==="category"&&a!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,x=0;x<d.length;x++){var b=d[x].coord,w=x===d.length-1?d[x-1].tickValue+S:d[x].tickValue;if(w===g){_=b;break}else if(w<g)m=b;else if(m!=null&&w>g){_=(b+m)/2;break}x===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[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]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t}(Kt);Kt.registerClass(O2);const cc=O2;var g4=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return sn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=jn(cc.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:z.color.primary,borderWidth:2}},realtimeSort:!1}),t}(cc);const y4=g4;var m4=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),_4=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new m4},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,v=a.endAngle,c=a.clockwise,h=Math.PI*2,d=c?v-f<h:f-v<h;d||(f=v-(c?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(v),m=Math.sin(v);d?(e.moveTo(p*o+n,g*o+i),e.arc(p*u+n,g*u+i,l,-Math.PI+f,f,!c)):e.moveTo(p*s+n,g*s+i),e.arc(n,i,s,f,v,!c),e.arc(y*u+n,m*u+i,l,v-Math.PI*2,v-Math.PI,!c),o!==0&&e.arc(n,i,o,v,f,c)},t}(Ct);const hc=_4;function S4(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Gv(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,v=u.cy,c=u.r,h=u.r0,d=(c+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=e?Math.abs(c-h)/2:0,_=Math.cos,S=Math.sin,x=f+c*_(p),b=v+c*S(p),w="left",T="top";switch(s){case"startArc":x=f+(h-l)*_(y),b=v+(h-l)*S(y),w="center",T="top";break;case"insideStartArc":x=f+(h+l)*_(y),b=v+(h+l)*S(y),w="center",T="bottom";break;case"startAngle":x=f+d*_(p)+Rf(p,l+m,!1),b=v+d*S(p)+Ef(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":x=f+d*_(p)+Rf(p,-l+m,!1),b=v+d*S(p)+Ef(p,-l+m,!1),w="left",T="middle";break;case"middle":x=f+d*_(y),b=v+d*S(y),w="center",T="middle";break;case"endArc":x=f+(c+l)*_(y),b=v+(c+l)*S(y),w="center",T="bottom";break;case"insideEndArc":x=f+(c-l)*_(y),b=v+(c-l)*S(y),w="center",T="top";break;case"endAngle":x=f+d*_(g)+Rf(g,l+m,!0),b=v+d*S(g)+Ef(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":x=f+d*_(g)+Rf(g,-l+m,!0),b=v+d*S(g)+Ef(g,-l+m,!0),w="right",T="middle";break;default:return Gv(a,n,i)}return a=a||{},a.x=x,a.y=b,a.align=w,a.verticalAlign=T,a}}function x4(r,t,e,a){if(Lt(a)){r.setTextConfig({rotation:a});return}else if(U(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);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:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Rf(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Ef(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Sa(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;U(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Y(a,function(i){return jr(i,n)})}}var $d=Math.max,Ud=Math.min;function b4(r,t){var e=r.getArea&&r.getArea();if(Wn(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var w4=function(r){N(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),v;u.type==="cartesian2d"?v=f.isHorizontal():u.type==="polar"&&(v=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,h=T4(e,u);h&&this._enableRealtimeSort(h,s,n);var d=e.get("clip",!0)||h,p=b4(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],x=this._backgroundEls,b=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(D){var I=Of[u.type](s,D);if(!I)return null;var L=P4(u,v,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=Of[u.type](s,D,I);if(L&&(y&&T(D),!(!s.hasValue(D)||!cb[u.type](L)))){var P=!1;d&&(P=lb[u.type](p,L));var k=ub[u.type](e,s,D,L,v,c,f.model,!1,g);h&&(k.forceLabelAnimation=!0),hb(k,s,D,I,L,e,v,u.type==="polar"),b?k.attr({shape:L}):h?fb(h,c,k,L,D,v,!1,!1):Zt(k,{shape:L},e,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=Of[u.type](s,D,L);if(P){if(y){var k=void 0;x.length===0?k=T(I):(k=x[I],k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),S[D]=k);var R=Of[u.type](s,D),O=B2(v,R,u);kt(k,{shape:O},c,D)}var E=l.getItemGraphicEl(I);if(!s.hasValue(D)||!cb[u.type](P)){o.remove(E);return}var B=!1;d&&(B=lb[u.type](p,P),B&&o.remove(E));var G=E&&(E.type==="sector"&&g||E.type==="sausage"&&!g);if(G&&(E&&Ua(E,e,I),E=null),E?Br(E):E=ub[u.type](e,s,D,P,v,c,f.model,!0,g),h&&(E.forceLabelAnimation=!0),w){var F=E.getTextContent();if(F){var W=Bs(F);W.prevValue!=null&&(W.prevValue=W.value)}}else hb(E,s,D,L,P,e,v,u.type==="polar");b?E.attr({shape:P}):h?fb(h,c,E,P,D,v,!0,w):kt(E,{shape:P},e,D,null),s.setItemGraphicEl(D,E),E.ignore=B,o.add(E)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Ua(I,e,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new it);C.removeAll();for(var M=0;M<S.length;++M)C.add(S[M]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),pb(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),pb(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&Hu(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,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)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Y(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:a(e.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},t.prototype._isOrderDifferentInView=function(e,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(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){Ua(i,e,ht(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Ut),lb={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=$d(t.x,r.x),s=Ud(t.x+t.width,n),l=$d(t.y,r.y),u=Ud(t.y+t.height,i),f=s<o,v=u<l;return t.x=f&&o>n?s:o,t.y=v&&l>i?u:l,t.width=f?0:s-o,t.height=v?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||v},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=Ud(t.r,r.r),i=$d(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},ub={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new bt({shape:H({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,v=n?"height":"width";f[v]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?hc:Qe,f=new u({shape:a,z2:1});f.name="item";var v=N2(n);if(f.calculateTextPosition=S4(v,{isRoundCap:u===hc}),i){var c=f.shape,h=n?"r":"endAngle",d={};c[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?kt:Zt)(f,{shape:d},i)}return f}};function T4(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function fb(r,t,e,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?kt:Zt)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?kt:Zt)(e,{shape:u},f,n)}function vb(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var C4=["x","y","width","height"],A4=["cx","cy","r","startAngle","endAngle"],cb={cartesian2d:function(r){return!vb(r,C4)},polar:function(r){return!vb(r,A4)}},Of={cartesian2d:function(r,t,e){var a=r.getItemLayout(t);if(!a)return null;var n=e?D4(e,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,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function M4(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function N2(r){return function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}}(r)}function hb(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Sa(a.getModel("itemStyle"),f,!0);H(f,v),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>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Se(a);Ce(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Ts(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,x4(r,g==="outside"?h:g,N2(o),a.get(["label","rotate"]))}GD(p,d,i.getRawValue(e),function(m){return A2(t,m)});var y=a.getModel(["emphasis"]);Xt(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),_e(r,a),M4(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function D4(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var L4=function(){function r(){}return r}(),db=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new L4},t.prototype.buildPath=function(e,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],e.rect(s[0],s[1],l[0],l[1])},t}(Ct);function pb(r,t,e,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");if(u){var f=new db({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var v=new db({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(n.getVisual("style")),v.style.stroke=null,ht(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",gb),v.on("mousemove",gb)),e&&e.push(v)}var gb=c0(function(r){var t=this,e=I4(t,r.offsetX,r.offsetY);ht(t).dataIndex=e>=0?e:null},30,!1);function I4(r,t,e){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=f*3;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]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function B2(r,t,e){if(Wn(e,"cartesian2d")){var a=t,n=e.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}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function P4(r,t,e){var a=r.type==="polar"?Qe:bt;return new a({shape:B2(t,e,r),silent:!0,z2:0})}const k4=w4;function R4(r){r.registerChartView(k4),r.registerSeriesModel(y4),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,gt(BI,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zI("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,E2("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var yb=Math.PI*2,Nf=Math.PI/180;function E4(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=sL(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=o.viewRect,c=-a.get("startAngle")*Nf,h=a.get("endAngle"),d=a.get("padAngle")*Nf;h=h==="auto"?c-yb:-h*Nf;var p=a.get("minAngle")*Nf,g=p+d,y=0;n.each(i,function(O){!isNaN(O)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),x=a.get("roseType"),b=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[c,h],M=T*d/2;Kc(C,!S),c=C[0],h=C[1];var D=z2(a);D.startAngle=c,D.endAngle=h,D.clockwise=S,D.cx=s,D.cy=l,D.r=u,D.r0=f;var I=Math.abs(h-c),L=I,P=0,k=c;if(n.setLayout({viewRect:v,r:u}),n.each(i,function(O,E){var B;if(isNaN(O)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:x?NaN:u});return}x!=="area"?B=m===0&&b?_:O*_:B=I/y,B<g?(B=g,L-=g):P+=O;var G=k+T*B,F=0,W=0;d>B?(F=k+T*B/2,W=F):(F=k+M,W=G-M),n.setItemLayout(E,{angle:B,startAngle:F,endAngle:W,clockwise:S,cx:s,cy:l,r0:f,r:x?Nt(O,w,[f,u]):u}),k=G}),L<yb&&y)if(L<=.001){var R=I/y;n.each(i,function(O,E){if(!isNaN(O)){var B=n.getItemLayout(E);B.angle=R;var G=0,F=0;R<d?(G=c+T*(E+1/2)*R,F=G):(G=c+T*E*R+M,F=c+T*(E+1)*R-M),B.startAngle=G,B.endAngle=F}})}else _=L/P,k=c,n.each(i,function(O,E){if(!isNaN(O)){var B=n.getItemLayout(E),G=B.angle===g?g:O*_,F=0,W=0;G<d?(F=k+T*G/2,W=F):(F=k+M,W=k+T*G-M),B.startAngle=F,B.endAngle=W,k+=T*G}})})}var z2=wt();function $s(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.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})}}}}var O4=Math.PI/180;function mb(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),x=a+_.len,b=x*x,w=Math.sqrt(Math.abs((1-S*S/y)*b)),T=t+(w+_.len2)*n,C=T-_.label.x,M=_.targetTextWidth-C*n;V2(_,M,!0),_.label.x=T}}function v(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,x=Math.abs(_.label.y-e);if(x>=S.maxY){var b=_.label.x-t-_.len2*n,w=a+_.len,T=Math.abs(b)<w?Math.sqrt(x*x/(1-b*b/w/w)):w;S.rB=T,S.maxY=x}S.list.push(_)}f(g),f(y)}for(var c=r.length,h=0;h<c;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}yy(r,1,l,l+o)&&v(r)}function N4(r,t,e,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;Yd(r[c])||(h.x<t?(f=Math.min(f,h.x),l.push(r[c])):(v=Math.max(v,h.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Yd(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<t?g=f-o-d.bleedMargin:g=o+n-v-d.bleedMargin:h.x<t?g=h.x-o-d.bleedMargin:g=o+n-h.x-d.bleedMargin,d.targetTextWidth=g,V2(d,g,!1)}}mb(u,t,e,a,1,n,i,o,s,v),mb(l,t,e,a,-1,n,i,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Yd(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,x=d.rect.width+S,b=p[1][0]-p[2][0];y?h.x<t?p[2][0]=o+d.edgeDistance+x+d.labelDistance:p[2][0]=o+n-d.edgeDistance-x-d.labelDistance:(h.x<t?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+b),p[1][1]=p[2][1]=h.y}}}function V2(r,t,e){if(r.labelStyleWidth==null){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(t<f||e){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var c=t-l,h=t<f?c:e?c>r.unconstrainedWidth?null:c:null;a.setStyle("width",h)}G2(i,a)}}}function G2(r,t){_b.rect=r,u2(_b,t,B4)}var B4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},_b={};function Yd(r){return r.position==="center"}function z4(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*O4,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,v=s.y,c=s.height;function h(b){b.ignore=!0}function d(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}t.each(function(b){var w=t.getItemGraphicEl(b),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(b),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),k=I.get("alignTo"),R=q(I.get("edgeDistance"),u),O=I.get("bleedMargin");O==null&&(O=Math.min(u,c)>200?10:2);var E=D.getModel("labelLine"),B=E.get("length");B=q(B,u);var G=E.get("length2");if(G=q(G,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,h),C.ignore=!0,M&&(A(M.states,h),M.ignore=!0);return}if(d(C)){var F=(T.startAngle+T.endAngle)/2,W=Math.cos(F),X=Math.sin(F),J,ft,Dt,zt;a=T.cx,n=T.cy;var ct=L==="inside"||L==="inner";if(L==="center")J=T.cx,ft=T.cy,zt="center";else{var V=(ct?(T.r+T.r0)/2*W:T.r*W)+a,$=(ct?(T.r+T.r0)/2*X:T.r*X)+n;if(J=V+W*3,ft=$+X*3,!ct){var Z=V+W*(B+l-T.r),tt=$+X*(B+l-T.r),At=Z+(W<0?-1:1)*G,pt=tt;k==="edge"?J=W<0?f+R:f+u-R:J=At+(W<0?-P:P),ft=pt,Dt=[[V,$],[Z,tt],[At,pt]]}zt=ct?"center":k==="edge"?W>0?"right":"left":W>0?"left":"right"}var xt=Math.PI,Vt=0,re=I.get("rotate");if(Lt(re))Vt=re*(xt/180);else if(L==="center")Vt=0;else if(re==="radial"||re===!0){var Ye=W<0?-F+xt:-F;Vt=Ye}else if(re==="tangential"&&L!=="outside"&&L!=="outer"){var ze=Math.atan2(W,X);ze<0&&(ze=xt*2+ze);var ka=X>0;ka&&(ze=xt+ze),Vt=ze-xt}if(i=!!Vt,C.x=J,C.y=ft,C.rotation=Vt,C.setStyle({verticalAlign:"middle"}),ct){C.setStyle({align:zt});var To=C.states.select;To&&(To.x+=C.x,To.y+=C.y)}else{var Ra=new vt(0,0,0,0);G2(Ra,C),e.push({label:C,labelLine:M,position:L,len:B,len2:G,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new st(W,X),linePoints:Dt,textAlign:zt,labelDistance:P,labelAlignTo:k,edgeDistance:R,bleedMargin:O,rect:Ra,unconstrainedWidth:Ra.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:ct})}}),!i&&r.get("avoidLabelOverlap")&&N4(e,a,n,l,u,c,f,v);for(var p=0;p<e.length;p++){var g=e[p],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):(o2(x,g.minTurnAngle),YF(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new st(x[0][0],x[0][1])})}}}var V4=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new Pt;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),f=e.getItemLayout(a),v=H(Sa(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var c=s.getShallow("animationType");s.ecModel.ssr?(Zt(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):c==="scale"?(o.shape.r=f.r0,Zt(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Zt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,kt(o,{shape:{endAngle:f.endAngle}},s,a))}else Br(o),kt(o,{shape:v},s,a);o.useStyle(e.getItemVisual(a,"style")),_e(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=H({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Sa(u.getModel("itemStyle"),f)),H(o.ensureState("select"),{x:p,y:g,shape:Sa(l.getModel(["select","itemStyle"]),f)}),H(o.ensureState("blur"),{shape:Sa(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&H(m.ensureState("select"),{x:p,y:g}),H(_.ensureState("select"),{x:p,y:g}),Xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,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;Ce(i,Se(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.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(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ue,this.setTextGuideLine(h)),C0(this,A0(o),{stroke:u,opacity:gr(s.get(["lineStyle","opacity"]),f,1)})}},t}(Qe),G4=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;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),o.count()===0&&e.get("showEmptyCircle")){var c=z2(e),h=new Qe({shape:nt(c)});h.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new V4(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);Ua(p,e,d)}).execute(),z4(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Ut);const F4=G4;function Us(r,t,e){t=U(t)&&{coordDimensions:t}||H({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=zu(a,t).dimensions,i=new je(n,r);return i.initData(a,e),i}var H4=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r}();const Ys=H4;var W4=wt(),F2=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Us(this,{coordDimensions:["value"],encodeDefaulter:gt(a0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=W4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=DN(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){eo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t}(Kt);AV({fullType:F2.type,getCoord2:function(r){return r.getShallow("center")}});const $4=F2;function U4(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Lt(o)&&!isNaN(o)&&o<0)})}}}function Y4(r){r.registerChartView(F4),r.registerSeriesModel($4),tI("pie",r.registerAction),r.registerLayout(gt(E4,"pie")),r.registerProcessor($s("pie")),r.registerProcessor(U4("pie"))}var Z4=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return sn(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:z.color.primary}},universalTransition:{divideShape:"clone"}},t}(Kt);const X4=Z4;var H2=4,q4=function(){function r(){}return r}(),K4=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.getDefaultShape=function(){return new q4},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&i[0]<H2,f=this.softClipShape,v;if(u){this._ctx=l;return}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(e,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,a=e.points,n=e.size,i=this._ctx,o=this.softClipShape,s;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)}},t.prototype.findDataIndex=function(e,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=u*2,v=i[f]-s/2,c=i[f+1]-l/2;if(e>=v&&a>=c&&e<=v+s&&a<=c+l)return u}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){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++],d=n[c++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),v=Math.max(d,v)}e=this._rect=new vt(l-o/2,u-s/2,f-l+o,v-u+s)}return e},t}(Ct),j4=function(){function r(){this.group=new it}return r.prototype.updateData=function(t,e){this._clear();var a=this._create();a.setShape({points:t.getLayout("points")}),this._setCommon(a,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;e=new Float32Array(e.buffer,i,n)}a.setShape("points",e),a.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,a){var n=this._newAdded[0],i=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,e,a)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new K4({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;a=a||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=a.clipShape||null,t.symbolProxy=de(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<H2;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=ht(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var v=t.hoverDataIdx;v>=0&&(u.dataIndex=v+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const J4=j4;var Q4=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateSymbolDraw(i,e);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._symbolDraw.incrementalUpdate(e,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=e.end===a.getData().count()},t.prototype.updateTransform=function(e,a,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Wu("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var a=e.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new J4:new Fu,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Ut);const tW=Q4;var W2={left:0,right:0,top:0,bottom:0},dc=["25%","25%"],eW=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=go(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&La(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&La(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:W2,outerBoundsContain:"all",outerBoundsClampWidth:dc[0],outerBoundsClampHeight:dc[1],backgroundColor:z.color.transparent,borderWidth:1,borderColor:z.color.neutral30},t}(It);const rW=eW;var by=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ee).models[0]},t.type="cartesian2dAxis",t}(It);pe(by,Vu);var $2={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:z.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:z.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:z.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[z.color.backgroundTint,z.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:z.color.neutral00,borderColor:z.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},aW=mt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},$2),k0=mt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:z.color.axisMinorSplitLine,width:1}}},$2),nW=mt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},k0),iW=lt({logBase:10},k0);const U2={category:aW,value:k0,time:nW,log:iW};var oW={value:1,category:1,time:1,log:1},wy=null;function sW(r){wy||(wy=r)}function $u(){return wy}function Cs(r,t,e,a){A(oW,function(n,i){var o=mt(mt({},U2[i],!0),a,!0),s=function(l){N(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var c=fu(this),h=c?go(f):{},d=v.getTheme();mt(f,d.get(i+"Axis")),mt(f,this.getDefaultOption()),f.type=Sb(f),c&&La(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=gu.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=$u();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Sb)}function Sb(r){return r.type||(r.data?"category":"value")}var lW=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return Y(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Bt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const uW=lW;var Ty=["x","y"];function xb(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var fW=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ty,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!xb(e)||!xb(a))){var n=e.getExtent(),i=a.getExtent(),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,c=o[0]-n[0]*f,h=o[1]-i[0]*v,d=this._transform=[f,0,0,v,c,h];this._invTransform=Kr([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new vt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return se(n,e,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},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=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},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return se(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new vt(i,o,s,l)},t}(uW),vW=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ea);const Y2=vW;var gh="expandAxisBreak",Z2="collapseAxisBreak",X2="toggleAxisBreak",R0="axisbreakchanged",cW={type:gh,event:R0,update:"update",refineEvent:E0},hW={type:Z2,event:R0,update:"update",refineEvent:E0},dW={type:X2,event:R0,update:"update",refineEvent:E0};function E0(r,t,e,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function pW(r){r.registerAction(cW,t),r.registerAction(hW,t),r.registerAction(dW,t);function t(e,a){var n=[],i=cs(a,e);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(e);A(f.breaks,function(v){var c;n.push(lt((c={},c[l]=u.componentIndex,c),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var Ln=Math.PI,gW=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],yW=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],As=wt(),q2=wt(),K2=function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r}();function mW(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=O0(r.axisName)&&ws(r.nameLocation);A(a,function(d){var p=Ia(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?Kr(ul,g.transform):Hc(ul),p.transform&&xa(ul,ul,p.transform),vt.copy(Bf,p.localRect),Bf.applyTransform(ul),s?s.union(Bf):vt.copy(s=new vt(0,0,0,0),Bf))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.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 vt(c,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var ul=Ie(),Bf=new vt(0,0,0,0),j2=function(r,t,e,a,n,i){if(ws(r.nameLocation)){var o=i.stOccupiedRect;o&&J2(qF({},o,i.transGroup.transform),a,n)}else Q2(i.labelInfoList,i.dirVec,a,n)};function J2(r,t,e){var a=new st;dh(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&py(t,a)}function Q2(r,t,e,a){for(var n=st.dot(a,t)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||J2(s,e,a)}}var Qi=function(){function r(t,e,a,n){this.group=new it,this._axisModel=t,this._api=e,this._local={},this._shared=n||new K2(j2),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,a=e.getDefaultOption?e.getDefaultOption():{},n=rt(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=rt(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:rt(t.nameDirection,1),tickDirection:rt(t.tickDirection,1),labelDirection:rt(t.labelDirection,1),labelOffset:rt(t.labelOffset,0),silent:rt(t.silent,!0),axisName:n,nameLocation:gr(e.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:O0(n)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new it({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new st(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var a=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(_W,function(n){t[n]&&SW[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,e||{})}),this},r.innerTextLayout=function(t,e,a){var n=IM(e-t),i,o;return au(n)?(o=a>0?"top":"bottom",i="center"):au(n-Ln)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Ln?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),_W=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],SW={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],v=[l[1],0],c=f[0]>v[0];u&&(se(f,f,u),se(v,v,u));var h=H({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())$u().buildAxisBreakLine(a,n,i,d);else{var p=new me(H({shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]}},d));_s(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);K(g)&&(g=[g,g]),(K(y)||Lt(y))&&(y=[y,y]);var m=mo(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];A([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-v[0])*(f[0]-v[0])+(f[1]-v[1])*(f[1]-v[1]))}],function(x,b){if(g[b]!=="none"&&g[b]!=null){var w=de(g[b],-_/2,-S/2,_,S,h.stroke,!0),T=x.r+x.offset,C=c?v:f;w.attr({rotation:x.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=wb(t,n,s);l&&bb(r,t,e,a,n,i,o,Jr.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=wb(t,n,s);l&&bb(r,t,e,a,n,i,o,Jr.determine);var u=TW(r,n,i,a);wW(r,t.labelLayoutList,u),CW(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(O0(u)){var f=r.nameLocation,v=r.nameDirection,c=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,g=new st(0,0),y=new st(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+v*h,y.y=v);var m=Ie();y.transform(Xn(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Ln/180);var S,x;ws(f)?S=Qi.innerTextLayout(r.rotation,_??r.rotation,v):(S=xW(r.rotation,f,_||0,d),x=r.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(S.rotation)),!isFinite(x)&&(x=null)));var b=c.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Oe(r.raw.nameTruncateMaxWidth,w.maxWidth,x),M=s.nameMarginLevel||0,D=new Pt({x:g.x,y:g.y,rotation:S.rotation,silent:Qi.isLabelSilent(a),style:$t(c,{text:u,font:b,overflow:"truncate",width:C,ellipsis:T,fill:c.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(on({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=Qi.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,ht(D).eventData=I}i.add(D),D.updateTransform(),t.nameEl=D;var L=l.nameLayout=Ia({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:ws(f)?gW[M]:yW[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var P=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,y,P)}}}};function bb(r,t,e,a,n,i,o,s){eP(t)||AW(r,t,n,s,a,o);var l=t.labelLayoutList;MW(r,a,l,i),IW(a,r.rotation,l);var u=r.optionHideOverlap;bW(a,l,u),u&&f2(Bt(l,function(f){return f&&!f.label.ignore})),mW(r,e,a,l)}function xW(r,t,e,a){var n=IM(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return au(n-Ln/2)?(o=l?"bottom":"top",i="center"):au(n-Ln*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Ln*1.5&&n>Ln/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function bW(r,t,e){if(ZI(r.axis))return;function a(s,l,u){var f=Ia(t[l]),v=Ia(t[u]);if(!(!f||!v)){if(s===!1||f.suggestIgnore){Rl(f.label);return}if(v.suggestIgnore){Rl(v.label);return}var c=.1;if(!e){var h=[0,0,0,0];f=gy({marginForce:h},f),v=gy({marginForce:h},v)}dh(f,v,null,{touchThreshold:c})&&Rl(s?v.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function wW(r,t,e){r.showMinorTicks||A(t,function(a){if(a&&a.label.ignore)for(var n=0;n<e.length;n++){var i=e[n],o=q2(i),s=As(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Rl(i);return}}})}function Rl(r){r&&(r.ignore=!0)}function tP(r,t,e,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]=e,t&&(se(o,o,t),se(s,s,t));var f=new me({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});_s(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var v=q2(f);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function TW(r,t,e,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=tP(u,e.transform,l,lt(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)t.add(f[v]);return f}function CW(r,t,e,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=lt(l.getLineStyle(),lt(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var c=tP(s[v],e.transform,u,f,"minorticks_"+v),h=0;h<c.length;h++)t.add(c[h])}}function wb(r,t,e){if(eP(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(t.remove(r.labelGroup),Cy(r,null,null,null))}return!0}function AW(r,t,e,a,n,i){var o=n.axis,s=Oe(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new it;e.add(l);var u=oc(a);if(!s||o.scale.isBlank()){Cy(t,[],l,u);return}var f=n.getModel("axisLabel"),v=o.getViewLabels(u),c=(Oe(r.raw.labelRotate,f.get("rotate"))||0)*Ln/180,h=Qi.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],g=n.get("triggerEvent"),y=1/0,m=-1/0;A(v,function(S,x){var b,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,T=S.formattedLabel,C=S.rawLabel,M=f;if(d&&d[w]){var D=d[w];ut(D)&&D.textStyle&&(M=new Rt(D.textStyle,f,n.ecModel))}var I=M.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=M.getShallow("align",!0)||h.textAlign,P=rt(M.getShallow("alignMinLabel",!0),L),k=rt(M.getShallow("alignMaxLabel",!0),L),R=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||h.textVerticalAlign,O=rt(M.getShallow("verticalAlignMinLabel",!0),R),E=rt(M.getShallow("verticalAlignMaxLabel",!0),R),B=10+(((b=S.time)===null||b===void 0?void 0:b.level)||0);y=Math.min(y,B),m=Math.max(m,B);var G=new Pt({x:0,y:0,rotation:0,silent:Qi.isLabelSilent(n),z2:B,style:$t(M,{text:T,align:x===0?P:x===v.length-1?k:L,verticalAlign:x===0?O:x===v.length-1?E:R,fill:at(I)?I(o.type==="category"?C:o.type==="value"?w+"":w,x):I})});G.anid="label_"+w;var F=As(G);if(F.break=S.break,F.tickValue=w,F.layoutRotation=h.rotation,on({el:G,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return G.isTruncated},value:C,tickIndex:x}}),g){var W=Qi.makeAxisEventDataBase(n);W.targetType="axisLabel",W.value=C,W.tickIndex=x,S.break&&(W.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(W.dataIndex=w),ht(G).eventData=W,S.break&&LW(n,i,G,S.break)}p.push(G),l.add(G)});var _=Y(p,function(S){return{label:S,priority:As(S).break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});Cy(t,_,l,u)}function eP(r){return!!r.labelLayoutList}function Cy(r,t,e,a){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=a}function MW(r,t,e,a){var n=t.get(["axisLabel","margin"]);A(e,function(i,o){var s=Ia(i);if(s){var l=s.label,u=As(l);s.suggestIgnore=l.ignore,l.ignore=!1,Vv(Ba,DW),Ba.x=t.axis.dataToCoord(u.tickValue),Ba.y=r.labelOffset+r.labelDirection*n,Ba.rotation=u.layoutRotation,a.add(Ba),Ba.updateTransform(),a.remove(Ba),Ba.decomposeTransform(),Vv(l,Ba),l.markRedraw(),fc(s,!0),Ia(s)}})}var Ba=new bt,DW=new bt;function O0(r){return!!r}function LW(r,t,e,a){e.on("click",function(n){var i={type:gh,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function IW(r,t,e){var a=ve();if(a){var n=a.retrieveAxisBreakPairs(e,function(o){return o&&As(o.label).break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&A(n,function(o){$u().adjustBreakLabelPair(r.axis.inverse,t,[Ia(e[o[0]]),Ia(e[o[1]])])})}}const en=Qi;function pc(r,t,e){e=e||{};var a=t.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=t.get("offset")||0,c=l==="x"?[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=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?c[f[o]]-c[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Oe(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function PW(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Tb(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,ee).models[0];t[a]=i}),t}function kW(r,t,e,a,n,i){for(var o=pc(r,e),s=!1,l=!1,u=0;u<t.length;u++)fy(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new en(e,a,o,n)}function RW(r,t,e){var a=pc(t,e);r.updateCfg(a)}function rP(r,t,e){var a=Hn.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(e),l=YI(r,t),u=l.extent,f=l.fixMin,v=l.fixMax;r.type==="log"&&(u=vy(r.base,u,!0)),r.setBreaksFromOption(XI(t)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:v});var c=a.getExtent.call(r);f&&(u[0]=c[0]),v&&(u[1]=c[1]);var h=a.getInterval.call(r),d=u[0],p=u[1];if(f&&v)h=(p-d)/o;else if(f)for(p=u[0]+h*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)h=Pd(h),p=u[0]+h*o;else if(v)for(d=u[1]-h*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)h=Pd(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=Pd(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=fe(p-y),d<0&&u[0]>=0?(d=0,p=fe(y)):p>0&&u[1]<=0&&(p=0,d=-fe(y))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+h*m,p+h*_),a.setInterval.call(r,h),(m||_)&&a.setNiceExtent.call(r,d+h,p-h)}var Cb=[[3,1],[0,2]],EW=function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ty,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Mt(o),u=l.length;if(u){for(var f=[],v=u-1;v>=0;v--){var c=+l[v],h=o[c],d=h.model,p=h.scale;fy(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(bs(p,d),fy(p)&&(s=h))}f.length&&(s||(s=f.pop(),bs(s.scale,s.model)),A(f,function(g){rP(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Ab(a,"y",o,i)}),A(a.y,function(o){Ab(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=xe(t,e),i=this._rect=qt(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Ay(o,i),!a){var u=BW(i,s,o,l,e),f=void 0;if(l)My?(My(this._axesList,i),Ay(o,i)):f=Lb(i.clone(),"axisLabel",null,i,o,u,n);else{var v=zW(t,i,n),c=v.outerBoundsRect,h=v.parsedOuterBoundsContain,d=v.outerBoundsClamp;c&&(f=Lb(c,h,d,i,o,u,n))}aP(i,o,Jr.determine,null,f,n)}A(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}ut(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",ee).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",ee).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,yt(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,v){A(s.y,function(c,h){var d="x"+v+"y"+h,p=new fW(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(c)})});function u(f){return function(v,c){if(Zd(v,t)){var h=v.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=new Y2(f,hh(v),[0,0],v.get("type"),h),p=d.type==="category";d.onBand=p&&v.get("boundaryGap"),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]++}}}},r.prototype._updateScale=function(t,e){A(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(PW(n)){var i=Tb(n),o=i.xAxisModel,s=i.yAxisModel;if(!Zd(o,e)||!Zd(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),v=l.getAxis("y");a(u,f),a(u,v)}},this);function a(n,i){A(ic(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return A(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);yt(e,i)<0&&e.push(i),yt(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){Ou({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=Tb(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=Ty,r}();function Zd(r,t){return r.getCoordSysModel()===t}function Ab(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Mb(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Mb(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(v){return v.dim+"_"+v.index}}function Mb(r){return r&&r.type!=="category"&&r.type!=="time"&&mF(r)}function OW(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}function Ay(r,t){A(r.x,function(e){return Db(e,t.x,t.width)}),A(r.y,function(e){return Db(e,t.y,t.height)})}function Db(r,t,e){var a=[0,e],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),OW(r,t)}var My;function NW(r){My=r}function Lb(r,t,e,a,n,i,o){aP(a,n,Jr.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=fo(s,function(c){return c>0})==null;return io(a,s,!0,!0,e),Ay(n,a),l;function u(c){A(n[dt[c]],function(h){if(mu(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize(As(y.label).tickValue);m=c===1?1-m:m,f(y.rect,c,m),f(y.rect,1-c,NaN)}var _=d.nameLayout;if(_){var m=ws(d.nameLocation)?.5:NaN;f(_.rect,c,m),f(_.rect,1-c,NaN)}}})}function f(c,h,d){var p=r[dt[h]]-c[dt[h]],g=c[ce[h]]+c[dt[h]]-(r[ce[h]]+r[dt[h]]);p=v(p,1-d),g=v(g,d);var y=Cb[h][0],m=Cb[h][1];s[y]=ie(s[y],p),s[m]=ie(s[m],g)}function v(c,h){return c>0&&!He(h)&&h>1e-4&&(c/=h),c}}function BW(r,t,e,a,n){var i=new K2(VW);return A(e,function(o){return A(o,function(s){if(mu(s.model)){var l=!a;s.axisBuilder=kW(r,t,s.model,n,i,l)}})}),i}function aP(r,t,e,a,n,i){var o=e===Jr.determine;A(t,function(u){return A(u,function(f){mu(f.model)&&(RW(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[dt[1-u]]=r[ce[u]]<=i.refContainer[ce[u]]*.5?0:1-u===1?2:1}A(t,function(u,f){return A(u,function(v){mu(v.model)&&((a==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function zW(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=qt(r.get("outerBounds",!0)||W2,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||yt(["all","axisLabel"],i)<0?o="all":o=i;var s=[Fv(rt(r.get("outerBoundsClampWidth",!0),dc[0]),t.width),Fv(rt(r.get("outerBoundsClampHeight",!0),dc[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var VW=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";j2(r,t,e,a,n,i),ws(r.nameLocation)||A(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Q2(s.labelInfoList,s.dirVec,a,n)})};const GW=EW;function FW(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return HW(e,r,t),e.seriesInvolved&&$W(e,r),e}function HW(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=xu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",a);if(A(s.getAxes(),gt(p,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var c=v.get("trigger")==="axis",h=v.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(v.get(["axisPointer","axis"]));(c||h)&&A(d.baseAxes,gt(p,h?"cross":!0,c)),h&&A(d.otherAxes,gt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Dy(_))){y==null&&(y=_.get("triggerTooltip")),_=g?WW(m,v,n,t,g,y):_;var x=_.get("snap"),b=_.get("triggerEmphasis"),w=xu(m.model),T=y||x||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:b,involveSeries:T,snap:x,useHandle:Dy(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=UW(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=i[M].mapper,C.linkGroup=D}}}})}function WW(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=nt(o.get(c))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&lt(u,v.textStyle)}}return r.model.getModel("axisPointer",new Rt(l,e,a))}function $W(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[xu(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function UW(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Xd(i[a+"AxisId"],e.id)||Xd(i[a+"AxisIndex"],e.componentIndex)||Xd(i[a+"AxisName"],e.name))return n}}function Xd(r,t){return r==="all"||U(r)&&yt(r,t)>=0||r===t}function YW(r){var t=N0(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=Dy(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function N0(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[xu(r)]}function ZW(r){var t=N0(r);return t&&t.axisPointerModel}function Dy(r){return!!r.get(["handle","show"])}function xu(r){return r.type+"||"+r.id}var Ib={},XW=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&YW(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=ZW(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){Ib[e]=a},t.getAxisPointerClass=function(e){return e&&Ib[e]},t.type="axis",t}(Qt);const xo=XW;var Ly=wt();function nP(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,v=Ly(r).splitAreaColors,c=et(),h=0;if(v)for(var d=0;d<u.length;d++){var p=v.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,x=void 0,b=void 0;n.isHorizontal()?(_=g,S=l.y,x=m-_,b=l.height,g=_+x):(_=l.x,S=g,x=l.width,b=m-S,g=S+b);var w=u[d-1].tickValue;w!=null&&c.set(w,h),t.add(new bt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:b},style:lt({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}Ly(r).splitAreaColors=c}}}function iP(r){Ly(r).splitAreaColors=null}var qW=["splitArea","splitLine","minorSplitLine","breakArea"],oP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!mu(e)){this._axisGroup.add(e.axis.axisBuilder.group),A(qW,function(l){e.get([l,"show"])&&KW[l](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||ku(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){iP(this)},t.type="cartesianAxis",t}(xo),KW={splitLine:function(r,t,e,a,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var v=a.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;c?(p[0]=_,p[1]=v.y,g[0]=_,g[1]=v.y+v.height):(p[0]=v.x,p[1]=_,g[0]=v.x+v.width,g[1]=_);var x=h++%l.length,b=new me({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:lt({stroke:l[x]},y),silent:!0});_s(b.shape,y.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,a,n){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var v=[],c=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].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 me({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:h,silent:!0});_s(y.shape,h.lineWidth),t.add(y)}},splitArea:function(r,t,e,a,n){nP(r,t,e,a)},breakArea:function(r,t,e,a,n){var i=$u(),o=e.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,e,a.coordinateSystem.getRect(),n)}},sP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(oP),jW=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=sP.type,e}return t.type="yAxis",t}(oP),JW=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new bt({shape:e.coordinateSystem.getRect(),style:lt({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Qt),Pb={offset:0};function lP(r){r.registerComponentView(JW),r.registerComponentModel(rW),r.registerCoordinateSystem("cartesian2d",GW),Cs(r,"x",by,Pb),Cs(r,"y",by,Pb),r.registerComponentView(sP),r.registerComponentView(jW),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function QW(r,t){var e=r.coordinateSystem,a=e&&e.type,n=e&&e.getBaseAxis&&e.getBaseAxis(),i=n&&n.scale&&n.scale.type,o=a==="cartesian2d"&&i==="ordinal"||a==="single",s=t.model.get("jitter")>0;return o&&s}var t$=wt();function kb(r,t,e,a){if(r instanceof Y2){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return e}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?uP(e,o,u,a):e$(r,t,e,a,o,l):e}function uP(r,t,e,a){if(e===null)return r+(Math.random()-.5)*t;var n=e-a*2,i=Math.min(Math.max(0,t),n);return r+(Math.random()-.5)*i}function e$(r,t,e,a,n,i){var o=t$(r);o.items||(o.items=[]);var s=o.items,l=Rb(s,t,e,a,n,i,1),u=Rb(s,t,e,a,n,i,-1),f=Math.abs(l-e)<Math.abs(u-e)?l:u,v=r.scale.type==="ordinal"?r.getBandWidth():null,c=Math.abs(f-e);return c>n/2||v&&c>v/2-a?uP(e,n,v,a):(s.push({fixedCoord:t,floatCoord:f,r:a}),f)}function Rb(r,t,e,a,n,i,o){for(var s=e,l=0;l<r.length;l++){var u=r[l],f=t-u.fixedCoord,v=s-u.floatCoord,c=f*f+v*v,h=a+u.r+i;if(c<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-e)>n/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function r$(r){r.eachSeriesByType("scatter",function(t){var e=t.coordinateSystem;if(e&&(e.type==="cartesian2d"||e.type==="single")){var a=e.getBaseAxis?e.getBaseAxis():null,n=a&&QW(t,a);if(n){var i=t.getData();i.each(function(o){var s=a.dim,l=a.orient,u=l==="horizontal"&&a.type!=="category"||l==="vertical"&&a.type==="category",f=i.getItemLayout(o),v=i.getItemVisual(o,"symbolSize"),c=v instanceof Array?(v[1]+v[0])/2:v;if(s==="y"||s==="single"&&u){var h=kb(a,f[0],f[1],c/2);i.setItemLayout(o,[f[0],h])}else if(s==="x"||s==="single"&&!u){var h=kb(a,f[1],f[0],c/2);i.setItemLayout(o,[h,f[1]])}})}}})}function a$(r){_t(lP),r.registerSeriesModel(X4),r.registerChartView(tW),r.registerLayout(Wu("scatter"))}function n$(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,r$)}function i$(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=Eb(f)?f:Ob(n)})}),e.each(function(o){var s=fo(a[o],function(l){return Eb(l)})||Ob(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function Eb(r){return!isNaN(r[0])&&!isNaN(r[1])}function Ob(r){return[r.cx,r.cy]}function o$(r){var t=r.polar;if(t){U(t)||(t=[t]);var e=[];A(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],U(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}A(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var s$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(c,h){var d=c.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=Hs(c.getItemVisual(h,"symbolSize")),g=de(d,-1,-1,2,2),y=c.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),ho[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},e,g)):_.setPosition(h[m]),d.add(_))}}function v(c){return Y(c,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(c){var h=s.getItemLayout(c);if(h){var d=new tr,p=new Ue,g={shape:{points:h}};d.shape.points=v(h),p.shape.points=v(h),Zt(d,g,e,c),Zt(p,g,e,c);var y=new it,m=new it;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,c,!1),Br(g),Br(p),kt(p,m,e),kt(g,m,e),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var d=s.getItemModel(h),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(c),p.useStyle(lt(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),_e(p,d,"lineStyle"),_e(g,d,"areaStyle");var S=d.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,A(["emphasis","select","blur"],function(w){var T=d.getModel([w,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(w).ignore=C&&x;var M=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=M;var D=T.getAreaStyle();g.ensureState(w).style=D;var I=d.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(L){L.ensureState(w).style=nt(I)})}),g.useStyle(lt(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var b=d.getModel("emphasis");y.eachChild(function(w){if(w instanceof Be){var T=w.style;w.useStyle(H({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(C==null||isNaN(C))&&(C=""),Ce(w,Se(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:_,defaultOpacity:m.opacity})}),Xt(c,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Ut);const l$=s$;var u$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(j(this.getData,this),j(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return Us(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=HL(this,e);return he("section",{header:u,sortBlocks:!0,blocks:Y(s,function(v){var c=i.get(i.mapDimension(v.dim),e);return he("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(Y(n.dimensions,function(u){return a.mapDimension(u)}),e),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)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Kt);const f$=u$;var fl=U2.value;function zf(r,t){return lt({show:t},r)}var v$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),c=this.get("triggerEvent"),h=Y(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=lt({color:d.color},l));var g=mt(nt(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:p,triggerEvent:c},!1);if(K(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else at(f)&&(g.name=f(g.name,g));var m=new Rt(g,null,this.ecModel);return pe(m,Vu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:z.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:mt({lineStyle:{color:z.color.neutral20}},fl.axisLine),axisLabel:zf(fl.axisLabel,!1),axisTick:zf(fl.axisTick,!1),splitLine:zf(fl.splitLine,!0),splitArea:zf(fl.splitArea,!0),indicator:[]},t}(It);const c$=v$;var h$=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=Y(i,function(s){var l=s.model.get("showName")?s.name:"",u=new en(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.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"),d=U(c)?c:[c],p=U(h)?h:[h],g=[],y=[];function m(k,R,O){var E=O%R.length;return k[E]=k[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,x=a.cy,b=0;b<_.length;b++){if(f){var w=m(g,d,b);g[w].push(new qn({shape:{cx:S,cy:x,r:_[b].coord}}))}if(v&&b<_.length-1){var w=m(y,p,b);y[w].push(new th({shape:{cx:S,cy:x,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var T,C=Y(n,function(k,R){var O=k.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Y(O,function(E){return a.coordToPoint(E.coord,R)})}),M=[],b=0;b<=T;b++){for(var D=[],I=0;I<n.length;I++)D.push(C[I][b]);if(D[0]&&D.push(D[0].slice()),f){var w=m(g,d,b);g[w].push(new Ue({shape:{points:D}}))}if(v&&M){var w=m(y,p,b-1);y[w].push(new tr({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();A(y,function(k,R){this.group.add(Pr(k,{style:lt({stroke:"none",fill:p[R%p.length]},P),silent:!0}))},this),A(g,function(k,R){this.group.add(Pr(k,{style:lt({fill:"none",stroke:d[R%d.length]},L),silent:!0}))},this)},t.type="radar",t}(Qt);const d$=h$;var p$=function(r){N(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t}(ea);const g$=p$;var y$=function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=Y(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new g$(o,new Hn);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,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(t,e){var a=xe(t,e).refContainer,n=t.get("center"),i=Math.min(a.width,a.height)/2;this.cx=q(n[0],a.width)+a.x,this.cy=q(n[1],a.height)+a.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(K(o)||Lt(o))&&(o=[0,o]),this.r0=q(o[0],i),this.r=q(o[1],i),A(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;A(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();A(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new Hn;o.setExtent(0,i),o.setInterval(1),A(a,function(s,l){rP(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}();const m$=y$;function _$(r){r.registerCoordinateSystem("radar",m$),r.registerComponentModel(c$),r.registerComponentView(d$),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function S$(r){_t(_$),r.registerChartView(l$),r.registerSeriesModel(f$),r.registerLayout(i$),r.registerProcessor($s("radar")),r.registerPreprocessor(o$)}var B0=wt();function x$(r,t,e){B0(r)[t]=e}function b$(r,t,e){var a=B0(r),n=a[t];n===e&&(a[t]=null)}function Nb(r,t){return!!B0(r)[t]}Pa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},oe);var w$={axisPointer:1,tooltip:1,brush:1};function fP(r,t,e){var a=t.getComponentByElement(r.topTarget);if(!a||a===e||w$.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===e)return!1;var i=oo(a),o=oo(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var T$=function(r){N(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=j(a._mousedownHandler,a),i=j(a._mousemoveHandler,a),o=j(a._mouseupHandler,a),s=j(a._mousewheelHandler,a),l=j(a._pinchHandler,a);return a.enable=function(u,f){var v=f.zInfo,c=oo(v.component),h=c.z,d=c.zlevel,p={component:v.component,z:h,zlevel:d,z2:rt(v.z2,-1/0)},g=H({},f.triggerInfo);this._opt=lt(H({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(cl(e,"mousedown",n,p),cl(e,"mousemove",i,p),cl(e,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(cl(e,"mousewheel",s,p),cl(e,"pinch",l,p)))},a.disable=function(){this._enabled=!1,hl(e,"mousedown",n),hl(e,"mousemove",i),hl(e,"mouseup",o),hl(e,"mousewheel",s),hl(e,"pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,a,n){var i=this._opt,o=i.zInfoParsed;if(fP(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,a,n)),u&&s.isInClip&&!s.isInClip(e,a,n)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,a,n,i){var o=e.target;if(!o&&this._checkPointer(e,a,n))return"grab";if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(j_(e)||vl(e))){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this._checkPointer(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var a=this._zr;if(!(e.gestureEvent==="pinch"||Nb(a,"globalPan")||vl(e))){var n=e.offsetX,i=e.offsetY;if(!this._dragging||!Tv("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Ka(e.event),e.__ecRoamConsumed=!0,Bb(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!vl(e)){var a=this._zr;if(!j_(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&a.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!vl(e)){var a=Tv("zoomOnMouseWheel",e,this._opt),n=Tv("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i),c=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Nb(this._zr,"globalPan")||vl(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(Ka(i.event),i.__ecRoamConsumed=!0,Bb(e,a,n,i,o))},t}(zr);function vl(r){return r.__ecRoamConsumed}var C$=wt();function yh(r){var t=C$(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function cl(r,t,e,a){for(var n=yh(r),i=n.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:a}),A$(r,t)}function hl(r,t,e){for(var a=yh(r),n=a.roam[t]||[],i=0;i<n.length;i++)if(n[i].listener===e){n.splice(i,1),n.length||M$(r,t);return}}function A$(r,t){var e=yh(r);e.uniform[t]||r.on(t,e.uniform[t]=function(a){var n=e.roam[t];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function M$(r,t){var e=yh(r),a=e.uniform;a[t]&&(r.off(t,a[t]),a[t]=null)}function Bb(r,t,e,a,n){n.isAvailableBehavior=j(Tv,null,e,a),r.trigger(t,n)}function Tv(r,t,e){var a=e[r];return!r||a&&(!K(a)||t.event[a+"Key"])}const bo=T$;function z0(r,t,e){var a=r.target;a.x+=t,a.y+=e,a.dirty()}function V0(r,t,e,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=t,o=G0(o,i);var s=o/r.zoom;r.zoom=o,cP(n,e,a,s),n.dirty()}function vP(r,t,e,a,n,i){var o=new vt(0,0,0,0);a.enable(r.get("roam"),{api:t,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(u,f,v){return o.copy(e.getBoundingRect()),o.applyTransform(e.getComputedTransform()),o.contain(f,v)},isInClip:function(u,f,v){return!i||i.contain(f,v)}}}),n.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;n.zoom=s?s.getZoom():1;var l=r.subType+"Roam";a.off("pan").off("zoom").on("pan",function(u){z0(n,u.dx,u.dy),t.dispatchAction({seriesId:r.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){V0(n,u.scale,u.originX,u.originY),t.dispatchAction({seriesId:r.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),t.updateLabelLayout()})}function zb(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function mh(r,t,e){var a=r.getZoom(),n=r.getCenter(),i=t.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return t.dx!=null&&t.dy!=null&&(o[0]-=t.dx,o[1]-=t.dy,r.setCenter(zb(r,o))),i!=null&&(i=G0(a*i,e)/a,cP(r,t.originX,t.originY,i),r.updateTransform(),r.setCenter(zb(r,o)),r.setZoom(i*a)),{center:r.getCenter(),zoom:r.getZoom()}}function cP(r,t,e,a){r.x-=(t-r.x)*(a-1),r.y-=(e-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a}function G0(r,t){if(t){var e=t.min||0,a=t.max||1/0;r=Math.max(Math.min(a,r),e)}return r}function hP(r){if(K(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var qd,gc={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"},Vb=Mt(gc),yc={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Gb=Mt(yc),D$=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var a=hP(t);this._defsUsePending=[];var n=new it;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||e.width),l=parseFloat(a.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),lr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;P$(this._defs,this._defsUsePending),this._defsUsePending=[];var f,v;if(o){var c=_h(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&&s!=null&&l!=null&&(v=pP(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var h=n;n=new it,n.add(h),h.scaleX=h.scaleY=v.scale,h.x=v.x,h.y=v.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new bt({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(t,e,a,n,i,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!i){var f=qd[s];if(f&&Q(qd,s)){l=f.call(this,t,e);var v=t.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};a.push(c),s==="g"&&(u=c)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var h=Fb[s];if(h&&Q(Fb,s)){var d=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var a=new iu({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});xr(e,a),lr(t,a,this._defsUsePending,!1,!1),L$(a,e);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,e.add(a),a},r.internalField=function(){qd={g:function(t,e){var a=new it;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a},rect:function(t,e){var a=new bt;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(t,e){var a=new qn;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),a.silent=!0,a},line:function(t,e){var a=new me;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(t,e){var a=new Gm;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(t,e){var a=t.getAttribute("points"),n;a&&(n=$b(a));var i=new tr({shape:{points:n||[]},silent:!0});return xr(e,i),lr(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var a=t.getAttribute("points"),n;a&&(n=$b(a));var i=new Ue({shape:{points:n||[]},silent:!0});return xr(e,i),lr(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var a=new Be;return xr(e,a),lr(t,a,this._defsUsePending,!1,!1),a.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),a.silent=!0,a},text:function(t,e){var a=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new it;return xr(e,s),lr(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var a=t.getAttribute("x"),n=t.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new it;return xr(e,s),lr(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,e){var a=t.getAttribute("d")||"",n=gD(a);return xr(e,n),lr(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Fb={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Os(t,e,a,n);return Hb(r,i),Wb(r,i),i},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new LD(t,e,a);return Hb(r,n),Wb(r,n),n}};function Hb(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Wb(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var a=e.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};dP(e,i,i);var o=i.stopColor||e.getAttribute("stop-color")||"#000000",s=i.stopOpacity||e.getAttribute("stop-opacity");if(s){var l=ir(o),u=l&&l[3];u&&(l[3]*=Rn(s),o=ba(l,"rgba"))}t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function xr(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),lt(t.__inheritedStyle,r.__inheritedStyle))}function $b(r){for(var t=_h(r),e=[],a=0;a<t.length;a+=2){var n=parseFloat(t[a]),i=parseFloat(t[a+1]);e.push([n,i])}return e}function lr(r,t,e,a,n){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(E$(r,t),dP(r,o,s),a||O$(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Ub(i,"fill",o.fill,e)),o.stroke!=null&&(i.style.stroke=Ub(i,"stroke",o.stroke,e)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=Y(_h(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function L$(r,t){var e=t.__selfStyle;if(e){var a=e.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=t.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var I$=/^url\(\s*#(.*?)\)/;function Ub(r,t,e,a){var n=e&&e.match(I$);if(n){var i=Rr(n[1]);a.push([r,t,i]);return}return e==="none"&&(e=null),e}function P$(r,t){for(var e=0;e<t.length;e++){var a=t[e];a[0].style[a[1]]=r[a[2]]}}var k$=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _h(r){return r.match(k$)||[]}var R$=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Kd=Math.PI/180;function E$(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var a=[],n=null;e.replace(R$,function(v,c,h){return a.push(c,h),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=_h(o);switch(n=n||Ie(),s){case"translate":Aa(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":xm(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Xn(n,n,-parseFloat(l[0])*Kd,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Kd);xa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Kd);xa(n,[1,f,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]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var Yb=/([^\s:;]+)\s*:\s*([^:;]+)/g;function dP(r,t,e){var a=r.getAttribute("style");if(a){Yb.lastIndex=0;for(var n;(n=Yb.exec(a))!=null;){var i=n[1],o=Q(gc,i)?gc[i]:null;o&&(t[o]=n[2]);var s=Q(yc,i)?yc[i]:null;s&&(e[s]=n[2])}}}function O$(r,t,e){for(var a=0;a<Vb.length;a++){var n=Vb[a],i=r.getAttribute(n);i!=null&&(t[gc[n]]=i)}for(var a=0;a<Gb.length;a++){var n=Gb[a],i=r.getAttribute(n);i!=null&&(e[yc[n]]=i)}}function pP(r,t){var e=t.width/r.width,a=t.height/r.height,n=Math.min(e,a);return{scale:n,x:-(r.x+r.width/2)*n+(t.x+t.width/2),y:-(r.y+r.height/2)*n+(t.y+t.height/2)}}function N$(r,t){var e=new D$;return e.parse(r,t)}var B$=et(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),z$=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=et(),this._freedGraphics=[],this._mapName=t,this._parsedXML=hP(e)}return r.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=G$(t.named),a=e.regions,n=e.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,a;try{e=t&&N$(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=e.root,$e(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var n=new it;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,c=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var h=a.getBoundingRect();u==null&&(u=h.x,v=h.width),f==null&&(f=h.y,c=h.height)}l=this._boundingRect=new vt(u,f,v,c)}if(s){var d=pP(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new bt({shape:l.plain()}));var p=[];return A(e.named,function(g){B$.get(g.svgNodeTagLower)!=null&&(p.push(g),V$(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,a),a)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,a=e.get(t);a&&(e.removeKey(t),this._freedGraphics.push(a))},r}();function V$(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function G$(r){var t=[],e=et();return A(r,function(a){if(a.namedFrom==null){var n=new TF(a.name,a.el);t.push(n),e.set(a.name,n)}}),{regions:t,regionsMap:e}}var Iy=[126,25],Zb="南海诸岛",Ai=[[[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]]];for(var Ti=0;Ti<Ai.length;Ti++)for(var Ho=0;Ho<Ai[Ti].length;Ho++)Ai[Ti][Ho][0]/=10.5,Ai[Ti][Ho][1]/=-10.5/.75,Ai[Ti][Ho][0]+=Iy[0],Ai[Ti][Ho][1]+=Iy[1];function F$(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Zb)return;t.push(new KI(Zb,Y(Ai,function(a){return{type:"polygon",exterior:a}}),Iy))}}var H$={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function W$(r,t){if(r==="china"){var e=H$[t.name];if(e){var a=t.getCenter();a[0]+=e[0]/10.5,a[1]+=-e[1]/(10.5/.75),t.setCenter(a)}}}var $$=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function U$(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:$$[0]})}var Y$="name",Z$=function(){function r(t,e,a){this.type="geoJSON",this._parsedMap=et(),this._mapName=t,this._specialAreas=a,this._geoJSON=q$(e)}return r.prototype.load=function(t,e){e=e||Y$;var a=this._parsedMap.get(e);if(!a){var n=this._parseToRegions(e);a=this._parsedMap.set(e,{regions:n,boundingRect:X$(n)})}var i=et(),o=[];return A(a.regions,function(s){var l=s.name;t&&Q(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new vt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(t){var e=this._mapName,a=this._geoJSON,n;try{n=a?AF(a,t):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return F$(e,n),A(n,function(i){var o=i.name;W$(e,i),U$(e,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 X$(r){for(var t,e=0;e<r.length;e++){var a=r[e].getBoundingRect();t=t||a.clone(),t.union(a)}return t}function q$(r){return K(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var dl=et();const rn={registerMap:function(r,t,e){if(t.svg){var a=new z$(r,t.svg);dl.set(r,a)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var a=new Z$(r,n,e);dl.set(r,a)}},getGeoResource:function(r){return dl.get(r)},getMapForUser:function(r){var t=dl.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var a=dl.get(r);if(a)return a.load(t,e)}};var F0=["rect","circle","line","ellipse","polygon","polyline","path"],K$=et(F0),j$=et(F0.concat(["g"])),J$=et(F0.concat(["g"])),gP=wt();function Vf(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Xb(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var Q$=function(){function r(t){var e=this.group=new it,a=this._transformGroup=new it;e.add(a),this.uid=zs("ec_map_draw"),this._controller=new bo(t.getZr()),this._controllerHost={target:a},a.add(this._regionsGroup=new it),a.add(this._svgGroup=new it)}return r.prototype.draw=function(t,e,a,n,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(_){!s&&_.getHostGeoModel()===t&&(s=_.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this._transformGroup,v=l.getTransformInfo(),c=v.raw,h=v.roam,d=!u.childAt(0)||i,p=t.getShallow("clip",!0),g;p?(g=l.getViewRect().clone(),this.group.setClipPath(new bt({shape:g.clone()}))):this.group.removeClipPath(),d?(f.x=h.x,f.y=h.y,f.scaleX=h.scaleX,f.scaleY=h.scaleY,f.dirty()):kt(f,h,t);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:a,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,g,e,a),this._updateMapSelectHandler(t,u,a,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=et(),a=et(),n=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function v(h){for(var d=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=f(h[g],p);y&&d.push(y)}return d}function c(h){return{shape:{points:v(h)}}}n.removeAll(),A(t.geo.regions,function(h){var d=h.name,p=e.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=e.set(d,new it),n.add(p),y=s?s.indexOfName(d):null,m=t.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),a.set(d,{dataIdx:y,regionModel:m})}var S=[],x=[];A(h.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=tw(C,u)),A(C,function(D){S.push(new tr(c(D)))})}else{var M=T.points;u&&(M=tw(M,u,!0)),A(M,function(D){x.push(new Ue(c(D)))})}});var b=f(h.getCenter(),l&&l.project);function w(T,C){if(T.length){var M=new rh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(M),qb(t,M,y,m),Kb(t,M,d,m,o,y,b),C&&(Xb(M),A(M.states,Xb))}}w(S),w(x,!0)}),e.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;jb(t,h,d,y,o,g),Jb(t,h,d,y,o),Qb(t,h,d,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,a=t.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=et(),i=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,v=o.el,c=u?u.indexOfName(s):null,h=l.getRegionModel(s);K$.get(f)!=null&&v instanceof Nr&&qb(t,v,c,h),v instanceof Nr&&(v.culling=!0);var d=h.get("silent",!0);if(d!=null&&(v.silent=d),v.z2EmphasisLift=0,!o.namedFrom&&(J$.get(f)!=null&&Kb(t,v,s,h,l,c,null),jb(t,v,s,h,l,c),Jb(t,v,s,h,l),j$.get(f)!=null)){var p=Qb(t,v,s,h,l);p==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(v)}},this),this._enableBlurEntireSVG(i,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var a=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){no(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var a=e.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(t);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=rn.getGeoResource(t);if(e&&e.type==="geoSVG"){var a=e.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=rn.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,a,n){var i=t.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=t.get("scaleLimit"),s.zoom=i.getZoom(),o.enable(t.get("roam")||!1,{api:n,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:function(f,v,c){return i.containPoint([v,c])},isInClip:function(f,v,c){return!e||e.contain(v,c)}}});var l=t.mainType;function u(){var f={type:"geoRoam",componentType:l};return f[l+"Id"]=t.id,f}o.off("pan").on("pan",function(f){this._mouseDownFlag=!1,z0(s,f.dx,f.dy),n.dispatchAction(H(u(),{dx:f.dx,dy:f.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(f){this._mouseDownFlag=!1,V0(s,f.scale,f.originX,f.originY),n.dispatchAction(H(u(),{totalZoom:s.zoom,zoom:f.scale,originX:f.originX,originY:f.originY,animation:{duration:0}}))},this)},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=gP(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,a,n){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){i._mouseDownFlag=!0}),e.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function qb(r,t,e,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Vf(n),u=Vf(i),f=Vf(s),v=Vf(o),c=r.data;if(c){var h=c.getItemVisual(e,"style"),d=c.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),d&&(l.decal=xs(d,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=v,no(t)}function Kb(r,t,e,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var v=l?e:i,c=void 0;(!s||i>=0)&&(c=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ce(t,Se(a),{labelFetcher:c,labelDataIndex:v,defaultText:e},h);var d=t.getTextContent();if(d&&(gP(d).ignore=d.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function jb(r,t,e,a,n,i){r.data?r.data.setItemGraphicEl(i,t):ht(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:a&&a.option||{}}}function Jb(r,t,e,a,n){r.data||on({el:t,componentModel:n,itemName:e,itemTooltipOption:a.get("tooltip")})}function Qb(r,t,e,a,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Xt(t,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&lz(t,n,e),o}function tw(r,t,e){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&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()}),!e&&s.polygonEnd(),a}const yP=Q$;var tU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new yP(n);o.add(s.group),s.draw(e,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(e,a,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,a,n){var i=e.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,v=u.offset,c=new qn({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+v*9,cy:f[1],r:3},silent:!0,z2:8+(v?0:Es+1)});if(!v){var h=e.mainSeries.getData(),d=i.getName(l),p=h.indexOfName(d),g=i.getItemModel(l),y=g.getModel("label"),m=h.getItemGraphicEl(p);Ce(c,Se(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(p,S)}},defaultText:d}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Uv(c,_)}}o.add(c)}}})},t.type="map",t}(Ut);const eU=tU;var rU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var a=Us(this,{coordDimensions:["value"],encodeDefaulter:gt(a0,this)}),n=et(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=rn.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A(u.regions,function(f){var v=f.name,c=n.get(v),h=f.properties&&f.properties.echartsStyle,d;c==null?(d={name:v},i.push(d)):d=a.getRawDataItem(c),h&&mt(d,h)}),a.appendData(i),a},t.prototype.getHostGeoModel=function(){if(aL(this).kind!==ha.boxCoordSys)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var a=this.getData();return a.get(a.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var a=this.getData();return a.getItemModel(a.indexOfName(e))},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData(),o=this.getRawValue(e),s=i.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var v=l[f].originalData.indexOfName(s),c=i.mapDimension("value");isNaN(l[f].originalData.get(c,v))||u.push(l[f].name)}return he("section",{header:u.join(", "),noHeader:!u.length,blocks:[he("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var a=e.icon||"roundRect",n=de(a,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=z.color.neutral00,n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.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:z.color.tertiary},itemStyle:{borderWidth:.5,borderColor:z.color.border,areaColor:z.color.background},emphasis:{label:{show:!0,color:z.color.primary},itemStyle:{areaColor:z.color.highlight}},select:{label:{show:!0,color:z.color.primary},itemStyle:{color:z.color.highlight}},nameProperty:"name"},t}(Kt);const aU=rU;function nU(r,t){var e={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);e[o]=e[o]||[],isNaN(n)||e[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=e[i].length,f=0;f<u;f++)s=Math.min(s,e[i][f]),l=Math.max(l,e[i][f]),o+=e[i][f];var v;return t==="min"?v=s:t==="max"?v=l:t==="average"?v=o/u:v=o,u===0?NaN:v})}function iU(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getHostGeoModel(),n=a?"o"+a.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),A(t,function(e,a){for(var n=nU(Y(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),i=0;i<e.length;i++)e[i].originalData=e[i].getData();for(var i=0;i<e.length;i++)e[i].seriesGroup=e,e[i].needsDrawMap=i===0&&!e[i].getHostGeoModel(),e[i].setData(n.cloneShallow()),e[i].mainSeries=e[0]})}function oU(r){var t={};r.eachSeriesByType("map",function(e){var a=e.getMapType();if(!(e.getHostGeoModel()||t[a])){var n={};A(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var v=l.getName(f),c=s.getRegion(v);if(!(!c||isNaN(u))){var h=n[v]||0,d=s.dataToPoint(c.getCenter());n[v]=h+1,l.setItemLayout(f,{point:d,offset:h})}})});var i=e.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),t[a]=!0}})}var ew=se,sU=function(r){N(t,r);function t(e,a){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Ha,n._rawTransformable=new Ha,n.name=e,n._opt=a,n}return t.prototype.setBoundingRect=function(e,a,n,i){return this._rect=new vt(e,a,n,i),this._updateCenterAndZoom(),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,a,n,i){this._transformTo(e,a,n,i),this._viewRect=new vt(e,a,n,i)},t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new vt(e,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e){var a=this._opt;a&&a.api&&a.ecModel&&a.ecModel.getShallow("legacyViewCoordSysCenterBase")&&e&&(e=[q(e[0],a.api.getWidth()),q(e[1],a.api.getWidth())]),this._centerOption=nt(e),this._updateCenterAndZoom()},t.prototype.setZoom=function(e){this._zoom=G0(e||1,this.zoomLimit),this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),a=e.x+e.width/2,n=e.y+e.height/2;return[a,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._centerOption,a=this._rect;e&&a&&(this._center=[q(e[0],a.width,a.x),q(e[1],a.height,a.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=se([],s,n),o=se([],o,n),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,a=this._rawTransformable;a.parent=e,e.updateTransform(),a.updateTransform(),Wc(this.transform||(this.transform=[]),a.transform||Ie()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],Kr(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,a=this._roamTransformable,n=new Ha;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?ew(n,e,i):Xe(n,e)},t.prototype.pointToData=function(e,a,n){n=n||[];var i=this.invTransform;return i?ew(n,e,i):(n[0]=e[0],n[1]=e[1],n)},t.prototype.convertToPixel=function(e,a,n){var i=rw(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=rw(a);return i===this?i.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Ha);function rw(r){var t=r.seriesModel;return t?t.coordinateSystem:null}const wo=sU;var lU={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},mP=["lng","lat"],_P=function(r){N(t,r);function t(e,a,n){var i=r.call(this,e,{api:n.api,ecModel:n.ecModel})||this;i.dimensions=mP,i.type="geo",i._nameCoordMap=et(),i.map=a;var o=n.projection,s=rn.load(a,n.nameMap,n.nameProperty),l=rn.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=lU[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var c=0;c<u.length;c++){var h=u[c].getBoundingRect(o);v=v||h.clone(),v.union(h)}else v=s.boundingRect;return i.setBoundingRect(v.x,v.y,v.width,v.height),i.aspectScale=o?1:rt(n.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return t.prototype._transformTo=function(e,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new vt(e,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(e))return a[n]}},t.prototype.addGeoCoord=function(e,a){this._nameCoordMap.set(e,a)},t.prototype.getGeoCoord=function(e){var a=this._regionsMap.get(e);return this._nameCoordMap.get(e)||a&&a.getCenter()},t.prototype.dataToPoint=function(e,a,n){if(K(e)&&(e=this.getGeoCoord(e)),e){var i=this.projection;return i&&(e=i.project(e)),e&&this.projectedToPoint(e,a,n)}},t.prototype.pointToData=function(e,a,n){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.pointToProjected(e,n)},t.prototype.pointToProjected=function(e,a){return r.prototype.pointToData.call(this,e,0,a)},t.prototype.projectedToPoint=function(e,a,n){return r.prototype.dataToPoint.call(this,e,a,n)},t.prototype.convertToPixel=function(e,a,n){var i=aw(a);return i===this?i.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,a,n){var i=aw(a);return i===this?i.pointToData(n):null},t}(wo);pe(_P,wo);function aw(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",ee).models[0]||{}).coordinateSystem:null}const nw=_P;function iw(r,t){var e=r.get("boundingCoords");if(e!=null){var a=e[0],n=e[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(x,b,w,T){for(var C=w-x,M=T-b,D=0;D<=100;D++){var I=D/100,L=i.project([x+C*I,b+M*I]);Tn(a,a,L),Cn(n,n,L)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var v=this.getBoundingRect(),c=r.get("layoutCenter"),h=r.get("layoutSize"),d=xe(r,t).refContainer,p=v.width/v.height*this.aspectScale,g=!1,y,m;c&&h&&(y=[q(c[0],d.width)+d.x,q(c[1],d.height)+d.y],m=q(h,Math.min(d.width,d.height)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(m)&&(g=!0));var _;if(g)_={},p>1?(_.width=m,_.height=m/p):(_.height=m,_.width=m*p),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=p,_=qt(S,d),_=lL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function uU(r,t){A(t.get("geoCoord"),function(e,a){r.addGeoCoord(a,e)})}var fU=function(){function r(){this.dimensions=mP}return r.prototype.create=function(t,e){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new nw(l+s,l,H({nameMap:o.get("nameMap"),api:e,ecModel:t},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=iw,u.resize(o,e)}),t.eachSeries(function(o){Ou({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",ee).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=Y(o,function(f){return f.get("nameMap")}),u=new nw(s,s,H({nameMap:ym(l),api:e,ecModel:t},n(o[0])));u.zoomLimit=Oe.apply(null,Y(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=iw,u.resize(o[0],e),A(o,function(f){f.coordinateSystem=u,uU(u,f)})}),a},r.prototype.getFilledRegions=function(t,e,a,n){for(var i=(t||[]).slice(),o=et(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=rn.load(e,a,n);return A(l.regions,function(u){var f=u.name,v=o.get(f),c=u.properties&&u.properties.echartsStyle;v||(v={name:f},i.push(v)),c&&mt(v,c)}),i},r}(),vU=new fU;const SP=vU;var cU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n);var i=rn.getGeoResource(e.map);if(i&&i.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color=e.defaultItemStyleColor||z.color.backgroundTint)}eo(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,a=this.option;a.regions=SP.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=Ca(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Rt(o,e,e.ecModel)),o.selected&&(n[s]=!0)),i},et()),a.selectedMap||(a.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new Rt(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,a){var n=this.getRegionModel(e),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(at(i))return o.status=a,i(o);if(K(i))return i.replace("{a}",e??"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[e]=!0}},t.prototype.unSelect=function(e){var a=this.option.selectedMap;a&&(a[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var a=this.option.selectedMap;return!!(a&&a[e])},t.type="geo",t.layoutMode="box",t.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:z.color.tertiary},itemStyle:{borderWidth:.5,borderColor:z.color.border},emphasis:{label:{show:!0,color:z.color.primary},itemStyle:{color:z.color.highlight}},select:{label:{show:!0,color:z.color.primary},itemStyle:{color:z.color.highlight}},regions:[]},t}(It);const hU=cU;var dU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,a){this._api=a},t.prototype.render=function(e,a,n,i){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new yP(n));var o=this._mapDraw;o.draw(e,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,a,n)},t.prototype._handleRegionClick=function(e){var a;Fi(e.target,function(n){return(a=ht(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},t.prototype.updateSelectStatus=function(e,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=ht(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Qt);const pU=dU;function gU(r,t,e){rn.registerMap(r,t,e)}function xP(r){r.registerCoordinateSystem("geo",SP),r.registerComponentModel(hU),r.registerComponentView(pU),r.registerImpl("registerMap",gU),r.registerImpl("getMap",function(e){return rn.getMapForUser(e)});function t(e,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;A(u.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}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,a,n){var i=e.componentType;i||(e.geoId!=null?i="geo":e.seriesId!=null&&(i="series")),i||(i="series"),a.eachComponent({mainType:i,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=mh(s,e,o.get("scaleLimit"));o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&A(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function yU(r){_t(xP),r.registerChartView(eU),r.registerSeriesModel(aU),r.registerLayout(oU),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,iU),tI("map",r.registerAction)}function mU(r){var t=r;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e=[t],a,n;a=e.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-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},e.push(s)}}function _U(r,t){var e=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(e.length){xU(r);var i=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+t(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+t(r,n));r.parentNode.hierNode.defaultAncestor=bU(r,n,r.parentNode.hierNode.defaultAncestor||a[0],t)}function SU(r){var t=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:t},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function ow(r){return arguments.length?r:CU}function El(r,t){return r-=Math.PI/2,{x:t*Math.cos(r),y:t*Math.sin(r)}}function xU(r){for(var t=r.children,e=t.length,a=0,n=0;--e>=0;){var i=t[e];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function bU(r,t,e,a){if(t){for(var n=r,i=r,o=i.parentNode.children[0],s=t,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=jd(s),i=Jd(i),s&&i;){n=jd(n),o=Jd(o),n.hierNode.ancestor=r;var c=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);c>0&&(TU(wU(s,r,e),r,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!jd(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!Jd(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,e=r)}return e}function jd(r){var t=r.children;return t.length&&r.isExpand?t[t.length-1]:r.hierNode.thread}function Jd(r){var t=r.children;return t.length&&r.isExpand?t[0]:r.hierNode.thread}function wU(r,t,e){return r.hierNode.ancestor.parentNode===t.parentNode?r.hierNode.ancestor:e}function TU(r,t,e){var a=e/(t.hierNode.i-r.hierNode.i);t.hierNode.change-=a,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,r.hierNode.change+=a}function CU(r,t){return r.parentNode===t.parentNode?1:2}var AU=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),MU=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new AU},t.prototype.buildPath=function(e,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){e.moveTo(o[0],o[1]),e.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,c=q(a.forkPosition,1),h=[];h[f]=o[f],h[v]=o[v]+(l[v]-o[v])*c,e.moveTo(o[0],o[1]),e.lineTo(h[0],h[1]),e.moveTo(s[0],s[1]),h[f]=s[f],e.lineTo(h[0],h[1]),h[f]=l[f],e.lineTo(h[0],h[1]),e.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=n[d];e.moveTo(p[0],p[1]),h[f]=p[f],e.lineTo(h[0],h[1])}},t}(Ct),DU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new it,e}return t.prototype.init=function(e,a){this._controller=new bo(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=e.getData(),o=e.layoutInfo,s=this._mainGroup,l=e.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(e,n),this._updateController(e,null,a,n);var u=this._data;i.diff(u).add(function(f){sw(i,f)&&lw(i,f,null,s,e)}).update(function(f,v){var c=u.getItemGraphicEl(v);if(!sw(i,f)){c&&fw(u,v,c,s,e);return}lw(i,f,c,s,e)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&fw(u,f,v,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:v})})}),this._data=i},t.prototype._updateViewCoordSys=function(e,a){var n=e.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=[];qc(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=e.coordinateSystem=new wo(null,{api:a,ecModel:e.ecModel});f.zoomLimit=e.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(e.get("center")),f.setZoom(e.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(e,a,n,i){var o=this;vP(e,i,this.group,this._controller,this._controllerHost,a),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(e)})},t.prototype._updateNodeAndLinkScale=function(e){var a=e.getData(),n=this._getNodeGlobalScale(e);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},t.prototype._getNodeGlobalScale=function(e){var a=e.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Ut);function sw(r,t){var e=r.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function lw(r,t,e,a,n){var i=!e,o=r.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:z.color.neutral00,f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(v.dataIndex),h=v.getLayout(),d=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,p=o.getLayout();i?(e=new Gu(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.x=d.x,e.y=d.y):e.updateData(r,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=p.rawX,e.__radialRawY=p.rawY,a.add(e),r.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,kt(e,{x:p.x,y:p.y},n);var g=e.getSymbolPath();if(n.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&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),S<0&&(S=Math.PI*2+S),x=b.x<m.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(S=S-Math.PI)):(x=p.x>m.x,x||(S=S-Math.PI));var w=x?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?Ql(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(ht(e).focus=L),LU(n,o,f,e,d,h,p,a),e.__edge&&(e.onHoverStateChange=function(P){if(P!=="blur"){var k=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===Pu||Uv(e.__edge,P)}})}function LU(r,t,e,a,n,i,o,s){var l=t.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")t.parentNode&&t.parentNode!==e&&(p||(p=a.__edge=new eh({shape:Py(f,v,c,n,n)})),kt(p,{shape:Py(f,v,c,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&t!==e&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var g=t.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=a.__edge=new MU({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:h}})),kt(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(lt({strokeNoScale:!0,fill:null},d)),_e(p,l,"lineStyle"),no(p),s.add(p))}function uw(r,t,e,a,n){var i=t.tree.root,o=bP(i,r),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(r.dataIndex);if(u){var f=t.getItemGraphicEl(s.dataIndex),v=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),h=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);c&&(h==="curve"?Gn(c,{shape:Py(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){e.remove(c)},removeOpt:n}):h==="polyline"&&a.get("layout")==="orthogonal"&&Gn(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){e.remove(c)},removeOpt:n}))}}function bP(r,t){for(var e=t.parentNode===r?t:t.parentNode||t,a;a=e.getLayout(),a==null;)e=e.parentNode===r?e:e.parentNode||e;return{source:e,sourceLayout:a}}function fw(r,t,e,a,n){var i=r.tree.getNodeByDataIndex(t),o=r.tree.root,s=bP(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};Gn(e,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(e),r.setItemGraphicEl(t,null)},removeOpt:l}),e.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){uw(u,r,a,n,l)}),uw(i,r,a,n,l)}function Py(r,t,e,a,n){var i,o,s,l,u,f,v,c;if(r==="radial"){u=a.rawX,v=a.rawY,f=n.rawX,c=n.rawY;var h=El(u,v),d=El(u,v+(c-v)*e),p=El(f,c+(v-c)*e),g=El(f,c);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,v=a.y,f=n.x,c=n.y,(t==="LR"||t==="RL")&&(i=u+(f-u)*e,o=v,s=f+(u-f)*e,l=c),(t==="TB"||t==="BT")&&(i=u,o=v+(c-v)*e,s=f,l=c+(v-c)*e);return{x1:u,y1:v,x2:f,y2:c,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const IU=DU;var Or=wt();function wP(r){var t=r.mainData,e=r.datas;e||(e={main:t},r.datasAttr={main:"data"}),r.datas=r.mainData=null,TP(t,e,r),A(e,function(a){A(t.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,gt(PU,r))})}),t.wrapMethod("cloneShallow",gt(RU,r)),A(t.CHANGABLE_METHODS,function(a){t.wrapMethod(a,gt(kU,r))}),$e(e[t.dataType]===t)}function PU(r,t){if(NU(this)){var e=H({},Or(this).datas);e[this.dataType]=t,TP(t,e,r)}else H0(t,this.dataType,Or(this).mainData,r);return t}function kU(r,t){return r.struct&&r.struct.update(),t}function RU(r,t){return A(Or(t).datas,function(e,a){e!==t&&H0(e.cloneShallow(),a,t,r)}),t}function EU(r){var t=Or(this).mainData;return r==null||t==null?t:Or(t).datas[r]}function OU(){var r=Or(this).mainData;return r==null?[{data:r}]:Y(Mt(Or(r).datas),function(t){return{type:t,data:Or(r).datas[t]}})}function NU(r){return Or(r).mainData===r}function TP(r,t,e){Or(r).datas={},A(t,function(a,n){H0(a,n,r,e)})}function H0(r,t,e,a){Or(e).datas[t]=r,Or(r).mainData=e,r.dataType=t,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[t]]=r),r.getLinkedData=EU,r.getLinkedDataAll=OU}var BU=function(){function r(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(t,e,a){at(t)&&(a=e,e=t,t=null),t=t||{},K(t)&&(t={order:t});var n=t.order||"preorder",i=this[t.attr||"children"],o;n==="preorder"&&(o=e.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,e,a);n==="postorder"&&e.call(a,this)},r.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(t+1),n.height>e&&(e=n.height)}this.height=e+1},r.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].getNodeById(t);if(i)return i}},r.prototype.contains=function(t){if(t===this)return!0;for(var e=0,a=this.children,n=a.length;e<n;e++){var i=a[e].contains(t);if(i)return i}},r.prototype.getAncestors=function(t){for(var e=[],a=t?this:this.parentNode;a;)e.push(a),a=a.parentNode;return e.reverse(),e},r.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},r.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},r.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},r.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},r.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},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 t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},r.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},r.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},r}(),zU=function(){function r(t){this.type="tree",this._nodes=[],this.hostModel=t}return r.prototype.eachNode=function(t,e,a){this.root.eachNode(t,e,a)},r.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},r.prototype.getNodeById=function(t){return this.root.getNodeById(t)},r.prototype.update=function(){for(var t=this.data,e=this._nodes,a=0,n=e.length;a<n;a++)e[a].dataIndex=-1;for(var a=0,n=t.count();a<n;a++)e[t.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(t,e,a){var n=new r(e),i=[],o=1;s(t);function s(f,v){var c=f.value;o=Math.max(o,U(c)?c.length:1),i.push(f);var h=new BU(ye(f.name,""),n);v?VU(h,v):n.root=h,n._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}n.root.updateDepthAndHeight(0);var l=zu(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new je(l,e);return u.initData(i),a&&a(u),wP({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();function VU(r,t){var e=t.children;r.parentNode!==t&&(e.push(r),r.parentNode=t)}const W0=zU;function bu(r,t,e){if(r&&yt(t,r.type)>=0){var a=e.getData().tree.root,n=r.targetNode;if(K(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function CP(r){for(var t=[];r;)r=r.parentNode,r&&t.push(r);return t.reverse()}function $0(r,t){var e=CP(r);return yt(e,t)>=0}function Sh(r,t){for(var e=[];r;){var a=r.dataIndex;e.push({name:r.name,dataIndex:a,value:t.getRawValue(a)}),r=r.parentNode}return e.reverse(),e}var GU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e){var a={name:e.name,children:e.data},n=e.leaves||{},i=new Rt(n,this,this.ecModel),o=W0.createTree(a,this,s);function s(v){v.wrapMethod("getItemModel",function(c,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(c.parentModel=i),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=e.expandAndCollapse,f=u&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.depth<=f}),o.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return he("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.collapsed=!n.isExpand,a},t.type="series.tree",t.layoutMode="box",t.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:z.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Kt);const FU=GU;function HU(r,t,e){for(var a=[r],n=[],i;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();)t(i,e)}function pl(r,t){for(var e=[r],a;a=e.pop();)if(t(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)e.push(n[i])}}function WU(r,t){r.eachSeriesByType("tree",function(e){$U(e,t)})}function $U(r,t){var e=xe(r,t).refContainer,a=qt(r.getBoxLayoutParams(),e);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=ow(function(S,x){return(S.parentNode===x.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=ow());var l=r.getData().tree.root,u=l.children[0];if(u){mU(l),HU(u,_U,s),l.hierNode.modifier=-u.hierNode.prelim,pl(u,SU);var f=u,v=u,c=u;pl(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,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(n==="radial")p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var x=El(y,m);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+d),p=i/(c.depth-1||1),pl(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),pl(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function UU(r){r.eachSeriesByType("tree",function(t){var e=t.getData(),a=e.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=e.ensureUniqueItemVisual(n.dataIndex,"style");H(s,o)})})}function YU(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},function(a){var n=t.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function ZU(r){r.registerChartView(IU),r.registerSeriesModel(FU),r.registerLayout(WU),r.registerVisual(UU),YU(r)}var vw=["treemapZoomToNode","treemapRender","treemapMove"];function XU(r){for(var t=0;t<vw.length;t++)r.registerAction({type:vw[t],update:"updateView"},oe);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(e,a){a.eachComponent({mainType:"series",subType:"treemap",query:e},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=bu(e,s,i);if(l){var u=i.getViewRoot();u&&(e.direction=$0(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function AP(r){var t=r.getData(),e=t.tree,a={};e.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Kg(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var qU=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};MP(n);var i=e.levels||[],o=this.designatedVisualItemStyle={},s=new Rt({itemStyle:o},this,a);i=e.levels=KU(i,a);var l=Y(i||[],function(v){return new Rt(v,s,a)},this),u=W0.createTree(n,this,f);function f(v){v.wrapMethod("getItemModel",function(c,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return he("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treeAncestors=Sh(n,this),a.treePathInfo=a.treeAncestors,a},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var a=this._idIndexMap;a||(a=this._idIndexMap=et(),this._idIndexMapCount=0);var n=a.get(e);return n==null&&a.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){AP(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,coordinateSystemUsage:"box",left:z.size.l,top:z.size.xxxl,right:z.size.l,bottom:z.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,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:z.size.m,emptyItemWidth:25,itemStyle:{color:z.color.backgroundShade,textStyle:{color:z.color.secondary}},emphasis:{itemStyle:{color:z.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:z.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:z.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Kt);function MP(r){var t=0;A(r.children,function(a){MP(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}function KU(r,t){var e=Ht(t.get("color")),a=Ht(t.get(["aria","decal","decals"]));if(e){r=r||[];var n,i;A(r,function(s){var l=new Rt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=e.slice()),!i&&a&&(o.decal=a.slice()),r}}const jU=qU;var JU=8,cw=8,Qd=5,QU=function(){function r(t){this.group=new it,t.add(this.group)}return r.prototype.render=function(t,e,a,n){var i=t.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=xe(t,e).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:[]},d=qt(c,v);this._prepare(a,h,u),this._renderContent(t,h,d,s,l,u,f,n),sh(o,c,v)}},r.prototype._prepare=function(t,e,a){for(var n=t;n;n=n.parentNode){var i=ye(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+JU*2,e.emptyItemWidth);e.totalWidth+=s+cw,e.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(t,e,a,n,i,o,s,l){for(var u=0,f=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),c=e.totalWidth,h=e.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;c>a.width&&(c-=m-f,m=f,_=null);var S=new tr({shape:{points:t8(u,0,m,v,p===h.length-1,p===0)},style:lt(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Pt({style:$t(o,{text:_})}),textConfig:{position:"inside"},z2:Es*1e4,onclick:gt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=$t(s,{text:_}),S.ensureState("emphasis").style=d,Xt(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),e8(S,t,y),u+=m+cw}},r.prototype.remove=function(){this.group.removeAll()},r}();function t8(r,t,e,a,n,i){var o=[[n?r:r-Qd,t],[r+e,t],[r+e,t+a],[n?r:r-Qd,t+a]];return!i&&o.splice(2,0,[r+e+Qd,t+a/2]),!n&&o.push([r,t+a/2]),o}function e8(r,t,e){ht(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Sh(e,t)}}const r8=QU;var a8=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(t,e,a,n,i){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(t){return this._finishedCallback=t,this},r.prototype.start=function(){for(var t=this,e=this._storage.length,a=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._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}();function n8(){return new a8}var ky=it,hw=bt,dw=3,pw="label",gw="upperLabel",i8=Es*10,o8=Es*2,s8=Es*3,Mi=ao([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),yw=function(r){var t=Mi(r);return t.stroke=t.fill=t.lineWidth=null,t},mc=wt(),l8=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._state="ready",e._storage=gl(),e}return t.prototype.render=function(e,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(yt(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=bu(i,s,e),u=i&&i.type,f=e.layoutInfo,v=!this._oldTree,c=this._storage,h=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=e.get("animation"),g=this._doRender(d,e,h);p&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,e,h):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,l)}},t.prototype._giveContainerGroup=function(e){var a=this._containerGroup;return a||(a=this._containerGroup=new ky,this._initEvents(a),this.group.add(a)),a.x=e.x,a.y=e.y,a},t.prototype._doRender=function(e,a,n){var i=a.getData().tree,o=this._oldTree,s=gl(),l=gl(),u=this._storage,f=[];function v(m,_,S,x){return u8(a,l,u,n,s,f,m,_,S,x)}p(i.root?[i.root]:[],o&&o.root?[o.root]:[],e,i===o||!o,0);var c=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:c,renderFinally:y};function p(m,_,S,x,b){x?(_=m,A(m,function(C,M){!C.isRemoved()&&T(M,M)})):new tn(_,m,w,w).add(T).update(T).remove(gt(T,null)).execute();function w(C){return C.getId()}function T(C,M){var D=C!=null?m[C]:null,I=M!=null?_[M]:null,L=v(D,I,S,b);L&&p(D&&D.viewChildren||[],I&&I.viewChildren||[],L,x,b+1)}}function g(m){var _=gl();return m&&A(m,function(S,x){var b=_[x];A(S,function(w){w&&(b.push(w),mc(w).willDelete=!0)})}),_}function y(){A(c,function(m){A(m,function(_){_.parent&&_.parent.remove(_)})}),A(f,function(m){m.invisible=!0,m.dirty()})}},t.prototype._doAnimation=function(e,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(at(o)?0:o)||0,u=(at(s)?null:s)||"cubicOut",f=n8();A(a.willDeleteEls,function(v,c){A(v,function(h,d){if(!h.invisible){var p=h.parent,g,y=mc(p);if(i&&i.direction==="drillDown")g=p===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=c==="nodeGroup"?{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,d){var p=a.lastsForAnimation[c][d],g={};p&&(h instanceof it?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=H({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(j(function(){this._state="ready",a.renderFinally()},this)).start()},t.prototype._resetController=function(e){var a=this,n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;n||(n=this._controller=new bo(e.getZr()),n.on("pan",j(this._onPan,this)),n.on("zoom",j(this._onZoom,this))),n.enable(o.get("roam"),{api:e,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,l,u){var f=a._containerGroup;return f?f.getBoundingRect().contain(l-f.x,u-f.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if(this._state!=="animating"&&(Math.abs(e.dx)>dw||Math.abs(e.dy)>dw)){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+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var a=e.originX,n=e.originY,i=e.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new vt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var v=f.zoom=f.zoom||1;if(v*=i,u){var c=u.min||0,h=u.max||1/0;v=Math.max(Math.min(h,v),c)}var d=v/f.zoom;f.zoom=v;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=Ie();Aa(g,g,[-a,-n]),xm(g,g,[d,d]),Aa(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(e){var a=this;e.on("click",function(n){if(a._state==="ready"){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(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&qv(u,f)}}}}},this)},t.prototype._renderBreadcrumb=function(e,a,n){var i=this;n||(n=e.get("leafDepth",!0)!=null?{node:e.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new r8(this.group))).render(e,a,n.node,function(o){i._state!=="animating"&&($0(e.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=gl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(e,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)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},t.type="treemap",t}(Ut);function gl(){return{nodeGroup:[],background:[],content:[]}}function u8(r,t,e,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=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"]),T=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),M=b.get("borderRadius")||0,D=ft("nodeGroup",ky);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),mc(D).nodeWidth=h,mc(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=ft("background",hw,u,o8);I&&G(D,I,x&&f.upperLabelHeight);var L=c.getModel("emphasis"),P=L.get("focus"),k=L.get("blurScope"),R=L.get("disabled"),O=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(x)su(D)&&zi(D,!1),I&&(zi(I,!R),v.setItemGraphicEl(o.dataIndex,I),zg(I,O,k));else{var E=ft("content",hw,u,s8);E&&F(D,E),I.disableMorphing=!0,I&&su(I)&&zi(I,!1),zi(D,!R),v.setItemGraphicEl(o.dataIndex,D);var B=c.getShallow("cursor");B&&E.attr("cursor",B),zg(D,O,k)}return D;function G(ct,V,$){var Z=ht(V);if(Z.dataIndex=o.dataIndex,Z.seriesIndex=r.seriesIndex,V.setShape({x:0,y:0,width:h,height:d,r:M}),g)W(V);else{V.invisible=!1;var tt=o.getVisual("style"),At=tt.stroke,pt=yw(b);pt.fill=At;var xt=Mi(w);xt.fill=w.get("borderColor");var Vt=Mi(T);Vt.fill=T.get("borderColor");var re=Mi(C);if(re.fill=C.get("borderColor"),$){var Ye=h-2*p;X(V,At,tt.opacity,{x:p,y:0,width:Ye,height:S})}else V.removeTextContent();V.setStyle(pt),V.ensureState("emphasis").style=xt,V.ensureState("blur").style=Vt,V.ensureState("select").style=re,no(V)}ct.add(V)}function F(ct,V){var $=ht(V);$.dataIndex=o.dataIndex,$.seriesIndex=r.seriesIndex;var Z=Math.max(h-2*p,0),tt=Math.max(d-2*p,0);if(V.culling=!0,V.setShape({x:p,y:p,width:Z,height:tt,r:M}),g)W(V);else{V.invisible=!1;var At=o.getVisual("style"),pt=At.fill,xt=yw(b);xt.fill=pt,xt.decal=At.decal;var Vt=Mi(w),re=Mi(T),Ye=Mi(C);X(V,pt,At.opacity,null),V.setStyle(xt),V.ensureState("emphasis").style=Vt,V.ensureState("blur").style=re,V.ensureState("select").style=Ye,no(V)}ct.add(V)}function W(ct){!ct.invisible&&i.push(ct)}function X(ct,V,$,Z){var tt=c.getModel(Z?gw:pw),At=ye(c.get("name"),null),pt=tt.getShallow("show");Ce(ct,Se(c,Z?gw:pw),{defaultText:pt?At:null,inheritColor:V,defaultOpacity:$,labelFetcher:r,labelDataIndex:o.dataIndex});var xt=ct.getTextContent();if(xt){var Vt=xt.style,re=Gc(Vt.padding||0);Z&&(ct.setTextConfig({layoutRect:Z}),xt.disableLabelLayout=!0),xt.beforeUpdate=function(){var ze=Math.max((Z?Z.width:ct.shape.width)-re[1]-re[3],0),ka=Math.max((Z?Z.height:ct.shape.height)-re[0]-re[2],0);(Vt.width!==ze||Vt.height!==ka)&&xt.setStyle({width:ze,height:ka})},Vt.truncateMinChar=2,Vt.lineOverflow="truncate",J(Vt,Z,f);var Ye=xt.getState("emphasis");J(Ye?Ye.style:null,Z,f)}}function J(ct,V,$){var Z=ct?ct.text:null;if(!V&&$.isLeafRoot&&Z!=null){var tt=r.get("drillDownIcon",!0);ct.text=tt?tt+" "+Z:Z}}function ft(ct,V,$,Z){var tt=m!=null&&e[ct][m],At=n[ct];return tt?(e[ct][m]=null,Dt(At,tt)):g||(tt=new V,tt instanceof Nr&&(tt.z2=f8($,Z)),zt(At,tt)),t[ct][y]=tt}function Dt(ct,V){var $=ct[y]={};V instanceof ky?($.oldX=V.x,$.oldY=V.y):$.oldShape=H({},V.shape)}function zt(ct,V){var $=ct[y]={},Z=o.parentNode,tt=V instanceof it;if(Z&&(!a||a.direction==="drillDown")){var At=0,pt=0,xt=n.background[Z.getRawIndex()];!a&&xt&&xt.oldShape&&(At=xt.oldShape.width,pt=xt.oldShape.height),tt?($.oldX=0,$.oldY=pt):$.oldShape={x:At,y:pt,width:0,height:0}}$.fadein=!tt}}function f8(r,t){return r*i8+t}const v8=l8;var wu=A,c8=ut,_c=-1,U0=function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=nt(t);this.type=a,this.mappingMethod=e,this._normalizeData=p8[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(tp(n),h8(n)):e==="category"?n.categories?d8(n):tp(n,!0):($e(e!=="linear"||n.dataExtent),tp(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return j(this._normalizeData,this)},r.listVisualTypes=function(){return Mt(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){ut(t)?A(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=U(t)?[]:ut(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&wu(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(U(t))t=t.slice();else if(c8(t)){var e=[];wu(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||K(l)&&l===t+"")return o;a&&c(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(Ff(v[1],t,f[1]))return o}else if(f[1]===1/0){if(Ff(v[0],f[0],t))return o}else if(Ff(v[0],f[0],t)&&Ff(v[1],t,f[1]))return o;a&&c(f[0],o),a&&c(f[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function c(h,d){var p=Math.abs(h-t);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:yl("color"),getColorMapper:function(){var t=this.option;return j(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),Ol.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=Eh(e,t.parsedVisual,n),i?n:ba(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ba(Eh(t,this.option.parsedVisual),"rgba")},category:Ol,piecewise:function(t,e){var a=Ey.call(this,e);return a==null&&(a=ba(Eh(t,this.option.parsedVisual),"rgba")),a},fixed:Di}},colorHue:Gf(function(t,e){return En(t,e)}),colorSaturation:Gf(function(t,e){return En(t,null,e)}),colorLightness:Gf(function(t,e){return En(t,null,null,e)}),colorAlpha:Gf(function(t,e){return Ov(t,e)}),decal:{applyVisual:yl("decal"),_normalizedToVisual:{linear:null,category:Ol,piecewise:null,fixed:null}},opacity:{applyVisual:yl("opacity"),_normalizedToVisual:Ry([0,1])},liftZ:{applyVisual:yl("liftZ"),_normalizedToVisual:{linear:Di,category:Di,piecewise:Di,fixed:Di}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:mw,category:Ol,piecewise:function(t,e){var a=Ey.call(this,e);return a==null&&(a=mw.call(this,t)),a},fixed:Di}},symbolSize:{applyVisual:yl("symbolSize"),_normalizedToVisual:Ry([0,1])}},r}();function h8(r){var t=r.pieceList;r.hasSpecialVisual=!1,A(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function d8(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(wu(t,function(o,s){e[o]=s}),!U(a)){var n=[];ut(a)?wu(a,function(o,s){var l=e[s];n[l??_c]=o}):n[_c]=a,a=DP(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function tp(r,t){var e=r.visual,a=[];ut(e)?wu(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),DP(r,a)}function Gf(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:Ry([0,1])}}function mw(r){var t=this.option.visual;return t[Math.round(Nt(r,[0,1],[0,t.length-1],!0))]||{}}function yl(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Ol(r){var t=this.option.visual;return t[this.option.loop&&r!==_c?r%t.length:r]}function Di(){return this.option.visual[0]}function Ry(r){return{linear:function(t){return Nt(t,r,this.option.visual,!0)},category:Ol,piecewise:function(t,e){var a=Ey.call(this,e);return a==null&&(a=Nt(t,r,this.option.visual,!0)),a},fixed:Di}}function Ey(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=U0.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function DP(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=Y(t,function(e){var a=ir(e);return a||[0,0,0,1]})),t}var p8={linear:function(r){return Nt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=U0.findPieceIndex(r,t,!0);if(e!=null)return Nt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??_c},fixed:oe};function Ff(r,t,e){return r?t<=e:t<e}const Ne=U0;var g8="itemStyle",LP=wt();const y8={seriesType:"treemap",reset:function(r){var t=r.getData().tree,e=t.root;e.isRemoved()||IP(e,{},r.getViewRoot().getAncestors(),r)}};function IP(r,t,e,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(g8),l=m8(s,t,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation"),c;v!=null&&(c=_w(l),f=_8(v,c)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)c=_w(l),u.fill=c;else{var d=S8(r,n,i,s,l,h);A(h,function(p,g){if(p.depth>=e.length||p===e[p.depth]){var y=x8(n,l,p,g,d,a);IP(p,y,e,a)}})}}}function m8(r,t,e){var a=H({},t),n=e.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=t[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function _w(r){var t=ep(r,"color");if(t){var e=ep(r,"colorAlpha"),a=ep(r,"colorSaturation");return a&&(t=En(t,null,null,a)),e&&(t=Ov(t,e)),t}}function _8(r,t){return t!=null?En(t,null,null,r):null}function ep(r,t){var e=r[t];if(e!=null&&e!=="none")return e}function S8(r,t,e,a,n,i){if(!(!i||!i.length)){var o=rp(t,"color")||n.color!=null&&n.color!=="none"&&(rp(t,"colorAlpha")||rp(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=e.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=t.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new Ne(v);return LP(c).drColorMappingBy=f,c}}}function rp(r,t){var e=r.get(t);return U(e)&&e.length?{name:t,range:e}:null}function x8(r,t,e,a,n,i){var o=H({},t);if(n){var s=n.type,l=s==="color"&&LP(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(e.getId()):e.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Tu=Math.max,Sc=Math.min,Sw=Oe,Y0=A,PP=["itemStyle","borderWidth"],b8=["itemStyle","gapWidth"],w8=["upperLabel","show"],T8=["upperLabel","height"];const C8={seriesType:"treemap",reset:function(r,t,e,a){var n=r.option,i=xe(r,e).refContainer,o=qt(r.getBoxLayoutParams(),i),s=n.size||[],l=q(Sw(o.width,s[0]),i.width),u=q(Sw(o.height,s[1]),i.height),f=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=bu(a,v,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=CP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?P8(r,c,d,l,u):h?[h.width,h.height]:[l,u],y=n.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),kP(d,m,!1,0),_=d.getLayout(),Y0(p,function(x,b){var w=(p[b+1]||d).getValue();x.setLayout(H({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(k8(o,h,c),!0),r.setLayoutInfo(o),RP(S,new vt(-o.x,-o.y,e.getWidth(),e.getHeight()),p,d,0)}};function kP(r,t,e,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(PP),u=s.get(b8)/2,f=EP(s),v=Math.max(l,f),c=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),n=Tu(n-2*c,0),i=Tu(i-c-h,0);var d=n*i,p=A8(r,s,d,t,e,a);if(p.length){var g={x:c,y:h,width:n,height:i},y=Sc(n,i),m=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var b=p[S];_.push(b),_.area+=b.getLayout().area;var w=I8(_,y,t.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,xw(_,y,g,u,!1),y=Sc(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&xw(_,y,g,u,!0),!e){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(e=!0)}for(var S=0,x=p.length;S<x;S++)kP(p[S],t,e,a+1)}}}function A8(r,t,e,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=Bt(o,function(h){return!h.isRemoved()}),D8(o,s);var u=L8(t,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=M8(t,e,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,v=o.length;f<v;f++){var c=o[f].getValue()/u.sum*e;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}function M8(r,t,e,a,n){if(!a)return e;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/e*t<i&&(s=l,e-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),e}function D8(r,t){return t&&r.sort(function(e,a){var n=t==="asc"?e.getValue()-a.getValue():a.getValue()-e.getValue();return n===0?t==="asc"?e.dataIndex-a.dataIndex:a.dataIndex-e.dataIndex:n}),r}function L8(r,t,e){for(var a=0,n=0,i=t.length;n<i;n++)a+=t[n].getValue();var o=r.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&e?(s=[t[t.length-1].getValue(),t[0].getValue()],e==="asc"&&s.reverse()):(s=[1/0,-1/0],Y0(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function I8(r,t,e){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=t*t*e;return l?Tu(u*a/l,l/(u*n)):1/0}function xw(r,t,e,a,n){var i=t===e.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=e[s[i]],f=t?r.area/t:0;(n||f>e[l[o]])&&(f=e[l[o]]);for(var v=0,c=r.length;v<c;v++){var h=r[v],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=Tu(f-2*a,0),y=e[s[i]]+e[l[i]]-u,m=v===c-1||y<p?y:p,_=d[l[i]]=Tu(m-2*a,0);d[s[o]]=e[s[o]]+Sc(a,g/2),d[s[i]]=u+Sc(a,_/2),u+=m,h.setLayout(d,!0)}e[s[o]]+=f,e[l[o]]-=f}function P8(r,t,e,a,n){var i=(t||{}).node,o=[a,n];if(!i||i===e)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,v=s.children,c=0,h=v.length;c<h;c++)f+=v[c].getValue();var d=i.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(PP),y=Math.max(g,EP(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>w1&&(u=w1),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[a*m,n*m]}function k8(r,t,e){if(t)return{x:t.x,y:t.y};var a={x:0,y:0};if(!e)return a;var n=e.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]}}function RP(r,t,e,a,n){var i=r.getLayout(),o=e[n],s=o&&o===r;if(!(o&&!s||n===e.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new vt(t.x-i.x,t.y-i.y,t.width,t.height);Y0(r.viewChildren||[],function(u){RP(u,l,e,a,n+1)})}}function EP(r){return r.get(w8)?r.get(T8):0}function R8(r){r.registerSeriesModel(jU),r.registerChartView(v8),r.registerVisual(y8),r.registerLayout(C8),XU(r)}function E8(r){var t=r.findComponents({mainType:"legend"});!t||!t.length||r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Lt(u)&&(u=o[u]);for(var f=0;f<t.length;f++)if(!t[f].isSelected(u))return!1}return!0})})}function O8(r){var t={};r.eachSeriesByType("graph",function(e){var a=e.getCategoriesData(),n=e.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=e.getColorFromPalette(s,t)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var c=l.getShallow(f[v],!0);c!=null&&a.setItemVisual(o,f[v],c)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){K(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");H(f,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++)n.setItemVisual(o,v[c],a.getItemVisual(l,v[c]))}})})}function Hf(r){return r instanceof Array||(r=[r,r]),r}function N8(r){r.eachSeriesByType("graph",function(t){var e=t.getGraph(),a=t.getEdgeData(),n=Hf(t.get("edgeSymbol")),i=Hf(t.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",t.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=e.getEdgeByIndex(o),u=Hf(s.getShallow("symbol",!0)),f=Hf(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),c=a.ensureUniqueItemVisual(o,"style");switch(H(c,v),c.stroke){case"source":{var h=l.node1.getVisual("style");c.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");c.stroke=h&&h.fill;break}}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])})})}var Oy="-->",xh=function(r){return r.get("autoCurveness")||null},OP=function(r,t){var e=xh(r),a=20,n=[];if(Lt(e))a=e;else if(U(e)){r.__curvenessList=e;return}t>a&&(a=t);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},Cu=function(r,t,e){var a=[r.id,r.dataIndex].join("."),n=[t.id,t.dataIndex].join(".");return[e.uid,a,n].join(Oy)},NP=function(r){var t=r.split(Oy);return[t[0],t[2],t[1]].join(Oy)},B8=function(r,t){var e=Cu(r.node1,r.node2,t);return t.__edgeMap[e]},z8=function(r,t){var e=Ny(Cu(r.node1,r.node2,t),t),a=Ny(Cu(r.node2,r.node1,t),t);return e+a},Ny=function(r,t){var e=t.__edgeMap;return e[r]?e[r].length:0};function V8(r){xh(r)&&(r.__curvenessList=[],r.__edgeMap={},OP(r))}function G8(r,t,e,a){if(xh(e)){var n=Cu(r,t,e),i=e.__edgeMap,o=i[NP(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)}}function Z0(r,t,e,a){var n=xh(t),i=U(n);if(!n)return null;var o=B8(r,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===e){s=l;break}var u=z8(r,t);OP(t,u),r.lineStyle=r.lineStyle||{};var f=Cu(r.node1,r.node2,t),v=t.__curvenessList,c=i||u%2?0:1;if(o.isForward)return v[c+s];var h=NP(f),d=Ny(h,t),p=v[s+d+c];return a?i?n&&n[0]===0?(d+c)%2?p:-p:((d%2?0:1)+c)%2?p:-p:(d+c)%2?p:-p:v[s+d+c]}function BP(r){var t=r.coordinateSystem;if(!(t&&t.type!=="view")){var e=r.getGraph();e.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),X0(e,r)}}function X0(r,t){r.eachEdge(function(e,a){var n=gr(e.getModel().get(["lineStyle","curveness"]),-Z0(e,t,a,!0),0),i=$a(e.node1.getLayout()),o=$a(e.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]),e.setLayout(s)})}function F8(r,t){r.eachSeriesByType("graph",function(e){var a=e.get("layout"),n=e.coordinateSystem;if(n&&n.type!=="view"){var i=e.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)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}X0(i.graph,e)}else(!a||a==="none")&&BP(e)})}function Nl(r){var t=r.coordinateSystem;if(t.type!=="view")return 1;var e=r.option.nodeScaleRatio,a=t.scaleX,n=t.getZoom(),i=(n-1)*e+1;return i/a}function Bl(r){var t=r.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var bw=Math.PI,ap=[];function q0(r,t,e,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){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(e){var c=n.pointToData(a),h=c[0],d=c[1],p=[h-l,d-u];Ps(p,p),lv(p,p,f),e.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);zP(e,g,l,u)}H8[t](r,s,o,f,l,u,v),s.eachEdge(function(y,m){var _=gr(y.getModel().get(["lineStyle","curveness"]),Z0(y,r,m),0),S=$a(y.node1.getLayout()),x=$a(y.node2.getLayout()),b,w=(S[0]+x[0])/2,T=(S[1]+x[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,x,b])})}}}var H8={value:function(r,t,e,a,n,i,o){var s=0,l=e.getSum("value"),u=Math.PI*2/(l||o);t.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,t,e,a,n,i,o){var s=0;ap.length=o;var l=Nl(r);t.eachNode(function(v){var c=Bl(v);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var h=Math.asin(c/2/a);isNaN(h)&&(h=bw/2),ap[v.dataIndex]=h,s+=h*2});var u=(2*bw-s)/o/2,f=0;t.eachNode(function(v){var c=u+ap[v.dataIndex];f+=c,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=c})}};function zP(r,t,e,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(t){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-e);u<0&&(u=Math.PI*2+u);var f=l[0]<e;f&&(u=u-Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var c=s.ensureState("emphasis");H(c.textConfig||(c.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function W8(r){r.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&q0(t,"symbolSize")})}var Wo=ng;function $8(r,t,e){for(var a=r,n=t,i=e.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=e.gravity==null?.1:e.gravity,f=0;f<a.length;f++){var v=a[f];v.p||(v.p=vo(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=$a(v.p),v.edges=null}var c=e.friction==null?.6:e.friction,h=c,d,p;return{warmUp:function(){h=c*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(a,n);for(var y=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var x=S.n1,b=S.n2;Ni(y,b.p,x.p);var w=ig(y)-S.d,T=b.w/(x.w+b.w);isNaN(T)&&(T=0),Ps(y,y),!x.fixed&&Wo(x.p,x.p,y,T*w*h),!b.fixed&&Wo(b.p,b.p,y,-(1-T)*w*h)}}for(var _=0;_<m;_++){var C=a[_];C.fixed||(Ni(y,l,C.p),Wo(C.p,C.p,y,u*h))}for(var _=0;_<m;_++)for(var x=a[_],M=_+1;M<m;M++){var b=a[M];Ni(y,b.p,x.p);var w=ig(y);w===0&&(_m(y,Math.random()-.5,Math.random()-.5),w=1);var D=(x.rep+b.rep)/w/w;!x.fixed&&Wo(x.pp,x.pp,y,D),!b.fixed&&Wo(b.pp,b.pp,y,-D)}for(var I=[],_=0;_<m;_++){var C=a[_];C.fixed||(Ni(I,C.p,C.pp),Wo(C.p,C.p,I,h),Xe(C.pp,C.p))}h=h*.992;var L=h<.01;p&&p(a,n,L),g&&g(L)}}}function U8(r){r.eachSeriesByType("graph",function(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view"))if(t.get("layout")==="force"){var a=t.preservedPoints||{},n=t.getGraph(),i=n.data,o=n.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):!l||l==="none"?BP(t):l==="circular"&&q0(t,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),c=s.get("edgeLength"),h=U(v)?v:[v,v],d=U(c)?c:[c,c];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),b=Nt(_,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=Nt(_,f,d);isNaN(b)&&(b=(d[0]+d[1])/2);var w=x.getModel(),T=gr(x.getModel().get(["lineStyle","curveness"]),-Z0(x,t,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:b,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=e.getBoundingRect(),m=$8(p,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&&Xe(_[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(var b=0,w=S.length;b<w;b++){var T=S[b],C=n.getEdgeByIndex(b),M=T.n1.p,D=T.n2.p,I=C.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Xe(I[0],M),Xe(I[1],D),+T.curveness&&(I[2]=[(M[0]+D[0])/2-(M[1]-D[1])*T.curveness,(M[1]+D[1])/2-(D[0]-M[0])*T.curveness]),C.setLayout(I)}}),t.forceLayout=m,t.preservedPoints=a,m.step()}else t.forceLayout=null})}function Y8(r,t,e){var a=xe(r,t),n=H(r.getBoxLayoutParams(),{aspect:e}),i=qt(n,a.refContainer);return lL(r,i,e)}function Z8(r,t){var e=[];return r.eachSeriesByType("graph",function(a){Ou({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];qc(o,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=Y8(a,t,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var v=l[0]-s[0],c=l[1]-s[1],h=new wo(null,{api:t,ecModel:r});return h.zoomLimit=a.get("scaleLimit"),h.setBoundingRect(s[0],s[1],v,c),h.setViewRect(f.x,f.y,f.width,f.height),h.setCenter(a.get("center")),h.setZoom(a.get("zoom")),e.push(h),h}}),e}var ww=me.prototype,np=eh.prototype,VP=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(VP);function ip(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var X8=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new VP},t.prototype.buildPath=function(e,a){ip(a)?ww.buildPath.call(this,e,a):np.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return ip(this.shape)?ww.pointAt.call(this,e):np.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,n=ip(a)?[a.x2-a.x1,a.y2-a.y1]:np.tangentAt.call(this,e);return Ps(n,n)},t}(Ct);const GP=X8;var op=["fromSymbol","toSymbol"];function Tw(r){return"_"+r+"Type"}function Cw(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Hs(n),u=mo(o||0,l);return a+l+u+(i||"")+(s||"")}function Aw(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var n=t.getItemVisual(e,r+"Size"),i=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=Hs(n),u=mo(o||0,l),f=de(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function q8(r){var t=new GP({name:"line",subPixelOptimize:!0});return By(t.shape,r),t}function By(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var K8=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createLine(e,a,n),i}return t.prototype._createLine=function(e,a,n){var i=e.hostModel,o=e.getItemLayout(a),s=e.getItemVisual(a,"z2"),l=q8(o);l.shape.percent=0,Zt(l,{z2:rt(s,0),shape:{percent:1}},i,a),this.add(l),A(op,function(u){var f=Aw(u,e,a);this.add(f),this[Tw(u)]=Cw(u,e,a)},this),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};By(l.shape,s),kt(o,l,i,a),A(op,function(u){var f=Cw(u,e,a),v=Tw(u);if(this[v]!==f){this.remove(this.childOfName(u));var c=Aw(u,e,a);this.add(c)}this[v]=f},this),this._updateCommonStl(e,a,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,n){var i=e.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||e.hasItemOption){var d=e.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),v=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),f=Se(d)}var g=e.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(op,function(b){var w=this.childOfName(b);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Je.length;T++){var C=Je[T],M=o.getState(C);if(M){var D=M.style||{},I=w.ensureState(C),L=I.style||(I.style={});D.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(L.opacity=D.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);Ce(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(b,w){return i.getFormattedLabel(b,w,e.dataType)}},inheritColor:y||z.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?e.getName(a):isFinite(m)?fe(m):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");U(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Xt(this,c,h,v)},t.prototype.highlight=function(){Ja(this)},t.prototype.downplay=function(){Qa(this)},t.prototype.updateLayout=function(e,a){this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");By(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),i=e.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),v=l.pointAt(u),c=Ni([],v,f);Ps(c,c);function h(M,D){var I=M.__specifiedRotation;if(I==null){var L=l.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else M.attr("rotation",I)}if(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 d=void 0,p=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(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);v[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=c[0]*y+v[0],i.y=c[1]*m+v[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=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],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=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]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=b[0],i.y=b[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+v[0],i.y=v[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},t}(it);const K0=K8;var j8=function(){function r(t){this.group=new it,this._LineCtor=t||K0}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=t,i||n.removeAll();var o=Mw(t);t.diff(i).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(i,t,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Mw(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e){this._progressiveEls=[];function a(s){!s.isGroup&&!J8(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=t.start;n<t.end;n++){var i=e.getItemLayout(n);if(sp(i)){var o=new this._LineCtor(e,n,this._seriesScope);o.traverse(a),this.group.add(o),e.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Kn(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var n=t.getItemLayout(e);if(sp(n)){var i=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,i),this.group.add(i)}},r.prototype._doUpdate=function(t,e,a,n,i){var o=t.getItemGraphicEl(a);if(!sp(e.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(e,n,i):o=new this._LineCtor(e,n,i),e.setItemGraphicEl(n,o),this.group.add(o)},r}();function J8(r){return r.animators&&r.animators.length>0}function Mw(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Se(t)}}function Dw(r){return isNaN(r[0])||isNaN(r[1])}function sp(r){return r&&!Dw(r[0])&&!Dw(r[1])}const j0=j8;var lp=[],up=[],fp=[],$o=Le,vp=Ui,Lw=Math.abs;function Iw(r,t,e){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=e*e,u=.1,f=.1;f<=.9;f+=.1){lp[0]=$o(a[0],n[0],i[0],f),lp[1]=$o(a[1],n[1],i[1],f);var v=Lw(vp(lp,t)-l);v<o&&(o=v,s=f)}for(var c=0;c<32;c++){var h=s+u;up[0]=$o(a[0],n[0],i[0],s),up[1]=$o(a[1],n[1],i[1],s),fp[0]=$o(a[0],n[0],i[0],h),fp[1]=$o(a[1],n[1],i[1],h);var v=vp(up,t)-l;if(Lw(v)<.01)break;var d=vp(fp,t)-l;u/=2,v<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function cp(r,t){var e=[],a=tu,n=[[],[],[]],i=[[],[]],o=[];t/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[$a(u[0]),$a(u[1])],u[2]&&u.__original.push($a(u[2])));var c=u.__original;if(u[2]!=null){if(Xe(n[0],c[0]),Xe(n[1],c[2]),Xe(n[2],c[1]),f&&f!=="none"){var h=Bl(s.node1),d=Iw(n,c[0],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[0][0]=e[3],n[1][0]=e[4],a(n[0][1],n[1][1],n[2][1],d,e),n[0][1]=e[3],n[1][1]=e[4]}if(v&&v!=="none"){var h=Bl(s.node2),d=Iw(n,c[1],h*t);a(n[0][0],n[1][0],n[2][0],d,e),n[1][0]=e[1],n[2][0]=e[2],a(n[0][1],n[1][1],n[2][1],d,e),n[1][1]=e[1],n[2][1]=e[2]}Xe(u[0],n[0]),Xe(u[1],n[2]),Xe(u[2],n[1])}else{if(Xe(i[0],c[0]),Xe(i[1],c[1]),Ni(o,i[1],i[0]),Ps(o,o),f&&f!=="none"){var h=Bl(s.node1);ng(i[0],i[0],o,h*t)}if(v&&v!=="none"){var h=Bl(s.node2);ng(i[1],i[1],o,-h*t)}Xe(u[0],i[0]),Xe(u[1],i[1])}})}var FP=wt();function Q8(r){if(r)return FP(r).bridge}function Pw(r,t){r&&(FP(r).bridge=t)}function kw(r){return r.type==="view"}var t6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){var n=new Fu,i=new j0,o=this.group,s=new it;this._controller=new bo(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},t.prototype.render=function(e,a,n){var i=this,o=e.coordinateSystem,s=!1;this._model=e,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(kw(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(v):kt(this._mainGroup,v,e)}cp(e.getGraph(),Nl(e));var c=e.getData();u.updateData(c);var h=e.getEdgeData();f.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,e,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,p=e.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var g=e.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 T=w.get("draggable");T&&b.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(x),c.setItemLayout(x,[b.x,b.y]);break;case"circular":c.setItemLayout(x,[b.x,b.y]),S.setLayout({fixed:!0},!0),q0(e,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(e);break;case"none":default:c.setItemLayout(x,[b.x,b.y]),X0(e.getGraph(),e),i.updateLayout(e);break}}).on("dragend",function(){d&&d.setUnfixed(x)}),b.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(ht(b).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var x=S.getGraphicEl(),b=S.getModel().get(["emphasis","focus"]);x&&b==="adjacency"&&(ht(x).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=e.get("layout")==="circular"&&e.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){zP(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,a,n){var i=this,o=!1;(function s(){e.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())})})()},t.prototype._updateController=function(e,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!kw(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!e||e.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},t.prototype.updateViewOnPan=function(e,a,n){this._active&&(z0(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},t.prototype.updateViewOnZoom=function(e,a,n){this._active&&(V0(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),cp(e.getGraph(),Nl(e)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,a=e.getData(),n=Nl(e);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(cp(e.getGraph(),Nl(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.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()},t.prototype._getThumbnailInfo=function(){var e=this._model,a=e.coordinateSystem;if(a.type==="view"){var n=Q8(e);if(n)return{bridge:n,coordSys:a}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(e.coordSys.transform,this._api)},t.prototype._renderThumbnail=function(e,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new it,l=n.group.children(),u=i.group.children(),f=new it,v=new it;s.add(v),s.add(f);for(var c=0;c<l.length;c++){var h=l[c],d=h.children()[0],p=h.x,g=h.y,y=nt(d.shape),m=H(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=nt(d.style),S=new d.constructor({shape:m,style:_,z2:151});v.add(S)}for(var c=0;c<u.length;c++){var h=u[c],x=h.children()[0],_=nt(x.style),m=nt(x.shape),b=new GP({style:_,shape:m,z2:151});f.add(b)}o.bridge.renderContent({api:a,roamType:e.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},t.type="graph",t}(Ut);const e6=t6;function Uo(r){return"_EC_"+r}var r6=function(){function r(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(t,e){t=t==null?""+e:""+t;var a=this._nodesMap;if(!a[Uo(t)]){var n=new Li(t,e);return n.hostGraph=this,this.nodes.push(n),a[Uo(t)]=n,n}},r.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},r.prototype.getNodeById=function(t){return this._nodesMap[Uo(t)]},r.prototype.addEdge=function(t,e,a){var n=this._nodesMap,i=this._edgesMap;if(Lt(t)&&(t=this.nodes[t]),Lt(e)&&(e=this.nodes[e]),t instanceof Li||(t=n[Uo(t)]),e instanceof Li||(e=n[Uo(e)]),!(!t||!e)){var o=t.id+"-"+e.id,s=new HP(t,e,a);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},r.prototype.getEdge=function(t,e){t instanceof Li&&(t=t.id),e instanceof Li&&(e=e.id);var a=this._edgesMap;return this._directed?a[t+"-"+e]:a[t+"-"+e]||a[e+"-"+t]},r.prototype.eachNode=function(t,e){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&t.call(e,a[i],i)},r.prototype.eachEdge=function(t,e){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&&t.call(e,a[i],i)},r.prototype.breadthFirstTraverse=function(t,e,a,n){if(e instanceof Li||(e=this._nodesMap[Uo(e)]),!!e){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(n,e,null))for(var s=[e];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(t.call(n,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var t=this.data,e=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)a[t.getRawIndex(i)].dataIndex=i;e.filterSelf(function(s){var l=n[e.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var t=new r(this._directed),e=this.nodes,a=this.edges,n=0;n<e.length;n++)t.addNode(e[n].id,e[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];t.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return t},r}(),Li=function(){function r(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=e??-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(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.data.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var a=this.edges[e];a.dataIndex<0||(t.edge.push(a.dataIndex),t.node.push(a.node1.dataIndex,a.node2.dataIndex))}return t},r.prototype.getTrajectoryDataIndices=function(){for(var t=et(),e=et(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,e.set(u.dataIndex,!0);for(var f=u.inEdges,v=0,c=f.length,h=void 0,d=void 0;v<c;v++)h=f[v],d=h.dataIndex,d>=0&&!t.hasKey(d)&&(t.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,e.set(p.dataIndex,!0);for(var g=p.outEdges,v=0,y=g.length,m=void 0,_=void 0;v<y;v++)m=g[v],_=m.dataIndex,_>=0&&!t.hasKey(_)&&(t.set(_,!0),s.push(m.node2))}}}return{edge:t.keys(),node:e.keys()}},r}(),HP=function(){function r(t,e,a){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=a??-1}return r.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,a=e.edgeData.getItemModel(this.dataIndex);return a.getModel(t)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var t=et(),e=et();t.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,e.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,v=void 0;l<u;l++)f=o.inEdges[l],v=f.dataIndex,v>=0&&!t.hasKey(v)&&(t.set(v,!0),a.push(f.node1))}for(i=0;i<n.length;){var c=n[i];i++,e.set(c.dataIndex,!0);for(var h=c.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=c.outEdges[l],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),n.push(d.node2))}return{edge:t.keys(),node:e.keys()}},r}();function WP(r,t){return{getValue:function(e){var a=this[r][t];return a.getStore().get(a.getDimensionIndex(e||"value"),this.dataIndex)},setVisual:function(e,a){this.dataIndex>=0&&this[r][t].setItemVisual(this.dataIndex,e,a)},getVisual:function(e){return this[r][t].getItemVisual(this.dataIndex,e)},setLayout:function(e,a){this.dataIndex>=0&&this[r][t].setItemLayout(this.dataIndex,e,a)},getLayout:function(){return this[r][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][t].getRawIndex(this.dataIndex)}}}pe(Li,WP("hostGraph","data"));pe(HP,WP("hostGraph","edgeData"));const a6=r6;function J0(r,t,e,a,n){for(var i=new a6(a),o=0;o<r.length;o++)i.addNode(Oe(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var f=t[o],v=f.source,c=f.target;i.addEdge(v,c,u)&&(l.push(f),s.push(Oe(ye(f.id,null),v+" > "+c)),u++)}var h=e.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=sn(r,e);else{var p=Nu.get(h),g=p?p.dimensions||[]:[];yt(g,"value")<0&&g.concat(["value"]);var y=zu(r,{coordDimensions:g,encodeDefine:e.getEncode()}).dimensions;d=new je(y,e),d.initData(r)}var m=new je(["value"],e);return m.initData(l,s),n&&n(d,m),wP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var n6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Ys(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){r.prototype.mergeDefaultAndTheme.apply(this,arguments),eo(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&n){V8(this);var s=J0(i,n,this,!0,l);return A(s.edges,function(u){G8(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var v=Rt.prototype.getModel;function c(d,p){var g=v.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=c,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(e,n),s=i.graph.getEdgeByIndex(e),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),he("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var v=$L({series:this,dataIndex:e,multipleSeries:a});return v},t.prototype._updateCategoriesData=function(){var e=Y(this.option.categories||[],function(n){return n.value!=null?n:H({value:0},n)}),a=new je(["value"],this);a.initData(e),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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:z.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:z.color.primary}}},t}(Kt);const i6=n6;function o6(r){r.registerChartView(e6),r.registerSeriesModel(i6),r.registerProcessor(E8),r.registerVisual(O8),r.registerVisual(N8),r.registerLayout(F8),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,W8),r.registerLayout(U8),r.registerCoordinateSystem("graphView",{dimensions:wo.dimensions,create:Z8}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},oe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},oe),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",query:t},function(n){var i=a.getViewOfSeriesModel(n);i&&(t.dx!=null&&t.dy!=null&&i.updateViewOnPan(n,a,t),t.zoom!=null&&t.originX!=null&&t.originY!=null&&i.updateViewOnZoom(n,a,t));var o=n.coordinateSystem,s=mh(o,t,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var s6=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;ht(i).dataType="node",i.z2=2;var o=new Pt;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.graph.getNodeByIndex(a),l=e.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=e.getItemLayout(a),c=H(Sa(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(c.startAngle)){h.setShape(c);return}i?h.setShape(c):kt(h,{shape:c},l,a);var d=H(Sa(u.getModel("itemStyle"),v,!0),v);o.setShape(d),o.useStyle(e.getItemVisual(a,"style")),_e(o,u),this._updateLabel(l,u,s),e.setItemGraphicEl(a,h),_e(h,u,"itemStyle");var p=f.get("focus");Xt(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},t.prototype._updateLabel=function(e,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=Se(a),c=n.getVisual("style");Ce(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,x,b,w){return e.getFormattedLabel(m,_,"node",x,gr(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 h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},t}(Qe);const Rw=s6;var l6=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;return ht(o).dataType="edge",o.updateData(e,a,n,i,!0),o}return t.prototype.buildPath=function(e,a){e.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;e.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),e.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]),e.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),e.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]),e.closePath()},t.prototype.updateData=function(e,a,n,i,o){var s=e.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"),d=h.get("focus"),p=H(Sa(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Ew(g,l,e,c)):(Br(g),Ew(g,l,e,c),kt(g,{shape:p},s,n)),Xt(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),_e(g,v,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},t}(Ct);function Ew(r,t,e,a){var n=t.node1,i=t.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=e.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=e.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=e.getItemVisual(n.dataIndex,"style").fill,u=e.getItemVisual(i.dataIndex,"style").fill;if(K(l)&&K(u)){var f=r.shape,v=(f.s1[0]+f.s2[0])/2,c=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new Os(v,c,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var u6=Math.PI/180,f6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group,l=-e.get("startAngle")*u6;if(i.diff(o).add(function(f){var v=i.getItemLayout(f);if(v){var c=new Rw(i,f,l);ht(c).dataIndex=f,s.add(c)}}).update(function(f,v){var c=o.getItemGraphicEl(v),h=i.getItemLayout(f);if(!h){c&&Ua(c,e,v);return}c?c.updateData(i,f,l):c=new Rw(i,f,l),s.add(c)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&Ua(v,e,f)}).execute(),!o){var u=e.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=q(u[0],n.getWidth()),this.group.originY=q(u[1],n.getHeight()),Zt(this.group,{scaleX:1,scaleY:1},e)}this._data=i,this.renderEdges(e,l)},t.prototype.renderEdges=function(e,a){var n=e.getData(),i=e.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new l6(n,i,l,a);ht(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&&Ua(u,e,l)}).execute(),this._edgeData=i},t.prototype.dispose=function(){},t.type="chord",t}(Ut);const v6=f6;var c6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new Ys(j(this.getData,this),j(this.getRawData,this))},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[];if(i&&n){var o=J0(i,n,this,!0,s);return o.data}function s(l,u){var f=Rt.prototype.getModel;function v(h,d){var p=f.call(this,h,d);return p.resolveParentPath=c,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=v,h});function c(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){var i=this.getDataParams(e,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(e),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),he("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return he("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(e);if(n.name==null&&(n.name=i.getName(e)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},t.type="series.chord",t.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}}},t}(Kt);const h6=c6;var hp=Math.PI/180;function d6(r,t){r.eachSeriesByType("chord",function(e){p6(e,t)})}function p6(r,t){var e=r.getData(),a=e.graph,n=r.getEdgeData(),i=n.count();if(i){var o=sL(r,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*hp,0),c=Math.max((r.get("minAngle")||0)*hp,0),h=-r.get("startAngle")*hp,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];Kc(y,!p);var m=y[0],_=y[1],S=_-m,x=e.getSum("value")===0&&n.getSum("value")===0,b=[],w=0;a.eachEdge(function(E){var B=x?1:E.getValue("value");x&&(B>0||c)&&(w+=2);var G=E.node1.dataIndex,F=E.node2.dataIndex;b[G]=(b[G]||0)+B,b[F]=(b[F]||0)+B});var T=0;if(a.eachNode(function(E){var B=E.getValue("value");isNaN(B)||(b[E.dataIndex]=Math.max(B,b[E.dataIndex]||0)),!x&&(b[E.dataIndex]>0||c)&&w++,T+=b[E.dataIndex]||0}),!(w===0||T===0)){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 C=(S-v*w*g)/T,M=0,D=0,I=0;a.eachNode(function(E){var B=b[E.dataIndex]||0,G=C*(T?B:1)*g;Math.abs(G)<c?M+=c-Math.abs(G):(D+=Math.abs(G)-c,I+=Math.abs(G)),E.setLayout({angle:G,value:B})});var L=!1;if(M>D){var P=M/D;a.eachNode(function(E){var B=E.getLayout().angle;Math.abs(B)>=c?E.setLayout({angle:B*P,ratio:P},!0):E.setLayout({angle:c,ratio:c===0?1:B/c},!0)})}else a.eachNode(function(E){if(!L){var B=E.getLayout().angle,G=Math.min(B/I,1),F=G*M;B-F<c&&(L=!0)}});var k=M;a.eachNode(function(E){if(!(k<=0)){var B=E.getLayout().angle;if(B>c&&c>0){var G=L?1:Math.min(B/I,1),F=B-c,W=Math.min(F,Math.min(k,M*G));k-=W,E.setLayout({angle:B-W,ratio:(B-W)/B},!0)}else c>0&&E.setLayout({angle:c,ratio:B===0?1:c/B},!0)}});var R=m,O=[];a.eachNode(function(E){var B=Math.max(E.getLayout().angle,c);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:R,endAngle:R+B*g,clockwise:p},!0),O[E.dataIndex]=R,R+=(B+v)*g}),a.eachEdge(function(E){var B=x?1:E.getValue("value"),G=C*(T?B:1)*g,F=E.node1.dataIndex,W=O[F]||0,X=Math.abs((E.node1.getLayout().ratio||1)*G),J=W+X*g,ft=[s+f*Math.cos(W),l+f*Math.sin(W)],Dt=[s+f*Math.cos(J),l+f*Math.sin(J)],zt=E.node2.dataIndex,ct=O[zt]||0,V=Math.abs((E.node2.getLayout().ratio||1)*G),$=ct+V*g,Z=[s+f*Math.cos(ct),l+f*Math.sin(ct)],tt=[s+f*Math.cos($),l+f*Math.sin($)];E.setLayout({s1:ft,s2:Dt,sStartAngle:W,sEndAngle:J,t1:Z,t2:tt,tStartAngle:ct,tEndAngle:$,cx:s,cy:l,r:f,value:B,clockwise:p}),O[F]=J,O[zt]=$})}}}function g6(r){r.registerChartView(v6),r.registerSeriesModel(h6),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,d6),r.registerProcessor($s("chord"))}var y6=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),m6=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="pointer",a}return t.prototype.getDefaultShape=function(){return new y6},t.prototype.buildPath=function(e,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,e.moveTo(u,f),e.lineTo(a.x+n(l)*s,a.y+i(l)*s),e.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),e.lineTo(a.x-n(l)*s,a.y-i(l)*s),e.lineTo(u,f)},t}(Ct);const _6=m6;function S6(r,t){var e=r.get("center"),a=t.getWidth(),n=t.getHeight(),i=Math.min(a,n),o=q(e[0],t.getWidth()),s=q(e[1],t.getHeight()),l=q(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Wf(r,t){var e=r==null?"":r+"";return t&&(K(t)?e=t.replace("{value}",e):at(t)&&(e=t(r))),e}var x6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),o=S6(e,n);this._renderMain(e,a,n,i,o),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,a,n,i,o){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,f=-e.get("endAngle")/180*Math.PI,v=e.getModel("axisLine"),c=v.get("roundCap"),h=c?hc:Qe,d=v.get("show"),p=v.getModel("lineStyle"),g=p.get("width"),y=[u,f];Kc(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],x=0;d&&x<i.length;x++){var b=Math.min(Math.max(i[x][0],0),1);f=u+m*b;var w=new h({shape:{startAngle:_,endAngle:f,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(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),A(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=C&&(M===0?0:i[M-1][0])<C)return i[M][1];return i[M-1][1]};this._renderTicks(e,a,n,T,o,u,f,l,g),this._renderTitleAndDetail(e,a,n,T,o),this._renderAnchor(e,o),this._renderPointer(e,a,n,T,o,u,f,l,g)},t.prototype._renderTicks=function(e,a,n,i,o,s,l,u,f){for(var v=this.group,c=o.cx,h=o.cy,d=o.r,p=+e.get("min"),g=+e.get("max"),y=e.getModel("splitLine"),m=e.getModel("axisTick"),_=e.getModel("axisLabel"),S=e.get("splitNumber"),x=m.get("splitNumber"),b=q(y.get("length"),d),w=q(m.get("length"),d),T=s,C=(l-s)/S,M=C/x,D=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),P,k,R=0;R<=S;R++){if(P=Math.cos(T),k=Math.sin(T),y.get("show")){var O=L?L+f:f,E=new me({shape:{x1:P*(d-O)+c,y1:k*(d-O)+h,x2:P*(d-b-O)+c,y2:k*(d-b-O)+h},style:D,silent:!0});D.stroke==="auto"&&E.setStyle({stroke:i(R/S)}),v.add(E)}if(_.get("show")){var O=_.get("distance")+L,B=Wf(fe(R/S*(g-p)+p),_.get("formatter")),G=i(R/S),F=P*(d-b-O)+c,W=k*(d-b-O)+h,X=_.get("rotate"),J=0;X==="radial"?(J=-T+2*Math.PI,J>Math.PI/2&&(J+=Math.PI)):X==="tangential"?J=-T-Math.PI/2:Lt(X)&&(J=X*Math.PI/180),J===0?v.add(new Pt({style:$t(_,{text:B,x:F,y:W,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:G}),silent:!0})):v.add(new Pt({style:$t(_,{text:B,x:F,y:W,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:F,originY:W,rotation:J}))}if(m.get("show")&&R!==S){var O=m.get("distance");O=O?O+f:f;for(var ft=0;ft<=x;ft++){P=Math.cos(T),k=Math.sin(T);var Dt=new me({shape:{x1:P*(d-O)+c,y1:k*(d-O)+h,x2:P*(d-w-O)+c,y2:k*(d-w-O)+h},silent:!0,style:I});I.stroke==="auto"&&Dt.setStyle({stroke:i((R+ft/x)/S)}),v.add(Dt),T+=M}T-=M}else T+=C}},t.prototype._renderPointer=function(e,a,n,i,o,s,l,u,f){var v=this.group,c=this._data,h=this._progressEls,d=[],p=e.get(["pointer","show"]),g=e.getModel("progress"),y=g.get("show"),m=e.getData(),_=m.mapDimension("value"),S=+e.get("min"),x=+e.get("max"),b=[S,x],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),P=q(L.get("width"),o.r),k=q(L.get("length"),o.r),R=e.get(["pointer","icon"]),O=L.get("offsetCenter"),E=q(O[0],o.r),B=q(O[1],o.r),G=L.get("keepAspect"),F;return R?F=de(R,E-P/2,B-k,P,k,null,G):F=new _6({shape:{angle:-Math.PI/2,width:P,r:k,x:E,y:B}}),F.rotation=-(D+Math.PI/2),F.x=o.cx,F.y=o.cy,F}function C(M,D){var I=g.get("roundCap"),L=I?hc:Qe,P=g.get("overlap"),k=P?g.get("width"):f/m.count(),R=P?o.r-k:o.r-(M+1)*k,O=P?o.r:o.r-M*k,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:O}});return P&&(E.z2=Nt(m.get(_,M),[S,x],[100,0],!0)),E}(y||p)&&(m.diff(c).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);Zt(I,{rotation:-((isNaN(+D)?w[0]:Nt(D,b,w,!0))+Math.PI/2)},e),v.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),P=g.get("clip");Zt(L,{shape:{endAngle:Nt(D,b,w,P)}},e),v.add(L),Eg(e.seriesIndex,m.dataType,M,L),d[M]=L}}).update(function(M,D){var I=m.get(_,M);if(p){var L=c.getItemGraphicEl(D),P=L?L.rotation:s,k=T(M,P);k.rotation=P,kt(k,{rotation:-((isNaN(+I)?w[0]:Nt(I,b,w,!0))+Math.PI/2)},e),v.add(k),m.setItemGraphicEl(M,k)}if(y){var R=h[D],O=R?R.shape.endAngle:s,E=C(M,O),B=g.get("clip");kt(E,{shape:{endAngle:Nt(I,b,w,B)}},e),v.add(E),Eg(e.seriesIndex,m.dataType,M,E),d[M]=E}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),k=I.get("disabled");if(p){var R=m.getItemGraphicEl(M),O=m.getItemVisual(M,"style"),E=O.fill;if(R instanceof Be){var B=R.style;R.useStyle(H({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},O))}else R.useStyle(O),R.type!=="pointer"&&R.setColor(E);R.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(Nt(m.get(_,M),b,[0,1],!0))),R.z2EmphasisLift=0,_e(R,D),Xt(R,L,P,k)}if(y){var G=d[M];G.useStyle(m.getItemVisual(M,"style")),G.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,_e(G,D),Xt(G,L,P,k)}}),this._progressEls=d)},t.prototype._renderAnchor=function(e,a){var n=e.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=de(s,a.cx-o/2+q(l[0],a.r),a.cy-o/2+q(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)}},t.prototype._renderTitleAndDetail=function(e,a,n,i,o){var s=this,l=e.getData(),u=l.mapDimension("value"),f=+e.get("min"),v=+e.get("max"),c=new it,h=[],d=[],p=e.isAnimationEnabled(),g=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Pt({silent:!0}),d[y]=new Pt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new it,x=i(Nt(_,[f,v],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),T=o.cx+q(w[0],o.r),C=o.cy+q(w[1],o.r),M=h[y];M.attr({z2:g?0:2,style:$t(b,{x:T,y:C,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+q(I[0],o.r),P=o.cy+q(I[1],o.r),k=q(D.get("width"),o.r),R=q(D.get("height"),o.r),O=e.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:$t(D,{x:L,y:P,text:Wf(_,E),width:isNaN(k)?null:k,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:O})}),GD(M,{normal:D},_,function(G){return Wf(G,E)}),p&&FD(M,y,l,e,{getFormattedLabel:function(G,F,W,X,J,ft){return Wf(ft?ft.interpolatedValue:_,E)}}),S.add(M)}c.add(S)}),this.group.add(c),this._titleEls=h,this._detailEls=d},t.type="gauge",t}(Ut);const b6=x6;var w6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return t.prototype.getInitialData=function(e,a){return Us(this,["value"])},t.type="series.gauge",t.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,z.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:z.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:z.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:z.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:z.color.neutral00,borderWidth:0,borderColor:z.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:z.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:z.color.transparent,borderWidth:0,borderColor:z.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:z.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Kt);const T6=w6;function C6(r){r.registerChartView(b6),r.registerSeriesModel(T6)}var A6=["itemStyle","opacity"],M6=function(r){N(t,r);function t(e,a){var n=r.call(this)||this,i=n,o=new Ue,s=new Pt;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(e,a,!0),n}return t.prototype.updateData=function(e,a,n){var i=this,o=e.hostModel,s=e.getItemModel(a),l=e.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(A6);f=f??1,n||Br(i),i.useStyle(e.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,Zt(i,{style:{opacity:f}},o,a)):kt(i,{style:{opacity:f},shape:{points:l.points}},o,a),_e(i,s),this._updateLabel(e,a),Xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=e.hostModel,l=e.getItemModel(a),u=e.getItemLayout(a),f=u.label,v=e.getItemVisual(a,"style"),c=v.fill;Ce(o,Se(l),{labelFetcher:e.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:e.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?c:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new st(g[0][0],g[0][1]):null},kt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),C0(n,A0(l),{stroke:c})},t}(tr),D6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new M6(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){var u=o.getItemGraphicEl(l);Ua(u,e,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Ut);const L6=D6;var I6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(j(this.getData,this),j(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,a){return Us(this,{coordDimensions:["value"],encodeDefaulter:gt(a0,this)})},t.prototype._defaultLabelLine=function(e){eo(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var a=this.getData(),n=r.prototype.getDataParams.call(this,e),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,e)/o*100).toFixed(2):0,n.$vars.push("percent"),n},t.type="series.funnel",t.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:z.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:z.color.primary}}},t}(Kt);const P6=I6;function k6(r,t){for(var e=r.mapDimension("value"),a=r.mapArray(e,function(l){return l}),n=[],i=t==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return at(t)?n.sort(t):t!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function R6(r){var t=r.hostModel,e=t.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,c,h,d;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(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"),d=[[c,h],[c,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,c=y-5,v="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,c=y+5,v="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,v="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,v="center"):o==="rightTop"?(p=e==="horizontal"?u[3][0]:u[1][0],g=e==="horizontal"?u[3][1]:u[1][1],e==="horizontal"?(m=g-_,h=m-5,v="center"):(y=p+_,c=y+5,v="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],e==="horizontal"?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="bottom")):o==="leftTop"?(p=u[0][0],g=e==="horizontal"?u[0][1]:u[1][1],e==="horizontal"?(m=g-_,h=m-5,v="center"):(y=p-_,c=y-5,v="right")):o==="leftBottom"?(p=e==="horizontal"?u[1][0]:u[3][0],g=e==="horizontal"?u[1][1]:u[2][1],e==="horizontal"?(m=g+_,h=m+5,v="center"):(y=p-_,c=y-5,v="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,e==="horizontal"?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="left")),e==="horizontal"?(y=p,c=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:c,y:h,verticalAlign:"middle",textAlign:v,inside:f}})}function E6(r,t){r.eachSeriesByType("funnel",function(e){var a=e.getData(),n=a.mapDimension("value"),i=e.get("sort"),o=xe(e,t),s=qt(e.getBoxLayoutParams(),o.refContainer),l=e.get("orient"),u=s.width,f=s.height,v=k6(a,i),c=s.x,h=s.y,d=l==="horizontal"?[q(e.get("minSize"),f),q(e.get("maxSize"),f)]:[q(e.get("minSize"),u),q(e.get("maxSize"),u)],p=a.getDataExtent(n),g=e.get("min"),y=e.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=e.get("funnelAlign"),_=e.get("gap"),S=l==="horizontal"?u:f,x=(S-_*(a.count()-1))/a.count(),b=function(k,R){if(l==="horizontal"){var O=a.get(n,k)||0,E=Nt(O,[g,y],d,!0),B=void 0;switch(m){case"top":B=h;break;case"center":B=h+(f-E)/2;break;case"bottom":B=h+(f-E);break}return[[R,B],[R,B+E]]}var G=a.get(n,k)||0,F=Nt(G,[g,y],d,!0),W;switch(m){case"left":W=c;break;case"center":W=c+(u-F)/2;break;case"right":W=c+u-F;break}return[[W,R],[W+F,R]]};i==="ascending"&&(x=-x,_=-_,l==="horizontal"?c+=u:h+=f,v=v.reverse());for(var w=0;w<v.length;w++){var T=v[w],C=v[w+1],M=a.getItemModel(T);if(l==="horizontal"){var D=M.get(["itemStyle","width"]);D==null?D=x:(D=q(D,u),i==="ascending"&&(D=-D));var I=b(T,c),L=b(C,c+D);c+=D+_,a.setItemLayout(T,{points:I.concat(L.slice().reverse())})}else{var P=M.get(["itemStyle","height"]);P==null?P=x:(P=q(P,f),i==="ascending"&&(P=-P));var I=b(T,h),L=b(C,h+P);h+=P+_,a.setItemLayout(T,{points:I.concat(L.slice().reverse())})}}R6(a)})}function O6(r){r.registerChartView(L6),r.registerSeriesModel(P6),r.registerLayout(E6),r.registerProcessor($s("funnel"))}var N6=.3,B6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new it,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.dimensions,v=Nw(e);s.diff(l).add(c).update(h).remove(d).execute();function c(g){var y=Ow(s,o,g,f,u);dp(y,s,g,v)}function h(g,y){var m=l.getItemGraphicEl(y),_=$P(s,g,f,u);s.setItemGraphicEl(g,m),kt(m,{shape:{points:_}},e,g),Br(m),dp(m,s,g,v)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=z6(u,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=Nw(a),u=this._progressiveEls=[],f=e.start;f<e.end;f++){var v=Ow(i,this._dataGroup,f,s,o);v.incremental=!0,dp(v,i,f,l),u.push(v)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Ut);function z6(r,t,e){var a=r.model,n=r.getRect(),i=new bt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Zt(i,{shape:{width:n.width,height:n.height}},t,e),i}function $P(r,t,e,a){for(var n=[],i=0;i<e.length;i++){var o=e[i],s=r.get(r.mapDimension(o),t);V6(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function Ow(r,t,e,a,n){var i=$P(r,e,a,n),o=new Ue({shape:{points:i},z2:10});return t.add(o),r.setItemGraphicEl(e,o),o}function Nw(r){var t=r.get("smooth",!0);return t===!0&&(t=N6),t=ja(t),He(t)&&(t=0),{smooth:t}}function dp(r,t,e,a){r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=t.getItemModel(e),i=n.getModel("emphasis");_e(r,n,"lineStyle"),Xt(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function V6(r,t){return t==="category"?r==null:r==null||isNaN(r)}const G6=B6;var F6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,a){return sn(null,this,{useEncodeDefaulter:j(H6,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){e===o&&i.push(n.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.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:500,smooth:!1,animationEasing:"linear"},t}(Kt);function H6(r){var t=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(t){var e={};return A(t.dimensions,function(a){var n=W6(a);e[a]=n}),e}}function W6(r){return+r.replace("dim","")}const $6=F6;var U6=["lineStyle","opacity"],Y6={seriesType:"parallel",reset:function(r,t){var e=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){e.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(U6,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},n.start,n.end)}}}};const Z6=Y6;function X6(r){q6(r),K6(r)}function q6(r){if(!r.parallel){var t=!1;A(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function K6(r){var t=Ht(r.parallelAxis);A(t,function(e){if(ut(e)){var a=e.parallelIndex||0,n=Ht(r.parallel)[a];n&&n.parallelAxisDefault&&mt(e,n.parallelAxisDefault,!1)}})}var j6=5,J6=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this._model=e,this._api=n,this._handlers||(this._handlers={},A(Q6,function(i,o){n.getZr().on(o,this._handlers[o]=j(i,this))},this)),Fs(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,a){cu(this,"_throttledDispatchExpand"),A(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(H({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Qt),Q6={mousedown:function(r){pp(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(pp(this,"click")&&t){var e=[r.offsetX,r.offsetY],a=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(a>j6)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!pp(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=e.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function pp(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const tY=J6;var eY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var a=this.option;e&&mt(a,e,!0),this._initDimensions()},t.prototype.contains=function(e,a){var n=e.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){e.hasOwnProperty(a)&&(this.option[a]=e[a])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],a=this.parallelAxisIndex=[],n=Bt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){e.push("dim"+i.get("dim")),a.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t}(It);const rY=eY;var aY=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(ea);const nY=aY;function $n(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Yo(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Yo(s,[0,o]),n=i=Yo(s,[n,i]),a=0}t[0]=Yo(t[0],e),t[1]=Yo(t[1],e);var l=gp(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Yo(t[a],f);var v;return v=gp(t,a),n!=null&&(v.sign!==l.sign||v.span<n)&&(t[1-a]=t[a]+l.sign*n),v=gp(t,a),i!=null&&v.span>i&&(t[1-a]=t[a]+v.sign*i),t}function gp(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Yo(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var yp=A,UP=Math.min,YP=Math.max,Bw=Math.floor,iY=Math.ceil,zw=fe,oY=Math.PI,sY=function(){function r(t,e,a){this.type="parallel",this._axesMap=et(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=t.dimensions,i=t.parallelAxisIndex;yp(n,function(o,s){var l=i[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new nY(o,hh(u),[0,0],u.get("type"),l)),v=f.type==="category";f.onBand=v&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),a=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],s=t[i];return o>=a&&o<=a+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(a){if(t.contains(a,e)){var n=a.getData();yp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),bs(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){var a=xe(t,e).refContainer;this._rect=qt(t.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,a=["x","y"],n=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=$f(t.get("axisExpandWidth"),l),v=$f(t.get("axisExpandCount")||0,[0,u]),c=t.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,h=t.get("axisExpandWindow"),d;if(h)d=$f(h[1]-h[0],l),h[1]=h[0]+d;else{d=$f(f*(v-1),l);var p=t.get("axisExpandCenter")||Bw(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-v);g<3&&(g=0);var y=[Bw(zw(h[0]/f,1))+1,iY(zw(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:e[a[o]],layoutLength:s,axisBase:e[a[1-o]],axisLength:e[n[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),yp(a,function(o,s){var l=(n.axisExpandable?uY:lY)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:oY/2,vertical:0},v=[u[i].x+t.x,u[i].y+t.y],c=f[i],h=Ie();Xn(h,h,c),Aa(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(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,a,n){a==null&&(a=0),n==null&&(n=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(t.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="normal";else{v="active";for(var c=t.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(c[h]);if(p==="inactive"){v="inactive";break}}}e(v,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,a=!1,n=0,i=t.length;n<i;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(t,e){var a=this._axesLayout[e];return Zr([t,0],a.transform)},r.prototype.getAxisLayout=function(t){return nt(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),a=e.pixelDimIndex,n=e.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[a]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),c=v[0]!=null;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*=e.axisExpandWidth/f,l?$n(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[YP(0,d-h/2)],n[1]=UP(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function $f(r,t){return UP(YP(r,t[0]),t[1])}function lY(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function uY(r,t){var e=t.layoutLength,a=t.axisExpandWidth,n=t.axisCount,i=t.axisCollapseWidth,o=t.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=t.axisExpandWindow0Pos+r*a-t.axisExpandWindow[0],l=a,u=!0):(s=e-(n-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const fY=sY;function vY(r,t){var e=[];return r.eachComponent("parallel",function(a,n){var i=new fY(a,r,t);i.name="parallel_"+n,i.resize(a,t),a.coordinateSystem=i,i.model=a,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",ee).models[0];a.coordinateSystem=n.coordinateSystem}}),e}var cY={create:vY};const hY=cY;var ZP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return ao([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var a=this.activeIntervals=nt(e);if(a)for(var n=a.length-1;n>=0;n--)Er(a[n])},t.prototype.getActiveState=function(e){var a=this.activeIntervals;if(!a.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=e&&e<=a[i][1])return"active";return"inactive"},t}(It);pe(ZP,Vu);const Vw=ZP;var lo=!0,Au=Math.min,Ms=Math.max,dY=Math.pow,pY=1e4,gY=6,yY=6,Gw="globalPan",mY={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_Y={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Fw={brushStyle:{lineWidth:2,stroke:z.color.backgroundTint,fill:z.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},SY=0,xY=function(r){N(t,r);function t(e){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=e,a.group=new it,a._uid="brushController_"+SY++,A(DY,function(n,i){this._handlers[i]=j(n,this)},a),a}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var a=this._zr;this._enableGlobalPan||x$(a,Gw,this._uid),A(this._handlers,function(n,i){a.on(i,n)}),this._brushType=e.brushType,this._brushOption=mt(nt(Fw),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;b$(e,Gw,this._uid),A(this._handlers,function(a,n){e.off(n,a)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var a=this._panels={};A(e,function(n){a[n.panelId]=nt(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=a.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Y(e,function(c){return mt(nt(Fw),c,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new tn(n,e,u,l).add(f).update(f).remove(v).execute(),this;function l(c,h){return(c.id!=null?c.id:a+h)+"-"+c.brushType}function u(c,h){return l(c.__brushOption,h)}function f(c,h){var d=e[c];if(h!=null&&n[h]===s)i[c]=n[h];else{var p=i[c]=h!=null?(n[h].__brushOption=d,n[h]):qP(o,XP(o,d));Q0(o,p)}}function v(c){n[c]!==s&&o.group.remove(n[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),zy(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(zr);function XP(r,t){var e=bh[t.brushType].createCover(r,t);return e.__brushOption=t,jP(e,t),r.group.add(e),e}function qP(r,t){var e=t_(t);return e.endCreating&&(e.endCreating(r,t),jP(t,t.__brushOption)),t}function KP(r,t){var e=t.__brushOption;t_(t).updateCoverShape(r,t,e.range,e)}function jP(r,t){var e=t.z;e==null&&(e=pY),r.traverse(function(a){a.z=e,a.z2=e})}function Q0(r,t){t_(t).updateCommon(r,t),KP(r,t)}function t_(r){return bh[r.__brushOption.brushType]}function e_(r,t,e){var a=r._panels;if(!a)return lo;var n,i=r._transform;return A(a,function(o){o.isTargetByCursor(t,e,i)&&(n=o)}),n}function JP(r,t){var e=r._panels;if(!e)return lo;var a=t.__brushOption.panelId;return a!=null?e[a]:lo}function zy(r){var t=r._covers,e=t.length;return A(t,function(a){r.group.remove(a)},r),t.length=0,!!e}function uo(r,t){var e=Y(r._covers,function(a){var n=a.__brushOption,i=nt(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function bY(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],a=t[0],n=e[0]-a[0],i=e[1]-a[1],o=dY(n*n+i*i,.5);return o>gY}function QP(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function tk(r,t,e,a){var n=new it;return n.add(new bt({name:"main",style:r_(e),silent:!0,draggable:!0,cursor:"move",drift:gt(Hw,r,t,n,["n","s","w","e"]),ondragend:gt(uo,t,{isEnd:!0})})),A(a,function(i){n.add(new bt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:gt(Hw,r,t,n,i),ondragend:gt(uo,t,{isEnd:!0})}))}),n}function ek(r,t,e,a){var n=a.brushStyle.lineWidth||0,i=Ms(n,yY),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],v=e[1][1],c=f-i+n/2,h=v-i+n/2,d=f-o,p=v-s,g=d+n,y=p+n;za(r,t,"main",o,s,d,p),a.transformable&&(za(r,t,"w",l,u,i,y),za(r,t,"e",c,u,i,y),za(r,t,"n",l,u,g,i),za(r,t,"s",l,h,g,i),za(r,t,"nw",l,u,i,i),za(r,t,"ne",c,u,i,i),za(r,t,"sw",l,h,i,i),za(r,t,"se",c,h,i,i))}function Vy(r,t){var e=t.__brushOption,a=e.transformable,n=t.childAt(0);n.useStyle(r_(e)),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=t.childOfName(i.join("")),s=i.length===1?Gy(r,i[0]):TY(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?_Y[s]+"-resize":null})})}function za(r,t,e,a,n,i,o){var s=t.childOfName(e);s&&s.setShape(AY(a_(r,t,[[a,n],[a+i,n+o]])))}function r_(r){return lt({strokeNoScale:!0},r.brushStyle)}function rk(r,t,e,a){var n=[Au(r,e),Au(t,a)],i=[Ms(r,e),Ms(t,a)];return[[n[0],i[0]],[n[1],i[1]]]}function wY(r){return Ki(r.group)}function Gy(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=ah(e[t],wY(r));return a[n]}function TY(r,t){var e=[Gy(r,t[0]),Gy(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Hw(r,t,e,a,n,i){var o=e.__brushOption,s=r.toRectRange(o.range),l=ak(t,n,i);A(a,function(u){var f=mY[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(rk(s[0][0],s[1][0],s[0][1],s[1][1])),Q0(t,e),uo(t,{isEnd:!1})}function CY(r,t,e,a){var n=t.__brushOption.range,i=ak(r,e,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),Q0(r,t),uo(r,{isEnd:!1})}function ak(r,t,e){var a=r.group,n=a.transformCoordToLocal(t,e),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function a_(r,t,e){var a=JP(r,t);return a&&a!==lo?a.clipPath(e,r._transform):nt(e)}function AY(r){var t=Au(r[0][0],r[1][0]),e=Au(r[0][1],r[1][1]),a=Ms(r[0][0],r[1][0]),n=Ms(r[0][1],r[1][1]);return{x:t,y:e,width:a-t,height:n-e}}function MY(r,t,e){if(!(!r._brushType||LY(r,t.offsetX,t.offsetY))){var a=r._zr,n=r._covers,i=e_(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===lo||s.panelId===i.panelId)&&bh[s.brushType].contain(n[o],e[0],e[1]))return}i&&a.setCursorStyle("crosshair")}}function Fy(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Hy(r,t,e){return r.childOfName("main").contain(t,e)}function nk(r,t,e,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),bY(r)||n){if(i&&!n){o.brushMode==="single"&&zy(r);var l=nt(o);l.brushType=Ww(l.brushType,i),l.panelId=i===lo?null:i.panelId,n=r._creatingCover=XP(r,l),r._covers.push(n)}if(n){var u=bh[Ww(r._brushType,i)],f=n.__brushOption;f.range=u.getCreatingRange(a_(r,n,r._track)),a&&(qP(r,n),u.updateCommon(r,n)),KP(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&e_(r,t,e)&&zy(r)&&(s={isEnd:a,removeOnClick:!0});return s}function Ww(r,t){return r==="auto"?t.defaultBrushType:r}var DY={mousedown:function(r){if(this._dragging)$w(this,r);else if(!r.target||!r.target.draggable){Fy(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=e_(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,a=this.group.transformCoordToLocal(t,e);if(MY(this,r,a),this._dragging){Fy(r);var n=nk(this,r,a,!1);n&&uo(this,n)}},mouseup:function(r){$w(this,r)}};function $w(r,t){if(r._dragging){Fy(t);var e=t.offsetX,a=t.offsetY,n=r.group.transformCoordToLocal(e,a),i=nk(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&uo(r,i)}}function LY(r,t,e){var a=r._zr;return t<0||t>a.getWidth()||e<0||e>a.getHeight()}var bh={lineX:Uw(0),lineY:Uw(1),rect:{createCover:function(r,t){function e(a){return a}return tk({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=QP(r);return rk(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,a){ek(r,t,e,a)},updateCommon:Vy,contain:Hy},polygon:{createCover:function(r,t){var e=new it;return e.add(new Ue({name:"main",style:r_(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new tr({name:"main",draggable:!0,drift:gt(CY,r,t),ondragend:gt(uo,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,a){t.childAt(0).setShape({points:a_(r,t,e)})},updateCommon:Vy,contain:Hy}};function Uw(r){return{createCover:function(t,e){return tk({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=QP(t),a=Au(e[0][r],e[1][r]),n=Ms(e[0][r],e[1][r]);return[a,n]},updateCoverShape:function(t,e,a,n){var i,o=JP(t,e);if(o!==lo&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=t._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),ek(t,e,l,n)},updateCommon:Vy,contain:Hy}}const n_=xY;function ik(r){return r=i_(r),function(t){return OD(t,r)}}function ok(r,t){return r=i_(r),function(e){var a=t??e,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function sk(r,t,e){var a=i_(r);return function(n,i){return a.contain(i[0],i[1])&&!fP(n,t,e)}}function i_(r){return vt.create(r)}var IY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){r.prototype.init.apply(this,arguments),(this._brushController=new n_(a.getZr())).on("brush",j(this._onBrush,this))},t.prototype.render=function(e,a,n,i){if(!PY(e,a,i)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!e.get("show")){var s=RY(e,a),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,v=e.axis.dim,c=l.getAxisLayout(v),h=H({strokeContainThreshold:f},c),d=new en(e,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,e,s,f,n),ku(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=vt.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:ik(v),isTargetByCursor:sk(v,s,i),getLinearBrushOtherExtent:ok(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(kY(n))},t.prototype._onBrush=function(e){var a=e.areas,n=this.axisModel,i=n.axis,o=Y(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Qt);function PY(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function kY(r){var t=r.axis;return Y(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function RY(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}const EY=IY;var OY={type:"axisAreaSelect",event:"axisAreaSelected"};function NY(r){r.registerAction(OY,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(a){a.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(a){a.setAxisExpand(t)})})}var BY={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function lk(r){r.registerComponentView(tY),r.registerComponentModel(rY),r.registerCoordinateSystem("parallel",hY),r.registerPreprocessor(X6),r.registerComponentModel(Vw),r.registerComponentView(EY),Cs(r,"parallel",Vw,BY),NY(r)}function zY(r){_t(lk),r.registerChartView(G6),r.registerSeriesModel($6),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,Z6)}var VY=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),GY=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new VY},t.prototype.buildPath=function(e,a){var n=a.extent;e.moveTo(a.x1,a.y1),e.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(e.lineTo(a.x2+n,a.y2),e.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(e.lineTo(a.x2,a.y2+n),e.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),e.closePath()},t.prototype.highlight=function(){Ja(this)},t.prototype.downplay=function(){Qa(this)},t}(Ct),FY=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new it,e._focusAdjacencyDisabled=!1,e}return t.prototype.init=function(e,a){this._controller=new bo(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,a,n){var i=this,o=e.getGraph(),s=this._mainGroup,l=e.layoutInfo,u=l.width,f=l.height,v=e.getData(),c=e.getData("edge"),h=e.get("orient");this._model=e,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(e,n),vP(e,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new GY,g=ht(p);g.dataIndex=d.dataIndex,g.seriesIndex=e.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),x=d.node1.getModel(),b=x.get("localX"),w=x.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,P,k,R,O,E,B,G;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(b!=null?b*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,k=(M!=null?M*u:T.x)+I.ty,R=D!=null?D*f:T.y,O=L,E=P*(1-_)+R*_,B=k,G=P*_+R*(1-_)):(L=(b!=null?b*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,k=M!=null?M*u:T.x,R=(D!=null?D*f:T.y)+I.ty,O=L*(1-_)+k*_,E=P,B=L*_+k*(1-_),G=R),p.setShape({x1:L,y1:P,x2:k,y2:R,cpx1:O,cpy1:E,cpx2:B,cpy2:G}),p.useStyle(m.getItemStyle()),Yw(p.style,h,d);var F=""+y.get("value"),W=Se(y,"edgeLabel");Ce(p,W,{labelFetcher:{getFormattedLabel:function(ft,Dt,zt,ct,V,$){return e.getFormattedLabel(ft,Dt,"edge",ct,gr(V,W.normal&&W.normal.get("formatter"),F),$)}},labelDataIndex:d.dataIndex,defaultText:F}),p.setTextConfig({position:"inside"});var X=y.getModel("emphasis");_e(p,y,"lineStyle",function(ft){var Dt=ft.getItemStyle();return Yw(Dt,h,d),Dt}),s.add(p),c.setItemGraphicEl(d.dataIndex,p);var J=X.get("focus");Xt(p,J==="adjacency"?d.getAdjacentDataIndices():J==="trajectory"?d.getTrajectoryDataIndices():J,X.get("blurScope"),X.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,x=new bt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ce(x,Se(g),{labelFetcher:{getFormattedLabel:function(w,T){return e.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),x.disableLabelAnimation=!0,x.setStyle("fill",d.getVisual("color")),x.setStyle("decal",d.getVisual("style").decal),_e(x,g),s.add(x),v.setItemGraphicEl(d.dataIndex,x),ht(x).dataType="node";var b=_.get("focus");Xt(x,b==="adjacency"?d.getAdjacentDataIndices():b==="trajectory"?d.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),v.eachItemGraphicEl(function(d,p){var g=v.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:v.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&e.isAnimationEnabled()&&s.setClipPath(HY(s.getBoundingRect(),e,function(){s.removeClipPath()})),this._data=e.getData()},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._updateViewCoordSys=function(e,a){var n=e.layoutInfo,i=n.width,o=n.height,s=e.coordinateSystem=new wo(null,{api:a,ecModel:e.ecModel});s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},t.type="sankey",t}(Ut);function Yw(r,t,e){switch(r.fill){case"source":r.fill=e.node1.getVisual("color"),r.decal=e.node1.getVisual("style").decal;break;case"target":r.fill=e.node2.getVisual("color"),r.decal=e.node2.getVisual("style").decal;break;case"gradient":var a=e.node1.getVisual("color"),n=e.node2.getVisual("color");K(a)&&K(n)&&(r.fill=new Os(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function HY(r,t,e){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Zt(a,{shape:{width:r.width+20}},t,e),a}const WY=FY;var $Y=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){var n=e.edges||e.links||[],i=e.data||e.nodes||[],o=e.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Rt(o[l],this,a));var u=J0(i,n,this,!0,f);return u.data;function f(v,c){v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(e,a){var n=this.option.data||this.option.nodes,i=n[e];i.localX=a[0],i.localY=a[1]},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,a,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(e,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return he("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(e),v=f.getLayout().value,c=this.getDataParams(e,n).data.name;return he("nameValue",{name:c!=null?c+"":null,value:v,noValue:i(v)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,a){var n=r.prototype.getDataParams.call(this,e,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;n.value=o}return n},t.type="series.sankey",t.layoutMode="box",t.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:z.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:z.color.primary}},animationEasing:"linear",animationDuration:1e3},t}(Kt);const UY=$Y;function YY(r,t){r.eachSeriesByType("sankey",function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=xe(e,t).refContainer,o=qt(e.getBoxLayoutParams(),i);e.layoutInfo=o;var s=o.width,l=o.height,u=e.getGraph(),f=u.nodes,v=u.edges;XY(f);var c=Bt(f,function(g){return g.getLayout().value===0}),h=c.length!==0?0:e.get("layoutIterations"),d=e.get("orient"),p=e.get("nodeAlign");ZY(f,v,a,n,s,l,h,d,p)})}function ZY(r,t,e,a,n,i,o,s,l){qY(r,t,e,n,i,s,l),QY(r,t,i,n,a,o,s),l7(r,s)}function XY(r){A(r,function(t){var e=zn(t.outEdges,xc),a=zn(t.inEdges,xc),n=t.getValue()||0,i=Math.max(e,a,n);t.setLayout({value:i},!0)})}function qY(r,t,e,a,n,i,o){for(var s=[],l=[],u=[],f=[],v=0,c=0;c<t.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);for(var h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:v},!0),i==="vertical"?p.setLayout({dy:e},!0):p.setLayout({dx:e},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=t.indexOf(_);s[S]=0;var x=_.node2,b=r.indexOf(x);--l[b]===0&&f.indexOf(x)<0&&f.push(x)}}++v,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>v-1?h:v-1;o&&o!=="left"&&KY(r,o,i,w);var T=i==="vertical"?(n-e)/w:(a-e)/w;JY(r,T,i)}function uk(r){var t=r.hostGraph.data.getRawDataItem(r.dataIndex);return t.depth!=null&&t.depth>=0}function KY(r,t,e,a){if(t==="right"){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];n.indexOf(f.node1)<0&&n.push(f.node1)}}i=n,n=[],++o}A(r,function(v){uk(v)||v.setLayout({depth:Math.max(0,a-v.getLayout().skNodeHeight)},!0)})}else t==="justify"&&jY(r,a)}function jY(r,t){A(r,function(e){!uk(e)&&!e.outEdges.length&&e.setLayout({depth:t},!0)})}function JY(r,t,e){A(r,function(a){var n=a.getLayout().depth*t;e==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function QY(r,t,e,a,n,i,o){var s=t7(r,o);e7(s,t,e,a,n,o),mp(s,n,e,a,o);for(var l=1;i>0;i--)l*=.99,r7(s,l,o),mp(s,n,e,a,o),s7(s,l,o),mp(s,n,e,a,o)}function t7(r,t){var e=[],a=t==="vertical"?"y":"x",n=Lg(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){e.push(n.buckets.get(i))}),e}function e7(r,t,e,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=i==="vertical"?(a-(l-1)*n)/u:(e-(l-1)*n)/u;f<o&&(o=f)}),A(r,function(s){A(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),A(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function mp(r,t,e,a,n){var i=n==="vertical"?"x":"y";A(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,v=o.length,c=n==="vertical"?"dx":"dy",h=0;h<v;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[c]+t;var d=n==="vertical"?a:e;if(u=f-t-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=v-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[c]+t-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function r7(r,t,e){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=zn(n.outEdges,a7,e)/zn(n.outEdges,xc);if(isNaN(i)){var o=n.outEdges.length;i=o?zn(n.outEdges,n7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Un(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Un(n,e))*t;n.setLayout({y:l},!0)}}})})}function a7(r,t){return Un(r.node2,t)*r.getValue()}function n7(r,t){return Un(r.node2,t)}function i7(r,t){return Un(r.node1,t)*r.getValue()}function o7(r,t){return Un(r.node1,t)}function Un(r,t){return t==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function xc(r){return r.getValue()}function zn(r,t,e){for(var a=0,n=r.length,i=-1;++i<n;){var o=+t(r[i],e);isNaN(o)||(a+=o)}return a}function s7(r,t,e){A(r,function(a){A(a,function(n){if(n.inEdges.length){var i=zn(n.inEdges,i7,e)/zn(n.inEdges,xc);if(isNaN(i)){var o=n.inEdges.length;i=o?zn(n.inEdges,o7,e)/o:0}if(e==="vertical"){var s=n.getLayout().x+(i-Un(n,e))*t;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-Un(n,e))*t;n.setLayout({y:l},!0)}}})})}function l7(r,t){var e=t==="vertical"?"x":"y";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[e]-i.node2.getLayout()[e]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[e]-i.node1.getLayout()[e]})}),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})})}function u7(r){r.eachSeriesByType("sankey",function(t){var e=t.getGraph(),a=e.nodes,n=e.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 l=new Ne({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(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)})})}function f7(r){r.registerChartView(WY),r.registerSeriesModel(UY),r.registerLayout(YY),r.registerVisual(u7),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(a){a.setNodePosition(t.dataIndex,[t.localX,t.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(t,e,a){e.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){var i=n.coordinateSystem,o=mh(i,t,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var fk=function(){function r(){}return r.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&e.get(t)!=null},r.prototype.getInitialData=function(t,e){var a,n=e.getComponent("xAxis",this.get("xAxisIndex")),i=e.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],f=t.layout==="horizontal"?0:1,v=this._baseAxisDim=u[f],c=u[1-f],h=[n,i],d=h[f].get("type"),p=h[1-f].get("type"),g=t.data;if(g&&l){var y=[];A(g,function(S,x){var b;U(S)?(b=S.slice(),S.unshift(x)):U(S.value)?(b=H({},S),b.value=b.value.slice(),S.value.unshift(x)):b=S,y.push(b)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:v,type:ac(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ac(p),dimsDef:m.slice()}];return Us(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:gt(pL,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),vk=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:z.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:z.color.shadow}},animationDuration:800},t}(Kt);pe(vk,fk,!0);const v7=vk;var c7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=e.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),v=Zw(f,i,u,l,!0);i.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,f){var v=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(v);return}var c=i.getItemLayout(u);v?(Br(v),ck(c,v,i,u)):v=Zw(c,i,u,l),o.add(v),i.setItemGraphicEl(u,v)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},t.prototype.remove=function(e){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},t.type="boxplot",t}(Ut),h7=function(){function r(){}return r}(),d7=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="boxplotBoxPath",a}return t.prototype.getDefaultShape=function(){return new h7},t.prototype.buildPath=function(e,a){var n=a.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();i<n.length;i++)e.moveTo(n[i][0],n[i][1]),i++,e.lineTo(n[i][0],n[i][1])},t}(Ct);function Zw(r,t,e,a,n){var i=r.ends,o=new d7({shape:{points:n?p7(i,a,r):i}});return ck(r,o,t,e,n),o}function ck(r,t,e,a,n){var i=e.hostModel,o=ho[n?"initProps":"updateProps"];o(t,{shape:{points:r.ends}},i,a),t.useStyle(e.getItemVisual(a,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=e.getItemModel(a),l=s.getModel("emphasis");_e(t,s),Xt(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function p7(r,t,e){return Y(r,function(a){return a=a.slice(),a[t]=e.initBaseline,a})}const g7=c7;var Kl=A;function y7(r){var t=m7(r);Kl(t,function(e){var a=e.seriesModels;a.length&&(_7(e),Kl(a,function(n,i){S7(n,e.boxOffsetList[i],e.boxWidthList[i])}))})}function m7(r){var t=[],e=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=yt(e,n);i<0&&(i=e.length,e[i]=n,t[i]={axis:n,seriesModels:[]}),t[i].seriesModels.push(a)}),t}function _7(r){var t=r.axis,e=r.seriesModels,a=e.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;Kl(e,function(d){l=Math.max(l,d.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Kl(e,function(d){var p=d.get("boxWidth");U(p)||(p=[p,p]),o.push([q(p[0],s)||0,q(p[1],s)||0])});var f=s*.8-2,v=f/a*.3,c=(f-v*(a-1))/a,h=c/2-f/2;Kl(e,function(d,p){i.push(h),h+=v+c,n.push(Math.min(Math.max(c,o[p][0]),o[p][1]))})}function S7(r,t,e){var a=r.coordinateSystem,n=r.getData(),i=e/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),f=n.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var v=0;v<n.count();v++){var c=n.get(u,v),h=_(c,f[2],v),d=_(c,f[0],v),p=_(c,f[1],v),g=_(c,f[3],v),y=_(c,f[4],v),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),x(m,d),x(m,y),x(m,h),n.setItemLayout(v,{initBaseline:h[s],ends:m})}function _(b,w,T){var C=n.get(w,T),M=[];M[o]=b,M[s]=C;var D;return isNaN(b)||isNaN(C)?D=[NaN,NaN]:(D=a.dataToPoint(M),D[o]+=t),D}function S(b,w,T){var C=w.slice(),M=w.slice();C[o]+=i,M[o]-=i,T?b.push(C,M):b.push(M,C)}function x(b,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,b.push(T,C)}}function x7(r,t){t=t||{};for(var e=[],a=[],n=t.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Er(r[o].slice()),l=Zh(s,.25),u=Zh(s,.5),f=Zh(s,.75),v=s[0],c=s[s.length-1],h=(n??1.5)*(f-l),d=i?v:Math.max(v,l-h),p=i?c:Math.min(c,f+h),g=t.itemNameFormatter,y=at(g)?g({value:o}):K(g)?g.replace("{value}",o+""):o+"";e.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];a.push(S)}}}return{boxData:e,outliers:a}}var b7={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Pe){var a="";Ot(a)}var n=x7(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function w7(r){r.registerSeriesModel(v7),r.registerChartView(g7),r.registerLayout(y7),r.registerTransform(b7)}var T7=["itemStyle","borderColor"],C7=["itemStyle","borderColor0"],A7=["itemStyle","borderColorDoji"],M7=["itemStyle","color"],D7=["itemStyle","color0"];function o_(r,t){return t.get(r>0?M7:D7)}function s_(r,t){return t.get(r===0?A7:r>0?T7:C7)}var L7={seriesType:"candlestick",plan:Gs(),performRawSeries:!0,reset:function(r,t){if(!t.isSeriesFiltered(r)){var e=r.pipelineContext.large;return!e&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=o_(s,o),l.stroke=s_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");H(u,l)}}}}}};const I7=L7;var P7=["color","borderColor"],k7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,a,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,a):this._incrementalRenderNormal(e,a)},t.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e){var a=e.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=e.get("clip",!0),l=e.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var v=a.getItemLayout(f);if(s&&Xw(u,v))return;var c=_p(v,f,!0);Zt(c,{shape:{points:v.ends}},e,f),Sp(c,a,f,o),i.add(c),a.setItemGraphicEl(f,c)}}).update(function(f,v){var c=n.getItemGraphicEl(v);if(!a.hasValue(f)){i.remove(c);return}var h=a.getItemLayout(f);if(s&&Xw(u,h)){i.remove(c);return}c?(kt(c,{shape:{points:h.ends}},e,f),Br(c)):c=_p(h),Sp(c,a,f,o),i.add(c),a.setItemGraphicEl(f,c)}).remove(function(f){var v=n.getItemGraphicEl(f);v&&i.remove(v)}).execute(),this._data=a},t.prototype._renderLarge=function(e){this._clear(),qw(e,this.group);var a=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;a?this.group.setClipPath(a):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=n.getItemLayout(o),l=_p(s);Sp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(e,a){qw(a,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Ut),R7=function(){function r(){}return r}(),E7=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="normalCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new R7},t.prototype.buildPath=function(e,a){var n=a.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(Ct);function _p(r,t,e){var a=r.ends;return new E7({shape:{points:e?O7(a,r):a},z2:100})}function Xw(r,t){for(var e=!0,a=0;a<t.ends.length;a++)if(r.contain(t.ends[a][0],t.ends[a][1])){e=!1;break}return e}function Sp(r,t,e,a){var n=t.getItemModel(e);r.useStyle(t.getItemVisual(e,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,_e(r,n);var i=t.getItemLayout(e).sign;A(r.states,function(s,l){var u=n.getModel(l),f=o_(i,u),v=s_(i,u)||f,c=s.style||(s.style={});f&&(c.fill=f),v&&(c.stroke=v)});var o=n.getModel("emphasis");Xt(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function O7(r,t){return Y(r,function(e){return e=e.slice(),e[1]=t.initBaseline,e})}var N7=function(){function r(){}return r}(),xp=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeCandlestickBox",a}return t.prototype.getDefaultShape=function(){return new N7},t.prototype.buildPath=function(e,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];e.moveTo(o,n[i++]),e.lineTo(o,n[i++])}else i+=3},t}(Ct);function qw(r,t,e,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new xp({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new xp({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new xp({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),bp(1,o,r),bp(-1,s,r),bp(0,l,r),a&&(o.incremental=!0,s.incremental=!0),e&&e.push(o,s)}function bp(r,t,e,a){var n=s_(r,e)||o_(r,e),i=e.getModel("itemStyle").getItemStyle(P7);t.useStyle(i),t.style.fill=null,t.style.stroke=n}const B7=k7;var hk=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,a,n){var i=a.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.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},t}(Kt);pe(hk,fk,!0);const z7=hk;function V7(r){!r||!U(r.series)||A(r.series,function(t){ut(t)&&t.type==="k"&&(t.type="candlestick")})}var G7={seriesType:"candlestick",plan:Gs(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),a=F7(r,e),n=0,i=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[n])),l=Y(e.mapDimensionsAll(o[i]),e.getDimensionIndex,e),u=l[0],f=l[1],v=l[2],c=l[3];if(e.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){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),T=Math.min(S,x),C=Math.max(S,x),M=O(T,_),D=O(C,_),I=O(b,_),L=O(w,_),P=[];E(P,D,0),E(P,M,1),P.push(G(L),G(D),G(I),G(M));var k=g.getItemModel(y),R=!!k.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Kw(m,y,S,x,f,R),initBaseline:S>x?D[i]:M[i],ends:P,brushRect:B(b,w,_)})}function O(F,W){var X=[];return X[n]=W,X[i]=F,isNaN(W)||isNaN(F)?[NaN,NaN]:t.dataToPoint(X)}function E(F,W,X){var J=W.slice(),ft=W.slice();J[n]=yv(J[n]+a/2,1,!1),ft[n]=yv(ft[n]-a/2,1,!0),X?F.push(J,ft):F.push(ft,J)}function B(F,W,X){var J=O(F,X),ft=O(W,X);return J[n]-=a/2,ft[n]-=a/2,{x:J[0],y:J[1],width:a,height:ft[1]-J[1]}}function G(F){return F[n]=yv(F[n],1),F}}function d(p,g){for(var y=ma(p.count*4),m=0,_,S=[],x=[],b,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(b=p.next())!=null;){var C=w.get(s,b),M=w.get(u,b),D=w.get(f,b),I=w.get(v,b),L=w.get(c,b);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=Kw(w,b,M,D,f,T),S[n]=C,S[i]=I,_=t.dataToPoint(S,null,x),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=t.dataToPoint(S,null,x),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Kw(r,t,e,a,n,i){var o;return e>a?o=-1:e<a?o=1:o=i?0:t>0?r.get(n,t-1)<=a?1:-1:1,o}function F7(r,t){var e=r.getBaseAxis(),a,n=e.type==="category"?e.getBandWidth():(a=e.getExtent(),Math.abs(a[1]-a[0])/t.count()),i=q(rt(r.get("barMaxWidth"),n),n),o=q(rt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?q(s,n):Math.max(Math.min(n/2,i),o)}const H7=G7;function W7(r){r.registerChartView(B7),r.registerSeriesModel(z7),r.registerPreprocessor(V7),r.registerVisual(I7),r.registerLayout(H7)}function jw(r,t){var e=t.rippleEffectColor||t.color;r.eachChild(function(a){a.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?e:null,fill:t.brushType==="fill"?e:null}})})}var $7=function(r){N(t,r);function t(e,a){var n=r.call(this)||this,i=new Gu(e,a),o=new it;return n.add(i),n.add(o),n.updateData(e,a),n}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var a=e.symbolType,n=e.color,i=e.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=de(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*e.period+e.effectOffset;l.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(e.period,{opacity:0}).delay(u).start(),o.add(l)}jw(o,e)},t.prototype.updateEffectAnimation=function(e){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]!==e[s]){this.stopEffectAnimation(),this.startEffectAnimation(e);return}}jw(n,e)},t.prototype.highlight=function(){Ja(this)},t.prototype.downplay=function(){Qa(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,a){var n=this,i=e.hostModel;this.childAt(0).updateData(e,a);var o=this.childAt(1),s=e.getItemModel(a),l=e.getItemVisual(a,"symbol"),u=Hs(e.getItemVisual(a,"symbolSize")),f=e.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(e.getItemVisual(a,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=e.getItemVisual(a,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=a/e.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=v,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&n.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=p,Xt(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(it);const U7=$7;var Y7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._symbolDraw=new Fu(U7)},t.prototype.render=function(e,a,n){var i=e.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(e)}),this.group.add(o.group)},t.prototype._getClipShape=function(e){var a=e.coordinateSystem,n=a&&a.getArea&&a.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,a,n){var i=e.getData();this.group.dirty();var o=Wu("").reset(e,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var a=e.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=pO(a.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,a){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Ut);const Z7=Y7;var X7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,a){return sn(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,a,n){return n.point(a.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.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},t}(Kt);const q7=X7;function K7(r){r.registerChartView(Z7),r.registerSeriesModel(q7),r.registerLayout(Wu("effectScatter"))}var j7=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;return i.add(i.createLine(e,a,n)),i._updateEffectSymbol(e,a),i}return t.prototype.createLine=function(e,a,n){return new K0(e,a,n)},t.prototype._updateEffectSymbol=function(e,a){var n=e.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");U(o)||(o=[o,o]);var l=e.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=de(s,-.5,-.5,1,1,u),f.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(e,i,a))},t.prototype._updateEffectAnimation=function(e,a,n){var i=this.childAt(1);if(i){var o=e.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),v=Oe(a.get("delay"),function(h){return h/e.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;at(v)?c=v(n):c=v,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(e,a,n,i,o){if(a>0){e.__t=0;var s=this,l=e.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(e)});i||l.done(function(){s.remove(e)}),l.start()}},t.prototype._getLineLength=function(e){return wn(e.__p1,e.__cp1)+wn(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,a){e.__p1=a[0],e.__p2=a[1],e.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},t.prototype.updateData=function(e,a,n){this.childAt(0).updateData(e,a,n),this._updateEffectSymbol(e,a)},t.prototype._updateSymbolPosition=function(e){var a=e.__p1,n=e.__p2,i=e.__cp1,o=e.__t<1?e.__t:2-e.__t,s=[e.x,e.y],l=s.slice(),u=Le,f=dg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=e.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),c=e.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);e.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=wn(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):e.__lastT===1?e.scaleY=2*wn(a,s):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=s[0],e.y=s[1]},t.prototype.updateLayout=function(e,a){this.childAt(0).updateLayout(e,a);var n=e.getItemModel(a).getModel("effect");this._updateEffectAnimation(e,n,a)},t}(it);const dk=j7;var J7=function(r){N(t,r);function t(e,a,n){var i=r.call(this)||this;return i._createPolyline(e,a,n),i}return t.prototype._createPolyline=function(e,a,n){var i=e.getItemLayout(a),o=new Ue({shape:{points:i}});this.add(o),this._updateCommonStl(e,a,n)},t.prototype.updateData=function(e,a,n){var i=e.hostModel,o=this.childAt(0),s={shape:{points:e.getItemLayout(a)}};kt(o,s,i,a),this._updateCommonStl(e,a,n)},t.prototype._updateCommonStl=function(e,a,n){var i=this.childAt(0),o=e.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,f=n&&n.emphasisDisabled;if(!n||e.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(e.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=s,Xt(this,l,u,f)},t.prototype.updateLayout=function(e,a){var n=this.childAt(0);n.setShape("points",e.getItemLayout(a))},t}(it);const pk=J7;var Q7=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,a,n){return new pk(e,a,n)},t.prototype._updateAnimationPoints=function(e,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=wn(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var a=e.__t<1?e.__t:2-e.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;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];e.x=v[0]*(1-f)+f*c[0],e.y=v[1]*(1-f)+f*c[1];var h=e.__t<1?c[0]-v[0]:v[0]-c[0],d=e.__t<1?c[1]-v[1]:v[1]-c[1];e.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,e.ignore=!1}},t}(dk);const t9=Q7;var e9=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),r9=function(r){N(t,r);function t(e){var a=r.call(this,e)||this;return a._off=0,a.hoverDataIdx=-1,a}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:z.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new e9},t.prototype.buildPath=function(e,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){e.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)e.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++];if(e.moveTo(u,f),i>0){var h=(u+v)/2-(f-c)*i,d=(f+c)/2-(v-u)*i;e.quadraticCurveTo(h,d,v,c)}else e.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,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++){var d=i[u++],p=i[u++];if(xn(v,c,d,p,s,e,a))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],c=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(v+d)/2-(c-p)*o,y=(c+p)/2-(d-v)*o;if(XM(v,c,g,y,d,p,s,e,a))return l}else if(xn(v,c,d,p,s,e,a))return l;l++}return-1},t.prototype.contain=function(e,a){var n=this.transformCoordToLocal(e,a),i=this.getBoundingRect();if(e=n[0],a=n[1],i.contain(e,a)){var o=this.hoverDataIdx=this.findDataIndex(e,a);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var a=this.shape,n=a.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)}e=this._rect=new vt(i,o,s,l)}return e},t}(Ct),a9=function(){function r(){this.group=new it}return r.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},r.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(t,e){var a=this._newAdded[0],n=e.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,e),l.__startIndex=t.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new r9({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},r.prototype._setCommon=function(t,e,a){var n=e.hostModel;t.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),t.useStyle(n.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=ht(t);o.seriesIndex=n.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const n9=a9;var i9={seriesType:"lines",plan:Gs(),reset:function(r){var t=r.coordinateSystem;if(t){var e=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(e){for(var u=0,f=n.start;f<n.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var v=0,c=[],f=n.start;f<n.end;f++){var h=r.getLineCoords(f,o);e&&(s[v++]=h);for(var d=0;d<h;d++)c=t.dataToPoint(o[d],!1,c),s[v++]=c[0],s[v++]=c[1]}i.setLayout("linesPoints",s)}else for(var f=n.start;f<n.end;f++){var p=i.getItemModel(f),h=r.getLineCoords(f,o),g=[];if(e)for(var y=0;y<h;y++)g.push(t.dataToPoint(o[y]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var m=p.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 gk=i9;var o9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e),s=e.get("zlevel"),l=e.get(["effect","trailLength"]),u=n.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var v=e.get("clip",!0)&&Hu(e.coordinateSystem,!1,e);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,a,n){var i=e.getData(),o=this._updateLineDraw(i,e);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,a,n){this._lineDraw.incrementalUpdate(e,a.getData()),this._finished=e.end===a.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,a,n){var i=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=gk.reset(e,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new n9:new j0(o?i?t9:pk:i?dk:K0),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var a=e.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.type="lines",t}(Ut);const s9=o9;var l9=typeof Uint32Array>"u"?Array:Uint32Array,u9=typeof Float64Array>"u"?Array:Float64Array;function Jw(r){var t=r.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(r.data=Y(t,function(e){var a=[e[0].coord,e[1].coord],n={coords:a};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),ym([n,e[0],e[1]])}))}var f9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Jw(e);var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Jw(e),e.data){var a=this._processFlatCoordsArray(e.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(e.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var a=this._processFlatCoordsArray(e.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=Ql(this._flatCoords,a.flatCoords),this._flatCoordsOffset=Ql(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),e.data=new Float32Array(a.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var a=this.getData().getItemModel(e),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[e*2],i=this._flatCoordsOffset[e*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(e),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}},t.prototype._processFlatCoordsArray=function(e){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Lt(e[0])){for(var n=e.length,i=new l9(n),o=new u9(n),s=0,l=0,u=0,f=0;f<n;){u++;var v=e[f++];i[l++]=s+a,i[l++]=v;for(var c=0;c<v;c++){var h=e[f++],d=e[f++];o[s++]=h,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,a){var n=new je(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getItemModel(e),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),he("nameValue",{name:f.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),a=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&a>0?a+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.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}},t}(Kt);const v9=f9;function Uf(r){return r instanceof Array||(r=[r,r]),r}var c9={seriesType:"lines",reset:function(r){var t=Uf(r.get("symbol")),e=Uf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",t&&t[0]),a.setVisual("toSymbol",t&&t[1]),a.setVisual("fromSymbolSize",e&&e[0]),a.setVisual("toSymbolSize",e&&e[1]);function n(i,o){var s=i.getItemModel(o),l=Uf(s.getShallow("symbol",!0)),u=Uf(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])}return{dataEach:a.hasItemOption?n:null}}};const h9=c9;function d9(r){r.registerChartView(s9),r.registerSeriesModel(v9),r.registerLayout(gk),r.registerVisual(h9)}var p9=256,g9=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=qr.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,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=t.length;v.width=e,v.height=a;for(var d=0;d<h;++d){var p=t[d],g=p[0],y=p[1],m=p[2],_=n(m);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,T=this.minOpacity,C=this.maxOpacity,M=C-T;b<w;){var _=x[b+3]/256,D=Math.floor(_*(p9-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*M+T),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 t=this._brushCanvas||(this._brushCanvas=qr.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=z.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const y9=g9;function m9(r,t,e){var a=r[1]-r[0];t=Y(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function _9(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function Qw(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var S9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):Qw(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(Qw(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=Wn(s,"cartesian2d"),u=Wn(s,"matrix"),f,v,c,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,v=p.getBandWidth()+.5,c=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),x=e.get(["itemStyle","borderRadius"]),b=Se(e),w=e.getModel("emphasis"),T=w.get("focus"),C=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 k=y.get(D[0],I),R=y.get(D[1],I);if(isNaN(y.get(D[2],I))||isNaN(k)||isNaN(R)||k<c[0]||k>c[1]||R<h[0]||R>h[1])continue;var O=s.dataToPoint([k,R]);L=new bt({shape:{x:O[0]-f/2,y:O[1]-v/2,width:f,height:v},style:P})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(He(E.x))continue;L=new bt({z2:1,shape:E,style:P})}else{if(isNaN(y.get(D[1],I)))continue;var B=s.dataToLayout([y.get(D[0],I)]),E=B.contentRect||B.rect;if(He(E.x)||He(E.y))continue;L=new bt({z2:1,shape:E,style:P})}if(y.hasItemOption){var G=y.getItemModel(I),F=G.getModel("emphasis");m=F.getModel("itemStyle").getItemStyle(),_=G.getModel(["blur","itemStyle"]).getItemStyle(),S=G.getModel(["select","itemStyle"]).getItemStyle(),x=G.get(["itemStyle","borderRadius"]),T=F.get("focus"),C=F.get("blurScope"),M=F.get("disabled"),b=Se(G)}L.shape.r=x;var W=e.getRawValue(I),X="-";W&&W[2]!=null&&(X=W[2]+""),Ce(L,b,{labelFetcher:e,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:X}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,Xt(L,T,C,M),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new y9;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),v=e.getRoamTransform();f.applyTransform(v);var c=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-c,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=e.dataToPoint([w,T]);return M[0]-=c,M[1]-=h,M.push(C),M}),S=n.getExtent(),x=n.type==="visualMap.continuous"?_9(S,n.option.range):m9(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 Be({style:{width:g,height:y,x:c,y:h,image:u.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(Ut);const x9=S9;var b9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return sn(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=Nu.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:z.color.primary}}},t}(Kt);const w9=b9;function T9(r){r.registerChartView(x9),r.registerSeriesModel(w9)}var C9=["itemStyle","borderWidth"],tT=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],wp=new qn,A9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:tT[+f],categoryDim:tT[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=rT(o,d),g=eT(o,d,p,c),y=aT(o,c,g);o.setItemGraphicEl(d,y),i.add(y),iT(y,c,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=rT(o,d),m=eT(o,d,y,c),_=bk(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?R9(g,c,m):g=aT(o,c,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),iT(g,c,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&nT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,a){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(o){nT(i,ht(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(Ut);function eT(r,t,e,a){var n=r.getItemLayout(t),i=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,v=e.isAnimationEnabled(),c={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?e:null,hoverScale:v&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};M9(e,i,n,a,c),D9(r,t,n,i,o,c.boundingLength,c.pxSign,f,a,c),L9(e,c.symbolScale,u,a,c);var h=c.symbolSize,d=mo(e.get("symbolOffset"),h);return I9(e,h,n,i,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,a,c),c}function M9(r,t,e,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[i.wh]<=0),f;if(U(o)){var v=[Tp(s,o[0])-l,Tp(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else o!=null?f=Tp(s,o)-l:t?f=a.coordSysExtent[i.index][u]-l:f=e[i.wh];n.boundingLength=f,t&&(n.repeatCutLength=e[i.wh]);var c=i.xy==="x",h=s.inverse;n.pxSign=c&&!h||!c&&h?f>=0?1:-1:f>0?1:-1}function Tp(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function D9(r,t,e,a,n,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,c=Math.abs(e[v.wh]),h=r.getItemVisual(t,"symbolSize"),d;U(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[v.index]=q(d[v.index],c),d[f.index]=q(d[f.index],a?c:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function L9(r,t,e,a,n){var i=r.get(C9)||0;i&&(wp.attr({scaleX:t[0],scaleY:t[1],rotation:e}),wp.updateTransform(),i/=wp.getLineScale(),i*=t[a.valueDim.index]),n.valueLineWidth=i||0}function I9(r,t,e,a,n,i,o,s,l,u,f,v){var c=f.categoryDim,h=f.valueDim,d=v.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=Oe(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=q(m,t[h.index]),x=Math.max(p+S*2,0),b=_?0:S*2,w=kM(a),T=w?a:oT((y+b)/x),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),x=p+S*2,b=_?0:S*2,!w&&a!=="fixed"&&(T=u?oT((Math.abs(u)+b)/x):0),g=T*x-b,v.repeatTimes=T,v.symbolMargin=S}var M=d*(g/2),D=v.pathPosition=[];D[c.index]=e[c.wh]/2,D[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=v.bundlePosition=[];I[c.index]=e[c.xy],I[h.index]=e[h.xy];var L=v.barRectShape=H({},e);L[h.wh]=d*Math.max(Math.abs(e[h.wh]),Math.abs(D[h.index]+M)),L[c.wh]=e[c.wh];var P=v.clipShape={};P[c.xy]=-e[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=e[h.wh]}function yk(r){var t=r.symbolPatternSize,e=de(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function mk(r,t,e,a){var n=r.__pictorialBundle,i=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,v=i[t.valueDim.index]+o+e.symbolMargin*2;for(l_(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?ps(p,null,d(f),e,a):ps(p,null,{scaleX:0,scaleY:0},e,a,function(){n.remove(p)}),f++});f<u;f++){var c=yk(e);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,n.add(c);var h=d(f);ps(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},e,a)}function d(p){var g=s.slice(),y=e.pxSign,m=p;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function _k(r,t,e,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?ps(i,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,a):(i=r.__pictorialMainPath=yk(e),n.add(i),ps(i,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,a))}function Sk(r,t,e){var a=H({},t.barRectShape),n=r.__pictorialBarRect;n?ps(n,null,{shape:a},t,e):(n=r.__pictorialBarRect=new bt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function xk(r,t,e,a){if(e.symbolClip){var n=r.__pictorialClipPath,i=H({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)kt(n,{shape:i},s,l);else{i[o.wh]=0,n=new bt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],ho[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function rT(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=P9,e.isAnimationEnabled=k9,e}function P9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function k9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function aT(r,t,e,a){var n=new it,i=new it;return n.add(i),n.__pictorialBundle=i,i.x=e.bundlePosition[0],i.y=e.bundlePosition[1],e.symbolRepeat?mk(n,t,e):_k(n,t,e),Sk(n,e,a),xk(n,t,e,a),n.__pictorialShapeStr=bk(r,e),n.__pictorialSymbolMeta=e,n}function R9(r,t,e){var a=e.animationModel,n=e.dataIndex,i=r.__pictorialBundle;kt(i,{x:e.bundlePosition[0],y:e.bundlePosition[1]},a,n),e.symbolRepeat?mk(r,t,e,!0):_k(r,t,e,!0),Sk(r,e,!0),xk(r,t,e,!0)}function nT(r,t,e,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];l_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(e=null),A(i,function(o){Gn(o,{scaleX:0,scaleY:0},e,t,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(t,null)}function bk(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function l_(r,t,e){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&t.call(e,a)})}function ps(r,t,e,a,n,i){t&&r.attr(t),a.symbolClip&&!n?e&&r.attr(e):e&&ho[n?"updateProps":"initProps"](r,e,a.animationModel,a.dataIndex,i)}function iT(r,t,e){var a=e.dataIndex,n=e.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");l_(r,function(p){if(p instanceof Be){var g=p.style;p.useStyle(H({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else p.useStyle(e.style);var y=p.ensureState("emphasis");y.style=o,c&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=e.z2});var h=t.valueDim.posDesc[+(e.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Ce(d,Se(n),{labelFetcher:t.seriesModel,labelDataIndex:a,defaultText:Ts(t.seriesModel.getData(),a),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:h}),Xt(r,f,v,i.get("disabled"))}function oT(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}const E9=A9;var O9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=jn(cc.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:z.color.primary}}}),t}(cc);const N9=O9;function B9(r){r.registerChartView(E9),r.registerSeriesModel(N9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,gt(BI,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,zI("pictorialBar"))}var z9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,a,n){var i=e.getData(),o=this,s=this.group,l=e.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function c(g){return g.name}var h=new tn(this._layersSeries||[],l,c,c),d=[];h.add(j(p,this,"add")).update(j(p,this,"update")).remove(j(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],x=[],b,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),M=C.x,D=C.y0,I=C.y;S.push(M,D),x.push(M,D+I),b=i.getItemVisual(w[T],"style")}var L,P=i.getItemLayout(w[0]),k=e.getModel("label"),R=k.get("margin"),O=e.getModel("emphasis");if(g==="add"){var E=d[y]=new it;L=new I2({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),E.add(L),s.add(E),e.isAnimationEnabled()&&L.setClipPath(V9(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var E=_[m];L=E.childAt(0),s.add(E),d[y]=E,kt(L,{shape:{points:S,stackedOnPoints:x}},e),Br(L)}Ce(L,Se(e),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var B=L.getTextContent();B&&(B.x=P.x-R,B.y=P.y0+P.y/2),L.useStyle(b),i.setItemGraphicEl(y,L),_e(L,e),Xt(L,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=d},t.type="themeRiver",t}(Ut);function V9(r,t,e){var a=new bt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Zt(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},t,e),a}const G9=z9;var Cp=2,F9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ys(j(this.getData,this),j(this.getRawData,this))},t.prototype.fixData=function(e){var a=e.length,n={},i=Lg(e,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){var v=o[l].dataList[f][0]+"";n[v]=l}for(var v in n)n.hasOwnProperty(v)&&n[v]!==l&&(n[v]=l,e[a]=[v,0,u],a++)}return e},t.prototype.getInitialData=function(e,a){for(var n=this.getReferringComponents("singleAxis",ee).models[0],i=n.get("type"),o=Bt(e.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=et(),f=0,v=0;v<s.length;++v)l.push(s[v][Cp]),u.get(s[v][Cp])||(u.set(s[v][Cp],f),f++);var c=zu(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ac(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new je(c,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),a=e.count(),n=[],i=0;i<a;++i)n[i]=i;var o=e.mapDimension("single"),s=Lg(n,function(u){return e.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,c){return e.get(o,v)-e.get(o,c)}),l.push({name:f,indices:u})}),l},t.prototype.getAxisTooltipData=function(e,a,n){U(e)||(e=e?[e]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var v=Number.MAX_VALUE,c=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(e[0],o[f].indices[d]),g=Math.abs(p-a);g<=v&&(u=p,v=g,c=o[f].indices[d])}s.push(c)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=i.getName(e),s=i.get(i.mapDimension("value"),e);return he("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.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}}},t}(Kt);const H9=F9;function W9(r,t){r.eachSeriesByType("themeRiver",function(e){var a=e.getData(),n=e.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=e.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=q(s[0],o.height),s[1]=q(s[1],o.height);var u=o.height-s[0]-s[1];sT(a,e,u)}else{s[0]=q(s[0],o.width),s[1]=q(s[1],o.width);var f=o.width-s[0]-s[1];sT(a,e,f)}a.setLayout("layoutInfo",i)})}function sT(r,t,e){if(r.count())for(var a=t.coordinateSystem,n=t.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=Y(n,function(g){return Y(g.indices,function(y){var m=a.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=$9(s),u=l.y0,f=e/l.max,v=n.length,c=n[0].indices.length,h,d=0;d<c;++d){h=u[d]*f,r.setItemLayout(n[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<v;++p)h+=s[p-1][d][1]*f,r.setItemLayout(n[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function $9(r){for(var t=r.length,e=r[0].length,a=[],n=[],i=0,o=0;o<e;++o){for(var s=0,l=0;l<t;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<e;++u)n[u]=(i-a[u])/2;i=0;for(var f=0;f<e;++f){var v=a[f]+n[f];v>i&&(i=v)}return{y0:n,max:i}}function U9(r){r.registerChartView(G9),r.registerSeriesModel(H9),r.registerLayout(W9),r.registerProcessor($s("themeRiver"))}var Y9=2,Z9=4,X9=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this)||this;o.z2=Y9,o.textConfig={inside:!0},ht(o).seriesIndex=a.seriesIndex;var s=new Pt({z2:Z9,silent:e.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,e,a,n,i),o}return t.prototype.updateData=function(e,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;ht(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),v=H({},f);v.label=null;var c=a.getVisual("style");c.lineJoin="bevel";var h=a.getVisual("decal");h&&(c.decal=xs(h,o));var d=Sa(l.getModel("itemStyle"),v,!0);H(v,d),A(Je,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var x=Sa(S,v);x&&(_.shape=x)}),e?(s.setShape(v),s.shape.r=f.r0,Zt(s,{shape:{r:f.r}},n,a.dataIndex)):(kt(s,{shape:v},n),Br(s)),s.useStyle(c),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?Ql(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;Xt(this,y,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e){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,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);c.ignore=!p,A(ou,function(y){var m=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),_=y==="normal",S=_?c:c.ensureState(y),x=e.getFormattedLabel(h,y);_&&(x=x||a.node.name),S.style=$t(m,{},null,y!=="normal",!0),x&&(S.style.text=x);var b=m.get("show");b!=null&&!_&&(S.ignore=!b);var w=g(m,"position"),T=_?v:v.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var M,D=g(m,"distance")||0,I=g(m,"align"),L=g(m,"rotate"),P=Math.PI*.5,k=Math.PI*1.5,R=dr(L==="tangential"?Math.PI/2-l:l),O=R>P&&!au(R-P)&&R<k;w==="outside"?(M=o.r+D,I=O?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,I="center"):I==="left"?(M=o.r0+D,I=O?"right":"left"):I==="right"&&(M=o.r-D,I=O?"left":"right"),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var E=0;L==="radial"?E=dr(-l)+(O?Math.PI:0):L==="tangential"?E=dr(Math.PI/2-l)+(O?Math.PI:0):Lt(L)&&(E=L*Math.PI/180),S.rotation=dr(E)});function g(y,m){var _=y.get(m);return _??i.get(m)}c.dirtyStyle()},t}(Qe);const lT=X9;var Wy="sunburstRootToNode",uT="sunburstHighlight",q9="sunburstUnhighlight";function K9(r){r.registerAction({type:Wy,update:"updateView"},function(t,e){e.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(n,i){var o=bu(t,[Wy],n);if(o){var s=n.getViewRoot();s&&(t.direction=$0(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:uT,update:"none"},function(t,e,a){t=H({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i){var o=bu(t,[uT],i);o&&(t.dataIndex=o.node.dataIndex)}a.dispatchAction(H(t,{type:"highlight"}))}),r.registerAction({type:q9,update:"updateView"},function(t,e,a){t=H({},t),a.dispatchAction(H(t,{type:"downplay"}))})}var j9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){var o=this;this.seriesModel=e,this.api=n,this.ecModel=a;var s=e.getData(),l=s.tree.root,u=e.getViewRoot(),f=this.group,v=e.get("renderLabelForZeroData"),c=[];u.eachNode(function(m){c.push(m)});var h=this._oldChildren||[];d(c,h),y(l,u),this._initEvents(),this._oldChildren=c;function d(m,_){if(m.length===0&&_.length===0)return;new tn(_,m,S,S).add(x).update(x).remove(gt(x,null)).execute();function S(b){return b.getId()}function x(b,w){var T=b==null?null:m[b],C=w==null?null:_[w];p(T,C)}}function p(m,_){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,e,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new lT(m,e,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,e,a,n):(o.virtualPiece=new lT(m,e,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)}},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")e._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";qv(u,f)}}n=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Wy,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(Ut);const J9=j9;var Q9=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return t.prototype.getInitialData=function(e,a){var n={name:e.name,children:e.data};wk(n);var i=this._levelModels=Y(e.levels||[],function(l){return new Rt(l,this,a)},this),o=W0.createTree(n,this,s);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},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return a.treePathInfo=Sh(n,this),a},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var a=this.getRawData().tree.root;(!e||e!==a&&!a.contains(e))&&(this._viewRoot=a)},t.prototype.enableAriaDecal=function(){AP(this)},t.type="series.sunburst",t.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"},t}(Kt);function wk(r){var t=0;A(r.children,function(a){wk(a);var n=a.value;U(n)&&(n=n[0]),t+=n});var e=r.value;U(e)&&(e=e[0]),(e==null||isNaN(e))&&(e=t),e<0&&(e=0),U(r.value)?r.value[0]=e:r.value=e}const tZ=Q9;var fT=Math.PI/180;function eZ(r,t,e){t.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");U(i)||(i=[0,i]),U(n)||(n=[n,n]);var o=e.getWidth(),s=e.getHeight(),l=Math.min(o,s),u=q(n[0],o),f=q(n[1],s),v=q(i[0],l/2),c=q(i[1],l/2),h=-a.get("startAngle")*fT,d=a.get("minAngle")*fT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&Tk(g,m);var _=0;A(g.children,function(R){!isNaN(R.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,b=g.depth>0,w=g.height-(b?-1:1),T=(c-v)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(R,O){if(R){var E=O;if(R!==p){var B=R.getValue(),G=S===0&&M?x:B*x;G<d&&(G=d),E=O+D*G;var F=R.depth-y-(b?-1:1),W=v+T*F,X=v+T*(F+1),J=a.getLevelModel(R);if(J){var ft=J.get("r0",!0),Dt=J.get("r",!0),zt=J.get("radius",!0);zt!=null&&(ft=zt[0],Dt=zt[1]),ft!=null&&(W=q(ft,l/2)),Dt!=null&&(X=q(Dt,l/2))}R.setLayout({angle:G,startAngle:O,endAngle:E,clockwise:C,cx:u,cy:f,r0:W,r:X})}if(R.children&&R.children.length){var ct=0;A(R.children,function(V){ct+=I(V,O+ct)})}return E-O}};if(b){var L=v,P=v+T,k=Math.PI*2;p.setLayout({angle:k,startAngle:h,endAngle:h+k,clockwise:C,cx:u,cy:f,r0:L,r:P})}I(g,h)})}function Tk(r,t){var e=r.children||[];r.children=rZ(e,t),e.length&&A(r.children,function(a){Tk(a,t)})}function rZ(r,t){if(at(t)){var e=Y(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 e.sort(function(n,i){return t(n.params,i.params)}),Y(e,function(n){return r[n.index]})}else{var a=t==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function aZ(r){var t={};function e(a,n,i){if(a.depth===0)return z.color.neutral50;for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",t);return a.depth>1&&K(s)&&(s=yg(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=e(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");H(u,l)})})}function nZ(r){r.registerChartView(J9),r.registerSeriesModel(tZ),r.registerLayout(gt(eZ,"sunburst")),r.registerProcessor(gt($s,"sunburst")),r.registerVisual(aZ),K9(r)}var vT={color:"fill",borderColor:"stroke"},iZ={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Ya=wt(),oZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return sn(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Ya(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Kt);const sZ=oZ;function lZ(r,t){return t=t||[0,0],Y(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function uZ(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:j(lZ,r)}}}function fZ(r,t){return t=t||[0,0],Y([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function vZ(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:j(fZ,r)}}}function cZ(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function hZ(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:j(cZ,r)}}}function dZ(r,t){return t=t||[0,0],Y(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function pZ(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.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=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:j(dZ,r)}}}function gZ(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function yZ(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function Ck(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||Q(r,"text")))}function Ak(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},Q(a,"text")&&(o.text=a.text),Q(a,"rich")&&(o.rich=a.rich),Q(a,"textFill")&&(o.fill=a.textFill),Q(a,"textStroke")&&(o.stroke=a.textStroke),Q(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Q(a,"fontSize")&&(o.fontSize=a.fontSize),Q(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Q(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=Q(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Q(a,"textPosition")&&(n.position=a.textPosition),Q(a,"textOffset")&&(n.offset=a.textOffset),Q(a,"textRotation")&&(n.rotation=a.textRotation),Q(a,"textDistance")&&(n.distance=a.textDistance)}return cT(o,r),A(o.rich,function(l){cT(l,l)}),{textConfig:n,textContent:i}}function cT(r,t){t&&(t.font=t.textFont||t.font,Q(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),Q(t,"textAlign")&&(r.align=t.textAlign),Q(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),Q(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),Q(t,"textWidth")&&(r.width=t.textWidth),Q(t,"textHeight")&&(r.height=t.textHeight),Q(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),Q(t,"textPadding")&&(r.padding=t.textPadding),Q(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),Q(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),Q(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),Q(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),Q(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),Q(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),Q(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function hT(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||z.color.neutral99;dT(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||z.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||z.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,A(t.rich,function(s){dT(s,s)}),a}function dT(r,t){t&&(Q(t,"fill")&&(r.textFill=t.fill),Q(t,"stroke")&&(r.textStroke=t.fill),Q(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),Q(t,"font")&&(r.font=t.font),Q(t,"fontStyle")&&(r.fontStyle=t.fontStyle),Q(t,"fontWeight")&&(r.fontWeight=t.fontWeight),Q(t,"fontSize")&&(r.fontSize=t.fontSize),Q(t,"fontFamily")&&(r.fontFamily=t.fontFamily),Q(t,"align")&&(r.textAlign=t.align),Q(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),Q(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),Q(t,"width")&&(r.textWidth=t.width),Q(t,"height")&&(r.textHeight=t.height),Q(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),Q(t,"padding")&&(r.textPadding=t.padding),Q(t,"borderColor")&&(r.textBorderColor=t.borderColor),Q(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),Q(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),Q(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),Q(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),Q(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),Q(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),Q(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),Q(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),Q(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),Q(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Mk={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pT=Mt(Mk);Ca(Ma,function(r,t){return r[t]=1,r},{});Ma.join(", ");var bc=["","style","shape","extra"],Ds=wt();function u_(r,t,e,a,n){var i=r+"Animation",o=Ns(r,a,n)||{},s=Ds(t).userDuring;return o.duration>0&&(o.during=s?j(bZ,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),H(o,e[i]),o}function Cv(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=Ds(r),u=t.style;l.userDuring=t.during;var f={},v={};if(TZ(r,t,v),r.type==="compound")for(var c=r.shape.paths,h=t.shape.paths,d=0;d<h.length;d++){var p=h[d];Ap("shape",p,c[d])}else Ap("shape",t,v),Ap("extra",t,v);if(!i&&s&&(wZ(r,t,f),gT("shape",r,t,f),gT("extra",r,t,f),CZ(r,t,u,f)),v.style=u,mZ(r,v,o),SZ(r,t),s)if(i){var g={};A(bc,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),H(m?g[m]:g,_.enterFrom))});var y=u_("enter",r,t,e,n);y.duration>0&&r.animateFrom(g,y)}else _Z(r,t,n||0,e,f);Dk(r,t),u?r.dirty():r.markRedraw()}function Dk(r,t){for(var e=Ds(r).leaveToProps,a=0;a<bc.length;a++){var n=bc[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=Ds(r).leaveToProps={}),n&&(e[n]=e[n]||{}),H(n?e[n]:e,i.leaveTo))}}function wh(r,t,e,a){if(r){var n=r.parent,i=Ds(r).leaveToProps;if(i){var o=u_("update",r,t,e,0);o.done=function(){n&&n.remove(r),a&&a()},r.animateTo(i,o)}else n&&n.remove(r),a&&a()}}function to(r){return r==="all"}function mZ(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function _Z(r,t,e,a,n){if(n){var i=u_("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function SZ(r,t){Q(t,"silent")&&(r.silent=t.silent),Q(t,"ignore")&&(r.ignore=t.ignore),r instanceof Nr&&Q(t,"invisible")&&(r.invisible=t.invisible),r instanceof Ct&&Q(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var ua={},xZ={setTransform:function(r,t){return ua.el[r]=t,this},getTransform:function(r){return ua.el[r]},setShape:function(r,t){var e=ua.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=ua.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=ua.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=ua.el.style;if(t)return t[r]},setExtra:function(r,t){var e=ua.el.extra||(ua.el.extra={});return e[r]=t,this},getExtra:function(r){var t=ua.el.extra;if(t)return t[r]}};function bZ(){var r=this,t=r.el;if(t){var e=Ds(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}ua.el=t,a(xZ)}}function gT(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),to(l))H(o,i);else for(var u=Ht(l),f=0;f<u.length;f++){var v=u[f],c=i[v];o[v]=c}else if(to(s)||yt(s,r)>=0){!o&&(o=a[r]={});for(var h=Mt(i),f=0;f<h.length;f++){var v=h[f],c=i[v];AZ(n[v],c)&&(o[v]=c)}}}}}function Ap(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=Mt(a),o=0;o<i.length;o++){var s=i[o];n[s]=Fl(a[s])}}function wZ(r,t,e){for(var a=t.transition,n=to(a)?Ma:Ht(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function TZ(r,t,e){for(var a=0;a<pT.length;a++){var n=pT[a],i=Mk[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<Ma.length;a++){var s=Ma[a];t[s]!=null&&(e[s]=t[s])}}function CZ(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!to(o)){var l=Ht(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],v=n[f];i[f]=v}}else if(r.getAnimationStyleProps&&(to(s)||to(o)||yt(s,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=a.style={});for(var d=Mt(e),u=0;u<d.length;u++){var f=d[u];if(h[f]){var v=n[f];i[f]=v}}}}}}}function AZ(r,t){return We(r)?r!==t:r!=null&&isFinite(r)}var Lk=wt(),MZ=["percent","easing","shape","style","extra"];function Ik(r){r.stopAnimation("keyframe"),r.attr(Lk(r))}function wc(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(U(t)){A(t,function(s){wc(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=Ns("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Lk(r);A(bc,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),A(a,function(u){var f=r.animators,v=s?u[s]:u;if(v){var c=Mt(v);if(s||(c=Bt(c,function(p){return yt(MZ,p)<0})),!!c.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;A(c,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,v,c,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var Za="emphasis",In="normal",f_="blur",v_="select",Yn=[In,Za,f_,v_],Mp={normal:["itemStyle"],emphasis:[Za,"itemStyle"],blur:[f_,"itemStyle"],select:[v_,"itemStyle"]},Dp={normal:["label"],emphasis:[Za,"label"],blur:[f_,"label"],select:[v_,"label"]},DZ=["x","y"],LZ="e\0\0",br={normal:{},emphasis:{},blur:{},select:{}},IZ={cartesian2d:uZ,geo:vZ,single:hZ,polar:pZ,calendar:gZ,matrix:yZ};function $y(r){return r instanceof Ct}function Uy(r){return r instanceof Nr}function PZ(r,t){t.copyTransform(r),Uy(t)&&Uy(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,$y(t)&&$y(r)&&t.setShape(r.shape))}var kZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=yT(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(v){Lp(n,null,v,u(v,i),e,l,s)}).remove(function(v){var c=o.getItemGraphicEl(v);c&&wh(c,Ya(c).option,e)}).update(function(v,c){var h=o.getItemGraphicEl(c);Lp(n,h,v,u(v,i),e,l,s)}).execute();var f=e.get("clip",!0)?Hu(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=yT(a,s,n,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var v=e.start;v<e.end;v++){var c=Lp(null,null,v,l(v,o),a,this.group,s);c&&(c.traverse(f),u.push(c))}},t.prototype.eachRendered=function(e){Kn(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t}(Ut);const RZ=kZ;function c_(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Rk(a);e=lu(i,null,n,a.layout||"center"),Ya(e).customPathData=i}else if(t==="image")e=new Be({}),Ya(e).customImagePath=r.style.image;else if(t==="text")e=new Pt({});else if(t==="group")e=new it;else if(t==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";Ot(o)}var s=Y(a.paths,function(f){if(f.type==="path")return lu(f.shape.pathData,f,null);var v=Yv(f.type);if(!v){var c="";Ot(c)}return new v});e=new rh({shape:{paths:s}})}else{var l=Yv(t);if(!l){var o="";Ot(o)}e=new l}return Ya(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function h_(r,t,e,a,n,i,o){Ik(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=DZ);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;Q(u,"textFill")&&(u.fill=u.textFill),Q(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=$y(t)?l.decal:null;r&&v&&(v.dirty=!0,f=xs(v,r)),l.__decalPattern=f}if(Uy(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}Cv(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),wc(t,a.keyframeAnimation,i)}function Pk(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),no(i)}}function EZ(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<Yn.length;s++)OZ(a,t,Yn[s])}}function OZ(r,t,e){var a=e===In,n=a?t:Tc(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function yT(r,t,e,a){var n=r.get("renderItem");if(typeof n=="string"){var i=KG(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):IZ[o.type](o));for(var l=lt({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:x,style:w,ordinalRawValue:b,styleEmphasis:T,visual:D,barLayout:I,currentSeriesIndices:L,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:NZ(r.getData()),itemPayload:r.get("itemPayload")||{}},f,v,c={},h={},d={},p={},g=0;g<Yn.length;g++){var y=Yn[g];d[y]=r.getModel(Mp[y]),p[y]=r.getModel(Dp[y])}function m(k){return k===f?v||(v=t.getItemModel(k)):t.getItemModel(k)}function _(k,R){return t.hasItemOption?k===f?c[R]||(c[R]=m(k).getModel(Mp[R])):m(k).getModel(Mp[R]):d[R]}function S(k,R){return t.hasItemOption?k===f?h[R]||(h[R]=m(k).getModel(Dp[R])):m(k).getModel(Dp[R]):p[R]}return function(k,R){return f=k,v=null,c={},h={},n&&n(lt({dataIndexInside:k,dataIndex:t.getRawIndex(k),actionType:R?R.type:null},u),l)};function x(k,R){return R==null&&(R=f),t.getStore().get(t.getDimensionIndex(k||0),R)}function b(k,R){R==null&&(R=f),k=k||0;var O=t.getDimensionInfo(k);if(!O){var E=t.getDimensionIndex(k);return E>=0?t.getStore().get(E,R):void 0}var B=t.get(O.name,R),G=O&&O.ordinalMeta;return G?G.categories[B]:B}function w(k,R){R==null&&(R=f);var O=t.getItemVisual(R,"style"),E=O&&O.fill,B=O&&O.opacity,G=_(R,In).getItemStyle();E!=null&&(G.fill=E),B!=null&&(G.opacity=B);var F={inheritColor:K(E)?E:z.color.neutral99},W=S(R,In),X=$t(W,null,F,!1,!0);X.text=W.getShallow("show")?rt(r.getFormattedLabel(R,In),Ts(t,R)):null;var J=Zv(W,F,!1);return M(k,G),G=hT(G,X,J),k&&C(G,k),G.legacy=!0,G}function T(k,R){R==null&&(R=f);var O=_(R,Za).getItemStyle(),E=S(R,Za),B=$t(E,null,null,!0,!0);B.text=E.getShallow("show")?gr(r.getFormattedLabel(R,Za),r.getFormattedLabel(R,In),Ts(t,R)):null;var G=Zv(E,null,!0);return M(k,O),O=hT(O,B,G),k&&C(O,k),O.legacy=!0,O}function C(k,R){for(var O in R)Q(R,O)&&(k[O]=R[O])}function M(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function D(k,R){if(R==null&&(R=f),Q(vT,k)){var O=t.getItemVisual(R,"style");return O?O[vT[k]]:null}if(Q(iZ,k))return t.getItemVisual(R,k)}function I(k){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return Q3(lt({axis:R},k))}}function L(){return e.getCurrentSeriesIndices()}function P(k){return Um(k,e)}}function NZ(r){var t={};return A(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function Lp(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=d_(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&Xt(s,a.focus,a.blurScope,a.emphasisDisabled),s}function d_(r,t,e,a,n,i){var o=-1,s=t;t&&kk(t,a,n)&&(o=yt(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=c_(a),s&&PZ(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),br.normal.cfg=br.normal.conOpt=br.emphasis.cfg=br.emphasis.conOpt=br.blur.cfg=br.blur.conOpt=br.select.cfg=br.select.conOpt=null,br.isLegacy=!1,zZ(u,e,a,n,l,br),BZ(u,e,a,n,l),h_(r,u,e,a,br,n,l),Q(a,"info")&&(Ya(u).info=a.info);for(var f=0;f<Yn.length;f++){var v=Yn[f];if(v!==In){var c=Tc(a,v),h=p_(a,c,v);Pk(v,u,c,h,br)}}return EZ(u,a,n),a.type==="group"&&VZ(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function kk(r,t,e){var a=Ya(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&WZ(i)&&Rk(i)!==a.customPathData||n==="image"&&Q(o,"image")&&o.image!==a.customImagePath}function BZ(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&kk(o,i,a)&&(o=null),o||(o=c_(i),r.setClipPath(o)),h_(null,o,t,i,null,a,n)}}function zZ(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){mT(e,null,i),mT(e,Za,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=c_(o),r.setTextContent(f)),h_(null,f,t,o,null,a,n);for(var v=o&&o.style,c=0;c<Yn.length;c++){var h=Yn[c];if(h!==In){var d=i[h].conOpt;Pk(h,f,d,p_(o,d,h),null)}}v?f.dirty():f.markRedraw()}}}}function mT(r,t,e){var a=t?Tc(r,t):r,n=t?p_(r,a,Za):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?Tc(s,t):s:null;if(n&&(e.isLegacy||Ck(n,i,!!o,!!l))){e.isLegacy=!0;var u=Ak(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var v=t?e[t]:e.normal;v.cfg=o,v.conOpt=l}function Tc(r,t){return t?r?r[t]:null:r}function p_(r,t,e){var a=t&&t.style;return a==null&&e===Za&&r&&(a=r.styleEmphasis),a}function VZ(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){FZ({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var v=i[f],c=t.childAt(f);v?(v.ignore==null&&(v.ignore=!1),d_(r,c,e,v,n,t)):c.ignore=!0}for(var h=t.childCount()-1;h>=f;h--){var d=t.childAt(h);GZ(t,d,n)}}}function GZ(r,t,e){t&&wh(t,Ya(r).option,e)}function FZ(r){new tn(r.oldChildren,r.newChildren,_T,_T,r).add(ST).update(ST).remove(HZ).execute()}function _T(r,t){var e=r&&r.name;return e??LZ+t}function ST(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;d_(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function HZ(r){var t=this.context,e=t.oldChildren[r];e&&wh(e,Ya(e).option,t.seriesModel)}function Rk(r){return r&&(r.pathData||r.d)}function WZ(r){return r&&(Q(r,"pathData")||Q(r,"d"))}function $Z(r){r.registerChartView(RZ),r.registerSeriesModel(sZ)}var Ri=wt(),xT=nt,Ip=j,UZ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,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||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new it,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var c=gt(bT,e,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}TT(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=N0(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=Ri(t).pointerEl=new ho[i.type](xT(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=Ri(t).labelEl=new Pt(xT(e.label));t.add(i),wT(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=Ri(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=Ri(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),wT(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Ru(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ka(u.event)},onmousedown:Ip(this._onHandleDragMove,this,0,0),drift:Ip(this._onHandleDragMove,this),ondragend:Ip(this._onHandleDragEnd,this)}),a.add(n)),TT(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Fs(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){bT(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Pp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Pp(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Pp(n)),Ri(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),cu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r}();function bT(r,t,e,a){Ek(Ri(e).lastProp,a)||(Ri(e).lastProp=a,t?kt(e,a,r):(e.stopAnimation(),e.attr(a)))}function Ek(r,t){if(ut(r)&&ut(t)){var e=!0;return A(t,function(a,n){e=e&&Ek(r[n],a)}),!!e}else return r===t}function wT(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Pp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function TT(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}const g_=UZ;function y_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function Ok(r,t,e,a,n){var i=e.get("value"),o=Nk(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Eu(s.get("padding")||0),u=s.getFont(),f=Uc(o,u),v=n.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var p=n.verticalAlign;p==="bottom"&&(v[1]-=h),p==="middle"&&(v[1]-=h/2),YZ(v,c,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:$t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function YZ(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Nk(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:nc(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),K(o)?i=o.replace("{value}",i):at(o)&&(i=o(s))}return i}function m_(r,t,e){var a=Ie();return Xn(a,a,e.rotation),Aa(a,a,e.position),Zr([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function Bk(r,t,e,a,n,i){var o=en.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),Ok(t,a,n,i,{position:m_(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function __(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function zk(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function CT(r,t,e,a,n,i){return{cx:r,cy:t,r0:e,r:a,startAngle:n,endAngle:i,clockwise:!0}}var ZZ=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=AT(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var c=y_(i),h=XZ[u](s,v,f);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=pc(l.getRect(),n);Bk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=pc(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=m_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=AT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[e.x,e.y];v[f]+=a[f],v[f]=Math.min(l[1],v[f]),v[f]=Math.max(l[0],v[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=v[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[f]}},t}(g_);function AT(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var XZ={line:function(r,t,e){var a=__([t,e[0]],[t,e[1]],MT(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:zk([t-a/2,e[0]],[a,n],MT(r))}}};function MT(r){return r.dim==="x"?0:1}const qZ=ZZ;var KZ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:z.color.border,width:1,type:"dashed"},shadowStyle:{color:z.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:z.color.neutral00,padding:[5,7,5,7],backgroundColor:z.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:z.color.accent40,throttle:40}},t}(It);const jZ=KZ;var Wa=wt(),JZ=A;function Vk(r,t,e){if(!Et.node){var a=t.getZr();Wa(a).records||(Wa(a).records={}),QZ(a,t);var n=Wa(a).records[r]||(Wa(a).records[r]={});n.handler=e}}function QZ(r,t){if(Wa(r).initialized)return;Wa(r).initialized=!0,e("click",gt(DT,"click")),e("mousemove",gt(DT,"mousemove")),e("globalout",eX);function e(a,n){r.on(a,function(i){var o=rX(t);JZ(Wa(r).records,function(s){s&&n(s,i,o.dispatchAction)}),tX(o.pendings,t)})}}function tX(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function eX(r,t,e){r.handler("leave",null,e)}function DT(r,t,e,a){t.handler(r,e,a)}function rX(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Yy(r,t){if(!Et.node){var e=t.getZr(),a=(Wa(e).records||{})[r];a&&(Wa(e).records[r]=null)}}var aX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Vk("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Yy("axisPointer",a)},t.prototype.dispose=function(e,a){Yy("axisPointer",a)},t.type="axisPointer",t}(Qt);const nX=aX;function Gk(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=ro(i,r);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,c=u.dim,h=v==="x"||v==="radius"?1:0,d=i.mapDimension(c),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(Y(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var LT=wt();function iX(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||j(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Av(n)&&(n=Gk({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Av(n),u=i.axesInfo,f=s.axesInfo,v=a==="leave"||Av(n),c={},h={},d={list:[],map:{}},p={showPointer:gt(sX,h),showTooltip:gt(lX,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,x){var b=S.axis,w=cX(u,S);if(!v&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=b.pointToData(n)),T!=null&&IT(S,T,p,!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,PT(S),PT(y)))),g[y.key]=w}})}),A(g,function(y,m){IT(f[m],y,p,!0,c)}),uX(h,f,c),fX(d,n,r,o),vX(f,o,e),c}}function IT(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=oX(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&H(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function oX(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),v,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,e);c=h.dataIndices,v=h.nestestValue}else{if(c=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!c.length)return;v=l.getData().get(f[0],c[0])}if(!(v==null||!isFinite(v))){var d=r-v,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,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}}function sX(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function lX(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=xu(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 uX(r,t,e){var a=e.axesInfo=[];A(t,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"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function fX(r,t,e,a){if(Av(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function vX(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=LT(a)[n]||{},o=LT(a)[n]={};A(r,function(u,f){var v=u.axisPointerModel.option;v.status==="show"&&u.triggerEmphasis&&A(v.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;o[h]=c})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function cX(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function PT(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Av(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Uu(r){xo.registerAxisPointerClass("CartesianAxisPointer",qZ),r.registerComponentModel(jZ),r.registerComponentView(nX),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!U(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=FW(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iX)}function hX(r){_t(lP),_t(Uu)}var dX=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),v=s.dataToCoord(a),c=i.get("type");if(c&&c!=="none"){var h=y_(i),d=gX[c](s,l,v,f);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=i.get(["label","margin"]),g=pX(a,n,i,l,p);Ok(e,n,i,o,g)},t}(g_);function pX(r,t,e,a,n){var i=t.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var c=Ie();Xn(c,c,s),Aa(c,c,[a.cx,a.cy]),u=Zr([o,-n],c);var h=t.getModel("axisLabel").get("rotate")||0,d=en.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,v=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var gX={line:function(r,t,e,a){return r.dim==="angle"?{type:"Line",shape:__(t.coordToPoint([a[0],e]),t.coordToPoint([a[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:CT(t.cx,t.cy,a[0],a[1],(-e-n/2)*i,(-e+n/2)*i)}:{type:"Sector",shape:CT(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}};const yX=dX;var mX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var a,n=this.ecModel;return n.eachComponent(e,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(It);const _X=mX;var S_=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ee).models[0]},t.type="polarAxis",t}(It);pe(S_,Vu);var SX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(S_),xX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(S_),x_=function(r){N(t,r);function t(e,a){return r.call(this,"radius",e,a)||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t}(ea);x_.prototype.dataToRadius=ea.prototype.dataToCoord;x_.prototype.radiusToData=ea.prototype.coordToData;const bX=x_;var wX=wt(),b_=function(r){N(t,r);function t(e,a){return r.call(this,"angle",e,a||[0,360])||this}return t.prototype.pointToData=function(e,a){return this.polar.pointToData(e,a)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,a=e.getLabelModel(),n=e.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Uc(s==null?"":s+"",a.getFont(),"center","top"),v=Math.max(f.height,7),c=v/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=wX(e.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},t}(ea);b_.prototype.dataToAngle=ea.prototype.dataToCoord;b_.prototype.angleToData=ea.prototype.coordToData;const TX=b_;var Fk=["radius","angle"],CX=function(){function r(t){this.dimensions=Fk,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new bX,this._angleAxis=new TX,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===t&&e.push(a),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e,a){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],a)},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.pointToCoord(t);return a[0]=this._radiusAxis.radiusToData(n[0],e),a[1]=this._angleAxis.angleToData(n[1],e),a},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,a=t[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(e*e+a*a);e/=l,a/=l;for(var u=Math.atan2(-a,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t,e){e=e||[];var a=t[0],n=t[1]/180*Math.PI;return e[0]=Math.cos(n)*a+this.cx,e[1]=-Math.sin(n)*a+this.cy,e},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),a=e.getExtent().slice();a[0]>a[1]&&a.reverse();var n=t.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:t.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:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(t,e,a){var n=kT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=kT(e);return n===this?this.pointToData(a):null},r}();function kT(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const AX=CX;function MX(r,t,e){var a=t.get("center"),n=xe(t,e).refContainer;r.cx=q(a[0],n.width)+n.x,r.cy=q(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=t.get("radius");s==null?s=[0,"100%"]:U(s)||(s=[0,s]);var l=[q(s[0],o),q(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function DX(r,t){var e=this,a=e.getAngleAxis(),n=e.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(ic(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(ic(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),bs(a.scale,a.model),bs(n.scale,n.model),a.type==="category"&&!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 LX(r){return r.mainType==="angleAxis"}function RT(r,t){var e;if(r.type=t.get("type"),r.scale=hh(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),LX(t)){r.inverse=r.inverse!==t.get("clockwise");var a=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:a+(r.inverse?-360:360);r.setExtent(a,n)}t.axis=r,r.model=t}var IX={dimensions:Fk,create:function(r,t){var e=[];return r.eachComponent("polar",function(a,n){var i=new AX(n+"");i.update=DX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");RT(o,l),RT(s,u),MX(i,a,t),e.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",ee).models[0];a.coordinateSystem=n.coordinateSystem}}),e}};const PX=IX;var kX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Yf(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var a=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function Zf(r){var t=r.getRadiusAxis();return t.inverse?0:1}function ET(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var RX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=Y(n.getViewLabels(),function(f){f=nt(f);var v=n.scale,c=v.type==="ordinal"?v.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(c),f});ET(u),ET(s),A(kX,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&EX[f](this.group,e,i,s,l,o,u)},this)}},t.type="angleAxis",t}(xo),EX={axisLine:function(r,t,e,a,n,i){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Zf(e),v=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?c=new ho[h]({shape:{cx:e.cx,cy:e.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new th({shape:{cx:e.cx,cy:e.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,a,n,i){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Zf(e)],u=Y(a,function(f){return new me({shape:Yf(e,[l,l+s],f.coord)})});r.add(Pr(u,{style:lt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Zf(e)],f=[],v=0;v<n.length;v++)for(var c=0;c<n[v].length;c++)f.push(new me({shape:Yf(e,[u,u+l],n[v][c].coord)}));r.add(Pr(f,{style:lt(s.getModel("lineStyle").getLineStyle(),lt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,a,n,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");A(o,function(v,c){var h=l,d=v.tickValue,p=i[Zf(e)],g=e.coordToPoint([p+u,v.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var x=s[d];ut(x)&&x.textStyle&&(h=new Rt(x.textStyle,l,l.ecModel))}var b=new Pt({silent:en.isLabelSilent(t),style:$t(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(b),on({el:b,componentModel:t,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:v.rawLabel,tickIndex:c}}),f){var w=en.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=v.rawLabel,ht(b).eventData=w}},this)},splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.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 me({shape:Yf(e,i,a[v].coord)}))}for(var v=0;v<f.length;v++)r.add(Pr(f[v],{style:lt({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,a,n,i){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new me({shape:Yf(e,i,n[u][f].coord)}));r.add(Pr(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,a,n,i){if(a.length){var o=t.getModel("splitArea"),s=o.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]),d=Math.max(i[0],i[1]),p=t.get("clockwise"),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 Qe({shape:{cx:e.cx,cy:e.cy,r0:h,r:d,startAngle:c,endAngle:-m*v,clockwise:p},silent:!0})),c=-m*v}for(var g=0;g<f.length;g++)r.add(Pr(f[g],{style:lt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const OX=RX;var NX=["splitLine","splitArea","minorSplitLine"],BX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this._axisGroup,o=this._axisGroup=new it;this.group.add(o);var s=e.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),v=s.getMinorTicksCoords(),c=u.getExtent()[0],h=s.getExtent(),d=VX(l,e,c),p=new en(e,n,d);p.build(),o.add(p.group),ku(i,o,e),A(NX,function(g){e.get([g,"show"])&&!s.scale.isBlank()&&zX[g](this.group,e,l,c,h,f,v)},this)}},t.type="radiusAxis",t}(xo),zX={splitLine:function(r,t,e,a,n,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),v=Math.PI/180,c=f.getExtent(),h=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new ho[h]({shape:{cx:e.cx,cy:e.cy,r:Math.max(i[p].coord,0),startAngle:-c[0]*v,endAngle:-c[1]*v,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Pr(d[p],{style:lt({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,a,n,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new qn({shape:{cx:e.cx,cy:e.cy,r:o[f][v].coord}}));r.add(Pr(u,{style:lt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,a,n,i){if(i.length){var o=t.getModel("splitArea"),s=o.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 Qe({shape:{cx:e.cx,cy:e.cy,r0:v,r:i[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[c].coord}for(var c=0;c<f.length;c++)r.add(Pr(f[c],{style:lt({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function VX(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}const GX=BX;function Hk(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function Wk(r,t){return t.dim+r.model.componentIndex}function FX(r,t,e){var a={},n=HX(Bt(t.getSeriesByType(r),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=Wk(s,l),f=Hk(i),v=n[u][f],c=v.offset,h=v.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[f]=a[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),x=Fn(o,_),b=l.dim!=="radius"||!i.get("roundCap",!0),w=d.model,T=w.get("startValue"),C=d.dataToCoord(T||0),M=0,D=o.count();M<D;M++){var I=o.get(_,M),L=o.get(S,M),P=I>=0?"p":"n",k=C;x&&(a[f][L]||(a[f][L]={p:C,n:C}),k=a[f][L][P]);var R=void 0,O=void 0,E=void 0,B=void 0;if(d.dim==="radius"){var G=d.dataToCoord(I)-C,F=l.dataToCoord(L);Math.abs(G)<y&&(G=(G<0?-1:1)*y),R=k,O=k+G,E=F-c,B=E-h,x&&(a[f][L][P]=O)}else{var W=d.dataToCoord(I,b)-C,X=l.dataToCoord(L);Math.abs(W)<m&&(W=(W<0?-1:1)*m),R=X+c,O=R+h,E=k,B=k+W,x&&(a[f][L][P]=B)}o.setItemLayout(M,{cx:p,cy:g,r0:R,r:O,startAngle:-E*Math.PI/180,endAngle:-B*Math.PI/180,clockwise:E>=B})}}})}function HX(r){var t={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=Wk(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),v=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=v.stacks;t[l]=v;var h=Hk(a);c[h]||v.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=q(a.get("barWidth"),f),p=q(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(v.remainedWidth,d),c[h].width=d,v.remainedWidth-=d),p&&(c[h].maxWidth=p),g!=null&&(v.gap=g),y!=null&&(v.categoryGap=y)});var e={};return A(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=q(a.categoryGap,o),l=q(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,v=(u-s)/(f+(f-1)*l);v=Math.max(v,0),A(i,function(p,g){var y=p.maxWidth;y&&y<v&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),v=(u-s)/(f+(f-1)*l),v=Math.max(v,0);var c=0,h;A(i,function(p,g){p.width||(p.width=v),h=p,c+=p.width*(1+l)}),h&&(c-=h.width*l);var d=-c/2;A(i,function(p,g){e[n][g]=e[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),e}var WX={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},$X={splitNumber:5},UX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Qt);function YX(r){_t(Uu),xo.registerAxisPointerClass("PolarAxisPointer",yX),r.registerCoordinateSystem("polar",PX),r.registerComponentModel(_X),r.registerComponentView(UX),Cs(r,"angle",SX,WX),Cs(r,"radius",xX,$X),r.registerComponentView(OX),r.registerComponentView(GX),r.registerLayout(gt(FX,"bar"))}function Zy(r,t){t=t||{};var e=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.orient,s=e.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=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};n.rotation=Math.PI/2*f[o];var v={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=v[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Oe(t.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var c=r.get(["axisLabel","rotate"]);return n.labelRotate=i==="top"?-c:c,n.z2=1,n}var ZX=["splitArea","splitLine","breakArea"],XX=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return t.prototype.render=function(e,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new it;var l=Zy(e),u=new en(e,n,l);u.build(),o.add(this._axisGroup),o.add(u.group),A(ZX,function(f){e.get([f,"show"])&&qX[f](this,this.group,this._axisGroup,e,n)},this),ku(s,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)},t.prototype.remove=function(){iP(this)},t.type="singleAxis",t}(xo),qX={splitLine:function(r,t,e,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,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);v?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new me({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});_s(_.shape,u);var S=h++%l.length;c[S]=c[S]||[],c[S].push(_)}for(var x=s.getLineStyle(["color"]),y=0;y<c.length;++y)t.add(Pr(c[y],{style:lt({stroke:l[y%l.length]},x),silent:!0}))}},splitArea:function(r,t,e,a,n){nP(r,e,a,a)},breakArea:function(r,t,e,a,n){var i=$u(),o=a.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(t,r,a,a.coordinateSystem.getRect(),n)}};const KX=XX;var $k=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.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},t}(It);pe($k,Vu.prototype);const kp=$k;var jX=function(r){N(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.pointToData=function(e,a){return this.coordinateSystem.pointToData(e)[0]},t}(ea);const JX=jX;var Uk=["single"],QX=function(){function r(t,e,a){this.type="single",this.dimension="single",this.dimensions=Uk,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,a)}return r.prototype._init=function(t,e,a){var n=this.dimension,i=new JX(n,hh(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(t,e){t.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();A(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),bs(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(t,e){var a=xe(t,e).refContainer;this._rect=qt(t.getBoxLayoutParams(),a),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,a=e.isHorizontal(),n=a?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),this._updateAxisTransform(e,a?t.x:t.y)},r.prototype._updateAxisTransform=function(t,e){var a=t.getExtent(),n=a[0]+a[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+e}:function(o){return n-o+e},t.toLocalCoord=i?function(o){return o-e}:function(o){return n-o+e}},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(t){var e=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:a.contain(a.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},r.prototype.pointToData=function(t,e,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(t,e,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(t,e,a){var n=OT(e);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=OT(e);return n===this?this.pointToData(a):null},r}();function OT(r){var t=r.seriesModel,e=r.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function tq(r,t){var e=[];return r.eachComponent("singleAxis",function(a,n){var i=new QX(a,r,t);i.name="single_"+n,i.resize(a,t),a.coordinateSystem=i,e.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",ee).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),e}var eq={create:tq,dimensions:Uk};const rq=eq;var NT=["x","y"],aq=["width","height"],nq=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Rp(l,1-Cc(s)),f=l.dataToPoint(a)[0],v=i.get("type");if(v&&v!=="none"){var c=y_(i),h=iq[v](s,f,u);h.style=c,e.graphicKey=h.type,e.pointer=h}var d=Zy(n);Bk(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=Zy(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=m_(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Cc(o),u=Rp(s,l),f=[e.x,e.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=Rp(s,1-l),c=(v[1]+v[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(g_),iq={line:function(r,t,e){var a=__([t,e[0]],[t,e[1]],Cc(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=r.getBandWidth(),n=e[1]-e[0];return{type:"Rect",shape:zk([t-a/2,e[0]],[a,n],Cc(r))}}};function Cc(r){return r.isHorizontal()?0:1}function Rp(r,t){var e=r.getRect();return[e[NT[t]],e[NT[t]]+e[aq[t]]]}const oq=nq;var sq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="single",t}(Qt);function lq(r){_t(Uu),xo.registerAxisPointerClass("SingleAxisPointer",oq),r.registerComponentView(sq),r.registerComponentView(KX),r.registerComponentModel(kp),Cs(r,"single",kp,kp.defaultOption),r.registerCoordinateSystem("single",rq)}var uq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=go(e);r.prototype.init.apply(this,arguments),BT(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),BT(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:z.color.axisLine,width:1,type:"solid"}},itemStyle:{color:z.color.neutral00,borderWidth:1,borderColor:z.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:z.size.s,color:z.color.secondary},monthLabel:{show:!0,position:"start",margin:z.size.s,align:"center",formatter:null,color:z.color.secondary},yearLabel:{show:!0,position:null,margin:z.size.xl,formatter:null,color:z.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(It);function BT(r,t){var e=r.cellSize,a;U(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=Y([0,1],function(i){return LV(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});La(r,t,{type:"box",ignoreSize:n})}const fq=uq;var vq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.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 bt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.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++){d(v.formatedDate),c===0&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=s.getDateInfo(h)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new Ue({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.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[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return K(e)&&e?bV(e,a):at(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"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=n==="horizontal"?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]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Pt({z2:30,style:$t(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.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||K(s))&&(s&&(a=$g(s)||a),s=a.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<v[c].length-1;g++){var y=v[c][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[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),T=new Pt({z2:30,style:H($t(o,{text:w}),this._monthTextPositionControl(y,d,n,u,l)),silent:p});i.add(T)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],f=e[1],v=n==="start";return a==="horizontal"?(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}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||K(f)){f&&(a=$g(f)||a);var h=a.get(["time","dayOfWeekShort"]);f=h||Y(a.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];v=q(v,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+c)%7);var x=new Pt({z2:30,style:H($t(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,v,p)),silent:g});o.add(x)}}},t.type="calendar",t}(Qt);const cq=vq;var Ep=864e5,hq=function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,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(t){t=co(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){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=this._orient==="horizontal"?[a,7]:[7,a];A([0,1],function(v){f(i,v)&&(o[n[v]]=i[v]*s[v])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=qt(o,l);A([0,1],function(v){f(i,v)||(i[v]=u[n[v]]/s[v])});function f(v,c){return v[c]!=null&&v[c]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,a){a=a||[],U(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+Ep))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(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(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(t,e);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,vt.copy(i,n),io(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(t,e){var a=this.dataToPoint(t,e);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(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=Op(e);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(t,e,a){var n=Op(e);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=Op(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(U(t)&&t.length===1&&(t=t[0]),U(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[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);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/Ep)-Math.floor(e[0].time/Ep)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),v=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:v,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Ou({targetModel:i,coordSysType:"calendar",coordSysProvider:nL})}),a},r.dimensions=["time","value"],r}();function Op(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}const dq=hq;function pq(r){r.registerComponentModel(fq),r.registerComponentView(cq),r.registerCoordinateSystem("calendar",dq)}var Fa={level:1,leaf:2,nonLeaf:3},Xa={none:0,all:1,body:2,corner:3};function Xy(r,t,e){var a=t[dt[e]].getCell(r);return!a&&Lt(r)&&r<0&&(a=t[dt[1-e]].getUnitLayoutInfo(e,Math.round(r))),a}function Yk(r){var t=r||[];return t[0]=t[0]||[],t[1]=t[1]||[],t[0][0]=t[0][1]=t[1][0]=t[1][1]=NaN,t}function Zk(r,t,e,a,n){zT(r[0],t,n,e,a,0),zT(r[1],t,n,e,a,1)}function zT(r,t,e,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=U(o)?o:[o],l=s.length,u=!!e;if(l>=1?(VT(r,t,s,u,n,i,0),l>1&&VT(r,t,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[dt[1-i]].getLocatorCount(i),v=n[dt[i]].getLocatorCount(i)-1;e===Xa.body?f=ie(0,f):e===Xa.corner&&(v=yr(-1,v)),v<f&&(f=v=NaN),He(r[0])&&(r[0]=f),He(r[1])&&(r[1]=v),r[0]=ie(yr(r[0],v),f),r[1]=ie(yr(r[1],v),f)}}function VT(r,t,e,a,n,i,o){var s=Xy(e[o],n,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[dt[i]],u=l,f=_q(s);f&&(u+=f.span[dt[i]]-1),r[0]=yr(r[0],l,u),r[1]=ie(r[1],l,u)}function Xf(r,t){return He(r[t][0])||He(r[t][1])}function GT(r,t,e,a){t=t||gq;for(var n=0;n<a;n++)t[n]=!1;for(;;){for(var i=!1,n=0;n<a;n++){var o=e[n];!t[n]&&o.cellMergeOwner&&yq(r,o.locatorRange)&&(t[n]=!0,i=!0)}if(!i)break}}var gq=[];function yq(r,t){return!FT(r[0],t[0])||!FT(r[1],t[1])?!1:(r[0][0]=yr(r[0][0],t[0][0]),r[0][1]=ie(r[0][1],t[0][1]),r[1][0]=yr(r[1][0],t[1][0]),r[1][1]=ie(r[1][1],t[1][1]),!0)}function FT(r,t){return r[1]>=t[0]&&r[0]<=t[1]}function HT(r,t){r.id.set(t[0][0],t[1][0]),r.span.set(t[0][1]-r.id.x+1,t[1][1]-r.id.y+1)}function mq(r,t){r[0][0]=t[0][0],r[0][1]=t[0][1],r[1][0]=t[1][0],r[1][1]=t[1][1]}function WT(r,t,e,a){var n=Xy(t[a][0],e,a),i=Xy(t[a][1],e,a);r[dt[a]]=r[ce[a]]=NaN,n&&i&&(r[dt[a]]=n.xy,r[ce[a]]=i.xy+i.wh-n.xy)}function ml(r,t,e,a){return r[dt[t]]=e,r[dt[1-t]]=a,r}function _q(r){return r&&(r.type===Fa.leaf||r.type===Fa.nonLeaf)?r:null}function Ac(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var $T=function(){function r(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx=t==="x"?0:1,this._model=e,this._uniqueValueGen=Sq(t);var a=e.get("data",!0);a!=null&&!U(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesData()}return r.prototype._initByDimModelData=function(t){var e=this,a=e._cells,n=e._levels,i=[],o=0;e._leavesCount=s(t,0,0),l();return;function s(u,f,v){var c=0;return u&&A(u,function(h,d){var p;K(h)?p={value:h}:ut(h)?(p=h,h.value!=null&&!K(h.value)&&(p={value:null})):p={value:null};var g={type:Fa.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:f,id:new st,span:ml(new st,e.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:e,rect:Ac()};o++,(i[f]||(i[f]=[])).push(g),n[v]||(n[v]={type:Fa.level,xy:NaN,wh:NaN,option:null,id:new st,dim:e});var y=s(p.children,f,v+1),m=Math.max(1,y);g.span[dt[e.dimIdx]]=m,c+=m,f+=m}),c}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),e._uniqueValueGen.calcDupBase(c)}}e._uniqueValueGen.ensureValueUnique(u,a);var h=e._ordinalMeta=new gu({categories:u,needCollect:!1,deduplication:!1});e._scale=new yu({ordinalMeta:h});for(var d=0;d<e._leavesCount;d++){var p=e._cells[d];p.type=Fa.leaf,p.span[dt[1-e.dimIdx]]=e._levels.length-p.level}e._initCellsId(),e._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:Fa.level,xy:NaN,wh:NaN,option:null,id:new st,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new gu({needCollect:!0,deduplication:!0,onCollect:function(a,n){var i=t._cells[n]={type:Fa.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new st,span:ml(new st,t.dimIdx,1,1),option:{value:a+""},xy:NaN,wh:NaN,dim:t,rect:Ac()};t._leavesCount++,t._setCellId(i)}});t._scale=new yu({ordinalMeta:e})},r.prototype._setCellId=function(t){var e=this._levels.length,a=this.dimIdx;ml(t.id,a,t.firstLeafLocator,t.level-e)},r.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;A(this._cells,function(a){ml(a.id,e,a.firstLeafLocator,a.level-t)})},r.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,a=this._model.get("levels",!0);a=U(a)?a:[],A(this._levels,function(n,i){ml(n.id,e,0,i-t),n.option=a[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(t,e,a,n){if(t=t||new On,e===this.dimIdx){var i=this._leavesCount,o=a!=null?Math.max(0,a):0;n=n!=null?Math.min(n,i):i,t.reset(this._cells,o,o+n)}else{var i=this._levels.length,o=a!=null?Math.max(0,a+i):0;n=n!=null?Math.min(n,i):i,t.reset(this._levels,o,o+n)}return t},r.prototype.resetCellIterator=function(t){return(t||new On).reset(this._cells,0)},r.prototype.resetLevelIterator=function(t){return(t||new On).reset(this._levels,0)},r.prototype.getLayout=function(t,e,a){var n=this.getUnitLayoutInfo(e,a);t[dt[e]]=n?n.xy:NaN,t[ce[e]]=n?n.wh:NaN},r.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},r.prototype.getCell=function(t){var e=this._scale.parse(t);return He(e)?void 0:this._cells[e]},r.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}();function Sq(r){var t=r.toUpperCase(),e=new RegExp("^"+t+"([0-9]+)$"),a=0;function n(s){var l;s!=null&&(l=s.match(e))&&(a=ie(a,+l[1]+1))}function i(){return""+t+a++}function o(s,l){for(var u=et(),f=0;f<s.length;f++){var v=s[f];(v==null||u.get(v)!=null)&&(s[f]=v=i(),l[f].option=lt({value:v},l[f].option)),u.set(v,!0)}}return{calcDupBase:n,ensureValueUnique:o}}var UT=function(){function r(t,e,a){this._model=e,this._dims=a,this._kind=t,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=et(),a()),e;function a(){var i=[],o=t._model.getShallow("data");o&&!U(o)&&(o=null),A(o,function(d,p){if(!(!ut(d)||!U(d.coord))){var g=Yk([]),y=null;if(Zk(g,y,d.coord,t._dims,d.coordClamp?Xa[t._kind]:Xa.none),!(Xf(g,0)||Xf(g,1))){var m=d&&d.mergeCells,_={id:new st,span:new st,locatorRange:g,option:d,cellMergeOwner:m};HT(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;GT(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=H({},u.option);c.coord=null;var h={id:new st,span:new st,locatorRange:f,option:c,cellMergeOwner:!0};HT(h,f),i.push(h)}}}A(i,function(d){var p=n(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=Ac(),t._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=n(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function n(i,o){var s=YT(i,o),l=e.get(s);return l||(l=e.set(s,{id:new st(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(t){return this._ensureCellMap().get(YT(t[0],t[1]))},r.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},r.prototype.expandRangeByCellMerge=function(t){if(!Xf(t,0)&&!Xf(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){Np[0]=t[0][0],Np[1]=t[1][0];var e=this.getCell(Np),a=e&&e.inSpanOf;if(a){mq(t,a.locatorRange);return}}var n=this._cellMergeOwnerList;GT(t,null,n,n.length)},r}(),Np=[];function YT(r,t){return r+"|"+t}var w_={show:!0,color:z.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function T_(r){return{color:"none",borderWidth:1,borderColor:r?"none":z.color.borderTint}}var ZT={show:!0,label:w_,itemStyle:T_(!1),silent:void 0,dividerLineStyle:{width:1,color:z.color.border}},xq={label:w_,itemStyle:T_(!1),silent:void 0},bq={label:w_,itemStyle:T_(!0),silent:void 0},wq={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:ZT,y:ZT,body:xq,corner:bq,backgroundStyle:{color:"none",borderColor:z.color.axisLine,borderWidth:1}},Tq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this._dimModels={x:new XT(this.get("x",!0)||{}),y:new XT(this.get("y",!0)||{})};e.x.option.type=e.y.option.type="category";var a=e.x.dim=new $T("x",e.x),n=e.y.dim=new $T("y",e.y),i={x:a,y:n};this._body=new UT("body",new Rt(this.getShallow("body")),i),this._corner=new UT("corner",new Rt(this.getShallow("corner")),i)},t.prototype.getDimensionModel=function(e){return this._dimModels[e]},t.prototype.getBody=function(){return this._body},t.prototype.getCorner=function(){return this._corner},t.type="matrix",t.layoutMode="box",t.defaultOption=wq,t}(It),XT=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},t}(Rt);const Cq=Tq;var qf=Math.round,Aq=0,Mq=99,Dq={normal:25,special:100},Lq={normal:50,special:125},Iq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a){this.group.removeAll();var n=this.group,i=e.coordinateSystem,o=i.getRect(),s=e.getDimensionModel("x"),l=e.getDimensionModel("y"),u=s.dim,f=l.dim;Pq(n,e,a),kq(n,e,u,f,a);var v=e.getShallow("borderZ2",!0),c=rt(v,Mq),h=c-1,d=e.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=e.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=qy(o.clone(),d,Aq),y=qy(o.clone(),p,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(qT({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&n.add(qT({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},t.type="matrix",t}(Qt);function Pq(r,t,e){a(0),a(1);function a(n){var i=t.getDimensionModel(dt[n]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=t.getShallow("tooltip",!0),f=[],v=o.resetCellIterator();v.next();){var c=v.item,h={};vt.copy(h,c.rect),_m(f,c.id.x,c.id.y),Xk(f,t,r,e,c.option,s,l,i,h,c.option.value,Lq,u)}}}function kq(r,t,e,a,n){i("body",t.getBody(),e,a),e.shouldShow()&&a.shouldShow()&&i("corner",t.getCorner(),a,e);function i(o,s,l,u){var f=new Rt(t.getShallow(o,!0)),v=f.getModel("itemStyle"),c=f.getModel("label"),h=new On,d=new On,p=[],g=t.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;_m(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?vt.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var x=_?_.option:null;Xk(p,t,r,n,x,v,c,f,S,x?x.value:null,Dq,g)}}}}function Xk(r,t,e,a,n,i,o,s,l,u,f,v){var c;Kf.option=n?n.itemStyle:null,Kf.parentModel=i,Zo.option=n,Zo.parentModel=s;var h=rt(Zo.getShallow("z2"),n&&n.itemStyle?f.special:f.normal),d=v&&v.show,p=qy(l,Kf.getItemStyle(),h);e.add(p);var g=Zo.get("cursor");g!=null&&p.attr("cursor",g);var y;if(u!=null){var m=u+"";if(Xo.option=n?n.label:null,Xo.parentModel=o,Xo.ecModel=a,Ce(p,{normal:Xo},{defaultText:m,autoOverflowArea:!0,layoutRect:nt(p.shape)}),y=p.getTextContent(),y){y.z2=h+1;var _=y.style;if(_&&_.overflow&&_.overflow!=="none"&&_.lineOverflow){var S={};vt.copy(S,l),io(S,(((c=p.style)===null||c===void 0?void 0:c.lineWidth)||0)/2,!0,!0),p.updateInnerText(),y.getLocalTransform(jf),Kr(jf,jf),vt.applyTransform(S,S,jf),y.setClipPath(new bt({shape:S}))}}on({el:p,componentModel:t,itemName:m,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}if(y){var x=Xo.get("silent");x==null&&(x=!d),y.silent=x,y.ignoreHostSilent=!0}var b=Zo.get("silent");b==null&&(b=!p.style||p.style.fill==="none"||!p.style.fill),p.silent=b,Xh(Zo),Xh(Kf),Xh(Xo)}var Zo=new Rt,Kf=new Rt,Xo=new Rt,jf=[];function qy(r,t,e){var a=t.lineWidth;if(a){var n=r.x+r.width,i=r.y+r.height;r.x=pr(r.x,a,!0),r.y=pr(r.y,a,!0),r.width=pr(n,a,!0)-r.x,r.height=pr(i,a,!0)-r.y}return new bt({shape:r,style:t,z2:e})}function qT(r,t,e){var a=t.lineWidth;return a&&(qf(r.x1*2)===qf(r.x2*2)&&(r.x1=r.x2=pr(r.x1,a,!0)),qf(r.y1*2)===qf(r.y2*2)&&(r.y1=r.y2=pr(r.y1,a,!0))),new me({shape:r,style:t,silent:!0,z2:e})}const Rq=Iq;var Eq=function(){function r(t,e,a){this.dimensions=r.dimensions,this.type="matrix",this._model=t;var n=this._dimModels={x:t.getDimensionModel("x"),y:t.getDimensionModel("y")};this._dims={x:n.x.dim,y:n.y.dim},this._resize(t,a)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(t,e){var a=[];return t.eachComponent("matrix",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){Ou({targetModel:i,coordSysType:"matrix",coordSysProvider:nL})}),a},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(t,e){var a=this._dims,n=this._dimModels,i=this._rect=qt(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});KT(n,a,i,0),KT(n,a,i,1),jT(0,a),jT(1,a),JT(this._model.getBody(),a),JT(this._model.getCorner(),a)},r.prototype.dataToPoint=function(t,e,a){return a=a||[],this.dataToLayout(t,e,_l),a[0]=_l.rect.x+_l.rect.width/2,a[1]=_l.rect.y+_l.rect.height/2,a},r.prototype.dataToLayout=function(t,e,a){var n=this._dims;a=a||{};var i=a.rect=a.rect||{};i.x=i.y=i.width=i.height=NaN;var o=a.matrixXYLocatorRange=Yk(a.matrixXYLocatorRange);return U(t)&&(Zk(o,null,t,n,rt(e&&e.clamp,Xa.none)),(!e||!e.ignoreMergeCells)&&((!e||e.clamp!==Xa.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!e||e.clamp!==Xa.body)&&this._model.getCorner().expandRangeByCellMerge(o)),WT(i,o,n,0),WT(i,o,n,1)),a},r.prototype.pointToData=function(t,e,a){var n=this._dims;return QT(sa,0,n,t,e&&e.clamp),QT(sa,1,n,t,e&&e.clamp),a=a||[],a[0]=a[1]=NaN,sa.y===Ee.inCorner&&sa.x===Ee.inBody?tC(sa,a,0,n):sa.x===Ee.inCorner&&sa.y===Ee.inBody?tC(sa,a,1,n):(eC(sa,a,0,n),eC(sa,a,1,n)),a},r.prototype.convertToPixel=function(t,e,a,n){var i=zp(e);return i===this?i.dataToPoint(a,n):void 0},r.prototype.convertToLayout=function(t,e,a,n){var i=zp(e);return i===this?i.dataToLayout(a,n):void 0},r.prototype.convertFromPixel=function(t,e,a,n){var i=zp(e);return i===this?i.pointToData(a,n):void 0},r.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},r.dimensions=["x","y","value"],r}(),_l={rect:Ac()},Jf=new On,Bp=new On;function KT(r,t,e,a){for(var n=1-a,i=t[dt[a]],o=t[dt[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=e[ce[a]],v=i.getLocatorCount(a)+o.getLocatorCount(a),c=new Rt,h=o.resetLevelIterator();h.next();)c.option=h.item.option,c.parentModel=r[dt[n]],g(h.item,s?c.get("levelSize"):0);for(var d=new Rt,p=i.resetCellIterator();p.next();)p.item.type===Fa.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(w,T){var C=Oq(T,a,e);He(C)||(w.wh=Ky(C,f),f=Ky(f-w.wh),v--)}var y=v?f/v:0,m=!v&&f>=1,_=e[dt[a]],S=i.getLocatorCount(a)-1,x=new On;for(o.resetLayoutIterator(x,a);x.next();)b(x.item);for(i.resetLayoutIterator(x,a);x.next();)b(x.item);function b(w){He(w.wh)&&(w.wh=y),w.xy=_,w.id[dt[a]]===S&&!m&&(w.wh=e[dt[a]]+e[ce[a]]-w.xy),_+=w.wh}}function jT(r,t){for(var e=t[dt[r]].resetCellIterator();e.next();){var a=e.item;Mc(a.rect,r,a.id,a.span,t),Mc(a.rect,1-r,a.id,a.span,t),a.type===Fa.nonLeaf&&(a.xy=a.rect[dt[r]],a.wh=a.rect[ce[r]])}}function JT(r,t){r.travelExistingCells(function(e){var a=e.span;if(a){var n=e.spanRect,i=e.id;Mc(n,0,i,a,t),Mc(n,1,i,a,t)}})}function Mc(r,t,e,a,n){r[ce[t]]=0;var i=e[dt[t]],o=i<0?n[dt[1-t]]:n[dt[t]],s=o.getUnitLayoutInfo(t,e[dt[t]]);if(r[dt[t]]=s.xy,r[ce[t]]=s.wh,a[dt[t]]>1){var l=o.getUnitLayoutInfo(t,e[dt[t]]+a[dt[t]]-1);r[ce[t]]=l.xy+l.wh-s.xy}}function Oq(r,t,e){var a=Fv(r,e[ce[t]]);return Ky(a,e[ce[t]])}function Ky(r,t){return Math.max(Math.min(r,rt(t,1/0)),0)}function zp(r){var t=r.matrixModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}var Ee={inBody:1,inCorner:2,outside:3},sa={x:null,y:null,point:[]};function QT(r,t,e,a,n){var i=e[dt[t]],o=e[dt[1-t]],s=i.getUnitLayoutInfo(t,i.getLocatorCount(t)-1),l=i.getUnitLayoutInfo(t,0),u=o.getUnitLayoutInfo(t,-o.getLocatorCount(t)),f=o.shouldShow()?o.getUnitLayoutInfo(t,-1):null,v=r.point[t]=a[t];if(!l&&!f){r[dt[t]]=Ee.outside;return}if(n===Xa.body){l?(r[dt[t]]=Ee.inBody,v=yr(s.xy+s.wh,ie(l.xy,v)),r.point[t]=v):r[dt[t]]=Ee.outside;return}else if(n===Xa.corner){f?(r[dt[t]]=Ee.inCorner,v=yr(f.xy+f.wh,ie(u.xy,v)),r.point[t]=v):r[dt[t]]=Ee.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:c,d=s?s.xy+s.wh:c;if(v<h){if(!n){r[dt[t]]=Ee.outside;return}v=h}else if(v>d){if(!n){r[dt[t]]=Ee.outside;return}v=d}r.point[t]=v,r[dt[t]]=c<=v&&v<=d?Ee.inBody:h<=v&&v<=c?Ee.inCorner:Ee.outside}function tC(r,t,e,a){var n=1-e;if(r[dt[e]]!==Ee.outside)for(a[dt[e]].resetCellIterator(Bp);Bp.next();){var i=Bp.item;if(rC(r.point[e],i.rect,e)&&rC(r.point[n],i.rect,n)){t[e]=i.ordinal,t[n]=i.id[dt[n]];return}}}function eC(r,t,e,a){if(r[dt[e]]!==Ee.outside){var n=r[dt[e]]===Ee.inCorner?a[dt[1-e]]:a[dt[e]];for(n.resetLayoutIterator(Jf,e);Jf.next();)if(Nq(r.point[e],Jf.item)){t[e]=Jf.item.id[dt[e]];return}}}function Nq(r,t){return t.xy<=r&&r<=t.xy+t.wh}function rC(r,t,e){return t[dt[e]]<=r&&r<=t[dt[e]]+t[ce[e]]}const Bq=Eq;function zq(r){r.registerComponentModel(Cq),r.registerComponentView(Rq),r.registerCoordinateSystem("matrix",Bq)}function Vq(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var a=t.parentOption;a?t.parentId=a.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function aC(r,t){var e;return A(t,function(a){r[a]!=null&&r[a]!=="auto"&&(e=!0)}),e}function Gq(r,t,e){var a=H({},e),n=r[t],i=e.$action||"merge";i==="merge"?n?(mt(n,a,!0),La(n,a,{ignoreSize:!0}),uL(e,n),Qf(e,n),Qf(e,n,"shape"),Qf(e,n,"style"),Qf(e,n,"extra"),e.clipPath=n.clipPath):r[t]=a:i==="replace"?r[t]=a:i==="remove"&&n&&(r[t]=null)}var qk=["transition","enterFrom","leaveTo"],Fq=qk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Qf(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var a=e?qk:Fq,n=0;n<a.length;n++){var i=a[n];r[i]==null&&t[i]!=null&&(r[i]=t[i])}}function Hq(r,t){if(r&&(r.hv=t.hv=[aC(t,["left","right"]),aC(t,["top","bottom"])],r.type==="group")){var e=r,a=t;e.width==null&&(e.width=a.width=0),e.height==null&&(e.height=a.height=0)}}var Wq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,a),this.option.elements=n},t.prototype.optionUpdated=function(e,a){var n=this.option,i=(a?n:e).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=zM(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,v){var c=f.newOption;c&&(u.push(c),Vq(f,c),Gq(o,v,c),Hq(o[v],c))},this),n.elements=Bt(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,a,n){A(e,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)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(It),nC={path:null,compoundPath:null,group:it,image:Be,text:Pt},Dr=wt(),$q=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=et()},t.prototype.render=function(e,a,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var a=e.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=e.get("z"),s=e.get("zlevel");A(a,function(l){var u=ye(l.id,null),f=u!=null?n.get(u):null,v=ye(l.parentId,null),c=v!=null?n.get(v):i,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&Ck(d,h,!!g,!!p)){var y=Ak(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=Uq(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var b=!f,w=f;b?w=iC(u,c,l.type,n):(w&&(Dr(w).isNew=!1),Ik(w)),w&&(Cv(w,m,e,{isInit:b}),oC(w,l,o,s))}else if(x){Mv(f,l,n,e);var T=iC(u,c,l.type,n);T&&(Cv(T,m,e,{isInit:!0}),oC(T,l,o,s))}else _==="remove"&&(Dk(f,l),Mv(f,l,n,e));var C=n.get(u);if(C&&p)if(S){var M=C.getTextContent();M?M.attr(p):C.setTextContent(new Pt(p))}else x&&C.setTextContent(new Pt(p));if(C){var D=l.clipPath;if(D){var I=D.type,L=void 0,b=!1;if(S){var P=C.getClipPath();b=!P||Dr(P).type!==I,L=b?jy(I):P}else x&&(b=!0,L=jy(I));C.setClipPath(L),Cv(L,D,e,{isInit:b}),wc(L,D.keyframeAnimation,e)}var k=Dr(C);C.setTextConfig(g),k.option=l,Yq(C,e,l),on({el:C,componentModel:e,itemName:C.name,itemTooltipOption:l.tooltip}),wc(C,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,a){for(var n=e.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],f=0;f<n.length;f++){var v=n[f],c=ye(v.id,null),h=c!=null?o.get(c):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Dr(h),y=Dr(d);g.width=q(g.option.width,p?s:y.width)||0,g.height=q(g.option.height,p?l:y.height)||0}}for(var f=n.length-1;f>=0;f--){var v=n[f],c=ye(v.id,null),h=c!=null?o.get(c):null;if(h){var d=h.parent,y=Dr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=sh(h,v,m,null,{hv:v.hv,boundingMode:v.bounding},_);if(!Dr(h).isNew&&S){for(var x=v.transition,b={},w=0;w<u.length;w++){var T=u[w],C=_[T];x&&(to(x)||yt(x,T)>=0)?b[T]=C:h[T]=C}kt(h,b,e,0)}else h.attr(_)}}},t.prototype._clear=function(){var e=this,a=this._elMap;a.each(function(n){Mv(n,Dr(n).option,a,e._lastGraphicModel)}),this._elMap=et()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Qt);function jy(r){var t=Q(nC,r)?nC[r]:Yv(r),e=new t({});return Dr(e).type=r,e}function iC(r,t,e,a){var n=jy(e);return t.add(n),a.set(r,n),Dr(n).id=r,Dr(n).isNew=!0,n}function Mv(r,t,e,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Mv(i,t,e,a)}),wh(r,t,a),e.removeKey(Dr(r).id))}function oC(r,t,e,a){r.isGroup||A([["cursor",Nr.prototype.cursor],["zlevel",a||0],["z",e||0],["z2",0]],function(n){var i=n[0];Q(t,i)?r[i]=rt(t[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(Mt(t),function(n){if(n.indexOf("on")===0){var i=t[n];r[n]=at(i)?i:null}}),Q(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function Uq(r){return r=H({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(iL),function(t){delete r[t]}),r}function Yq(r,t,e){var a=ht(r).eventData;!r.silent&&!r.ignore&&!a&&(a=ht(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),a&&(a.info=e.info)}function Zq(r){r.registerComponentModel(Wq),r.registerComponentView($q),r.registerPreprocessor(function(t){var e=t.graphic;U(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var sC=["x","y","radius","angle","single"],Xq=["cartesian2d","polar","singleAxis"];function qq(r){var t=r.get("coordinateSystem");return yt(Xq,t)>=0}function Pn(r){return r+"Axis"}function Kq(r,t){var e=et(),a=[],n=et();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(c,h){var d=e.get(c);d&&d[h]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,c){(e.get(v)||e.set(v,[]))[c]=!0})}return a}function Kk(r){var t=r.ecModel,e={infoList:[],infoMap:et()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(Pn(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var Vp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),jq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=lC(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=lC(e);mt(this.option,e,!0),mt(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=et(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return A(sC,function(n){var i=this.getReferringComponents(Pn(n),ZN);if(i.specified){a=!0;var o=new Vp;A(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var v=u[0];if(v){var c=new Vp;if(c.add(v.componentIndex),e.set(f,c),i=!1,f==="x"||f==="y"){var h=v.getReferringComponents("grid",ee).models[0];h&&A(u,function(d){v.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",ee).models[0]&&c.add(d.componentIndex)})}}}i&&A(sC,function(u){if(i){var f=n.findComponents({mainType:Pn(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var v=new Vp;v.add(f[0].componentIndex),e.set(u,v),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(Pn(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(Pn(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;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},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(It);function lC(r){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}const Mu=jq;var Jq=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Mu);const Qq=Jq;var tK=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t}(Qt);const C_=tK;var eK=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(C_);const rK=eK;var es=A,uC=Er,aK=function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(qq(e)){var a=Pn(this._dimName),n=e.getReferringComponents(a,ee).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return nt(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;es(["start","end"],function(c,h){var d=t[c],p=t[c+"Value"];i[h]==="percent"?(d==null&&(d=o[h]),p=n.parse(Nt(d,o,e))):(u=!0,p=p==null?e[h]:n.parse(p),d=Nt(p,e,o)),l[h]=p==null||isNaN(p)?e[h]:p,s[h]=d==null||isNaN(d)?o[h]:d}),uC(l),uC(s);var f=this._minMaxSpan;u?v(l,s,e,o,!1):v(s,l,o,e,!0);function v(c,h,d,p,g){var y=g?"Span":"ValueSpan";$n(0,c,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)h[m]=Nt(c[m],d,p,!0),g&&(h[m]=n.parse(h[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=nK(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;es(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var v=u.getStore(),c=Y(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,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&&(d=!0),x&&(p=!0)}return g&&d&&p})}else es(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});es(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;es(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Nt(a[0]+o,a,[0,100],!0):i!=null&&(o=Nt(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=LM(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function nK(r,t,e){var a=[1/0,-1/0];es(e,function(o){_F(a,o.getData(),t)});var n=r.getAxisModel(),i=UI(n.axis.scale,n,a).calculate();return[i.min,i.max]}const iK=aK;var oK={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Pn(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new iK(n,i,s,r),e.push(o.__dzAxisProxy))});var a=et();return A(e,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const sK=oK;function lK(r){r.registerAction("dataZoom",function(t,e){var a=Kq(e,t);A(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var fC=!1;function A_(r){fC||(fC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,sK),lK(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function uK(r){r.registerComponentModel(Qq),r.registerComponentView(rK),A_(r)}var Ir=function(){function r(){}return r}(),jk={};function rs(r,t){jk[r]=t}function Jk(r){return jk[r]}var fK=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(a,n){var i=Jk(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),mt(a,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:z.size.m,itemSize:15,itemGap:z.size.s,showTitle:!0,iconStyle:{borderColor:z.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:z.color.accent50}},tooltip:{show:!1,position:"bottom"}},t}(It);const vK=fK;function Qk(r,t){var e=Eu(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new bt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var cK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),v=[];A(u,function(m,_){v.push(_)}),new tn(this._featureNames||[],v).add(c).update(c).remove(gt(c,null)).execute(),this._featureNames=v;function c(m,_){var S=v[m],x=v[_],b=u[S],w=new Rt(b,e,e.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(b.title=i.newTitle),S&&!x){if(hK(S))T={onclick:w.option.onclick,featureName:S};else{var C=Jk(S);if(!C)return;T=new C}f[S]=T}else if(T=f[x],!T)return;T.uid=zs("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof Ir;if(!S&&x){M&&T.dispose&&T.dispose(a,n);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(a,n);return}h(w,T,S),w.setIconStatus=function(D,I){var L=this.option,P=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,P[D]&&(I==="emphasis"?Ja:Qa)(P[D])},T instanceof Ir&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var x=m.getModel("iconStyle"),b=m.getModel(["emphasis","iconStyle"]),w=_ instanceof Ir&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;K(w)?(C={},C[S]=w):C=w,K(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var P=Ru(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var k=P.ensureState("emphasis");k.style=b.getItemStyle();var R=new Pt({style:{text:M[L],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Um({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},a)},ignore:!0});P.setTextContent(R),on({el:P,componentModel:e,itemName:L,formatterParamsExtra:{title:M[L]}}),P.__title=M[L],P.on("mouseover",function(){var O=b.getItemStyle(),E=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:b.get("textFill")||O.fill||O.stroke||z.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||E}),R.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),R.hide()}),(m.get(["iconStatus",L])==="emphasis"?Ja:Qa)(P),o.add(P),P.on("click",j(_.onclick,_,a,n,L)),D[L]=P})}var d=xe(e,n).refContainer,p=e.getBoxLayoutParams(),g=e.get("padding"),y=qt(p,d,g);ji(e.get("orient"),o,e.get("itemGap"),y.width,y.height),sh(o,p,d,g),o.add(Qk(o.getBoundingRect(),e)),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&&!at(w)&&_){var T=w.style||(w.style={}),C=Uc(_,Pt.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(x.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(x.position=["100%",L],T.align="right"):M-C.width/2<0&&(x.position=[0,L],T.align="left")}})},t.prototype.updateView=function(e,a,n,i){A(this._features,function(o){o instanceof Ir&&o.updateView&&o.updateView(o.model,a,n,i)})},t.prototype.remove=function(e,a){A(this._features,function(n){n instanceof Ir&&n.remove&&n.remove(e,a)}),this.group.removeAll()},t.prototype.dispose=function(e,a){A(this._features,function(n){n instanceof Ir&&n.dispose&&n.dispose(e,a)})},t.type="toolbox",t}(Qt);function hK(r){return r.indexOf("my")===0}const dK=cK;var pK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||z.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=Et.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){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)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),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>',T=window.open();T.document.write(w),T.document.title=i}},t.getDefaultOption=function(e){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:z.color.neutral00,name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},t}(Ir);const gK=pK;var vC="__ec_magicType_stack__",yK=[["line","bar"],["stack"]],mK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,a=e.get("icon"),n={};return A(e.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},t.getDefaultOption=function(e){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},t.prototype.onclick=function(e,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(cC[n]){var s={series:[]},l=function(v){var c=v.subType,h=v.id,d=cC[n](c,h,v,i);d&&(lt(d,v.option),s.series.push(d));var p=v.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=v.getReferringComponents(m,ee).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var x=0;x<=S;x++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(yK,function(v){yt(v,n)>=0&&A(v,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=mt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Ir),cC={line:function(r,t,e,a){if(r==="bar")return mt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,t,e,a){if(r==="line")return mt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,t,e,a){var n=e.get("stack")===vC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),mt({id:t,stack:n?"":vC},a.get(["option","stack"])||{},!0)}};Pa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const _K=mK;var Th=new Array(60).join("-"),Ls=" ";function SK(r){var t={},e=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:a}}function xK(r){var t=[];return A(r,function(e,a){var n=e.categoryAxis,i=e.valueAxis,o=i.dim,s=[" "].concat(Y(e.series,function(h){return h.name})),l=[n.model.getCategories()];A(e.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Ls)],f=0;f<l[0].length;f++){for(var v=[],c=0;c<l.length;c++)v.push(l[c][f]);u.push(v.join(Ls))}t.push(u.join(`
`))}),t.join(`
`+Th+`
`)}function bK(r){return Y(r,function(t){var e=t.getRawData(),a=[t.name],n=[];return e.each(e.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=e.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+Ls:"")+n.join(Ls))}),a.join(`
`)}).join(`
`+Th+`
`)}function wK(r){var t=SK(r);return{value:Bt([xK(t.seriesGroupByCategoryAxis),bK(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
`+Th+`
`),meta:t.meta}}function Dc(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function TK(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(Ls)>=0)return!0}var Jy=new RegExp("["+Ls+"]+","g");function CK(r){for(var t=r.split(/\n+/g),e=Dc(t.shift()).split(Jy),a=[],n=Y(e,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=Dc(t[i]).split(Jy);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}}function AK(r){for(var t=r.split(/\n+/g),e=Dc(t.shift()),a=[],n=0;n<t.length;n++){var i=Dc(t[n]);if(i){var o=i.split(Jy),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]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:e,data:a}}function MK(r,t){var e=r.split(new RegExp(`
*`+Th+`
*`,"g")),a={series:[]};return A(e,function(n,i){if(TK(n)){var o=CK(n),s=t[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{var o=AK(n);a.series.push(o)}}),a}var DK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,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")||z.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=wK(e);if(at(v)){var d=v(a.getOption());K(d)?u.innerHTML=d:gs(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.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",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.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}fg(_,"click",b),fg(S,"click",function(){if(c==null&&v!=null||c!=null&&v==null){b();return}var w;try{at(c)?w=c(u,a.getOption()):w=MK(f.value,g)}catch(T){throw b(),new Error("Data view format error "+T)}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},t.prototype.remove=function(e,a){this._dom&&a.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,a){this.remove(e,a)},t.getDefaultOption=function(e){var a={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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:z.color.background,textColor:z.color.primary,textareaColor:z.color.background,textareaBorderColor:z.color.border,buttonColor:z.color.accent50,buttonTextColor:z.color.neutral00};return a},t}(Ir);function LK(r,t){return Y(r,function(e,a){var n=t&&t[a];if(ut(n)&&!U(n)){var i=ut(e)&&!U(e);i||(e={value:e});var o=n.name!=null&&e.name==null;return e=lt(e,n),o&&delete e.name,e}else return e})}Pa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];A(r.newOption.series,function(a){var n=t.getSeriesByName(a.name)[0];if(!n)e.push(H({type:"scatter"},a));else{var i=n.get("data");e.push({name:a.name,data:LK(a.data,i)})}}),t.mergeOption(lt({series:e},r.newOption))});const IK=DK;var tR=A,eR=wt();function PK(r,t){var e=M_(r);tR(t,function(a,n){for(var i=e.length-1;i>=0;i--){var o=e[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function kK(r){var t=M_(r),e=t[t.length-1];t.length>1&&t.pop();var a={};return tR(e,function(n,i){for(var o=t.length-1;o>=0;o--)if(n=t[o][i],n){a[i]=n;break}}),a}function RK(r){eR(r).snapshots=null}function EK(r){return M_(r).length}function M_(r){var t=eR(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var OK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,a){RK(e),a.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return a},t}(Ir);Pa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const NK=OK;var BK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],zK=function(){function r(t,e,a){var n=this;this._targetInfoList=[];var i=hC(e,t);A(VK,function(o,s){(!a||!a.include||yt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=Gp[a.brushType](0,i,n);a.__rangeOffset={offset:yC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,a){A(t,function(n){var i=this.findTargetInfo(n,e);i&&i!==!0&&A(i.coordSyses,function(o){var s=Gp[n.brushType](1,o,n.range,!0);a(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(a){var n=this.findTargetInfo(a,e);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=Gp[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?yC[a.brushType](i.values,o.offset,GK(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(t,e){return Y(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:e?e(a):null,clipPath:ik(n),isTargetByCursor:sk(n,t,a.coordSysModel),getLinearBrushOtherExtent:ok(n)}})},r.prototype.controlSeries=function(t,e,a){var n=this.findTargetInfo(t,a);return n===!0||n&&yt(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var a=this._targetInfoList,n=hC(e,t),i=0;i<a.length;i++){var o=a[i],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<dC.length;l++)if(dC[l](n,o))return o}return!0},r}();function Qy(r){return r[0]>r[1]&&r.reverse(),r}function hC(r,t){return cs(r,t,{includeMainTypes:BK})}var VK={grid:function(r,t){var e=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=et(),o={},s={};!e&&!a&&!n||(A(e,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 u=l.coordinateSystem,f=[];A(u.getCartesians(),function(v,c){(yt(e,v.getAxis("x").model)>=0||yt(a,v.getAxis("y").model)>=0)&&f.push(v)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:pC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var a=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:a,coordSyses:[a],getPanelRect:pC.geo})})}},dC=[function(r,t){var e=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],pC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(Ki(r)),t}},Gp={lineX:gt(gC,0),lineY:gt(gC,1),rect:function(r,t,e,a){var n=r?t.pointToData([e[0][0],e[1][0]],a):t.dataToPoint([e[0][0],e[1][0]],a),i=r?t.pointToData([e[0][1],e[1][1]],a):t.dataToPoint([e[0][1],e[1][1]],a),o=[Qy([n[0],i[0]]),Qy([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Y(e,function(o){var s=r?t.pointToData(o,a):t.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});return{values:i,xyMinMax:n}}};function gC(r,t,e,a){var n=e.getAxis(["x","y"][r]),i=Qy(Y([0,1],function(s){return t?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 yC={lineX:gt(mC,0),lineY:gt(mC,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return Y(r,function(a,n){return[a[0]-e[0]*t[n][0],a[1]-e[1]*t[n][1]]})}};function mC(r,t,e,a){return[t[0]-a[r]*e[0],t[1]-a[r]*e[1]]}function GK(r,t){var e=_C(r),a=_C(t),n=[e[0]/a[0],e[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function _C(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const D_=zK;var tm=A,FK=HN("toolbox-dataZoom_"),HK=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,a,n,i){this._brushController||(this._brushController=new n_(n.getZr()),this._brushController.on("brush",j(this._onBrush,this)).mount()),UK(e,a,this,i,n),$K(e,a)},t.prototype.onclick=function(e,a,n){WK[n].call(this)},t.prototype.remove=function(e,a){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,a){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var a=e.areas;if(!e.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new D_(L_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,v){if(v.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",v,f[0]),s("y",v,f[1])):s({lineX:"x",lineY:"y"}[c],v,f)}}),PK(i,n),this._dispatchZoomAction(n);function s(u,f,v){var c=f.getAxis(u),h=c.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(v=$n(0,v.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:v[0],endValue:v[1]})}function l(u,f,v){var c;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(c=h)}),c}},t.prototype._dispatchZoomAction=function(e){var a=[];tm(e,function(n,i){a.push(nt(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},t.getDefaultOption=function(e){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:z.color.backgroundTint}};return a},t}(Ir),WK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(kK(this.ecModel))}};function L_(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function $K(r,t){r.setIconStatus("back",EK(t)>1?"emphasis":"normal")}function UK(r,t,e,a,n){var i=e._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),e._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new D_(L_(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}NV("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var a=t.getModel(e),n=[],i=L_(a),o=cs(r,i);tm(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),tm(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:FK+u+v};c[f]=v,n.push(c)}return n});const YK=HK;function ZK(r){r.registerComponentModel(vK),r.registerComponentView(dK),rs("saveAsImage",gK),rs("magicType",_K),rs("dataView",IK),rs("dataZoom",YK),rs("restore",NK),_t(uK)}var XK=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:z.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:z.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:z.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:z.color.tertiary,fontSize:14}},t}(It);const qK=XK;function rR(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function aR(r){if(Et.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var nR=aR(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),KK=aR(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function iR(r,t){if(!r)return t;t=tL(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function jK(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?t?e[t]:e:null}var JK=iR(KK,"transition"),I_=iR(nR,"transform"),QK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Et.transform3dSupported?"will-change:transform;":"");function tj(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function ej(r,t,e){if(!K(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=so(t);var i=tj(e),o=Math.max(Math.round(n)*1.5,6),s="",l=I_+":",u;yt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?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)),h=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-v)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function rj(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(Et.transformSupported?""+I_+n:",left"+n+",top"+n)),JK+":"+i}function SC(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Et.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=Et.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+I_+":"+o+";":[["top",0],["left",0],[nR,o]]}function aj(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=rt(r.get("lineHeight"),Math.round(e*3/2));e&&t.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&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function nj(r,t,e,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=WL(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),t&&i>0&&n.push(rj(i,e,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=tL(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(aj(v)),c!=null&&n.push("padding:"+Eu(c).join("px ")+"px"),n.join(";")+";"}function xC(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&aO(r,o,e,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]/t.getWidth(),r[3]=r[1]/t.getHeight()}var ij=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Et.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&(K(i)?document.querySelector(i):gs(i)?i:at(i)&&i(t.getDom()));xC(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,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,f=n.painter.getViewportRoot();Cr(f,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(t){if(!this._container){var e=this._api.getDom(),a=jK(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=QK+nj(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+SC(i[0],i[1],!0)+("border-color:"+so(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(K(i)&&a.get("trigger")==="item"&&!rR(a)&&(s=ej(a,n,i)),K(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l<t.length;l++)gs(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(xC(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=SC(a[0],a[1]);A(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Et.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;nO(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var a=e.parentNode;a&&a.removeChild(e)}this.el=this._container=null},r}();const oj=ij;var sj=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),wC(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;ut(t)&&Ot(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Pt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:WL(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(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=bC(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;wC(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Sn(i.borderWidth||0),s=bC(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(j(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Sn(r){return Math.max(0,r)}function bC(r){var t=Sn(r.shadowBlur||0),e=Sn(r.shadowOffsetX||0),a=Sn(r.shadowOffsetY||0);return{left:Sn(t-e),right:Sn(t+e),top:Sn(t-a),bottom:Sn(t+a)}}function wC(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}const lj=sj;var uj=new bt({shape:{x:-1,y:-1,width:2,height:2}}),fj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(Et.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=qN(n.get("renderMode"));this._tooltipContent=i==="richText"?new lj(a):new oj(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(Et.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Fs(this,"_updatePosition",50,"fixRate"):cu(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Vk("itemTooltip",this._api,j(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||Et.node||!n.getDom())){var o=TC(i,n);this._ticket="";var s=i.dataByCoordSys,l=dj(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=uj;f.x=i.x,f.y=i.y,f.update(),ht(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(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var v=Gk(i,a),c=v.point[0],h=v.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(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))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(TC(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),v=Sl([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=ht(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Fi(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ht(f).dataIndex!=null?l=f:ht(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=j(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Sl([a.tooltipOption],i),l=this._renderMode,u=[],f=he("section",{blocks:[],noHeader:!0}),v=[],c=new Sd;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var b=Nk(x,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=he("section",{header:b,noHeader:!Rr(b),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=nc(S.axis,{value:x}),D.axisValueLabel=b,D.marker=c.makeTooltipMarker("item",so(D.color),l);var I=NS(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=Sl([C],i).get("valueFormatter");w.blocks.push(P?H({valueFormatter:P},L):L)}I.text&&v.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),v.reverse();var h=a.position,d=s.get("order"),p=HS(f,c,l,d,n.get("useUTC"),s.get("textStyle"));p&&v.unshift(p);var g=l==="richText"?`
`:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,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)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=ht(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,d=e.positionDefault,p=Sl([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,v),m=new Sd;y.marker=m.makeTooltipMarker("item",so(y.color),h);var _=NS(u.formatTooltip(f,!1,v)),S=p.get("order"),x=p.get("valueFormatter"),b=_.frag,w=b?HS(x?H({valueFormatter:x},b):b,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=ht(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(K(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=nt(l),l.content=Fe(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=e.positionDefault,d=Sl(v,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Sd;this._showOrMove(d,function(){var m=nt(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,a,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var v=this._tooltipContent;v.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(c)if(K(c)){var g=e.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=oh(y.axisValue,h,g)),h=eL(h,n,!0)}else if(at(c)){var _=j(function(S,x){S===this._ticket&&(v.setContent(x,f,e,p,l),this._updatePosition(e,l,o,s,v,n,u))},this);this._ticket=i,h=c(n,i,_)}else h=c;v.setContent(h,f,e,p,l),v.show(e,p),this._updatePosition(e,l,o,s,v,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var v=o.getSize(),c=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),at(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:v.slice()})),U(a))n=q(a[0],u),i=q(a[1],f);else if(ut(a)){var p=a;p.width=v[0],p.height=v[1];var g=qt(p,{width:u,height:f});n=g.x,i=g.y,c=null,h=null}else if(K(a)&&l){var y=hj(a,d,v,e.get("borderWidth"));n=y[0],i=y[1]}else{var y=vj(n,i,o,u,f,c?null:20,h?null:20);n=y[0],i=y[1]}if(c&&(n-=CC(c)?v[0]/2:c==="right"?v[0]:0),h&&(i-=CC(h)?v[1]/2:h==="bottom"?v[1]:0),rR(e)){var y=cj(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&A(u,function(c,h){var d=v[h]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&A(p,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=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){Et.node||!a.getDom()||(cu(this,"_updatePosition"),this._tooltipContent.dispose(),Yy("itemTooltip",a))},t.type="tooltip",t}(Qt);function Sl(r,t,e){var a=t.ecModel,n;e?(n=new Rt(e,a,a),n=new Rt(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Rt&&(o=o.get("tooltip",!0)),K(o)&&(o={formatter:o}),o&&(n=new Rt(o,n,a)))}return n}function TC(r,t){return r.dispatchAction||j(t.dispatchAction,t)}function vj(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function cj(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function hj(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function CC(r){return r==="center"||r==="middle"}function dj(r,t,e){var a=Lm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Rs(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ht(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const pj=fj;function gj(r){_t(Uu),r.registerComponentModel(qK),r.registerComponentView(pj),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},oe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},oe)}var yj=["rect","polygon","keep","clear"];function mj(r,t){var e=Ht(r?r.brush:[]);if(e.length){var a=[];A(e,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;U(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),_j(s),t&&!s.length&&s.push.apply(s,yj)}}function _j(r){var t={};A(r,function(e){t[e]=1}),r.length=0,A(t,function(e,a){r.push(a)})}var AC=A;function MC(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function em(r,t,e){var a={};return AC(t,function(i){var o=a[i]=n();AC(r[i],function(s,l){if(Ne.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new Ne(u),l==="opacity"&&(u=nt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ne(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function oR(r,t,e){var a;A(e,function(n){t.hasOwnProperty(n)&&MC(t[n])&&(a=!0)}),a&&A(e,function(n){t.hasOwnProperty(n)&&MC(t[n])?r[n]=nt(t[n]):delete r[n]})}function Sj(r,t,e,a,n,i){var o={};A(r,function(v){var c=Ne.prepareVisualTypes(t[v]);o[v]=c});var s;function l(v){return h0(e,s,v)}function u(v,c){QL(e,s,v,c)}i==null?e.each(f):e.each([i],f);function f(v,c){s=i==null?v:c;var h=e.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=a.call(n,v),p=t[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(v,l,u)}}}function xj(r,t,e,a){var n={};return A(r,function(i){var o=Ne.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(x){return h0(s,v,x)}function f(x,b){QL(s,v,x,b)}for(var v,c=s.getStore();(v=o.next())!=null;){var h=s.getRawDataItem(v);if(!(h&&h.visualMap===!1))for(var d=a!=null?c.get(l,v):v,p=e(d),g=t[p],y=n[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function bj(r){var t=r.brushType,e={point:function(a){return DC[t].point(a,e,r)},rect:function(a){return DC[t].rect(a,e,r)}};return e}var DC={lineX:LC(0),lineY:LC(1),rect:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])},rect:function(r,t,e){return r&&e.boundingRect.intersect(r)}},polygon:{point:function(r,t,e){return r&&e.boundingRect.contain(r[0],r[1])&&Pi(e.range,r[0],r[1])},rect:function(r,t,e){var a=e.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Pi(a,n,i)||Pi(a,n+o,i)||Pi(a,n,i+s)||Pi(a,n+o,i+s)||vt.create(r).contain(l[0],l[1])||Ll(n,i,n+o,i,a)||Ll(n,i,n,i+s,a)||Ll(n+o,i,n+o,i+s,a)||Ll(n,i+s,n+o,i+s,a))return!0}}};function LC(r){var t=["x","y"],e=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return xl(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[t[r]],a[t[r]]+a[e[r]]];return s[1]<s[0]&&s.reverse(),xl(s[0],o)||xl(s[1],o)||xl(o[0],s)||xl(o[1],s)}}}}function xl(r,t){return t[0]<=r&&r<=t[1]}var IC=["inBrush","outOfBrush"],Fp="__ecBrushSelect",rm="__ecInBrushSelectEvent";function sR(r){r.eachComponent({mainType:"brush"},function(t){var e=t.brushTargetManager=new D_(t.option,r);e.setInputRanges(t.areas,r)})}function wj(r,t,e){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){e&&e.type==="takeGlobalCursor"&&o.setBrushOption(e.key==="brush"?e.brushOption:{brushType:!1})}),sR(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:nt(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,v=[],c=[],h=[],d=!1;s||(n=u.throttleType,i=u.throttleDelay);var p=Y(o.areas,function(x){var b=Mj[x.brushType],w=lt({boundingRect:b?b(x):void 0},x);return w.selectors=bj(w),w}),g=em(o.option,IC,function(x){x.mappingMethod="fixed"});U(f)&&A(f,function(x){v[x]=1});function y(x){return f==="all"||!!v[x]}function m(x){return!!x.length}r.eachSeries(function(x,b){var w=h[b]=[];x.subType==="parallel"?_(x,b):S(x,b,w)});function _(x,b){var w=x.coordinateSystem;d=d||w.hasAxisBrushed(),y(b)&&w.eachActiveState(x.getData(),function(T,C){T==="active"&&(c[C]=1)})}function S(x,b,w){if(!(!x.brushSelector||Aj(o,b))&&(A(p,function(C){o.brushTargetManager.controlSeries(C,x,r)&&w.push(C),d=d||m(w)}),y(b)&&m(w))){var T=x.getData();T.each(function(C){PC(x,w,T,C)&&(c[C]=1)})}}r.eachSeries(function(x,b){var w={seriesId:x.id,seriesIndex:b,seriesName:x.name,dataIndex:[]};l.selected.push(w);var T=h[b],C=x.getData(),M=y(b)?function(D){return c[D]?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return PC(x,T,C,D)?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(b)?d:m(T))&&Sj(IC,g,C,M)})}),Tj(t,n,i,a,e)}function Tj(r,t,e,a,n){if(n){var i=r.getZr();if(!i[rm]){i[Fp]||(i[Fp]=Cj);var o=Fs(i,Fp,e,t);o(r,a)}}}function Cj(r,t){if(!r.isDisposed()){var e=r.getZr();e[rm]=!0,r.dispatchAction({type:"brushSelect",batch:t}),e[rm]=!1}}function PC(r,t,e,a){for(var n=0,i=t.length;n<i;n++){var o=t[n];if(r.brushSelector(a,e,o.selectors,o))return!0}}function Aj(r,t){var e=r.option.seriesIndex;return e!=null&&e!=="all"&&(U(e)?yt(e,t)<0:t!==e)}var Mj={rect:function(r){return kC(r.range)},polygon:function(r){for(var t,e=r.range,a=0,n=e.length;a<n;a++){t=t||[[1/0,-1/0],[1/0,-1/0]];var i=e[a];i[0]<t[0][0]&&(t[0][0]=i[0]),i[0]>t[0][1]&&(t[0][1]=i[0]),i[1]<t[1][0]&&(t[1][0]=i[1]),i[1]>t[1][1]&&(t[1][1]=i[1])}return t&&kC(t)}};function kC(r){return new vt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Dj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a,this.model,(this._brushController=new n_(a.getZr())).on("brush",j(this._onBrush,this)).mount()},t.prototype.render=function(e,a,n,i){this.model=e,this._updateController(e,a,n,i)},t.prototype.updateTransform=function(e,a,n,i){sR(a),this._updateController(e,a,n,i)},t.prototype.updateVisual=function(e,a,n,i){this.updateTransform(e,a,n,i)},t.prototype.updateView=function(e,a,n,i){this._updateController(e,a,n,i)},t.prototype._updateController=function(e,a,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:nt(n),$from:a}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:nt(n),$from:a})},t.type="brush",t}(Qt);const Lj=Dj;var Ij=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&oR(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=Y(e,function(a){return RC(this.option,a)},this))},t.prototype.setBrushOption=function(e){this.brushOption=RC(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:z.color.backgroundTint,borderColor:z.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:z.color.disabled},t}(It);function RC(r,t){return mt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Rt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},t,!0)}const Pj=Ij;var kj=["rect","polygon","lineX","lineY","keep","clear"],Rj=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,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(e.get("type",!0),function(l){e.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(e,a,n){this.render(e,a,n)},t.prototype.getIcons=function(){var e=this.model,a=e.get("icon",!0),n={};return A(e.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},t.prototype.onclick=function(e,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(e){var a={show:!0,type:kj.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:e.getLocaleModel().get(["toolbox","brush","title"])};return a},t}(Ir);const Ej=Rj;function Oj(r){r.registerComponentView(Lj),r.registerComponentModel(Pj),r.registerPreprocessor(mj),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,wj),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,e){e.eachComponent({mainType:"brush",query:t},function(a){a.setAreas(t.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},oe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},oe),rs("brush",Ej)}var Nj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:z.size.m,backgroundColor:z.color.transparent,borderColor:z.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:z.color.primary},subtextStyle:{fontSize:12,color:z.color.quaternary}},t}(It),Bj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=rt(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Pt({style:$t(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=e.get("subtext"),h=new Pt({style:$t(s,{text:c,fill:s.getTextColor(),y:v.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){qv(d,"_"+e.get("target"))}),p&&h.on("click",function(){qv(p,"_"+e.get("subtarget"))}),ht(f).eventData=ht(h).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=xe(e,n),S=qt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(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=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var T=new bt({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:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(Qt);function zj(r){r.registerComponentModel(Nj),r.registerComponentView(Bj)}var Vj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var a=this._data.count();this.option.loop?e=(e%a+a)%a:(e>=a&&(e=a-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,a=e.data||[],n=e.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var v=ye(ks(u),""),c;ut(u)?(c=nt(u),c.value=f):c=f,o.push(c),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new je([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:z.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:z.color.secondary},data:[]},t}(It);const EC=Vj;var lR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=jn(EC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:z.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:z.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:z.color.tertiary},itemStyle:{color:z.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:z.color.accent50,borderColor:z.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:z.color.accent50,borderColor:z.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:z.color.accent60},itemStyle:{color:z.color.accent60,borderColor:z.color.accent60},controlStyle:{color:z.color.accent70,borderColor:z.color.accent70}},progress:{lineStyle:{color:z.color.accent30},itemStyle:{color:z.color.accent40}},data:[]}),t}(EC);pe(lR,uh.prototype);const Gj=lR;var Fj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Qt);const Hj=Fj;var Wj=function(r){N(t,r);function t(e,a,n,i){var o=r.call(this,e,a,n)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(ea);const $j=Wj;var Hp=Math.PI,OC=wt(),Uj=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){this.api=a},t.prototype.render=function(e,a,n){if(this.model=e,this.api=n,this.ecModel=a,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return he("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,e)},this),this._renderAxisLabel(i,s,l,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,a){var n=e.get(["label","position"]),i=e.get("orient"),o=Zj(e,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":K(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Hp/2},v=i==="vertical"?o.height:o.width,c=e.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,g=d+p,y=e.get(["label","rotate"])||0;y=y*Hp/180;var m,_,S,x=c.get("position",!0),b=h&&c.get("showPlayBtn",!0),w=h&&c.get("showPrevBtn",!0),T=h&&c.get("showNextBtn",!0),C=0,M=v;x==="left"||x==="bottom"?(b&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(b&&(m=[M-d,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-d,0],M-=g));var D=[C,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},t.prototype._position=function(e,a){var n=this._mainGroup,i=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Ie(),l=o.x,u=o.y+o.height;Aa(s,s,[-l,-u]),Xn(s,s,-Hp/2),Aa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=e.labelPosOpt;if(p==null||K(p)){var g=p==="+"?0:1;_(h,v,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(h,v,f,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=e.rotation,y(n),y(i);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,T){S[w]+=b[w][T]-x[w][T]}},t.prototype._createAxis=function(e,a){var n=a.getData(),i=a.get("axisType"),o=Yj(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new $j("value",o,e.axisExtent,i);return l.model=a,l},t.prototype._createGroup=function(e){var a=this[e]=new it;return this.group.add(a),a},t.prototype._renderAxisLine=function(e,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new me({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new me({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:lt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},t.prototype._renderAxisTick=function(e,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"]),d=v.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:j(o._changeTimeline,o,u.value)},g=NC(v,c,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),qi(g);var y=ht(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var v=f.tickValue,c=l.getItemModel(v),h=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Pt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:j(o._changeTimeline,o,v),silent:!1,style:$t(h,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=$t(d),y.ensureState("progress").style=$t(p),a.add(y),qi(y),OC(y).dataIndex=v,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,a,n,i){var o=e.controlSize,s=e.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);c(e.nextBtnPosition,"next",j(this._changeTimeline,this,v?"-":"+")),c(e.prevBtnPosition,"prev",j(this._changeTimeline,this,v?"+":"-")),c(e.playPosition,f?"stop":"play",j(this._handlePlayClick,this,!f),!0);function c(h,d,p,g){if(h){var y=jr(rt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Xj(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),qi(_)}}},t.prototype._renderCurrentPointer=function(e,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=j(u._handlePointerDrag,u),v.ondragend=j(u._handlePointerDragend,u),BC(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){BC(v,u._progressLine,s,n,i)}};this._currentPointer=NC(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,a){var n=this._toAxisCoord(e)[0],i=this._axis,o=Er(i.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)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var a=e.model;e._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var a=this._mainGroup.getLocalTransform();return Zr(e,a,!0)},t.prototype._findNearestTick=function(e){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<n&&(n=f,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var a=this.model.getCurrentIndex();e==="+"?e=a+1:e==="-"&&(e=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=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<e);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",OC(n[i]).dataIndex<=e)},t.type="timeline.slider",t}(Hj);function Yj(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new yu({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new WI({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Hn}}function Zj(r,t){return qt(r.getBoxLayoutParams(),xe(r,t).refContainer,r.get("padding"))}function Xj(r,t,e,a){var n=a.style,i=Ru(r.get(["controlStyle",t]),a||{},new vt(e[0],e[1],e[2],e[3]));return n&&i.setStyle(n),i}function NC(r,t,e,a,n,i){var o=t.get("color");if(n)n.setColor(o),e.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=de(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),i&&i.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),a=mt({rectHover:!0,z2:100},a,!0);var u=Hs(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 BC(r,t,e,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",e));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.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),t&&t.animateTo({shape:{x2:s}},l)}}}const qj=Uj;function Kj(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,a){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),lt({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var a=e.getComponent("timeline");a&&t.playState!=null&&a.setPlayState(t.playState)})}function jj(r){var t=r&&r.timeline;U(t)||(t=t?[t]:[]),A(t,function(e){e&&Jj(e)})}function Jj(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),zC(r),Ei(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Ei(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Ei(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(n){ut(n)&&!U(n)&&(!Ei(n,"value")&&Ei(n,"name")&&(n.value=n.name),zC(n))})}function zC(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};A(a,function(o,s){!i[s]&&!Ei(n,s)&&(n[s]=o)}),e.label&&!Ei(a,"emphasis")&&(a.emphasis=e.label,delete e.label)}function Ei(r,t){return r.hasOwnProperty(t)}function Qj(r){r.registerComponentModel(Gj),r.registerComponentView(qj),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Kj(r),r.registerPreprocessor(jj)}function P_(r,t){if(!r)return!1;for(var e=U(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function tv(r){eo(r,"label",["show"])}var ev=wt(),uR=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Et.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=ev(s)[o];if(!l||!l.data){ev(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&tv(l),A(l.data,function(f){f instanceof Array?(tv(f[0]),tv(f[1])):tv(f)}),u=this.createMarkerModelFromSeries(l,this,a),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ev(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.getRawValue(e),s=i.getName(e);return he("section",{header:this.name,blocks:[he("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var n=uh.prototype.getDataParams.call(this,e,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},t.getMarkerModelFromSeries=function(e,a){return ev(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(It);pe(uR,uh.prototype);const an=uR;var tJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(an);const eJ=tJ;function am(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function rJ(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function rv(r,t,e,a,n,i,o){var s=[],l=Fn(t,n),u=l?t.getCalculationInfo("stackResultDimension"):n,f=Lc(t,u,r),v=t.hostModel,c=v.indicesOfNearest(e,u,f)[0];s[i]=t.get(a,c),s[o]=t.get(u,c);var h=t.get(n,c),d=ga(t.get(n,c));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var av={min:gt(rv,"min"),max:gt(rv,"max"),average:gt(rv,"average"),median:gt(rv,"median")};function Du(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!rJ(t)&&!U(t.coord)&&U(n)){var i=fR(t,e,a,r);if(t=nt(t),t.type&&av[t.type]&&i.baseAxis&&i.valueAxis){var o=yt(n,i.baseAxis.dim),s=yt(n,i.valueAxis.dim),l=av[t.type](e,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(n)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&av[t.type]){var f=a.getOtherAxis(u);f&&(t.value=Lc(e,e.mapDimension(f.dim),t.type))}}else for(var v=t.coord,c=0;c<2;c++)av[v[c]]&&(v[c]=Lc(e,e.mapDimension(n[c]),v[c]));return t}}function fR(r,t,e,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,n.valueAxis=e.getAxis(aJ(a,n.valueDataDim)),n.baseAxis=e.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=e.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function aJ(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Lu(r,t){return r&&r.containData&&t.coord&&!am(t)?r.containData(t.coord):!0}function nJ(r,t,e){return r&&r.containZone&&t.coord&&e.coord&&!am(t)&&!am(e)?r.containZone(t.coord,e.coord):!0}function vR(r,t){return r?function(e,a,n,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Bn(o,t[i])}:function(e,a,n,i){return Bn(e.value,t[i])}}function Lc(r,t,e){if(e==="average"){var a=0,n=0;return r.each(t,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Wp=wt(),iJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=et()},t.prototype.render=function(e,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Wp(s).keep=!1}),a.eachSeries(function(s){var l=an.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Wp(s).keep&&i.group.remove(s.group)}),oJ(a,o,this.type)},t.prototype.markKeep=function(e){Wp(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var n=this;A(e,function(i){var o=an.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?sD(l):Bm(l))})}})},t.type="marker",t}(Qt);function oJ(r,t,e){r.eachSeries(function(a){var n=an.getMarkerModelFromSeries(a,e),i=t.get(a.id);if(n&&i&&i.group){var o=oo(n),s=o.z,l=o.zlevel;nh(i.group,s,l)}})}const k_=iJ;function VC(r,t,e){var a=t.coordinateSystem,n=e.getWidth(),i=e.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",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,p=q(l.get("x"),f)+c,g=q(l.get("y"),v)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(t.getMarkerPosition)d=t.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);d=a.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var sJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markPoint");o&&(VC(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Fu),v=lJ(o,e,a);a.setData(v),VC(a.getData(),e,i),v.each(function(c){var h=v.getItemModel(c),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(at(d)||at(p)||at(g)||at(y)){var _=a.getRawValue(c),S=a.getDataParams(c);at(d)&&(d=d(_,S)),at(p)&&(p=p(_,S)),at(g)&&(g=g(_,S)),at(y)&&(y=y(_,S))}var x=h.getModel("itemStyle").getItemStyle(),b=h.get("z2"),w=Bu(l,"color");x.fill||(x.fill=w),v.setItemVisual(c,{z2:rt(b,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){ht(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markPoint",t}(k_);function lJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return H(H({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new je(a,e),i=Y(e.get("data"),gt(Du,t));r&&(i=Bt(i,gt(Lu,r)));var o=vR(!!r,a);return n.initData(i,null,o),n}const uJ=sJ;function fJ(r){r.registerComponentModel(eJ),r.registerComponentView(uJ),r.registerPreprocessor(function(t){P_(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var vJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markLine",t.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"},t}(an);const cJ=vJ;var nv=wt(),hJ=function(r,t,e,a){var n=r.getData(),i;if(U(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=Oe(a.yAxis,a.xAxis);else{var u=fR(a,n,t,r);s=u.valueAxis;var f=LI(n,u.valueDataDim);l=Lc(n,f,o)}var v=s.dim==="x"?0:1,c=1-v,h=nt(a),d={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,d.coord[c]=1/0;var p=e.get("precision");p>=0&&Lt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[v]=d.coord[v]=l,i=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Du(r,i[0]),Du(r,i[1]),H({},i[2])];return g[2].type=g[2].type||null,mt(g[2],g[0]),mt(g[2],g[1]),g};function Ic(r){return!isNaN(r)&&!isFinite(r)}function GC(r,t,e,a){var n=1-r,i=a.dimensions[r];return Ic(t[n])&&Ic(e[n])&&t[r]===e[r]&&a.getAxis(i).containData(t[r])}function dJ(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(GC(1,e,a,r)||GC(0,e,a,r)))return!0}return Lu(r,t[0])&&Lu(r,t[1])}function $p(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=q(o.get("x"),n.getWidth()),u=q(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var f=i.dimensions,v=r.get(f[0],t),c=r.get(f[1],t);s=i.dataToPoint([v,c])}if(Wn(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Ic(r.get(f[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Ic(r.get(f[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var pJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=nv(o).from,u=nv(o).to;l.each(function(f){$p(l,f,!0,i,n),$p(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)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new j0);this.group.add(f.group);var v=gJ(o,e,a),c=v.from,h=v.to,d=v.line;nv(a).from=c,nv(a).to=h,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),d.each(function(S){var x=d.getItemModel(S),b=x.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var w=x.get("z2");b.stroke==null&&(b.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:rt(w,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol: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(d),v.line.eachItemGraphicEl(function(S){ht(S).dataModel=a,S.traverse(function(x){ht(x).dataModel=a})});function _(S,x,b){var w=S.getItemModel(x);$p(S,x,b,e,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Bu(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:rt(w.get("symbolOffset",!0),m[b?0:1]),symbolRotate:rt(w.get("symbolRotate",!0),y[b?0:1]),symbolSize:rt(w.get("symbolSize"),g[b?0:1]),symbol:rt(w.get("symbol",!0),p[b?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t}(k_);function gJ(r,t,e){var a;r?a=Y(r&&r.dimensions,function(u){var f=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new je(a,e),i=new je(a,e),o=new je([],e),s=Y(e.get("data"),gt(hJ,t,r,e));r&&(s=Bt(s,gt(dJ,r)));var l=vR(!!r,a);return n.initData(Y(s,function(u){return u[0]}),null,l),i.initData(Y(s,function(u){return u[1]}),null,l),o.initData(Y(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const yJ=pJ;function mJ(r){r.registerComponentModel(cJ),r.registerComponentView(yJ),r.registerPreprocessor(function(t){P_(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var _J=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,n){return new t(e,a,n)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(an);const SJ=_J;var iv=wt(),xJ=function(r,t,e,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Du(r,n),s=Du(r,i),l=o.coord,u=s.coord;l[0]=Oe(l[0],-1/0),l[1]=Oe(l[1],-1/0),u[0]=Oe(u[0],1/0),u[1]=Oe(u[1],1/0);var f=ym([{},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 Pc(r){return!isNaN(r)&&!isFinite(r)}function FC(r,t,e,a){var n=1-r;return Pc(t[n])&&Pc(e[n])}function bJ(r,t){var e=t.coord[0],a=t.coord[1],n={coord:e,x:t.x0,y:t.y0},i={coord:a,x:t.x1,y:t.y1};return Wn(r,"cartesian2d")?e&&a&&(FC(1,e,a)||FC(0,e,a))?!0:nJ(r,n,i):Lu(r,n)||Lu(r,i)}function HC(r,t,e,a,n){var i=a.coordinateSystem,o=r.getItemModel(t),s,l=q(o.get(e[0]),n.getWidth()),u=q(o.get(e[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],t),v=r.getValues(["x1","y1"],t),c=i.clampData(f),h=i.clampData(v),d=[];e[0]==="x0"?d[0]=c[0]>h[0]?v[0]:f[0]:d[0]=c[0]>h[0]?f[0]:v[0],e[1]==="y0"?d[1]=c[1]>h[1]?v[1]:f[1]:d[1]=c[1]>h[1]?f[1]:v[1],s=a.getMarkerPosition(d,e,!0)}else{var p=r.get(e[0],t),g=r.get(e[1],t),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Wn(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(e[0],t),g=r.get(e[1],t);Pc(p)?s[0]=m.toGlobalCoord(m.getExtent()[e[0]==="x0"?0:1]):Pc(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[e[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var WC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],wJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,n){a.eachSeries(function(i){var o=an.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Y(WC,function(v){return HC(s,l,v,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},t.prototype.renderSeries=function(e,a,n,i){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new it});this.group.add(f.group),this.markKeep(f);var v=TJ(o,e,a);a.setData(v),v.each(function(c){var h=Y(WC,function(M){return HC(v,c,M,e,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(v.get("x0",c)),d.parse(v.get("x1",c))],_=[p.parse(v.get("y0",c)),p.parse(v.get("y1",c))];Er(m),Er(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),x=!S;v.setItemLayout(c,{points:h,allClipped:x});var b=v.getItemModel(c),w=b.getModel("itemStyle").getItemStyle(),T=b.get("z2"),C=Bu(l,"color");w.fill||(w.fill=C,K(w.fill)&&(w.fill=Ov(w.fill,.4))),w.stroke||(w.stroke=C),v.setItemVisual(c,"style",w),v.setItemVisual(c,"z2",rt(T,0))}),v.diff(iv(f).data).add(function(c){var h=v.getItemLayout(c),d=v.getItemVisual(c,"z2");if(!h.allClipped){var p=new tr({z2:rt(d,0),shape:{points:h.points}});v.setItemGraphicEl(c,p),f.group.add(p)}}).update(function(c,h){var d=iv(f).data.getItemGraphicEl(h),p=v.getItemLayout(c),g=v.getItemVisual(c,"z2");p.allClipped?d&&f.group.remove(d):(d?kt(d,{z2:rt(g,0),shape:{points:p.points}},a,c):d=new tr({shape:{points:p.points}}),v.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var h=iv(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var d=v.getItemModel(h),p=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),Ce(c,Se(d),{labelFetcher:a,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:K(p.fill)?Ov(p.fill,1):z.color.neutral99}),_e(c,d),Xt(c,null,null,d.get(["emphasis","disabled"])),ht(c).dataModel=a}),iv(f).data=v,f.group.silent=a.get("silent")||e.get("silent")},t.type="markArea",t}(k_);function TJ(r,t,e){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Y(r&&r.dimensions,function(u){var f=t.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return H(H({},v),{name:u,ordinalMeta:null})});n=Y(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new je(n,e)}else n=[{name:"value",type:"float"}],a=new je(n,e);var s=Y(e.get("data"),gt(xJ,t,r,e));r&&(s=Bt(s,gt(bJ,r)));var l=r?function(u,f,v,c){var h=u.coord[Math.floor(c/2)][c%2];return Bn(h,n[c])}:function(u,f,v,c){return Bn(u.value,n[c])};return a.initData(s,null,l),a.hasItemOption=!0,a}const CJ=wJ;function AJ(r){r.registerComponentModel(SJ),r.registerComponentView(CJ),r.registerPreprocessor(function(t){P_(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var MJ=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},DJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),U(a)&&A(a,function(i,o){K(i)&&(i={type:i}),a[o]=mt(i,MJ(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,c=v.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(c)),c.length?a=a.concat(c):f=!0}else f=!0;f&&Dm(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=et(),s=Y(i,function(l){return(K(l)||Lt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Rt(l,this,this.ecModel))},this);this._data=Bt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;A(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&yt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:z.size.m,align:"auto",backgroundColor:z.color.transparent,borderColor:z.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:z.color.disabled,inactiveBorderColor:z.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:z.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:z.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:z.color.tertiary,borderWidth:1,borderColor:z.color.border},emphasis:{selectorLabel:{show:!0,color:z.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(It);const nm=DJ;var qo=gt,im=A,ov=it,LJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ov),this.group.add(this._selectorGroup=new ov),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var f=xe(e,n).refContainer,v=e.getBoxLayoutParams(),c=e.get("padding"),h=qt(v,f,c),d=this.layoutInner(e,o,h,i,l,u),p=qt(lt({width:d.width,height:d.height},v),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Qk(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=et(),v=a.get("selectedMode"),c=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),im(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
`)){var m=new ov;m.newline=!0,u.add(m);return}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"),T=this._createItem(_,y,p,d,a,e,x,w,b,v,i);T.on("click",qo($C,y,null,i,h)).on("mouseover",qo(om,_.name,null,i,h)).on("mouseout",qo(sm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=ht(C);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),c&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(C){var M=this;if(!f.get(y)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(y))return;var I=D.indexOfName(y),L=D.getItemVisual(I,"style"),P=D.getItemVisual(I,"legendIcon"),k=ir(L.fill);k&&k[3]===0&&(k[3]=.2,L=H(H({},L),{fill:ba(k,"rgba")}));var R=this._createItem(C,y,p,d,a,e,{},L,P,v,i);R.on("click",qo($C,null,y,i,h)).on("mouseover",qo(om,null,y,i,h)).on("mouseout",qo(sm,null,y,i,h)),n.ssr&&R.eachChild(function(O){var E=ht(O);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),c&&R.eachChild(function(O){M.packEventData(O,a,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};ht(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();im(e,function(u){var f=u.type,v=new Pt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v);var c=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Ce(v,{normal:c,emphasis:h},{defaultText:u.title}),qi(v)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,v,c){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=IJ(f,i,l,u,h,g,c),x=new ov,b=i.getModel("textStyle");if(at(e.getLegendIcon)&&(!_||_==="inherit"))x.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;x.add(PJ({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;K(M)&&M?D=M.replace("{name}",a??""):at(M)&&(D=M(a));var I=g?b.getTextColor():i.get("inactiveColor");x.add(new Pt({style:$t(b,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new bt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&on({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(k){k.silent=!0}),L.silent=!v,this.getContentGroup().add(x),qi(x),x.__legendDataIndex=n,x},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ji(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ji("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:v[p]+=c[g]+d,h[1-p]+=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]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-p]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Qt);function IJ(r,t,e,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),im(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:xs(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var c=t.getModel("lineStyle"),h=c.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function PJ(r){var t=r.icon||"roundRect",e=de(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=z.color.neutral00,e.style.lineWidth=2),e}function $C(r,t,e,a){sm(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),om(r,t,e,a)}function cR(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function om(r,t,e,a){cR(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function sm(r,t,e,a){cR(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}const hR=LJ;function kJ(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function bl(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),UC(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),UC(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function UC(r,t){var e=t||{};return A(r.getData(),function(a){var n=a.get("name");if(!(n===`
`||n==="")){var i=r.isSelected(n);Q(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function RJ(r){r.registerAction("legendToggleSelect","legendselectchanged",gt(bl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",gt(bl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",gt(bl,"inverseSelect")),r.registerAction("legendSelect","legendselected",gt(bl,"select")),r.registerAction("legendUnSelect","legendunselected",gt(bl,"unSelect"))}function dR(r){r.registerComponentModel(nm),r.registerComponentView(hR),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,kJ),r.registerSubTypeDefaulter("legend",function(){return"plain"}),RJ(r)}var EJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=go(e);r.prototype.init.call(this,e,a,n),YC(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),YC(this,this.option,e)},t.type="legend.scroll",t.defaultOption=jn(nm.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:z.color.accent50,pageIconInactiveColor:z.color.accent10,pageIconSize:15,pageTextStyle:{color:z.color.tertiary},animationDurationUpdate:800}),t}(nm);function YC(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,La(t,e,{type:"box",ignoreSize:!!n})}const OJ=EJ;var ZC=it,Up=["width","height"],Yp=["x","y"],NJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new ZC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new ZC)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var f=this._controllerGroup,v=a.get("pageIconSize",!0),c=U(v)?v:[v,v];d("pagePrev",0);var h=a.getModel("pageTextStyle");f.add(new Pt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Ru(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:j(u._pageGo,u,y,a,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Up[u],v=Yp[u],c=Up[1-u],h=Yp[1-u];o&&ji("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=nt(n);o&&(y[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(e,i,y,u,f,c,h,v);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[v]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;ji(e.get("orient"),f,e.get("itemGap"),i?n.width:null,i?null:n.height),ji("horizontal",c,e.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=rt(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var x={x:0,y:0};if(x[o]=p?n[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),v.__rectSize=n[o],p){var b={x:0,y:0};b[o]=Math.max(n[o]-d[o]-_,0),b[s]=x[s],v.setClipPath(new bt({shape:b})),v.__rectSize=b[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&kt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),x},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=a[v]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",K(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=Up[o],l=Yp[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!x(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!x(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(b){if(b){var w=b.getBoundingRect(),T=w[l]+b[l];return{s:T,e:T+w[s],i:b.__legendDataIndex}}}function x(b,w){return b.e>=w&&b.s<=w+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t}(hR);const BJ=NJ;function zJ(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function VJ(r){_t(dR),r.registerComponentModel(OJ),r.registerComponentView(BJ),zJ(r)}function GJ(r){_t(dR),_t(VJ)}var FJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=jn(Mu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Mu);const HJ=FJ;var R_=wt();function WJ(r,t,e){R_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function $J(r,t){for(var e=R_(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||pR(e,o))}}}function pR(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function UJ(r,t){var e={model:t,containsPoint:gt(ZJ,t),dispatchAction:gt(YJ,r),dataZoomInfoMap:null,controller:null},a=e.controller=new bo(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function YJ(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function ZJ(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function XJ(r,t,e){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function qJ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=R_(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=et());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Kk(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,UJ(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=et());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){pR(n,i);return}var f=XJ(l,i,e);o.enable(f.controlType,f.opt),Fs(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var KJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),WJ(n,e,{pan:j(Zp.pan,this),zoom:j(Zp.zoom,this),scrollMove:j(Zp.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$J(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(C_),Zp={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Xp[t](null,[a.originX,a.originY],o,e,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($n(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:XC(function(r,t,e,a,n,i){var o=Xp[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:XC(function(r,t,e,a,n,i){var o=Xp[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function XC(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if($n(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Xp={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const jJ=KJ;function gR(r){A_(r),r.registerComponentModel(HJ),r.registerComponentView(jJ),qJ(r)}var JJ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=jn(Mu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:z.color.accent10,borderRadius:0,backgroundColor:z.color.transparent,dataBackground:{lineStyle:{color:z.color.accent30,width:.5},areaStyle:{color:z.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:z.color.accent40,width:.5},areaStyle:{color:z.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:z.color.neutral00,borderColor:z.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:z.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:z.color.tertiary},brushSelect:!0,brushStyle:{color:z.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:z.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t}(Mu);const QJ=JJ;var wl=bt,tQ=1,qp=30,eQ=7,Tl="horizontal",qC="vertical",rQ=5,aQ=["line","bar","candlestick","scatter"],nQ={easing:"cubicOut",duration:100,delay:0},iQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=j(this._onBrush,this),this._onBrushEnd=j(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),Fs(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){cu(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?eQ:0,o=xe(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Tl?{right:o.width-s.x-s.width,top:o.height-qp-l-i,width:s.width,height:qp}:{right:l,top:s.y,width:qp,height:s.height},f=go(e.option);A(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=qt(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===qC&&this._size.reverse()},t.prototype._positionGroup=function(){var e=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===Tl&&!o?{scaleY:l?1:-1,scaleX:1}:n===Tl&&o?{scaleY:l?1:-1,scaleX:-1}:n===qC&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new wl({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new wl({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:j(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)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;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(e.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(v[1]-v[0]),S=e.thisAxis.type==="time",x=-m,b=Math.round(o.count()/a[0]),w;o.each([e.thisDim,l],function(I,L,P){if(b>0&&P%b){S||(x+=m);return}x=S?(+I-v[0])*_:x+m;var k=L==null||isNaN(L)||L==="",R=k?0:Nt(L,c,d,!0);k&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!k&&w&&(g.push([x,0]),y.push([x,0])),k||(g.push([x,R]),y.push([x,R])),w=k}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function C(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),P=new it,k=new tr({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Ue({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(k),P.add(R),P}for(var M=0;M<3;M++){var D=C(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&yt(aQ,u.get("type"))<0)){var f=i.getComponent(Pn(o),s).axis,v=oQ(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=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 wl({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new wl({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:tQ,fill:z.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!Jv[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=de(S,-1,0,2,2,null,!0);x.attr({cursor:sQ(this._orient),draggable:!0,drift:j(this._onDragMove,this,_),ondragend:j(this._onDragEnd,this),onmouseover:j(this._showDataInfo,this,!0),onmouseout:j(this._showDataInfo,this,!1),z2:5});var b=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=q(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(),qi(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(n[_]=x);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(i[_]=new Pt({silent:!0,invisible:!D,style:$t(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=c;if(v){var d=q(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new bt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=de(l.get("moveHandleIcon"),-g/2,-g/2,g,g,z.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new bt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:j(this._onDragMove,this,"all"),ondragstart:j(this._showDataInfo,this,!0),ondragend:j(this._onDragEnd,this),onmouseover:j(this._showDataInfo,this,!0),onmouseout:j(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Nt(e[0],[0,100],a,!0),Nt(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];$n(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Nt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Nt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Er([Nt(i[0],o,l,!0),Nt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=Er(n.slice()),o=this._size;A([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/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 bt,v.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,v=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(v[0],u),this._formatLabel(v[1],u)]}}var c=Er(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(d){var p=Ki(n.handles[d].parent,this.group),g=ah(d===0?"right":"left",p),y=this._handleWidth/2+rQ,m=Zr([c[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Tl?"middle":g,align:o===Tl?g:"center",text:s[d]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return at(i)?i(e,s):K(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||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)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,Ka(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Zr([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new st(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-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();$n(0,l,o,0,u.minSpan!=null?Nt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Nt(u.maxSpan,s,o,!0):null),this._range=Er([Nt(l[0],o,s,!0),Nt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Ka(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new wl({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,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]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?nQ:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=Kk(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(C_);function oQ(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function sQ(r){return r==="vertical"?"ns-resize":"ew-resize"}const lQ=iQ;function yR(r){r.registerComponentModel(QJ),r.registerComponentView(lQ),A_(r)}function uQ(r){_t(gR),_t(yR)}var fQ={get:function(r,t,e){var a=nt((vQ[r]||{})[t]);return e&&U(a)?a[a.length-1]:a}},vQ={color:{active:["#006edd","#e0ffff"],inactive:[z.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 mR=fQ;var KC=Ne.mapVisual,cQ=Ne.eachVisual,hQ=U,jC=A,dQ=Er,pQ=Nt,gQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&oR(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=j(e,this),this.controllerVisuals=em(this.option.controller,a,e),this.targetVisuals=em(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=Rs(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Y(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(e)&&(e=e.slice(),u=!0);var f=a?e:u?[v(e[0]),v(e[1])]:v(e);if(K(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(at(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=dQ([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});mt(i,n),mt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){hQ(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:e.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},jC(d,function(g,y){if(Ne.isValidType(y)){var m=mR.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";jC(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&nt(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&nt(h)||(s?m[0]:[m[0],m[0]])),_.symbol=KC(_.symbol,function(b){return b==="none"?g:b});var S=_.symbolSize;if(S!=null){var x=-1/0;cQ(S,function(b){b>x&&(x=b)}),_.symbolSize=KC(S,function(b){return pQ(b,[0,x],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.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:z.color.transparent,borderColor:z.color.borderTint,contentColor:z.color.theme[0],inactiveColor:z.color.disabled,borderWidth:0,padding:z.size.m,textGap:10,precision:0,textStyle:{color:z.color.secondary}},t}(It);const kc=gQ;var JC=[20,140],yQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=JC[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=JC[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=Er((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent(),i=rt(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=e)&&(i&&a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=QC(this,"outOfRange",this.getExtent()),n=QC(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:e(h,d)})}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(var 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;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=jn(kc.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:z.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:z.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:z.color.shadow}}),t}(kc);function QC(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}const mQ=yQ;var _Q=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Eu(a.get("padding")||0),i=e.getBoundingRect();e.add(new bt({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")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var v=o.controllerVisuals[i||o.getValueState(e)],c=Ne.prepareVisualTypes(v);return A(c,function(h){var d=v[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=v.__alphaForOpacity),Ne.dependsOn(h,a)&&d&&d.applyVisual(e,u,f)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api,i=xe(a,n).refContainer;sh(e,a.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t}(Qt);const _R=_Q;var tA=[["left","right","width"],["top","bottom","height"]];function SR(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=tA[o],l=[0,null,10],u={},f=0;f<3;f++)u[tA[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:a[s[f]];var v=[["x","width",3],["y","height",0]][o],c=qt(u,i,a.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+c[v[1]]*.5<i[v[1]]*.5?0:1]}function Dv(r,t){return A(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var fa=Nt,SQ=A,eA=Math.min,Kp=Math.max,xQ=12,bQ=6,wQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=j(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=j(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.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)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Pt({style:$t(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(c==="horizontal"?"middle":v),align:h.get("align")||(c==="horizontal"?v:"center"),text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=SR(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new it;u.add(f),f.add(n.outOfRange=rA()),f.add(n.inRange=rA(null,s?nA(this._orient):null,j(this._dragHandle,this,"all",!1),j(this._dragHandle,this,"all",!0))),f.setClipPath(new bt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("国"),c=Kp(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),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=j(this._dragHandle,this,n,!1),u=j(this._dragHandle,this,n,!0),f=jr(e.get("handleSize"),i[0]),v=de(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=nA(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Ka(y.event)}}),v.x=i[0]/2,v.useStyle(e.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),zi(v,!0),a.add(v);var h=this.visualMapModel.textStyleModel,d=new Pt({cursor:c,draggable:!0,drift:l,onmousemove:function(y){Ka(y.event)},ondragend:u,style:$t(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},t.prototype._createIndicator=function(e,a,n,i,o){var s=jr(e.get("indicatorSize"),n[0]),l=de(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Be){var f=l.style;l.useStyle(H({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,c=new Pt({silent:!0,invisible:!0,style:$t(v,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?i/2:bQ)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,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():aA(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[fa(a[0],n,i,!0),fa(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];$n(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[fa(i[0],o,s,!0),fa(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?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)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Os(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new it(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,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);SQ([0,1],function(v){var c=o[v];c.setStyle("fill",a.handlesColor[v]),c.y=e[v];var h=fa(e[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=Zr(n.handleLabelPoints[v],Ki(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,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 c={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",c),d=this.getControllerVisual(e,"symbolSize"),p=fa(e,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=Zr(f.indicatorLabelPoint,Ki(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),x=this._orient,b=x==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:b?S:"middle",align:b?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,C),_.animateTo(T,C)}else v.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=eA(Kp(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=eA(Kp(o[0],e),o[1]);var l=TQ(n,s,o),u=[e-l,e+l],f=fa(e,o,s,!0),v=[fa(u[0],o,s,!0),fa(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,"≈ ",l));var c=this._hoverLinkDataIndices,h=[];(a||aA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var d=UN(c,h);this._dispatchHighDown("downplay",Dv(d[0],n)),this._dispatchHighDown("highlight",Dv(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Fi(e.target,function(l){var u=ht(l);if(u.dataIndex!=null)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)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Dv(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=Ki(a,i?null:this.group);return U(e)?Zr(e,o,n):ah(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(_R);function rA(r,t,e,a){return new tr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){Ka(n.event)},ondragend:a})}function TQ(r,t,e){var a=xQ/2,n=r.get("hoverLinkDataSize");return n&&(a=fa(n,t,e,!0)/2),a}function aA(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function nA(r){return r==="vertical"?"ns-resize":"ew-resize"}const CQ=wQ;var AQ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},MQ=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},DQ=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(xj(a.stateList,a.targetVisuals,j(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(j(LQ,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function LQ(r,t,e,a){for(var n=t.targetVisuals[a],i=Ne.prepareVisualTypes(n),o={color:Bu(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,v,c)}return o.color;function v(h){return o[h]}function c(h,d){o[h]=d}}var iA=A;function IQ(r){var t=r&&r.visualMap;U(t)||(t=t?[t]:[]),iA(t,function(e){if(e){Ko(e,"splitList")&&!Ko(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&U(a)&&iA(a,function(n){ut(n)&&(Ko(n,"start")&&!Ko(n,"min")&&(n.min=n.start),Ko(n,"end")&&!Ko(n,"max")&&(n.max=n.end))})}})}function Ko(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var oA=!1;function xR(r){oA||(oA=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(AQ,MQ),A(DQ,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(IQ))}function bR(r){r.registerComponentModel(mQ),r.registerComponentView(CQ),xR(r)}var PQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],kQ[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=nt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Y(this._pieceList,function(l){return l=nt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=Ne.listVisualTypes(),i=this.isCategory();A(e.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(e,f,l)||o(e.target,f,l)},this),!u&&A(this.stateList,function(f){(e[f]||(e[f]={}))[l]=mR.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=nt(e)},t.prototype.getValueState=function(e){var a=Ne.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ne.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=e(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})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,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}},t.type="visualMap.piecewise",t.defaultOption=jn(kc.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}),t}(kc),kQ={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),T1(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;A(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),sA(t,r)},pieces:function(r){var t=this.option;A(t.pieces,function(e,a){ut(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.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&&o[v]==null;h++)o[v]=e[c[h]],s[v]=l[h],f[v]=h===2;o[v]==null&&(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=Ne.retrieveVisuals(e),r.push(n)},this),sA(t,r),T1(r),A(r,function(e){var a=e.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function sA(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}const RQ=PQ;var EQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.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=Oe(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),A(l.viewPieceList,function(c){var h=c.piece,d=new it;d.onclick=j(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Pt({style:$t(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:rt(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),ji(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.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:Dv(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return SR(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new Pt({style:$t(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=Y(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=de(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=nt(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(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})}},t.type="visualMap.piecewise",t}(_R);const OQ=EQ;function wR(r){r.registerComponentModel(RQ),r.registerComponentView(OQ),xR(r)}function NQ(r){_t(bR),_t(wR)}var BQ=function(){function r(t){this._thumbnailModel=t}return r.prototype.reset=function(t){this._renderVersion=t.getMainProcessVersion()},r.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:BD(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(t,e){var a=e.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},r}(),zQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.optionUpdated=function(e,a){this._updateBridge()},t.prototype._updateBridge=function(){var e=this._birdge=this._birdge||new BQ(this);if(this._target=null,this.ecModel.eachSeries(function(n){Pw(n,null)}),this.shouldShow()){var a=this.getTarget();Pw(a.baseMapProvider,e)}},t.prototype.shouldShow=function(){return this.getShallow("show",!0)},t.prototype.getBridge=function(){return this._birdge},t.prototype.getTarget=function(){if(this._target)return this._target;var e=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return e?e.subType!=="graph"&&(e=null):e=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:e},this._target},t.type="thumbnail",t.layoutMode="box",t.dependencies=["series","geo"],t.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:z.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:z.color.neutral30,borderColor:z.color.neutral40,opacity:.3},z:10},t}(It),VQ=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this._api=n,this._model=e,this._coordSys||(this._coordSys=new wo),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=e.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||z.color.neutral00);var l=xe(e,n).refContainer,u=qt(oL(e,!0),l),f=s.lineWidth||0,v=this._contentRect=io(u.clone(),f/2,!0,!0),c=new it;i.add(c),c.setClipPath(new bt({shape:v.plain()}));var h=this._targetGroup=new it;c.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new bt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=e.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.add(this._windowRect=new bt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),uA(e,this)},t.prototype.renderContent=function(e){this._bridgeRendered=e,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),uA(this._model,this))},t.prototype._dealRenderContent=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!e){var o=e.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=e.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=qt({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=e.z2Range.max+10,this._resetRoamController(e.roamType)}}},t.prototype.updateWindow=function(e){var a=this._bridgeRendered;a&&a.renderVersion===e.renderVersion&&(a.targetTrans=e.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},t.prototype._dealUpdateWindow=function(){var e=this._bridgeRendered;if(!(!e||e.renderVersion!==this._renderVersion)){var a=Kr([],e.targetTrans),n=xa([],this._coordSys.transform,a);this._transThisToTarget=Kr([],n);var i=e.viewportRect;i?i=i.clone():i=new vt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(lt({r:s},i))}},t.prototype._resetRoamController=function(e){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new bo(n.getZr())),!e||!this._isEnabled()){i.disable();return}i.enable(e,{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",j(this._onPan,this)).on("zoom",j(this._onZoom,this))},t.prototype._onPan=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=se([],[e.oldX,e.oldY],a),i=se([],[e.oldX-e.dx,e.oldY-e.dy],a);this._api.dispatchAction(lA(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},t.prototype._onZoom=function(e){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=se([],[e.originX,e.originY],a);this._api.dispatchAction(lA(this._model.getTarget().baseMapProvider,{zoom:1/e.scale,originX:n[0],originY:n[1]}))}},t.prototype._isEnabled=function(){var e=this._model;if(!e||!e.shouldShow())return!1;var a=e.getTarget().baseMapProvider;return!!a},t.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},t.prototype.remove=function(){this._clear()},t.prototype.dispose=function(){this._clear()},t.type="thumbnail",t}(Qt);function lA(r,t){var e=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:e};return a[r.mainType+"Id"]=r.id,H(a,t),a}function uA(r,t){var e=oo(r);nh(t.group,e.z,e.zlevel)}function GQ(r){r.registerComponentModel(zQ),r.registerComponentView(VQ)}var FQ={label:{enabled:!0},decal:{show:!1}},fA=wt(),HQ={};function WQ(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var a=nt(FQ);mt(a.label,r.getLocaleModel().get("aria"),!1),mt(e.option,a,!1),n(),i();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var v=et();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=v.get(c.type);h||(h={},v.set(c.type,h)),fA(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(at(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var m=Kg(c.ecModel,c.name,HQ,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=c.getRawData(),p={},g=fA(c).scope;h.each(function(x){var b=h.getRawIndex(x);p[b]=x});var y=d.count();d.each(function(x){var b=p[x],w=d.getName(x)||x+"",T=Kg(c.ecModel,w,g,y),C=h.getItemVisual(b,"decal");h.setItemVisual(b,"decal",S(C,T))})}function S(x,b){var w=x?H(H({},b),x):b;return w.dirty=!0,w}})}}function i(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),v=e.getModel("label");if(v.option=lt(v.option,f),!!v.get("enabled")){if(u.setAttribute("role","img"),v.get("description")){u.setAttribute("aria-label",v.get("description"));return}var c=r.getSeriesCount(),h=v.get(["data","maxCount"])||10,d=v.get(["series","maxCount"])||10,p=Math.min(c,d),g;if(!(c<1)){var y=s();if(y){var m=v.get(["general","withTitle"]);g=o(m,{title:y})}else g=v.get(["general","withoutTitle"]);var _=[],S=c>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(T,C){if(C<p){var M=void 0,D=T.get("name"),I=D?"withName":"withoutName";M=c>1?v.get(["series","multiple",I]):v.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var P=v.get(["data","partialData"]);M+=o(P,{displayCnt:h})}else M+=v.get(["data","allData"]);for(var k=v.get(["data","separator","middle"]),R=v.get(["data","separator","end"]),O=v.get(["data","excludeDimensionId"]),E=[],B=0;B<L.count();B++)if(B<h){var G=L.getName(B),F=O?Bt(L.getValues(B),function(X,J){return yt(O,J)===-1}):L.getValues(B),W=v.get(["data",G?"withName":"withoutName"]);E.push(o(W,{name:G,value:F.join(k)}))}M+=E.join(k)+R,_.push(M)}});var x=v.getModel(["series","multiple","separator"]),b=x.get("middle"),w=x.get("end");g+=_.join(b)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!K(u))return u;var v=u;return A(f,function(c,h){v=v.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),c)}),v}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function $Q(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},A(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function UQ(r){r.registerPreprocessor($Q),r.registerVisual(r.PRIORITY.VISUAL.ARIA,WQ)}var vA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},YQ=function(){function r(t){var e=this._condVal=K(t)?new RegExp(t):ZE(t)?t:null;if(e==null){var a="";Ot(a)}}return r.prototype.evaluate=function(t){var e=typeof t;return K(e)?this._condVal.test(t):Lt(e)?this._condVal.test(t+""):!1},r}(),ZQ=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),XQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r}(),qQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r}(),KQ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),jQ=function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,a=e(this.valueGetterParam),n=t?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:a))return!1;return!0},r}();function E_(r,t){if(r===!0||r===!1){var e=new ZQ;return e.value=r,e}var a="";return TR(r)||Ot(a),r.and?cA("and",r,t):r.or?cA("or",r,t):r.not?JQ(r,t):QQ(r,t)}function cA(r,t,e){var a=t[r],n="";U(a)||Ot(n),a.length||Ot(n);var i=r==="and"?new XQ:new qQ;return i.children=Y(a,function(o){return E_(o,e)}),i.children.length||Ot(n),i}function JQ(r,t){var e=r.not,a="";TR(e)||Ot(a);var n=new KQ;return n.child=E_(e,t),n.child||Ot(a),n}function QQ(r,t){for(var e="",a=t.prepareGetValue(r),n=[],i=Mt(r),o=r.parser,s=o?IL(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var f=Q(vA,u)?vA[u]:u,v=r[u],c=s?s(v):v,h=_5(f,c)||f==="reg"&&new YQ(c);h||Ot(e),n.push(h)}}n.length||Ot(e);var d=new jQ;return d.valueGetterParam=a,d.valueParser=s,d.getValue=t.getValue,d.subCondList=n,d}function TR(r){return ut(r)&&!We(r)}var ttt=function(){function r(t,e){this._cond=E_(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function ett(r,t){return new ttt(r,t)}var rtt={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,a=ett(r.config,{valueGetterAttrMap:et({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Q(s,"dimension")||Ot(l);var f=t.getDimensionInfo(u);return f||Ot(l),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),n=[],i=0,o=t.count();i<o;i++)e=t.getRawDataItem(i),a.evaluate()&&n.push(e);return{data:n}}},att={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,a="",n=Ht(e);n.length||Ot(a);var i=[];A(n,function(f){var v=f.dimension,c=f.order,h=f.parser,d=f.incomparable;if(v==null&&Ot(a),c!=="asc"&&c!=="desc"&&Ot(a),d&&d!=="min"&&d!=="max"){var p="";Ot(p)}if(c!=="asc"&&c!=="desc"){var g="";Ot(g)}var y=t.getDimensionInfo(v);y||Ot(a);var m=h?IL(h):null;h&&!m&&Ot(a),i.push({dimIdx:y.index,parser:m,comparator:new kL(c,d)})});var o=t.sourceFormat;o!==Pe&&o!==_r&&Ot(a);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],d=t.retrieveValueFromItem(f,h.dimIdx),p=t.retrieveValueFromItem(v,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function ntt(r){r.registerTransform(rtt),r.registerTransform(att)}var itt=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new NL(this),GS(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),GS(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Xr},t}(It),ott=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t}(Qt);function stt(r){r.registerComponentModel(itt),r.registerComponentView(ott)}var la=Da.CMD;function us(r,t){return Math.abs(r-t)<1e-5}function lm(r){var t=r.data,e=r.len(),a=[],n,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,k,R){us(L,k)&&us(P,R)||n.push(L,P,k,R,k,R)}function v(L,P,k,R,O,E){var B=Math.abs(P-L),G=Math.tan(B/4)*4/3,F=P<L?-1:1,W=Math.cos(L),X=Math.sin(L),J=Math.cos(P),ft=Math.sin(P),Dt=W*O+k,zt=X*E+R,ct=J*O+k,V=ft*E+R,$=O*G*F,Z=E*G*F;n.push(Dt-$*X,zt+Z*W,ct+$*ft,V-Z*J,ct,V)}for(var c,h,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(i=t[g],o=t[g+1],s=i,l=o,(y===la.L||y===la.C||y===la.Q)&&(n=[s,l])),y){case la.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case la.L:c=t[g++],h=t[g++],f(i,o,c,h),i=c,o=h;break;case la.C:n.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case la.Q:c=t[g++],h=t[g++],d=t[g++],p=t[g++],n.push(i+2/3*(c-i),o+2/3*(h-o),d+2/3*(c-d),p+2/3*(h-p),d,p),i=d,o=p;break;case la.A:var _=t[g++],S=t[g++],x=t[g++],b=t[g++],w=t[g++],T=t[g++]+w;g+=1;var C=!t[g++];c=Math.cos(w)*x+_,h=Math.sin(w)*b+S,m?(s=c,l=h,u(s,l)):f(i,o,c,h),i=Math.cos(T)*x+_,o=Math.sin(T)*b+S;for(var M=(C?-1:1)*Math.PI/2,D=w;C?D>T:D<T;D+=M){var I=C?Math.max(D+M,T):Math.min(D+M,T);v(D,I,_,S,x,b)}break;case la.R:s=i=t[g++],l=o=t[g++],c=s+t[g++],h=l+t[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 la.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function um(r,t,e,a,n,i,o,s,l,u){if(us(r,e)&&us(t,a)&&us(n,o)&&us(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-t,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=e-r,g=a-t,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var x=c*p+h*g,b=-c*y-h*m,w=_-x*x,T=S-b*b;if(w<v&&x>=0&&T<v&&b>=0){l.push(o,s);return}var C=[],M=[];Vn(r,e,n,o,.5,C),Vn(t,a,i,s,.5,M),um(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),um(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function ltt(r,t){var e=lm(r),a=[];t=t||1;for(var n=0;n<e.length;n++){var i=e[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++],d=i[u++],p=i[u++];um(s,l,f,v,c,h,d,p,o,t),s=d,l=p}a.push(o)}return a}function CR(r,t,e){var a=r[t],n=r[1-t],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,v=e-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function hA(r,t,e){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),v=CR([l,u],f?0:1,t),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var d=(f?u:s)/v[h],p=0;p<v[h];p++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(h+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=a+c*h,g.r=a+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function utt(r,t,e){for(var a=r.width,n=r.height,i=a>n,o=CR([a,n],i?0:1,t),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],d=0;d<o[c];d++){var p={};p[u]=c*v,p[f]=d*h,p[s]=v,p[l]=h,p.x+=r.x,p.y+=r.y,e.push(p)}}function dA(r,t,e,a){return r*a-e*t}function ftt(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,v=s-i,c=dA(f,v,l,u);if(Math.abs(c)<1e-6)return null;var h=r-n,d=t-i,p=dA(h,d,f,v)/c;return p<0||p>1?null:new st(p*l+r,p*u+t)}function vtt(r,t,e){var a=new st;st.sub(a,e,t),a.normalize();var n=new st;st.sub(n,r,t);var i=n.dot(a);return i}function jo(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function ctt(r,t,e){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=ftt(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);l&&n.push({projPt:vtt(l,t,e),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}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[c],p=[h],i=u.idx+1;i<=f.idx;i++)jo(d,r[i].slice());jo(d,h),jo(d,c);for(var i=f.idx+1;i<=u.idx+a;i++)jo(p,r[i%a].slice());return jo(p,c),jo(p,h),[{points:d},{points:p}]}function pA(r){var t=r.points,e=[],a=[];qc(t,e,a);var n=new vt(e[0],e[1],a[0]-e[0],a[1]-e[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new st,f=new st;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),ctt(t,u,f)}function Rc(r,t,e,a){if(e===1)a.push(t);else{var n=Math.floor(e/2),i=r(t);Rc(r,i[0],n,a),Rc(r,i[1],e-n,a)}return a}function htt(r,t){for(var e=[],a=0;a<t;a++)e.push(Vm(r));return e}function dtt(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function ptt(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function gtt(r,t){var e=[],a=r.shape,n;switch(r.type){case"rect":utt(a,t,e),n=bt;break;case"sector":hA(a,t,e),n=Qe;break;case"circle":hA({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},t,e),n=Qe;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=Y(ltt(r.getUpdatedPathProxy(),o),function(y){return ptt(y)}),l=s.length;if(l===0)Rc(pA,{points:s[0]},t,e);else if(l===t)for(var u=0;u<l;u++)e.push({points:s[u]});else{var f=0,v=Y(s,function(y){var m=[],_=[];qc(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});for(var c=t,u=0;u<l;u++){var h=v[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(h.area/f*t);d<0||(Rc(pA,{points:h.poly},d,e),c-=d)}}n=tr;break}if(!n)return htt(r,t);for(var p=[],u=0;u<e.length;u++){var g=new n;g.setShape(e[u]),dtt(r,g),p.push(g)}return p}function ytt(r,t){var e=r.length,a=t.length;if(e===a)return[r,t];for(var n=[],i=[],o=e<a?r:t,s=Math.min(e,a),l=Math.abs(a-e)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],c=l,h=2;h<s;){var d=o[h-2],p=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);continue}for(var b=Math.min(c,f-1)+1,w=1;w<=b;w++){var T=w/b;Vn(d,g,m,S,T,n),Vn(p,y,_,x,T,i),d=n[3],p=i[3],v.push(n[1],i[1],n[2],i[2],d,p),g=n[5],y=i[5],m=n[6],_=i[6]}c-=b-1}return o===r?[v,t]:[r,v]}function gA(r,t){for(var e=r.length,a=r[e-2],n=r[e-1],i=[],o=0;o<t.length;)i[o++]=a,i[o++]=n;return i}function mtt(r,t){for(var e,a,n,i=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var l=r[s],u=t[s],f=void 0,v=void 0;l?u?(e=ytt(l,u),f=e[0],v=e[1],a=f,n=v):(v=gA(n||l,l),f=l):(f=gA(a||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function yA(r){for(var t=0,e=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;t+=v,e+=(s+u)*v,a+=(l+f)*v}return t===0?[r[0]||0,r[1]||0]:[e/t/3,a/t/3,t]}function _tt(r,t,e,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=u*6,v=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,d=r[h]-e[0],p=r[h+1]-e[1],g=t[c]-a[0],y=t[c+1]-a[1],m=g-d,_=y-p;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function Stt(r){for(var t=[],e=r.length,a=0;a<e;a+=2)t[a]=r[e-a-2],t[a+1]=r[e-a-1];return t}function xtt(r,t,e,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=t[o],u=yA(s),f=yA(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,d=1/0,p=[],g=s.length;i&&(s=Stt(s));for(var y=_tt(s,l,u,f)*6,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],e>0)for(var x=a/e,b=-a/2;b<=a/2;b+=x){for(var w=Math.sin(b),T=Math.cos(b),C=0,_=0;_<s.length;_+=2){var M=v[_],D=v[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,k=I*w+L*T;p[_]=P,p[_+1]=k;var R=P-M,O=k-D;C+=R*R+O*O}if(C<d){d=C,h=b;for(var E=0;E<p.length;E++)c[E]=p[E]}}else for(var B=0;B<g;B+=2)c[B]=l[B]-f[0],c[B+1]=l[B+1]-f[1];n.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return n}function Ec(r){return r.__isCombineMorphing}var AR="__mOriginal_";function Oc(r,t,e){var a=AR+t,n=r[a]||r[t];r[a]||(r[a]=r[t]);var i=e.replace,o=e.after,s=e.before;r[t]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function jl(r,t){var e=AR+t;r[e]&&(r[t]=r[e],r[e]=null)}function mA(r,t){for(var e=0;e<r.length;e++)for(var a=r[e],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=t[0]*i+t[2]*o+t[4],a[n++]=t[1]*i+t[3]*o+t[5]}}function MR(r,t){var e=r.getUpdatedPathProxy(),a=t.getUpdatedPathProxy(),n=mtt(lm(e),lm(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&mA(i,s),l&&mA(o,l),Oc(t,"updateTransform",{replace:u}),t.transform=null;var f=xtt(i,o,10,Math.PI),v=[];Oc(t,"buildPath",{replace:function(c){for(var h=t.__morphT,d=1-h,p=[],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),T=Math.cos(S);uv(p,x,b,h);for(var C=0;C<m.length;C+=2){var M=m[C],D=m[C+1],I=_[C],L=_[C+1],P=M*d+I*h,k=D*d+L*h;v[C]=P*T-k*w+p[0],v[C+1]=P*w+k*T+p[1]}var R=v[0],O=v[1];c.moveTo(R,O);for(var C=2;C<m.length;){var I=v[C++],L=v[C++],E=v[C++],B=v[C++],G=v[C++],F=v[C++];R===I&&O===L&&E===G&&B===F?c.lineTo(G,F):c.bezierCurveTo(I,L,E,B,G,F),R=G,O=F}}}})}function O_(r,t,e){if(!r||!t)return t;var a=e.done,n=e.during;MR(r,t),t.__morphT=0;function i(){jl(t,"buildPath"),jl(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},lt({during:function(o){t.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},e)),t}function btt(r,t,e,a,n,i){var o=16;r=n===e?0:Math.round(32767*(r-e)/(n-e)),t=i===a?0:Math.round(32767*(t-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(t&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,t=u-1-t),l=r,r=t,t=l)}return s}function Nc(r){var t=1/0,e=1/0,a=-1/0,n=-1/0,i=Y(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return t=Math.min(f,t),e=Math.min(v,e),a=Math.max(f,a),n=Math.max(v,n),[f,v]}),o=Y(i,function(s,l){return{cp:s,z:btt(s[0],s[1],t,e,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function DR(r){return gtt(r.path,r.count)}function fm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function wtt(r,t,e){var a=[];function n(x){for(var b=0;b<x.length;b++){var w=x[b];Ec(w)?n(w.childrenRef()):w instanceof Ct&&a.push(w)}}n(r);var i=a.length;if(!i)return fm();var o=e.dividePath||DR,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),fm();a=Nc(a),s=Nc(s);for(var l=e.done,u=e.during,f=e.individualDelay,v=new Ha,c=0;c<i;c++){var h=a[c],d=s[c];d.parent=t,d.copyTransform(v),f||MR(h,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var b=0;b<s.length;b++)s[b].addSelfToZr(x)}Oc(t,"addSelfToZr",{after:function(x){p(x)}}),Oc(t,"removeSelfFromZr",{after:function(x){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,jl(t,"addSelfToZr"),jl(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?lt({delay:(e.delay||0)+f(c,y,a[c],s[c]),done:_},e):e;O_(a[c],s[c],S)}else t.__morphT=0,t.animateTo({__morphT:1},lt({during:function(x){for(var b=0;b<y;b++){var w=s[b];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<r.length;x++)jl(r[x],"updateTransform");l&&l()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function Ttt(r,t,e){var a=t.length,n=[],i=e.dividePath||DR;function o(h){for(var d=0;d<h.length;d++){var p=h[d];Ec(p)?o(p.childrenRef()):p instanceof Ct&&n.push(p)}}if(Ec(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(Vm(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),fm()}n=Nc(n),t=Nc(t);for(var v=e.individualDelay,u=0;u<a;u++){var c=v?lt({delay:(e.delay||0)+v(u,a,n[u],t[u])},e):e;O_(n[u],t[u],c)}return{fromIndividuals:n,toIndividuals:t,count:t.length}}function _A(r){return U(r[0])}function SA(r,t){for(var e=[],a=r.length,n=0;n<a;n++)e.push({one:r[n],many:[]});for(var n=0;n<t.length;n++){var i=t[n].length,o=void 0;for(o=0;o<i;o++)e[o%a].many.push(t[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!e[n].many.length){var l=e[s].many;if(l.length<=1)if(s)s=0;else return e;var i=l.length,u=Math.ceil(i/2);e[n].many=l.slice(u,i),e[s].many=l.slice(0,u),s++}return e}var Ctt={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=Vm(r.path);n.setStyle("opacity",e),t.push(n)}return t},split:null};function jp(r,t,e,a,n,i){if(!r.length||!t.length)return;var o=Ns("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;_A(r)&&(u=r,f=t),_A(t)&&(u=t,f=r);function v(y,m,_,S,x){var b=y.many,w=y.one;if(b.length===1&&!x){var T=m?b[0]:w,C=m?w:b[0];if(Ec(T))v({many:[T],one:C},!0,_,S,!0);else{var M=s?lt({delay:s(_,S)},l):l;O_(T,C,M),i(T,C,T,C,M)}}else for(var D=lt({dividePath:Ctt[e],individualDelay:s&&function(O,E,B,G){return s(O+_,S)}},l),I=m?wtt(b,w,D):Ttt(w,b,D),L=I.fromIndividuals,P=I.toIndividuals,k=L.length,R=0;R<k;R++){var M=s?lt({delay:s(R,k)},l):l;i(L[R],P[R],m?b[R]:y.one,m?y.one:b[R],M)}}for(var c=u?u===r:r.length>t.length,h=u?SA(f,u):SA(c?t:r,[c?r:t]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)v(h[p],c,g,d),g+=h[p].many.length}function Ii(r){if(!r)return[];if(U(r)){for(var t=[],e=0;e<r.length;e++)t.push(Ii(r[e]));return t}var a=[];return r.traverse(function(n){n instanceof Ct&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var LR=1e4,Att=0,xA=1,bA=2,Mtt=wt();function Dtt(r,t){for(var e=r.dimensions,a=0;a<e.length;a++){var n=r.getDimensionInfo(e[a]);if(n&&n.otherDims[t]===0)return e[a]}}function Ltt(r,t,e){var a=r.getDimensionInfo(e),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,t);return n&&n.categories[i]||i+""}}function wA(r,t,e,a){var n=a?"itemChildGroupId":"itemGroupId",i=Dtt(r,n);if(i){var o=Ltt(r,t,i);return o}var s=r.getRawDataItem(t),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return e||r.getId(t)}function TA(r){var t=[];return A(r,function(e){var a=e.data,n=e.dataGroupId;if(!(a.count()>LR))for(var i=a.getIndices(),o=0;o<i.length;o++)t.push({data:a,groupId:wA(a,o,n,!1),childGroupId:wA(a,o,n,!0),divide:e.divide,dataIndex:o})}),t}function Jp(r,t,e){r.traverse(function(a){a instanceof Ct&&Zt(a,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function Qp(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Jo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function Itt(r,t,e){var a=Ns("update",e,t);a&&r.traverse(function(n){if(n instanceof Nr){var i=Hz(n);i&&n.animateFrom({style:i},a)}})}function Ptt(r,t){var e=r.length;if(e!==t.length)return!1;for(var a=0;a<e;a++){var n=r[a],i=t[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function IR(r,t,e){var a=TA(r),n=TA(t);function i(_,S,x,b,w){(x||_)&&S.animateFrom({style:x&&x!==_?H(H({},x.style),_.style):_.style},w)}var o=!1,s=Att,l=et(),u=et();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var v=n[f].groupId;if(u.get(v)){s=xA;break}var c=n[f].childGroupId;if(c&&l.get(c)){s=bA;break}}function h(_,S){return function(x){var b=x.data,w=x.dataIndex;return S?b.getId(w):_?s===xA?x.childGroupId:x.groupId:s===bA?x.childGroupId:x.groupId}}var d=Ptt(a,n),p={};if(!d)for(var f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var x=a[S],b=n[_],w=b.data.hostModel,T=x.data.getItemGraphicEl(x.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(T===C){C&&Itt(C,b.dataIndex,w);return}T&&p[T.id]||C&&(Jo(C),T?(Jo(T),Qp(T),o=!0,jp(Ii(T),Ii(C),b.divide,w,_,i)):Jp(C,w,_))}new tn(a,n,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var x=n[_],b=x.data,w=b.hostModel,T=b.getItemGraphicEl(x.dataIndex),C=Bt(Y(S,function(M){return a[M].data.getItemGraphicEl(a[M].dataIndex)}),function(M){return M&&M!==T&&!p[M.id]});T&&(Jo(T),C.length?(A(C,function(M){Jo(M),Qp(M)}),o=!0,jp(Ii(C),Ii(T),x.divide,w,_,i)):Jp(T,w,x.dataIndex))}).updateOneToMany(function(_,S){var x=a[S],b=x.data.getItemGraphicEl(x.dataIndex);if(!(b&&p[b.id])){var w=Bt(Y(_,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==b}),T=n[_[0]].data.hostModel;w.length&&(A(w,function(C){return Jo(C)}),b?(Jo(b),Qp(b),o=!0,jp(Ii(b),Ii(w),x.divide,T,_[0],i)):A(w,function(C){return Jp(C,T,_[0])}))}}).updateManyToMany(function(_,S){new tn(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(t,function(_){var S=_.data,x=S.hostModel,b=x&&e.getViewOfSeriesModel(x),w=Ns("update",x,0);b&&x.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(T){T instanceof Ct&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function CA(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function AA(r){return U(r)?r.sort().join(","):r}function bn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ktt(r,t){var e=et(),a=et(),n=et();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=CA(i),f=AA(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&A(u,function(v){n.set(v,{key:f,dataGroupId:s,data:l})})}),A(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=CA(i),u=AA(l),f=a.get(u);if(f)e.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:bn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:bn(s),data:s}]});else if(U(l)){var v=[];A(l,function(d){var p=a.get(d);p.data&&v.push({dataGroupId:p.dataGroupId,divide:bn(p.data),data:p.data})}),v.length&&e.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:bn(s)}]})}else{var c=n.get(l);if(c){var h=e.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:bn(c.data)}],newSeries:[]},e.set(c.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:bn(s)})}}}}),e}function MA(r,t){for(var e=0;e<r.length;e++){var a=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(a)return e}}function Rtt(r,t,e,a){var n=[],i=[];A(Ht(r.from),function(o){var s=MA(t.oldSeries,o);s>=0&&n.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:bn(t.oldData[s]),groupIdDim:o.dimension})}),A(Ht(r.to),function(o){var s=MA(e.updatedSeries,o);if(s>=0){var l=e.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:bn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&IR(n,i,a)}function Ett(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){A(Ht(a.seriesTransition),function(n){A(Ht(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][bv]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,a){var n=Mtt(e);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Ht(i),function(h){Rtt(h,n,a,e)});else{var o=ktt(n,a);A(o.keys(),function(h){var d=o.get(h);IR(d.oldSeries,d.newSeries,e)})}A(a.updatedSeries,function(h){h[bv]&&(h[bv]=!1)})}for(var s=t.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<LR&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}var Ott=function(){function r(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return r.prototype.setBreaks=function(t){this.breaks=t.breaks},r.prototype.update=function(t){Btt(this,t);var e=this._elapsedExtent;e[0]=this.elapse(t[0]),e[1]=this.elapse(t[1])},r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(t,e){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<t&&t<n.vmax){var i=e(t,n.vmax);return i}}return 0},r.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},r.prototype.normalize=function(t){var e=this._elapsedExtent[1]-this._elapsedExtent[0];return e===0?.5:(this.elapse(t)-this._elapsedExtent[0])/e},r.prototype.scale=function(t){return this.unelapse(t*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},r.prototype.elapse=function(t){for(var e=DA,a=LA,n=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(t<=o.vmax){t>o.vmin?e+=o.vmin-a+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:e+=t-a,a=o.vmax,n=!1;break}e+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(e+=t-a),e},r.prototype.unelapse=function(t){for(var e=DA,a=LA,n=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=e+s.vmin-a,u=l+s.gapReal;if(t<=u){t>l?i=s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):i=a+t-e,a=s.vmax,n=!1;break}e=u,a=s.vmax}return n&&(i=a+t-e),i},r}();function Ntt(){return new Ott}var DA=0,LA=0;function Btt(r,t){var e=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(e+=l.val);var u=N_(s,t);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=e*(0+(t[1]-t[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;l.type==="tpPrct"&&(s.gapReal=e!==0?Math.max(o,0)*l.val/e:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function ztt(r,t,e,a,n,i){r!=="no"&&A(e,function(o){var s=N_(o,i);if(s)for(var l=t.length-1;l>=0;l--){var u=t[l],f=a(u),v=n*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&t.splice(l,1)}})}function Vtt(r,t,e,a){A(t,function(n){var i=N_(n,e);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}))}),t.length&&r.sort(function(n,i){return n.value-i.value})}function N_(r,t){var e=Math.max(r.vmin,t[0]),a=Math.min(r.vmax,t[1]);return e<a||e===a&&e>t[0]&&e<t[1]?{vmin:e,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function vm(r,t,e){var a=[];if(!r)return{breaks:a};function n(o,s){return o>=0&&o<1-1e-5}A(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:nt(o),vmin:t(o.start),vmax:t(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(K(o.gap)){var u=Rr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=t(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),e&&e.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:a.filter(function(o){return!!o})}}function B_(r,t){return cm(t)===cm(r)}function cm(r){return r.start+"_\0_"+r.end}function Gtt(r,t,e){var a=[];A(r,function(i,o){var s=t(i);s&&s.type==="vmin"&&a.push([o])}),A(r,function(i,o){var s=t(i);if(s&&s.type==="vmax"){var l=fo(a,function(u){return B_(t(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){i.length===2&&n.push(e?i:[r[i[0]],r[i[1]]])}),n}function Ftt(r,t,e,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=fo(e,function(v){return B_(v.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(t,o.vmin),s.vmin),u=a(Math.pow(t,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?fe(Math.pow(t,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function Htt(r,t,e){var a={noNegative:!0},n=vm(r,e,a),i=vm(r,e,a),o=Math.log(t);return i.breaks=Y(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var Wtt={vmin:"start",vmax:"end"};function $tt(r,t){return t&&(r=r||{},r.break={type:Wtt[t.type],start:t.parsedBreak.vmin,end:t.parsedBreak.vmax}),r}function Utt(){cV({createScaleBreakContext:Ntt,pruneTicksByBreak:ztt,addBreaksToTicks:Vtt,parseAxisBreakOption:vm,identifyAxisBreak:B_,serializeAxisBreakIdentifier:cm,retrieveAxisBreakPairs:Gtt,getTicksLogTransformBreak:Ftt,logarithmicParseBreaksFromOption:Htt,makeAxisLabelFormatterParamBreak:$tt})}var IA=wt();function Ytt(r,t){var e=fo(r,function(a){return ve().identifyAxisBreak(a.parsedBreak.breakOption,t.breakOption)});return e||r.push(e={zigzagRandomList:[],parsedBreak:t,shouldRemove:!1}),e}function Ztt(r){A(r,function(t){return t.shouldRemove=!0})}function Xtt(r){for(var t=r.length-1;t>=0;t--)r[t].shouldRemove&&r.splice(t,1)}function qtt(r,t,e,a,n){var i=e.axis;if(i.scale.isBlank()||!ve())return;var o=ve().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=e.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"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new it({ignoreModelZ:!0}),S=i.isHorizontal(),x=IA(t).visualList||(IA(t).visualList=[]);Ztt(x);for(var b=function(C){var M=o[C][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=Ytt(x,M);I.shouldRemove=!1;var L=new it;T(I.zigzagRandomList,L,D[0],D[1],S,M),v&&L.on("click",function(){var P={type:gh,breaks:[{start:M.breakOption.start,end:M.breakOption.end}]};P[i.dim+"AxisIndex"]=e.componentIndex,n.dispatchAction(P)}),L.silent=!v,_.add(L)},w=0;w<o.length;w++)b(w);r.add(_),Xtt(x);function T(C,M,D,I,L,P){var k={stroke:p,lineWidth:g,lineDash:y,fill:"none"},R=L?0:1,O=1-R,E=a[dt[O]]+a[ce[O]];function B(At){var pt=[],xt=[];pt[R]=xt[R]=At,pt[O]=a[dt[O]],xt[O]=E;var Vt={x1:pt[0],y1:pt[1],x2:xt[0],y2:xt[1]};return jc(Vt,Vt,{lineWidth:1}),pt[0]=Vt.x1,pt[1]=Vt.y1,pt[R]}D=B(D),I=B(I);for(var G=[],F=[],W=!0,X=a[dt[O]],J=0;;J++){var ft=X===a[dt[O]],Dt=X>=E;Dt&&(X=E);var zt=[],ct=[];zt[R]=D,ct[R]=I,!ft&&!Dt&&(zt[R]+=W?-l:l,ct[R]-=W?l:-l),zt[O]=X,ct[O]=X,G.push(zt),F.push(ct);var V=void 0;if(J<C.length?V=C[J]:(V=Math.random(),C.push(V)),X+=V*(f-u)+u,W=!W,Dt)break}var $=ve().serializeAxisBreakIdentifier(P.breakOption);if(M.add(new Ue({anid:"break_a_"+$,shape:{points:G},style:k,z:c})),P.gapReal!==0){M.add(new Ue({anid:"break_b_"+$,shape:{points:F},style:k,z:c}));var Z=F.slice();Z.reverse();var tt=G.concat(Z);M.add(new tr({anid:"break_c_"+$,shape:{points:tt},style:{fill:m,opacity:d.opacity},z:c}))}}}function Ktt(r,t,e,a){var n=r.axis,i=e.transform;$e(a.style);var o=n.getExtent();n.inverse&&(o=o.slice(),o.reverse());var s=ve().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=Y(s,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:ve().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]),d=Math.min(c.coordPair[1],o[1]);u<=h&&p(u,h,f,c),u=d,f=c}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(D,I){i&&(se(D,D,i),se(I,I,i))}function x(D,I){var L={x1:D[0],y1:D[1],x2:I[0],y2:I[1]};jc(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],T=[g,5],C=[y,5];S(b,T),x(b,T),S(w,C),x(w,C),x(b,w);var M=new me(H({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},a));t.add(M),M.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function jtt(r,t,e){if(fo(e,function(m){return!m}))return;var a=new st;if(!dh(e[0],e[1],a,{direction:-(r?t+Math.PI:t),touchThreshold:0,bidirectional:!1}))return;var n=Ie();Xn(n,n,-t);var i=Y(e,function(m){return m.transform?xa(Ie(),n,m.transform):n});function o(m){var _=e[0].localRect,S=new st(_[ce[m]]*i[0][0],_[ce[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=Y(e,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new st;u.copy(e[0].label).add(e[1].label).scale(.5),u.transform(n);var f=a.clone().transform(n),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new st,y=new st;st.scale(g,a,-s),st.scale(y,a,1-s),py(e[0],g),py(e[1],y)}function Jtt(r,t){var e={breaks:[]};return A(t.breaks,function(a){if(a){var n=fo(r.get("breaks",!0),function(s){return ve().identifyAxisBreak(s,a)});if(n){var i=t.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===gh?!0:i===Z2?!1:i===X2?!n.isExpanded:n.isExpanded,e.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),e}function Qtt(){sW({adjustBreakLabelPair:jtt,buildAxisBreakLine:Ktt,rectCoordBuildBreakAxis:qtt,updateModelAxisBreak:Jtt})}function tet(r){pW(r),Utt(),Qtt()}function eet(){NW(ret)}function ret(r,t){A(r,function(e){if(!e.model.get(["axisLabel","inside"])){var a=aet(e);if(a){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);t[n]-=a[n]+i,e.position==="top"?t.y+=a.height+i:e.position==="left"&&(t.x+=a.width+i)}}})}function aet(r){var t=r.model,e=r.scale;if(!t.get(["axisLabel","show"])||e.isBlank())return;var a,n,i=e.getExtent();e instanceof yu?n=e.count():(a=e.getTicks(),n=a.length);var o=r.getLabelModel(),s=Ws(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var v=a?a[f]:{value:i[0]+f},c=s(v,f),h=o.getTextRect(c),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,x=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),b=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new vt(g.x,g.y,x,b);return w}}_t([UH]);_t([zH]);_t([p4,R4,Y4,a$,S$,yU,ZU,R8,o6,g6,C6,O6,zY,f7,w7,W7,K7,d9,T9,B9,U9,nZ,$Z]);_t(hX);_t(YX);_t(xP);_t(lq);_t(lk);_t(pq);_t(zq);_t(Zq);_t(ZK);_t(gj);_t(Uu);_t(Oj);_t(zj);_t(Qj);_t(fJ);_t(mJ);_t(AJ);_t(GJ);_t(uQ);_t(gR);_t(yR);_t(NQ);_t(bR);_t(wR);_t(GQ);_t(UQ);_t(ntt);_t(stt);_t(Ett);_t(rH);_t(tet);_t(eet);_t(n$);const net=r=>(VA("data-v-342d4b31"),r=r(),GA(),r),iet={class:"tag-hierarchy-graph"},oet={key:0,class:"loading-container"},set=net(()=>Tt("div",{class:"loading-text"},"Generating hierarchical graph...",-1)),uet={key:1,class:"error-container"},fet={key:2,class:"graph-container"},vet={class:"control-panel"},cet=Zn({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:t}){const e=r,a=te(!1),n=te(""),i=te(null),o=te();let s=null,l=null;const u=["#4A90E2","#7B68EE","#50C878","#FF6B6B"],f=h=>u[h%u.length],v=async()=>{var h,d;if(!e.folders||e.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const p={folder_paths:e.folders,top_n_tags:50,top_n_clusters:20,lang:e.lang||"en"};i.value=await FR(p)}catch(p){n.value=((d=(h=p.response)==null?void 0:h.data)==null?void 0:d.detail)||p.message||"Failed to load graph",Oi.error(n.value)}finally{a.value=!1}},c=()=>{if(!i.value||!o.value)return;s&&s.dispose(),s=h3(o.value);const d=[...i.value.layers].reverse(),p=[],g=1200/(d.length+1),y=150;d.forEach((x,b)=>{const w=g*(b+1),C=800/(x.nodes.length+1);x.nodes.forEach((M,D)=>{const I=C*(D+1),P=M.id.split("").reduce((G,F)=>G+F.charCodeAt(0),0)%y-y/2,k=w+P,R=20,O=60,E=Math.sqrt(M.size)/5,B=Math.max(R,Math.min(O,R+E));p.push({id:M.id,name:M.label,x:k,y:I,fixed:!0,symbolSize:B,value:M.size,category:x.level,itemStyle:{color:f(x.level)},label:{show:!0,fontSize:11,color:"#fff",formatter:G=>{const W=G.name;return W.length>10?W.substring(0,10)+"...":W}},metadata:M.metadata,layerName:x.name})})});const m=i.value.links.map(x=>({source:x.source,target:x.target,value:x.weight,lineStyle:{width:Math.max(.5,Math.min(2,x.weight/100)),opacity:.3,curveness:.1}})),_=d.map(x=>({name:x.name})),S={tooltip:{formatter:x=>{var b;if(x.dataType==="node"){const w=x.data;let T=`<strong>${x.name}</strong><br/>`;return T+=`Layer: ${w.layerName}<br/>`,(b=w.metadata)!=null&&b.image_count&&(T+=`Images: ${w.metadata.image_count}`),T}return""}},legend:[{data:_.map(x=>x.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:p,links:m,categories:_,roam:!0,scaleLimit:{min:.2,max:5},draggable:!1,label:{show:!0,position:"inside"},lineStyle:{color:"source",curveness:.1},emphasis:{focus:"adjacency",lineStyle:{width:3}},zoom:1}]};s.setOption(S),s.on("click",x=>{var b,w;if(x.dataType==="node"){const T=x.data;((b=T.metadata)==null?void 0:b.type)==="tag"?(t("searchTag",x.name),Oi.info(`Searching for tag: ${x.name}`)):((w=T.metadata)==null?void 0:w.type)==="cluster"?T.metadata.paths&&T.metadata.paths.length>0?t("openCluster",{title:x.name,paths:T.metadata.paths,size:T.metadata.image_count||T.metadata.paths.length}):Oi.warning("No images found in this cluster"):Oi.info(`Abstract category: ${x.name}`)}})};return fs(()=>e.folders,()=>{v()},{immediate:!0}),fs([i,o],()=>{i.value&&o.value&&VR(()=>{c()})}),BA(()=>{l=()=>{s&&s.resize()},window.addEventListener("resize",l)}),GR(()=>{l&&(window.removeEventListener("resize",l),l=null),s&&s.dispose()}),(h,d)=>{const p=HA,g=zA,y=WA,m=PE;return Jt(),De("div",iet,[a.value?(Jt(),De("div",oet,[St(p,{size:"large"}),set])):n.value?(Jt(),De("div",uet,[St(g,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(Jt(),De("div",fet,[Tt("div",vet,[St(m,null,{default:ke(()=>[St(y,null,{default:ke(()=>[Tr("Layers: "+Ft(i.value.layers.length),1)]),_:1}),St(y,null,{default:ke(()=>[Tr("Total Links: "+Ft(i.value.stats.total_links),1)]),_:1})]),_:1})]),Tt("div",{ref_key:"chartRef",ref:o,class:"chart-container"},null,512)])):ur("",!0)])}}});const het=FA(cet,[["__scopeId","data-v-342d4b31"]]),Vr=r=>(VA("data-v-174295e7"),r=r(),GA(),r),det={class:"topic-search"},pet={class:"toolbar"},get={class:"left"},yet={class:"title"},met=Vr(()=>Tt("span",{class:"icon"},"🧠",-1)),_et={class:"right"},Set={key:0,style:{opacity:"0.75"}},xet={class:"label"},bet={class:"label"},wet={style:{display:"grid",gap:"6px"}},Tet=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"🔑",-1)),Cet={key:0},Aet=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"🧩",-1)),Met=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"🐍",-1)),Det={style:{opacity:"0.85"}},Let=Vr(()=>Tt("span",{style:{"margin-right":"6px"}},"💻",-1)),Iet={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Pet={style:{opacity:"0.85"}},ket={key:3,style:{margin:"10px 0 0 0"}},Ret={style:{"margin-top":"10px",display:"flex","align-items":"center",gap:"8px"}},Eet=Vr(()=>Tt("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),Oet={key:4},Net={key:0,style:{"margin-top":"10px"}},Bet={key:1,class:"grid"},zet=["onClick"],Vet={class:"card-top"},Get={class:"card-title line-clamp-1"},Fet={class:"card-count"},Het={class:"card-desc line-clamp-2"},Wet={key:2,class:"empty"},$et={class:"guide"},Uet={class:"guide-row"},Yet=Vr(()=>Tt("span",{class:"guide-icon"},"🗂️",-1)),Zet={class:"guide-text"},Xet={class:"guide-row"},qet=Vr(()=>Tt("span",{class:"guide-icon"},"🧠",-1)),Ket={class:"guide-text"},jet={class:"guide-row"},Jet=Vr(()=>Tt("span",{class:"guide-icon"},"🔎",-1)),Qet={class:"guide-text"},trt={class:"guide-row"},ert=Vr(()=>Tt("span",{class:"guide-icon"},"✨",-1)),rrt={class:"guide-text"},art={class:"guide-row"},nrt=Vr(()=>Tt("span",{class:"guide-icon"},"🚀",-1)),irt={class:"guide-text"},ort={class:"guide-hint"},srt=Vr(()=>Tt("span",{class:"guide-icon"},"💡",-1)),lrt={key:0,class:"guide-text"},urt={key:1,class:"guide-text"},frt={key:5,style:{height:"calc(100vh - 300px)","min-height":"600px"}},vrt="iib_topic_search_hide_requirements_v1",tg="topic_search_scope",crt=Zn({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const t=r,e=HR(),a=te(!1),n=te(.9),i=te(2),o=te(null),s=te(null),l=te(!1),u=WR(vrt,!0),f=()=>{u.value=!1},v=te(null),c=te("");let h=null;const d=Gt(()=>{var $;const V=($=v.value)==null?void 0:$.status;return V==="queued"||V==="running"}),p=Gt(()=>{var $;const V=String((($=v.value)==null?void 0:$.stage)||"");return!V||V==="queued"||V==="init"?sr("topicSearchJobQueued"):V==="embedding"?sr("topicSearchJobStageEmbedding"):V==="clustering"?sr("topicSearchJobStageClustering"):V==="titling"?sr("topicSearchJobStageTitling"):V==="done"?sr("topicSearchJobStageDone"):V==="error"?sr("topicSearchJobStageError"):`${sr("topicSearchJobStage")}: ${V}`}),g=Gt(()=>{var At;const V=(At=v.value)==null?void 0:At.progress;if(!V)return 0;const $=Number(V.to_embed??0),Z=Number(V.embedded_done??0);if($<=0)return 0;const tt=Math.floor(Z/$*100);return Math.max(0,Math.min(100,tt))}),y=Gt(()=>{var $,Z,tt,At;const V=($=v.value)==null?void 0:$.progress;if(!V)return"";if(((Z=v.value)==null?void 0:Z.stage)==="embedding"){const pt=Number(V.embedded_done??0),xt=Number(V.to_embed??0),Vt=Number(V.scanned??0),re=String(V.folder??"");return sr("topicSearchJobEmbeddingDesc",[pt,xt,Vt,re])}if(((tt=v.value)==null?void 0:tt.stage)==="clustering"){const pt=Number(V.items_done??0),xt=Number(V.items_total??0);return sr("topicSearchJobClusteringDesc",[pt,xt])}if(((At=v.value)==null?void 0:At.stage)==="titling"){const pt=Number(V.clusters_done??0),xt=Number(V.clusters_total??0);return sr("topicSearchJobTitlingDesc",[pt,xt])}return""}),m=te(""),_=te(!1),S=te(null),x=te("clusters"),b=te(!1),w=te([]),T=te(!1),C=te(!1);let M=null,D="";const I=Gt(()=>(e.quickMovePaths??[]).filter($=>{const Z=String(($==null?void 0:$.key)??"");return(($==null?void 0:$.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z)}).map($=>String(($==null?void 0:$.dir)??"")).filter(Boolean));fs(I,V=>{V!=null&&V.length&&(w.value=(w.value??[]).filter($=>!V.includes($)))},{immediate:!0});const L=Gt(()=>(e.quickMovePaths??[]).filter($=>{const Z=String(($==null?void 0:$.key)??"");return!((($==null?void 0:$.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(Z))}).map($=>({value:$.dir,label:$.zh||$.dir}))),P=Gt(()=>(w.value??[]).filter(Boolean).length),k=Gt(()=>(w.value??[]).filter(Boolean)),R=Gt(()=>{var V;return((V=o.value)==null?void 0:V.clusters)??[]}),O=async()=>{var Z,tt,At;if(T.value)return;try{const pt=await XR();e.conf=pt}catch{}const V=((Z=e.conf)==null?void 0:Z.app_fe_setting)||{},$=(tt=V==null?void 0:V[tg])==null?void 0:tt.folder_paths;Array.isArray($)&&$.length&&!((At=w.value)!=null&&At.length)&&(w.value=$.map(pt=>String(pt)).filter(Boolean)),T.value=!0},E=async()=>{var $,Z;if(($=e.conf)!=null&&$.is_readonly||!T.value)return;const V={folder_paths:k.value,updated_at:Date.now()};await qR(tg,V),(Z=e.conf)!=null&&Z.app_fe_setting&&(e.conf.app_fe_setting[tg]=V)},B=()=>{var $;if(($=e.conf)!=null&&$.is_readonly||!T.value)return;const V=JSON.stringify(k.value);V!==D&&(M&&clearTimeout(M),M=setTimeout(async()=>{C.value=!0;try{await E(),D=V}finally{C.value=!1}},500))},G=()=>{h&&(clearInterval(h),h=null)},F=async()=>{const V=c.value;if(!V)return;const $=await nE(V);v.value=$,$.status==="done"?(G(),a.value=!1,$.result&&(o.value=$.result),s.value=null):$.status==="error"&&(G(),a.value=!1,Oi.error($.error||sr("topicSearchJobFailed")))},W=async()=>{if(P.value)try{const V=await KR({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:k.value});s.value=V,V.cache_hit&&V.result&&(o.value=V.result)}catch{}},X=async()=>{var V;if(!((V=e.conf)!=null&&V.is_readonly)){if(!P.value){Oi.warning(sr("topicSearchNeedScope")),b.value=!0;return}G(),a.value=!0,v.value=null,c.value="";try{await jR();const $=await JR({threshold:n.value,min_cluster_size:i.value,lang:e.lang,folder_paths:k.value});c.value=$.job_id,await F(),h=setInterval(()=>{F()},800)}catch($){throw a.value=!1,$}}},J=async()=>{const V=(m.value||"").trim();if(V&&!_.value){if(!P.value){Oi.warning(sr("topicSearchNeedScope")),b.value=!0;return}_.value=!0;try{S.value=await QR({query:V,top_k:80,ensure_embed:!l.value,folder_paths:k.value}),l.value||(l.value=!0),ft()}finally{_.value=!1}}},ft=()=>{var At;const V=(((At=S.value)==null?void 0:At.results)??[]).map(pt=>pt.path).filter(Boolean);if(!V.length)return;const $=`Query: ${m.value.trim()}${V.length}`,Z={type:"topic-search-matched-image-grid",name:$,key:Date.now()+Ao(),id:Ao(),title:$,paths:V},tt=e.tabList[t.tabIdx];tt.panes.push(Z),tt.key=Z.key},Dt=V=>{const $={type:"topic-search-matched-image-grid",name:`${V.title}${V.size}`,key:Date.now()+Ao(),id:Ao(),title:V.title,paths:V.paths},Z=e.tabList[t.tabIdx];Z.panes.push($),Z.key=$.key},zt=V=>{const $={type:"topic-search-matched-image-grid",name:`${V.title}${V.size}`,key:Date.now()+Ao(),id:Ao(),title:V.title,paths:V.paths},Z=e.tabList[t.tabIdx];Z.panes.push($),Z.key=$.key},ct=V=>{m.value=V,J()};return BA(()=>{(async()=>(await O(),P.value&&await W()))()}),$R(()=>{G()}),fs(k,()=>{l.value=!1},{deep:!0}),fs(()=>k.value,()=>{B()},{deep:!0}),(V,$)=>{var Ra,To,z_,V_,G_,F_;const Z=WA,tt=tE,At=eE,pt=sE,xt=zA,Vt=AE,re=oE,Ye=HA,ze=rE,ka=aE;return Jt(),De("div",det,[Tt("div",pet,[Tt("div",get,[Tt("div",yet,[met,Tt("span",null,Ft(V.$t("topicSearchTitleExperimental")),1)]),o.value?(Jt(),ln(Z,{key:0,color:"blue"},{default:ke(()=>[Tr("共 "+Ft(o.value.count)+" 张",1)]),_:1})):ur("",!0),o.value?(Jt(),ln(Z,{key:1,color:"geekblue"},{default:ke(()=>[Tr("主题 "+Ft(o.value.clusters.length),1)]),_:1})):ur("",!0),o.value?(Jt(),ln(Z,{key:2,color:"default"},{default:ke(()=>[Tr("噪声 "+Ft(o.value.noise.length),1)]),_:1})):ur("",!0)]),Tt("div",_et,[St(tt,{onClick:$[0]||($[0]=le=>b.value=!0)},{default:ke(()=>[Tr(Ft(V.$t("topicSearchScope"))+" ",1),P.value?(Jt(),De("span",Set,""+Ft(P.value)+"",1)):ur("",!0)]),_:1}),St(At,{value:m.value,"onUpdate:value":$[1]||($[1]=le=>m.value=le),style:{width:"min(420px, 72vw)"},placeholder:V.$t("topicSearchQueryPlaceholder"),disabled:_.value,onKeydown:UR(J,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),St(tt,{loading:_.value,onClick:J},{default:ke(()=>[Tr(Ft(V.$t("search")),1)]),_:1},8,["loading"]),(To=(Ra=S.value)==null?void 0:Ra.results)!=null&&To.length?(Jt(),ln(tt,{key:0,onClick:ft},{default:ke(()=>[Tr(Ft(V.$t("topicSearchOpenResults")),1)]),_:1})):ur("",!0),Tt("span",xet,Ft(V.$t("topicSearchThreshold")),1),St(pt,{value:n.value,"onUpdate:value":$[2]||($[2]=le=>n.value=le),min:.5,max:.99,step:.01},null,8,["value"]),Tt("span",bet,Ft(V.$t("topicSearchMinClusterSize")),1),St(pt,{value:i.value,"onUpdate:value":$[3]||($[3]=le=>i.value=le),min:1,max:50,step:1},null,8,["value"]),St(tt,{type:"primary",ghost:"",loading:a.value,disabled:(z_=Jn(e).conf)==null?void 0:z_.is_readonly,onClick:X},{default:ke(()=>[Tr(Ft(V.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(V_=Jn(e).conf)!=null&&V_.is_readonly?(Jt(),ln(xt,{key:0,type:"warning",message:V.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):ur("",!0),Jn(u)?(Jt(),ln(xt,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:V.$t("topicSearchRequirementsTitle"),onClose:f},{description:ke(()=>[Tt("div",wet,[Tt("div",null,[Tet,Tt("span",null,Ft(V.$t("topicSearchRequirementsOpenai")),1)]),Jn(YR)?(Jt(),De("div",Cet,[Aet,Tt("span",null,Ft(V.$t("topicSearchRequirementsDepsDesktop")),1)])):(Jt(),De(Lv,{key:1},[Tt("div",null,[Met,Tt("span",null,Ft(V.$t("topicSearchRequirementsDepsPython")),1)]),Tt("div",Det,[Let,Tt("span",null,Ft(V.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):ur("",!0),(G_=s.value)!=null&&G_.cache_hit&&((F_=s.value)!=null&&F_.stale)?(Jt(),ln(xt,{key:2,type:"warning","show-icon":"",style:{margin:"10px 0 0 0"},message:V.$t("topicSearchCacheStale")},{description:ke(()=>{var le;return[Tt("div",Iet,[Tt("span",Pet,Ft(V.$t("topicSearchCacheStaleDesc")),1),St(tt,{size:"small",loading:a.value||d.value,disabled:(le=Jn(e).conf)==null?void 0:le.is_readonly,onClick:X},{default:ke(()=>[Tr(Ft(V.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])])]}),_:1},8,["message"])):ur("",!0),d.value?(Jt(),De("div",ket,[St(xt,{type:"info","show-icon":"",message:p.value,description:y.value},null,8,["message","description"]),St(Vt,{percent:g.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):ur("",!0),Tt("div",Ret,[Eet,St(re,{checked:x.value,"onUpdate:checked":$[4]||($[4]=le=>x.value=le),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),x.value==="clusters"?(Jt(),De("div",Oet,[St(Ye,{spinning:a.value},{default:ke(()=>{var le;return[S.value?(Jt(),De("div",Net,[St(xt,{type:"info",message:V.$t("topicSearchRecallMsg",[S.value.results.length,S.value.count,S.value.top_k]),"show-icon":""},null,8,["message"])])):ur("",!0),R.value.length?(Jt(),De("div",Bet,[(Jt(!0),De(Lv,null,ZR(R.value,Co=>(Jt(),De("div",{class:"card",key:Co.id,onClick:hrt=>Dt(Co)},[Tt("div",Vet,[Tt("div",Get,Ft(Co.title),1),Tt("div",Fet,Ft(Co.size),1)]),Tt("div",Het,Ft(Co.sample_prompt),1)],8,zet))),128))])):(Jt(),De("div",Wet,[St(xt,{type:"info","show-icon":"",message:V.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Tt("div",$et,[Tt("div",Uet,[Yet,Tt("span",Zet,Ft(V.$t("topicSearchGuideStep1")),1),St(tt,{size:"small",onClick:$[5]||($[5]=Co=>b.value=!0)},{default:ke(()=>[Tr(Ft(V.$t("topicSearchScope")),1)]),_:1})]),Tt("div",Xet,[qet,Tt("span",Ket,Ft(V.$t("topicSearchGuideStep2")),1),St(tt,{size:"small",loading:a.value,disabled:(le=Jn(e).conf)==null?void 0:le.is_readonly,onClick:X},{default:ke(()=>[Tr(Ft(V.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Tt("div",jet,[Jet,Tt("span",Qet,Ft(V.$t("topicSearchGuideStep3")),1)]),Tt("div",trt,[ert,Tt("span",rrt,Ft(V.$t("topicSearchGuideAdvantage1")),1)]),Tt("div",art,[nrt,Tt("span",irt,Ft(V.$t("topicSearchGuideAdvantage2")),1)]),Tt("div",ort,[srt,P.value?(Jt(),De("span",urt,Ft(V.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(Jt(),De("span",lrt,Ft(V.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):x.value==="graph"?(Jt(),De("div",frt,[St(het,{folders:k.value,lang:Jn(e).lang,onSearchTag:ct,onOpenCluster:zt},null,8,["folders","lang"])])):ur("",!0),St(ka,{visible:b.value,"onUpdate:visible":$[7]||($[7]=le=>b.value=le),title:V.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:$[8]||($[8]=()=>{b.value=!1,E()})},{default:ke(()=>[St(xt,{type:"info","show-icon":"",message:V.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),C.value?(Jt(),ln(xt,{key:0,type:"info","show-icon":"",message:V.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):ur("",!0),St(ze,{value:w.value,"onUpdate:value":$[6]||($[6]=le=>w.value=le),mode:"multiple",style:{width:"100%"},options:L.value,placeholder:V.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:le=>le.parentElement||le,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const xrt=FA(crt,[["__scopeId","data-v-174295e7"]]);export{xrt as default};