gds-plus-design-vue 1.1.78 → 1.1.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/lib/{chartbi.48631362.mjs → chartbi.57f44d3e.mjs} +175 -175
  2. package/lib/{chartbi.afd83839.js → chartbi.94deb957.js} +10 -10
  3. package/lib/gd-initial.js +13 -13
  4. package/lib/gd-initial.mjs +3947 -3421
  5. package/lib/{main.03b24a05.js → main.1b00a4e3.js} +1 -1
  6. package/lib/{main.eea30a23.js → main.1da3b284.js} +1 -1
  7. package/lib/{main.f1e3ba71.js → main.2a2d1dba.js} +1 -1
  8. package/lib/{main.995a7509.mjs → main.4a1b145d.mjs} +10 -10
  9. package/lib/{main.91146343.mjs → main.85fa6307.mjs} +6 -6
  10. package/lib/{main.bf19ab41.mjs → main.b283cf8f.mjs} +4 -4
  11. package/lib/{messages.7e85146d.mjs → messages.ae101ecd.mjs} +18 -18
  12. package/lib/{messages.083c4ede.js → messages.dc95e9ca.js} +5 -5
  13. package/lib/style.css +2 -2
  14. package/lib/{system.account.78b852cd.js → system.account.13fcfd13.js} +2 -2
  15. package/lib/{system.account.16b1763b.mjs → system.account.80e9070c.mjs} +11 -11
  16. package/lib/{system.config.9c46f279.mjs → system.config.00e549b8.mjs} +3 -3
  17. package/lib/{system.config.327aded6.js → system.config.373fe9dd.js} +1 -1
  18. package/lib/{system.datasource.8a0c7e0f.js → system.datasource.8bc7b3c5.js} +1 -1
  19. package/lib/{system.datasource.4b0951ba.mjs → system.datasource.e47ba035.mjs} +3 -3
  20. package/lib/{system.dict.65f25e4e.mjs → system.dict.28a0f526.mjs} +4 -4
  21. package/lib/{system.dict.72594c98.js → system.dict.aa93f41b.js} +1 -1
  22. package/lib/{system.duplicatechecking.2e9b8df8.js → system.duplicatechecking.77a40e04.js} +1 -1
  23. package/lib/{system.duplicatechecking.b05f1617.mjs → system.duplicatechecking.fa81b9ee.mjs} +22 -22
  24. package/lib/{system.email.0899621c.js → system.email.aa3a3964.js} +2 -2
  25. package/lib/{system.email.591982bd.mjs → system.email.ccea99a3.mjs} +4 -4
  26. package/lib/{system.fieldsecurity.7de4ee1d.mjs → system.fieldsecurity.0b85487c.mjs} +10 -10
  27. package/lib/{system.fieldsecurity.d57edb47.js → system.fieldsecurity.14445e20.js} +1 -1
  28. package/lib/{system.file.b3558a8b.js → system.file.d5e18ffc.js} +1 -1
  29. package/lib/{system.file.f152d4fe.mjs → system.file.e706cecf.mjs} +4 -4
  30. package/lib/{system.log.f243e7d0.js → system.log.4ddc4031.js} +1 -1
  31. package/lib/{system.log.30e5157c.mjs → system.log.cc844d4f.mjs} +2 -2
  32. package/lib/{system.machine.332fb31c.js → system.machine.15cb8251.js} +1 -1
  33. package/lib/{system.machine.325b256e.mjs → system.machine.4c9db2b1.mjs} +2 -2
  34. package/lib/{system.notice.540e97ca.js → system.notice.29eda0a6.js} +1 -1
  35. package/lib/{system.notice.9821e123.mjs → system.notice.c3b65e57.mjs} +5 -5
  36. package/lib/{system.noticereceived.1fb75290.js → system.noticereceived.5f2ff5b8.js} +1 -1
  37. package/lib/{system.noticereceived.0f77a614.mjs → system.noticereceived.a3af9de9.mjs} +4 -4
  38. package/lib/{system.onlineuser.e0c261ed.js → system.onlineuser.6f9d9ab8.js} +1 -1
  39. package/lib/{system.onlineuser.90c08aef.mjs → system.onlineuser.99bd4e86.mjs} +2 -2
  40. package/lib/{system.org.65452f67.js → system.org.37d1d503.js} +1 -1
  41. package/lib/{system.org.b8d59e5d.mjs → system.org.b76023b7.mjs} +3 -3
  42. package/lib/{system.permissions.d74ca430.mjs → system.permissions.70965fc6.mjs} +5 -5
  43. package/lib/{system.permissions.8b0d3c8c.js → system.permissions.e350ba73.js} +2 -2
  44. package/lib/{system.plugin.07b3c38e.js → system.plugin.2afed6da.js} +1 -1
  45. package/lib/{system.plugin.4911a33d.mjs → system.plugin.8ab6d913.mjs} +4 -4
  46. package/lib/{system.pos.c274f13c.mjs → system.pos.db7cc8b1.mjs} +3 -3
  47. package/lib/{system.pos.6ed35c39.js → system.pos.ef817301.js} +1 -1
  48. package/lib/{system.promptmanagement.67475aac.js → system.promptmanagement.db48f9a4.js} +1 -1
  49. package/lib/{system.promptmanagement.e9976712.mjs → system.promptmanagement.ea39e6d1.mjs} +4 -4
  50. package/lib/{system.role.f2eff184.mjs → system.role.0bba7e75.mjs} +16 -15
  51. package/lib/{system.role.6ce127e7.js → system.role.c9313c04.js} +1 -1
  52. package/lib/system.sumberrules.5e052247.js +1 -0
  53. package/lib/system.sumberrules.70378ac3.mjs +553 -0
  54. package/lib/{system.timers.ef6b6796.js → system.timers.2b286d7f.js} +2 -2
  55. package/lib/{system.timers.69f1792a.mjs → system.timers.d0f4b3d9.mjs} +16 -16
  56. package/lib/{system.translation.8f7e4144.js → system.translation.2e43f7a2.js} +1 -1
  57. package/lib/{system.translation.48ff0b03.mjs → system.translation.bb67cd46.mjs} +6 -6
  58. package/lib/{system.user.17234177.mjs → system.user.12324280.mjs} +25 -18
  59. package/lib/{system.user.4924c331.js → system.user.ffdbb3f9.js} +6 -6
  60. package/lib/{system.useraffiliation.f3c88a51.js → system.useraffiliation.4fc3c0aa.js} +1 -1
  61. package/lib/{system.useraffiliation.1e74fa9e.mjs → system.useraffiliation.761f4b55.mjs} +7 -7
  62. package/lib/{system.webresource.e9518d87.mjs → system.webresource.15e6ad21.mjs} +9 -9
  63. package/lib/{system.webresource.5049d97b.js → system.webresource.7018c9a3.js} +1 -1
  64. package/lib/{system.welcome.b109df88.js → system.welcome.14985d84.js} +1 -1
  65. package/lib/{system.welcome.3f1cce96.mjs → system.welcome.90e60cc9.mjs} +2 -2
  66. package/locale/en_US.js +23 -4
  67. package/locale/id_ID.js +23 -4
  68. package/locale/vi_VN.js +23 -4
  69. package/locale/zh_CN.js +23 -4
  70. package/package.json +1 -1
  71. /package/lib/{element-theme-chalk.ae828c17.js → element-theme-chalk.dee12271.js} +0 -0
  72. /package/lib/{element-theme-chalk.35b1f600.mjs → element-theme-chalk.fbb1a631.mjs} +0 -0
@@ -46,26 +46,26 @@ echarts.use([`+L+"]);":"Unknown series "+M))}return}if(c==="tooltip"){if(_){proc
46
46
  `:"";function n(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return Kz(o,s)+(o!=="style"?Re(l):l||"")+(i?""+t+G(i,function(u){return n(u)}).join(t)+t:"")+Jz(o)}return n(r)}function Qz(r,e,t){t=t||{};var n=t.newline?`
47
47
  `:"",a=" {"+n,i=n+"}",o=G(_t(r),function(l){return l+a+G(_t(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+i}).join(n),s=G(_t(e),function(l){return"@keyframes "+l+a+G(_t(e[l]),function(u){return u+a+G(_t(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(n)+i}).join(n)+i}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function Od(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function M1(r,e,t,n){return ae("svg","root",{width:r,height:e,xmlns:vM,"xmlns:xlink":pM,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var L1={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"},za="transform-origin";function t5(r,e,t){var n=V({},r.shape);V(n,e),r.buildPath(t,n);var a=new hM;return a.reset(PT(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function e5(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[za]=t+"px "+n+"px")}var r5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function gM(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function n5(r,e,t){var n=r.shape.paths,a={},i,o;if(D(n,function(l){var u=Od(t.zrId);u.animation=!0,Qc(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,h=_t(f),v=h.length;if(!!v){o=h[v-1];var p=f[o];for(var d in p){var g=p[d];a[d]=a[d]||{d:""},a[d].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=gM(a,t);return i.replace(o,s)}}function I1(r){return W(r)?L1[r]?"cubic-bezier("+L1[r]+")":Rg(r)?r:"":""}function Qc(r,e,t,n){var a=r.animators,i=a.length,o=[];if(r instanceof Kg){var s=n5(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=a[u],c=[f.getMaxTime()/1e3+"s"],h=I1(f.getClip().easing),v=f.getDelay();h?c.push(h):c.push("linear"),v&&c.push(v/1e3+"s"),f.getLoop()&&c.push("infinite");var p=c.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C(rt,gt,st){for(var q=rt.getTracks(),lt=rt.getMaxTime(),zt=0;zt<q.length;zt++){var bt=q[zt];if(bt.needsAnimate()){var Ut=bt.keyframes,Ht=bt.propName;if(st&&(Ht=st(Ht)),Ht)for(var ge=0;ge<Ut.length;ge++){var nn=Ut[ge],Ee=Math.round(nn.time/lt*100)+"%",Hl=I1(nn.easing),In=nn.rawValue;(W(In)||At(In))&&(gt[Ee]=gt[Ee]||{},gt[Ee][Ht]=nn.rawValue,Hl&&(gt[Ee][T]=Hl))}}}}for(var A=0;A<S;A++){var M=_[A],L=M.targetName;L?L==="shape"&&C(M,x):!n&&C(M,b)}for(var I in b){var E={};VT(E,r),V(E,b[I]);var P=NT(E),N=b[I][T];w[I]=P?{transform:P}:{},e5(w[I],E),N&&(w[I][T]=N)}var k,O=!0;for(var I in x){w[I]=w[I]||{};var B=!k,N=x[I][T];B&&(k=new Qr);var F=k.len();k.reset(),w[I].d=t5(r,x[I],k);var $=k.len();if(!B&&F!==$){O=!1;break}N&&(w[I][T]=N)}if(!O)for(var I in w)delete w[I].d;if(!n)for(var A=0;A<S;A++){var M=_[A],L=M.targetName;L==="style"&&C(M,w,function(q){return r5[q]})}for(var Z=_t(w),Q=!0,tt,A=1;A<Z.length;A++){var pt=Z[A-1],St=Z[A];if(w[pt][za]!==w[St][za]){Q=!1;break}tt=w[pt][za]}if(Q&&tt){for(var I in w)w[I][za]&&delete w[I][za];e[za]=tt}if(Et(Z,function(rt){return _t(w[rt]).length>0}).length){var dt=gM(w,t);return dt+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var cl=Math.round;function yM(r){return r&&W(r.src)}function mM(r){return r&&j(r.toDataURL)}function Ny(r,e,t,n){Xz(function(a,i){var o=a==="fill"||a==="stroke";o&&ET(i)?SM(e,r,a,n):o&&Og(i)?xM(t,r,a,n):r[a]=i},e,t,!1),f5(t,r,n)}function E1(r){return qn(r[0]-1)&&qn(r[1])&&qn(r[2])&&qn(r[3]-1)}function a5(r){return qn(r[4])&&qn(r[5])}function Ry(r,e,t){if(e&&!(a5(e)&&E1(e))){var n=t?10:1e4;r.transform=E1(e)?"translate("+cl(e[4]*n)/n+" "+cl(e[5]*n)/n+")":K2(e)}}function P1(r,e,t){for(var n=r.points,a=[],i=0;i<n.length;i++)a.push(cl(n[i][0]*t)/t),a.push(cl(n[i][1]*t)/t);e.points=a.join(" ")}function N1(r){return!r.smooth}function i5(r){var e=G(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,a){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(n[o[1]]=cl(s*a)/a)}}}var o5={circle:[i5(["cx","cy","r"])],polyline:[P1,N1],polygon:[P1,N1]};function s5(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function _M(r,e){var t=r.style,n=r.shape,a=o5[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&PT(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](n))&&!(o&&s5(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](n,i,f)}else{var c=!r.path||r.shapeChanged();r.path||r.createPathProxy();var h=r.path;c&&(h.beginPath(),r.buildPath(h,r.shape),r.pathUpdated());var v=h.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==v||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new hM),d.reset(u),h.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=v,p.__svgPathStrokePercent=l),i.d=d.getStr()}return Ry(i,r.transform),Ny(i,t,r,e),e.animation&&Qc(r,i,e),ae(s,r.id+"",i)}function l5(r,e){var t=r.style,n=t.image;if(n&&!W(n)&&(yM(n)?n=n.src:mM(n)&&(n=n.toDataURL())),!!n){var a=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),Ry(l,r.transform),Ny(l,t,r,e),e.animation&&Qc(r,l,e),ae("image",r.id+"",l)}}function u5(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var a=t.font||ra,i=t.x||0,o=Q2(t.y||0,Cc(a),t.textBaseline),s=J2[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(dC(t)){var u="",f=t.fontStyle,c=pC(t.fontSize);if(!parseFloat(c))return;var h=t.fontFamily||iT,v=t.fontWeight;u+="font-size:"+c+";font-family:"+h+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return n.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),Ry(l,r.transform),Ny(l,t,r,e),e.animation&&Qc(r,l,e),ae("text",r.id+"",l,void 0,n)}}function R1(r,e){if(r instanceof mt)return _M(r,e);if(r instanceof de)return l5(r,e);if(r instanceof tl)return u5(r,e)}function f5(r,e,t){var n=r.style;if(tP(n)){var a=eP(r),i=t.shadowCache,o=i[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,c=n.shadowOffsetY||0,h=n.shadowBlur,v=Qs(n.shadowColor),p=v.opacity,d=v.color,g=h/2/l,y=h/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=ae("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ae("feDropShadow","",{dx:f/l,dy:c/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),i[a]=o}e.filter=Tc(o)}}function SM(r,e,t,n){var a=r[t],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(LT(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(IT(a))i="radialGradient",o.cx=ft(a.x,.5),o.cy=ft(a.y,.5),o.r=ft(a.r,.5);else{process.env.NODE_ENV!=="production"&&Cr("Illegal gradient type.");return}for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var c=Zp(s[u].offset)*100+"%",h=s[u].color,v=Qs(h),p=v.color,d=v.opacity,g={offset:c};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(ae("stop",u+"",g))}var y=ae(i,"",o,l),m=Py(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=ae(i,S,o,l)),e[t]=Tc(S)}function xM(r,e,t,n){var a=r.style[t],i=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",c;if(MT(a)){var h=a.imageWidth,v=a.imageHeight,p=void 0,d=a.image;if(W(d)?p=d:yM(d)?p=d.src:mM(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";J(h,g),J(v,g)}else if(h==null||v==null){var y=function(A,M){if(A){var L=A.elm,I=h||M.width,E=v||M.height;A.tag==="pattern"&&(u?(E=1,I/=i.width):f&&(I=1,E/=i.height)),A.attrs.width=I,A.attrs.height=E,L&&(L.setAttribute("width",I),L.setAttribute("height",E))}},m=Hg(p,null,r,function(A){l||y(x,A),y(c,A)});m&&m.width&&m.height&&(h=h||m.width,v=v||m.height)}c=ae("image","img",{href:p,width:h,height:v}),o.width=h,o.height=v}else a.svgElement&&(c=nt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(!!c){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 b=NT(a);b&&(o.patternTransform=b);var x=ae("pattern","",o,[c]),w=Py(x),T=n.patternCache,C=T[w];C||(C=n.zrId+"-p"+n.patternIdx++,T[w]=C,o.id=C,x=n.defs[C]=ae("pattern",C,o,[c])),e[t]=Tc(C)}}function c5(r,e,t){var n=t.clipPathCache,a=t.defs,i=n[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};n[r.id]=i,a[i]=ae("clipPath",i,o,[_M(r,t)])}e["clip-path"]=Tc(i)}function O1(r){return document.createTextNode(r)}function Ya(r,e,t){r.insertBefore(e,t)}function k1(r,e){r.removeChild(e)}function V1(r,e){r.appendChild(e)}function bM(r){return r.parentNode}function wM(r){return r.nextSibling}function bv(r,e){r.textContent=e}var B1=58,h5=120,v5=ae("","");function kd(r){return r===void 0}function Fr(r){return r!==void 0}function p5(r,e,t){for(var n={},a=e;a<=t;++a){var i=r[a].key;i!==void 0&&(process.env.NODE_ENV!=="production"&&n[i]!=null&&console.error("Duplicate key "+i),n[i]=a)}return n}function Is(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function hl(r){var e,t=r.children,n=r.tag;if(Fr(n)){var a=r.elm=dM(n);if(Oy(v5,r),z(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&V1(a,hl(i))}else Fr(r.text)&&!K(r.text)&&V1(a,O1(r.text))}else r.elm=O1(r.text);return r.elm}function TM(r,e,t,n,a){for(;n<=a;++n){var i=t[n];i!=null&&Ya(r,hl(i),e)}}function qf(r,e,t,n){for(;t<=n;++t){var a=e[t];if(a!=null)if(Fr(a.tag)){var i=bM(a.elm);k1(i,a.elm)}else k1(r,a.elm)}}function Oy(r,e){var t,n=e.elm,a=r&&r.attrs||{},i=e.attrs||{};if(a!==i){for(t in i){var o=i[t],s=a[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t.charCodeAt(0)!==h5?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(qz,t,o):t.charCodeAt(3)===B1?n.setAttributeNS(jz,t,o):t.charCodeAt(5)===B1?n.setAttributeNS(pM,t,o):n.setAttribute(t,o))}for(t in a)t in i||n.removeAttribute(t)}}function d5(r,e,t){for(var n=0,a=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l],c,h,v,p;n<=i&&a<=l;)o==null?o=e[++n]:s==null?s=e[--i]:u==null?u=t[++a]:f==null?f=t[--l]:Is(o,u)?(ao(o,u),o=e[++n],u=t[++a]):Is(s,f)?(ao(s,f),s=e[--i],f=t[--l]):Is(o,f)?(ao(o,f),Ya(r,o.elm,wM(s.elm)),o=e[++n],f=t[--l]):Is(s,u)?(ao(s,u),Ya(r,s.elm,o.elm),s=e[--i],u=t[++a]):(kd(c)&&(c=p5(e,n,i)),h=c[u.key],kd(h)?Ya(r,hl(u),o.elm):(v=e[h],v.tag!==u.tag?Ya(r,hl(u),o.elm):(ao(v,u),e[h]=void 0,Ya(r,v.elm,o.elm))),u=t[++a]);(n<=i||a<=l)&&(n>i?(p=t[l+1]==null?null:t[l+1].elm,TM(r,p,t,a,l)):qf(r,e,n,i))}function ao(r,e){var t=e.elm=r.elm,n=r.children,a=e.children;r!==e&&(Oy(r,e),kd(e.text)?Fr(n)&&Fr(a)?n!==a&&d5(t,n,a):Fr(a)?(Fr(r.text)&&bv(t,""),TM(t,null,a,0,a.length-1)):Fr(n)?qf(t,n,0,n.length-1):Fr(r.text)&&bv(t,""):r.text!==e.text&&(Fr(n)&&qf(t,n,0,n.length-1),bv(t,e.text)))}function g5(r,e){if(Is(r,e))ao(r,e);else{var t=r.elm,n=bM(t);hl(e),n!==null&&(Ya(n,e.elm,wM(t)),qf(n,[r],0,0))}return e}var y5=0,m5=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=z1("refreshHover"),this.configLayer=z1("configLayer"),this.storage=t,this._opts=n=V({},n),this.root=e,this._id="zr"+y5++,this._oldVNode=M1(n.width,n.height),e&&!n.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=dM("svg");Oy(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(n.width,n.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",g5(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return R1(e,Od(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,a=this._height,i=Od(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=_5(n,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=ae("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=G(_t(i.defs),function(h){return i.defs[h]});if(u.length&&o.push(ae("defs","defs",{},u)),e.animation){var f=Qz(i.cssNodes,i.cssAnims,{newline:!0});if(f){var c=ae("style","stl",{},[],f);o.push(c)}}return M1(n,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Py(this.renderToVNode({animation:ft(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ft(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,n){for(var a=e.length,i=[],o=0,s,l,u=0,f=0;f<a;f++){var c=e[f];if(!c.invisible){var h=c.__clipPaths,v=h&&h.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(v-1,p-1);d>=0&&!(h&&l&&h[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=i[o-1];for(var y=d+1;y<v;y++){var m={};c5(h[y],m,t);var _=ae("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),i[o++]=_,s=_}l=h;var S=R1(c,t);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(e,t){var n=this._opts,a=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),a&&i&&(i.style.display="none",e=uo(a,0,n),t=uo(a,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Og(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),n="data:image/svg+xml;";return e?(t=nP(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r}();function z1(r){return function(){process.env.NODE_ENV!=="production"&&Cr('In SVG mode painter not support method "'+r+'"')}}function _5(r,e,t,n){var a;if(t&&t!=="none")if(a=ae("rect","bg",{width:r,height:e,x:"0",y:"0",id:"0"}),ET(t))SM({fill:t},a.attrs,"fill",n);else if(Og(t))xM({style:{fill:t},dirty:Xt,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",n);else{var i=Qs(t),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const S5=m5;function x5(r){r.registerPainter("svg",S5)}function G1(r,e,t){var n=mn.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",r)),n.width=a*t,n.height=i*t,n}var b5=function(r){R(e,r);function e(t,n,a){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;a=a||Cf,typeof t=="string"?o=G1(t,n,a):K(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(hT(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=G1("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ht(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ht(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new ht(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 A=m.width*m.height,M=T.width*T.height,L=u.width*u.height,I=L-A-M;I<b&&(b=I,x=w)}}if(l&&(o[x].union(m),S=!0),!S){var _=new ht(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var v=h.shouldBePainted(a,i,!0,!0),p=h.__isRendered&&(h.__dirty&We||!v)?h.getPrevPaintRect():null;p&&f(p);var d=v&&(h.__dirty&We||!h.__isRendered)?h.getPaintRect():null;d&&f(d)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var h=n[c],v=h.shouldBePainted(a,i,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var p=h.getPrevPaintRect();p&&f(p)}}var g;do{g=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var y=c+1;y<o.length;)o[c].intersect(o[y])?(g=!0,o[c].union(o[y]),o.splice(y,1)):y++;c++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=n+"px"),i.width=t*a,i.height=n*a,s&&(s.width=t*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,c=this.dpr,h=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/c,l/c));var v=this.domBack;function p(d,g,y,m){if(o.clearRect(d,g,y,m),n&&n!=="transparent"){var _=void 0;if(xc(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Dd(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else a2(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,_=Ad(o,n,{dirty:function(){h.setUnpainted(),h.__painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(d,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,d,g,y,m),o.restore())}!a||u?p(0,0,s,l):a.length&&D(a,function(d){p(d.x*c,d.y*c,d.width*c,d.height*c)})},e}(pr);const wv=b5;var F1=1e5,ka=314159,wu=.01,w5=.001;function T5(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function C5(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var D5=function(){function r(e,t,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=V({},n||{}),this.dpr=n.devicePixelRatio||Cf,this._singleCanvas=i,this.root=e;var o=e.style;o&&(hT(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,c=f.width,h=f.height;n.width!=null&&(c=n.width),n.height!=null&&(h=n.height),this.dpr=n.devicePixelRatio||1,f.width=c*this.dpr,f.height=h*this.dpr,this._width=c,this._height=h;var v=new wv(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[ka]=v,v.zlevel=ka,s.push(ka),this._domRoot=e}else{this._width=uo(e,0,n),this._height=uo(e,1,n);var u=this._domRoot=C5(this._width,this._height);e.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 e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[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=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),!!t){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(F1)),i||(i=n.ctx,i.save()),ei(i,s,a,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(F1)},r.prototype.paintOne=function(e,t){sA(e,t)},r.prototype._paintList=function(e,t,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Hp(function(){l._paintList(e,t,n,a)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(ka).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,t,n)})},r.prototype._doPaintList=function(e,t,n){for(var a=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||n)&&i.push(u)}for(var f=!0,c=!1,h=function(d){var g=i[d],y=g.ctx,m=o&&g.createRepaintRects(e,t,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,b=S&&Date.now(),x=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var w=e[_];(!w.incremental||!w.notClear||n)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(I){var E={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var P=e[T];if(P.__inHover&&(c=!0),a._doPaintEl(P,g,o,I,E,T===g.__endIndex-1),S){var N=Date.now()-b;if(N>15)break}}E.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var A=v.dpr,M=0;M<m.length;++M){var L=m[M];y.save(),y.beginPath(),y.rect(L.x*A,L.y*A,L.width*A,L.height*A),y.clip(),C(L),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,p=0;p<i.length;p++)h(p);return wt.wxa&&D(this._layers,function(d){d&&d.ctx&&d.ctx.draw&&d.ctx.draw()}),{finished:f,needsRefreshHover:c}},r.prototype._doPaintEl=function(e,t,n,a,i,o){var s=t.ctx;if(n){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(ei(s,e,i,o),e.setPrevPaintRect(l))}else ei(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ka);var n=this._layers[e];return n||(n=new wv("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?ct(n,this._layerConfig[e],!0):this._layerConfig[e-wu]&&ct(n,this._layerConfig[e-wu],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},r.prototype.insertLayer=function(e,t){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Cr("ZLevel "+e+" has been used already");return}if(!T5(t)){process.env.NODE_ENV!=="production"&&Cr("Layer of zlevel "+e+" is not valid");return}if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);l++);s=n[a[l]]}if(a.splice(l+1,0,e),n[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this},r.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(c,h){c.__dirty=c.__used=!1});function t(c){i&&(i.__endIndex!==c&&(i.__dirty=!0),i.__endIndex=c)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,f=void 0;s!==u&&(s=u,o=0),a.incremental?(f=this.getLayer(u+w5,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?wu:0),this._needsManuallyCompositing),f.__builtin__||Cr("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,t(l),i=f),a.__dirty&We&&!a.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(c,h){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,D(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?ct(n[e],t,!0):n[e]=t;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+wu){var o=this._layers[i];ct(o,n[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,a=t[e];!a||(a.dom.parentNode.removeChild(a.dom),delete t[e],n.splice(vt(n,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),t!=null&&(a.height=t),e=uo(i,0,a),t=uo(i,1,a),n.style.display="",this._width!==e||t!==this._height){n.style.width=e+"px",n.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(ka).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[ka].dom;var t=new wv("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,i=t.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,i):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.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];ei(n,f,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const A5=D5;function M5(r){r.registerPainter("canvas",A5)}var L5=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var n=t.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Mn(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new at,a=Qt("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(a),a.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=Qt(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Gt);const I5=L5;function wo(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var a=So(r,e,t[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<t.length;o++)i.push(So(r,e,t[o]));return i.join(" ")}}function CM(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!z(e))return e+"";for(var n=[],a=0;a<t.length;a++){var i=r.getDimensionIndex(t[a]);i>=0&&n.push(e[i])}return n.join(" ")}var E5=function(r){R(e,r);function e(t,n,a,i){var o=r.call(this)||this;return o.updateData(t,n,a,i),o}return e.prototype._createSymbol=function(t,n,a,i,o){this.removeAll();var s=Qt(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=P5,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){xn(this.childAt(0))},e.prototype.downplay=function(){bn(this.childAt(0))},e.prototype.setZ=function(t,n){var a=this.childAt(0);a.zlevel=t,a.z=n},e.prototype.setDraggable=function(t,n){var a=this.childAt(0);a.draggable=t,a.cursor=!n&&t?"move":a.cursor},e.prototype.updateData=function(t,n,a,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,f=i&&i.disableAnimation;if(u){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,c)}else{var h=this.childAt(0);h.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(v):Mt(h,v,s,n),Ir(h)}if(this._updateCommon(t,n,l,a,i),u){var h=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Bt(h,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,a,i,o){var s=this.childAt(0),l=t.hostModel,u,f,c,h,v,p,d,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,d=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),p=_.get("disabled"),d=ie(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Ai(t.getItemVisual(n,"symbolOffset"),a);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(n,"style"),w=x.fill;if(s instanceof de){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(V({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;pe(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:w,defaultOpacity:x.opacity});function L(P){return M?t.getName(P):wo(t,P)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var E=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*E,I.scaleY=this._sizeY*E,this.setSymbolScale(1),$t(this,h,v,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,a){var i=this.childAt(0),o=it(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ia(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ia(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return Wo(t.getItemVisual(n,"symbolSize"))},e}(at);function P5(r,e){this.parent.drift(r,e)}const Rl=E5;function Tv(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function H1(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function $1(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:ie(e),cursorStyle:e.get("cursor")}}var N5=function(){function r(e){this.group=new at,this._SymbolCtor=e||Rl}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=H1(t);var n=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=$1(e),u={disableAnimation:s},f=t.getSymbolPoint||function(c){return e.getItemLayout(c)};i||n.removeAll(),e.diff(i).add(function(c){var h=f(c);if(Tv(e,h,c,t)){var v=new o(e,c,l,u);v.setPosition(h),e.setItemGraphicEl(c,v),n.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),p=f(c);if(!Tv(e,p,c,t)){n.remove(v);return}var d=e.getItemVisual(c,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==d)n.remove(v),v=new o(e,c,l,u),v.setPosition(p);else{v.updateData(e,c,l,u);var y={x:p[0],y:p[1]};s?v.attr(y):Mt(v,y,a)}n.add(v),e.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){n.remove(h)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,a){var i=e._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=$1(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=H1(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Tv(t,o,i,n)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){ha(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},n.hostModel)}):t.removeAll()},r}();const Ol=N5;function DM(r,e,t){var n=r.getBaseAxis(),a=r.getOtherAxis(n),i=R5(a,t),o=n.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=G(r.dimensions,function(p){return e.mapDimension(p)}),h=!1,v=e.getCalculationInfo("stackResultDimension");return sa(e,c[0])&&(h=!0,c[0]=v),sa(e,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function R5(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:At(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function AM(r,e,t,n){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,n),o[1-i]=a,e.dataToPoint(o)}function O5(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,a){t.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function k5(r,e,t,n,a,i,o,s){for(var l=O5(r,e),u=[],f=[],c=[],h=[],v=[],p=[],d=[],g=DM(a,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var T=y[x],C=y[x+1],A=m[w],M=m[w+1];(isNaN(T)||isNaN(C))&&(T=A,C=M),u.push(T,C),f.push(A,M),c.push(t[x],t[x+1]),h.push(n[w],n[w+1]),d.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=g.dataDimsForPoint,E=a.dataToPoint([e.get(I[0],L),e.get(I[1],L)]);w=L*2,u.push(E[0],E[1]),f.push(m[w],m[w+1]);var P=AM(g,a,e,L);c.push(P[0],P[1]),h.push(n[w],n[w+1]),d.push(e.getRawIndex(L));break;case"-":b=!1}b&&(v.push(S),p.push(p.length))}p.sort(function(pt,St){return d[pt]-d[St]});for(var N=u.length,k=Yr(N),O=Yr(N),B=Yr(N),F=Yr(N),$=[],_=0;_<p.length;_++){var Z=p[_],Q=_*2,tt=Z*2;k[Q]=u[tt],k[Q+1]=u[tt+1],O[Q]=f[tt],O[Q+1]=f[tt+1],B[Q]=c[tt],B[Q+1]=c[tt+1],F[Q]=h[tt],F[Q+1]=h[tt+1],$[_]=v[Z]}return{current:k,next:O,stackedOnCurrent:B,stackedOnNext:F,status:$}}var Vn=Math.min,Bn=Math.max;function fi(r,e){return isNaN(r)||isNaN(e)}function Vd(r,e,t,n,a,i,o,s,l){for(var u,f,c,h,v,p,d=t,g=0;g<n;g++){var y=e[d*2],m=e[d*2+1];if(d>=a||d<0)break;if(fi(y,m)){if(l){d+=i;continue}break}if(d===t)r[i>0?"moveTo":"lineTo"](y,m),c=y,h=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=i;continue}if(o>0){for(var b=d+i,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g<n;)g++,b+=i,d+=i,x=e[b*2],w=e[b*2+1],y=e[d*2],m=e[d*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;fi(x,w)&&T<n;)T++,b+=i,x=e[b*2],w=e[b*2+1];var C=.5,A=0,M=0,L=void 0,I=void 0;if(T>=n||fi(x,w))v=y,p=m;else{A=x-u,M=w-f;var E=y-u,P=x-y,N=m-f,k=w-m,O=void 0,B=void 0;if(s==="x"){O=Math.abs(E),B=Math.abs(P);var F=A>0?1:-1;v=y-F*O*o,p=m,L=y+F*B*o,I=m}else if(s==="y"){O=Math.abs(N),B=Math.abs(k);var $=M>0?1:-1;v=y,p=m-$*O*o,L=y,I=m+$*B*o}else O=Math.sqrt(E*E+N*N),B=Math.sqrt(P*P+k*k),C=B/(B+O),v=y-A*o*(1-C),p=m-M*o*(1-C),L=y+A*o*C,I=m+M*o*C,L=Vn(L,Bn(x,y)),I=Vn(I,Bn(w,m)),L=Bn(L,Vn(x,y)),I=Bn(I,Vn(w,m)),A=L-y,M=I-m,v=y-A*O/B,p=m-M*O/B,v=Vn(v,Bn(u,y)),p=Vn(p,Bn(f,m)),v=Bn(v,Vn(u,y)),p=Bn(p,Vn(f,m)),A=y-v,M=m-p,L=y+A*B/O,I=m+M*B/O}r.bezierCurveTo(c,h,v,p,y,m),c=L,h=I}else r.lineTo(y,m)}u=y,f=m,d+=i}return g}var MM=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),V5=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new MM},e.prototype.buildPath=function(t,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&fi(a[o*2-2],a[o*2-1]);o--);for(;i<o&&fi(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=Vd(t,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Qr.CMD,s,l,u=n==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],p=i[c++],_=u?(t-s)/(v-s):(t-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(v-s)*_+s;return u?[t,S]:[S,t]}s=v,l=p;break;case o.C:v=i[c++],p=i[c++],d=i[c++],g=i[c++],y=i[c++],m=i[c++];var b=u?xf(s,v,d,y,t,f):xf(l,p,g,m,t,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?ne(l,p,g,m,w):ne(s,v,d,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(mt),B5=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(MM),LM=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new B5},e.prototype.buildPath=function(t,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&fi(a[s*2-2],a[s*2-1]);s--);for(;o<s&&fi(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=Vd(t,a,o,s,s,1,n.smooth,l,n.connectNulls);Vd(t,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e}(mt);function IM(r,e,t,n,a){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||2;o-=f/2,s-=f/2,l+=f,u+=f,o=Math.floor(o),l=Math.round(l);var c=new Tt({shape:{x:o,y:s,width:l,height:u}});if(e){var h=r.getBaseAxis(),v=h.isHorizontal(),p=h.inverse;v?(p&&(c.shape.x+=l),c.shape.width=0):(p||(c.shape.y+=u),c.shape.height=0);var d=j(a)?function(g){a(g,c)}:null;Bt(c,{shape:{width:l,height:u,x:o,y:s}},t,null,n,d)}return c}function EM(r,e,t){var n=r.getArea(),a=Yt(n.r0,1),i=Yt(n.r,1),o=new ze({shape:{cx:Yt(r.cx,1),cy:Yt(r.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,Bt(o,{shape:{endAngle:n.endAngle,r:i}},t)}return o}function th(r,e,t,n,a){if(r){if(r.type==="polar")return EM(r,e,t);if(r.type==="cartesian2d")return IM(r,e,t,n,a)}else return null;return null}function Li(r,e){return r.type===e}function W1(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function U1(r){for(var e=1/0,t=1/0,n=-1/0,a=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),a=Math.max(s,a))}return[[e,t],[n,a]]}function Y1(r,e){var t=U1(r),n=t[0],a=t[1],i=U1(e),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Z1(r){return At(r)?r:r?.5:0}function z5(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),a=Yr(n*2),i=0;i<n;i++){var o=AM(t,r,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function zn(r,e,t,n){var a=e.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],f=[],c=[];if(n){for(s=0;s<r.length;s+=2)!isNaN(r[s])&&!isNaN(r[s+1])&&c.push(r[s],r[s+1]);r=c}for(s=0;s<r.length-2;s+=2)switch(f[0]=r[s+2],f[1]=r[s+3],u[0]=r[s],u[1]=r[s+1],o.push(u[0],u[1]),t){case"end":l[i]=f[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var h=(u[i]+f[i])/2,v=[];l[i]=v[i]=h,l[1-i]=u[1-i],v[1-i]=f[1-i],o.push(l[0],l[1]),o.push(v[0],v[1]);break;default:l[i]=u[i],l[1-i]=f[1-i],o.push(l[0],l[1])}return o.push(r[s++],r[s++]),o}function G5(r,e){var t=[],n=r.length,a,i;function o(f,c,h){var v=f.coord,p=(h-v)/(c.coord-v),d=j2(p,[f.color,c.color]);return{coord:h,color:d}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){i?t.push(o(i,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),i=l}return t}function F5(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(a),u=G(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=G5(u,a==="x"?t.getWidth():t.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var p=10,d=h[0].coord-p,g=h[v-1].coord+p,y=g-d;if(y<.001)return"transparent";D(h,function(_){_.offset=(_.coord-d)/y}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new Dl(0,0,0,0,h,!0);return m[a]=d,m[a+"2"]=g,m}}function H5(r,e,t){var n=r.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=t.getAxesByScale("ordinal")[0];if(!!i&&!(a&&$5(i,e))){var o=e.mapDimension(i.dim),s={};return D(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function $5(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(Rl.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function W5(r,e){return isNaN(r)||isNaN(e)}function U5(r){for(var e=r.length/2;e>0&&W5(r[e*2-2],r[e*2-1]);e--);return e-1}function X1(r,e){return[r[e*2],r[e*2+1]]}function Y5(r,e,t){for(var n=r.length/2,a=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+a],!(isNaN(o)||isNaN(r[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function PM(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Ie.length;e++)if(r.get([Ie[e],"endLabel","show"]))return!0;return!1}function Cv(r,e,t,n){if(Li(e,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=PM(n)?function(v,p){r._endLabelOnDuring(v,p,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=IM(e,t,n,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),EM(e,t,n)}function Z5(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),a=t.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var X5=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new at,n=new Ol;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),f=t.getModel("areaStyle"),c=l.getLayout("points")||[],h=o.type==="polar",v=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,y=this._lineGroup,m=!n.ssr&&t.isAnimationEnabled(),_=!f.isEmpty(),S=f.get("origin"),b=DM(o,l,S),x=_&&z5(o,l,b),w=t.get("showSymbol"),T=t.get("connectNulls"),C=w&&!h&&H5(t,l,o),A=this._data;A&&A.eachItemGraphicEl(function(St,dt){St.__temp&&(s.remove(St),A.setItemGraphicEl(dt,null))}),w||p.remove(),s.add(y);var M=h?!1:t.get("step"),L;o&&o.getArea&&t.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var I=F5(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(d&&v.type===o.type&&M===this._step))w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(St){return[c[St*2],c[St*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,L),M&&(c=zn(c,o,M,T),x&&(x=zn(x,o,M,T))),d=this._newPolyline(c),_?g=this._newPolygon(c,x):g&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,mi(I)),y.setClipPath(Cv(this,o,!0,t));else{_&&!g?g=this._newPolygon(c,x):g&&!_&&(y.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,mi(I));var E=y.getClipPath();if(E){var P=Cv(this,o,!1,t);Bt(E,{shape:P.shape},t)}else y.setClipPath(Cv(this,o,!0,t));w&&p.updateData(l,{isIgnore:C,clipShape:L,disableAnimation:!0,getSymbolPoint:function(St){return[c[St*2],c[St*2+1]]}}),(!W1(this._stackedOnPoints,x)||!W1(this._points,c))&&(m?this._doUpdateAnimation(l,x,o,a,M,S,T):(M&&(c=zn(c,o,M,T),x&&(x=zn(x,o,M,T))),d.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:x})))}var N=t.getModel("emphasis"),k=N.get("focus"),O=N.get("blurScope"),B=N.get("disabled");if(d.useStyle(et(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),ve(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=d.getState("emphasis").style;F.lineWidth=+d.style.lineWidth+1}it(d).seriesIndex=t.seriesIndex,$t(d,k,O,B);var $=Z1(t.get("smooth")),Z=t.get("smoothMonotone");if(d.setShape({smooth:$,smoothMonotone:Z,connectNulls:T}),g){var Q=l.getCalculationInfo("stackedOnSeries"),tt=0;g.useStyle(et(f.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(tt=Z1(Q.get("smooth"))),g.setShape({smooth:$,stackedOnSmooth:tt,smoothMonotone:Z,connectNulls:T}),ve(g,t,"areaStyle"),it(g).seriesIndex=t.seriesIndex,$t(g,k,O,B)}var pt=function(St){i._changePolyState(St)};l.eachItemGraphicEl(function(St){St&&(St.onHoverStateChange=pt)}),this._polyline.onHoverStateChange=pt,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=c,this._step=M,this._valueOrigin=S,t.get("triggerLineEvent")&&(this.packEventData(t,d),g&&this.packEventData(t,g))},e.prototype.packEventData=function(t,n){it(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,a,i){var o=t.getData(),s=di(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],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=t.get("zlevel")||0,v=t.get("z")||0;u=new Rl(o,s),u.x=f,u.y=c,u.setZ(h,v);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=h,p.z=v,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Vt.prototype.highlight.call(this,t,n,a,i)},e.prototype.downplay=function(t,n,a,i){var o=t.getData(),s=di(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 Vt.prototype.downplay.call(this,t,n,a,i)},e.prototype._changePolyState=function(t){var n=this._polygon;Lf(this._polyline,t),n&&Lf(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new V5({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new LM({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=j(c)?c(null):c;t.eachItemGraphicEl(function(v,p){var d=v;if(d){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(a)if(o){var S=a,b=n.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=a;i?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=j(c)?c(p):f*w+h,C=d.getSymbolPath(),A=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,a){var i=t.getModel("endLabel");if(PM(t)){var o=t.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 Dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=U5(l);f>=0&&(pe(s,ie(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?CM(o,v):wo(o,c)},enableTextSetter:!0},Z5(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,a,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=a.getLayout("points"),h=a.hostModel,v=h.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",T=Y5(c,S,w),C=T.range,A=C[1]-C[0],M=void 0;if(A>=1){if(A>1&&!v){var L=X1(c,C[0]);u.attr({x:L[0]+b,y:L[1]+x}),o&&(M=h.getRawValue(C[0]))}else{var L=f.getPointOn(S,w);L&&u.attr({x:L[0]+b,y:L[1]+x});var I=h.getRawValue(C[0]),E=h.getRawValue(C[1]);o&&(M=QT(a,p,I,E,T.t))}i.lastFrameIndex=C[0]}else{var P=t===1||i.lastFrameIndex>0?C[0]:0,L=X1(c,P);o&&(M=h.getRawValue(P)),u.attr({x:L[0]+b,y:L[1]+x})}if(o){var N=Oo(u);typeof N.setLabelText=="function"&&N.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(t,n,a,i,o,s,l){var u=this._polyline,f=this._polygon,c=t.hostModel,h=k5(this._data,t,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),v=h.current,p=h.stackedOnCurrent,d=h.next,g=h.stackedOnNext;if(o&&(v=zn(h.current,a,o,l),p=zn(h.stackedOnCurrent,a,o,l),d=zn(h.next,a,o,l),g=zn(h.stackedOnNext,a,o,l)),Y1(v,d)>3e3||f&&Y1(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=h.current,u.shape.points=v;var y={shape:{points:d}};h.current!==v&&(y.shape.__points=h.next),u.stopAnimation(),Mt(u,y,c),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),Mt(f,{shape:{stackedOnPoints:g}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,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,A=m[T].ptIdx*2;C.x=w[A],C.y=w[A+1],C.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Vt);const q5=X5;function kl(r,e){return{seriesType:r,plan:Ho(),reset:function(t){var n=t.getData(),a=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(!!a){var s=G(a.dimensions,function(v){return n.mapDimension(v)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");sa(n,s[0])&&(s[0]=u),sa(n,s[1])&&(s[1]=u);var f=n.getStore(),c=n.getDimensionIndex(s[0]),h=n.getDimensionIndex(s[1]);return l&&{progress:function(v,p){for(var d=v.end-v.start,g=o&&Yr(d*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(c,_);b=a.dataToPoint(x,null,m)}else y[0]=f.get(c,_),y[1]=f.get(h,_),b=a.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):p.setItemLayout(_,b.slice())}o&&p.setLayout("points",g)}}}}}}var j5={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},K5=function(r){return Math.round(r.length/2)};function NM(r){return{seriesType:r,reset:function(e,t,n){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v));var p=void 0;W(i)?p=j5[i]:j(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,p,K5))}}}}}function J5(r){r.registerChartView(q5),r.registerSeriesModel(I5),r.registerLayout(kl("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,NM("line"))}var RM=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(a)D(i.getAxes(),function(h,v){if(h.type==="category"&&n!=null){var p=h.getTicksCoords(),d=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&(d+=1),p.length<2)return;if(p.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,_=1,S=0;S<p.length;S++){var b=p[S].coord,x=S===p.length-1?p[S-1].tickValue+_:p[S].tickValue;if(x===d){m=b;break}else if(x<d)y=b;else if(y!=null&&x>d){m=(b+y)/2;break}S===1&&(_=x-p[0].tickValue)}m==null&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[v]=h.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Gt);Gt.registerClass(RM);const jf=RM;var Q5=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return Mn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,a){return a.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=va(jf.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(jf);const tG=Q5;var eG=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}(),rG=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new eG},e.prototype.buildPath=function(t,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,c=n.endAngle,h=n.clockwise,v=Math.PI*2,p=h?c-f<v:f-c<v;p||(f=c-(h?v:-v));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(c),m=Math.sin(c);p?(t.moveTo(d*o+a,g*o+i),t.arc(d*u+a,g*u+i,l,-Math.PI+f,f,!h)):t.moveTo(d*s+a,g*s+i),t.arc(a,i,s,f,c,!h),t.arc(y*u+a,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&t.arc(a,i,o,c,f,h)},e}(mt);const Kf=rG;function nG(r,e){e=e||{};var t=e.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Df(n,a,i);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,p=(h+v)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(d),x=c+h*S(d),w="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),x=c+(v-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),x=c+(v+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+p*_(d)+Tu(d,l+m,!1),x=c+p*S(d)+Cu(d,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+p*_(d)+Tu(d,-l+m,!1),x=c+p*S(d)+Cu(d,-l+m,!1),w="left",T="middle";break;case"middle":b=f+p*_(y),x=c+p*S(y),w="center",T="middle";break;case"endArc":b=f+(h+l)*_(y),x=c+(h+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(h-l)*_(y),x=c+(h-l)*S(y),w="center",T="top";break;case"endAngle":b=f+p*_(g)+Tu(g,l+m,!0),x=c+p*S(g)+Cu(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+p*_(g)+Tu(g,-l+m,!0),x=c+p*S(g)+Cu(g,-l+m,!0),w="right",T="middle";break;default:return Df(n,a,i)}return n=n||{},n.x=b,n.y=x,n.align=w,n.verticalAlign=T,n}}function aG(r,e,t,n){if(At(n)){r.setTextConfig({rotation:n});return}else if(z(e)){r.setTextConfig({rotation:0});return}var a=r.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default: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 Tu(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Cu(r,e,t){return e*Math.cos(r)*(t?1:-1)}function ri(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(n,function(i){return Mr(i,a)})}}var Dv=Math.max,Av=Math.min;function iG(r,e){var t=r.getArea&&r.getArea();if(Li(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=a,t.width+=a*2):(t.y-=a,t.height+=a*2)}}return t}var oG=function(r){R(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,a,i){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,a):this._renderNormal(t,n,a,i)):process.env.NODE_ENV!=="production"&&Ft("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){ha(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,a,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=t.isAnimationEnabled()?t:null,v=sG(t,u);v&&this._enableRealtimeSort(v,s,a);var p=t.get("clip",!0)||v,d=iG(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(M){var L=Du[u.type](s,M),I=pG(u,c,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[M]=I,I}s.diff(l).add(function(M){var L=s.getItemModel(M),I=Du[u.type](s,M,L);if(y&&T(M),!(!s.hasValue(M)||!Q1[u.type](I))){var E=!1;p&&(E=q1[u.type](d,I));var P=j1[u.type](t,s,M,I,c,h,f.model,!1,g);v&&(P.forceLabelAnimation=!0),tS(P,s,M,L,I,t,c,u.type==="polar"),x?P.attr({shape:I}):v?K1(v,h,P,I,M,c,!1,!1):Bt(P,{shape:I},t,M),s.setItemGraphicEl(M,P),o.add(P),P.ignore=E}}).update(function(M,L){var I=s.getItemModel(M),E=Du[u.type](s,M,I);if(y){var P=void 0;b.length===0?P=T(L):(P=b[L],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[M]=P);var N=Du[u.type](s,M),k=kM(c,N,u);Mt(P,{shape:k},h,M)}var O=l.getItemGraphicEl(L);if(!s.hasValue(M)||!Q1[u.type](E)){o.remove(O);return}var B=!1;if(p&&(B=q1[u.type](d,E),B&&o.remove(O)),O?Ir(O):O=j1[u.type](t,s,M,E,c,h,f.model,!!O,g),v&&(O.forceLabelAnimation=!0),w){var F=O.getTextContent();if(F){var $=Oo(F);$.prevValue!=null&&($.prevValue=$.value)}}else tS(O,s,M,I,E,t,c,u.type==="polar");x?O.attr({shape:E}):v?K1(v,h,O,E,M,c,!0,w):Mt(O,{shape:E},t,M,null),s.setItemGraphicEl(M,O),O.ignore=B,o.add(O)}).remove(function(M){var L=l.getItemGraphicEl(M);L&&rl(L,t,M)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new at);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,a){this._clear(),rS(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),rS(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&th(t.coordinateSystem,!1,t),a=this.group;n?a.setClipPath(n):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,a){var i=this;if(!!n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,a){var i=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=a(s);l=l==null?NaN:l,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,a){for(var i=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,a,i){if(!!this._isOrderChangedWithinSameData(t,n,a)){var o=this._dataSort(t,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,a){var i=n.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){rl(i,t,it(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Vt),q1={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,i=r.y+r.height,o=Dv(e.x,r.x),s=Av(e.x+e.width,a),l=Dv(e.y,r.y),u=Av(e.y+e.height,i),f=s<o,c=u<l;return e.x=f&&o>a?s:o,e.y=c&&l>i?u:l,e.width=f?0:s-o,e.height=c?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||c},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var a=Av(e.r,r.r),i=Dv(e.r0,r.r0);e.r=a,e.r0=i;var o=a-i<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},j1={cartesian2d:function(r,e,t,n,a,i,o,s,l){var u=new Tt({shape:V({},n),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,c=a?"height":"width";f[c]=0}return u},polar:function(r,e,t,n,a,i,o,s,l){var u=!a&&l?Kf:ze,f=new u({shape:n,z2:1});f.name="item";var c=OM(a);if(f.calculateTextPosition=nG(c,{isRoundCap:u===Kf}),i){var h=f.shape,v=a?"r":"endAngle",p={};h[v]=a?n.r0:n.startAngle,p[v]=n[v],(s?Mt:Bt)(f,{shape:p},i)}return f}};function sG(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(n.type!=="category"&&Ft("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Ft("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function K1(r,e,t,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Mt:Bt)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Mt:Bt)(t,{shape:u},f,a)}function J1(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var lG=["x","y","width","height"],uG=["cx","cy","r","startAngle","endAngle"],Q1={cartesian2d:function(r){return!J1(r,lG)},polar:function(r){return!J1(r,uG)}},Du={cartesian2d:function(r,e,t){var n=r.getItemLayout(e),a=t?cG(t,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function fG(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function OM(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function tS(r,e,t,n,a,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=ri(n.getModel("itemStyle"),f,!0);V(f,c),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=n.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=ie(n);pe(r,p,{labelFetcher:i,labelDataIndex:t,defaultText:wo(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,aG(r,g==="outside"?v:g,OM(o),n.get(["label","rotate"]))}KC(d,p,i.getRawValue(t),function(m){return CM(e,m)});var y=n.getModel(["emphasis"]);$t(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),ve(r,n),fG(a)&&(r.style.fill="none",r.style.stroke="none",D(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function cG(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,a,i)}var hG=function(){function r(){}return r}(),eS=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new hG},e.prototype.buildPath=function(t,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[i]=u,l[o]=a[f+2],s[i]=a[f+i],s[o]=a[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(mt);function rS(r,e,t,n){var a=r.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var f=new eS({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var c=new eS({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),it(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",nS),c.on("mousemove",nS)),t&&t.push(c)}var nS=gy(function(r){var e=this,t=vG(e,r.offsetX,r.offsetY);it(e).dataIndex=t>=0?t:null},30,!1);function vG(r,e,t){for(var n=r.baseDimIdx,a=1-n,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[n]=u,l[a]=i[h+2],s[n]=i[h+n],s[a]=i[h+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function kM(r,e,t){if(Li(t,"cartesian2d")){var n=e,a=t.getArea();return{x:r?n.x:a.x,y:r?a.y:n.y,width:r?n.width:a.width,height:r?a.height:n.height}}else{var a=t.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:i.r0,r:r?a.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function pG(r,e,t){var n=r.type==="polar"?ze:Tt;return new n({shape:kM(e,t,r),silent:!0,z2:0})}const dG=oG;function gG(r){r.registerChartView(dG),r.registerSeriesModel(tG),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(GA,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,FA("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,NM("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var Au=Math.PI*2,aS=Math.PI/180;function VM(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function BM(r,e){var t=VM(r,e),n=r.get("center"),a=r.get("radius");z(a)||(a=[0,a]);var i=H(t.width,e.getWidth()),o=H(t.height,e.getHeight()),s=Math.min(i,o),l=H(a[0],s/2),u=H(a[1],s/2),f,c,h=r.coordinateSystem;if(h){var v=h.dataToPoint(n);f=v[0]||0,c=v[1]||0}else z(n)||(n=[n,n]),f=H(n[0],i)+t.x,c=H(n[1],o)+t.y;return{cx:f,cy:c,r0:l,r:u}}function yG(r,e,t){e.eachSeriesByType(r,function(n){var a=n.getData(),i=a.mapDimension("value"),o=VM(n,t),s=BM(n,t),l=s.cx,u=s.cy,f=s.r,c=s.r0,h=-n.get("startAngle")*aS,v=n.get("minAngle")*aS,p=0;a.each(i,function(A){!isNaN(A)&&p++});var d=a.getSum(i),g=Math.PI/(d||p)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var b=Au,x=0,w=h,T=y?1:-1;if(a.setLayout({viewRect:o,r:f}),a.each(i,function(A,M){var L;if(isNaN(A)){a.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:c,r:m?NaN:f});return}m!=="area"?L=d===0&&_?g:A*g:L=Au/p,L<v?(L=v,b-=v):x+=A;var I=w+T*L;a.setItemLayout(M,{angle:L,startAngle:w,endAngle:I,clockwise:y,cx:l,cy:u,r0:c,r:m?It(A,S,[c,f]):f}),w=I}),b<Au&&p)if(b<=.001){var C=Au/p;a.each(i,function(A,M){if(!isNaN(A)){var L=a.getItemLayout(M);L.angle=C,L.startAngle=h+T*M*C,L.endAngle=h+T*(M+1)*C}})}else g=b/x,w=h,a.each(i,function(A,M){if(!isNaN(A)){var L=a.getItemLayout(M),I=L.angle===v?v:A*g;L.startAngle=w,L.endAngle=w+T*I,w+=T*I}})})}function Vl(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var mG=Math.PI/180;function iS(r,e,t,n,a,i,o,s,l,u){if(r.length<2)return;function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-t),b=n+_.len,x=b*b,w=Math.sqrt((1-Math.abs(S*S/y))*x),T=e+(w+_.len2)*a,C=T-_.label.x,A=_.targetTextWidth-C*a;zM(_,A,!0),_.label.x=T}}function c(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[m],S=_.label.y>t?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*a,w=n+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var p=r[v].label.x-u;r[v].linePoints[1][0]+=p,r[v].label.x=u}uM(r,l,l+o)&&c(r)}function _G(r,e,t,n,a,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;Mv(r[h])||(v.x<e?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var p=r[h];if(!Mv(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?v.x<e?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<e?g=f-o-p.bleedMargin:g=o+a-c-p.bleedMargin:v.x<e?g=v.x-o-p.bleedMargin:g=o+a-v.x-p.bleedMargin,p.targetTextWidth=g,zM(p,g)}}iS(u,e,t,n,1,a,i,o,s,c),iS(l,e,t,n,-1,a,i,o,s,f);for(var h=0;h<r.length;h++){var p=r[h];if(!Mv(p)&&p.linePoints){var v=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=p.rect.width+S,x=d[1][0]-d[2][0];y?v.x<e?d[2][0]=o+p.edgeDistance+b+p.labelDistance:d[2][0]=o+a-p.edgeDistance-b-p.labelDistance:(v.x<e?d[2][0]=v.x+p.labelDistance:d[2][0]=v.x-p.labelDistance,d[1][0]=d[2][0]+x),d[1][1]=d[2][1]=v.y}}}function zM(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var n=r.label,a=n.style,i=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=i.width+(o?0:l);if(e<f||t){var c=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=e-l,p=e<f?v:t?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",p)}var d=n.getBoundingRect();i.width=d.width;var g=(n.style.margin||0)+2.1;i.height=d.height+g,i.y-=(i.height-c)/2}}}function Mv(r){return r.position==="center"}function SG(r){var e=r.getData(),t=[],n,a,i=!1,o=(r.get("minShowLabelAngle")||0)*mG,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),M=e.getItemModel(x),L=M.getModel("label"),I=L.get("position")||M.get(["emphasis","label","position"]),E=L.get("distanceToLabelLine"),P=L.get("alignTo"),N=H(L.get("edgeDistance"),u),k=L.get("bleedMargin"),O=M.getModel("labelLine"),B=O.get("length");B=H(B,u);var F=O.get("length2");if(F=H(F,u),Math.abs(T.endAngle-T.startAngle)<o){D(C.states,v),C.ignore=!0,A&&(D(A.states,v),A.ignore=!0);return}if(!!p(C)){var $=(T.startAngle+T.endAngle)/2,Z=Math.cos($),Q=Math.sin($),tt,pt,St,dt;n=T.cx,a=T.cy;var rt=I==="inside"||I==="inner";if(I==="center")tt=T.cx,pt=T.cy,dt="center";else{var gt=(rt?(T.r+T.r0)/2*Z:T.r*Z)+n,st=(rt?(T.r+T.r0)/2*Q:T.r*Q)+a;if(tt=gt+Z*3,pt=st+Q*3,!rt){var q=gt+Z*(B+l-T.r),lt=st+Q*(B+l-T.r),zt=q+(Z<0?-1:1)*F,bt=lt;P==="edge"?tt=Z<0?f+N:f+u-N:tt=zt+(Z<0?-E:E),pt=bt,St=[[gt,st],[q,lt],[zt,bt]]}dt=rt?"center":P==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Ut=Math.PI,Ht=0,ge=L.get("rotate");if(At(ge))Ht=ge*(Ut/180);else if(I==="center")Ht=0;else if(ge==="radial"||ge===!0){var nn=Z<0?-$+Ut:-$;Ht=nn}else if(ge==="tangential"&&I!=="outside"&&I!=="outer"){var Ee=Math.atan2(Z,Q);Ee<0&&(Ee=Ut*2+Ee);var Hl=Q>0;Hl&&(Ee=Ut+Ee),Ht=Ee-Ut}if(i=!!Ht,C.x=tt,C.y=pt,C.rotation=Ht,C.setStyle({verticalAlign:"middle"}),rt){C.setStyle({align:dt});var lh=C.states.select;lh&&(lh.x+=C.x,lh.y+=C.y)}else{var In=C.getBoundingRect().clone();In.applyTransform(C.getComputedTransform());var Nm=(C.style.margin||0)+2.1;In.y-=Nm/2,In.height+=Nm,t.push({label:C,labelLine:A,position:I,len:B,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ut(Z,Q),linePoints:St,textAlign:dt,labelDistance:E,labelAlignTo:P,edgeDistance:N,bleedMargin:k,rect:In,unconstrainedWidth:In.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:rt})}}),!i&&r.get("avoidLabelOverlap")&&_G(t,n,a,l,u,h,f,c);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(D(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(D(m.states,v),m.ignore=!0):(oM(b,g.minTurnAngle),Nz(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new ut(b[0][0],b[0][1])})}}}var xG=function(r){R(e,r);function e(t,n,a){var i=r.call(this)||this;i.z2=2;var o=new Dt;return i.setTextContent(o),i.updateData(t,n,a,!0),i}return e.prototype.updateData=function(t,n,a,i){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),c=V(ri(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Bt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Bt(o,{shape:{r:f.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Bt(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Mt(o,{shape:{endAngle:f.endAngle}},s,n))}else Ir(o),Mt(o,{shape:c},s,n);o.useStyle(t.getItemVisual(n,"style")),ve(o,l);var v=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(v)*p,g=Math.sin(v)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=V({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ri(u.getModel("itemStyle"),f)),V(o.ensureState("select"),{x:d,y:g,shape:ri(l.getModel(["select","itemStyle"]),f)}),V(o.ensureState("blur"),{shape:ri(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&V(m.ensureState("select"),{x:d,y:g}),V(_.ensureState("select"),{x:d,y:g}),$t(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;pe(i,ie(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||n.getName(a)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=t.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Fe,this.setTextGuideLine(v)),Iy(this,Ey(o),{stroke:u,opacity:ur(s.get(["lineStyle","opacity"]),f,1)})}},e}(ze),bG=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var h=new ze({shape:BM(t,a)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var p=new xG(o,v,u);o.setItemGraphicEl(v,p),l.add(p)}).update(function(v,p){var d=s.getItemGraphicEl(p);d.updateData(o,v,u),d.off("click"),l.add(d),o.setItemGraphicEl(v,d)}).remove(function(v){var p=s.getItemGraphicEl(v);rl(p,t,v)}).execute(),SG(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e}(Vt);const wG=bG;function Uo(r,e,t){e=z(e)&&{coordDimensions:e}||V({encodeDefine:r.getEncode()},e);var n=r.getSource(),a=El(n,e).dimensions,i=new Me(a,r);return i.initData(n,t),i}var TG=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}();const Bl=TG;var CG=Ct(),DG=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Uo(this,{coordDimensions:["value"],encodeDefaulter:ot(oy,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),a=CG(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=PP(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){pi(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Gt);const AG=DG;function MG(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(At(o)&&!isNaN(o)&&o<0)})}}}function LG(r){r.registerChartView(wG),r.registerSeriesModel(AG),aA("pie",r.registerAction),r.registerLayout(ot(yG,"pie")),r.registerProcessor(Vl("pie")),r.registerProcessor(MG("pie"))}var IG=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Gt);const EG=IG;var GM=4,PG=function(){function r(){}return r}(),NG=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.getDefaultShape=function(){return new PG},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,n){var a=n.points,i=n.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<GM,f=this.softClipShape,c;if(u){this._ctx=l;return}for(this._ctx=null,c=this._off;c<a.length;){var h=a[c++],v=a[c++];isNaN(h)||isNaN(v)||f&&!f.contain(h,v)||(s.x=h-i[0]/2,s.y=v-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=c,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,n=t.points,a=t.size,i=this._ctx,o=this.softClipShape,s;if(!!i){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,n){for(var a=this.shape,i=a.points,o=a.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,c=i[f]-s/2,h=i[f+1]-l/2;if(t>=c&&n>=h&&t<=c+s&&n<=h+l)return u}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.points,i=n.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,c=-1/0,h=0;h<a.length;){var v=a[h++],p=a[h++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(p,u),c=Math.max(p,c)}t=this._rect=new ht(l-o/2,u-s/2,f-l+o,c-u+s)}return t},e}(mt),RG=function(){function r(){this.group=new at}return r.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var a=(n.endIndex-n.startIndex)*2,i=n.startIndex*4*2;t=new Float32Array(t.buffer,i,a)}n.setShape("points",t),n.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,n){var a=this._newAdded[0],i=t.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,n)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new NG({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Qt(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<GM;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=it(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var c=e.hoverDataIdx;c>=0&&(u.dataIndex=c+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const OG=RG;var kG=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._symbolDraw.incrementalUpdate(t,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=t.end===n.getData().count()},e.prototype.updateTransform=function(t,n,a){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=kl("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(t,n){var a=this._symbolDraw,i=n.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new OG:new Ol,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Vt);const VG=kG;var BG=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(xt);const zG=BG;var Bd=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Jt).models[0]},e.type="cartesian2dAxis",e}(xt);te(Bd,Nl);var FM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},GG=ct({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},FM),ky=ct({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},FM),FG=ct({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ky),HG=et({logBase:10},ky);const HM={category:GG,value:ky,time:FG,log:HG};var $G={value:1,category:1,time:1,log:1};function To(r,e,t,n){D($G,function(a,i){var o=ct(ct({},HM[i],!0),n,!0),s=function(l){R(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=il(this),v=h?Bo(f):{},p=c.getTheme();ct(f,p.get(i+"Axis")),ct(f,this.getDefaultOption()),f.type=oS(f),h&&oa(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ed.createByAxisModel(this))},u.prototype.getCategories=function(f){var c=this.option;if(c.type==="category")return f?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",oS)}function oS(r){return r.type||(r.data?"category":"value")}var WG=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Et(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const UG=WG;var zd=["x","y"];function sS(r){return r.type==="interval"||r.type==="time"}var YG=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=zd,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!sS(t)||!sS(n))){var a=t.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-a[0]*f,v=o[1]-i[0]*c,p=this._transform=[f,0,0,c,h,v];this._invTransform=Io([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,n){var a=this.dataToPoint(t),i=this.dataToPoint(n),o=this.getArea(),s=new ht(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,a){a=a||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return fe(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},e.prototype.clampData=function(t,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(t[0]),u=i.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var a=[];if(this._invTransform)return fe(a,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(t[0]),n),a[1]=o.coordToData(o.toLocalCoord(t[1]),n),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(t[0],t[1]),i=Math.min(n[0],n[1]),o=Math.max(t[0],t[1])-a,s=Math.max(n[0],n[1])-i;return new ht(a,i,o,s)},e}(UG),ZG=function(r){R(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Nr);const XG=ZG;function Gd(r,e,t){t=t||{};var n=r.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,f=n.getRect(),c=[f.x,f.x+f.width,f.y,f.y+f.height],h={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,p=u==="x"?[c[2]-v,c[3]+v]:[c[0]-v,c[1]+v];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[h.onZero]=Math.max(Math.min(d,p[1]),p[0])}i.position=[u==="y"?p[h[l]]:c[0],u==="x"?p[h[l]]:c[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[h[s]]-p[h.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Kt(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function lS(r){return r.get("coordinateSystem")==="cartesian2d"}function uS(r){var e={xAxisModel:null,yAxisModel:null};return D(e,function(t,n){var a=n.replace(/Model$/,""),i=r.getReferringComponents(a,Jt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+ur(r.get(a+"Index"),r.get(a+"Id"),0)+'" not found');e[n]=i}),e}var Lv=Math.log;function $M(r,e,t){var n=la.prototype,a=n.getTicks.call(t),i=n.getTicks.call(t,!0),o=a.length-1,s=n.getInterval.call(t),l=XA(r,e),u=l.extent,f=l.fixMin,c=l.fixMax;if(r.type==="log"){var h=Lv(r.base);u=[Lv(u[0])/h,Lv(u[1])/h]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var v=n.getExtent.call(r);f&&(u[0]=v[0]),c&&(u[1]=v[1]);var p=n.getInterval.call(r),d=u[0],g=u[1];if(f&&c)p=(g-d)/o;else if(f)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=dv(p),g=u[0]+p*o;else if(c)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=dv(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=dv(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Yt(g-m),d<0&&u[0]>=0?(d=0,g=Yt(m)):g>0&&u[1]<=0&&(g=0,d=-Yt(m))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(r,d+p*_,g+p*S),n.setInterval.call(r,p),(_||S)&&n.setNiceExtent.call(r,d+p,g-p),process.env.NODE_ENV!=="production"){var b=n.getTicks.call(r);b[1]&&(!BB(p)||rd(b[1].value)>rd(p))&&Ft("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var qG=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=zd,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=_t(o),u=l.length;if(!!u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],p=v.model,d=v.scale;Pd(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(bo(d,p),Pd(d)&&(s=v))}f.length&&(s||(s=f.pop(),bo(s.scale,s.model)),D(f,function(g){$M(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};D(n.x,function(o){fS(n,"y",o,i)}),D(n.y,function(o){fS(n,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var a=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=re(a,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(D(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=uz(u);if(f){var c=u.isHorizontal()?"height":"width",h=u.model.get(["axisLabel","margin"]);o[c]-=f[c]+h,u.position==="top"?o.y+=f.height+h:u.position==="left"&&(o.x+=f.width+h)}}}),l()),D(this._coordsList,function(u){u.calcAffineTransform()});function l(){D(s,function(u){var f=u.isHorizontal(),c=f?[0,o.width]:[0,o.height],h=u.inverse?1:0;u.setExtent(c[h],c[1-h]),jG(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===t)return i[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Jt).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",Jt).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,vt(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,D(s.x,function(f,c){D(s.y,function(h,v){var p="x"+c+"y"+v,d=new YG(p);d.master=a,d.model=e,a._coordsMap[p]=d,a._coordsList.push(d),d.addAxis(f),d.addAxis(h)})});function u(f){return function(c,h){if(!!Iv(c,e)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var p=new XG(f,Jc(c),[0,0],c.get("type"),v),d=p.type==="category";p.onBand=d&&c.get("boundaryGap"),p.inverse=c.get("inverse"),c.axis=p,p.model=c,p.grid=i,p.index=h,i._axesList.push(p),s[f][h]=p,l[f]++}}}},r.prototype._updateScale=function(e,t){D(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(lS(a)){var i=uS(a),o=i.xAxisModel,s=i.yAxisModel;if(!Iv(o,t)||!Iv(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),f=l.getAxis("x"),c=l.getAxis("y");n(u,f),n(u,c)}},this);function n(a,i){D(Yf(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return D(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);vt(t,i)<0&&t.push(i),vt(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(a,i){var o=new r(a,e,t);o.name="grid_"+i,o.resize(a,t,!0),a.coordinateSystem=o,n.push(o)}),e.eachSeries(function(a){if(!!lS(a)){var i=uS(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+ur(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=zd,r}();function Iv(r,e){return r.getCoordSysModel()===e}function fS(r,e,t,n){t.getAxesOnZeroOf=function(){return i?[i]:[]};var a=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)cS(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&cS(a[u])&&!n[f(a[u])]){i=a[u];break}i&&(n[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function cS(r){return r&&r.type!=="category"&&r.type!=="time"&&lz(r)}function jG(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return n-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return n-a+e}}const KG=qG;var jn=Math.PI,ci=function(){function r(e,t){this.group=new at,this.opt=t,this.axisModel=e,et(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new at({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(e){return!!hS[e]},r.prototype.add=function(e){hS[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,n){var a=WT(t-e),i,o;return Af(a)?(o=n>0?"top":"bottom",i="center"):Af(a-jn)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<jn?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),hS={axisLine:function(r,e,t,n){var a=e.get(["axisLine","show"]);if(a==="auto"&&r.handleAutoShown&&(a=r.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(fe(s,s,o),fe(l,l,o));var f=V({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new le({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});_o(c.shape,c.style.lineWidth),c.anid="line",t.add(c);var h=e.get(["axisLine","symbol"]);if(h!=null){var v=e.get(["axisLine","symbolSize"]);W(h)&&(h=[h,h]),(W(v)||At(v))&&(v=[v,v]);var p=Ai(e.get(["axisLine","symbolOffset"])||0,v),d=v[0],g=v[1];D([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(h[m]!=="none"&&h[m]!=null){var _=Qt(h[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,n){var a=tF(t,n,e,r),i=rF(t,n,e,r);if(QG(e,i,a),eF(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=sM(G(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));fM(o)}},axisName:function(r,e,t,n){var a=Kt(r.axisName,e.get("name"));if(!!a){var i=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,c=[i==="start"?u[0]-f*l:i==="end"?u[1]+f*l:(u[0]+u[1])/2,pS(i)?r.labelOffset+o*l:0],h,v=e.get("nameRotate");v!=null&&(v=v*jn/180);var p;pS(i)?h=ci.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(h=JG(r.rotation,i,v||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(h.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Kt(r.nameTruncateMaxWidth,g.maxWidth,p),_=new Dt({x:c[0],y:c[1],rotation:h.rotation,silent:ci.isLabelSilent(e),style:Ot(s,{text:a,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||h.textAlign,verticalAlign:s.get("verticalAlign")||h.textVerticalAlign}),z2:1});if(Ro({el:_,componentModel:e,itemName:a}),_.__fullText=a,_.anid="name",e.get("triggerEvent")){var S=ci.makeAxisEventDataBase(e);S.targetType="axisName",S.name=a,it(_).eventData=S}n.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function JG(r,e,t,n){var a=WT(t-r),i,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Af(a-jn/2)?(o=l?"bottom":"top",i="center"):Af(a-jn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<jn*1.5&&a>jn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function QG(r,e,t){if(!qA(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),a=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],c=t[t.length-1],h=t[t.length-2];n===!1?(qe(i),qe(u)):vS(i,o)&&(n?(qe(o),qe(f)):(qe(i),qe(u))),a===!1?(qe(s),qe(c)):vS(l,s)&&(a?(qe(l),qe(h)):(qe(s),qe(c)))}}function qe(r){r&&(r.ignore=!0)}function vS(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var a=wc([]);return Ci(a,a,-r.rotation),t.applyTransform(vn([],a,r.getLocalTransform())),n.applyTransform(vn([],a,e.getLocalTransform())),t.intersect(n)}}function pS(r){return r==="middle"||r==="center"}function WM(r,e,t,n,a){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(fe(o,o,e),fe(s,s,e));var f=new le({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});_o(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,i.push(f)}return i}function tF(r,e,t,n){var a=t.axis,i=t.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),f=WM(u,e.transform,l,et(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)r.add(f[c]);return f}}function eF(r,e,t,n){var a=t.axis,i=t.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(!!o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=et(s.getLineStyle(),et(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var c=WM(o[f],e.transform,l,u,"minorticks_"+f),h=0;h<c.length;h++)r.add(c[h])}}function rF(r,e,t,n){var a=t.axis,i=Kt(n.axisLabelShow,t.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Kt(n.labelRotate,o.get("rotate"))||0)*jn/180,f=ci.innerTextLayout(n.rotation,u,n.labelDirection),c=t.getCategories&&t.getCategories(!0),h=[],v=ci.isLabelSilent(t),p=t.get("triggerEvent");return D(l,function(d,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(c&&c[y]){var b=c[y];K(b)&&b.textStyle&&(S=new kt(b.textStyle,o,t.ecModel))}var x=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),w=a.dataToCoord(y),T=new Dt({x:w,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(d.level||0),style:Ot(S,{text:m,align:S.getShallow("align",!0)||f.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,fill:j(x)?x(a.type==="category"?_:a.type==="value"?y+"":y,g):x})});if(T.anid="label_"+y,p){var C=ci.makeAxisEventDataBase(t);C.targetType="axisLabel",C.value=_,C.tickIndex=g,a.type==="category"&&(C.dataIndex=y),it(T).eventData=C}e.add(T),T.updateTransform(),h.push(T),r.add(T),T.decomposeTransform()}),h}}const Cn=ci;function nF(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return aF(t,r,e),t.seriesInvolved&&oF(t,r),t}function aF(r,e,t){var n=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];D(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=vl(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",n);if(D(s.getAxes(),ot(d,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&D(p.baseAxes,ot(d,v?"cross":!0,h)),v&&D(p.otherAxes,ot(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Fd(_))){y==null&&(y=_.get("triggerTooltip")),_=g?iF(m,c,a,e,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=vl(m.model),T=y||b||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:Fd(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var A=sF(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[w]=C,M.mapper=i[A].mapper,C.linkGroup=M}}}})}function iF(r,e,t,n,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};D(s,function(h){l[h]=nt(o.get(h))}),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),a==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&et(u,c.textStyle)}}return r.model.getModel("axisPointer",new kt(l,t,n))}function oF(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||D(r.coordSysAxesInfo[vl(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function sF(r,e){for(var t=e.model,n=e.dim,a=0;a<r.length;a++){var i=r[a]||{};if(Ev(i[n+"AxisId"],t.id)||Ev(i[n+"AxisIndex"],t.componentIndex)||Ev(i[n+"AxisName"],t.name))return a}}function Ev(r,e){return r==="all"||z(r)&&vt(r,e)>=0||r===e}function lF(r){var e=Vy(r);if(!!e){var t=e.axisPointerModel,n=e.axis.scale,a=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=Fd(t);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function Vy(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[vl(r)]}function uF(r){var e=Vy(r);return e&&e.axisPointerModel}function Fd(r){return!!r.get(["handle","show"])}function vl(r){return r.type+"||"+r.id}var Pv={},fF=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.axisPointerClass&&lF(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,n,a,i){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,n){var a=this._axisPointer;a&&a.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(!!i){var o=uF(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,a):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){if(process.env.NODE_ENV!=="production"&&Pv[t])throw new Error("axisPointer "+t+" exists");Pv[t]=n},e.getAxisPointerClass=function(t){return t&&Pv[t]},e.type="axis",e}(Wt);const Ii=fF;var Hd=Ct();function UM(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(!!u.length){var f=s.length,c=Hd(r).splitAreaColors,h=X(),v=0;if(c)for(var p=0;p<u.length;p++){var d=c.get(u[p].tickValue);if(d!=null){v=(d+(f-1)*p)%f;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var p=1;p<u.length;p++){var m=a.toGlobalCoord(u[p].coord),_=void 0,S=void 0,b=void 0,x=void 0;a.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[p-1].tickValue;w!=null&&h.set(w,v),e.add(new Tt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:et({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Hd(r).splitAreaColors=h}}}function YM(r){Hd(r).splitAreaColors=null}var cF=["axisLine","axisTickLabel","axisName"],hF=["splitArea","splitLine","minorSplitLine"],ZM=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Gd(s,t),u=new Cn(t,V({handleAutoShown:function(c){for(var h=s.coordinateSystem.getCartesians(),v=0;v<h.length;v++)if(Pd(h[v].getOtherAxis(t.axis).scale))return!0;return!1}},l));D(cF,u.add,u),this._axisGroup.add(u.getGroup()),D(hF,function(c){t.get([c,"show"])&&vF[c](this,this._axisGroup,t,s)},this);var f=i&&i.type==="changeAxisOrder"&&i.isInitSort;f||Al(o,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)}},e.prototype.remove=function(){YM(this)},e.type="cartesianAxis",e}(Ii),vF={splitLine:function(r,e,t,n){var a=t.axis;if(!a.scale.isBlank()){var i=t.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=z(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=0,c=a.getTicksCoords({tickModel:i}),h=[],v=[],p=o.getLineStyle(),d=0;d<c.length;d++){var g=a.toGlobalCoord(c[d].coord);u?(h[0]=g,h[1]=l.y,v[0]=g,v[1]=l.y+l.height):(h[0]=l.x,h[1]=g,v[0]=l.x+l.width,v[1]=g);var y=f++%s.length,m=c[d].tickValue,_=new le({anid:m!=null?"line_"+c[d].tickValue:null,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:et({stroke:s[y]},p),silent:!0});_o(_.shape,p.lineWidth),e.add(_)}}},minorSplitLine:function(r,e,t,n){var a=t.axis,i=t.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(!!u.length)for(var f=[],c=[],h=o.getLineStyle(),v=0;v<u.length;v++)for(var p=0;p<u[v].length;p++){var d=a.toGlobalCoord(u[v][p].coord);l?(f[0]=d,f[1]=s.y,c[0]=d,c[1]=s.y+s.height):(f[0]=s.x,f[1]=d,c[0]=s.x+s.width,c[1]=d);var g=new le({anid:"minor_line_"+u[v][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]},style:h,silent:!0});_o(g.shape,h.lineWidth),e.add(g)}},splitArea:function(r,e,t,n){UM(r,e,t,n)}},XM=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(ZM),pF=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=XM.type,t}return e.type="yAxis",e}(ZM),dF=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new Tt({shape:t.coordinateSystem.getRect(),style:et({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Wt),dS={offset:0};function qM(r){r.registerComponentView(dF),r.registerComponentModel(zG),r.registerCoordinateSystem("cartesian2d",KG),To(r,"x",Bd,dS),To(r,"y",Bd,dS),r.registerComponentView(XM),r.registerComponentView(pF),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function gF(r){yt(qM),r.registerSeriesModel(EG),r.registerChartView(VG),r.registerLayout(kl("scatter"))}function yF(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],a=e.coordinateSystem;if(!!a){var i=a.getIndicatorAxes();D(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){n[u]=n[u]||[];var f=a.dataToPoint(l,s);n[u][s]=gS(f)?f:yS(a)})}),t.each(function(o){var s=r2(n[o],function(l){return gS(l)})||yS(a);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function gS(r){return!isNaN(r[0])&&!isNaN(r[1])}function yS(r){return[r.cx,r.cy]}function mF(r){var e=r.polar;if(e){z(e)||(e=[e]);var t=[];D(e,function(n,a){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}D(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var _F=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(h,v){var p=h.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var d=Wo(h.getItemVisual(v,"symbolSize")),g=Qt(p,-1,-1,2,2),y=h.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(h,v,p,d,g,y){p.removeAll();for(var m=0;m<v.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Ll[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},t,g)):_.setPosition(v[m]),p.add(_))}}function c(h){return G(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(!!v){var p=new Ge,d=new Fe,g={shape:{points:v}};p.shape.points=c(v),d.shape.points=c(v),Bt(p,g,t,h),Bt(d,g,t,h);var y=new at,m=new at;y.add(d),y.add(p),y.add(m),f(d.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,y)}}).update(function(h,v){var p=l.getItemGraphicEl(v),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(h)}};!m.shape.points||(f(d.shape.points,m.shape.points,y,s,h,!1),Ir(g),Ir(d),Mt(d,m,t),Mt(g,m,t),s.setItemGraphicEl(h,p))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var p=s.getItemModel(v),d=h.childAt(0),g=h.childAt(1),y=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),d.useStyle(et(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),ve(d,p,"lineStyle"),ve(g,p,"areaStyle");var S=p.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,D(["emphasis","select","blur"],function(T){var C=p.getModel([T,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=A&&b}),g.useStyle(et(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=p.getModel("emphasis"),w=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof de){var C=T.style;T.useStyle(V({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=nt(w);var M=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(M==null||isNaN(M))&&(M=""),pe(T,ie(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:M,inheritColor:_,defaultOpacity:m.opacity})}),$t(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Vt);const SF=_F;var xF=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Uo(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=YD(this,t);return oe("section",{header:u,sortBlocks:!0,blocks:G(s,function(c){var h=i.get(i.mapDimension(c.dim),t);return oe("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),a=this.coordinateSystem,i=n.getValues(G(a.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Gt);const bF=xF;var hs=HM.value;function Mu(r,e){return et({show:e},r)}var wF=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),n=this.get("splitNumber"),a=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"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=G(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=et({color:p.color},l));var g=ct(nt(p),{boundaryGap:t,splitNumber:n,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:h},!1);if(W(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else j(f)&&(g.name=f(g.name,g));var m=new kt(g,null,this.ecModel);return te(m,Nl.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ct({lineStyle:{color:"#bbb"}},hs.axisLine),axisLabel:Mu(hs.axisLabel,!1),axisTick:Mu(hs.axisTick,!1),splitLine:Mu(hs.splitLine,!0),splitArea:Mu(hs.splitArea,!0),indicator:[]},e}(xt);const TF=wF;var CF=["axisLine","axisTickLabel","axisName"],DF=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes(),i=G(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Cn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});D(i,function(o){D(CF,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,a=n.getIndicatorAxes();if(!a.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),p=z(h)?h:[h],d=z(v)?v:[v],g=[],y=[];function m(P,N,k){var O=k%N.length;return P[O]=P[O]||[],O}if(i==="circle")for(var _=a[0].getTicksCoords(),S=n.cx,b=n.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new tn({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var w=m(y,d,x);y[w].push(new Rc({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(a,function(P,N){var k=P.getTicksCoords();return T=T==null?k.length-1:Math.min(k.length-1,T),G(k,function(O){return n.coordToPoint(O.coord,N)})}),A=[],x=0;x<=T;x++){for(var M=[],L=0;L<a.length;L++)M.push(C[L][x]);if(M[0]?M.push(M[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+x),f){var w=m(g,p,x);g[w].push(new Fe({shape:{points:M}}))}if(c&&A){var w=m(y,d,x-1);y[w].push(new Ge({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var I=l.getLineStyle(),E=u.getAreaStyle();D(y,function(P,N){this.group.add(ir(P,{style:et({stroke:"none",fill:d[N%d.length]},E),silent:!0}))},this),D(g,function(P,N){this.group.add(ir(P,{style:et({fill:"none",stroke:p[N%p.length]},I),silent:!0}))},this)},e.type="radar",e}(Wt);const AF=DF;var MF=function(r){R(e,r);function e(t,n,a){var i=r.call(this,t,n,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(Nr);const LF=MF;var IF=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=G(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new LF(o,new la);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],a=n.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=Math.sqrt(t*t+n*n);t/=a,n/=a;for(var i=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight(),o=Math.min(a,i)/2;this.cx=H(n[0],a),this.cy=H(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(W(s)||At(s))&&(s=[0,s]),this.r0=H(s[0],o),this.r=H(s[1],o),D(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,a=this._model;D(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();D(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=a.get("splitNumber"),o=new la;o.setExtent(0,i),o.setInterval(1),D(n,function(s,l){$M(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(a){var i=new r(a,e,t);n.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=n[a.get("radarIndex")||0])}),n},r.dimensions=[],r}();const EF=IF;function PF(r){r.registerCoordinateSystem("radar",EF),r.registerComponentModel(TF),r.registerComponentView(AF),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function NF(r){yt(PF),r.registerChartView(SF),r.registerSeriesModel(bF),r.registerLayout(yF),r.registerProcessor(Vl("radar")),r.registerPreprocessor(mF)}var mS="\0_ec_interaction_mutex";function RF(r,e,t){var n=By(r);n[e]=t}function OF(r,e,t){var n=By(r),a=n[e];a===t&&(n[e]=null)}function _S(r,e){return!!By(r)[e]}function By(r){return r[mS]||(r[mS]={})}rn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Xt);var kF=function(r){R(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var a=Y(n._mousedownHandler,n),i=Y(n._mousemoveHandler,n),o=Y(n._mouseupHandler,n),s=Y(n._mousewheelHandler,n),l=Y(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=et(nt(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",a),t.on("mousemove",i),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},n.disable=function(){t.off("mousedown",a),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!$m(t)){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!lf("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||_S(this._zr,"globalPan"))){var n=t.offsetX,a=t.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&_n(t.event),jM(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){$m(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var n=lf("zoomOnMouseWheel",t,this._opt),a=lf("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;Nv(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);Nv(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!_S(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;Nv(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(pr);function Nv(r,e,t,n,a){r.pointerChecker&&r.pointerChecker(n,a.originX,a.originY)&&(_n(n.event),jM(r,e,t,n,a))}function jM(r,e,t,n,a){a.isAvailableBehavior=Y(lf,null,t,n),r.trigger(e,a)}function lf(r,e,t){var n=t[r];return!r||n&&(!W(n)||e.event[n+"Key"])}const zl=kF;function zy(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function Gy(r,e,t,n){var a=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,a.x-=(t-a.x)*(u-1),a.y-=(n-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var VF={axisPointer:1,tooltip:1,brush:1};function eh(r,e,t){var n=e.getComponentByElement(r.topTarget),a=n&&n.coordinateSystem;return n&&n!==t&&!VF.hasOwnProperty(n.mainType)&&a&&a.model!==t}function KM(r){if(W(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Rv,Jf={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"},SS=_t(Jf),Qf={"alignment-baseline":"textBaseline","stop-color":"stopColor"},xS=_t(Qf),BF=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=KM(e);if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Illegal svg");this._defsUsePending=[];var a=new at;this._root=a;var i=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),He(n,a,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;FF(this._defs,this._defsUsePending),this._defsUsePending=[];var f,c;if(o){var h=rh(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(c=QM(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=a;a=new at,a.add(v),v.scaleX=v.scaleY=c.scale,v.x=c.x,v.y=c.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Tt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:c,named:i}},r.prototype._parseNode=function(e,t,n,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=Rv[s];if(f&&U(Rv,s)){l=f.call(this,e,t);var c=e.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:l};n.push(h),s==="g"&&(u=h)}else a&&n.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var v=bS[s];if(v&&U(bS,s)){var p=v.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new tl({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});je(t,n),He(e,n,this._defsUsePending,!1,!1),zF(n,t);var a=n.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){Rv={g:function(e,t){var n=new at;return je(t,n),He(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Tt;return je(t,n),He(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new tn;return je(t,n),He(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new le;return je(t,n),He(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new qg;return je(t,n),He(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),a;n&&(a=CS(n));var i=new Ge({shape:{points:a||[]},silent:!0});return je(t,i),He(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n=e.getAttribute("points"),a;n&&(a=CS(n));var i=new Fe({shape:{points:a||[]},silent:!0});return je(t,i),He(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new de;return je(t,n),He(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new at;return je(t,s),He(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),a=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new at;return je(t,s),He(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",a=LC(n);return je(t,a),He(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),r}(),bS={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),i=new Dl(e,t,n,a);return wS(r,i),TS(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),a=new HC(e,t,n);return wS(r,a),TS(r,a),a}};function wS(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function TS(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),a=void 0;n&&n.indexOf("%")>0?a=parseInt(n,10)/100:n?a=parseFloat(n):a=0;var i={};JM(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function je(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),et(e.__inheritedStyle,r.__inheritedStyle))}function CS(r){for(var e=rh(r),t=[],n=0;n<e.length;n+=2){var a=parseFloat(e[n]),i=parseFloat(e[n+1]);t.push([a,i])}return t}function He(r,e,t,n,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(WF(r,e),JM(r,o,s),n||UF(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=DS(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=DS(i,"stroke",o.stroke,t)),D(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),D(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=G(rh(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function zF(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,a=n;!n||n==="auto"||n==="baseline"?a="alphabetic":n==="before-edge"||n==="text-before-edge"?a="top":n==="after-edge"||n==="text-after-edge"?a="bottom":(n==="central"||n==="mathematical")&&(a="middle"),r.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var GF=/^url\(\s*#(.*?)\)/;function DS(r,e,t,n){var a=t&&t.match(GF);if(a){var i=br(a[1]);n.push([r,e,i]);return}return t==="none"&&(t=null),t}function FF(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var HF=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rh(r){return r.match(HF)||[]}var $F=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Ov=Math.PI/180;function WF(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],a=null;t.replace($F,function(c,h,v){return n.push(h,v),""});for(var i=n.length-1;i>0;i-=2){var o=n[i],s=n[i-1],l=rh(o);switch(a=a||cr(),s){case"translate":jr(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ng(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ci(a,a,-parseFloat(l[0])*Ov);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Ov);vn(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*Ov);vn(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var AS=/([^\s:;]+)\s*:\s*([^:;]+)/g;function JM(r,e,t){var n=r.getAttribute("style");if(!!n){AS.lastIndex=0;for(var a;(a=AS.exec(n))!=null;){var i=a[1],o=U(Jf,i)?Jf[i]:null;o&&(e[o]=a[2]);var s=U(Qf,i)?Qf[i]:null;s&&(t[s]=a[2])}}}function UF(r,e,t){for(var n=0;n<SS.length;n++){var a=SS[n],i=r.getAttribute(a);i!=null&&(e[Jf[a]]=i)}for(var n=0;n<xS.length;n++){var a=xS[n],i=r.getAttribute(a);i!=null&&(t[Qf[a]]=i)}}function QM(r,e){var t=e.width/r.width,n=e.height/r.height,a=Math.min(t,n);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function YF(r,e){var t=new BF;return t.parse(r,e)}var ZF=X(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),XF=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=X(),this._freedGraphics=[],this._mapName=e,this._parsedXML=KM(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=jF(e.named),n=t.regions,a=t.regionsMap;this._regions=n,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&YF(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,J(n!=null)}catch(g){throw new Error(`Invalid svg format
48
48
  `+g.message)}var a=new at;a.add(n),a.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,c=void 0,h=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var v=n.getBoundingRect();u==null&&(u=v.x,c=v.width),f==null&&(f=v.y,h=v.height)}l=this._boundingRect=new ht(u,f,c,h)}if(s){var p=QM(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}a.setClipPath(new Tt({shape:l.plain()}));var d=[];return D(t.named,function(g){ZF.get(g.svgNodeTagLower)!=null&&(d.push(g),qF(g.el))}),{root:a,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function qF(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function jF(r){var e=[],t=X();return D(r,function(n){if(n.namedFrom==null){var a=new dz(n.name,n.el);e.push(a),t.set(n.name,a)}}),{regions:e,regionsMap:t}}var $d=[126,25],MS="\u5357\u6D77\u8BF8\u5C9B",Ga=[[[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 Va=0;Va<Ga.length;Va++)for(var Yi=0;Yi<Ga[Va].length;Yi++)Ga[Va][Yi][0]/=10.5,Ga[Va][Yi][1]/=-10.5/.75,Ga[Va][Yi][0]+=$d[0],Ga[Va][Yi][1]+=$d[1];function KF(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===MS)return;e.push(new KA(MS,G(Ga,function(n){return{type:"polygon",exterior:n}}),$d))}}var JF={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function QF(r,e){if(r==="china"){var t=JF[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var t3=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function e3(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:t3[0]})}var r3="name",n3=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=X(),this._mapName=e,this._specialAreas=n,this._geoJSON=i3(t)}return r.prototype.load=function(e,t){t=t||r3;var n=this._parsedMap.get(t);if(!n){var a=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:a,boundingRect:a3(a)})}var i=X(),o=[];return D(n.regions,function(s){var l=s.name;e&&U(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new ht(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,a;try{a=n?yz(n,e):[]}catch(i){throw new Error(`Invalid geoJson format
49
- `+i.message)}return KF(t,a),D(a,function(i){var o=i.name;QF(t,i),e3(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function a3(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function i3(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var vs=X();const Dn={registerMap:function(r,e,t){if(e.svg){var n=new XF(r,e.svg);vs.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new n3(r,a,t);vs.set(r,n)}},getGeoResource:function(r){return vs.get(r)},getMapForUser:function(r){var e=vs.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=vs.get(r);if(!n){process.env.NODE_ENV!=="production"&&console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,t)}};var Fy=["rect","circle","line","ellipse","polygon","polyline","path"],o3=X(Fy),s3=X(Fy.concat(["g"])),l3=X(Fy.concat(["g"])),tL=Ct();function Lu(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function LS(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var u3=function(){function r(e){var t=new at;this.uid=ko("ec_map_draw"),this._controller=new zl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new at),t.add(this._svgGroup=new at)}return r.prototype.draw=function(e,t,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,c=l.getTransformInfo(),h=c.raw,v=c.roam,p=!u.childAt(0)||i;p?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Mt(f,v,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),n=X(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,p){return p&&(v=p(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var p=[],d=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],d);y&&p.push(y)}return p}function h(v){return{shape:{points:c(v)}}}a.removeAll(),D(e.geo.regions,function(v){var p=v.name,d=t.get(p),g=n.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=t.set(p,new at),a.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,n.set(p,{dataIdx:y,regionModel:m}));var _=[],S=[];D(v.geometries,function(w){if(w.type==="polygon"){var T=[w.exterior].concat(w.interiors||[]);u&&(T=OS(T,u)),D(T,function(A){_.push(new Ge(h(A)))})}else{var C=w.points;u&&(C=OS(C,u,!0)),D(C,function(A){S.push(new Fe(h(A)))})}});var b=f(v.getCenter(),l&&l.project);function x(w,T){if(!!w.length){var C=new Kg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});d.add(C),IS(e,C,y,m),ES(e,C,p,m,o,y,b),T&&(LS(C),D(C.states,LS))}}x(_),x(S,!0)}),t.each(function(v,p){var d=n.get(p),g=d.dataIdx,y=d.regionModel;PS(e,v,p,y,o,g),NS(e,v,p,y,o),RS(e,v,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=X(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(o3.get(f)!=null&&c instanceof hr&&IS(e,c,h,v),c instanceof hr&&(c.culling=!0),c.z2EmphasisLift=0,!o.namedFrom&&(l3.get(f)!=null&&ES(e,c,s,v,l,h,null),PS(e,c,s,v,l,h),NS(e,c,s,v,l),s3.get(f)!=null)){var p=RS(e,c,s,v,l);p==="self"&&(i=!0);var d=a.get(s)||a.set(s,[]);d.push(c)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){yi(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),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(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Dn.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Dn.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,zy(o,u.dx,u.dy),n.dispatchAction(V(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Gy(o,u.scale,u.originX,u.originY),n.dispatchAction(V(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,c){return a.containPoint([f,c])&&!eh(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=tL(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){!i._mouseDownFlag||(i._mouseDownFlag=!1)}))},r}();function IS(r,e,t,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Lu(a),u=Lu(i),f=Lu(s),c=Lu(o),h=r.data;if(h){var v=h.getItemVisual(t,"style"),p=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=xo(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=c,yi(e)}function ES(r,e,t,n,a,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 c=l?t:i,h=void 0;(!s||i>=0)&&(h=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;pe(e,ie(n),{labelFetcher:h,labelDataIndex:c,defaultText:t},v);var p=e.getTextContent();if(p&&(tL(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function PS(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):it(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function NS(r,e,t,n,a){r.data||Ro({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function RS(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return $t(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&fR(e,a,t),o}function OS(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),D(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}const eL=u3;var f3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new eL(a);o.add(s.group),s.draw(t,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,a){var i=t.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,c=u.offset,h=new tn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:Po+1)});if(!c){var v=t.mainSeries.getData(),p=i.getName(l),d=v.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(d);pe(h,ie(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Lf(h,_)}}o.add(h)}}})},e.type="map",e}(Vt);const c3=f3;var h3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=Uo(this,{coordDimensions:["value"],encodeDefaulter:ot(oy,this)}),a=X(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=Dn.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name;a.get(c)||i.push(c)}),n.appendValues([],i),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return oe("section",{header:u.join(", "),noHeader:!u.length,blocks:[oe("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=Qt(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Gt);const v3=h3;function p3(r,e){var t={};return D(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var c;return e==="min"?c=s:e==="max"?c=l:e==="average"?c=o/u:c=o,u===0?NaN:c})}function d3(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),a=n?"o"+n.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),D(e,function(t,n){for(var a=p3(G(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(a.cloneShallow()),t[i].mainSeries=t[0]})}function g3(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var a={};D(t.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 c=l.getName(f),h=s.getRegion(c);if(!(!h||isNaN(u))){var v=a[c]||0,p=s.dataToPoint(h.getCenter());a[c]=v+1,l.setItemLayout(f,{point:p,offset:v})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[n]=!0}})}var kS=fe,y3=function(r){R(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new fn,n._rawTransformable=new fn,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new ht(t,n,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new ht(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ht(t,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){!t||(this._center=[H(t[0],n.getWidth()),H(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=fe([],i,t),a=fe([],a,t),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),Pg(this.transform||(this.transform=[]),n.transform||cr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Io(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new fn;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?kS(a,t,i):Te(a,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?kS([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,a){var i=VS(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=VS(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(fn);function VS(r){var e=r.seriesModel;return e?e.coordinateSystem:null}const Gl=y3;var m3={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},rL=["lng","lat"],nL=function(r){R(e,r);function e(t,n,a){var i=r.call(this,t)||this;i.dimensions=rL,i.type="geo",i._nameCoordMap=X(),i.map=n;var o=a.projection,s=Dn.load(n,a.nameMap,a.nameProperty),l=Dn.getGeoResource(n),u=i.resourceType=l?l.type:null,f=i.regions=s.regions,c=m3[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Ft("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&Ft("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var h;if(o)for(var v=0;v<f.length;v++){var p=f[v].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:ft(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,n,a,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 ht(t,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(W(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,n,a)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,a){return r.prototype.dataToPoint.call(this,t,n,a)},e.prototype.convertToPixel=function(t,n,a){var i=BS(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=BS(n);return i===this?i.pointToData(a):null},e}(Gl);te(nL,Gl);function BS(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Jt).models[0]||{}).coordinateSystem:null}const zS=nL;function GS(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],a=t[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(x,w,T,C){for(var A=T-x,M=C-w,L=0;L<=100;L++){var I=L/100,E=i.project([x+A*I,w+M*I]);Un(n,n,E),Yn(a,a,E)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var c=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[H(h[0],p),H(h[1],d)],_=H(v,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=re(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function _3(r,e){D(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var S3=function(){function r(){this.dimensions=rL}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new zS(l+s,l,V({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=GS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new zS(s,s,V({nameMap:Mg(l)},a(o[0])));u.zoomLimit=Kt.apply(null,G(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=GS,u.resize(o[0],t),D(o,function(f){f.coordinateSystem=u,_3(u,f)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=X(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Dn.load(t,n,a);return D(l.regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r}(),x3=new S3;const aL=x3;var b3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=Dn.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,a),pi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=aL.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=qr(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new kt(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},X()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new kt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(j(i))return o.status=n,i(o);if(W(i))return i.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(!!a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(xt);const w3=b3;function FS(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function Hy(r,e,t,n){var a=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(FS(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),c=(e.originY-r.y)*(o-1);r.x-=f,r.y-=c,r.updateTransform(),r.setCenter(FS(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var T3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new eL(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype._handleRegionClick=function(t){var n;Qa(t.target,function(a){return(n=it(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=it(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Wt);const C3=T3;function D3(r,e,t){Dn.registerMap(r,e,t)}function iL(r){r.registerCoordinateSystem("geo",aL),r.registerComponentModel(w3),r.registerComponentView(C3),r.registerImpl("registerMap",D3),r.registerImpl("getMap",function(t){return Dn.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType||"series";n.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Hy(s,t,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function A3(r){yt(iL),r.registerChartView(c3),r.registerSeriesModel(v3),r.registerLayout(g3),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,d3),aA("map",r.registerAction)}function M3(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function L3(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){P3(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=N3(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function I3(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function HS(r){return arguments.length?r:k3}function Es(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function E3(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function P3(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function N3(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=kv(s),i=Vv(i),s&&i;){a=kv(a),o=Vv(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(O3(R3(s,r,t),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!kv(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!Vv(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function kv(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Vv(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function R3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function O3(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function k3(r,e){return r.parentNode===e.parentNode?1:2}var V3=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),B3=function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new V3},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=H(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=l[f],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=a[p];t.moveTo(d[0],d[1]),v[f]=d[f],t.lineTo(v[0],v[1])}},e}(mt),z3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new at,t}return e.prototype.init=function(t,n){this._controller=new zl(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.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(t,a),this._updateController(t,n,a);var u=this._data;i.diff(u).add(function(f){$S(i,f)&&WS(i,f,null,s,t)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!$S(i,f)){h&&YS(u,c,h,s,t);return}WS(i,f,h,s,t)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&YS(u,f,c,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:c})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(c){var h=a.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Ec(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new Gl;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center"),n),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!eh(u,a,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){zy(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Gy(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Vt);function $S(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function WS(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(c.dataIndex),v=c.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,d=o.getLayout();i?(t=new Rl(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Mt(t,{x:d.x,y:d.y},a);var g=t.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var x={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(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(d.y-m.y,d.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=d.x<m.x,b&&(S=S-Math.PI)):(b=d.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?_f(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(it(t).focus=I),G3(a,o,f,t,p,v,d,n),t.__edge&&(t.onHoverStateChange=function(E){if(E!=="blur"){var P=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);P&&P.hoverState===Cl||Lf(t.__edge,E)}})}function G3(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=n.__edge=new Oc({shape:Wd(f,c,h,a,a)})),Mt(d,{shape:Wd(f,c,h,i,o)},r));else if(u==="polyline"){if(f==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}d||(d=n.__edge=new B3({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),Mt(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(et({strokeNoScale:!0,fill:null},p)),ve(d,l,"lineStyle"),yi(d),s.add(d))}function US(r,e,t,n,a){var i=e.tree.root,o=oL(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(!!u){var f=e.getItemGraphicEl(s.dataIndex),c=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),v=n.get("edgeShape"),p=n.get("layout"),d=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?ia(h,{shape:Wd(p,d,g,l,l),style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&ia(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}))}}function oL(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function YS(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=oL(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ia(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){US(u,r,n,a,l)}),US(i,r,n,a,l)}function Wd(r,e,t,n,a){var i,o,s,l,u,f,c,h;if(r==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,h=a.rawY;var v=Es(u,c),p=Es(u,c+(h-c)*t),d=Es(f,h+(c-h)*t),g=Es(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=n.x,c=n.y,f=a.x,h=a.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=c,s=f+(u-f)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=c+(h-c)*t,s=f,l=h+(c-h)*t);return{x1:u,y1:c,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const F3=z3;var fr=Ct();function sL(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,lL(e,t,r),D(t,function(n){D(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,ot(H3,r))})}),e.wrapMethod("cloneShallow",ot(W3,r)),D(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,ot($3,r))}),J(t[e.dataType]===e)}function H3(r,e){if(Z3(this)){var t=V({},fr(this).datas);t[this.dataType]=e,lL(e,t,r)}else $y(e,this.dataType,fr(this).mainData,r);return e}function $3(r,e){return r.struct&&r.struct.update(),e}function W3(r,e){return D(fr(e).datas,function(t,n){t!==e&&$y(t.cloneShallow(),n,e,r)}),e}function U3(r){var e=fr(this).mainData;return r==null||e==null?e:fr(e).datas[r]}function Y3(){var r=fr(this).mainData;return r==null?[{data:r}]:G(_t(fr(r).datas),function(e){return{type:e,data:fr(r).datas[e]}})}function Z3(r){return fr(r).mainData===r}function lL(r,e,t){fr(r).datas={},D(e,function(n,a){$y(n,a,r,t)})}function $y(r,e,t,n){fr(t).datas[e]=r,fr(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=U3,r.getLinkedDataAll=Y3}var X3=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){j(e)&&(n=t,t=e,e=null),e=e||{},W(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),q3=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,c){var h=f.value;o=Math.max(o,z(h)?h.length:1),i.push(f);var v=new X3(ee(f.name,""),a);c?j3(v,c):a.root=v,a._nodes.push(v);var p=f.children;if(p)for(var d=0;d<p.length;d++)s(p[d],v)}a.root.updateDepthAndHeight(0);var l=El(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Me(l,t);return u.initData(i),n&&n(u),sL({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function j3(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}const Wy=q3;function pl(r,e,t){if(r&&vt(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(W(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function uL(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Uy(r,e){var t=uL(r);return vt(t,e)>=0}function nh(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var K3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new kt(a,this,this.ecModel),o=Wy.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var p=o.getNodeByDataIndex(v);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return oe("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nh(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Gt);const J3=K3;function Q3(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function ps(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function tH(r,e){r.eachSeriesByType("tree",function(t){eH(t,e)})}function eH(r,e){var t=E3(r,e);r.layoutInfo=t;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=HS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=HS());var s=r.getData().tree.root,l=s.children[0];if(l){M3(s),Q3(l,L3,o),s.hierNode.modifier=-l.hierNode.prelim,ps(l,I3);var u=l,f=l,c=l;ps(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>c.depth&&(c=_)});var h=u===f?1:o(u,f)/2,v=h-u.getLayout().x,p=0,d=0,g=0,y=0;if(n==="radial")p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),ps(l,function(_){g=(_.getLayout().x+v)*p,y=(_.depth-1)*d;var S=Es(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),ps(l,function(_){y=(_.getLayout().x+v)*d,g=m==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),ps(l,function(_){g=(_.getLayout().x+v)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function rH(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");V(s,o)})})}function nH(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=Hy(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function aH(r){r.registerChartView(F3),r.registerSeriesModel(J3),r.registerLayout(tH),r.registerVisual(rH),nH(r)}var ZS=["treemapZoomToNode","treemapRender","treemapMove"];function iH(r){for(var e=0;e<ZS.length;e++)r.registerAction({type:ZS[e],update:"updateView"},Xt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=pl(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=Uy(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function fL(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=_d(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var oH=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};cL(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new kt({itemStyle:o},this,n);i=t.levels=sH(i,n);var l=G(i||[],function(c){return new kt(c,s,n)},this),u=Wy.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var p=u.getNodeByDataIndex(v),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return oe("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nh(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=X(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){fL(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Gt);function cL(r){var e=0;D(r.children,function(n){cL(n);var a=n.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function sH(r,e){var t=Pt(e.get("color")),n=Pt(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var a,i;D(r,function(s){var l=new kt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}const lH=oH;var uH=8,XS=8,Bv=5,fH=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(e,c,s,l,u,f,a),Wc(o,c.pos,c.box)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=ee(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+uH*2,t.emptyItemWidth);t.totalWidth+=s+XS,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),c=_O(t.pos,t.box),h=t.totalWidth,v=t.renderList,p=a.getModel("itemStyle").getItemStyle(),d=v.length-1;d>=0;d--){var g=v[d],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new Ge({shape:{points:cH(l,0,m,f,d===v.length-1,d===0)},style:et(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Dt({style:Ot(i,{text:_})}),textConfig:{position:"inside"},z2:Po*1e4,onclick:ot(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ot(o,{text:_}),S.ensureState("emphasis").style=p,$t(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),hH(S,e,y),l+=m+XS}},r.prototype.remove=function(){this.group.removeAll()},r}();function cH(r,e,t,n,a,i){var o=[[a?r:r-Bv,e],[r+t,e],[r+t,e+n],[a?r:r-Bv,e+n]];return!i&&o.splice(2,0,[r+t+Bv,e+n/2]),!a&&o.push([r,e+n/2]),o}function hH(r,e,t){it(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&nh(t,e)}}const vH=fH;var pH=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function dH(){return new pH}var Ud=at,qS=Tt,jS=3,KS="label",JS="upperLabel",gH=Po*10,yH=Po*2,mH=Po*3,Fa=gi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),QS=function(r){var e=Fa(r);return e.stroke=e.fill=e.lineWidth=null,e},tc=Ct(),_H=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=ds(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(vt(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=pl(i,s,t),u=i&&i.type,f=t.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),d=t.get("animation"),g=this._doRender(p,t,v);d&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,t,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new Ud,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=ds(),l=ds(),u=this._storage,f=[];function c(g,y,m,_){return SH(n,l,u,a,s,f,g,y,m,_)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:d};function v(g,y,m,_,S){_?(y=g,D(g,function(w,T){!w.isRemoved()&&x(T,T)})):new Tn(y,g,b,b).add(x).update(x).remove(ot(x,null)).execute();function b(w){return w.getId()}function x(w,T){var C=w!=null?g[w]:null,A=T!=null?y[T]:null,M=c(C,A,m,S);M&&v(C&&C.viewChildren||[],A&&A.viewChildren||[],M,_,S+1)}}function p(g){var y=ds();return g&&D(g,function(m,_){var S=y[_];D(m,function(b){b&&(S.push(b),tc(b).willDelete=!0)})}),y}function d(){D(h,function(g){D(g,function(y){y.parent&&y.parent.remove(y)})}),D(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(j(o)?0:o)||0,u=(j(s)?null:s)||"cubicOut",f=dH();D(n.willDeleteEls,function(c,h){D(c,function(v,p){if(!v.invisible){var d=v.parent,g,y=tc(d);if(i&&i.direction==="drillDown")g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),D(this._storage,function(c,h){D(c,function(v,p){var d=n.lastsForAnimation[h][p],g={};!d||(v instanceof at?d.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=d.oldX,v.y=d.oldY):(d.oldShape&&(g.shape=V({},v.shape),v.setShape(d.oldShape)),d.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(Y(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this._controller;n||(n=this._controller=new zl(t.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",Y(this._onPan,this)),n.on("zoom",Y(this._onZoom,this)));var a=new ht(0,0,t.getWidth(),t.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>jS||Math.abs(t.dy)>jS)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=cr();jr(u,u,[-n,-a]),Ng(u,u,[t.scale,t.scale]),jr(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(!!i){var o=n.findTarget(a.offsetX,a.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._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&&Of(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new vH(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(Uy(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ds(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,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(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Vt);function ds(){return{nodeGroup:[],background:[],content:[]}}function SH(r,e,t,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=tt("nodeGroup",Ud);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),tc(M).nodeWidth=v,tc(M).nodeHeight=p,f.isAboveViewRoot)return M;var L=tt("background",qS,u,yH);L&&B(M,L,b&&f.upperLabelHeight);var I=h.getModel("emphasis"),E=I.get("focus"),P=I.get("blurScope"),N=I.get("disabled"),k=E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():E;if(b)aa(M)&&Ka(M,!1),L&&(Ka(L,!N),c.setItemGraphicEl(o.dataIndex,L),fd(L,k,P));else{var O=tt("content",qS,u,mH);O&&F(M,O),L.disableMorphing=!0,L&&aa(L)&&Ka(L,!1),Ka(M,!N),c.setItemGraphicEl(o.dataIndex,M),fd(M,k,P)}return M;function B(dt,rt,gt){var st=it(rt);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,rt.setShape({x:0,y:0,width:v,height:p,r:A}),g)$(rt);else{rt.invisible=!1;var q=o.getVisual("style"),lt=q.stroke,zt=QS(x);zt.fill=lt;var bt=Fa(w);bt.fill=w.get("borderColor");var Ut=Fa(T);Ut.fill=T.get("borderColor");var Ht=Fa(C);if(Ht.fill=C.get("borderColor"),gt){var ge=v-2*d;Z(rt,lt,q.opacity,{x:d,y:0,width:ge,height:S})}else rt.removeTextContent();rt.setStyle(zt),rt.ensureState("emphasis").style=bt,rt.ensureState("blur").style=Ut,rt.ensureState("select").style=Ht,yi(rt)}dt.add(rt)}function F(dt,rt){var gt=it(rt);gt.dataIndex=o.dataIndex,gt.seriesIndex=r.seriesIndex;var st=Math.max(v-2*d,0),q=Math.max(p-2*d,0);if(rt.culling=!0,rt.setShape({x:d,y:d,width:st,height:q,r:A}),g)$(rt);else{rt.invisible=!1;var lt=o.getVisual("style"),zt=lt.fill,bt=QS(x);bt.fill=zt,bt.decal=lt.decal;var Ut=Fa(w),Ht=Fa(T),ge=Fa(C);Z(rt,zt,lt.opacity,null),rt.setStyle(bt),rt.ensureState("emphasis").style=Ut,rt.ensureState("blur").style=Ht,rt.ensureState("select").style=ge,yi(rt)}dt.add(rt)}function $(dt){!dt.invisible&&i.push(dt)}function Z(dt,rt,gt,st){var q=h.getModel(st?JS:KS),lt=ee(h.get("name"),null),zt=q.getShallow("show");pe(dt,ie(h,st?JS:KS),{defaultText:zt?lt:null,inheritColor:rt,defaultOpacity:gt,labelFetcher:r,labelDataIndex:o.dataIndex});var bt=dt.getTextContent();if(!!bt){var Ut=bt.style,Ht=Ig(Ut.padding||0);st&&(dt.setTextConfig({layoutRect:st}),bt.disableLabelLayout=!0),bt.beforeUpdate=function(){var nn=Math.max((st?st.width:dt.shape.width)-Ht[1]-Ht[3],0),Ee=Math.max((st?st.height:dt.shape.height)-Ht[0]-Ht[2],0);(Ut.width!==nn||Ut.height!==Ee)&&bt.setStyle({width:nn,height:Ee})},Ut.truncateMinChar=2,Ut.lineOverflow="truncate",Q(Ut,st,f);var ge=bt.getState("emphasis");Q(ge?ge.style:null,st,f)}}function Q(dt,rt,gt){var st=dt?dt.text:null;if(!rt&&gt.isLeafRoot&&st!=null){var q=r.get("drillDownIcon",!0);dt.text=q?q+" "+st:st}}function tt(dt,rt,gt,st){var q=m!=null&&t[dt][m],lt=a[dt];return q?(t[dt][m]=null,pt(lt,q)):g||(q=new rt,q instanceof hr&&(q.z2=xH(gt,st)),St(lt,q)),e[dt][y]=q}function pt(dt,rt){var gt=dt[y]={};rt instanceof Ud?(gt.oldX=rt.x,gt.oldY=rt.y):gt.oldShape=V({},rt.shape)}function St(dt,rt){var gt=dt[y]={},st=o.parentNode,q=rt instanceof at;if(st&&(!n||n.direction==="drillDown")){var lt=0,zt=0,bt=a.background[st.getRawIndex()];!n&&bt&&bt.oldShape&&(lt=bt.oldShape.width,zt=bt.oldShape.height),q?(gt.oldX=0,gt.oldY=zt):gt.oldShape={x:lt,y:zt,width:0,height:0}}gt.fadein=!q}}function xH(r,e){return r*gH+e}const bH=_H;var dl=D,wH=K,ec=-1,Yy=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=nt(e);this.type=n,this.mappingMethod=t,this._normalizeData=DH[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(zv(a),TH(a)):t==="category"?a.categories?CH(a):zv(a,!0):(J(t!=="linear"||a.dataExtent),zv(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return _t(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){K(e)?D(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=z(e)?[]:K(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&dl(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(wH(e)){var t=[];dl(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||W(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Eu(c[1],e,f[1]))return o}else if(f[1]===1/0){if(Eu(c[0],f[0],e))return o}else if(Eu(c[0],f[0],e)&&Eu(c[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function h(v,p){var d=Math.abs(v-e);d<i&&(i=d,a=p)}},r.visualHandlers={color:{applyVisual:gs("color"),getColorMapper:function(){var e=this.option;return Y(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Ps.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=mh(t,e.parsedVisual,a),i?a:pn(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return pn(mh(e,this.option.parsedVisual),"rgba")},category:Ps,piecewise:function(e,t){var n=Zd.call(this,t);return n==null&&(n=pn(mh(e,this.option.parsedVisual),"rgba")),n},fixed:Ha}},colorHue:Iu(function(e,t){return ks(e,t)}),colorSaturation:Iu(function(e,t){return ks(e,null,t)}),colorLightness:Iu(function(e,t){return ks(e,null,null,t)}),colorAlpha:Iu(function(e,t){return bf(e,t)}),decal:{applyVisual:gs("decal"),_normalizedToVisual:{linear:null,category:Ps,piecewise:null,fixed:null}},opacity:{applyVisual:gs("opacity"),_normalizedToVisual:Yd([0,1])},liftZ:{applyVisual:gs("liftZ"),_normalizedToVisual:{linear:Ha,category:Ha,piecewise:Ha,fixed:Ha}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:tx,category:Ps,piecewise:function(e,t){var n=Zd.call(this,t);return n==null&&(n=tx.call(this,e)),n},fixed:Ha}},symbolSize:{applyVisual:gs("symbolSize"),_normalizedToVisual:Yd([0,1])}},r}();function TH(r){var e=r.pieceList;r.hasSpecialVisual=!1,D(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function CH(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(dl(e,function(o,s){t[o]=s}),!z(n)){var a=[];K(n)?dl(n,function(o,s){var l=t[s];a[l!=null?l:ec]=o}):a[ec]=n,n=hL(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function zv(r,e){var t=r.visual,n=[];K(t)?dl(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),hL(r,n)}function Iu(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:Yd([0,1])}}function tx(r){var e=this.option.visual;return e[Math.round(It(r,[0,1],[0,e.length-1],!0))]||{}}function gs(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Ps(r){var e=this.option.visual;return e[this.option.loop&&r!==ec?r%e.length:r]}function Ha(){return this.option.visual[0]}function Yd(r){return{linear:function(e){return It(e,r,this.option.visual,!0)},category:Ps,piecewise:function(e,t){var n=Zd.call(this,t);return n==null&&(n=It(e,r,this.option.visual,!0)),n},fixed:Ha}}function Zd(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Yy.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function hL(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var n=Ue(t);return!n&&process.env.NODE_ENV!=="production"&&Ft("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var DH={linear:function(r){return It(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Yy.findPieceIndex(r,e,!0);if(t!=null)return It(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?ec:e},fixed:Xt};function Eu(r,e,t){return r?e<=t:e<t}const ce=Yy;var AH="itemStyle",vL=Ct();const MH={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||pL(t,{},r.getViewRoot().getAncestors(),r)}};function pL(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(AH),l=LH(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=ex(l),f=IH(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=ex(l),u.fill=h;else{var p=EH(r,a,i,s,l,v);D(v,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=PH(a,l,d,g,p,n);pL(d,y,t,n)}})}}}function LH(r,e,t){var n=V({},e),a=t.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function ex(r){var e=Gv(r,"color");if(e){var t=Gv(r,"colorAlpha"),n=Gv(r,"colorSaturation");return n&&(e=ks(e,null,null,n)),t&&(e=bf(e,t)),e}}function IH(r,e){return e!=null?ks(e,null,null,r):null}function Gv(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function EH(r,e,t,n,a,i){if(!(!i||!i.length)){var o=Fv(e,"color")||a.color!=null&&a.color!=="none"&&(Fv(e,"colorAlpha")||Fv(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new ce(c);return vL(h).drColorMappingBy=f,h}}}function Fv(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function PH(r,e,t,n,a,i){var o=V({},e);if(a){var s=a.type,l=s==="color"&&vL(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var gl=Math.max,rc=Math.min,rx=Kt,Zy=D,dL=["itemStyle","borderWidth"],NH=["itemStyle","gapWidth"],RH=["upperLabel","show"],OH=["upperLabel","height"];const kH={seriesType:"treemap",reset:function(r,e,t,n){var a=t.getWidth(),i=t.getHeight(),o=r.option,s=re(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(rx(s.width,l[0]),a),f=H(rx(s.height,l[1]),i),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=pl(n,h,r),p=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),g=uL(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?HH(r,v,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),gL(d,_,!1,0),S=d.getLayout(),Zy(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout($H(s,p,v),!0),r.setLayoutInfo(s),yL(b,new ht(-s.x,-s.y,a,i),g,d,0)}};function gL(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(dL),u=s.get(NH)/2,f=mL(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=gl(a-2*h,0),i=gl(i-h-v,0);var p=a*i,d=VH(r,s,p,e,t,n);if(!!d.length){var g={x:h,y:v,width:a,height:i},y=rc(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=d.length;S<b;){var x=d[S];_.push(x),_.area+=x.getLayout().area;var w=FH(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,nx(_,y,g,u,!1),y=rc(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&nx(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(t=!0)}for(var S=0,b=d.length;S<b;S++)gL(d[S],e,t,n+1)}}}function VH(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Et(o,function(v){return!v.isRemoved()}),zH(o,s);var u=GH(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=BH(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*t;o[f].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function BH(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function zH(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function GH(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],Zy(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function FH(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?gl(u*n/l,l/(u*a)):1/0}function nx(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],p={},d=f?v.getLayout().area/f:0,g=p[l[o]]=gl(f-2*n,0),y=t[s[i]]+t[l[i]]-u,m=c===h-1||y<d?y:d,_=p[l[i]]=gl(m-2*n,0);p[s[o]]=t[s[o]]+rc(n,g/2),p[s[i]]=u+rc(n,_/2),u+=m,v.setLayout(p,!0)}t[s[o]]+=f,t[l[o]]-=f}function HH(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var p=i.getValue();if(p===0)return o;u*=f/p;var d=s.getModel(),g=d.get(dL),y=Math.max(g,mL(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>h0&&(u=h0),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,a*m]}function $H(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;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 yL(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new ht(e.x-i.x,e.y-i.y,e.width,e.height);Zy(r.viewChildren||[],function(u){yL(u,l,t,n,a+1)})}}function mL(r){return r.get(RH)?r.get(OH):0}function WH(r){r.registerSeriesModel(lH),r.registerChartView(bH),r.registerVisual(MH),r.registerLayout(kH),iH(r)}function UH(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){At(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function YH(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){W(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");V(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)a.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Pu(r){return r instanceof Array||(r=[r,r]),r}function ZH(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),a=Pu(e.get("edgeSymbol")),i=Pu(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Pu(s.getShallow("symbol",!0)),f=Pu(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(V(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.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 Xd="-->",ah=function(r){return r.get("autoCurveness")||null},_L=function(r,e){var t=ah(r),n=20,a=[];if(At(t))n=t;else if(z(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},yl=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(Xd)},SL=function(r){var e=r.split(Xd);return[e[0],e[2],e[1]].join(Xd)},XH=function(r,e){var t=yl(r.node1,r.node2,e);return e.__edgeMap[t]},qH=function(r,e){var t=qd(yl(r.node1,r.node2,e),e),n=qd(yl(r.node2,r.node1,e),e);return t+n},qd=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function jH(r){!ah(r)||(r.__curvenessList=[],r.__edgeMap={},_L(r))}function KH(r,e,t,n){if(!!ah(t)){var a=yl(r,e,t),i=t.__edgeMap,o=i[SL(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function Xy(r,e,t,n){var a=ah(e),i=z(a);if(!a)return null;var o=XH(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=qH(r,e);_L(e,u),r.lineStyle=r.lineStyle||{};var f=yl(r.node1,r.node2,e),c=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=SL(f),p=qd(v,e),d=c[s+p+h];return n?i?a&&a[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:c[s+p+h]}function xL(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),qy(t,r)}}function qy(r,e){r.eachEdge(function(t,n){var a=ur(t.getModel().get(["lineStyle","curveness"]),-Xy(t,e,n,!0),0),i=hn(t.node1.getLayout()),o=hn(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}function JH(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];D(a.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}qy(i.graph,t)}else(!n||n==="none")&&xL(t)})}function Ns(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*t+1;return i/n}function Rs(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var ax=Math.PI,Hv=[];function jy(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.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,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=a.pointToData(n),v=h[0],p=h[1],d=[v-l,p-u];Lo(d,d),Zu(d,d,f),t.setLayout([l+d[0],u+d[1]],!0);var g=r.get(["circular","rotateLabel"]);bL(t,g,l,u)}QH[e](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=ur(y.getModel().get(["lineStyle","curveness"]),Xy(y,r,m),0),S=hn(y.node1.getLayout()),b=hn(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var QH={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,n,a,i,o){var s=0;Hv.length=o;var l=Ns(r);e.eachNode(function(c){var h=Rs(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=ax/2),Hv[c.dataIndex]=v,s+=v*2});var u=(2*ax-s)/o/2,f=0;e.eachNode(function(c){var h=u+Hv[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=h})}};function bL(r,e,t,n){var a=r.getGraphicEl();if(!!a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");V(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function t$(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&jy(e,"symbolSize")})}var Zi=Op;function e$(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Ti(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=hn(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,v=h,p,d;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;qa(y,x.p,b.p);var w=kp(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),Lo(y,y),!b.fixed&&Zi(b.p,b.p,y,T*w*v),!x.fixed&&Zi(x.p,x.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(qa(y,l,C.p),Zi(C.p,C.p,y,u*v))}for(var _=0;_<m;_++)for(var b=n[_],A=_+1;A<m;A++){var x=n[A];qa(y,x.p,b.p);var w=kp(y);w===0&&(l2(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&Zi(b.pp,b.pp,y,M),!x.fixed&&Zi(x.pp,x.pp,y,-M)}for(var L=[],_=0;_<m;_++){var C=n[_];C.fixed||(qa(L,C.p,C.pp),Zi(C.p,C.p,L,v),Te(C.pp,C.p))}v=v*.992;var I=v<.01;d&&d(n,a,I),g&&g(I)}}}function r$(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?xL(e):l==="circular"&&jy(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=z(c)?c:[c,c],p=z(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=It(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),x=It(_,f,p);isNaN(x)&&(x=(p[0]+p[1])/2);var w=b.getModel(),T=ur(b.getModel().get(["lineStyle","curveness"]),-Xy(b,e,S,!0),0);return{n1:d[b.node1.dataIndex],n2:d[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=e$(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Te(_[b].p,a.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||a.getNodeByIndex(x).setLayout(_[x].p),n[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=a.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Te(L[0],A),Te(L[1],M),+T.curveness&&(L[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null})}function n$(r,e,t){var n=V(r.getBoxLayoutParams(),{aspect:t});return re(n,{width:e.getWidth(),height:e.getHeight()})}function a$(r,e){var t=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Ec(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=n$(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=f.width,p=f.height,d=n.coordinateSystem=new Gl;d.zoomLimit=n.get("scaleLimit"),d.setBoundingRect(s[0],s[1],c,h),d.setViewRect(f.x,f.y,v,p),d.setCenter(n.get("center"),e),d.setZoom(n.get("zoom")),t.push(d)}}),t}var ix=le.prototype,$v=Oc.prototype,wL=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(wL);function Wv(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var i$=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wL},e.prototype.buildPath=function(t,n){Wv(n)?ix.buildPath.call(this,t,n):$v.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return Wv(this.shape)?ix.pointAt.call(this,t):$v.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=Wv(n)?[n.x2-n.x1,n.y2-n.y1]:$v.tangentAt.call(this,t);return Lo(a,a)},e}(mt);const o$=i$;var Uv=["fromSymbol","toSymbol"];function ox(r){return"_"+r+"Type"}function sx(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Wo(a),u=Ai(o||0,l);return n+l+u+(i||"")+(s||"")}function lx(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Wo(a),u=Ai(o||0,l),f=Qt(n,-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 s$(r){var e=new o$({name:"line",subPixelOptimize:!0});return jd(e.shape,r),e}function jd(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var l$=function(r){R(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=s$(o);s.shape.percent=0,Bt(s,{shape:{percent:1}},i,n),this.add(s),D(Uv,function(l){var u=lx(l,t,n);this.add(u),this[ox(l)]=sx(l,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};jd(l.shape,s),Mt(o,l,i,n),D(Uv,function(u){var f=sx(u,t,n),c=ox(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=lx(u,t,n);this.add(h)}this[c]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var p=t.getItemModel(n),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),h=d.get("focus"),v=d.get("blurScope"),f=ie(p)}var g=t.getItemVisual(n,"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,D(Uv,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Ie.length;T++){var C=Ie[T],A=o.getState(C);if(A){var M=A.style||{},L=w.ensureState(C),I=L.style||(L.style={});M.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(I.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);pe(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(n):isFinite(m)?Yt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");z(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),$t(this,h,v,c)},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");jd(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=qa([],c,f);Lo(h,h);function v(A,M){var L=A.__specifiedRotation;if(L==null){var I=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else A.attr("rotation",L)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[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,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,d="top";break;default:C=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e}(at);const Ky=l$;var u$=function(){function r(e){this.group=new at,this._LineCtor=e||Ky}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=ux(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ux(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!f$(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(Yv(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){ha(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(!!Yv(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!Yv(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function f$(r){return r.animators&&r.animators.length>0}function ux(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ie(e)}}function fx(r){return isNaN(r[0])||isNaN(r[1])}function Yv(r){return r&&!fx(r[0])&&!fx(r[1])}const Jy=u$;var Zv=[],Xv=[],qv=[],Xi=se,jv=ni,cx=Math.abs;function hx(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Zv[0]=Xi(n[0],a[0],i[0],f),Zv[1]=Xi(n[1],a[1],i[1],f);var c=cx(jv(Zv,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;Xv[0]=Xi(n[0],a[0],i[0],s),Xv[1]=Xi(n[1],a[1],i[1],s),qv[0]=Xi(n[0],a[0],i[0],v),qv[1]=Xi(n[1],a[1],i[1],v);var c=jv(Xv,e)-l;if(cx(c)<.01)break;var p=jv(qv,e)-l;u/=2,c<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Kv(r,e){var t=[],n=Ks,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[hn(u[0]),hn(u[1])],u[2]&&u.__original.push(hn(u[2])));var h=u.__original;if(u[2]!=null){if(Te(a[0],h[0]),Te(a[1],h[2]),Te(a[2],h[1]),f&&f!=="none"){var v=Rs(s.node1),p=hx(a,h[0],v*e);n(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(c&&c!=="none"){var v=Rs(s.node2),p=hx(a,h[1],v*e);n(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Te(u[0],a[0]),Te(u[1],a[2]),Te(u[2],a[1])}else{if(Te(i[0],h[0]),Te(i[1],h[1]),qa(o,i[1],i[0]),Lo(o,o),f&&f!=="none"){var v=Rs(s.node1);Op(i[0],i[0],o,v*e)}if(c&&c!=="none"){var v=Rs(s.node2);Op(i[1],i[1],o,-v*e)}Te(u[0],i[0]),Te(u[1],i[1])}})}function vx(r){return r.type==="view"}var c$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new Ol,i=new Jy,o=this.group;this._controller=new zl(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(vx(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Mt(u,f,t)}Kv(t.getGraph(),Ns(t));var c=t.getData();s.updateData(c);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,n,a),clearTimeout(this._layoutTimeout);var v=t.forceLayout,p=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,p);var d=t.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(!!b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(d){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,p),v.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),jy(t,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),qy(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(it(b).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);!S||b==="adjacency"&&(it(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(_){bL(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!eh(u,a,t)}),!vx(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){zy(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Gy(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Kv(t.getGraph(),Ns(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=Ns(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){Kv(t.getGraph(),Ns(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Vt);const h$=c$;function qi(r){return"_EC_"+r}var v$=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(n[qi(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var a=new $a(e,t);return a.hostGraph=this,this.nodes.push(a),n[qi(e)]=a,a},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[qi(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(At(e)&&(e=this.nodes[e]),At(t)&&(t=this.nodes[t]),e instanceof $a||(e=a[qi(e)]),t instanceof $a||(t=a[qi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new TL(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof $a&&(e=e.id),t instanceof $a&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof $a||(t=this._nodesMap[qi(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(a,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,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;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var 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},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),$a=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=t==null?-1:t}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=X(),t=X(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,t.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)e.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r}(),TL=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n==null?-1:n}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=X(),t=X();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r}();function CL(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}te($a,CL("hostGraph","data"));te(TL,CL("hostGraph","edgeData"));const p$=v$;function DL(r,e,t,n,a){for(var i=new p$(n),o=0;o<r.length;o++)i.addNode(Kt(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(Kt(ee(f.id,null),c+" > "+h)),u++)}var v=t.get("coordinateSystem"),p;if(v==="cartesian2d"||v==="polar")p=Mn(r,t);else{var d=Fo.get(v),g=d?d.dimensions||[]:[];vt(g,"value")<0&&g.concat(["value"]);var y=El(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new Me(y,t),p.initData(r)}var m=new Me(["value"],t);return m.initData(l,s),a&&a(p,m),sL({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var d$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Bl(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),pi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){jH(this);var s=DL(i,a,this,!0,l);return D(s.edges,function(u){KH(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=kt.prototype.getModel;function h(p,d){var g=c.call(this,p,d);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=v,p.getModel=h,p});function v(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),oe("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=XD({series:this,dataIndex:t,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new Me(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const g$=d$;var y$={type:"graphRoam",event:"graphRoam",update:"none"};function m$(r){r.registerChartView(h$),r.registerSeriesModel(g$),r.registerProcessor(UH),r.registerVisual(YH),r.registerVisual(ZH),r.registerLayout(JH),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,t$),r.registerLayout(r$),r.registerCoordinateSystem("graphView",{dimensions:Gl.dimensions,create:a$}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction(y$,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=Hy(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var _$=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),S$=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new _$},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,f)},e}(mt);const x$=S$;function b$(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Nu(r,e){var t=r==null?"":r+"";return e&&(W(e)?t=e.replace("{value}",t):j(e)&&(t=e(r))),t}var w$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=b$(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap"),v=h?Kf:ze,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,f];iC(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;var w=new v({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[b][1]}),w.setStyle(d.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),D(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(t,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(t,n,a,T,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,T,o,u,f,l,g)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),b=m.get("splitNumber"),x=H(y.get("length"),p),w=H(m.get("length"),p),T=s,C=(l-s)/S,A=C/b,M=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),E,P,N=0;N<=S;N++){if(E=Math.cos(T),P=Math.sin(T),y.get("show")){var k=I?I+f:f,O=new le({shape:{x1:E*(p-k)+h,y1:P*(p-k)+v,x2:E*(p-x-k)+h,y2:P*(p-x-k)+v},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:i(N/S)}),c.add(O)}if(_.get("show")){var k=_.get("distance")+I,B=Nu(Yt(N/S*(g-d)+d),_.get("formatter")),F=i(N/S),$=E*(p-x-k)+h,Z=P*(p-x-k)+v,Q=_.get("rotate"),tt=0;Q==="radial"?(tt=-T+2*Math.PI,tt>Math.PI/2&&(tt+=Math.PI)):Q==="tangential"?tt=-T-Math.PI/2:At(Q)&&(tt=Q*Math.PI/180),tt===0?c.add(new Dt({style:Ot(_,{text:B,x:$,y:Z,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:E<-.4?"left":E>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new Dt({style:Ot(_,{text:B,x:$,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:$,originY:Z,rotation:tt}))}if(m.get("show")&&N!==S){var k=m.get("distance");k=k?k+f:f;for(var pt=0;pt<=b;pt++){E=Math.cos(T),P=Math.sin(T);var St=new le({shape:{x1:E*(p-k)+h,y1:P*(p-k)+v,x2:E*(p-w-k)+h,y2:P*(p-w-k)+v},silent:!0,style:L});L.stroke==="auto"&&St.setStyle({stroke:i((N+pt/b)/S)}),c.add(St),T+=A}T-=A}else T+=C}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(A,M){var L=m.getItemModel(A),I=L.getModel("pointer"),E=H(I.get("width"),o.r),P=H(I.get("length"),o.r),N=t.get(["pointer","icon"]),k=I.get("offsetCenter"),O=H(k[0],o.r),B=H(k[1],o.r),F=I.get("keepAspect"),$;return N?$=Qt(N,O-E/2,B-P,E,P,null,F):$=new x$({shape:{angle:-Math.PI/2,width:E,r:P,x:O,y:B}}),$.rotation=-(M+Math.PI/2),$.x=o.cx,$.y=o.cy,$}function C(A,M){var L=g.get("roundCap"),I=L?Kf:ze,E=g.get("overlap"),P=E?g.get("width"):f/m.count(),N=E?o.r-P:o.r-(A+1)*P,k=E?o.r:o.r-A*P,O=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:k}});return E&&(O.z2=b-m.get(_,A)%b),O}(y||d)&&(m.diff(h).add(function(A){var M=m.get(_,A);if(d){var L=T(A,s);Bt(L,{rotation:-((isNaN(+M)?w[0]:It(M,x,w,!0))+Math.PI/2)},t),c.add(L),m.setItemGraphicEl(A,L)}if(y){var I=C(A,s),E=g.get("clip");Bt(I,{shape:{endAngle:It(M,x,w,E)}},t),c.add(I),sd(t.seriesIndex,m.dataType,A,I),p[A]=I}}).update(function(A,M){var L=m.get(_,A);if(d){var I=h.getItemGraphicEl(M),E=I?I.rotation:s,P=T(A,E);P.rotation=E,Mt(P,{rotation:-((isNaN(+L)?w[0]:It(L,x,w,!0))+Math.PI/2)},t),c.add(P),m.setItemGraphicEl(A,P)}if(y){var N=v[M],k=N?N.shape.endAngle:s,O=C(A,k),B=g.get("clip");Mt(O,{shape:{endAngle:It(L,x,w,B)}},t),c.add(O),sd(t.seriesIndex,m.dataType,A,O),p[A]=O}}).execute(),m.each(function(A){var M=m.getItemModel(A),L=M.getModel("emphasis"),I=L.get("focus"),E=L.get("blurScope"),P=L.get("disabled");if(d){var N=m.getItemGraphicEl(A),k=m.getItemVisual(A,"style"),O=k.fill;if(N instanceof de){var B=N.style;N.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},k))}else N.useStyle(k),N.type!=="pointer"&&N.setColor(O);N.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(It(m.get(_,A),x,[0,1],!0))),N.z2EmphasisLift=0,ve(N,M),$t(N,I,E,P)}if(y){var F=p[A];F.useStyle(m.getItemVisual(A,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,ve(F,M),$t(F,I,E,P)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Qt(s,n.cx-o/2+H(l[0],n.r),n.cy-o/2+H(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),c=+t.get("max"),h=new at,v=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Dt({silent:!0}),p[y]=new Dt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,b=i(It(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r),A=v[y];A.attr({z2:g?0:2,style:Ot(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+H(L[0],o.r),E=o.cy+H(L[1],o.r),P=H(M.get("width"),o.r),N=H(M.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,A=p[y],O=M.get("formatter");A.attr({z2:g?0:2,style:Ot(M,{x:I,y:E,text:Nu(_,O),width:isNaN(P)?null:P,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:k})}),KC(A,{normal:M},_,function(F){return Nu(F,O)}),d&&JC(A,y,l,t,{getFormattedLabel:function(F,$,Z,Q,tt,pt){return Nu(pt?pt.interpolatedValue:_,O)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=p},e.type="gauge",e}(Vt);const T$=w$;var C$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Uo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,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:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Gt);const D$=C$;function A$(r){r.registerChartView(T$),r.registerSeriesModel(D$)}var M$=["itemStyle","opacity"],L$=function(r){R(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Fe,s=new Dt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(M$);f=f==null?1:f,a||Ir(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Bt(i,{style:{opacity:f}},o,n)):Mt(i,{style:{opacity:f},shape:{points:l.points}},o,n),ve(i,s),this._updateLabel(t,n),$t(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),f=u.label,c=t.getItemVisual(n,"style"),h=c.fill;pe(o,ie(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:t.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new ut(v[0][0],v[0][1]):null},Mt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Iy(a,Ey(l),{stroke:h})},e}(Ge),I$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new L$(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);rl(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Vt);const E$=I$;var P$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Uo(this,{coordDimensions:["value"],encodeDefaulter:ot(oy,this)})},e.prototype._defaultLabelLine=function(t){pi(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const N$=P$;function R$(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function O$(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return j(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function k$(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,p;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),p=[[h,v],[h,v]];else{var d=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-_,h=y-5,c="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+_,h=y+5,c="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,c="center"):(y=d+_,h=y+5,c="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=d+_,h=y+5,c="bottom")):o==="leftTop"?(d=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,c="center"):(y=d-_,h=y-5,c="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=d-_,h=y-5,c="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=d+_,h=y+5,c="left")),t==="horizontal"?(y=d,h=y):(m=g,v=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function V$(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=R$(t,e),s=t.get("orient"),l=o.width,u=o.height,f=O$(n,i),c=o.x,h=o.y,v=s==="horizontal"?[H(t.get("minSize"),u),H(t.get("maxSize"),u)]:[H(t.get("minSize"),l),H(t.get("maxSize"),l)],p=n.getDataExtent(a),d=t.get("min"),g=t.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(n.count()-1))/n.count(),b=function(E,P){if(s==="horizontal"){var N=n.get(a,E)||0,k=It(N,[d,g],v,!0),O=void 0;switch(y){case"top":O=h;break;case"center":O=h+(u-k)/2;break;case"bottom":O=h+(u-k);break}return[[P,O],[P,O+k]]}var B=n.get(a,E)||0,F=It(B,[d,g],v,!0),$;switch(y){case"left":$=c;break;case"center":$=c+(l-F)/2;break;case"right":$=c+l-F;break}return[[$,P],[$+F,P]]};i==="ascending"&&(S=-S,m=-m,s==="horizontal"?c+=l:h+=u,f=f.reverse());for(var x=0;x<f.length;x++){var w=f[x],T=f[x+1],C=n.getItemModel(w);if(s==="horizontal"){var A=C.get(["itemStyle","width"]);A==null?A=S:(A=H(A,l),i==="ascending"&&(A=-A));var M=b(w,c),L=b(T,c+A);c+=A+m,n.setItemLayout(w,{points:M.concat(L.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);I==null?I=S:(I=H(I,u),i==="ascending"&&(I=-I));var M=b(w,h),L=b(T,h+I);h+=I+m,n.setItemLayout(w,{points:M.concat(L.slice().reverse())})}}k$(n)})}function B$(r){r.registerChartView(E$),r.registerSeriesModel(N$),r.registerLayout(V$),r.registerProcessor(Vl("funnel"))}var z$=.3,G$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new at,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,c=dx(t);s.diff(l).add(h).update(v).remove(p).execute();function h(g){var y=px(s,o,g,f,u);Jv(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=AL(s,g,f,u);s.setItemGraphicEl(g,m),Mt(m,{shape:{points:_}},t,g),Ir(m),Jv(m,s,g,c)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=F$(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=dx(n),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var c=px(i,this._dataGroup,f,s,o);c.incremental=!0,Jv(c,i,f,l),u.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Vt);function F$(r,e,t){var n=r.model,a=r.getRect(),i=new Tt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Bt(i,{shape:{width:a.width,height:a.height}},e,t),i}function AL(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);H$(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function px(r,e,t,n,a){var i=AL(r,t,n,a),o=new Fe({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function dx(r){var e=r.get("smooth",!0);return e===!0&&(e=z$),e=Sn(e),vi(e)&&(e=0),{smooth:e}}function Jv(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");ve(r,a,"lineStyle"),$t(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function H$(r,e){return e==="category"?r==null:r==null||isNaN(r)}const $$=G$;var W$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{useEncodeDefaulter:Y(U$,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Gt);function U$(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!!e){var t={};return D(e.dimensions,function(n){var a=Y$(n);t[n]=a}),t}}function Y$(r){return+r.replace("dim","")}const Z$=W$;var X$=["lineStyle","opacity"],q$={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(X$,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};const j$=q$;function K$(r){J$(r),Q$(r)}function J$(r){if(!r.parallel){var e=!1;D(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function Q$(r){var e=Pt(r.parallelAxis);D(e,function(t){if(!!K(t)){var n=t.parallelIndex||0,a=Pt(r.parallel)[n];a&&a.parallelAxisDefault&&ct(t,a.parallelAxisDefault,!1)}})}var t4=5,e4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},D(r4,function(i,o){a.getZr().on(o,this._handlers[o]=Y(i,this))},this)),$o(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){sl(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(V({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Wt),r4={mousedown:function(r){Qv(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Qv(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>t4)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Qv(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Qv(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const n4=e4;var a4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&ct(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=Et(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(xt);const i4=a4;var o4=function(r){R(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Nr);const s4=o4;function Ei(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=ji(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=ji(s,[0,o]),a=i=ji(s,[a,i]),n=0}e[0]=ji(e[0],t),e[1]=ji(e[1],t);var l=tp(e,n);e[n]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[n]=ji(e[n],f);var c;return c=tp(e,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(e[1-n]=e[n]+l.sign*a),c=tp(e,n),i!=null&&c.span>i&&(e[1-n]=e[n]+c.sign*i),e}function tp(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function ji(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var ep=D,ML=Math.min,LL=Math.max,gx=Math.floor,l4=Math.ceil,yx=Yt,u4=Math.PI,f4=function(){function r(e,t,n){this.type="parallel",this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;ep(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new s4(o,Jc(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(!!e.contains(n,t)){var a=n.getData();ep(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),bo(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=re(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=Ru(e.get("axisExpandWidth"),l),c=Ru(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=e.get("axisExpandWindow"),p;if(v)p=Ru(v[1]-v[0],l),v[1]=v[0]+p;else{p=Ru(f*(c-1),l);var d=e.get("axisExpandCenter")||gx(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[gx(yx(v[0]/f,1))+1,l4(yx(v[1]/f,1))-1],m=g/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ep(n,function(o,s){var l=(a.axisExpandable?h4:c4)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:u4/2,vertical:0},c=[u[i].x+e.x,u[i].y+e.y],h=f[i],v=cr();Ci(v,v,h),jr(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=e.getValues(s,f),v=0,p=o.length;v<p;v++){var d=l[v].getActiveState(h[v]);if(d==="inactive"){c="inactive";break}}}t(c,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Ar([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return nt(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):h&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Ei(l,a,o,"all"):u="none";else{var v=a[1]-a[0],p=o[1]*s/v;a=[LL(0,p-v/2)],a[1]=ML(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Ru(r,e){return ML(LL(r,e[0]),e[1])}function c4(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function h4(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const v4=f4;function p4(r,e){var t=[];return r.eachComponent("parallel",function(n,a){var i=new v4(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",Jt).models[0];n.coordinateSystem=a.coordinateSystem}}),t}var d4={create:p4};const g4=d4;var IL=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return gi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=nt(t);if(n)for(var a=n.length-1;a>=0;a--)sr(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e}(xt);te(IL,Nl);const mx=IL;var _i=!0,ml=Math.min,Co=Math.max,y4=Math.pow,m4=1e4,_4=6,S4=6,_x="globalPan",x4={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},b4={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Sx={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},w4=0,T4=function(r){R(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&J(t),n._zr=t,n.group=new at,n._uid="brushController_"+w4++,D(E4,function(a,i){this._handlers[i]=Y(a,this)},n),n}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&J(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||RF(n,_x,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=ct(nt(Sx),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;OF(t,_x,this._uid),D(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};D(t,function(a){n[a.panelId]=nt(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&J(this._mounted),t=G(t,function(h){return ct(nt(Sx),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Tn(a,t,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var p=t[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var d=i[h]=v!=null?(a[v].__brushOption=p,a[v]):PL(o,EL(o,p));Qy(o,d)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Kd(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(pr);function EL(r,e){var t=ih[e.brushType].createCover(r,e);return t.__brushOption=e,RL(t,e),r.group.add(t),t}function PL(r,e){var t=tm(e);return t.endCreating&&(t.endCreating(r,e),RL(e,e.__brushOption)),e}function NL(r,e){var t=e.__brushOption;tm(e).updateCoverShape(r,e,t.range,t)}function RL(r,e){var t=e.z;t==null&&(t=m4),r.traverse(function(n){n.z=t,n.z2=t})}function Qy(r,e){tm(e).updateCommon(r,e),NL(r,e)}function tm(r){return ih[r.__brushOption.brushType]}function em(r,e,t){var n=r._panels;if(!n)return _i;var a,i=r._transform;return D(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function OL(r,e){var t=r._panels;if(!t)return _i;var n=e.__brushOption.panelId;return n!=null?t[n]:_i}function Kd(r){var e=r._covers,t=e.length;return D(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function Si(r,e){var t=G(r._covers,function(n){var a=n.__brushOption,i=nt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function C4(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=y4(a*a+i*i,.5);return o>_4}function kL(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function VL(r,e,t,n){var a=new at;return a.add(new Tt({name:"main",style:rm(t),silent:!0,draggable:!0,cursor:"move",drift:ot(xx,r,e,a,["n","s","w","e"]),ondragend:ot(Si,e,{isEnd:!0})})),D(n,function(i){a.add(new Tt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(xx,r,e,a,i),ondragend:ot(Si,e,{isEnd:!0})}))}),a}function BL(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=Co(a,S4),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],c=t[1][1],h=f-i+a/2,v=c-i+a/2,p=f-o,d=c-s,g=p+a,y=d+a;sn(r,e,"main",o,s,p,d),n.transformable&&(sn(r,e,"w",l,u,i,y),sn(r,e,"e",h,u,i,y),sn(r,e,"n",l,u,g,i),sn(r,e,"s",l,v,g,i),sn(r,e,"nw",l,u,i,i),sn(r,e,"ne",h,u,i,i),sn(r,e,"sw",l,v,i,i),sn(r,e,"se",h,v,i,i))}function Jd(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(rm(t)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Qd(r,i[0]):A4(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?b4[s]+"-resize":null})})}function sn(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(L4(nm(r,e,[[n,a],[n+i,a+o]])))}function rm(r){return et({strokeNoScale:!0},r.brushStyle)}function zL(r,e,t,n){var a=[ml(r,t),ml(e,n)],i=[Co(r,t),Co(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function D4(r){return li(r.group)}function Qd(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Vc(t[e],D4(r));return n[a]}function A4(r,e){var t=[Qd(r,e[0]),Qd(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function xx(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=GL(e,a,i);D(n,function(u){var f=x4[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(zL(s[0][0],s[1][0],s[0][1],s[1][1])),Qy(e,t),Si(e,{isEnd:!1})}function M4(r,e,t,n){var a=e.__brushOption.range,i=GL(r,t,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Qy(r,e),Si(r,{isEnd:!1})}function GL(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function nm(r,e,t){var n=OL(r,e);return n&&n!==_i?n.clipPath(t,r._transform):nt(t)}function L4(r){var e=ml(r[0][0],r[1][0]),t=ml(r[0][1],r[1][1]),n=Co(r[0][0],r[1][0]),a=Co(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function I4(r,e,t){if(!(!r._brushType||P4(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=em(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===_i||s.panelId===i.panelId)&&ih[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function tg(r){var e=r.event;e.preventDefault&&e.preventDefault()}function eg(r,e,t){return r.childOfName("main").contain(e,t)}function FL(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),C4(r)||a){if(i&&!a){o.brushMode==="single"&&Kd(r);var l=nt(o);l.brushType=bx(l.brushType,i),l.panelId=i===_i?null:i.panelId,a=r._creatingCover=EL(r,l),r._covers.push(a)}if(a){var u=ih[bx(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(nm(r,a,r._track)),n&&(PL(r,a),u.updateCommon(r,a)),NL(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&em(r,e,t)&&Kd(r)&&(s={isEnd:n,removeOnClick:!0});return s}function bx(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&J(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var E4={mousedown:function(r){if(this._dragging)Tx(this,r);else if(!r.target||!r.target.draggable){tg(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=em(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(I4(this,r,n),this._dragging){tg(r);var a=FL(this,r,n,!1);a&&Si(this,a)}},mouseup:function(r){Tx(this,r)}};function Tx(r,e){if(r._dragging){tg(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=FL(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Si(r,i)}}function P4(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var ih={lineX:Cx(0),lineY:Cx(1),rect:{createCover:function(r,e){function t(n){return n}return VL({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=kL(r);return zL(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){BL(r,e,t,n)},updateCommon:Jd,contain:eg},polygon:{createCover:function(r,e){var t=new at;return t.add(new Fe({name:"main",style:rm(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Ge({name:"main",draggable:!0,drift:ot(M4,r,e),ondragend:ot(Si,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:nm(r,e,t)})},updateCommon:Jd,contain:eg}};function Cx(r){return{createCover:function(e,t){return VL({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=kL(e),n=ml(t[0][r],t[1][r]),a=Co(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=OL(e,t);if(o!==_i&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),BL(e,t,l,a)},updateCommon:Jd,contain:eg}}const am=T4;function HL(r){return r=im(r),function(e){return ZC(e,r)}}function $L(r,e){return r=im(r),function(t){var n=e!=null?e:t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function WL(r,e,t){var n=im(r);return function(a,i){return n.contain(i[0],i[1])&&!eh(a,e,t)}}function im(r){return ht.create(r)}var N4=["axisLine","axisTickLabel","axisName"],R4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new am(n.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!O4(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=V4(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,c=t.axis.dim,h=l.getAxisLayout(c),v=V({strokeContainThreshold:f},h),p=new Cn(t,v);D(N4,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,t,s,f,a),Al(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=ht.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:HL(c),isTargetByCursor:WL(c,s,i),getLinearBrushOtherExtent:$L(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(k4(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=G(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Wt);function O4(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function k4(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function V4(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const B4=R4;var z4={type:"axisAreaSelect",event:"axisAreaSelected"};function G4(r){r.registerAction(z4,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var F4={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function UL(r){r.registerComponentView(n4),r.registerComponentModel(i4),r.registerCoordinateSystem("parallel",g4),r.registerPreprocessor(K$),r.registerComponentModel(mx),r.registerComponentView(B4),To(r,"parallel",mx,F4),G4(r)}function H4(r){yt(UL),r.registerChartView($$),r.registerSeriesModel(Z$),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,j$)}var $4=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}(),W4=function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $4},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e}(mt),U4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,c=t.getData(),h=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new W4,g=it(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),A=C.get("localX"),M=C.get("localY"),L=p.getLayout(),I,E,P,N,k,O,B,F;d.shape.extent=Math.max(1,L.dy),d.shape.orient=v,v==="vertical"?(I=(x!=null?x*u:S.x)+L.sy,E=(w!=null?w*f:S.y)+S.dy,P=(A!=null?A*u:T.x)+L.ty,N=M!=null?M*f:T.y,k=I,O=E*(1-_)+N*_,B=P,F=E*_+N*(1-_)):(I=(x!=null?x*u:S.x)+S.dx,E=(w!=null?w*f:S.y)+L.sy,P=A!=null?A*u:T.x,N=(M!=null?M*f:T.y)+L.ty,k=I*(1-_)+P*_,O=E,B=I*_+P*(1-_),F=N),d.setShape({x1:I,y1:E,x2:P,y2:N,cpx1:k,cpy1:O,cpx2:B,cpy2:F}),d.useStyle(m.getItemStyle()),Dx(d.style,v,p);var $=""+y.get("value"),Z=ie(y,"edgeLabel");pe(d,Z,{labelFetcher:{getFormattedLabel:function(pt,St,dt,rt,gt,st){return t.getFormattedLabel(pt,St,"edge",rt,ur(gt,Z.normal&&Z.normal.get("formatter"),$),st)}},labelDataIndex:p.dataIndex,defaultText:$}),d.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");ve(d,y,"lineStyle",function(pt){var St=pt.getItemStyle();return Dx(St,v,p),St}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var tt=Q.get("focus");$t(d,tt==="adjacency"?p.getAdjacentDataIndices():tt==="trajectory"?p.getTrajectoryDataIndices():tt,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new Tt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});pe(S,ie(g),{labelFetcher:{getFormattedLabel:function(x,w){return t.getFormattedLabel(x,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),ve(S,g),s.add(S),c.setItemGraphicEl(p.dataIndex,S),it(S).dataType="node";var b=_.get("focus");$t(S,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Y4(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Vt);function Dx(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");W(n)&&W(a)&&(r.fill=new Dl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Y4(r,e,t){var n=new Tt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Bt(n,{shape:{width:r.width+20}},e,t),n}const Z4=U4;var X4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new kt(o[l],this,n);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(i&&a){var u=DL(i,a,this,!0,f);return u.data}function f(c,h){c.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return oe("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),c=f.getLayout().value,h=this.getDataParams(t,a).data.name;return oe("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Gt);const q4=X4;function j4(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=K4(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;Q4(u);var c=Et(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),p=t.get("nodeAlign");J4(u,f,n,a,o,s,h,v,p)})}function K4(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function J4(r,e,t,n,a,i,o,s,l){tW(r,e,t,a,i,s,l),aW(r,e,i,a,n,o,s),vW(r,s)}function Q4(r){D(r,function(e){var t=ea(e.outEdges,nc),n=ea(e.inEdges,nc),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function tW(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),d.setLayout({depth:y?g.depth:c},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var _=d.outEdges[m],S=e.indexOf(_);s[S]=0;var b=_.node2,x=r.indexOf(b);--l[x]===0&&f.indexOf(b)<0&&f.push(b)}}++c,u=f,f=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>c-1?v:c-1;o&&o!=="left"&&eW(r,o,i,w);var T=i==="vertical"?(a-t)/w:(n-t)/w;nW(r,T,i)}function YL(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function eW(r,e,t,n){if(e==="right"){for(var a=[],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];a.indexOf(f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(r,function(c){YL(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&rW(r,n)}function rW(r,e){D(r,function(t){!YL(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function nW(r,e,t){D(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function aW(r,e,t,n,a,i,o){var s=iW(r,o);oW(s,e,t,n,a,o),rp(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,sW(s,l,o),rp(s,a,t,n,o),hW(s,l,o),rp(s,a,t,n,o)}function iW(r,e){var t=[],n=e==="vertical"?"y":"x",a=nd(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),D(a.keys,function(i){t.push(a.buckets.get(i))}),t}function oW(r,e,t,n,a,i){var o=1/0;D(r,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),D(r,function(s){D(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))})}),D(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function rp(r,e,t,n,a){var i=a==="vertical"?"x":"y";D(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,h=a==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+e;var p=a==="vertical"?n:t;if(u=f-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+e-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function sW(r,e,t){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=ea(a.outEdges,lW,t)/ea(a.outEdges,nc);if(isNaN(i)){var o=a.outEdges.length;i=o?ea(a.outEdges,uW,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-ua(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-ua(a,t))*e;a.setLayout({y:l},!0)}}})})}function lW(r,e){return ua(r.node2,e)*r.getValue()}function uW(r,e){return ua(r.node2,e)}function fW(r,e){return ua(r.node1,e)*r.getValue()}function cW(r,e){return ua(r.node1,e)}function ua(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function nc(r){return r.getValue()}function ea(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function hW(r,e,t){D(r,function(n){D(n,function(a){if(a.inEdges.length){var i=ea(a.inEdges,fW,t)/ea(a.inEdges,nc);if(isNaN(i)){var o=a.inEdges.length;i=o?ea(a.inEdges,cW,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-ua(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-ua(a,t))*e;a.setLayout({y:l},!0)}}})})}function vW(r,e){var t=e==="vertical"?"x":"y";D(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),D(r,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function pW(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new ce({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.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}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function dW(r){r.registerChartView(Z4),r.registerSeriesModel(q4),r.registerLayout(j4),r.registerVisual(pW),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var ZL=function(){function r(){}return r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],p=v[f].get("type"),d=v[1-f].get("type"),g=e.data;if(g&&l){var y=[];D(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=V({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:Uf(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Uf(d),dimsDef:m.slice()}];return Uo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ot(_D,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),XL=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Gt);te(XL,ZL,!0);const gW=XL;var yW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=Ax(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(Ir(c),qL(h,c,i,u)):c=Ax(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(Vt),mW=function(){function r(){}return r}(),_W=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new mW},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e}(mt);function Ax(r,e,t,n,a){var i=r.ends,o=new _W({shape:{points:a?SW(i,n,r):i}});return qL(r,o,e,t,a),o}function qL(r,e,t,n,a){var i=t.hostModel,o=Ll[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");ve(e,s),$t(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function SW(r,e,t){return G(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}const xW=yW;var qs=D;function bW(r){var e=wW(r);qs(e,function(t){var n=t.seriesModels;!n.length||(TW(t),qs(n,function(a,i){CW(a,t.boxOffsetList[i],t.boxWidthList[i])}))})}function wW(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=vt(t,a);i<0&&(i=t.length,t[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function TW(r){var e=r.axis,t=r.seriesModels,n=t.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;qs(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}qs(t,function(p){var d=p.get("boxWidth");z(d)||(d=[d,d]),o.push([H(d[0],s)||0,H(d[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;qs(t,function(p,d){i.push(v),v+=c+h,a.push(Math.min(Math.max(h,o[d][0]),o[d][1]))})}function CW(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var h=a.get(u,c),v=_(h,f[2],c),p=_(h,f[0],c),d=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,d,!1),S(m,g,!0),m.push(p,d,y,g),b(m,p),b(m,y),b(m,v),a.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(x,w,T){var C=a.get(w,T),A=[];A[o]=x,A[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=e),M}function S(x,w,T){var C=w.slice(),A=w.slice();C[o]+=i,A[o]-=i,T?x.push(C,A):x.push(A,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}function DW(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=sr(r[o].slice()),l=Ih(s,.25),u=Ih(s,.5),f=Ih(s,.75),c=s[0],h=s[s.length-1],v=(a==null?1.5:a)*(f-l),p=i?c:Math.max(c,l-v),d=i?h:Math.min(h,f+v),g=e.itemNameFormatter,y=j(g)?g({value:o}):W(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,f,d]);for(var m=0;m<s.length;m++){var _=s[m];if(_<p||_>d){var S=[y,_];n.push(S)}}}return{boxData:t,outliers:n}}var AW={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==xe){var n="";process.env.NODE_ENV!=="production"&&(n=Le("source data is not applicable for this boxplot transform. Expect number[][].")),Lt(n)}var a=DW(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function MW(r){r.registerSeriesModel(gW),r.registerChartView(xW),r.registerLayout(bW),r.registerTransform(AW)}var LW=["color","borderColor"],IW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){ha(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&Mx(u,c))return;var h=np(c,f,!0);Bt(h,{shape:{points:c.ends}},t,f),ap(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&Mx(u,v)){i.remove(h);return}h?(Mt(h,{shape:{points:v.ends}},t,f),Ir(h)):h=np(v),ap(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),Lx(t,this.group);var n=t.get("clip",!0)?th(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=np(s);ap(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){Lx(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Vt),EW=function(){function r(){}return r}(),PW=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new EW},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(mt);function np(r,e,t){var n=r.ends;return new PW({shape:{points:t?NW(n,r):n},z2:100})}function Mx(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function ap(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,ve(r,a)}function NW(r,e){return G(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var RW=function(){function r(){}return r}(),ip=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new RW},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e}(mt);function Lx(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new ip({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new ip({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new ip({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),op(1,o,r),op(-1,s,r),op(0,l,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function op(r,e,t,n){var a=t.get(["itemStyle",r>0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(LW);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const OW=IW;var jL=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Gt);te(jL,ZL,!0);const kW=jL;function VW(r){!r||!z(r.series)||D(r.series,function(e){K(e)&&e.type==="k"&&(e.type="candlestick")})}var BW=["itemStyle","borderColor"],zW=["itemStyle","borderColor0"],GW=["itemStyle","borderColorDoji"],FW=["itemStyle","color"],HW=["itemStyle","color0"],$W={seriesType:"candlestick",plan:Ho(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?FW:HW)}function n(i,o){return o.get(i===0?GW:i>0?BW:zW)}if(!e.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");V(c,f)}}}}}};const WW=$W;var UW={seriesType:"candlestick",plan:Ho(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=YW(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],c=l[2],h=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:v};function v(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(h,y),T=Math.min(S,b),C=Math.max(S,b),A=k(T,_),M=k(C,_),L=k(x,_),I=k(w,_),E=[];O(E,M,0),O(E,A,1),E.push(F(I),F(M),F(L),F(A));var P=g.getItemModel(y),N=!!P.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Ix(m,y,S,b,f,N),initBaseline:S>b?M[i]:A[i],ends:E,brushRect:B(x,w,_)})}function k($,Z){var Q=[];return Q[a]=Z,Q[i]=$,isNaN(Z)||isNaN($)?[NaN,NaN]:e.dataToPoint(Q)}function O($,Z,Q){var tt=Z.slice(),pt=Z.slice();tt[a]=rf(tt[a]+n/2,1,!1),pt[a]=rf(pt[a]-n/2,1,!0),Q?$.push(tt,pt):$.push(pt,tt)}function B($,Z,Q){var tt=k($,Q),pt=k(Z,Q);return tt[a]-=n/2,pt[a]-=n/2,{x:tt[0],y:tt[1],width:n,height:pt[1]-tt[1]}}function F($){return $[a]=rf($[a],1),$}}function p(d,g){for(var y=Yr(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var C=w.get(s,x),A=w.get(u,x),M=w.get(f,x),L=w.get(c,x),I=w.get(h,x);if(isNaN(C)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=Ix(w,x,A,M,f,T),S[a]=C,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Ix(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function YW(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=H(ft(r.get("barMaxWidth"),a),a),o=H(ft(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?H(s,a):Math.max(Math.min(a/2,i),o)}const ZW=UW;function XW(r){r.registerChartView(OW),r.registerSeriesModel(kW),r.registerPreprocessor(VW),r.registerVisual(WW),r.registerLayout(ZW)}function Ex(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var qW=function(r){R(e,r);function e(t,n){var a=r.call(this)||this,i=new Rl(t,n),o=new at;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Qt(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}Ex(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}Ex(a,t)},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=Wo(t.getItemVisual(n,"symbolSize")),f=t.getItemVisual(n,"style"),c=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var v=Ai(t.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var p=t.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=n/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=c,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,$t(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(at);const jW=qW;var KW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Ol(jW)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=kl("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=D2(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Vt);const JW=KW;var QW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Gt);const tU=QW;function eU(r){r.registerChartView(JW),r.registerSeriesModel(tU),r.registerLayout(kl("effectScatter"))}var rU=function(r){R(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new Ky(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");z(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=Qt(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(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(!!i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=Kt(n.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;j(c)?h=c(a):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Wn(t.__p1,t.__cp1)+Wn(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=se,f=$p;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=t.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),h=t.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.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)):t.__lastT===1?t.scaleY=2*Wn(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e}(at);const KL=rU;var nU=function(r){R(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new Fe({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};Mt(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,$t(this,l,u,f)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.setShape("points",t.getItemLayout(n))},e}(at);const JL=nU;var aU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new JL(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Wn(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(!!i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],h=a[l+1];t.x=c[0]*(1-f)+f*h[0],t.y=c[1]*(1-f)+f*h[1];var v=t.__t<1?h[0]-c[0]:c[0]-h[0],p=t.__t<1?h[1]-c[1]:c[1]-h[1];t.rotation=-Math.atan2(p,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e}(KL);const iU=aU;var oU=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),sU=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new oU},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],h=a[o++];if(t.moveTo(u,f),i>0){var v=(u+c)/2-(f-h)*i,p=(f+h)/2-(c-u)*i;t.quadraticCurveTo(v,p,c,h)}else t.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],h=i[u++],v=1;v<f;v++){var p=i[u++],d=i[u++];if(Hn(c,h,p,d,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(c+p)/2-(h-d)*o,y=(h+d)/2-(p-c)*o;if(oC(c,h,g,y,p,d,s,t,n))return l}else if(Hn(c,h,p,d,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}t=this._rect=new ht(i,o,s,l)}return t},e}(mt),lU=function(){function r(){this.group=new at}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],a=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new sU({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=it(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const uU=lU;var fU={seriesType:"lines",plan:Ho(),reset:function(r){var e=r.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&he("The lines series must have a coordinate system.");return}var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=a.start;f<a.end;f++){var v=r.getLineCoords(f,o);t&&(s[c++]=v);for(var p=0;p<v;p++)h=e.dataToPoint(o[p],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var d=i.getItemModel(f),v=r.getLineCoords(f,o),g=[];if(t)for(var y=0;y<v;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}};const QL=fU;var cU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.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(t)&&l>0&&(f?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&th(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=QL.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new uU:new Jy(o?i?iU:JL:i?KL:Ky),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e}(Vt);const hU=cU;var vU=typeof Uint32Array>"u"?Array:Uint32Array,pU=typeof Float64Array>"u"?Array:Float64Array;function Px(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=G(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),Mg([a,t[0],t[1]])}))}var dU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],Px(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Px(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=_f(this._flatCoords,n.flatCoords),this._flatCoordsOffset=_f(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),At(t[0])){for(var a=t.length,i=new vU(a),o=new pU(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=t[f++];i[l++]=s+n,i[l++]=c;for(var h=0;h<c;h++){var v=t[f++],p=t[f++];if(o[s++]=v,o[s++]=p,f>a&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){if(process.env.NODE_ENV!=="production"){var a=Fo.get(t.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var i=new Me(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),i},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getItemModel(t),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),oe("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Gt);const gU=dU;function Ou(r){return r instanceof Array||(r=[r,r]),r}var yU={seriesType:"lines",reset:function(r){var e=Ou(r.get("symbol")),t=Ou(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=Ou(s.getShallow("symbol",!0)),u=Ou(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:n.hasItemOption?a:null}}};const mU=yU;function _U(r){r.registerChartView(hU),r.registerSeriesModel(gU),r.registerLayout(QL),r.registerVisual(mU)}var SU=256,xU=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=mn.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=e.length;c.width=t,c.height=n;for(var p=0;p<v;++p){var d=e[p],g=d[0],y=d[1],m=d[2],_=a(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;x<w;){var _=b[x+3]/256,M=Math.floor(_*(SU-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=L[M],b[x++]=L[M+1],b[x++]=L[M+2],b[x++]=L[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=mn.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();const bU=xU;function wU(r,e,t){var n=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function TU(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function Nx(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var CU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):Nx(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(Nx(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ha(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,n,a,i,o){var s=t.coordinateSystem,l=Li(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),p=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(v.type==="category"&&p.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(v.onBand&&p.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=v.getBandWidth()+.5,f=p.getBandWidth()+.5,c=v.scale.getExtent(),h=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=ie(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=a;M<i;M++){var L=void 0,I=g.getItemVisual(M,"style");if(l){var E=g.get(A[0],M),P=g.get(A[1],M);if(isNaN(g.get(A[2],M))||isNaN(E)||isNaN(P)||E<c[0]||E>c[1]||P<h[0]||P>h[1])continue;var N=s.dataToPoint([E,P]);L=new Tt({shape:{x:N[0]-u/2,y:N[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(A[1],M)))continue;L=new Tt({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:I})}if(g.hasItemOption){var k=g.getItemModel(M),O=k.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=k.getModel(["blur","itemStyle"]).getItemStyle(),_=k.getModel(["select","itemStyle"]).getItemStyle(),S=k.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),C=O.get("disabled"),b=ie(k)}L.shape.r=S;var B=t.getRawValue(M),F="-";B&&B[2]!=null&&(F=B[2]+""),pe(L,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:F}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,$t(L,w,T,C),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new bU;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),c=t.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-h,y=d-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var A=t.dataToPoint([w,T]);return A[0]-=h,A[1]-=v,A.push(C),A}),S=a.getExtent(),b=a.type==="visualMap.continuous"?TU(S,a.option.range):wU(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new de({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Vt);const DU=CU;var AU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Fo.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const MU=AU;function LU(r){r.registerChartView(DU),r.registerSeriesModel(MU)}var IU=["itemStyle","borderWidth"],Rx=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],sp=new tn,EU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:Rx[+f],categoryDim:Rx[1-+f]};return o.diff(s).add(function(v){if(!!o.hasValue(v)){var p=kx(o,v),d=Ox(o,v,p,h),g=Vx(o,h,d);o.setItemGraphicEl(v,g),i.add(g),zx(g,h,d)}}).update(function(v,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(v)){i.remove(d);return}var g=kx(o,v),y=Ox(o,v,g,h),m=iI(o,y);d&&m!==d.__pictorialShapeStr&&(i.remove(d),o.setItemGraphicEl(v,null),d=null),d?BU(d,h,y):d=Vx(o,h,y,!0),o.setItemGraphicEl(v,d),d.__pictorialSymbolMeta=y,i.add(d),zx(d,h,y)}).remove(function(v){var p=s.getItemGraphicEl(v);p&&Bx(s,v,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){Bx(i,it(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Vt);function Ox(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),h={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};PU(t,i,a,n,h),NU(r,e,a,i,o,h.boundingLength,h.pxSign,f,n,h),RU(t,h.symbolScale,u,n,h);var v=h.symbolSize,p=Ai(t.get("symbolOffset"),v);return OU(t,v,a,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function PU(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var c=[lp(s,o[0])-l,lp(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=lp(s,o)-l:e?f=n.coordSysExtent[i.index][u]-l:f=t[i.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[i.wh]),a.pxSign=f>0?1:-1}function lp(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function NU(r,e,t,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(t[c.wh]),v=r.getItemVisual(e,"symbolSize"),p;z(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[c.index]=H(p[c.index],h),p[f.index]=H(p[f.index],n?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function RU(r,e,t,n,a){var i=r.get(IU)||0;i&&(sp.attr({scaleX:e[0],scaleY:e[1],rotation:t}),sp.updateTransform(),i/=sp.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function OU(r,e,t,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,p=c.pxSign,d=Math.max(e[v.index]+s,0),g=d;if(n){var y=Math.abs(l),m=Kt(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[v.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=Bg(n),T=w?n:Gx((y+x)/b),C=y-T*d;S=C/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?Gx((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=p*(g/2),M=c.pathPosition=[];M[h.index]=t[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=c.bundlePosition=[];L[h.index]=t[h.xy],L[v.index]=t[v.xy];var I=c.barRectShape=V({},t);I[v.wh]=p*Math.max(Math.abs(t[v.wh]),Math.abs(M[v.index]+A)),I[h.wh]=t[h.wh];var E=c.clipShape={};E[h.xy]=-t[h.xy],E[h.wh]=f.ecSize[h.wh],E[v.xy]=0,E[v.wh]=t[v.wh]}function tI(r){var e=r.symbolPatternSize,t=Qt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function eI(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(om(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?go(d,null,p(f),t,n):go(d,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(d)}),f++});f<u;f++){var h=tI(t);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,a.add(h);var v=p(f);go(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,n)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function rI(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?go(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=tI(t),a.add(i),go(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function nI(r,e,t){var n=V({},e.barRectShape),a=r.__pictorialBarRect;a?go(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new Tt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function aI(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Mt(a,{shape:i},s,l);else{i[o.wh]=0,a=new Tt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],Ll[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function kx(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=kU,t.isAnimationEnabled=VU,t}function kU(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function VU(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Vx(r,e,t,n){var a=new at,i=new at;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?eI(a,e,t):rI(a,e,t),nI(a,t,n),aI(a,e,t,n),a.__pictorialShapeStr=iI(r,t),a.__pictorialSymbolMeta=t,a}function BU(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;Mt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?eI(r,e,t,!0):rI(r,e,t,!0),nI(r,t,!0),aI(r,e,t,!0)}function Bx(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];om(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),D(i,function(o){ia(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function iI(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function om(r,e,t){D(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function go(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&Ll[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function zx(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");om(r,function(d){if(d instanceof de){var g=d.style;d.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;pe(p,ie(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:wo(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),$t(r,f,c,i.get("disabled"))}function Gx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const zU=EU;var GU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=va(jf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(jf);const FU=GU;function HU(r){r.registerChartView(zU),r.registerSeriesModel(FU),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(GA,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,FA("pictorialBar"))}var $U=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new Tn(this._layersSeries||[],l,h,h),p=[];v.add(Y(d,this,"add")).update(Y(d,this,"update")).remove(Y(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),A=C.x,M=C.y0,L=C.y;S.push(A,M),b.push(A,M+L),x=i.getItemVisual(w[T],"style")}var I,E=i.getItemLayout(w[0]),P=t.getModel("label"),N=P.get("margin"),k=t.getModel("emphasis");if(g==="add"){var O=p[y]=new at;I=new LM({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),t.isAnimationEnabled()&&I.setClipPath(WU(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var O=_[m];I=O.childAt(0),s.add(O),p[y]=O,Mt(I,{shape:{points:S,stackedOnPoints:b}},t),Ir(I)}pe(I,ie(t),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var B=I.getTextContent();B&&(B.x=E.x-N,B.y=E.y0+E.y/2),I.useStyle(x),i.setItemGraphicEl(y,I),ve(I,t),$t(I,k.get("focus"),k.get("blurScope"),k.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(Vt);function WU(r,e,t){var n=new Tt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Bt(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}const UU=$U;var up=2,YU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=nd(t,function(h){return a.hasOwnProperty(h[0]+"")||(a[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});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 c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,t[n]=[c,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",Jt).models[0],i=a.get("type"),o=Et(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=X(),f=0,c=0;c<s.length;++c)l.push(s[c][up]),u.get(s[c][up])||(u.set(s[c][up],f),f++);var h=El(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Uf(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Me(h,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=nd(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,h){return t.get(o,c)-t.get(o,h)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){z(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,h=-1,v=o[f].indices.length,p=0;p<v;++p){var d=i.get(t[0],o[f].indices[p]),g=Math.abs(d-n);g<=c&&(u=d,c=g,h=o[f].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return oe("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Gt);const ZU=YU;function XU(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=H(s[0],o.height),s[1]=H(s[1],o.height);var u=o.height-s[0]-s[1];Fx(n,t,u)}else{s[0]=H(s[0],o.width),s[1]=H(s[1],o.width);var f=o.width-s[0]-s[1];Fx(n,t,f)}n.setLayout("layoutInfo",i)})}function Fx(r,e,t){if(!!r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=G(a,function(g){return G(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=qU(s),u=l.y0,f=t/l.max,c=a.length,h=a[0].indices.length,v,p=0;p<h;++p){v=u[p]*f,r.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:v,y:s[0][p][1]*f});for(var d=1;d<c;++d)v+=s[d-1][p][1]*f,r.setItemLayout(a[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:v,y:s[d][p][1]*f})}}function qU(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<t;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function jU(r){r.registerChartView(UU),r.registerSeriesModel(ZU),r.registerLayout(XU),r.registerProcessor(Vl("themeRiver"))}var KU=2,JU=4,QU=function(r){R(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=KU,o.textConfig={inside:!0},it(o).seriesIndex=n.seriesIndex;var s=new Dt({z2:JU,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;it(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=V({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=xo(v,o));var p=ri(l.getModel("itemStyle"),c,!0);V(c,p),D(Ie,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=ri(S,c);b&&(_.shape=b)}),t?(s.setShape(c),s.shape.r=f.r0,Bt(s,{shape:{r:f.r}},a,n.dataIndex)):(Mt(s,{shape:c},a),Ir(s)),s.useStyle(h),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;$t(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.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),c=this,h=c.getTextContent(),v=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,D(el,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),b=t.getFormattedLabel(v,y);_&&(b=b||n.node.name),S.style=Ot(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?c:c.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var A,M=g(m,"distance")||0,L=g(m,"align");w==="outside"?(A=o.r+M,L=l>Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+M,l>Math.PI/2&&(L="right")):L==="right"&&(A=o.r-M,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var I=g(m,"rotate"),E=0;I==="radial"?(E=wr(-l),E>Math.PI/2&&E<Math.PI*1.5&&(E+=Math.PI)):I==="tangential"?(E=Math.PI/2-l,E>Math.PI/2?E-=Math.PI:E<-Math.PI/2&&(E+=Math.PI)):At(I)&&(E=I*Math.PI/180),S.rotation=wr(E)});function g(y,m){var _=y.get(m);return _==null?i.get(m):_}h.dirtyStyle()},e}(ze);const Hx=QU;var rg="sunburstRootToNode",$x="sunburstHighlight",t6="sunburstUnhighlight";function e6(r){r.registerAction({type:rg,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=pl(e,[rg],a);if(o){var s=a.getViewRoot();s&&(e.direction=Uy(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:$x,update:"none"},function(e,t,n){e=V({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=pl(e,[$x],i);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&jt("sunburstHighlight","highlight"),n.dispatchAction(V(e,{type:"highlight"}))}),r.registerAction({type:t6,update:"updateView"},function(e,t,n){e=V({},e),process.env.NODE_ENV!=="production"&&jt("sunburstUnhighlight","downplay"),n.dispatchAction(V(e,{type:"downplay"}))})}var r6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,c=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];p(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,_){if(m.length===0&&_.length===0)return;new Tn(_,m,S,S).add(b).update(b).remove(ot(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];d(T,C)}}function d(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new Hx(m,t,n,a);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,t,n,a):(o.virtualPiece=new Hx(m,t,n,a),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)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Of(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:rg,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Vt);const n6=r6;var a6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};oI(a);var i=this._levelModels=G(t.levels||[],function(l){return new kt(l,this,n)},this),o=Wy.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=nh(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){fL(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Gt);function oI(r){var e=0;D(r.children,function(n){oI(n);var a=n.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const i6=a6;var Wx=Math.PI/180;function o6(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");z(i)||(i=[0,i]),z(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(a[0],o),f=H(a[1],s),c=H(i[0],l/2),h=H(i[1],l/2),v=-n.get("startAngle")*Wx,p=n.get("minAngle")*Wx,d=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&sI(g,m);var _=0;D(g.children,function(N){!isNaN(N.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(h-c)/(w||1),C=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=C?1:-1,L=function(N,k){if(!!N){var O=k;if(N!==d){var B=N.getValue(),F=S===0&&A?b:B*b;F<p&&(F=p),O=k+M*F;var $=N.depth-y-(x?-1:1),Z=c+T*$,Q=c+T*($+1),tt=n.getLevelModel(N);if(tt){var pt=tt.get("r0",!0),St=tt.get("r",!0),dt=tt.get("radius",!0);dt!=null&&(pt=dt[0],St=dt[1]),pt!=null&&(Z=H(pt,l/2)),St!=null&&(Q=H(St,l/2))}N.setLayout({angle:F,startAngle:k,endAngle:O,clockwise:C,cx:u,cy:f,r0:Z,r:Q})}if(N.children&&N.children.length){var rt=0;D(N.children,function(gt){rt+=L(gt,k+rt)})}return O-k}};if(x){var I=c,E=c+T,P=Math.PI*2;d.setLayout({angle:P,startAngle:v,endAngle:v+P,clockwise:C,cx:u,cy:f,r0:I,r:E})}L(g,v)})}function sI(r,e){var t=r.children||[];r.children=s6(t,e),t.length&&D(r.children,function(n){sI(n,e)})}function s6(r,e){if(j(e)){var t=G(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),G(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function l6(r){var e={};function t(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&W(s)&&(s=Yp(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");V(u,l)})})}function u6(r){r.registerChartView(n6),r.registerSeriesModel(i6),r.registerLayout(ot(o6,"sunburst")),r.registerProcessor(ot(Vl,"sunburst")),r.registerVisual(l6),e6(r)}var Ux={color:"fill",borderColor:"stroke"},f6={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},gn=Ct(),c6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return Mn(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=gn(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Gt);const h6=c6;function v6(r,e){return e=e||[0,0],G(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function p6(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(v6,r)}}}function d6(r,e){return e=e||[0,0],G([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function g6(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Y(d6,r)}}}function y6(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function m6(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(y6,r)}}}function _6(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function S6(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Y(_6,r)}}}function x6(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}var Yx={};function lI(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||U(r,"text")))}function uI(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},U(n,"text")&&(o.text=n.text),U(n,"rich")&&(o.rich=n.rich),U(n,"textFill")&&(o.fill=n.textFill),U(n,"textStroke")&&(o.stroke=n.textStroke),U(n,"fontFamily")&&(o.fontFamily=n.fontFamily),U(n,"fontSize")&&(o.fontSize=n.fontSize),U(n,"fontStyle")&&(o.fontStyle=n.fontStyle),U(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=U(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),U(n,"textPosition")&&(a.position=n.textPosition),U(n,"textOffset")&&(a.offset=n.textOffset),U(n,"textRotation")&&(a.rotation=n.textRotation),U(n,"textDistance")&&(a.distance=n.textDistance)}return Zx(o,r),D(o.rich,function(l){Zx(l,l)}),{textConfig:a,textContent:i}}function Zx(r,e){!e||(e.font=e.textFont||e.font,U(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),U(e,"textAlign")&&(r.align=e.textAlign),U(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),U(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),U(e,"textWidth")&&(r.width=e.textWidth),U(e,"textHeight")&&(r.height=e.textHeight),U(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),U(e,"textPadding")&&(r.padding=e.textPadding),U(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),U(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),U(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),U(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),U(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),U(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),U(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Xx(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";qx(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||"#fff",!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||"#000"),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,D(e.rich,function(s){qx(s,s)}),n}function qx(r,e){!e||(U(e,"fill")&&(r.textFill=e.fill),U(e,"stroke")&&(r.textStroke=e.fill),U(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),U(e,"font")&&(r.font=e.font),U(e,"fontStyle")&&(r.fontStyle=e.fontStyle),U(e,"fontWeight")&&(r.fontWeight=e.fontWeight),U(e,"fontSize")&&(r.fontSize=e.fontSize),U(e,"fontFamily")&&(r.fontFamily=e.fontFamily),U(e,"align")&&(r.textAlign=e.align),U(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),U(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),U(e,"width")&&(r.textWidth=e.width),U(e,"height")&&(r.textHeight=e.height),U(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),U(e,"padding")&&(r.textPadding=e.padding),U(e,"borderColor")&&(r.textBorderColor=e.borderColor),U(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),U(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),U(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),U(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),U(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),U(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),U(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),U(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),U(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),U(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function jx(r,e){if(process.env.NODE_ENV!=="production"){var t=r+"^_^"+e;Yx[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),Yx[t]=!0)}}var fI={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Kx=_t(fI),ac=qr(Kr,function(r,e){return r[e]=1,r},{}),Jx=Kr.join(", "),ic=["","style","shape","extra"],Do=Ct();function sm(r,e,t,n,a){var i=r+"Animation",o=No(r,n,a)||{},s=Do(e).userDuring;return o.duration>0&&(o.during=s?Y(D6,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[i]),o}function uf(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=Do(r),u=e.style;l.userDuring=e.during;var f={},c={};if(M6(r,e,c),tb("shape",e,c),tb("extra",e,c),!i&&s&&(A6(r,e,f),Qx("shape",r,e,f),Qx("extra",r,e,f),L6(r,e,u,f)),c.style=u,b6(r,c,o),T6(r,e),s)if(i){var h={};D(ic,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),V(p?h[p]:h,d.enterFrom))});var v=sm("enter",r,e,t,a);v.duration>0&&r.animateFrom(h,v)}else w6(r,e,a||0,t,f);cI(r,e),u?r.dirty():r.markRedraw()}function cI(r,e){for(var t=Do(r).leaveToProps,n=0;n<ic.length;n++){var a=ic[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=Do(r).leaveToProps={}),a&&(t[a]=t[a]||{}),V(a?t[a]:t,i.leaveTo))}}function oh(r,e,t,n){if(r){var a=r.parent,i=Do(r).leaveToProps;if(i){var o=sm("update",r,e,t,0);o.done=function(){a.remove(r),n&&n()},r.animateTo(i,o)}else a.remove(r),n&&n()}}function hi(r){return r==="all"}function b6(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function w6(r,e,t,n,a){if(a){var i=sm("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function T6(r,e){U(e,"silent")&&(r.silent=e.silent),U(e,"ignore")&&(r.ignore=e.ignore),r instanceof hr&&U(e,"invisible")&&(r.invisible=e.invisible),r instanceof mt&&U(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var zr={},C6={setTransform:function(r,e){return process.env.NODE_ENV!=="production"&&J(U(ac,r),"Only "+Jx+" available in `setTransform`."),zr.el[r]=e,this},getTransform:function(r){return process.env.NODE_ENV!=="production"&&J(U(ac,r),"Only "+Jx+" available in `getTransform`."),zr.el[r]},setShape:function(r,e){process.env.NODE_ENV!=="production"&&Ki(r);var t=zr.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){process.env.NODE_ENV!=="production"&&Ki(r);var e=zr.el.shape;if(e)return e[r]},setStyle:function(r,e){process.env.NODE_ENV!=="production"&&Ki(r);var t=zr.el,n=t.style;return n&&(process.env.NODE_ENV!=="production"&&vi(e)&&Ft("style."+r+" must not be assigned with NaN."),n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){process.env.NODE_ENV!=="production"&&Ki(r);var e=zr.el.style;if(e)return e[r]},setExtra:function(r,e){process.env.NODE_ENV!=="production"&&Ki(r);var t=zr.el.extra||(zr.el.extra={});return t[r]=e,this},getExtra:function(r){process.env.NODE_ENV!=="production"&&Ki(r);var e=zr.el.extra;if(e)return e[r]}};function Ki(r){if(process.env.NODE_ENV!=="production"&&(r==="transition"||r==="enterFrom"||r==="leaveTo"))throw new Error('key must not be "'+r+'"')}function D6(){var r=this,e=r.el;if(!!e){var t=Do(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}zr.el=e,n(C6)}}function Qx(r,e,t,n){var a=t[r];if(!!a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),hi(l))V(o,i);else for(var u=Pt(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(hi(s)||vt(s,r)>=0){!o&&(o=n[r]={});for(var v=_t(i),f=0;f<v.length;f++){var c=v[f],h=i[c];I6(a[c],h)&&(o[c]=h)}}}}}function tb(r,e,t){var n=e[r];if(!!n)for(var a=t[r]={},i=_t(n),o=0;o<i.length;o++){var s=i[o];a[s]=Vs(n[s])}}function A6(r,e,t){for(var n=e.transition,a=hi(n)?Kr:Pt(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];process.env.NODE_ENV!=="production"&&hI(o,"el.transition"),t[o]=s}}}function M6(r,e,t){for(var n=0;n<Kx.length;n++){var a=Kx[n],i=fI[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<Kr.length;n++){var s=Kr[n];e[s]!=null&&(t[s]=e[s])}}function L6(r,e,t,n){if(!!t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!hi(o)){var l=Pt(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(r.getAnimationStyleProps&&(hi(s)||hi(o)||vt(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=n.style={});for(var p=_t(t),u=0;u<p.length;u++){var f=p[u];if(v[f]){var c=a[f];i[f]=c}}}}}}}function I6(r,e){return Se(r)?r!==e:r!=null&&isFinite(r)}var hI;process.env.NODE_ENV!=="production"&&(hI=function(r,e){U(ac,r)||Ft("Prop `"+r+"` is not a permitted in `"+e+"`. Only `"+_t(ac).join("`, `")+"` are permitted.")});var vI=Ct(),E6=["percent","easing","shape","style","extra"];function pI(r){r.stopAnimation("keyframe"),r.attr(vI(r))}function oc(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(z(e)){D(e,function(s){oc(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=No("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=vI(r);D(ic,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(f,c){return f.percent-c.percent}),D(n,function(f){var c=r.animators,h=s?f[s]:f;if(process.env.NODE_ENV!=="production"&&f.percent>=1&&(u=!0),!!h){var v=_t(h);if(s||(v=Et(v,function(g){return vt(E6,g)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var p=0;p<c.length;p++)c[p]!==l&&c[p].targetName===l.targetName&&c[p].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;D(v,function(g){d[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(a*f.percent,h,v,f.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Ft("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(a).start(e.easing))}})}}}var yn="emphasis",Kn="normal",lm="blur",um="select",fa=[Kn,yn,lm,um],fp={normal:["itemStyle"],emphasis:[yn,"itemStyle"],blur:[lm,"itemStyle"],select:[um,"itemStyle"]},cp={normal:["label"],emphasis:[yn,"label"],blur:[lm,"label"],select:[um,"label"]},P6=["x","y"],N6="e\0\0",Ke={normal:{},emphasis:{},blur:{},select:{}},eb={cartesian2d:p6,geo:g6,single:m6,polar:S6,calendar:x6};function sc(r){return r instanceof mt}function ng(r){return r instanceof hr}function R6(r,e){e.copyTransform(r),ng(e)&&ng(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,sc(e)&&sc(r)&&e.setShape(r.shape))}var O6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=rb(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){hp(a,null,c,u(c,i),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&oh(h,gn(h).option,t)}).update(function(c,h){var v=o.getItemGraphicEl(h);hp(a,v,c,u(c,i),t,l,s)}).execute();var f=t.get("clip",!0)?th(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=rb(n,s,a,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=hp(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},e.prototype.eachRendered=function(t){ha(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(Vt);const k6=O6;function fm(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=yI(n);t=kc(i,null,a,n.layout||"center"),gn(t).customPathData=i}else if(e==="image")t=new de({}),gn(t).customImagePath=r.style.image;else if(e==="text")t=new Dt({});else if(e==="group")t=new at;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Qg(e);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),Lt(s)}t=new o}return gn(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function cm(r,e,t,n,a,i,o){pI(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=P6);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;U(u,"textFill")&&(u.fill=u.textFill),U(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=sc(e)?l.decal:null;r&&c&&(c.dirty=!0,f=xo(c,r)),l.__decalPattern=f}if(ng(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}uf(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),oc(e,n.keyframeAnimation,i)}function dI(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),yi(i)}}function V6(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<fa.length;s++)B6(n,e,fa[s])}}function B6(r,e,t){var n=t===Kn,a=n?e:lc(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function rb(r,e,t,n){var a=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(J(a,"series.render is required."),J(i.prepareCustoms||eb[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):eb[i.type](i));for(var s=et({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:x,ordinalRawValue:b,styleEmphasis:w,visual:A,barLayout:M,currentSeriesIndices:L,font:I},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:z6(r.getData())},u,f,c={},h={},v={},p={},d=0;d<fa.length;d++){var g=fa[d];v[g]=r.getModel(fp[g]),p[g]=r.getModel(cp[g])}function y(E){return E===u?f||(f=e.getItemModel(E)):e.getItemModel(E)}function m(E,P){return e.hasItemOption?E===u?c[P]||(c[P]=y(E).getModel(fp[P])):y(E).getModel(fp[P]):v[P]}function _(E,P){return e.hasItemOption?E===u?h[P]||(h[P]=y(E).getModel(cp[P])):y(E).getModel(cp[P]):p[P]}return function(E,P){return u=E,f=null,c={},h={},a&&a(et({dataIndexInside:E,dataIndex:e.getRawIndex(E),actionType:P?P.type:null},l),s)};function S(E,P){return P==null&&(P=u),e.getStore().get(e.getDimensionIndex(E||0),P)}function b(E,P){P==null&&(P=u),E=E||0;var N=e.getDimensionInfo(E);if(!N){var k=e.getDimensionIndex(E);return k>=0?e.getStore().get(k,P):void 0}var O=e.get(N.name,P),B=N&&N.ordinalMeta;return B?B.categories[O]:O}function x(E,P){process.env.NODE_ENV!=="production"&&jx("api.style","Please write literal style directly instead."),P==null&&(P=u);var N=e.getItemVisual(P,"style"),k=N&&N.fill,O=N&&N.opacity,B=m(P,Kn).getItemStyle();k!=null&&(B.fill=k),O!=null&&(B.opacity=O);var F={inheritColor:W(k)?k:"#000"},$=_(P,Kn),Z=Ot($,null,F,!1,!0);Z.text=$.getShallow("show")?ft(r.getFormattedLabel(P,Kn),wo(e,P)):null;var Q=Nf($,F,!1);return C(E,B),B=Xx(B,Z,Q),E&&T(B,E),B.legacy=!0,B}function w(E,P){process.env.NODE_ENV!=="production"&&jx("api.styleEmphasis","Please write literal style directly instead."),P==null&&(P=u);var N=m(P,yn).getItemStyle(),k=_(P,yn),O=Ot(k,null,null,!0,!0);O.text=k.getShallow("show")?ur(r.getFormattedLabel(P,yn),r.getFormattedLabel(P,Kn),wo(e,P)):null;var B=Nf(k,null,!0);return C(E,N),N=Xx(N,O,B),E&&T(N,E),N.legacy=!0,N}function T(E,P){for(var N in P)U(P,N)&&(E[N]=P[N])}function C(E,P){E&&(E.textFill&&(P.textFill=E.textFill),E.textPosition&&(P.textPosition=E.textPosition))}function A(E,P){if(P==null&&(P=u),U(Ux,E)){var N=e.getItemVisual(P,"style");return N?N[Ux[E]]:null}if(U(f6,E))return e.getItemVisual(P,E)}function M(E){if(i.type==="cartesian2d"){var P=i.getBaseAxis();return HB(et({axis:P},E))}}function L(){return t.getCurrentSeriesIndices()}function I(E){return jC(E,t)}}function z6(r){var e={};return D(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function hp(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=hm(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&$t(s,n.focus,n.blurScope,n.emphasisDisabled),s}function hm(r,e,t,n,a,i){process.env.NODE_ENV!=="production"&&J(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&gI(e,n,a)&&(o=vt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=fm(n),s&&R6(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ke.normal.cfg=Ke.normal.conOpt=Ke.emphasis.cfg=Ke.emphasis.conOpt=Ke.blur.cfg=Ke.blur.conOpt=Ke.select.cfg=Ke.select.conOpt=null,Ke.isLegacy=!1,F6(u,t,n,a,l,Ke),G6(u,t,n,a,l),cm(r,u,t,n,Ke,a,l),U(n,"info")&&(gn(u).info=n.info);for(var f=0;f<fa.length;f++){var c=fa[f];if(c!==Kn){var h=lc(n,c),v=vm(n,h,c);dI(c,u,h,v,Ke)}}return V6(u,n,a),n.type==="group"&&H6(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function gI(r,e,t){var n=gn(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Y6(i)&&yI(i)!==n.customPathData||a==="image"&&U(o,"image")&&o.image!==n.customImagePath}function G6(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&gI(o,i,n)&&(o=null),o||(o=fm(i),process.env.NODE_ENV!=="production"&&J(sc(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),r.setClipPath(o)),cm(null,o,e,i,null,n,a)}}function F6(r,e,t,n,a,i){if(!r.isGroup){nb(t,null,i),nb(t,yn,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=fm(o),r.setTextContent(f)),cm(null,f,e,o,null,n,a);for(var c=o&&o.style,h=0;h<fa.length;h++){var v=fa[h];if(v!==Kn){var p=i[v].conOpt;dI(v,f,p,vm(o,p,v),null)}}c?f.dirty():f.markRedraw()}}}}function nb(r,e,t){var n=e?lc(r,e):r,a=e?vm(r,n,yn):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?lc(s,e):s:null;if(a&&(t.isLegacy||lI(a,i,!!o,!!l))){t.isLegacy=!0;var u=uI(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text"),process.env.NODE_ENV!=="production"&&J(f.type==="text",'textContent.type must be "text"')}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function lc(r,e){return e?r?r[e]:null:r}function vm(r,e,t){var n=e&&e.style;return n==null&&t===yn&&r&&(n=r.styleEmphasis),n}function H6(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){W6({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var c=i[f],h=e.childAt(f);c?(c.ignore==null&&(c.ignore=!1),hm(r,h,t,c,a,e)):(process.env.NODE_ENV!=="production"&&J(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var v=e.childCount()-1;v>=f;v--){var p=e.childAt(v);$6(e,p,a)}}}function $6(r,e,t){e&&oh(e,gn(r).option,t)}function W6(r){new Tn(r.oldChildren,r.newChildren,ab,ab,r).add(ib).update(ib).remove(U6).execute()}function ab(r,e){var t=r&&r.name;return t!=null?t:N6+e}function ib(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;hm(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function U6(r){var e=this.context,t=e.oldChildren[r];t&&oh(t,gn(t).option,e.seriesModel)}function yI(r){return r&&(r.pathData||r.d)}function Y6(r){return r&&(U(r,"pathData")||U(r,"d"))}function Z6(r){r.registerChartView(k6),r.registerSeriesModel(h6)}var Za=Ct(),ob=nt,vp=Y,X6=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&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,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new at,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=ot(sb,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}ub(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Vy(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=Za(e).pointerEl=new Ll[i.type](ob(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=Za(e).labelEl=new Dt(ob(t.label));e.add(i),lb(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=Za(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=Za(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),lb(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ml(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_n(u.event)},onmousedown:vp(this._onHandleDragMove,this,0,0),drift:vp(this._onHandleDragMove,this),ondragend:vp(this._onHandleDragEnd,this)}),n.add(a)),ub(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,$o(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){sb(this._axisPointerModel,!t&&this._moveAnimation,this._handle,pp(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform(pp(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(pp(a)),Za(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),sl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function sb(r,e,t,n){mI(Za(t).lastProp,n)||(Za(t).lastProp=n,e?Mt(t,n,r):(t.stopAnimation(),t.attr(n)))}function mI(r,e){if(K(r)&&K(e)){var t=!0;return D(e,function(n,a){t=t&&mI(r[a],n)}),!!t}else return r===e}function lb(r,e){r[e.get(["label","show"])?"show":"hide"]()}function pp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function ub(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}const pm=X6;function dm(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function _I(r,e,t,n,a){var i=t.get("value"),o=SI(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Vo(s.get("padding")||0),u=s.getFont(),f=wl(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=a.align;p==="right"&&(c[0]-=h),p==="center"&&(c[0]-=h/2);var d=a.verticalAlign;d==="bottom"&&(c[1]-=v),d==="middle"&&(c[1]-=v/2),q6(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function q6(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function SI(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:My(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};D(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),W(o)?i=o.replace("{value}",i):j(o)&&(i=o(s))}return i}function gm(r,e,t){var n=cr();return Ci(n,n,t.rotation),jr(n,n,t.position),Ar([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function xI(r,e,t,n,a,i){var o=Cn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),_I(e,n,a,i,{position:gm(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ym(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function bI(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function fb(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var j6=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=cb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=dm(i),v=K6[u](s,c,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var p=Gd(l.model,a);xI(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=Gd(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=gm(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=cb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:p[f]}},e}(pm);function cb(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var K6={line:function(r,e,t){var n=ym([e,t[0]],[e,t[1]],hb(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:bI([e-n/2,t[0]],[n,a],hb(r))}}};function hb(r){return r.dim==="x"?0:1}const J6=j6;var Q6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(xt);const t8=Q6;var cn=Ct(),e8=D;function wI(r,e,t){if(!wt.node){var n=e.getZr();cn(n).records||(cn(n).records={}),r8(n,e);var a=cn(n).records[r]||(cn(n).records[r]={});a.handler=t}}function r8(r,e){if(cn(r).initialized)return;cn(r).initialized=!0,t("click",ot(vb,"click")),t("mousemove",ot(vb,"mousemove")),t("globalout",a8);function t(n,a){r.on(n,function(i){var o=i8(e);e8(cn(r).records,function(s){s&&a(s,i,o.dispatchAction)}),n8(o.pendings,e)})}}function n8(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function a8(r,e,t){r.handler("leave",null,t)}function vb(r,e,t,n){e.handler(r,t,n)}function i8(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function ag(r,e){if(!wt.node){var t=e.getZr(),n=(cn(t).records||{})[r];n&&(cn(t).records[r]=null)}}var o8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";wI("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){ag("axisPointer",n)},e.prototype.dispose=function(t,n){ag("axisPointer",n)},e.type="axisPointer",e}(Wt);const s8=o8;function TI(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=di(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,p=i.mapDimension(h),d=[];d[v]=i.get(p,o),d[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var pb=Ct();function l8(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ff(a)&&(a=TI({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ff(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||ff(a),h={},v={},p={list:[],map:{}},d={showPointer:ot(f8,v),showTooltip:ot(c8,p)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=d8(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&db(S,T,d,!1,h)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,gb(S),gb(y)))),g[y.key]=w}})}),D(g,function(y,m){db(f[m],y,d,!0,h)}),h8(v,f,h),v8(p,a,r,o),p8(f,o,t),h}}function db(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=u8(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&V(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function u8(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return D(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var p=r-c,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,a=c,i.length=0),D(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function f8(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function c8(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=vl(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:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function h8(r,e,t){var n=t.axesInfo=[];D(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function v8(r,e,t,n){if(ff(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function p8(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=pb(n)[a]||{},o=pb(n)[a]={};D(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function d8(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function gb(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function ff(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Fl(r){Ii.registerAxisPointerClass("CartesianAxisPointer",J6),r.registerComponentModel(t8),r.registerComponentView(s8),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=nF(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},l8)}function g8(r){yt(qM),yt(Fl)}var y8=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=i.get("type");if(h&&h!=="none"){var v=dm(i),p=_8[h](s,l,c,f);p.style=v,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=m8(n,a,i,l,d);_I(t,a,i,o,g)},e}(pm);function m8(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var h=cr();Ci(h,h,s),jr(h,h,[n.cx,n.cy]),u=Ar([o,-a],h);var v=e.getModel("axisLabel").get("rotate")||0,p=Cn.innerTextLayout(s,v*Math.PI/180,-1);f=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=n.coordToPoint([d+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var _8={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:ym(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:fb(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:fb(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const S8=y8;var x8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(xt);const b8=x8;var mm=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Jt).models[0]},e.type="polarAxis",e}(xt);te(mm,Nl);var w8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(mm),T8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(mm),_m=function(r){R(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(Nr);_m.prototype.dataToRadius=Nr.prototype.dataToCoord;_m.prototype.radiusToData=Nr.prototype.coordToData;const C8=_m;var D8=Ct(),Sm=function(r){R(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=wl(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),p=D8(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},e}(Nr);Sm.prototype.dataToAngle=Nr.prototype.dataToCoord;Sm.prototype.angleToData=Nr.prototype.coordToData;const A8=Sm;var CI=["radius","angle"],M8=function(){function r(e){this.dimensions=CI,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new C8,this._angleAxis=new A8,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,a=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[a,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,h=this.r0;return f<=c*c&&f>=h*h}}},r.prototype.convertToPixel=function(e,t,n){var a=yb(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=yb(t);return a===this?this.pointToData(n):null},r}();function yb(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const L8=M8;function I8(r,e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight();r.cx=H(n[0],a),r.cy=H(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function E8(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();D(Yf(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(Yf(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bo(n.scale,n.model),bo(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function P8(r){return r.mainType==="angleAxis"}function mb(r,e){if(r.type=e.get("type"),r.scale=Jc(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),P8(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var N8={dimensions:CI,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new L8(a+"");i.update=E8;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");mb(o,l),mb(s,u),I8(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",Jt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Polar "'+Kt(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),t}};const R8=N8;var O8=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ku(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Vu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function _b(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var k8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=G(a.getViewLabels(),function(f){f=nt(f);var c=a.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(h),f});_b(u),_b(s),D(O8,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&V8[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Ii),V8={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=Vu(t),l=s?0:1,u;i[l]===0?u=new tn({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Rc({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Vu(t)],u=G(n,function(f){return new le({shape:ku(t,[l,l+s],f.coord)})});r.add(ir(u,{style:et(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(!!a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Vu(t)],f=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)f.push(new le({shape:ku(t,[u,u+l],a[c][h].coord)}));r.add(ir(f,{style:et(s.getModel("lineStyle").getLineStyle(),et(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");D(o,function(c,h){var v=l,p=c.tickValue,d=i[Vu(t)],g=t.coordToPoint([d+u,c.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];K(b)&&b.textStyle&&(v=new kt(b.textStyle,l,l.ecModel))}var x=new Dt({silent:Cn.isLabelSilent(e),style:Ot(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=Cn.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=c.rawLabel,it(x).eventData=w}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new le({shape:ku(t,i,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(ir(f[c],{style:et({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(!!a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new le({shape:ku(t,i,a[u][f].coord)}));r.add(ir(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(!!n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,h=-n[0].coord*c,v=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=e.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new ze({shape:{cx:t.cx,cy:t.cy,r0:v,r:p,startAngle:h,endAngle:-m*c,clockwise:d},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)r.add(ir(f[g],{style:et({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const B8=k8;var z8=["axisLine","axisTickLabel","axisName"],G8=["splitLine","splitArea","minorSplitLine"],F8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=this._axisGroup,i=this._axisGroup=new at;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),v=$8(s,t,c),p=new Cn(t,v);D(z8,p.add,p),i.add(p.getGroup()),Al(a,i,t),D(G8,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&H8[d](this.group,t,s,c,h,u,f)},this)}},e.type="radiusAxis",e}(Ii),H8={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new tn({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[c].coord,0)}}))}for(var c=0;c<f.length;c++)r.add(ir(f[c],{style:et({stroke:l[c%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(!!o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new tn({shape:{cx:t.cx,cy:t.cy,r:o[f][c].coord}}));r.add(ir(u,{style:et({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(!!i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new ze({shape:{cx:t.cx,cy:t.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<f.length;h++)r.add(ir(f[h],{style:et({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function $8(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const W8=F8;function DI(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function AI(r,e){return e.dim+r.model.componentIndex}function U8(r,e,t){var n={},a=Y8(Et(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=AI(s,l),f=DI(i),c=a[u][f],h=c.offset,v=c.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),b=sa(o,_),x=l.dim!=="radius"||!i.get("roundCap",!0),w=p.dataToCoord(0),T=0,C=o.count();T<C;T++){var A=o.get(_,T),M=o.get(S,T),L=A>=0?"p":"n",I=w;b&&(n[f][M]||(n[f][M]={p:w,n:w}),I=n[f][M][L]);var E=void 0,P=void 0,N=void 0,k=void 0;if(p.dim==="radius"){var O=p.dataToCoord(A)-w,B=l.dataToCoord(M);Math.abs(O)<y&&(O=(O<0?-1:1)*y),E=I,P=I+O,N=B-h,k=N-v,b&&(n[f][M][L]=P)}else{var F=p.dataToCoord(A,x)-w,$=l.dataToCoord(M);Math.abs(F)<m&&(F=(F<0?-1:1)*m),E=$+h,P=E+v,N=I,k=I+F,b&&(n[f][M][L]=k)}o.setItemLayout(T,{cx:d,cy:g,r0:E,r:P,startAngle:-N*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:N>=k})}}})}function Y8(r){var e={};D(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=AI(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;e[l]=c;var v=DI(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var p=H(n.get("barWidth"),f),d=H(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!h[v].width&&(p=Math.min(c.remainedWidth,p),h[v].width=p,c.remainedWidth-=p),d&&(h[v].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var t={};return D(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=H(n.categoryGap,o),l=H(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),D(i,function(d,g){var y=d.maxWidth;y&&y<c&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;D(i,function(d,g){d.width||(d.width=c),v=d,h+=d.width*(1+l)}),v&&(h-=v.width*l);var p=-h/2;D(i,function(d,g){t[a][g]=t[a][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var Z8={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},X8={splitNumber:5},q8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Wt);function j8(r){yt(Fl),Ii.registerAxisPointerClass("PolarAxisPointer",S8),r.registerCoordinateSystem("polar",R8),r.registerComponentModel(b8),r.registerComponentView(q8),To(r,"angle",w8,Z8),To(r,"radius",T8,X8),r.registerComponentView(B8),r.registerComponentView(W8),r.registerLayout(ot(U8,"bar"))}function ig(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.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]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Kt(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=e.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-h:h,a.z2=1,a}var K8=["axisLine","axisTickLabel","axisName"],J8=["splitArea","splitLine"],Q8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new at;var l=ig(t),u=new Cn(t,l);D(K8,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(J8,function(f){t.get([f,"show"])&&t7[f](this,this.group,this._axisGroup,t)},this),Al(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){YM(this)},e.type="singleAxis",e}(Ii),t7={splitLine:function(r,e,t,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),f=a.isHorizontal(),c=[],h=0,v=a.getTicksCoords({tickModel:i}),p=[],d=[],g=0;g<v.length;++g){var y=a.toGlobalCoord(v[g].coord);f?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new le({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});_o(m.shape,l);var _=h++%s.length;c[_]=c[_]||[],c[_].push(m)}for(var S=o.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(ir(c[g],{style:et({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,e,t,n){UM(r,t,n,n)}};const e7=Q8;var MI=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(xt);te(MI,Nl.prototype);const dp=MI;var r7=function(r){R(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e}(Nr);const n7=r7;var LI=["single"],a7=function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=LI,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=new n7(a,Jc(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();D(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),bo(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=re({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(e,t,n){var a=Sb(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=Sb(t);return a===this?this.pointToData(n):null},r}();function Sb(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function i7(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new a7(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",Jt).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var o7={create:i7,dimensions:LI};const s7=o7;var xb=["x","y"],l7=["width","height"],u7=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=gp(l,1-uc(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=dm(i),v=f7[c](s,f,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var p=ig(a);xI(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=ig(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=gm(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=uc(o),u=gp(s,l),f=[t.x,t.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=gp(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(pm),f7={line:function(r,e,t){var n=ym([e,t[0]],[e,t[1]],uc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:bI([e-n/2,t[0]],[n,a],uc(r))}}};function uc(r){return r.isHorizontal()?0:1}function gp(r,e){var t=r.getRect();return[t[xb[e]],t[xb[e]]+t[l7[e]]]}const c7=u7;var h7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Wt);function v7(r){yt(Fl),Ii.registerAxisPointerClass("SingleAxisPointer",c7),r.registerComponentView(h7),r.registerComponentView(e7),r.registerComponentModel(dp),To(r,"single",dp,dp.defaultOption),r.registerCoordinateSystem("single",s7)}var p7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=Bo(t);r.prototype.init.apply(this,arguments),bb(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),bb(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(xt);function bb(r,e){var t=r.cellSize,n;z(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=G([0,1],function(i){return SO(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});oa(r,e,{type:"box",ignoreSize:a})}const d7=p7;var g7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,c=new Tt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,h=0;c.time<=n.end.time;h++){p(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,a);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,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new Fe({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return W(t)&&t?yO(t,n):j(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[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]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=a==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var d=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new Dt({z2:30,style:Ot(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||W(s))&&(s&&(n=dd(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d<c[h].length-1;d++){var g=c[h][d].slice(),y=this._firstDayOfMonth[d];if(p){var m=this._firstDayPoints[d];g[v]=(m[v]+c[0][d+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),w=new Dt({z2:30,style:V(Ot(o,{text:x}),this._monthTextPositionControl(g,p,a,u,l))});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],f=t[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(!!s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||W(f)){f&&(n=dd(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||G(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];c=H(c,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+h)%7);var S=new Dt({z2:30,style:V(Ot(s,{text:f[_]}),this._weekTextPositionControl(m,i,u,c,d))});o.add(S)}}},e.type="calendar",e}(Wt);const y7=g7;var yp=864e5,m7=function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Jr(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=re(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){z(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),a=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=a.start.time&&n.time<a.end.time+yp))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=wb(t);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=wb(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(z(e)&&e.length===1&&(e=e[0]),z(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return process.env.NODE_ENV!=="production"&&Cr("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/yp)-Math.floor(t[0].time/yp)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),c=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function wb(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}const _7=m7;function S7(r){r.registerComponentModel(d7),r.registerComponentView(y7),r.registerCoordinateSystem("calendar",_7)}function x7(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Tb(r,e){var t;return D(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function b7(r,e,t){var n=V({},t),a=r[e],i=t.$action||"merge";if(i==="merge")if(a){if(process.env.NODE_ENV!=="production"){var o=t.type;J(!o||a.type===o,'Please set $action: "replace" to change `type`')}ct(a,n,!0),oa(a,n,{ignoreSize:!0}),dD(t,a),Bu(t,a),Bu(t,a,"shape"),Bu(t,a,"style"),Bu(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=n;else i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var II=["transition","enterFrom","leaveTo"],w7=II.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bu(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?II:w7,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function T7(r,e){if(!!r&&(r.hv=e.hv=[Tb(e,["left","right"]),Tb(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var C7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=jT(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var h=f.newOption;process.env.NODE_ENV!=="production"&&J(K(h)||f.existing,"Empty graphic option definition"),h&&(u.push(h),x7(f,h),b7(o,c,h),T7(o[c],h))},this),a.elements=Et(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,n,a){D(t,function(i){if(!!i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(xt),Cb={path:null,compoundPath:null,group:at,image:de,text:Dt},rr=Ct(),D7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=X()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(!!n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");D(n,function(l){var u=ee(l.id,null),f=u!=null?a.get(u):null,c=ee(l.parentId,null),h=c!=null?a.get(c):i,v=l.type,p=l.style;v==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&lI(p,v,!!g,!!d)){var y=uI(p,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=A7(l);process.env.NODE_ENV!=="production"&&f&&J(h===f.parent,"Changing parent is not supported.");var _=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=Db(u,h,l.type,a):(w&&(rr(w).isNew=!1),pI(w)),w&&(uf(w,m,t,{isInit:x}),Ab(w,l,o,s))}else if(b){cf(f,l,a,t);var T=Db(u,h,l.type,a);T&&(uf(T,m,t,{isInit:!0}),Ab(T,l,o,s))}else _==="remove"&&(cI(f,l),cf(f,l,a,t));var C=a.get(u);if(C&&d)if(S){var A=C.getTextContent();A?A.attr(d):C.setTextContent(new Dt(d))}else b&&C.setTextContent(new Dt(d));if(C){var M=l.clipPath;if(M){var L=M.type,I=void 0,x=!1;if(S){var E=C.getClipPath();x=!E||rr(E).type!==L,I=x?og(L):E}else b&&(x=!0,I=og(L));C.setClipPath(I),uf(I,M,t,{isInit:x}),oc(I,M.keyframeAnimation,t)}var P=rr(C);C.setTextConfig(g),P.option=l,M7(C,t,l),Ro({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),oc(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],h=ee(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var p=v.parent,d=p===i,g=rr(v),y=rr(p);g.width=H(g.option.width,d?s:y.width)||0,g.height=H(g.option.height,d?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],h=ee(c.id,null),v=h!=null?o.get(h):null;if(!!v){var p=v.parent,y=rr(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wc(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!rr(v).isNew&&S){for(var b=c.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(hi(b)||vt(b,T)>=0)?x[T]=C:v[T]=C}Mt(v,x,t,0)}else v.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){cf(a,rr(a).option,n,t._lastGraphicModel)}),this._elMap=X()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Wt);function og(r){process.env.NODE_ENV!=="production"&&J(r,"graphic type MUST be set");var e=U(Cb,r)?Cb[r]:Qg(r);process.env.NODE_ENV!=="production"&&J(e,"graphic type "+r+" can not be found");var t=new e({});return rr(t).type=r,t}function Db(r,e,t,n){var a=og(t);return e.add(a),n.set(r,a),rr(a).id=r,rr(a).isNew=!0,a}function cf(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){cf(i,e,t,n)}),oh(r,e,n),t.removeKey(rr(r).id))}function Ab(r,e,t,n){r.isGroup||D([["cursor",hr.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];U(e,i)?r[i]=ft(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),D(_t(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=j(i)?i:null}}),U(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function A7(r){return r=V({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(pD),function(e){delete r[e]}),r}function M7(r,e,t){var n=it(r).eventData;!r.silent&&!r.ignore&&!n&&(n=it(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function L7(r){r.registerComponentModel(C7),r.registerComponentView(D7),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Mb=["x","y","radius","angle","single"],I7=["cartesian2d","polar","singleAxis"];function E7(r){var e=r.get("coordinateSystem");return vt(I7,e)>=0}function Jn(r){return process.env.NODE_ENV!=="production"&&J(r),r+"Axis"}function P7(r,e){var t=X(),n=[],a=X();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var p=t.get(h);p&&p[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return n}function EI(r){var e=r.ecModel,t={infoList:[],infoMap:X()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(Jn(n),a);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var mp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),N7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=Lb(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=Lb(t);ct(this.option,t,!0),ct(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=X(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return D(Mb,function(a){var i=this.getReferringComponents(Jn(a),KP);if(!!i.specified){n=!0;var o=new mp;D(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(!!c){var h=new mp;if(h.add(c.componentIndex),t.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Jt).models[0];v&&D(u,function(p){c.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",Jt).models[0]&&h.add(p.componentIndex)})}}}i&&D(Mb,function(u){if(!!i){var f=a.findComponents({mainType:Jn(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new mp;c.add(f[0].componentIndex),t.set(u,c),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Jn(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){process.env.NODE_ENV!=="production"&&J(t&&n!=null);var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Jn(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[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;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&J(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(xt);function Lb(r){var e={};return D(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const _l=N7;var R7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(_l);const O7=R7;var k7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e}(Wt);const xm=k7;var V7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(xm);const B7=V7;var io=D,Ib=sr,z7=function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(E7(t)){var n=Jn(this._dimName),a=t.getReferringComponents(n,Jt).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},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(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;io(["start","end"],function(h,v){var p=e[h],d=e[h+"Value"];i[v]==="percent"?(p==null&&(p=o[v]),d=a.parse(It(p,o,t))):(u=!0,d=d==null?t[v]:a.parse(d),p=It(d,t,o)),l[v]=d==null||isNaN(d)?t[v]:d,s[v]=p==null||isNaN(p)?o[v]:p}),Ib(l),Ib(s);var f=this._minMaxSpan;u?c(l,s,t,o,!1):c(s,l,o,t,!0);function c(h,v,p,d,g){var y=g?"Span":"ValueSpan";Ei(0,h,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=It(h[m],p,d,!0),g&&(v[m]=a.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=G7(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;io(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(!!f.length){if(i==="weakFilter"){var c=u.getStore(),h=G(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var p,d,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else io(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});io(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;io(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=It(n[0]+o,n,[0,100],!0):i!=null&&(o=It(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(!!t){var a=$T(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function G7(r,e,t){var n=[1/0,-1/0];io(t,function(o){cz(n,o.getData(),e)});var a=r.getAxisModel(),i=ZA(a.axis.scale,a,n).calculate();return[i.min,i.max]}const F7=z7;var H7={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Jn(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new F7(a,i,s,r),t.push(o.__dzAxisProxy))});var n=X();return D(t,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const $7=H7;function W7(r){r.registerAction("dataZoom",function(e,t){var n=P7(t,e);D(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Eb=!1;function bm(r){Eb||(Eb=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,$7),W7(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function U7(r){r.registerComponentModel(O7),r.registerComponentView(B7),bm(r)}var ar=function(){function r(){}return r}(),PI={};function oo(r,e){PI[r]=e}function NI(r){return PI[r]}var Y7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;D(this.option.feature,function(n,a){var i=NI(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ct(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(xt);const Z7=Y7;function X7(r,e,t){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=re(n,i,a);ui(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Wc(r,n,i,a)}function RI(r,e){var t=Vo(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new Tt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var q7=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),c=[];D(u,function(p,d){c.push(d)}),new Tn(this._featureNames||[],c).add(h).update(h).remove(ot(h,null)).execute(),this._featureNames=c;function h(p,d){var g=c[p],y=c[d],m=u[g],_=new kt(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(j7(g))S={onclick:_.option.onclick,featureName:g};else{var b=NI(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=ko("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof ar;if(!g&&y){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(w,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,A[w]&&(T==="emphasis"?xn:bn)(A[w])},S instanceof ar&&S.render&&S.render(_,n,a,i)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof ar&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;W(_)?(b={},b[g]=_):b=_,W(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};D(b,function(T,C){var A=Ml(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var M=A.ensureState("emphasis");M.style=m.getItemStyle();var L=new Dt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});A.setTextContent(L),Ro({el:A,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var I=m.getItemStyle(),E=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||E}),L.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",C])==="emphasis"?xn:bn)(A),o.add(A),A.on("click",Y(d.onclick,d,n,a,C)),w[C]=A})}X7(o,t,a),o.add(RI(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!j(_)&&d){var S=_.style||(_.style={}),b=wl(d,Dt.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>a.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},e.prototype.updateView=function(t,n,a,i){D(this._features,function(o){o instanceof ar&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){D(this._features,function(a){a instanceof ar&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){D(this._features,function(a){a instanceof ar&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Wt);function j7(r){return r.indexOf("my")===0}const K7=q7;var J7=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=wt.browser;if(j(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];v&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(ar);const Q7=J7;var Pb="__ec_magicType_stack__",tY=[["line","bar"],["stack"]],eY=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return D(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(!!Nb[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,p=Nb[a](h,v,c,i);p&&(et(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,Jt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(tY,function(c){vt(c,a)>=0&&D(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=ct({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ar),Nb={line:function(r,e,t,n){if(r==="bar")return ct({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return ct({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===Pb;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),ct({id:e,stack:a?"":Pb},n.get(["option","stack"])||{},!0)}};rn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const rY=eY;var sh=new Array(60).join("-"),Ao=" ";function nY(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function aY(r){var e=[];return D(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(v){return v.name})),l=[a.model.getCategories()];D(t.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Ao)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(Ao))}e.push(u.join(`
49
+ `+i.message)}return KF(t,a),D(a,function(i){var o=i.name;QF(t,i),e3(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function a3(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function i3(r){return W(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var vs=X();const Dn={registerMap:function(r,e,t){if(e.svg){var n=new XF(r,e.svg);vs.set(r,n)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var n=new n3(r,a,t);vs.set(r,n)}},getGeoResource:function(r){return vs.get(r)},getMapForUser:function(r){var e=vs.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=vs.get(r);if(!n){process.env.NODE_ENV!=="production"&&console.error("Map "+r+" not exists. The GeoJSON of the map must be provided.");return}return n.load(e,t)}};var Fy=["rect","circle","line","ellipse","polygon","polyline","path"],o3=X(Fy),s3=X(Fy.concat(["g"])),l3=X(Fy.concat(["g"])),tL=Ct();function Lu(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function LS(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var u3=function(){function r(e){var t=new at;this.uid=ko("ec_map_draw"),this._controller=new zl(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new at),t.add(this._svgGroup=new at)}return r.prototype.draw=function(e,t,n,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,c=l.getTransformInfo(),h=c.raw,v=c.roam,p=!u.childAt(0)||i;p?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Mt(f,v,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,a)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=X(),n=X(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(v,p){return p&&(v=p(v)),v&&[v[0]*i.scaleX+i.x,v[1]*i.scaleY+i.y]}function c(v){for(var p=[],d=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],d);y&&p.push(y)}return p}function h(v){return{shape:{points:c(v)}}}a.removeAll(),D(e.geo.regions,function(v){var p=v.name,d=t.get(p),g=n.get(p)||{},y=g.dataIdx,m=g.regionModel;d||(d=t.set(p,new at),a.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null,n.set(p,{dataIdx:y,regionModel:m}));var _=[],S=[];D(v.geometries,function(w){if(w.type==="polygon"){var T=[w.exterior].concat(w.interiors||[]);u&&(T=OS(T,u)),D(T,function(A){_.push(new Ge(h(A)))})}else{var C=w.points;u&&(C=OS(C,u,!0)),D(C,function(A){S.push(new Fe(h(A)))})}});var b=f(v.getCenter(),l&&l.project);function x(w,T){if(!!w.length){var C=new Kg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});d.add(C),IS(e,C,y,m),ES(e,C,p,m,o,y,b),T&&(LS(C),D(C.states,LS))}}x(_),x(S,!0)}),t.each(function(v,p){var d=n.get(p),g=d.dataIdx,y=d.regionModel;PS(e,v,p,y,o,g),NS(e,v,p,y,o),RS(e,v,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var a=this._svgDispatcherMap=X(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,c=o.el,h=u?u.indexOfName(s):null,v=l.getRegionModel(s);if(o3.get(f)!=null&&c instanceof hr&&IS(e,c,h,v),c instanceof hr&&(c.culling=!0),c.z2EmphasisLift=0,!o.namedFrom&&(l3.get(f)!=null&&ES(e,c,s,v,l,h,null),PS(e,c,s,v,l,h),NS(e,c,s,v,l),s3.get(f)!=null)){var p=RS(e,c,s,v,l);p==="self"&&(i=!0);var d=a.get(s)||a.set(s,[]);d.push(c)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=n.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){yi(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),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(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=Dn.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Dn.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,zy(o,u.dx,u.dy),n.dispatchAction(V(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Gy(o,u.scale,u.originX,u.originY),n.dispatchAction(V(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,c){return a.containPoint([f,c])&&!eh(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=tL(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,a){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){!i._mouseDownFlag||(i._mouseDownFlag=!1)}))},r}();function IS(r,e,t,n){var a=n.getModel("itemStyle"),i=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Lu(a),u=Lu(i),f=Lu(s),c=Lu(o),h=r.data;if(h){var v=h.getItemVisual(t,"style"),p=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=xo(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=c,yi(e)}function ES(r,e,t,n,a,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 c=l?t:i,h=void 0;(!s||i>=0)&&(h=a);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;pe(e,ie(n),{labelFetcher:h,labelDataIndex:c,defaultText:t},v);var p=e.getTextContent();if(p&&(tL(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function PS(r,e,t,n,a,i){r.data?r.data.setItemGraphicEl(i,e):it(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:t,region:n&&n.option||{}}}function NS(r,e,t,n,a){r.data||Ro({el:e,componentModel:a,itemName:t,itemTooltipOption:n.get("tooltip")})}function RS(r,e,t,n,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=n.getModel("emphasis"),o=i.get("focus");return $t(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&fR(e,a,t),o}function OS(r,e,t){var n=[],a;function i(){a=[]}function o(){a.length&&(n.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),D(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),n}const eL=u3;var f3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new eL(a);o.add(s.group),s.draw(t,n,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,a){var i=t.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,c=u.offset,h=new tn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+c*9,cy:f[1],r:3},silent:!0,z2:8+(c?0:Po+1)});if(!c){var v=t.mainSeries.getData(),p=i.getName(l),d=v.indexOfName(p),g=i.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(d);pe(h,ie(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}},defaultText:p}),h.disableLabelAnimation=!0,y.get("position")||h.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Lf(h,_)}}o.add(h)}}})},e.type="map",e}(Vt);const c3=f3;var h3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var a=this.getData().getName(n),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=Uo(this,{coordDimensions:["value"],encodeDefaulter:ot(oy,this)}),a=X(),i=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);a.set(l,!0)}var u=Dn.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return D(u.regions,function(f){var c=f.name;a.get(c)||i.push(c)}),n.appendValues([],i),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var c=l[f].originalData.indexOfName(s),h=i.mapDimension("value");isNaN(l[f].originalData.get(h,c))||u.push(l[f].name)}return oe("section",{header:u.join(", "),noHeader:!u.length,blocks:[oe("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",a=Qt(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",n.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Gt);const v3=h3;function p3(r,e){var t={};return D(r,function(n){n.each(n.mapDimension("value"),function(a,i){var o="ec-"+n.getName(i);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(n,a){for(var i="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var c;return e==="min"?c=s:e==="max"?c=l:e==="average"?c=o/u:c=o,u===0?NaN:c})}function d3(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),a=n?"o"+n.id:"i"+t.getMapType();(e[a]=e[a]||[]).push(t)}),D(e,function(t,n){for(var a=p3(G(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(a.cloneShallow()),t[i].mainSeries=t[0]})}function g3(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var a={};D(t.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 c=l.getName(f),h=s.getRegion(c);if(!(!h||isNaN(u))){var v=a[c]||0,p=s.dataToPoint(h.getCenter());a[c]=v+1,l.setItemLayout(f,{point:p,offset:v})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[n]=!0}})}var kS=fe,y3=function(r){R(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new fn,n._rawTransformable=new fn,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,a,i){return this._rect=new ht(t,n,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,a,i){this._transformTo(t,n,a,i),this._viewRect=new ht(t,n,a,i)},e.prototype._transformTo=function(t,n,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ht(t,n,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){!t||(this._center=[H(t[0],n.getWidth()),H(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,a=t.y+t.height/2;return[n,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=fe([],i,t),a=fe([],a,t),n.originX=i[0],n.originY=i[1],n.x=a[0]-i[0],n.y=a[1]-i[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),Pg(this.transform||(this.transform=[]),n.transform||cr()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Io(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,a=new fn;return a.transform=n.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,a){var i=n?this._rawTransform:this.transform;return a=a||[],i?kS(a,t,i):Te(a,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?kS([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,a){var i=VS(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=VS(n);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(fn);function VS(r){var e=r.seriesModel;return e?e.coordinateSystem:null}const Gl=y3;var m3={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},rL=["lng","lat"],nL=function(r){R(e,r);function e(t,n,a){var i=r.call(this,t)||this;i.dimensions=rL,i.type="geo",i._nameCoordMap=X(),i.map=n;var o=a.projection,s=Dn.load(n,a.nameMap,a.nameProperty),l=Dn.getGeoResource(n),u=i.resourceType=l?l.type:null,f=i.regions=s.regions,c=m3[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Ft("Map "+n+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&Ft("project and unproject must be both provided in the projeciton."),o=null)),i.projection=o;var h;if(o)for(var v=0;v<f.length;v++){var p=f[v].getBoundingRect(o);h=h||p.clone(),h.union(p)}else h=s.boundingRect;return i.setBoundingRect(h.x,h.y,h.width,h.height),i.aspectScale=o?1:ft(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(t,n,a,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 ht(t,n,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,a=0;a<n.length;a++){var i=n[a];if(i.type==="geoJSON"&&i.contain(t))return n[a]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,a){if(W(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,n,a)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,a){return r.prototype.dataToPoint.call(this,t,n,a)},e.prototype.convertToPixel=function(t,n,a){var i=BS(n);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,n,a){var i=BS(n);return i===this?i.pointToData(a):null},e}(Gl);te(nL,Gl);function BS(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Jt).models[0]||{}).coordinateSystem:null}const zS=nL;function GS(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],a=t[1];if(!(isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var i=this.projection;if(i){var o=n[0],s=n[1],l=a[0],u=a[1];n=[1/0,1/0],a=[-1/0,-1/0];var f=function(x,w,T,C){for(var A=T-x,M=C-w,L=0;L<=100;L++){var I=L/100,E=i.project([x+A*I,w+M*I]);Un(n,n,E),Yn(a,a,E)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}}var c=this.getBoundingRect(),h=r.get("layoutCenter"),v=r.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=c.width/c.height*this.aspectScale,y=!1,m,_;h&&v&&(m=[H(h[0],p),H(h[1],d)],_=H(v,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=re(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function _3(r,e){D(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var S3=function(){function r(){this.dimensions=rL}return r.prototype.create=function(e,t){var n=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new zS(l+s,l,V({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=GS,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),D(i,function(o,s){var l=G(o,function(f){return f.get("nameMap")}),u=new zS(s,s,V({nameMap:Mg(l)},a(o[0])));u.zoomLimit=Kt.apply(null,G(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=GS,u.resize(o[0],t),D(o,function(f){f.coordinateSystem=u,_3(u,f)})}),n},r.prototype.getFilledRegions=function(e,t,n,a){for(var i=(e||[]).slice(),o=X(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Dn.load(t,n,a);return D(l.regions,function(u){var f=u.name;!o.get(f)&&i.push({name:f})}),i},r}(),x3=new S3;const aL=x3;var b3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=Dn.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,a),pi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=aL.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var a={};this._optionModelMap=qr(n.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new kt(o,t,t.ecModel)),o.selected&&(a[s]=!0)),i},X()),n.selectedMap||(n.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new kt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var a=this.getRegionModel(t),i=n==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(j(i))return o.status=n,i(o);if(W(i))return i.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,a=n.selectedMode;if(!!a){a!=="multiple"&&(n.selectedMap=null);var i=n.selectedMap||(n.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(xt);const w3=b3;function FS(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function Hy(r,e,t,n){var a=r.getZoom(),i=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(i):r.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(FS(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),c=(e.originY-r.y)*(o-1);r.x-=f,r.y-=c,r.updateTransform(),r.setCenter(FS(r,s),n),r.setZoom(o*a)}return{center:r.getCenter(),zoom:r.getZoom()}}var T3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,n){this._api=n},e.prototype.render=function(t,n,a,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new eL(a));var o=this._mapDraw;o.draw(t,n,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,a)},e.prototype._handleRegionClick=function(t){var n;Qa(t.target,function(a){return(n=it(a).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,a){var i=this;this._mapDraw.group.traverse(function(o){var s=it(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Wt);const C3=T3;function D3(r,e,t){Dn.registerMap(r,e,t)}function iL(r){r.registerCoordinateSystem("geo",aL),r.registerComponentModel(w3),r.registerComponentView(C3),r.registerImpl("registerMap",D3),r.registerImpl("getMap",function(t){return Dn.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;D(u.regions,function(c){o[c.name]=l.isSelected(c.name)||!1});var f=[];D(o,function(c,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,n,a){var i=t.componentType||"series";n.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Hy(s,t,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&D(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function A3(r){yt(iL),r.registerChartView(c3),r.registerSeriesModel(v3),r.registerLayout(g3),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,d3),aA("map",r.registerAction)}function M3(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],n,a;n=t.pop();)if(a=n.children,n.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function L3(r,e){var t=r.isExpand?r.children:[],n=r.parentNode.children,a=r.hierNode.i?n[r.hierNode.i-1]:null;if(t.length){P3(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=N3(r,a,r.parentNode.hierNode.defaultAncestor||n[0],e)}function I3(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function HS(r){return arguments.length?r:k3}function Es(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function E3(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function P3(r){for(var e=r.children,t=e.length,n=0,a=0;--t>=0;){var i=e[t];i.hierNode.prelim+=n,i.hierNode.modifier+=n,a+=i.hierNode.change,n+=i.hierNode.shift+a}}function N3(r,e,t,n){if(e){for(var a=r,i=r,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,c=s.hierNode.modifier;s=kv(s),i=Vv(i),s&&i;){a=kv(a),o=Vv(o),a.hierNode.ancestor=r;var h=s.hierNode.prelim+c-i.hierNode.prelim-u+n(s,i);h>0&&(O3(R3(s,r,t),r,h),u+=h,l+=h),c+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!kv(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=c-l),i&&!Vv(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function kv(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function Vv(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function R3(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function O3(r,e,t){var n=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=n}function k3(r,e){return r.parentNode===e.parentNode?1:2}var V3=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),B3=function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new V3},e.prototype.buildPath=function(t,n){var a=n.childPoints,i=a.length,o=n.parentPoint,s=a[0],l=a[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=n.orient,f=u==="TB"||u==="BT"?0:1,c=1-f,h=H(n.forkPosition,1),v=[];v[f]=o[f],v[c]=o[c]+(l[c]-o[c])*h,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=l[f],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var p=1;p<i-1;p++){var d=a[p];t.moveTo(d[0],d[1]),v[f]=d[f],t.lineTo(v[0],v[1])}},e}(mt),z3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new at,t}return e.prototype.init=function(t,n){this._controller=new zl(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,n,a){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.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(t,a),this._updateController(t,n,a);var u=this._data;i.diff(u).add(function(f){$S(i,f)&&WS(i,f,null,s,t)}).update(function(f,c){var h=u.getItemGraphicEl(c);if(!$S(i,f)){h&&YS(u,c,h,s,t);return}WS(i,f,h,s,t)}).remove(function(f){var c=u.getItemGraphicEl(f);c&&YS(u,f,c,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,c){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:c})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,n){var a=t.getData(),i=[];a.each(function(c){var h=a.getItemLayout(c);h&&!isNaN(h.x)&&!isNaN(h.y)&&i.push([+h.x,+h.y])});var o=[],s=[];Ec(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new Gl;f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center"),n),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!eh(u,a,t)}),o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){zy(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Gy(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(t),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var n=t.getData(),a=this._getNodeGlobalScale(t);n.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(t){var n=t.coordinateSystem;if(n.type!=="view")return 1;var a=this._nodeScaleRatio,i=n.scaleX||1,o=n.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Vt);function $S(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function WS(r,e,t,n,a){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",f=r.tree.root,c=o.parentNode===f?o:o.parentNode||o,h=r.getItemGraphicEl(c.dataIndex),v=c.getLayout(),p=h?{x:h.__oldX,y:h.__oldY,rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:v,d=o.getLayout();i?(t=new Rl(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=p.x,t.y=p.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,n.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Mt(t,{x:d.x,y:d.y},a);var g=t.getSymbolPath();if(a.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(d.x===m.x&&o.isExpand===!0&&y.children.length){var x={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(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(d.y-m.y,d.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=d.x<m.x,b&&(S=S-Math.PI)):(b=d.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),A=C*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),I=L==="relative"?_f(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;I&&(it(t).focus=I),G3(a,o,f,t,p,v,d,n),t.__edge&&(t.onHoverStateChange=function(E){if(E!=="blur"){var P=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);P&&P.hoverState===Cl||Lf(t.__edge,E)}})}function G3(r,e,t,n,a,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),c=r.getOrient(),h=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),d=n.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=n.__edge=new Oc({shape:Wd(f,c,h,a,a)})),Mt(d,{shape:Wd(f,c,h,i,o)},r));else if(u==="polyline"){if(f==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}d||(d=n.__edge=new B3({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:c,forkPosition:v}})),Mt(d,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle(et({strokeNoScale:!0,fill:null},p)),ve(d,l,"lineStyle"),yi(d),s.add(d))}function US(r,e,t,n,a){var i=e.tree.root,o=oL(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(!!u){var f=e.getItemGraphicEl(s.dataIndex),c=f.__edge,h=u.__edge||(s.isExpand===!1||s.children.length===1?c:void 0),v=n.get("edgeShape"),p=n.get("layout"),d=n.get("orient"),g=n.get(["lineStyle","curveness"]);h&&(v==="curve"?ia(h,{shape:Wd(p,d,g,l,l),style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}):v==="polyline"&&n.get("layout")==="orthogonal"&&ia(h,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){t.remove(h)},removeOpt:a}))}}function oL(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,n;n=t.getLayout(),n==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:n}}function YS(r,e,t,n,a){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=oL(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ia(t,{x:s.x+1,y:s.y+1},a,{cb:function(){n.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){US(u,r,n,a,l)}),US(i,r,n,a,l)}function Wd(r,e,t,n,a){var i,o,s,l,u,f,c,h;if(r==="radial"){u=n.rawX,c=n.rawY,f=a.rawX,h=a.rawY;var v=Es(u,c),p=Es(u,c+(h-c)*t),d=Es(f,h+(c-h)*t),g=Es(f,h);return{x1:v.x||0,y1:v.y||0,x2:g.x||0,y2:g.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=n.x,c=n.y,f=a.x,h=a.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=c,s=f+(u-f)*t,l=h),(e==="TB"||e==="BT")&&(i=u,o=c+(h-c)*t,s=f,l=h+(c-h)*t);return{x1:u,y1:c,x2:f,y2:h,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const F3=z3;var fr=Ct();function sL(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,lL(e,t,r),D(t,function(n){D(e.TRANSFERABLE_METHODS,function(a){n.wrapMethod(a,ot(H3,r))})}),e.wrapMethod("cloneShallow",ot(W3,r)),D(e.CHANGABLE_METHODS,function(n){e.wrapMethod(n,ot($3,r))}),J(t[e.dataType]===e)}function H3(r,e){if(Z3(this)){var t=V({},fr(this).datas);t[this.dataType]=e,lL(e,t,r)}else $y(e,this.dataType,fr(this).mainData,r);return e}function $3(r,e){return r.struct&&r.struct.update(),e}function W3(r,e){return D(fr(e).datas,function(t,n){t!==e&&$y(t.cloneShallow(),n,e,r)}),e}function U3(r){var e=fr(this).mainData;return r==null||e==null?e:fr(e).datas[r]}function Y3(){var r=fr(this).mainData;return r==null?[{data:r}]:G(_t(fr(r).datas),function(e){return{type:e,data:fr(r).datas[e]}})}function Z3(r){return fr(r).mainData===r}function lL(r,e,t){fr(r).datas={},D(e,function(n,a){$y(n,a,r,t)})}function $y(r,e,t,n){fr(t).datas[e]=r,fr(r).mainData=t,r.dataType=e,n.struct&&(r[n.structAttr]=n.struct,n.struct[n.datasAttr[e]]=r),r.getLinkedData=U3,r.getLinkedDataAll=Y3}var X3=function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,n){j(e)&&(n=t,t=e,e=null),e=e||{},W(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(n,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,n);a==="postorder"&&t.call(n,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var a=this.children[n];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,a=n.length;t<a;t++){var i=n[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),q3=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,a=t.length;n<a;n++)t[n].dataIndex=-1;for(var n=0,a=e.count();n<a;n++)t[e.getRawIndex(n)].dataIndex=n},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,n){var a=new r(t),i=[],o=1;s(e);function s(f,c){var h=f.value;o=Math.max(o,z(h)?h.length:1),i.push(f);var v=new X3(ee(f.name,""),a);c?j3(v,c):a.root=v,a._nodes.push(v);var p=f.children;if(p)for(var d=0;d<p.length;d++)s(p[d],v)}a.root.updateDepthAndHeight(0);var l=El(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Me(l,t);return u.initData(i),n&&n(u),sL({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r}();function j3(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}const Wy=q3;function pl(r,e,t){if(r&&vt(e,r.type)>=0){var n=t.getData().tree.root,a=r.targetNode;if(W(a)&&(a=n.getNodeById(a)),a&&n.contains(a))return{node:a};var i=r.targetNodeId;if(i!=null&&(a=n.getNodeById(i)))return{node:a}}}function uL(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Uy(r,e){var t=uL(r);return vt(t,e)>=0}function nh(r,e){for(var t=[];r;){var n=r.dataIndex;t.push({name:r.name,dataIndex:n,value:e.getRawValue(n)}),r=r.parentNode}return t.reverse(),t}var K3=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var n={name:t.name,children:t.data},a=t.leaves||{},i=new kt(a,this,this.ecModel),o=Wy.createTree(n,this,s);function s(c){c.wrapMethod("getItemModel",function(h,v){var p=o.getNodeByDataIndex(v);return p&&p.children.length&&p.isExpand||(h.parentModel=i),h})}var l=0;o.eachNode("preorder",function(c){c.depth>l&&(l=c.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(c){var h=c.hostTree.data.getRawDataItem(c.dataIndex);c.isExpand=h&&h.collapsed!=null?!h.collapsed:c.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,n,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return oe("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nh(a,this),n.collapsed=!a.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Gt);const J3=K3;function Q3(r,e,t){for(var n=[r],a=[],i;i=n.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;i=a.pop();)e(i,t)}function ps(r,e){for(var t=[r],n;n=t.pop();)if(e(n),n.isExpand){var a=n.children;if(a.length)for(var i=a.length-1;i>=0;i--)t.push(a[i])}}function tH(r,e){r.eachSeriesByType("tree",function(t){eH(t,e)})}function eH(r,e){var t=E3(r,e);r.layoutInfo=t;var n=r.get("layout"),a=0,i=0,o=null;n==="radial"?(a=2*Math.PI,i=Math.min(t.height,t.width)/2,o=HS(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=t.width,i=t.height,o=HS());var s=r.getData().tree.root,l=s.children[0];if(l){M3(s),Q3(l,L3,o),s.hierNode.modifier=-l.hierNode.prelim,ps(l,I3);var u=l,f=l,c=l;ps(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>f.getLayout().x&&(f=_),_.depth>c.depth&&(c=_)});var h=u===f?1:o(u,f)/2,v=h-u.getLayout().x,p=0,d=0,g=0,y=0;if(n==="radial")p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),ps(l,function(_){g=(_.getLayout().x+v)*p,y=(_.depth-1)*d;var S=Es(g,y);_.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var m=r.getOrient();m==="RL"||m==="LR"?(d=i/(f.getLayout().x+h+v),p=a/(c.depth-1||1),ps(l,function(_){y=(_.getLayout().x+v)*d,g=m==="LR"?(_.depth-1)*p:a-(_.depth-1)*p,_.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=a/(f.getLayout().x+h+v),d=i/(c.depth-1||1),ps(l,function(_){g=(_.getLayout().x+v)*p,y=m==="TB"?(_.depth-1)*d:i-(_.depth-1)*d,_.setLayout({x:g,y},!0)}))}}}function rH(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),n=t.tree;n.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");V(s,o)})})}function nH(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var a=e.dataIndex,i=n.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=Hy(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function aH(r){r.registerChartView(F3),r.registerSeriesModel(J3),r.registerLayout(tH),r.registerVisual(rH),nH(r)}var ZS=["treemapZoomToNode","treemapRender","treemapMove"];function iH(r){for(var e=0;e<ZS.length;e++)r.registerAction({type:ZS[e],update:"updateView"},Xt);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=pl(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=Uy(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function fL(r){var e=r.getData(),t=e.tree,n={};t.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=_d(r.ecModel,i.name||i.dataIndex+"",n);a.setVisual("decal",o)})}var oH=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};cL(a);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new kt({itemStyle:o},this,n);i=t.levels=sH(i,n);var l=G(i||[],function(c){return new kt(c,s,n)},this),u=Wy.createTree(a,this,f);function f(c){c.wrapMethod("getItemModel",function(h,v){var p=u.getNodeByDataIndex(v),d=p?l[p.depth]:null;return h.parentModel=d||s,h})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return oe("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=nh(a,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},V(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var n=this._idIndexMap;n||(n=this._idIndexMap=X(),this._idIndexMapCount=0);var a=n.get(t);return a==null&&n.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){fL(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Gt);function cL(r){var e=0;D(r.children,function(n){cL(n);var a=n.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}function sH(r,e){var t=Pt(e.get("color")),n=Pt(e.get(["aria","decal","decals"]));if(!!t){r=r||[];var a,i;D(r,function(s){var l=new kt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!i&&n&&(o.decal=n.slice()),r}}const lH=oH;var uH=8,XS=8,Bv=5,fH=function(){function r(e){this.group=new at,e.add(this.group)}return r.prototype.render=function(e,t,n,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!n)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,u),this._renderContent(e,c,s,l,u,f,a),Wc(o,c.pos,c.box)}},r.prototype._prepare=function(e,t,n){for(var a=e;a;a=a.parentNode){var i=ee(a.getModel().get("name"),""),o=n.getTextRect(i),s=Math.max(o.width+uH*2,t.emptyItemWidth);t.totalWidth+=s+XS,t.renderList.push({node:a,text:i,width:s})}},r.prototype._renderContent=function(e,t,n,a,i,o,s){for(var l=0,u=t.emptyItemWidth,f=e.get(["breadcrumb","height"]),c=_O(t.pos,t.box),h=t.totalWidth,v=t.renderList,p=a.getModel("itemStyle").getItemStyle(),d=v.length-1;d>=0;d--){var g=v[d],y=g.node,m=g.width,_=g.text;h>c.width&&(h-=m-u,m=u,_=null);var S=new Ge({shape:{points:cH(l,0,m,f,d===v.length-1,d===0)},style:et(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Dt({style:Ot(i,{text:_})}),textConfig:{position:"inside"},z2:Po*1e4,onclick:ot(s,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Ot(o,{text:_}),S.ensureState("emphasis").style=p,$t(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),hH(S,e,y),l+=m+XS}},r.prototype.remove=function(){this.group.removeAll()},r}();function cH(r,e,t,n,a,i){var o=[[a?r:r-Bv,e],[r+t,e],[r+t,e+n],[a?r:r-Bv,e+n]];return!i&&o.splice(2,0,[r+t+Bv,e+n/2]),!a&&o.push([r,e+n/2]),o}function hH(r,e,t){it(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&nh(t,e)}}const vH=fH;var pH=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,n,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:a,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},r}();function dH(){return new pH}var Ud=at,qS=Tt,jS=3,KS="label",JS="upperLabel",gH=Po*10,yH=Po*2,mH=Po*3,Fa=gi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),QS=function(r){var e=Fa(r);return e.stroke=e.fill=e.lineWidth=null,e},tc=Ct(),_H=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=ds(),t}return e.prototype.render=function(t,n,a,i){var o=n.findComponents({mainType:"series",subType:"treemap",query:i});if(!(vt(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=pl(i,s,t),u=i&&i.type,f=t.layoutInfo,c=!this._oldTree,h=this._storage,v=u==="treemapRootToNode"&&l&&h?{rootNodeGroup:h.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,p=this._giveContainerGroup(f),d=t.get("animation"),g=this._doRender(p,t,v);d&&!c&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(p,g,t,v):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var n=this._containerGroup;return n||(n=this._containerGroup=new Ud,this._initEvents(n),this.group.add(n)),n.x=t.x,n.y=t.y,n},e.prototype._doRender=function(t,n,a){var i=n.getData().tree,o=this._oldTree,s=ds(),l=ds(),u=this._storage,f=[];function c(g,y,m,_){return SH(n,l,u,a,s,f,g,y,m,_)}v(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var h=p(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:h,renderFinally:d};function v(g,y,m,_,S){_?(y=g,D(g,function(w,T){!w.isRemoved()&&x(T,T)})):new Tn(y,g,b,b).add(x).update(x).remove(ot(x,null)).execute();function b(w){return w.getId()}function x(w,T){var C=w!=null?g[w]:null,A=T!=null?y[T]:null,M=c(C,A,m,S);M&&v(C&&C.viewChildren||[],A&&A.viewChildren||[],M,_,S+1)}}function p(g){var y=ds();return g&&D(g,function(m,_){var S=y[_];D(m,function(b){b&&(S.push(b),tc(b).willDelete=!0)})}),y}function d(){D(h,function(g){D(g,function(y){y.parent&&y.parent.remove(y)})}),D(f,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(t,n,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(j(o)?0:o)||0,u=(j(s)?null:s)||"cubicOut",f=dH();D(n.willDeleteEls,function(c,h){D(c,function(v,p){if(!v.invisible){var d=v.parent,g,y=tc(d);if(i&&i.direction==="drillDown")g=d===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=h==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(v,g,l,0,u)}})}),D(this._storage,function(c,h){D(c,function(v,p){var d=n.lastsForAnimation[h][p],g={};!d||(v instanceof at?d.oldX!=null&&(g.x=v.x,g.y=v.y,v.x=d.oldX,v.y=d.oldY):(d.oldShape&&(g.shape=V({},v.shape),v.setShape(d.oldShape)),d.fadein?(v.setStyle("opacity",0),g.style={opacity:1}):v.style.opacity!==1&&(g.style={opacity:1})),f.add(v,g,l,0,u))})},this),this._state="animating",f.finished(Y(function(){this._state="ready",n.renderFinally()},this)).start()},e.prototype._resetController=function(t){var n=this._controller;n||(n=this._controller=new zl(t.getZr()),n.enable(this.seriesModel.get("roam")),n.on("pan",Y(this._onPan,this)),n.on("zoom",Y(this._onZoom,this)));var a=new ht(0,0,t.getWidth(),t.getHeight());n.setPointerChecker(function(i,o,s){return a.contain(o,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>jS||Math.abs(t.dy)>jS)){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var n=t.originX,a=t.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new ht(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;n-=l.x,a-=l.y;var u=cr();jr(u,u,[-n,-a]),Ng(u,u,[t.scale,t.scale]),jr(u,u,[n,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var n=this;t.on("click",function(a){if(n._state==="ready"){var i=n.seriesModel.get("nodeClick",!0);if(!!i){var o=n.findTarget(a.offsetX,a.offsetY);if(!!o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(i==="zoomToNode")n._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&&Of(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,n,a){var i=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new vH(this.group))).render(t,n,a.node,function(o){i._state!=="animating"&&(Uy(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ds(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,n){var a,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(t,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Vt);function ds(){return{nodeGroup:[],background:[],content:[]}}function SH(r,e,t,n,a,i,o,s,l,u){if(!o)return;var f=o.getLayout(),c=r.getData(),h=o.getModel();if(c.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,p=f.height,d=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=h.getModel("itemStyle"),w=h.getModel(["emphasis","itemStyle"]),T=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),A=x.get("borderRadius")||0,M=tt("nodeGroup",Ud);if(!M)return;if(l.add(M),M.x=f.x||0,M.y=f.y||0,M.markRedraw(),tc(M).nodeWidth=v,tc(M).nodeHeight=p,f.isAboveViewRoot)return M;var L=tt("background",qS,u,yH);L&&B(M,L,b&&f.upperLabelHeight);var I=h.getModel("emphasis"),E=I.get("focus"),P=I.get("blurScope"),N=I.get("disabled"),k=E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():E;if(b)aa(M)&&Ka(M,!1),L&&(Ka(L,!N),c.setItemGraphicEl(o.dataIndex,L),fd(L,k,P));else{var O=tt("content",qS,u,mH);O&&F(M,O),L.disableMorphing=!0,L&&aa(L)&&Ka(L,!1),Ka(M,!N),c.setItemGraphicEl(o.dataIndex,M),fd(M,k,P)}return M;function B(dt,rt,gt){var st=it(rt);if(st.dataIndex=o.dataIndex,st.seriesIndex=r.seriesIndex,rt.setShape({x:0,y:0,width:v,height:p,r:A}),g)$(rt);else{rt.invisible=!1;var q=o.getVisual("style"),lt=q.stroke,zt=QS(x);zt.fill=lt;var bt=Fa(w);bt.fill=w.get("borderColor");var Ut=Fa(T);Ut.fill=T.get("borderColor");var Ht=Fa(C);if(Ht.fill=C.get("borderColor"),gt){var ge=v-2*d;Z(rt,lt,q.opacity,{x:d,y:0,width:ge,height:S})}else rt.removeTextContent();rt.setStyle(zt),rt.ensureState("emphasis").style=bt,rt.ensureState("blur").style=Ut,rt.ensureState("select").style=Ht,yi(rt)}dt.add(rt)}function F(dt,rt){var gt=it(rt);gt.dataIndex=o.dataIndex,gt.seriesIndex=r.seriesIndex;var st=Math.max(v-2*d,0),q=Math.max(p-2*d,0);if(rt.culling=!0,rt.setShape({x:d,y:d,width:st,height:q,r:A}),g)$(rt);else{rt.invisible=!1;var lt=o.getVisual("style"),zt=lt.fill,bt=QS(x);bt.fill=zt,bt.decal=lt.decal;var Ut=Fa(w),Ht=Fa(T),ge=Fa(C);Z(rt,zt,lt.opacity,null),rt.setStyle(bt),rt.ensureState("emphasis").style=Ut,rt.ensureState("blur").style=Ht,rt.ensureState("select").style=ge,yi(rt)}dt.add(rt)}function $(dt){!dt.invisible&&i.push(dt)}function Z(dt,rt,gt,st){var q=h.getModel(st?JS:KS),lt=ee(h.get("name"),null),zt=q.getShallow("show");pe(dt,ie(h,st?JS:KS),{defaultText:zt?lt:null,inheritColor:rt,defaultOpacity:gt,labelFetcher:r,labelDataIndex:o.dataIndex});var bt=dt.getTextContent();if(!!bt){var Ut=bt.style,Ht=Ig(Ut.padding||0);st&&(dt.setTextConfig({layoutRect:st}),bt.disableLabelLayout=!0),bt.beforeUpdate=function(){var nn=Math.max((st?st.width:dt.shape.width)-Ht[1]-Ht[3],0),Ee=Math.max((st?st.height:dt.shape.height)-Ht[0]-Ht[2],0);(Ut.width!==nn||Ut.height!==Ee)&&bt.setStyle({width:nn,height:Ee})},Ut.truncateMinChar=2,Ut.lineOverflow="truncate",Q(Ut,st,f);var ge=bt.getState("emphasis");Q(ge?ge.style:null,st,f)}}function Q(dt,rt,gt){var st=dt?dt.text:null;if(!rt&&gt.isLeafRoot&&st!=null){var q=r.get("drillDownIcon",!0);dt.text=q?q+" "+st:st}}function tt(dt,rt,gt,st){var q=m!=null&&t[dt][m],lt=a[dt];return q?(t[dt][m]=null,pt(lt,q)):g||(q=new rt,q instanceof hr&&(q.z2=xH(gt,st)),St(lt,q)),e[dt][y]=q}function pt(dt,rt){var gt=dt[y]={};rt instanceof Ud?(gt.oldX=rt.x,gt.oldY=rt.y):gt.oldShape=V({},rt.shape)}function St(dt,rt){var gt=dt[y]={},st=o.parentNode,q=rt instanceof at;if(st&&(!n||n.direction==="drillDown")){var lt=0,zt=0,bt=a.background[st.getRawIndex()];!n&&bt&&bt.oldShape&&(lt=bt.oldShape.width,zt=bt.oldShape.height),q?(gt.oldX=0,gt.oldY=zt):gt.oldShape={x:lt,y:zt,width:0,height:0}}gt.fadein=!q}}function xH(r,e){return r*gH+e}const bH=_H;var dl=D,wH=K,ec=-1,Yy=function(){function r(e){var t=e.mappingMethod,n=e.type,a=this.option=nt(e);this.type=n,this.mappingMethod=t,this._normalizeData=DH[t];var i=r.visualHandlers[n];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(zv(a),TH(a)):t==="category"?a.categories?CH(a):zv(a,!0):(J(t!=="linear"||a.dataExtent),zv(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Y(this._normalizeData,this)},r.listVisualTypes=function(){return _t(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){K(e)?D(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var a,i=z(e)?[]:K(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);a?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},n;return e&&dl(r.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(t[i]=e[i],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(wH(e)){var t=[];dl(e,function(n,a){t.push(a)}),e=t}else return[];return e.sort(function(n,a){return a==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,n){for(var a,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||W(l)&&l===e+"")return o;n&&h(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(Eu(c[1],e,f[1]))return o}else if(f[1]===1/0){if(Eu(c[0],f[0],e))return o}else if(Eu(c[0],f[0],e)&&Eu(c[1],e,f[1]))return o;n&&h(f[0],o),n&&h(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:a;function h(v,p){var d=Math.abs(v-e);d<i&&(i=d,a=p)}},r.visualHandlers={color:{applyVisual:gs("color"),getColorMapper:function(){var e=this.option;return Y(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),Ps.call(this,t)}:function(t,n,a){var i=!!a;return!n&&(t=this._normalizeData(t)),a=mh(t,e.parsedVisual,a),i?a:pn(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return pn(mh(e,this.option.parsedVisual),"rgba")},category:Ps,piecewise:function(e,t){var n=Zd.call(this,t);return n==null&&(n=pn(mh(e,this.option.parsedVisual),"rgba")),n},fixed:Ha}},colorHue:Iu(function(e,t){return ks(e,t)}),colorSaturation:Iu(function(e,t){return ks(e,null,t)}),colorLightness:Iu(function(e,t){return ks(e,null,null,t)}),colorAlpha:Iu(function(e,t){return bf(e,t)}),decal:{applyVisual:gs("decal"),_normalizedToVisual:{linear:null,category:Ps,piecewise:null,fixed:null}},opacity:{applyVisual:gs("opacity"),_normalizedToVisual:Yd([0,1])},liftZ:{applyVisual:gs("liftZ"),_normalizedToVisual:{linear:Ha,category:Ha,piecewise:Ha,fixed:Ha}},symbol:{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("symbol",a)},_normalizedToVisual:{linear:tx,category:Ps,piecewise:function(e,t){var n=Zd.call(this,t);return n==null&&(n=tx.call(this,e)),n},fixed:Ha}},symbolSize:{applyVisual:gs("symbolSize"),_normalizedToVisual:Yd([0,1])}},r}();function TH(r){var e=r.pieceList;r.hasSpecialVisual=!1,D(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function CH(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(dl(e,function(o,s){t[o]=s}),!z(n)){var a=[];K(n)?dl(n,function(o,s){var l=t[s];a[l!=null?l:ec]=o}):a[ec]=n,n=hL(r,a)}for(var i=e.length-1;i>=0;i--)n[i]==null&&(delete t[e[i]],e.pop())}function zv(r,e){var t=r.visual,n=[];K(t)?dl(t,function(i){n.push(i)}):t!=null&&n.push(t);var a={color:1,symbol:1};!e&&n.length===1&&!a.hasOwnProperty(r.type)&&(n[1]=n[0]),hL(r,n)}function Iu(r){return{applyVisual:function(e,t,n){var a=this.mapValueToVisual(e);n("color",r(t("color"),a))},_normalizedToVisual:Yd([0,1])}}function tx(r){var e=this.option.visual;return e[Math.round(It(r,[0,1],[0,e.length-1],!0))]||{}}function gs(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function Ps(r){var e=this.option.visual;return e[this.option.loop&&r!==ec?r%e.length:r]}function Ha(){return this.option.visual[0]}function Yd(r){return{linear:function(e){return It(e,r,this.option.visual,!0)},category:Ps,piecewise:function(e,t){var n=Zd.call(this,t);return n==null&&(n=It(e,r,this.option.visual,!0)),n},fixed:Ha}}function Zd(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=Yy.findPieceIndex(r,t),a=t[n];if(a&&a.visual)return a.visual[this.type]}}function hL(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=G(e,function(t){var n=Ue(t);return!n&&process.env.NODE_ENV!=="production"&&Ft("'"+t+"' is an illegal color, fallback to '#000000'",!0),n||[0,0,0,1]})),e}var DH={linear:function(r){return It(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=Yy.findPieceIndex(r,e,!0);if(t!=null)return It(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?ec:e},fixed:Xt};function Eu(r,e,t){return r?e<=t:e<t}const ce=Yy;var AH="itemStyle",vL=Ct();const MH={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||pL(t,{},r.getViewRoot().getAncestors(),r)}};function pL(r,e,t,n){var a=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(AH),l=LH(s,e,n),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),c=s.get("borderColorSaturation"),h;c!=null&&(h=ex(l),f=IH(c,h)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)h=ex(l),u.fill=h;else{var p=EH(r,a,i,s,l,v);D(v,function(d,g){if(d.depth>=t.length||d===t[d.depth]){var y=PH(a,l,d,g,p,n);pL(d,y,t,n)}})}}}function LH(r,e,t){var n=V({},e),a=t.designatedVisualItemStyle;return D(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=r.get(i);a[i]=null,o!=null&&(n[i]=o)}),n}function ex(r){var e=Gv(r,"color");if(e){var t=Gv(r,"colorAlpha"),n=Gv(r,"colorSaturation");return n&&(e=ks(e,null,null,n)),t&&(e=bf(e,t)),e}}function IH(r,e){return e!=null?ks(e,null,null,r):null}function Gv(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function EH(r,e,t,n,a,i){if(!(!i||!i.length)){var o=Fv(e,"color")||a.color!=null&&a.color!=="none"&&(Fv(e,"colorAlpha")||Fv(e,"colorSaturation"));if(!!o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),c={type:o.name,dataExtent:u,visual:o.range};c.type==="color"&&(f==="index"||f==="id")?(c.mappingMethod="category",c.loop=!0):c.mappingMethod="linear";var h=new ce(c);return vL(h).drColorMappingBy=f,h}}}function Fv(r,e){var t=r.get(e);return z(t)&&t.length?{name:e,range:t}:null}function PH(r,e,t,n,a,i){var o=V({},e);if(a){var s=a.type,l=s==="color"&&vL(a).drColorMappingBy,u=l==="index"?n:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var gl=Math.max,rc=Math.min,rx=Kt,Zy=D,dL=["itemStyle","borderWidth"],NH=["itemStyle","gapWidth"],RH=["upperLabel","show"],OH=["upperLabel","height"];const kH={seriesType:"treemap",reset:function(r,e,t,n){var a=t.getWidth(),i=t.getHeight(),o=r.option,s=re(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=o.size||[],u=H(rx(s.width,l[0]),a),f=H(rx(s.height,l[1]),i),c=n&&n.type,h=["treemapZoomToNode","treemapRootToNode"],v=pl(n,h,r),p=c==="treemapRender"||c==="treemapMove"?n.rootRect:null,d=r.getViewRoot(),g=uL(d);if(c!=="treemapMove"){var y=c==="treemapZoomToNode"?HH(r,v,d,u,f):p?[p.width,p.height]:[u,f],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var _={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};d.hostTree.clearLayouts();var S={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};d.setLayout(S),gL(d,_,!1,0),S=d.getLayout(),Zy(g,function(x,w){var T=(g[w+1]||d).getValue();x.setLayout(V({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var b=r.getData().tree.root;b.setLayout($H(s,p,v),!0),r.setLayoutInfo(s),yL(b,new ht(-s.x,-s.y,a,i),g,d,0)}};function gL(r,e,t,n){var a,i;if(!r.isRemoved()){var o=r.getLayout();a=o.width,i=o.height;var s=r.getModel(),l=s.get(dL),u=s.get(NH)/2,f=mL(s),c=Math.max(l,f),h=l-u,v=c-u;r.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:f},!0),a=gl(a-2*h,0),i=gl(i-h-v,0);var p=a*i,d=VH(r,s,p,e,t,n);if(!!d.length){var g={x:h,y:v,width:a,height:i},y=rc(a,i),m=1/0,_=[];_.area=0;for(var S=0,b=d.length;S<b;){var x=d[S];_.push(x),_.area+=x.getLayout().area;var w=FH(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,nx(_,y,g,u,!1),y=rc(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&nx(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&p<T&&(t=!0)}for(var S=0,b=d.length;S<b;S++)gL(d[S],e,t,n+1)}}}function VH(r,e,t,n,a,i){var o=r.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=i;if(a&&!l)return r.viewChildren=[];o=Et(o,function(v){return!v.isRemoved()}),zH(o,s);var u=GH(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=BH(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,c=o.length;f<c;f++){var h=o[f].getValue()/u.sum*t;o[f].setLayout({area:h})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function BH(r,e,t,n,a){if(!n)return t;for(var i=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[n==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return n==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function zH(r,e){return e&&r.sort(function(t,n){var a=e==="asc"?t.getValue()-n.getValue():n.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:a}),r}function GH(r,e,t){for(var n=0,a=0,i=e.length;a<i;a++)n+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],Zy(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function FH(r,e,t){for(var n=0,a=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<a&&(a=o),o>n&&(n=o));var l=r.area*r.area,u=e*e*t;return l?gl(u*n/l,l/(u*a)):1/0}function nx(r,e,t,n,a){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var c=0,h=r.length;c<h;c++){var v=r[c],p={},d=f?v.getLayout().area/f:0,g=p[l[o]]=gl(f-2*n,0),y=t[s[i]]+t[l[i]]-u,m=c===h-1||y<d?y:d,_=p[l[i]]=gl(m-2*n,0);p[s[o]]=t[s[o]]+rc(n,g/2),p[s[i]]=u+rc(n,_/2),u+=m,v.setLayout(p,!0)}t[s[o]]+=f,t[l[o]]-=f}function HH(r,e,t,n,a){var i=(e||{}).node,o=[n,a];if(!i||i===t)return o;for(var s,l=n*a,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,c=s.children,h=0,v=c.length;h<v;h++)f+=c[h].getValue();var p=i.getValue();if(p===0)return o;u*=f/p;var d=s.getModel(),g=d.get(dL),y=Math.max(g,mL(d));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>h0&&(u=h0),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[n*m,a*m]}function $H(r,e,t){if(e)return{x:e.x,y:e.y};var n={x:0,y:0};if(!t)return n;var a=t.node,i=a.getLayout();if(!i)return n;for(var o=[i.width/2,i.height/2],s=a;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 yL(r,e,t,n,a){var i=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==n)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new ht(e.x-i.x,e.y-i.y,e.width,e.height);Zy(r.viewChildren||[],function(u){yL(u,l,t,n,a+1)})}}function mL(r){return r.get(RH)?r.get(OH):0}function WH(r){r.registerSeriesModel(lH),r.registerChartView(bH),r.registerVisual(MH),r.registerLayout(kH),iH(r)}function UH(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getGraph(),i=a.data,o=n.mapArray(n.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){At(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function YH(r){var e={};r.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),a=t.getData(),i={};n.each(function(o){var s=n.getName(o);i["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),n.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],c=0;c<f.length;c++){var h=l.getShallow(f[c],!0);h!=null&&n.setItemVisual(o,f[c],h)}}),n.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){W(l)&&(l=i["ec-"+l]);var u=n.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");V(f,u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++)a.setItemVisual(o,c[h],n.getItemVisual(l,c[h]))}})})}function Pu(r){return r instanceof Array||(r=[r,r]),r}function ZH(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),n=e.getEdgeData(),a=Pu(e.get("edgeSymbol")),i=Pu(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=t.getEdgeByIndex(o),u=Pu(s.getShallow("symbol",!0)),f=Pu(s.getShallow("symbolSize",!0)),c=s.getModel("lineStyle").getLineStyle(),h=n.ensureUniqueItemVisual(o,"style");switch(V(h,c),h.stroke){case"source":{var v=l.node1.getVisual("style");h.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");h.stroke=v&&v.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 Xd="-->",ah=function(r){return r.get("autoCurveness")||null},_L=function(r,e){var t=ah(r),n=20,a=[];if(At(t))n=t;else if(z(t)){r.__curvenessList=t;return}e>n&&(n=e);var i=n%2?n+2:n+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},yl=function(r,e,t){var n=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,n,a].join(Xd)},SL=function(r){var e=r.split(Xd);return[e[0],e[2],e[1]].join(Xd)},XH=function(r,e){var t=yl(r.node1,r.node2,e);return e.__edgeMap[t]},qH=function(r,e){var t=qd(yl(r.node1,r.node2,e),e),n=qd(yl(r.node2,r.node1,e),e);return t+n},qd=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function jH(r){!ah(r)||(r.__curvenessList=[],r.__edgeMap={},_L(r))}function KH(r,e,t,n){if(!!ah(t)){var a=yl(r,e,t),i=t.__edgeMap,o=i[SL(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(n)}}function Xy(r,e,t,n){var a=ah(e),i=z(a);if(!a)return null;var o=XH(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=qH(r,e);_L(e,u),r.lineStyle=r.lineStyle||{};var f=yl(r.node1,r.node2,e),c=e.__curvenessList,h=i||u%2?0:1;if(o.isForward)return c[h+s];var v=SL(f),p=qd(v,e),d=c[s+p+h];return n?i?a&&a[0]===0?(p+h)%2?d:-d:((p%2?0:1)+h)%2?d:-d:(p+h)%2?d:-d:c[s+p+h]}function xL(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(n){var a=n.getModel();n.setLayout([+a.get("x"),+a.get("y")])}),qy(t,r)}}function qy(r,e){r.eachEdge(function(t,n){var a=ur(t.getModel().get(["lineStyle","curveness"]),-Xy(t,e,n,!0),0),i=hn(t.node1.getLayout()),o=hn(t.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),t.setLayout(s)})}function JH(r,e){r.eachSeriesByType("graph",function(t){var n=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var i=t.getData(),o=[];D(a.dimensions,function(h){o=o.concat(i.mapDimensionsAll(h))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var c=i.get(o[f],s);isNaN(c)||(u=!0),l.push(c)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}qy(i.graph,t)}else(!n||n==="none")&&xL(t)})}function Ns(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,n=e.scaleX,a=e.getZoom(),i=(a-1)*t+1;return i/n}function Rs(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var ax=Math.PI,Hv=[];function jy(r,e,t,n){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.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,c=o.count();if(o.setLayout({cx:l,cy:u}),!!c){if(t){var h=a.pointToData(n),v=h[0],p=h[1],d=[v-l,p-u];Lo(d,d),Zu(d,d,f),t.setLayout([l+d[0],u+d[1]],!0);var g=r.get(["circular","rotateLabel"]);bL(t,g,l,u)}QH[e](r,s,o,f,l,u,c),s.eachEdge(function(y,m){var _=ur(y.getModel().get(["lineStyle","curveness"]),Xy(y,r,m),0),S=hn(y.node1.getLayout()),b=hn(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var QH={value:function(r,e,t,n,a,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var c=f.getValue("value"),h=u*(l?c:1)/2;s+=h,f.setLayout([n*Math.cos(s)+a,n*Math.sin(s)+i]),s+=h})},symbolSize:function(r,e,t,n,a,i,o){var s=0;Hv.length=o;var l=Ns(r);e.eachNode(function(c){var h=Rs(c);isNaN(h)&&(h=2),h<0&&(h=0),h*=l;var v=Math.asin(h/2/n);isNaN(v)&&(v=ax/2),Hv[c.dataIndex]=v,s+=v*2});var u=(2*ax-s)/o/2,f=0;e.eachNode(function(c){var h=u+Hv[c.dataIndex];f+=h,(!c.getLayout()||!c.getLayout().fixed)&&c.setLayout([n*Math.cos(f)+a,n*Math.sin(f)+i]),f+=h})}};function bL(r,e,t,n){var a=r.getGraphicEl();if(!!a){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-n,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var c=f?"left":"right";s.setTextConfig({rotation:-u,position:c,origin:"center"});var h=s.ensureState("emphasis");V(h.textConfig||(h.textConfig={}),{position:c})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function t$(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&jy(e,"symbolSize")})}var Zi=Op;function e$(r,e,t){for(var n=r,a=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<n.length;f++){var c=n[f];c.p||(c.p=Ti(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),c.pp=hn(c.p),c.edges=null}var h=t.friction==null?.6:t.friction,v=h,p,d;return{warmUp:function(){v=h*.8},setFixed:function(g){n[g].fixed=!0},setUnfixed:function(g){n[g].fixed=!1},beforeStep:function(g){p=g},afterStep:function(g){d=g},step:function(g){p&&p(n,a);for(var y=[],m=n.length,_=0;_<a.length;_++){var S=a[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;qa(y,x.p,b.p);var w=kp(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),Lo(y,y),!b.fixed&&Zi(b.p,b.p,y,T*w*v),!x.fixed&&Zi(x.p,x.p,y,-(1-T)*w*v)}}for(var _=0;_<m;_++){var C=n[_];C.fixed||(qa(y,l,C.p),Zi(C.p,C.p,y,u*v))}for(var _=0;_<m;_++)for(var b=n[_],A=_+1;A<m;A++){var x=n[A];qa(y,x.p,b.p);var w=kp(y);w===0&&(l2(y,Math.random()-.5,Math.random()-.5),w=1);var M=(b.rep+x.rep)/w/w;!b.fixed&&Zi(b.pp,b.pp,y,M),!x.fixed&&Zi(x.pp,x.pp,y,-M)}for(var L=[],_=0;_<m;_++){var C=n[_];C.fixed||(qa(L,C.p,C.pp),Zi(C.p,C.p,L,v),Te(C.pp,C.p))}v=v*.992;var I=v<.01;d&&d(n,a,I),g&&g(I)}}}function r$(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var n=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,n[S]||[NaN,NaN])}):!l||l==="none"?xL(e):l==="circular"&&jy(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),c=s.get("repulsion"),h=s.get("edgeLength"),v=z(c)?c:[c,c],p=z(h)?h:[h,h];p=[p[1],p[0]];var d=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=It(_,u,v);return isNaN(x)&&(x=(v[0]+v[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=a.getEdgeByIndex(S),x=It(_,f,p);isNaN(x)&&(x=(p[0]+p[1])/2);var w=b.getModel(),T=ur(b.getModel().get(["lineStyle","curveness"]),-Xy(b,e,S,!0),0);return{n1:d[b.node1.dataIndex],n2:d[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=e$(d,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&Te(_[b].p,a.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||a.getNodeByIndex(x).setLayout(_[x].p),n[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=a.getEdgeByIndex(x),A=T.n1.p,M=T.n2.p,L=C.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Te(L[0],A),Te(L[1],M),+T.curveness&&(L[2]=[(A[0]+M[0])/2-(A[1]-M[1])*T.curveness,(A[1]+M[1])/2-(M[0]-A[0])*T.curveness]),C.setLayout(L)}}),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null})}function n$(r,e,t){var n=V(r.getBoxLayoutParams(),{aspect:t});return re(n,{width:e.getWidth(),height:e.getHeight()})}function a$(r,e){var t=[];return r.eachSeriesByType("graph",function(n){var a=n.get("coordinateSystem");if(!a||a==="view"){var i=n.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Ec(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=n$(n,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var c=l[0]-s[0],h=l[1]-s[1],v=f.width,p=f.height,d=n.coordinateSystem=new Gl;d.zoomLimit=n.get("scaleLimit"),d.setBoundingRect(s[0],s[1],c,h),d.setViewRect(f.x,f.y,v,p),d.setCenter(n.get("center"),e),d.setZoom(n.get("zoom")),t.push(d)}}),t}var ix=le.prototype,$v=Oc.prototype,wL=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(wL);function Wv(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var i$=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-line",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wL},e.prototype.buildPath=function(t,n){Wv(n)?ix.buildPath.call(this,t,n):$v.buildPath.call(this,t,n)},e.prototype.pointAt=function(t){return Wv(this.shape)?ix.pointAt.call(this,t):$v.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var n=this.shape,a=Wv(n)?[n.x2-n.x1,n.y2-n.y1]:$v.tangentAt.call(this,t);return Lo(a,a)},e}(mt);const o$=i$;var Uv=["fromSymbol","toSymbol"];function ox(r){return"_"+r+"Type"}function sx(r,e,t){var n=e.getItemVisual(t,r);if(!n||n==="none")return n;var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Wo(a),u=Ai(o||0,l);return n+l+u+(i||"")+(s||"")}function lx(r,e,t){var n=e.getItemVisual(t,r);if(!(!n||n==="none")){var a=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Wo(a),u=Ai(o||0,l),f=Qt(n,-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 s$(r){var e=new o$({name:"line",subPixelOptimize:!0});return jd(e.shape,r),e}function jd(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var l$=function(r){R(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createLine(t,n,a),i}return e.prototype._createLine=function(t,n,a){var i=t.hostModel,o=t.getItemLayout(n),s=s$(o);s.shape.percent=0,Bt(s,{shape:{percent:1}},i,n),this.add(s),D(Uv,function(l){var u=lx(l,t,n);this.add(u),this[ox(l)]=sx(l,t,n)},this),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(n),l={shape:{}};jd(l.shape,s),Mt(o,l,i,n),D(Uv,function(u){var f=sx(u,t,n),c=ox(u);if(this[c]!==f){this.remove(this.childOfName(u));var h=lx(u,t,n);this.add(h)}this[c]=f},this),this._updateCommonStl(t,n,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,n,a){var i=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,h=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var p=t.getItemModel(n),d=p.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),c=d.get("disabled"),h=d.get("focus"),v=d.get("blurScope"),f=ie(p)}var g=t.getItemVisual(n,"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,D(Uv,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<Ie.length;T++){var C=Ie[T],A=o.getState(C);if(A){var M=A.style||{},L=w.ensureState(C),I=L.style||(L.style={});M.stroke!=null&&(I[w.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(I.opacity=M.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(n);pe(this,f,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,t.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?t.getName(n):isFinite(m)?Yt(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");z(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),$t(this,h,v,c)},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e.prototype.updateLayout=function(t,n){this.setLinePoints(t.getItemLayout(n))},e.prototype.setLinePoints=function(t){var n=this.childOfName("line");jd(n.shape,t),n.dirty()},e.prototype.beforeUpdate=function(){var t=this,n=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),i=t.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),c=l.pointAt(u),h=qa([],c,f);Lo(h,h);function v(A,M){var L=A.__specifiedRotation;if(L==null){var I=l.tangentAt(M);A.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else A.attr("rotation",L)}if(n&&(n.setPosition(f),v(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(c),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,d=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);c[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,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,d="top";break;default:C=0,d="middle"}switch(i.__position){case"end":i.x=h[0]*y+c[0],i.y=h[1]*m+c[1],p=h[0]>.8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*y+f[0],i.y=-h[1]*m+f[1],p=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,p=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,p="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+c[0],i.y=c[1]+C,p=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||p})}},e}(at);const Ky=l$;var u$=function(){function r(e){this.group=new at,this._LineCtor=e||Ky}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=e,i||a.removeAll();var o=ux(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;!e||e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ux(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function n(s){!s.isGroup&&!f$(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=t.getItemLayout(a);if(Yv(i)){var o=new this._LineCtor(t,a,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){ha(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,n){var a=e.getItemLayout(t);if(!!Yv(a)){var i=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,n,a,i){var o=e.getItemGraphicEl(n);if(!Yv(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,i):o=new this._LineCtor(t,a,i),t.setItemGraphicEl(a,o),this.group.add(o)},r}();function f$(r){return r.animators&&r.animators.length>0}function ux(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:ie(e)}}function fx(r){return isNaN(r[0])||isNaN(r[1])}function Yv(r){return r&&!fx(r[0])&&!fx(r[1])}const Jy=u$;var Zv=[],Xv=[],qv=[],Xi=se,jv=ni,cx=Math.abs;function hx(r,e,t){for(var n=r[0],a=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){Zv[0]=Xi(n[0],a[0],i[0],f),Zv[1]=Xi(n[1],a[1],i[1],f);var c=cx(jv(Zv,e)-l);c<o&&(o=c,s=f)}for(var h=0;h<32;h++){var v=s+u;Xv[0]=Xi(n[0],a[0],i[0],s),Xv[1]=Xi(n[1],a[1],i[1],s),qv[0]=Xi(n[0],a[0],i[0],v),qv[1]=Xi(n[1],a[1],i[1],v);var c=jv(Xv,e)-l;if(cx(c)<.01)break;var p=jv(qv,e)-l;u/=2,c<0?p>=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function Kv(r,e){var t=[],n=Ks,a=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),c=s.getVisual("toSymbol");u.__original||(u.__original=[hn(u[0]),hn(u[1])],u[2]&&u.__original.push(hn(u[2])));var h=u.__original;if(u[2]!=null){if(Te(a[0],h[0]),Te(a[1],h[2]),Te(a[2],h[1]),f&&f!=="none"){var v=Rs(s.node1),p=hx(a,h[0],v*e);n(a[0][0],a[1][0],a[2][0],p,t),a[0][0]=t[3],a[1][0]=t[4],n(a[0][1],a[1][1],a[2][1],p,t),a[0][1]=t[3],a[1][1]=t[4]}if(c&&c!=="none"){var v=Rs(s.node2),p=hx(a,h[1],v*e);n(a[0][0],a[1][0],a[2][0],p,t),a[1][0]=t[1],a[2][0]=t[2],n(a[0][1],a[1][1],a[2][1],p,t),a[1][1]=t[1],a[2][1]=t[2]}Te(u[0],a[0]),Te(u[1],a[2]),Te(u[2],a[1])}else{if(Te(i[0],h[0]),Te(i[1],h[1]),qa(o,i[1],i[0]),Lo(o,o),f&&f!=="none"){var v=Rs(s.node1);Op(i[0],i[0],o,v*e)}if(c&&c!=="none"){var v=Rs(s.node2);Op(i[1],i[1],o,-v*e)}Te(u[0],i[0]),Te(u[1],i[1])}})}function vx(r){return r.type==="view"}var c$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){var a=new Ol,i=new Jy,o=this.group;this._controller=new zl(n.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,n,a){var i=this,o=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(vx(o)){var f={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(f):Mt(u,f,t)}Kv(t.getGraph(),Ns(t));var c=t.getData();s.updateData(c);var h=t.getEdgeData();l.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,n,a),clearTimeout(this._layoutTimeout);var v=t.forceLayout,p=t.get(["force","layoutAnimation"]);v&&this._startForceLayoutIteration(v,p);var d=t.get("layout");c.graph.eachNode(function(_){var S=_.dataIndex,b=_.getGraphicEl(),x=_.getModel();if(!!b){b.off("drag").off("dragend");var w=x.get("draggable");w&&b.on("drag",function(C){switch(d){case"force":v.warmUp(),!i._layouting&&i._startForceLayoutIteration(v,p),v.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),_.setLayout({fixed:!0},!0),jy(t,"symbolSize",_,[C.offsetX,C.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(S,[b.x,b.y]),qy(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){v&&v.setUnfixed(S)}),b.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(it(b).focus=_.getAdjacentDataIndices())}}),c.graph.eachEdge(function(_){var S=_.getGraphicEl(),b=_.getModel().get(["emphasis","focus"]);!S||b==="adjacency"&&(it(S).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),m=c.getLayout("cy");c.graph.eachNode(function(_){bL(_,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,n){var a=this;(function i(){t.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(n?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(t,n,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,f,c){var h=l.getBoundingRect();return h.applyTransform(l.transform),h.contain(f,c)&&!eh(u,a,t)}),!vx(t.coordinateSystem)){o.disable();return}o.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){zy(s,u.dx,u.dy),a.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Gy(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),Kv(t.getGraph(),Ns(t)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,n=t.getData(),a=Ns(t);n.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(t){Kv(t.getGraph(),Ns(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Vt);const h$=c$;function qi(r){return"_EC_"+r}var v$=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var n=this._nodesMap;if(n[qi(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var a=new $a(e,t);return a.hostGraph=this,this.nodes.push(a),n[qi(e)]=a,a},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[qi(e)]},r.prototype.addEdge=function(e,t,n){var a=this._nodesMap,i=this._edgesMap;if(At(e)&&(e=this.nodes[e]),At(t)&&(t=this.nodes[t]),e instanceof $a||(e=a[qi(e)]),t instanceof $a||(t=a[qi(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new TL(e,t,n);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof $a&&(e=e.id),t instanceof $a&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var n=this.nodes,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},r.prototype.eachEdge=function(e,t){for(var n=this.edges,a=n.length,i=0;i<a;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},r.prototype.breadthFirstTraverse=function(e,t,n,a){if(t instanceof $a||(t=this._nodesMap[qi(t)]),!!t){for(var i=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],c=f.node1===l?f.node2:f.node1;if(!c.__visited){if(e.call(a,c,l))return;s.push(c),c.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,a=this.edges,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;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var 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},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,n=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<n.length;a++){var i=n[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),$a=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e==null?"":e,this.dataIndex=t==null?-1:t}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=X(),t=X(),n=0;n<this.edges.length;n++){var a=this.edges[n];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var f=o[s];s++,t.set(f.dataIndex,!0);for(var u=0;u<f.outEdges.length;u++)e.set(f.outEdges[u].dataIndex,!0),o.push(f.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},r}(),TL=function(){function r(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n==null?-1:n}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=X(),t=X();e.set(this.dataIndex,!0);for(var n=[this.node1],a=[this.node2],i=0;i<n.length;){var o=n[i];i++,t.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},r}();function CL(r,e){return{getValue:function(t){var n=this[r][e];return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,n){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,n)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,n){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,n)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}te($a,CL("hostGraph","data"));te(TL,CL("hostGraph","edgeData"));const p$=v$;function DL(r,e,t,n,a){for(var i=new p$(n),o=0;o<r.length;o++)i.addNode(Kt(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],c=f.source,h=f.target;i.addEdge(c,h,u)&&(l.push(f),s.push(Kt(ee(f.id,null),c+" > "+h)),u++)}var v=t.get("coordinateSystem"),p;if(v==="cartesian2d"||v==="polar")p=Mn(r,t);else{var d=Fo.get(v),g=d?d.dimensions||[]:[];vt(g,"value")<0&&g.concat(["value"]);var y=El(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;p=new Me(y,t),p.initData(r)}var m=new Me(["value"],t);return m.initData(l,s),a&&a(p,m),sL({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var d$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var n=this;function a(){return n._categoriesData}this.legendVisualProvider=new Bl(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),pi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,n){var a=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&a){jH(this);var s=DL(i,a,this,!0,l);return D(s.edges,function(u){KH(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(p){var d=o._categoriesModels,g=p.getShallow("category"),y=d[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var c=kt.prototype.getModel;function h(p,d){var g=c.call(this,p,d);return g.resolveParentPath=v,g}f.wrapMethod("getItemModel",function(p){return p.resolveParentPath=v,p.getModel=h,p});function v(p){if(p&&(p[0]==="label"||p[1]==="label")){var d=p.slice();return p[0]==="label"?d[0]="edgeLabel":p[1]==="label"&&(d[1]="edgeLabel"),d}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,n,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(t,a),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),oe("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var c=XD({series:this,dataIndex:t,multipleSeries:n});return c},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(a){return a.value!=null?a:V({value:0},a)}),n=new Me(["value"],this);n.initData(t),this._categoriesData=n,this._categoriesModels=n.mapArray(function(a){return n.getItemModel(a)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const g$=d$;var y$={type:"graphRoam",event:"graphRoam",update:"none"};function m$(r){r.registerChartView(h$),r.registerSeriesModel(g$),r.registerProcessor(UH),r.registerVisual(YH),r.registerVisual(ZH),r.registerLayout(JH),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,t$),r.registerLayout(r$),r.registerCoordinateSystem("graphView",{dimensions:Gl.dimensions,create:a$}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xt),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xt),r.registerAction(y$,function(e,t,n){t.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=Hy(i,e,void 0,n);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var _$=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),S$=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="pointer",n}return e.prototype.getDefaultShape=function(){return new _$},e.prototype.buildPath=function(t,n){var a=Math.cos,i=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-a(l)*s*(s>=o/3?1:2),f=n.y-i(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(n.x+a(l)*s,n.y+i(l)*s),t.lineTo(n.x+a(n.angle)*o,n.y+i(n.angle)*o),t.lineTo(n.x-a(l)*s,n.y-i(l)*s),t.lineTo(u,f)},e}(mt);const x$=S$;function b$(r,e){var t=r.get("center"),n=e.getWidth(),a=e.getHeight(),i=Math.min(n,a),o=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Nu(r,e){var t=r==null?"":r+"";return e&&(W(e)?t=e.replace("{value}",t):j(e)&&(t=e(r))),t}var w$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=b$(t,a);this._renderMain(t,n,a,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,n,a,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,c=t.getModel("axisLine"),h=c.get("roundCap"),v=h?Kf:ze,p=c.get("show"),d=c.getModel("lineStyle"),g=d.get("width"),y=[u,f];iC(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;p&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;var w=new v({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[b][1]}),w.setStyle(d.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),D(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=C&&(A===0?0:i[A-1][0])<C)return i[A][1];return i[A-1][1]};this._renderTicks(t,n,a,T,o,u,f,l,g),this._renderTitleAndDetail(t,n,a,T,o),this._renderAnchor(t,o),this._renderPointer(t,n,a,T,o,u,f,l,g)},e.prototype._renderTicks=function(t,n,a,i,o,s,l,u,f){for(var c=this.group,h=o.cx,v=o.cy,p=o.r,d=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),b=m.get("splitNumber"),x=H(y.get("length"),p),w=H(m.get("length"),p),T=s,C=(l-s)/S,A=C/b,M=y.getModel("lineStyle").getLineStyle(),L=m.getModel("lineStyle").getLineStyle(),I=y.get("distance"),E,P,N=0;N<=S;N++){if(E=Math.cos(T),P=Math.sin(T),y.get("show")){var k=I?I+f:f,O=new le({shape:{x1:E*(p-k)+h,y1:P*(p-k)+v,x2:E*(p-x-k)+h,y2:P*(p-x-k)+v},style:M,silent:!0});M.stroke==="auto"&&O.setStyle({stroke:i(N/S)}),c.add(O)}if(_.get("show")){var k=_.get("distance")+I,B=Nu(Yt(N/S*(g-d)+d),_.get("formatter")),F=i(N/S),$=E*(p-x-k)+h,Z=P*(p-x-k)+v,Q=_.get("rotate"),tt=0;Q==="radial"?(tt=-T+2*Math.PI,tt>Math.PI/2&&(tt+=Math.PI)):Q==="tangential"?tt=-T-Math.PI/2:At(Q)&&(tt=Q*Math.PI/180),tt===0?c.add(new Dt({style:Ot(_,{text:B,x:$,y:Z,verticalAlign:P<-.8?"top":P>.8?"bottom":"middle",align:E<-.4?"left":E>.4?"right":"center"},{inheritColor:F}),silent:!0})):c.add(new Dt({style:Ot(_,{text:B,x:$,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:$,originY:Z,rotation:tt}))}if(m.get("show")&&N!==S){var k=m.get("distance");k=k?k+f:f;for(var pt=0;pt<=b;pt++){E=Math.cos(T),P=Math.sin(T);var St=new le({shape:{x1:E*(p-k)+h,y1:P*(p-k)+v,x2:E*(p-w-k)+h,y2:P*(p-w-k)+v},silent:!0,style:L});L.stroke==="auto"&&St.setStyle({stroke:i((N+pt/b)/S)}),c.add(St),T+=A}T-=A}else T+=C}},e.prototype._renderPointer=function(t,n,a,i,o,s,l,u,f){var c=this.group,h=this._data,v=this._progressEls,p=[],d=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(A,M){var L=m.getItemModel(A),I=L.getModel("pointer"),E=H(I.get("width"),o.r),P=H(I.get("length"),o.r),N=t.get(["pointer","icon"]),k=I.get("offsetCenter"),O=H(k[0],o.r),B=H(k[1],o.r),F=I.get("keepAspect"),$;return N?$=Qt(N,O-E/2,B-P,E,P,null,F):$=new x$({shape:{angle:-Math.PI/2,width:E,r:P,x:O,y:B}}),$.rotation=-(M+Math.PI/2),$.x=o.cx,$.y=o.cy,$}function C(A,M){var L=g.get("roundCap"),I=L?Kf:ze,E=g.get("overlap"),P=E?g.get("width"):f/m.count(),N=E?o.r-P:o.r-(A+1)*P,k=E?o.r:o.r-A*P,O=new I({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:k}});return E&&(O.z2=b-m.get(_,A)%b),O}(y||d)&&(m.diff(h).add(function(A){var M=m.get(_,A);if(d){var L=T(A,s);Bt(L,{rotation:-((isNaN(+M)?w[0]:It(M,x,w,!0))+Math.PI/2)},t),c.add(L),m.setItemGraphicEl(A,L)}if(y){var I=C(A,s),E=g.get("clip");Bt(I,{shape:{endAngle:It(M,x,w,E)}},t),c.add(I),sd(t.seriesIndex,m.dataType,A,I),p[A]=I}}).update(function(A,M){var L=m.get(_,A);if(d){var I=h.getItemGraphicEl(M),E=I?I.rotation:s,P=T(A,E);P.rotation=E,Mt(P,{rotation:-((isNaN(+L)?w[0]:It(L,x,w,!0))+Math.PI/2)},t),c.add(P),m.setItemGraphicEl(A,P)}if(y){var N=v[M],k=N?N.shape.endAngle:s,O=C(A,k),B=g.get("clip");Mt(O,{shape:{endAngle:It(L,x,w,B)}},t),c.add(O),sd(t.seriesIndex,m.dataType,A,O),p[A]=O}}).execute(),m.each(function(A){var M=m.getItemModel(A),L=M.getModel("emphasis"),I=L.get("focus"),E=L.get("blurScope"),P=L.get("disabled");if(d){var N=m.getItemGraphicEl(A),k=m.getItemVisual(A,"style"),O=k.fill;if(N instanceof de){var B=N.style;N.useStyle(V({image:B.image,x:B.x,y:B.y,width:B.width,height:B.height},k))}else N.useStyle(k),N.type!=="pointer"&&N.setColor(O);N.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(It(m.get(_,A),x,[0,1],!0))),N.z2EmphasisLift=0,ve(N,M),$t(N,I,E,P)}if(y){var F=p[A];F.useStyle(m.getItemVisual(A,"style")),F.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,ve(F,M),$t(F,I,E,P)}}),this._progressEls=p)},e.prototype._renderAnchor=function(t,n){var a=t.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=Qt(s,n.cx-o/2+H(l[0],n.r),n.cy-o/2+H(l[1],n.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,n,a,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),c=+t.get("max"),h=new at,v=[],p=[],d=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){v[y]=new Dt({silent:!0}),p[y]=new Dt({silent:!0})}).update(function(y,m){v[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new at,b=i(It(_,[f,c],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+H(w[0],o.r),C=o.cy+H(w[1],o.r),A=v[y];A.attr({z2:g?0:2,style:Ot(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(A)}var M=m.getModel("detail");if(M.get("show")){var L=M.get("offsetCenter"),I=o.cx+H(L[0],o.r),E=o.cy+H(L[1],o.r),P=H(M.get("width"),o.r),N=H(M.get("height"),o.r),k=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,A=p[y],O=M.get("formatter");A.attr({z2:g?0:2,style:Ot(M,{x:I,y:E,text:Nu(_,O),width:isNaN(P)?null:P,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:k})}),KC(A,{normal:M},_,function(F){return Nu(F,O)}),d&&JC(A,y,l,t,{getFormattedLabel:function(F,$,Z,Q,tt,pt){return Nu(pt?pt.interpolatedValue:_,O)}}),S.add(A)}h.add(S)}),this.group.add(h),this._titleEls=v,this._detailEls=p},e.type="gauge",e}(Vt);const T$=w$;var C$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,n){return Uo(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,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:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Gt);const D$=C$;function A$(r){r.registerChartView(T$),r.registerSeriesModel(D$)}var M$=["itemStyle","opacity"],L$=function(r){R(e,r);function e(t,n){var a=r.call(this)||this,i=a,o=new Fe,s=new Dt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,n,!0),a}return e.prototype.updateData=function(t,n,a){var i=this,o=t.hostModel,s=t.getItemModel(n),l=t.getItemLayout(n),u=s.getModel("emphasis"),f=s.get(M$);f=f==null?1:f,a||Ir(i),i.useStyle(t.getItemVisual(n,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Bt(i,{style:{opacity:f}},o,n)):Mt(i,{style:{opacity:f},shape:{points:l.points}},o,n),ve(i,s),this._updateLabel(t,n),$t(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(n),u=t.getItemLayout(n),f=u.label,c=t.getItemVisual(n,"style"),h=c.fill;pe(o,ie(l),{labelFetcher:t.hostModel,labelDataIndex:n,defaultOpacity:c.opacity,defaultText:t.getName(n)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}}),a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:h,outsideFill:h});var v=f.linePoints;i.setShape({points:v}),a.textGuideLineConfig={anchor:v?new ut(v[0][0],v[0][1]):null},Mt(o,{style:{x:f.x,y:f.y}},s,n),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Iy(a,Ey(l),{stroke:h})},e}(Ge),I$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new L$(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);rl(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Vt);const E$=I$;var P$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(Y(this.getData,this),Y(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,n){return Uo(this,{coordDimensions:["value"],encodeDefaulter:ot(oy,this)})},e.prototype._defaultLabelLine=function(t){pi(t,"labelLine",["show"]);var n=t.labelLine,a=t.emphasis.labelLine;n.show=n.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var n=this.getData(),a=r.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return a.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const N$=P$;function R$(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function O$(r,e){for(var t=r.mapDimension("value"),n=r.mapArray(t,function(l){return l}),a=[],i=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return j(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?n[l]-n[u]:n[u]-n[l]}),a}function k$(r){var e=r.hostModel,t=e.get("orient");r.each(function(n){var a=r.getItemModel(n),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(n),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",c,h,v,p;if(f)o==="insideLeft"?(h=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,c="left"):o==="insideRight"?(h=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,c="right"):(h=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,c="center"),p=[[h,v],[h,v]];else{var d=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=d-_,h=y-5,c="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=d+_,h=y+5,c="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,v=m-5,c="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,v=m+5,c="center"):o==="rightTop"?(d=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,c="center"):(y=d+_,h=y+5,c="top")):o==="rightBottom"?(d=u[2][0],g=u[2][1],t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=d+_,h=y+5,c="bottom")):o==="leftTop"?(d=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-_,v=m-5,c="center"):(y=d-_,h=y-5,c="right")):o==="leftBottom"?(d=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=d-_,h=y-5,c="right")):(d=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+_,v=m+5,c="center"):(y=d+_,h=y+5,c="left")),t==="horizontal"?(y=d,h=y):(m=g,v=m),p=[[d,g],[y,m]]}l.label={linePoints:p,x:h,y:v,verticalAlign:"middle",textAlign:c,inside:f}})}function V$(r,e){r.eachSeriesByType("funnel",function(t){var n=t.getData(),a=n.mapDimension("value"),i=t.get("sort"),o=R$(t,e),s=t.get("orient"),l=o.width,u=o.height,f=O$(n,i),c=o.x,h=o.y,v=s==="horizontal"?[H(t.get("minSize"),u),H(t.get("maxSize"),u)]:[H(t.get("minSize"),l),H(t.get("maxSize"),l)],p=n.getDataExtent(a),d=t.get("min"),g=t.get("max");d==null&&(d=Math.min(p[0],0)),g==null&&(g=p[1]);var y=t.get("funnelAlign"),m=t.get("gap"),_=s==="horizontal"?l:u,S=(_-m*(n.count()-1))/n.count(),b=function(E,P){if(s==="horizontal"){var N=n.get(a,E)||0,k=It(N,[d,g],v,!0),O=void 0;switch(y){case"top":O=h;break;case"center":O=h+(u-k)/2;break;case"bottom":O=h+(u-k);break}return[[P,O],[P,O+k]]}var B=n.get(a,E)||0,F=It(B,[d,g],v,!0),$;switch(y){case"left":$=c;break;case"center":$=c+(l-F)/2;break;case"right":$=c+l-F;break}return[[$,P],[$+F,P]]};i==="ascending"&&(S=-S,m=-m,s==="horizontal"?c+=l:h+=u,f=f.reverse());for(var x=0;x<f.length;x++){var w=f[x],T=f[x+1],C=n.getItemModel(w);if(s==="horizontal"){var A=C.get(["itemStyle","width"]);A==null?A=S:(A=H(A,l),i==="ascending"&&(A=-A));var M=b(w,c),L=b(T,c+A);c+=A+m,n.setItemLayout(w,{points:M.concat(L.slice().reverse())})}else{var I=C.get(["itemStyle","height"]);I==null?I=S:(I=H(I,u),i==="ascending"&&(I=-I));var M=b(w,h),L=b(T,h+I);h+=I+m,n.setItemLayout(w,{points:M.concat(L.slice().reverse())})}}k$(n)})}function B$(r){r.registerChartView(E$),r.registerSeriesModel(N$),r.registerLayout(V$),r.registerProcessor(Vl("funnel"))}var z$=.3,G$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new at,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,c=dx(t);s.diff(l).add(h).update(v).remove(p).execute();function h(g){var y=px(s,o,g,f,u);Jv(y,s,g,c)}function v(g,y){var m=l.getItemGraphicEl(y),_=AL(s,g,f,u);s.setItemGraphicEl(g,m),Mt(m,{shape:{points:_}},t,g),Ir(m),Jv(m,s,g,c)}function p(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var d=F$(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,n,a){for(var i=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=dx(n),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var c=px(i,this._dataGroup,f,s,o);c.incremental=!0,Jv(c,i,f,l),u.push(c)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Vt);function F$(r,e,t){var n=r.model,a=r.getRect(),i=new Tt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=n.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Bt(i,{shape:{width:a.width,height:a.height}},e,t),i}function AL(r,e,t,n){for(var a=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);H$(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function px(r,e,t,n,a){var i=AL(r,t,n,a),o=new Fe({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function dx(r){var e=r.get("smooth",!0);return e===!0&&(e=z$),e=Sn(e),vi(e)&&(e=0),{smooth:e}}function Jv(r,e,t,n){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",n.smooth);var a=e.getItemModel(t),i=a.getModel("emphasis");ve(r,a,"lineStyle"),$t(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function H$(r,e){return e==="category"?r==null:r==null||isNaN(r)}const $$=G$;var W$=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{useEncodeDefaulter:Y(U$,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var n=this.coordinateSystem,a=this.getData(),i=[];return n.eachActiveState(a,function(o,s){t===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Gt);function U$(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!!e){var t={};return D(e.dimensions,function(n){var a=Y$(n);t[n]=a}),t}}function Y$(r){return+r.replace("dim","")}const Z$=W$;var X$=["lineStyle","opacity"],q$={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,n={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,i){t.eachActiveState(i,function(o,s){var l=n[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(X$,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}};const j$=q$;function K$(r){J$(r),Q$(r)}function J$(r){if(!r.parallel){var e=!1;D(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function Q$(r){var e=Pt(r.parallelAxis);D(e,function(t){if(!!K(t)){var n=t.parallelIndex||0,a=Pt(r.parallel)[n];a&&a.parallelAxisDefault&&ct(t,a.parallelAxisDefault,!1)}})}var t4=5,e4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this._model=t,this._api=a,this._handlers||(this._handlers={},D(r4,function(i,o){a.getZr().on(o,this._handlers[o]=Y(i,this))},this)),$o(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){sl(this,"_throttledDispatchExpand"),D(this._handlers,function(a,i){n.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(V({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Wt),r4={mousedown:function(r){Qv(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(Qv(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>t4)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!Qv(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function Qv(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const n4=e4;var a4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var n=this.option;t&&ct(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var a=t.get("parallelIndex");return a!=null&&n.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){D(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],a=Et(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);D(a,function(i){t.push("dim"+i.get("dim")),n.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(xt);const i4=a4;var o4=function(r){R(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(Nr);const s4=o4;function Ei(r,e,t,n,a,i){r=r||0;var o=t[1]-t[0];if(a!=null&&(a=ji(a,[0,o])),i!=null&&(i=Math.max(i,a!=null?a:0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=ji(s,[0,o]),a=i=ji(s,[a,i]),n=0}e[0]=ji(e[0],t),e[1]=ji(e[1],t);var l=tp(e,n);e[n]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[n]=ji(e[n],f);var c;return c=tp(e,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(e[1-n]=e[n]+l.sign*a),c=tp(e,n),i!=null&&c.span>i&&(e[1-n]=e[n]+c.sign*i),e}function tp(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function ji(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var ep=D,ML=Math.min,LL=Math.max,gx=Math.floor,l4=Math.ceil,yx=Yt,u4=Math.PI,f4=function(){function r(e,t,n){this.type="parallel",this._axesMap=X(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=e.dimensions,i=e.parallelAxisIndex;ep(a,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new s4(o,Jc(u),[0,0],u.get("type"),l)),c=f.type==="category";f.onBand=c&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,a=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=n&&o<=n+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(!!e.contains(n,t)){var a=n.getData();ep(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),bo(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=re(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=Ru(e.get("axisExpandWidth"),l),c=Ru(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>c&&c>1&&f>0&&s>0,v=e.get("axisExpandWindow"),p;if(v)p=Ru(v[1]-v[0],l),v[1]=v[0]+p;else{p=Ru(f*(c-1),l);var d=e.get("axisExpandCenter")||gx(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-c);g<3&&(g=0);var y=[gx(yx(v[0]/f,1))+1,l4(yx(v[1]/f,1))-1],m=g/f*v[0];return{layout:i,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[a[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ep(n,function(o,s){var l=(a.axisExpandable?h4:c4)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:u4/2,vertical:0},c=[u[i].x+e.x,u[i].y+e.y],h=f[i],v=cr();Ci(v,v,h),jr(v,v,c),this._axesLayout[o]={position:c,rotation:h,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,n,a){n==null&&(n=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];D(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<a;f++){var c=void 0;if(!u)c="normal";else{c="active";for(var h=e.getValues(s,f),v=0,p=o.length;v<p;v++){var d=l[v].getActiveState(h[v]);if(d==="inactive"){c="inactive";break}}}t(c,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,a=0,i=e.length;a<i;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return Ar([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return nt(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,a=t.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=c[0]!=null;if(f)h&&f&&s<i*c[0]?(u="jump",l=s-i*c[2]):h&&f&&s>i*(1-c[0])?(u="jump",l=s-i*(1-c[2])):(l=s-i*c[1])>=0&&(l=s-i*(1-c[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Ei(l,a,o,"all"):u="none";else{var v=a[1]-a[0],p=o[1]*s/v;a=[LL(0,p-v/2)],a[1]=ML(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r}();function Ru(r,e){return ML(LL(r,e[0]),e[1])}function c4(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function h4(r,e){var t=e.layoutLength,n=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(a-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const v4=f4;function p4(r,e){var t=[];return r.eachComponent("parallel",function(n,a){var i=new v4(n,r,e);i.name="parallel_"+a,i.resize(n,e),n.coordinateSystem=i,i.model=n,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var a=n.getReferringComponents("parallel",Jt).models[0];n.coordinateSystem=a.coordinateSystem}}),t}var d4={create:p4};const g4=d4;var IL=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return gi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=nt(t);if(n)for(var a=n.length-1;a>=0;a--)sr(n[a])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var a=n[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var i=0,o=n.length;i<o;i++)if(n[i][0]<=t&&t<=n[i][1])return"active";return"inactive"},e}(xt);te(IL,Nl);const mx=IL;var _i=!0,ml=Math.min,Co=Math.max,y4=Math.pow,m4=1e4,_4=6,S4=6,_x="globalPan",x4={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},b4={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Sx={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},w4=0,T4=function(r){R(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!=="production"&&J(t),n._zr=t,n.group=new at,n._uid="brushController_"+w4++,D(E4,function(a,i){this._handlers[i]=Y(a,this)},n),n}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&J(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||RF(n,_x,this._uid),D(this._handlers,function(a,i){n.on(i,a)}),this._brushType=t.brushType,this._brushOption=ct(nt(Sx),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;OF(t,_x,this._uid),D(this._handlers,function(n,a){t.off(a,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};D(t,function(a){n[a.panelId]=nt(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&J(this._mounted),t=G(t,function(h){return ct(nt(Sx),h,!0)});var n="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Tn(a,t,u,l).add(f).update(f).remove(c).execute(),this;function l(h,v){return(h.id!=null?h.id:n+v)+"-"+h.brushType}function u(h,v){return l(h.__brushOption,v)}function f(h,v){var p=t[h];if(v!=null&&a[v]===s)i[h]=a[v];else{var d=i[h]=v!=null?(a[v].__brushOption=p,a[v]):PL(o,EL(o,p));Qy(o,d)}}function c(h){a[h]!==s&&o.group.remove(a[h])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Kd(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(pr);function EL(r,e){var t=ih[e.brushType].createCover(r,e);return t.__brushOption=e,RL(t,e),r.group.add(t),t}function PL(r,e){var t=tm(e);return t.endCreating&&(t.endCreating(r,e),RL(e,e.__brushOption)),e}function NL(r,e){var t=e.__brushOption;tm(e).updateCoverShape(r,e,t.range,t)}function RL(r,e){var t=e.z;t==null&&(t=m4),r.traverse(function(n){n.z=t,n.z2=t})}function Qy(r,e){tm(e).updateCommon(r,e),NL(r,e)}function tm(r){return ih[r.__brushOption.brushType]}function em(r,e,t){var n=r._panels;if(!n)return _i;var a,i=r._transform;return D(n,function(o){o.isTargetByCursor(e,t,i)&&(a=o)}),a}function OL(r,e){var t=r._panels;if(!t)return _i;var n=e.__brushOption.panelId;return n!=null?t[n]:_i}function Kd(r){var e=r._covers,t=e.length;return D(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function Si(r,e){var t=G(r._covers,function(n){var a=n.__brushOption,i=nt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function C4(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],a=t[0]-n[0],i=t[1]-n[1],o=y4(a*a+i*i,.5);return o>_4}function kL(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function VL(r,e,t,n){var a=new at;return a.add(new Tt({name:"main",style:rm(t),silent:!0,draggable:!0,cursor:"move",drift:ot(xx,r,e,a,["n","s","w","e"]),ondragend:ot(Si,e,{isEnd:!0})})),D(n,function(i){a.add(new Tt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ot(xx,r,e,a,i),ondragend:ot(Si,e,{isEnd:!0})}))}),a}function BL(r,e,t,n){var a=n.brushStyle.lineWidth||0,i=Co(a,S4),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],c=t[1][1],h=f-i+a/2,v=c-i+a/2,p=f-o,d=c-s,g=p+a,y=d+a;sn(r,e,"main",o,s,p,d),n.transformable&&(sn(r,e,"w",l,u,i,y),sn(r,e,"e",h,u,i,y),sn(r,e,"n",l,u,g,i),sn(r,e,"s",l,v,g,i),sn(r,e,"nw",l,u,i,i),sn(r,e,"ne",h,u,i,i),sn(r,e,"sw",l,v,i,i),sn(r,e,"se",h,v,i,i))}function Jd(r,e){var t=e.__brushOption,n=t.transformable,a=e.childAt(0);a.useStyle(rm(t)),a.attr({silent:!n,cursor:n?"move":"default"}),D([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Qd(r,i[0]):A4(r,i);o&&o.attr({silent:!n,invisible:!n,cursor:n?b4[s]+"-resize":null})})}function sn(r,e,t,n,a,i,o){var s=e.childOfName(t);s&&s.setShape(L4(nm(r,e,[[n,a],[n+i,a+o]])))}function rm(r){return et({strokeNoScale:!0},r.brushStyle)}function zL(r,e,t,n){var a=[ml(r,t),ml(e,n)],i=[Co(r,t),Co(e,n)];return[[a[0],i[0]],[a[1],i[1]]]}function D4(r){return li(r.group)}function Qd(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},a=Vc(t[e],D4(r));return n[a]}function A4(r,e){var t=[Qd(r,e[0]),Qd(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function xx(r,e,t,n,a,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=GL(e,a,i);D(n,function(u){var f=x4[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(zL(s[0][0],s[1][0],s[0][1],s[1][1])),Qy(e,t),Si(e,{isEnd:!1})}function M4(r,e,t,n){var a=e.__brushOption.range,i=GL(r,t,n);D(a,function(o){o[0]+=i[0],o[1]+=i[1]}),Qy(r,e),Si(r,{isEnd:!1})}function GL(r,e,t){var n=r.group,a=n.transformCoordToLocal(e,t),i=n.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function nm(r,e,t){var n=OL(r,e);return n&&n!==_i?n.clipPath(t,r._transform):nt(t)}function L4(r){var e=ml(r[0][0],r[1][0]),t=ml(r[0][1],r[1][1]),n=Co(r[0][0],r[1][0]),a=Co(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:a-t}}function I4(r,e,t){if(!(!r._brushType||P4(r,e.offsetX,e.offsetY))){var n=r._zr,a=r._covers,i=em(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===_i||s.panelId===i.panelId)&&ih[s.brushType].contain(a[o],t[0],t[1]))return}i&&n.setCursorStyle("crosshair")}}function tg(r){var e=r.event;e.preventDefault&&e.preventDefault()}function eg(r,e,t){return r.childOfName("main").contain(e,t)}function FL(r,e,t,n){var a=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),C4(r)||a){if(i&&!a){o.brushMode==="single"&&Kd(r);var l=nt(o);l.brushType=bx(l.brushType,i),l.panelId=i===_i?null:i.panelId,a=r._creatingCover=EL(r,l),r._covers.push(a)}if(a){var u=ih[bx(r._brushType,i)],f=a.__brushOption;f.range=u.getCreatingRange(nm(r,a,r._track)),n&&(PL(r,a),u.updateCommon(r,a)),NL(r,a),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&em(r,e,t)&&Kd(r)&&(s={isEnd:n,removeOnClick:!0});return s}function bx(r,e){return r==="auto"?(process.env.NODE_ENV!=="production"&&J(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):r}var E4={mousedown:function(r){if(this._dragging)Tx(this,r);else if(!r.target||!r.target.draggable){tg(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=em(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(I4(this,r,n),this._dragging){tg(r);var a=FL(this,r,n,!1);a&&Si(this,a)}},mouseup:function(r){Tx(this,r)}};function Tx(r,e){if(r._dragging){tg(e);var t=e.offsetX,n=e.offsetY,a=r.group.transformCoordToLocal(t,n),i=FL(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&Si(r,i)}}function P4(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var ih={lineX:Cx(0),lineY:Cx(1),rect:{createCover:function(r,e){function t(n){return n}return VL({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=kL(r);return zL(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){BL(r,e,t,n)},updateCommon:Jd,contain:eg},polygon:{createCover:function(r,e){var t=new at;return t.add(new Fe({name:"main",style:rm(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new Ge({name:"main",draggable:!0,drift:ot(M4,r,e),ondragend:ot(Si,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:nm(r,e,t)})},updateCommon:Jd,contain:eg}};function Cx(r){return{createCover:function(e,t){return VL({toRectRange:function(n){var a=[n,[0,100]];return r&&a.reverse(),a},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=kL(e),n=ml(t[0][r],t[1][r]),a=Co(t[0][r],t[1][r]);return[n,a]},updateCoverShape:function(e,t,n,a){var i,o=OL(e,t);if(o!==_i&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,i];r&&l.reverse(),BL(e,t,l,a)},updateCommon:Jd,contain:eg}}const am=T4;function HL(r){return r=im(r),function(e){return ZC(e,r)}}function $L(r,e){return r=im(r),function(t){var n=e!=null?e:t,a=n?r.width:r.height,i=n?r.x:r.y;return[i,i+(a||0)]}}function WL(r,e,t){var n=im(r);return function(a,i){return n.contain(i[0],i[1])&&!eh(a,e,t)}}function im(r){return ht.create(r)}var N4=["axisLine","axisTickLabel","axisName"],R4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){r.prototype.init.apply(this,arguments),(this._brushController=new am(n.getZr())).on("brush",Y(this._onBrush,this))},e.prototype.render=function(t,n,a,i){if(!O4(t,n,i)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new at,this.group.add(this._axisGroup),!!t.get("show")){var s=V4(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,c=t.axis.dim,h=l.getAxisLayout(c),v=V({strokeContainThreshold:f},h),p=new Cn(t,v);D(N4,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,t,s,f,a),Al(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),c=ht.create({x:l[0],y:-o/2,width:u,height:o});c.x-=f,c.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:HL(c),isTargetByCursor:WL(c,s,i),getLinearBrushOtherExtent:$L(c,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(k4(a))},e.prototype._onBrush=function(t){var n=t.areas,a=this.axisModel,i=a.axis,o=G(n,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Wt);function O4(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function k4(r){var e=r.axis;return G(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function V4(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const B4=R4;var z4={type:"axisAreaSelect",event:"axisAreaSelected"};function G4(r){r.registerAction(z4,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var F4={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function UL(r){r.registerComponentView(n4),r.registerComponentModel(i4),r.registerCoordinateSystem("parallel",g4),r.registerPreprocessor(K$),r.registerComponentModel(mx),r.registerComponentView(B4),To(r,"parallel",mx,F4),G4(r)}function H4(r){yt(UL),r.registerChartView($$),r.registerSeriesModel(Z$),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,j$)}var $4=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}(),W4=function(r){R(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $4},e.prototype.buildPath=function(t,n){var a=n.extent;t.moveTo(n.x1,n.y1),t.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(t.lineTo(n.x2+a,n.y2),t.bezierCurveTo(n.cpx2+a,n.cpy2,n.cpx1+a,n.cpy1,n.x1+a,n.y1)):(t.lineTo(n.x2,n.y2+a),t.bezierCurveTo(n.cpx2,n.cpy2+a,n.cpx1,n.cpy1+a,n.x1,n.y1+a)),t.closePath()},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e}(mt),U4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,n,a){var i=this,o=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,f=l.height,c=t.getData(),h=t.getData("edge"),v=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var d=new W4,g=it(d);g.dataIndex=p.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=p.node1.getLayout(),b=p.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=p.node2.getLayout(),C=p.node2.getModel(),A=C.get("localX"),M=C.get("localY"),L=p.getLayout(),I,E,P,N,k,O,B,F;d.shape.extent=Math.max(1,L.dy),d.shape.orient=v,v==="vertical"?(I=(x!=null?x*u:S.x)+L.sy,E=(w!=null?w*f:S.y)+S.dy,P=(A!=null?A*u:T.x)+L.ty,N=M!=null?M*f:T.y,k=I,O=E*(1-_)+N*_,B=P,F=E*_+N*(1-_)):(I=(x!=null?x*u:S.x)+S.dx,E=(w!=null?w*f:S.y)+L.sy,P=A!=null?A*u:T.x,N=(M!=null?M*f:T.y)+L.ty,k=I*(1-_)+P*_,O=E,B=I*_+P*(1-_),F=N),d.setShape({x1:I,y1:E,x2:P,y2:N,cpx1:k,cpy1:O,cpx2:B,cpy2:F}),d.useStyle(m.getItemStyle()),Dx(d.style,v,p);var $=""+y.get("value"),Z=ie(y,"edgeLabel");pe(d,Z,{labelFetcher:{getFormattedLabel:function(pt,St,dt,rt,gt,st){return t.getFormattedLabel(pt,St,"edge",rt,ur(gt,Z.normal&&Z.normal.get("formatter"),$),st)}},labelDataIndex:p.dataIndex,defaultText:$}),d.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");ve(d,y,"lineStyle",function(pt){var St=pt.getItemStyle();return Dx(St,v,p),St}),s.add(d),h.setItemGraphicEl(p.dataIndex,d);var tt=Q.get("focus");$t(d,tt==="adjacency"?p.getAdjacentDataIndices():tt==="trajectory"?p.getTrajectoryDataIndices():tt,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(p){var d=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=new Tt({shape:{x:y!=null?y*u:d.x,y:m!=null?m*f:d.y,width:d.dx,height:d.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});pe(S,ie(g),{labelFetcher:{getFormattedLabel:function(x,w){return t.getFormattedLabel(x,w,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),S.disableLabelAnimation=!0,S.setStyle("fill",p.getVisual("color")),S.setStyle("decal",p.getVisual("style").decal),ve(S,g),s.add(S),c.setItemGraphicEl(p.dataIndex,S),it(S).dataType="node";var b=_.get("focus");$t(S,b==="adjacency"?p.getAdjacentDataIndices():b==="trajectory"?p.getTrajectoryDataIndices():b,_.get("blurScope"),_.get("disabled"))}),c.eachItemGraphicEl(function(p,d){var g=c.getItemModel(d);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:c.getRawIndex(d),localX:this.shape.x/u,localY:this.shape.y/f})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(Y4(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Vt);function Dx(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var n=t.node1.getVisual("color"),a=t.node2.getVisual("color");W(n)&&W(a)&&(r.fill=new Dl(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:n,offset:0},{color:a,offset:1}]))}}function Y4(r,e,t){var n=new Tt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Bt(n,{shape:{width:r.width+20}},e,t),n}const Z4=U4;var X4=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){var a=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new kt(o[l],this,n);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(i&&a){var u=DL(i,a,this,!0,f);return u.data}function f(c,h){c.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getData().getItemLayout(p);if(g){var y=g.depth,m=d.levelModels[y];m&&(v.parentModel=m)}return v}),h.wrapMethod("getItemModel",function(v,p){var d=v.parentModel,g=d.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,_=d.levelModels[m];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(t,n){var a=this.option.data||this.option.nodes,i=a[t];i.localX=n[0],i.localY=n[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,n,a){function i(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return oe("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),c=f.getLayout().value,h=this.getDataParams(t,a).data.name;return oe("nameValue",{name:h!=null?h+"":null,value:c,noValue:i(c)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,n){var a=r.prototype.getDataParams.call(this,t,n);if(a.value==null&&n==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Gt);const q4=X4;function j4(r,e){r.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),i=K4(t,e);t.layoutInfo=i;var o=i.width,s=i.height,l=t.getGraph(),u=l.nodes,f=l.edges;Q4(u);var c=Et(u,function(d){return d.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),v=t.get("orient"),p=t.get("nodeAlign");J4(u,f,n,a,o,s,h,v,p)})}function K4(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function J4(r,e,t,n,a,i,o,s,l){tW(r,e,t,a,i,s,l),aW(r,e,i,a,n,o,s),vW(r,s)}function Q4(r){D(r,function(e){var t=ea(e.outEdges,nc),n=ea(e.inEdges,nc),a=e.getValue()||0,i=Math.max(t,n,a);e.setLayout({value:i},!0)})}function tW(r,e,t,n,a,i,o){for(var s=[],l=[],u=[],f=[],c=0,h=0;h<e.length;h++)s[h]=1;for(var h=0;h<r.length;h++)l[h]=r[h].inEdges.length,l[h]===0&&u.push(r[h]);for(var v=-1;u.length;){for(var p=0;p<u.length;p++){var d=u[p],g=d.hostGraph.data.getRawDataItem(d.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>v&&(v=g.depth),d.setLayout({depth:y?g.depth:c},!0),i==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var m=0;m<d.outEdges.length;m++){var _=d.outEdges[m],S=e.indexOf(_);s[S]=0;var b=_.node2,x=r.indexOf(b);--l[x]===0&&f.indexOf(b)<0&&f.push(b)}}++c,u=f,f=[]}for(var h=0;h<s.length;h++)if(s[h]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>c-1?v:c-1;o&&o!=="left"&&eW(r,o,i,w);var T=i==="vertical"?(a-t)/w:(n-t)/w;nW(r,T,i)}function YL(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function eW(r,e,t,n){if(e==="right"){for(var a=[],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];a.indexOf(f.node1)<0&&a.push(f.node1)}}i=a,a=[],++o}D(r,function(c){YL(c)||c.setLayout({depth:Math.max(0,n-c.getLayout().skNodeHeight)},!0)})}else e==="justify"&&rW(r,n)}function rW(r,e){D(r,function(t){!YL(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function nW(r,e,t){D(r,function(n){var a=n.getLayout().depth*e;t==="vertical"?n.setLayout({y:a},!0):n.setLayout({x:a},!0)})}function aW(r,e,t,n,a,i,o){var s=iW(r,o);oW(s,e,t,n,a,o),rp(s,a,t,n,o);for(var l=1;i>0;i--)l*=.99,sW(s,l,o),rp(s,a,t,n,o),hW(s,l,o),rp(s,a,t,n,o)}function iW(r,e){var t=[],n=e==="vertical"?"y":"x",a=nd(r,function(i){return i.getLayout()[n]});return a.keys.sort(function(i,o){return i-o}),D(a.keys,function(i){t.push(a.buckets.get(i))}),t}function oW(r,e,t,n,a,i){var o=1/0;D(r,function(s){var l=s.length,u=0;D(s,function(c){u+=c.getLayout().value});var f=i==="vertical"?(n-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),D(r,function(s){D(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))})}),D(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function rp(r,e,t,n,a){var i=a==="vertical"?"x":"y";D(r,function(o){o.sort(function(d,g){return d.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,c=o.length,h=a==="vertical"?"dx":"dy",v=0;v<c;v++)l=o[v],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[h]+e;var p=a==="vertical"?n:t;if(u=f-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=c-2;v>=0;--v)l=o[v],u=l.getLayout()[i]+l.getLayout()[h]+e-f,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function sW(r,e,t){D(r.slice().reverse(),function(n){D(n,function(a){if(a.outEdges.length){var i=ea(a.outEdges,lW,t)/ea(a.outEdges,nc);if(isNaN(i)){var o=a.outEdges.length;i=o?ea(a.outEdges,uW,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-ua(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-ua(a,t))*e;a.setLayout({y:l},!0)}}})})}function lW(r,e){return ua(r.node2,e)*r.getValue()}function uW(r,e){return ua(r.node2,e)}function fW(r,e){return ua(r.node1,e)*r.getValue()}function cW(r,e){return ua(r.node1,e)}function ua(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function nc(r){return r.getValue()}function ea(r,e,t){for(var n=0,a=r.length,i=-1;++i<a;){var o=+e(r[i],t);isNaN(o)||(n+=o)}return n}function hW(r,e,t){D(r,function(n){D(n,function(a){if(a.inEdges.length){var i=ea(a.inEdges,fW,t)/ea(a.inEdges,nc);if(isNaN(i)){var o=a.inEdges.length;i=o?ea(a.inEdges,cW,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(i-ua(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-ua(a,t))*e;a.setLayout({y:l},!0)}}})})}function vW(r,e){var t=e==="vertical"?"x":"y";D(r,function(n){n.outEdges.sort(function(a,i){return a.node2.getLayout()[t]-i.node2.getLayout()[t]}),n.inEdges.sort(function(a,i){return a.node1.getLayout()[t]-i.node1.getLayout()[t]})}),D(r,function(n){var a=0,i=0;D(n.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),D(n.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function pW(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),n=t.nodes,a=t.edges;if(n.length){var i=1/0,o=-1/0;D(n,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),D(n,function(s){var l=new ce({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.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}))})}a.length&&D(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function dW(r){r.registerChartView(Z4),r.registerSeriesModel(q4),r.registerLayout(j4),r.registerVisual(pW),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){n.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var ZL=function(){function r(){}return r.prototype.getInitialData=function(e,t){var n,a=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",n=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",n=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,c=this._baseAxisDim=u[f],h=u[1-f],v=[a,i],p=v[f].get("type"),d=v[1-f].get("type"),g=e.data;if(g&&l){var y=[];D(g,function(S,b){var x;z(S)?(x=S.slice(),S.unshift(b)):z(S.value)?(x=V({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:c,type:Uf(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:Uf(d),dimsDef:m.slice()}];return Uo(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:ot(_D,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),XL=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Gt);te(XL,ZL,!0);const gW=XL;var yW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),c=Ax(f,i,u,l,!0);i.setItemGraphicEl(u,c),o.add(c)}}).update(function(u,f){var c=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(c);return}var h=i.getItemLayout(u);c?(Ir(c),qL(h,c,i,u)):c=Ax(h,i,u,l),o.add(c),i.setItemGraphicEl(u,c)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var n=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&n.remove(i)})},e.type="boxplot",e}(Vt),mW=function(){function r(){}return r}(),_W=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="boxplotBoxPath",n}return e.prototype.getDefaultShape=function(){return new mW},e.prototype.buildPath=function(t,n){var a=n.points,i=0;for(t.moveTo(a[i][0],a[i][1]),i++;i<4;i++)t.lineTo(a[i][0],a[i][1]);for(t.closePath();i<a.length;i++)t.moveTo(a[i][0],a[i][1]),i++,t.lineTo(a[i][0],a[i][1])},e}(mt);function Ax(r,e,t,n,a){var i=r.ends,o=new _W({shape:{points:a?SW(i,n,r):i}});return qL(r,o,e,t,a),o}function qL(r,e,t,n,a){var i=t.hostModel,o=Ll[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,n),e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(n),l=s.getModel("emphasis");ve(e,s),$t(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function SW(r,e,t){return G(r,function(n){return n=n.slice(),n[e]=t.initBaseline,n})}const xW=yW;var qs=D;function bW(r){var e=wW(r);qs(e,function(t){var n=t.seriesModels;!n.length||(TW(t),qs(n,function(a,i){CW(a,t.boxOffsetList[i],t.boxWidthList[i])}))})}function wW(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(n){var a=n.getBaseAxis(),i=vt(t,a);i<0&&(i=t.length,t[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(n)}),e}function TW(r){var e=r.axis,t=r.seriesModels,n=t.length,a=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;qs(t,function(p){l=Math.max(l,p.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}qs(t,function(p){var d=p.get("boxWidth");z(d)||(d=[d,d]),o.push([H(d[0],s)||0,H(d[1],s)||0])});var f=s*.8-2,c=f/n*.3,h=(f-c*(n-1))/n,v=h/2-f/2;qs(t,function(p,d){i.push(v),v+=c+h,a.push(Math.min(Math.max(h,o[d][0]),o[d][1]))})}function CW(r,e,t){var n=r.coordinateSystem,a=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var c=0;c<a.count();c++){var h=a.get(u,c),v=_(h,f[2],c),p=_(h,f[0],c),d=_(h,f[1],c),g=_(h,f[3],c),y=_(h,f[4],c),m=[];S(m,d,!1),S(m,g,!0),m.push(p,d,y,g),b(m,p),b(m,y),b(m,v),a.setItemLayout(c,{initBaseline:v[s],ends:m})}function _(x,w,T){var C=a.get(w,T),A=[];A[o]=x,A[s]=C;var M;return isNaN(x)||isNaN(C)?M=[NaN,NaN]:(M=n.dataToPoint(A),M[o]+=e),M}function S(x,w,T){var C=w.slice(),A=w.slice();C[o]+=i,A[o]-=i,T?x.push(C,A):x.push(A,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}function DW(r,e){e=e||{};for(var t=[],n=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<r.length;o++){var s=sr(r[o].slice()),l=Ih(s,.25),u=Ih(s,.5),f=Ih(s,.75),c=s[0],h=s[s.length-1],v=(a==null?1.5:a)*(f-l),p=i?c:Math.max(c,l-v),d=i?h:Math.min(h,f+v),g=e.itemNameFormatter,y=j(g)?g({value:o}):W(g)?g.replace("{value}",o+""):o+"";t.push([y,p,l,u,f,d]);for(var m=0;m<s.length;m++){var _=s[m];if(_<p||_>d){var S=[y,_];n.push(S)}}}return{boxData:t,outliers:n}}var AW={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==xe){var n="";process.env.NODE_ENV!=="production"&&(n=Le("source data is not applicable for this boxplot transform. Expect number[][].")),Lt(n)}var a=DW(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function MW(r){r.registerSeriesModel(gW),r.registerChartView(xW),r.registerLayout(bW),r.registerTransform(AW)}var LW=["color","borderColor"],IW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,n,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,n,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,n):this._incrementalRenderNormal(t,n)},e.prototype.eachRendered=function(t){ha(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t){var n=t.getData(),a=this._data,i=this.group,o=n.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),n.diff(a).add(function(f){if(n.hasValue(f)){var c=n.getItemLayout(f);if(s&&Mx(u,c))return;var h=np(c,f,!0);Bt(h,{shape:{points:c.ends}},t,f),ap(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}}).update(function(f,c){var h=a.getItemGraphicEl(c);if(!n.hasValue(f)){i.remove(h);return}var v=n.getItemLayout(f);if(s&&Mx(u,v)){i.remove(h);return}h?(Mt(h,{shape:{points:v.ends}},t,f),Ir(h)):h=np(v),ap(h,n,f,o),i.add(h),n.setItemGraphicEl(f,h)}).remove(function(f){var c=a.getItemGraphicEl(f);c&&i.remove(c)}).execute(),this._data=n},e.prototype._renderLarge=function(t){this._clear(),Lx(t,this.group);var n=t.get("clip",!0)?th(t.coordinateSystem,!1,t):null;n?this.group.setClipPath(n):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,n){for(var a=n.getData(),i=a.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=a.getItemLayout(o),l=np(s);ap(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,n){Lx(n,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Vt),EW=function(){function r(){}return r}(),PW=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="normalCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new EW},e.prototype.buildPath=function(t,n){var a=n.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e}(mt);function np(r,e,t){var n=r.ends;return new PW({shape:{points:t?NW(n,r):n},z2:100})}function Mx(r,e){for(var t=!0,n=0;n<e.ends.length;n++)if(r.contain(e.ends[n][0],e.ends[n][1])){t=!1;break}return t}function ap(r,e,t,n){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=n,ve(r,a)}function NW(r,e){return G(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var RW=function(){function r(){}return r}(),ip=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeCandlestickBox",n}return e.prototype.getDefaultShape=function(){return new RW},e.prototype.buildPath=function(t,n){for(var a=n.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];t.moveTo(o,a[i++]),t.lineTo(o,a[i++])}else i+=3},e}(mt);function Lx(r,e,t,n){var a=r.getData(),i=a.getLayout("largePoints"),o=new ip({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new ip({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new ip({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),op(1,o,r),op(-1,s,r),op(0,l,r),n&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function op(r,e,t,n){var a=t.get(["itemStyle",r>0?"borderColor":"borderColor0"])||t.get(["itemStyle",r>0?"color":"color0"]);r===0&&(a=t.get(["itemStyle","borderColorDoji"]));var i=t.getModel("itemStyle").getItemStyle(LW);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const OW=IW;var jL=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,n,a){var i=n.getItemLayout(t);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Gt);te(jL,ZL,!0);const kW=jL;function VW(r){!r||!z(r.series)||D(r.series,function(e){K(e)&&e.type==="k"&&(e.type="candlestick")})}var BW=["itemStyle","borderColor"],zW=["itemStyle","borderColor0"],GW=["itemStyle","borderColorDoji"],FW=["itemStyle","color"],HW=["itemStyle","color0"],$W={seriesType:"candlestick",plan:Ho(),performRawSeries:!0,reset:function(r,e){function t(i,o){return o.get(i>0?FW:HW)}function n(i,o){return o.get(i===0?GW:i>0?BW:zW)}if(!e.isSeriesFiltered(r)){var a=r.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,f=l.getItemStyle();f.fill=t(u,l),f.stroke=n(u,l)||f.fill;var c=o.ensureUniqueItemVisual(s,"style");V(c,f)}}}}}};const WW=$W;var UW={seriesType:"candlestick",plan:Ho(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),n=YW(r,t),a=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=G(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],c=l[2],h=l[3];if(t.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?p:v};function v(d,g){for(var y,m=g.getStore();(y=d.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(c,y),w=m.get(h,y),T=Math.min(S,b),C=Math.max(S,b),A=k(T,_),M=k(C,_),L=k(x,_),I=k(w,_),E=[];O(E,M,0),O(E,A,1),E.push(F(I),F(M),F(L),F(A));var P=g.getItemModel(y),N=!!P.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Ix(m,y,S,b,f,N),initBaseline:S>b?M[i]:A[i],ends:E,brushRect:B(x,w,_)})}function k($,Z){var Q=[];return Q[a]=Z,Q[i]=$,isNaN(Z)||isNaN($)?[NaN,NaN]:e.dataToPoint(Q)}function O($,Z,Q){var tt=Z.slice(),pt=Z.slice();tt[a]=rf(tt[a]+n/2,1,!1),pt[a]=rf(pt[a]-n/2,1,!0),Q?$.push(tt,pt):$.push(pt,tt)}function B($,Z,Q){var tt=k($,Q),pt=k(Z,Q);return tt[a]-=n/2,pt[a]-=n/2,{x:tt[0],y:tt[1],width:n,height:pt[1]-tt[1]}}function F($){return $[a]=rf($[a],1),$}}function p(d,g){for(var y=Yr(d.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=d.next())!=null;){var C=w.get(s,x),A=w.get(u,x),M=w.get(f,x),L=w.get(c,x),I=w.get(h,x);if(isNaN(C)||isNaN(L)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=Ix(w,x,A,M,f,T),S[a]=C,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Ix(r,e,t,n,a,i){var o;return t>n?o=-1:t<n?o=1:o=i?0:e>0?r.get(a,e-1)<=n?1:-1:1,o}function YW(r,e){var t=r.getBaseAxis(),n,a=t.type==="category"?t.getBandWidth():(n=t.getExtent(),Math.abs(n[1]-n[0])/e.count()),i=H(ft(r.get("barMaxWidth"),a),a),o=H(ft(r.get("barMinWidth"),1),a),s=r.get("barWidth");return s!=null?H(s,a):Math.max(Math.min(a/2,i),o)}const ZW=UW;function XW(r){r.registerChartView(OW),r.registerSeriesModel(kW),r.registerPreprocessor(VW),r.registerVisual(WW),r.registerLayout(ZW)}function Ex(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(n){n.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var qW=function(r){R(e,r);function e(t,n){var a=r.call(this)||this,i=new Rl(t,n),o=new at;return a.add(i),a.add(o),a.updateData(t,n),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var n=t.symbolType,a=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Qt(n,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}Ex(o,t)},e.prototype.updateEffectAnimation=function(t){for(var n=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(n[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}Ex(a,t)},e.prototype.highlight=function(){xn(this)},e.prototype.downplay=function(){bn(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,n){var a=this,i=t.hostModel;this.childAt(0).updateData(t,n);var o=this.childAt(1),s=t.getItemModel(n),l=t.getItemVisual(n,"symbol"),u=Wo(t.getItemVisual(n,"symbolSize")),f=t.getItemVisual(n,"style"),c=f&&f.fill,h=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",c)});var v=Ai(t.getItemVisual(n,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var p=t.getItemVisual(n,"symbolRotate");o.rotation=(p||0)*Math.PI/180||0;var d={};d.showEffectOn=i.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=n/t.count(),d.z=i.getShallow("z")||0,d.zlevel=i.getShallow("zlevel")||0,d.symbolType=l,d.color=c,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):g==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,$t(this,h.get("focus"),h.get("blurScope"),h.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(at);const jW=qW;var KW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Ol(jW)},e.prototype.render=function(t,n,a){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var n=t.coordinateSystem,a=n&&n.getArea&&n.getArea();return t.get("clip",!0)?a:null},e.prototype.updateTransform=function(t,n,a){var i=t.getData();this.group.dirty();var o=kl("").reset(t,n,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var n=t.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=D2(n.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,n){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Vt);const JW=KW;var QW=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,n,a){return a.point(n.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Gt);const tU=QW;function eU(r){r.registerChartView(JW),r.registerSeriesModel(tU),r.registerLayout(kl("effectScatter"))}var rU=function(r){R(e,r);function e(t,n,a){var i=r.call(this)||this;return i.add(i.createLine(t,n,a)),i._updateEffectSymbol(t,n),i}return e.prototype.createLine=function(t,n,a){return new Ky(t,n,a)},e.prototype._updateEffectSymbol=function(t,n){var a=t.getItemModel(n),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");z(o)||(o=[o,o]);var l=t.getItemVisual(n,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=Qt(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(t,i,n))},e.prototype._updateEffectAnimation=function(t,n,a){var i=this.childAt(1);if(!!i){var o=t.getItemLayout(a),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),f=n.get("constantSpeed"),c=Kt(n.get("delay"),function(v){return v/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var h=void 0;j(c)?h=c(a):h=c,i.__t>0&&(h=-s*i.__t),this._animateSymbol(i,s,h,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,n,a,i,o){if(n>0){t.__t=0;var s=this,l=t.animate("",i).when(o?n*2:n,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Wn(t.__p1,t.__cp1)+Wn(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,n){t.__p1=n[0],t.__p2=n[1],t.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},e.prototype.updateData=function(t,n,a){this.childAt(0).updateData(t,n,a),this._updateEffectSymbol(t,n)},e.prototype._updateSymbolPosition=function(t){var n=t.__p1,a=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=se,f=$p;s[0]=u(n[0],i[0],a[0],o),s[1]=u(n[1],i[1],a[1],o);var c=t.__t<1?f(n[0],i[0],a[0],o):f(a[0],i[0],n[0],1-o),h=t.__t<1?f(n[1],i[1],a[1],o):f(a[1],i[1],n[1],1-o);t.rotation=-Math.atan2(h,c)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.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)):t.__lastT===1?t.scaleY=2*Wn(n,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,n){this.childAt(0).updateLayout(t,n);var a=t.getItemModel(n).getModel("effect");this._updateEffectAnimation(t,a,n)},e}(at);const KL=rU;var nU=function(r){R(e,r);function e(t,n,a){var i=r.call(this)||this;return i._createPolyline(t,n,a),i}return e.prototype._createPolyline=function(t,n,a){var i=t.getItemLayout(n),o=new Fe({shape:{points:i}});this.add(o),this._updateCommonStl(t,n,a)},e.prototype.updateData=function(t,n,a){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(n)}};Mt(o,s,i,n),this._updateCommonStl(t,n,a)},e.prototype._updateCommonStl=function(t,n,a){var i=this.childAt(0),o=t.getItemModel(n),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var c=o.getModel("emphasis");s=c.getModel("lineStyle").getLineStyle(),f=c.get("disabled"),l=c.get("focus"),u=c.get("blurScope")}i.useStyle(t.getItemVisual(n,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var h=i.ensureState("emphasis");h.style=s,$t(this,l,u,f)},e.prototype.updateLayout=function(t,n){var a=this.childAt(0);a.setShape("points",t.getItemLayout(n))},e}(at);const JL=nU;var aU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,n,a){return new JL(t,n,a)},e.prototype._updateAnimationPoints=function(t,n){this._points=n;for(var a=[0],i=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];i+=Wn(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var n=t.__t<1?t.__t:2-t.__t,a=this._points,i=this._offsets,o=a.length;if(!!i){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>n);l++);l=Math.min(l-1,o-2)}var f=(n-i[l])/(i[l+1]-i[l]),c=a[l],h=a[l+1];t.x=c[0]*(1-f)+f*h[0],t.y=c[1]*(1-f)+f*h[1];var v=t.__t<1?h[0]-c[0]:c[0]-h[0],p=t.__t<1?h[1]-c[1]:c[1]-h[1];t.rotation=-Math.atan2(p,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,t.ignore=!1}},e}(KL);const iU=aU;var oU=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),sU=function(r){R(e,r);function e(t){var n=r.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new oU},e.prototype.buildPath=function(t,n){var a=n.segs,i=n.curveness,o;if(n.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],c=a[o++],h=a[o++];if(t.moveTo(u,f),i>0){var v=(u+c)/2-(f-h)*i,p=(f+h)/2-(c-u)*i;t.quadraticCurveTo(v,p,c,h)}else t.lineTo(c,h)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,n){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var c=i[u++],h=i[u++],v=1;v<f;v++){var p=i[u++],d=i[u++];if(Hn(c,h,p,d,s,t,n))return l}l++}else for(var l=0,u=0;u<i.length;){var c=i[u++],h=i[u++],p=i[u++],d=i[u++];if(o>0){var g=(c+p)/2-(h-d)*o,y=(h+d)/2-(p-c)*o;if(oC(c,h,g,y,p,d,s,t,n))return l}else if(Hn(c,h,p,d,s,t,n))return l;l++}return-1},e.prototype.contain=function(t,n){var a=this.transformCoordToLocal(t,n),i=this.getBoundingRect();if(t=a[0],n=a[1],i.contain(t,n)){var o=this.hoverDataIdx=this.findDataIndex(t,n);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var n=this.shape,a=n.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],c=a[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(c,o),l=Math.max(c,l)}t=this._rect=new ht(i,o,s,l)}return t},e}(mt),lU=function(){function r(){this.group=new at}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],a=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new sU({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,n){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=it(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const uU=lU;var fU={seriesType:"lines",plan:Ho(),reset:function(r){var e=r.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&he("The lines series must have a coordinate system.");return}var t=r.get("polyline"),n=r.pipelineContext.large;return{progress:function(a,i){var o=[];if(n){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var c=0,h=[],f=a.start;f<a.end;f++){var v=r.getLineCoords(f,o);t&&(s[c++]=v);for(var p=0;p<v;p++)h=e.dataToPoint(o[p],!1,h),s[c++]=h[0],s[c++]=h[1]}i.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var d=i.getItemModel(f),v=r.getLineCoords(f,o),g=[];if(t)for(var y=0;y<v;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=d.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}};const QL=fU;var cU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.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(t)&&l>0&&(f?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var c=t.get("clip",!0)&&th(t.coordinateSystem,!1,t);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,n,a){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,n,a){this._lineDraw.incrementalUpdate(t,n.getData()),this._finished=t.end===n.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,n,a){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=QL.reset(t,n,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,n){var a=this._lineDraw,i=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&i&&l&&console.warn("Large lines not support effect"),(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new uU:new Jy(o?i?iU:JL:i?KL:Ky),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var n=t.getZr(),a=n.painter.getType()==="svg";!a&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.type="lines",e}(Vt);const hU=cU;var vU=typeof Uint32Array>"u"?Array:Uint32Array,pU=typeof Float64Array>"u"?Array:Float64Array;function Px(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),r.data=G(e,function(t){var n=[t[0].coord,t[1].coord],a={coords:n};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),Mg([a,t[0],t[1]])}))}var dU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],Px(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Px(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var n=this._processFlatCoordsArray(t.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=_f(this._flatCoords,n.flatCoords),this._flatCoordsOffset=_f(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),t.data=new Float32Array(n.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var n=this.getData().getItemModel(t),a=n.option instanceof Array?n.option:n.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(a instanceof Array&&a.length>0&&a[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(a)+". Lines must have 2d coords array in data item.");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,n){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[a+o*2],n[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),At(t[0])){for(var a=t.length,i=new vU(a),o=new pU(a),s=0,l=0,u=0,f=0;f<a;){u++;var c=t[f++];i[l++]=s+n,i[l++]=c;for(var h=0;h<c;h++){var v=t[f++],p=t[f++];if(o[s++]=v,o[s++]=p,f>a&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,n){if(process.env.NODE_ENV!=="production"){var a=Fo.get(t.coordinateSystem);if(!a)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var i=new Me(["value"],this);return i.hasItemOption=!1,i.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;i.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),i},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getItemModel(t),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),oe("nameValue",{name:f.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t==null?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t==null?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),n=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&n>0?n+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Gt);const gU=dU;function Ou(r){return r instanceof Array||(r=[r,r]),r}var yU={seriesType:"lines",reset:function(r){var e=Ou(r.get("symbol")),t=Ou(r.get("symbolSize")),n=r.getData();n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",t&&t[0]),n.setVisual("toSymbolSize",t&&t[1]);function a(i,o){var s=i.getItemModel(o),l=Ou(s.getShallow("symbol",!0)),u=Ou(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:n.hasItemOption?a:null}}};const mU=yU;function _U(r){r.registerChartView(hU),r.registerSeriesModel(gU),r.registerLayout(QL),r.registerVisual(mU)}var SU=256,xU=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=mn.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,n,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=e.length;c.width=t,c.height=n;for(var p=0;p<v;++p){var d=e[p],g=d[0],y=d[1],m=d[2],_=a(m);h.globalAlpha=_,h.drawImage(s,g-f,y-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,A=C-T;x<w;){var _=b[x+3]/256,M=Math.floor(_*(SU-1))*4;if(_>0){var L=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=L[M],b[x++]=L[M+1],b[x++]=L[M+2],b[x++]=L[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=mn.createCanvas()),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var a=e.getContext("2d");return a.clearRect(0,0,n,n),a.shadowOffsetX=n,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,a=n[t]||(n[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},r}();const bU=xU;function wU(r,e,t){var n=r[1]-r[0];e=G(e,function(o){return{interval:[(o.interval[0]-r[0])/n,(o.interval[1]-r[0])/n]}});var a=e.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&t[s]}}function TU(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(n){return n>=e[0]&&n<=e[1]}}function Nx(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var CU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i;if(n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),process.env.NODE_ENV!=="production"&&!i)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(t,a,0,t.getData().count()):Nx(o)&&this._renderOnGeo(o,t,i,a)},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,n,a,i){var o=n.coordinateSystem;o&&(Nx(o)?this.render(n,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){ha(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,n,a,i,o){var s=t.coordinateSystem,l=Li(s,"cartesian2d"),u,f,c,h;if(l){var v=s.getAxis("x"),p=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(v.type==="category"&&p.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(v.onBand&&p.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=v.getBandWidth()+.5,f=p.getBandWidth()+.5,c=v.scale.getExtent(),h=p.scale.getExtent()}for(var d=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),_=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=ie(t),x=t.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),C=x.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=a;M<i;M++){var L=void 0,I=g.getItemVisual(M,"style");if(l){var E=g.get(A[0],M),P=g.get(A[1],M);if(isNaN(g.get(A[2],M))||isNaN(E)||isNaN(P)||E<c[0]||E>c[1]||P<h[0]||P>h[1])continue;var N=s.dataToPoint([E,P]);L=new Tt({shape:{x:N[0]-u/2,y:N[1]-f/2,width:u,height:f},style:I})}else{if(isNaN(g.get(A[1],M)))continue;L=new Tt({z2:1,shape:s.dataToRect([g.get(A[0],M)]).contentShape,style:I})}if(g.hasItemOption){var k=g.getItemModel(M),O=k.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=k.getModel(["blur","itemStyle"]).getItemStyle(),_=k.getModel(["select","itemStyle"]).getItemStyle(),S=k.get(["itemStyle","borderRadius"]),w=O.get("focus"),T=O.get("blurScope"),C=O.get("disabled"),b=ie(k)}L.shape.r=S;var B=t.getRawValue(M),F="-";B&&B[2]!=null&&(F=B[2]+""),pe(L,b,{labelFetcher:t,labelDataIndex:M,defaultOpacity:I.opacity,defaultText:F}),L.ensureState("emphasis").style=y,L.ensureState("blur").style=m,L.ensureState("select").style=_,$t(L,w,T,C),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),d.add(L),g.setItemGraphicEl(M,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,n,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new bU;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var f=t.getViewRect().clone(),c=t.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),p=Math.min(f.width+f.x,i.getWidth()),d=Math.min(f.height+f.y,i.getHeight()),g=p-h,y=d-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var A=t.dataToPoint([w,T]);return A[0]-=h,A[1]-=v,A.push(C),A}),S=a.getExtent(),b=a.type==="visualMap.continuous"?TU(S,a.option.range):wU(S,a.getPieceList(),a.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new de({style:{width:g,height:y,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Vt);const DU=CU;var AU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,n){return Mn(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Fo.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Gt);const MU=AU;function LU(r){r.registerChartView(DU),r.registerSeriesModel(MU)}var IU=["itemStyle","borderWidth"],Rx=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],sp=new tn,EU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),c=l.master.getRect(),h={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:f,valueDim:Rx[+f],categoryDim:Rx[1-+f]};return o.diff(s).add(function(v){if(!!o.hasValue(v)){var p=kx(o,v),d=Ox(o,v,p,h),g=Vx(o,h,d);o.setItemGraphicEl(v,g),i.add(g),zx(g,h,d)}}).update(function(v,p){var d=s.getItemGraphicEl(p);if(!o.hasValue(v)){i.remove(d);return}var g=kx(o,v),y=Ox(o,v,g,h),m=iI(o,y);d&&m!==d.__pictorialShapeStr&&(i.remove(d),o.setItemGraphicEl(v,null),d=null),d?BU(d,h,y):d=Vx(o,h,y,!0),o.setItemGraphicEl(v,d),d.__pictorialSymbolMeta=y,i.add(d),zx(d,h,y)}).remove(function(v){var p=s.getItemGraphicEl(v);p&&Bx(s,v,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(t,n){var a=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){Bx(i,it(o).dataIndex,t,o)}):a.removeAll()},e.type="pictorialBar",e}(Vt);function Ox(r,e,t,n){var a=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,c=t.isAnimationEnabled(),h={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:c?t:null,hoverScale:c&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};PU(t,i,a,n,h),NU(r,e,a,i,o,h.boundingLength,h.pxSign,f,n,h),RU(t,h.symbolScale,u,n,h);var v=h.symbolSize,p=Ai(t.get("symbolOffset"),v);return OU(t,v,a,i,o,p,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,n,h),h}function PU(r,e,t,n,a){var i=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(z(o)){var c=[lp(s,o[0])-l,lp(s,o[1])-l];c[1]<c[0]&&c.reverse(),f=c[u]}else o!=null?f=lp(s,o)-l:e?f=n.coordSysExtent[i.index][u]-l:f=t[i.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[i.wh]),a.pxSign=f>0?1:-1}function lp(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function NU(r,e,t,n,a,i,o,s,l,u){var f=l.valueDim,c=l.categoryDim,h=Math.abs(t[c.wh]),v=r.getItemVisual(e,"symbolSize"),p;z(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[c.index]=H(p[c.index],h),p[f.index]=H(p[f.index],n?h:Math.abs(i)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function RU(r,e,t,n,a){var i=r.get(IU)||0;i&&(sp.attr({scaleX:e[0],scaleY:e[1],rotation:t}),sp.updateTransform(),i/=sp.getLineScale(),i*=e[n.valueDim.index]),a.valueLineWidth=i||0}function OU(r,e,t,n,a,i,o,s,l,u,f,c){var h=f.categoryDim,v=f.valueDim,p=c.pxSign,d=Math.max(e[v.index]+s,0),g=d;if(n){var y=Math.abs(l),m=Kt(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=H(m,e[v.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=Bg(n),T=w?n:Gx((y+x)/b),C=y-T*d;S=C/2/(_?T:Math.max(T-1,1)),b=d+S*2,x=_?0:S*2,!w&&n!=="fixed"&&(T=u?Gx((Math.abs(u)+x)/b):0),g=T*b-x,c.repeatTimes=T,c.symbolMargin=S}var A=p*(g/2),M=c.pathPosition=[];M[h.index]=t[h.wh]/2,M[v.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var L=c.bundlePosition=[];L[h.index]=t[h.xy],L[v.index]=t[v.xy];var I=c.barRectShape=V({},t);I[v.wh]=p*Math.max(Math.abs(t[v.wh]),Math.abs(M[v.index]+A)),I[h.wh]=t[h.wh];var E=c.clipShape={};E[h.xy]=-t[h.xy],E[h.wh]=f.ecSize[h.wh],E[v.xy]=0,E[v.wh]=t[v.wh]}function tI(r){var e=r.symbolPatternSize,t=Qt(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function eI(r,e,t,n){var a=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,c=i[e.valueDim.index]+o+t.symbolMargin*2;for(om(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?go(d,null,p(f),t,n):go(d,null,{scaleX:0,scaleY:0},t,n,function(){a.remove(d)}),f++});f<u;f++){var h=tI(t);h.__pictorialAnimationIndex=f,h.__pictorialRepeatTimes=u,a.add(h);var v=p(f);go(h,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,n)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=c*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function rI(r,e,t,n){var a=r.__pictorialBundle,i=r.__pictorialMainPath;i?go(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(i=r.__pictorialMainPath=tI(t),a.add(i),go(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function nI(r,e,t){var n=V({},e.barRectShape),a=r.__pictorialBarRect;a?go(a,null,{shape:n},e,t):(a=r.__pictorialBarRect=new Tt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function aI(r,e,t,n){if(t.symbolClip){var a=r.__pictorialClipPath,i=V({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Mt(a,{shape:i},s,l);else{i[o.wh]=0,a=new Tt({shape:i}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],Ll[n?"updateProps":"initProps"](a,{shape:u},s,l)}}}function kx(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=kU,t.isAnimationEnabled=VU,t}function kU(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function VU(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Vx(r,e,t,n){var a=new at,i=new at;return a.add(i),a.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?eI(a,e,t):rI(a,e,t),nI(a,t,n),aI(a,e,t,n),a.__pictorialShapeStr=iI(r,t),a.__pictorialSymbolMeta=t,a}function BU(r,e,t){var n=t.animationModel,a=t.dataIndex,i=r.__pictorialBundle;Mt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,a),t.symbolRepeat?eI(r,e,t,!0):rI(r,e,t,!0),nI(r,t,!0),aI(r,e,t,!0)}function Bx(r,e,t,n){var a=n.__pictorialBarRect;a&&a.removeTextContent();var i=[];om(n,function(o){i.push(o)}),n.__pictorialMainPath&&i.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),D(i,function(o){ia(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function iI(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function om(r,e,t){D(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function go(r,e,t,n,a,i){e&&r.attr(e),n.symbolClip&&!a?t&&r.attr(t):t&&Ll[a?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,i)}function zx(r,e,t){var n=t.dataIndex,a=t.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=i.get("focus"),c=i.get("blurScope"),h=i.get("scale");om(r,function(d){if(d instanceof de){var g=d.style;d.useStyle(V({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,h&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;pe(p,ie(a),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:wo(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),$t(r,f,c,i.get("disabled"))}function Gx(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const zU=EU;var GU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=va(jf.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(jf);const FU=GU;function HU(r){r.registerChartView(zU),r.registerSeriesModel(FU),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ot(GA,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,FA("pictorialBar"))}var $U=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,n,a){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,c=u.boundaryGap;s.x=0,s.y=f.y+c[0];function h(g){return g.name}var v=new Tn(this._layersSeries||[],l,h,h),p=[];v.add(Y(d,this,"add")).update(Y(d,this,"update")).remove(Y(d,this,"remove")).execute();function d(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),A=C.x,M=C.y0,L=C.y;S.push(A,M),b.push(A,M+L),x=i.getItemVisual(w[T],"style")}var I,E=i.getItemLayout(w[0]),P=t.getModel("label"),N=P.get("margin"),k=t.getModel("emphasis");if(g==="add"){var O=p[y]=new at;I=new LM({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(I),s.add(O),t.isAnimationEnabled()&&I.setClipPath(WU(I.getBoundingRect(),t,function(){I.removeClipPath()}))}else{var O=_[m];I=O.childAt(0),s.add(O),p[y]=O,Mt(I,{shape:{points:S,stackedOnPoints:b}},t),Ir(I)}pe(I,ie(t),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),I.setTextConfig({position:null,local:!0});var B=I.getTextContent();B&&(B.x=E.x-N,B.y=E.y0+E.y/2),I.useStyle(x),i.setItemGraphicEl(y,I),ve(I,t),$t(I,k.get("focus"),k.get("blurScope"),k.get("disabled"))}this._layersSeries=l,this._layers=p},e.type="themeRiver",e}(Vt);function WU(r,e,t){var n=new Tt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Bt(n,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),n}const UU=$U;var up=2,YU=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Bl(Y(this.getData,this),Y(this.getRawData,this))},e.prototype.fixData=function(t){var n=t.length,a={},i=nd(t,function(h){return a.hasOwnProperty(h[0]+"")||(a[h[0]+""]=-1),h[2]}),o=[];i.buckets.each(function(h,v){o.push({name:v,dataList:h})});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 c=o[l].dataList[f][0]+"";a[c]=l}for(var c in a)a.hasOwnProperty(c)&&a[c]!==l&&(a[c]=l,t[n]=[c,0,u],n++)}return t},e.prototype.getInitialData=function(t,n){for(var a=this.getReferringComponents("singleAxis",Jt).models[0],i=a.get("type"),o=Et(t.data,function(p){return p[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=X(),f=0,c=0;c<s.length;++c)l.push(s[c][up]),u.get(s[c][up])||(u.set(s[c][up],f),f++);var h=El(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Uf(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Me(h,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),n=t.count(),a=[],i=0;i<n;++i)a[i]=i;var o=t.mapDimension("single"),s=nd(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(c,h){return t.get(o,c)-t.get(o,h)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,n,a){z(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var c=Number.MAX_VALUE,h=-1,v=o[f].indices.length,p=0;p<v;++p){var d=i.get(t[0],o[f].indices[p]),g=Math.abs(d-n);g<=c&&(u=d,c=g,h=o[f].indices[p])}s.push(h)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return oe("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Gt);const ZU=YU;function XU(r,e){r.eachSeriesByType("themeRiver",function(t){var n=t.getData(),a=t.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=H(s[0],o.height),s[1]=H(s[1],o.height);var u=o.height-s[0]-s[1];Fx(n,t,u)}else{s[0]=H(s[0],o.width),s[1]=H(s[1],o.width);var f=o.width-s[0]-s[1];Fx(n,t,f)}n.setLayout("layoutInfo",i)})}function Fx(r,e,t){if(!!r.count())for(var n=e.coordinateSystem,a=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=G(a,function(g){return G(g.indices,function(y){var m=n.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=qU(s),u=l.y0,f=t/l.max,c=a.length,h=a[0].indices.length,v,p=0;p<h;++p){v=u[p]*f,r.setItemLayout(a[0].indices[p],{layerIndex:0,x:s[0][p][0],y0:v,y:s[0][p][1]*f});for(var d=1;d<c;++d)v+=s[d-1][p][1]*f,r.setItemLayout(a[d].indices[p],{layerIndex:d,x:s[d][p][0],y0:v,y:s[d][p][1]*f})}}function qU(r){for(var e=r.length,t=r[0].length,n=[],a=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),n.push(s)}for(var u=0;u<t;++u)a[u]=(i-n[u])/2;i=0;for(var f=0;f<t;++f){var c=n[f]+a[f];c>i&&(i=c)}return{y0:a,max:i}}function jU(r){r.registerChartView(UU),r.registerSeriesModel(ZU),r.registerLayout(XU),r.registerProcessor(Vl("themeRiver"))}var KU=2,JU=4,QU=function(r){R(e,r);function e(t,n,a,i){var o=r.call(this)||this;o.z2=KU,o.textConfig={inside:!0},it(o).seriesIndex=n.seriesIndex;var s=new Dt({z2:JU,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,n,a,i),o}return e.prototype.updateData=function(t,n,a,i,o){this.node=n,n.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;it(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),f=n.getLayout(),c=V({},f);c.label=null;var h=n.getVisual("style");h.lineJoin="bevel";var v=n.getVisual("decal");v&&(h.decal=xo(v,o));var p=ri(l.getModel("itemStyle"),c,!0);V(c,p),D(Ie,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=ri(S,c);b&&(_.shape=b)}),t?(s.setShape(c),s.shape.r=f.r0,Bt(s,{shape:{r:f.r}},a,n.dataIndex)):(Mt(s,{shape:c},a),Ir(s)),s.useStyle(h),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?n.getAncestorsIndices():g==="descendant"?n.getDescendantIndices():g;$t(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var n=this,a=this.node.getModel(),i=a.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),c=this,h=c.getTextContent(),v=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,d=i.get("show")&&!(p!=null&&Math.abs(s)<p);h.ignore=!d,D(el,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),_=y==="normal",S=_?h:h.ensureState(y),b=t.getFormattedLabel(v,y);_&&(b=b||n.node.name),S.style=Ot(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?c:c.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var A,M=g(m,"distance")||0,L=g(m,"align");w==="outside"?(A=o.r+M,L=l>Math.PI/2?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,L="center"):L==="left"?(A=o.r0+M,l>Math.PI/2&&(L="right")):L==="right"&&(A=o.r-M,l>Math.PI/2&&(L="left")),S.style.align=L,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=A*u+o.cx,S.y=A*f+o.cy;var I=g(m,"rotate"),E=0;I==="radial"?(E=wr(-l),E>Math.PI/2&&E<Math.PI*1.5&&(E+=Math.PI)):I==="tangential"?(E=Math.PI/2-l,E>Math.PI/2?E-=Math.PI:E<-Math.PI/2&&(E+=Math.PI)):At(I)&&(E=I*Math.PI/180),S.rotation=wr(E)});function g(y,m){var _=y.get(m);return _==null?i.get(m):_}h.dirtyStyle()},e}(ze);const Hx=QU;var rg="sunburstRootToNode",$x="sunburstHighlight",t6="sunburstUnhighlight";function e6(r){r.registerAction({type:rg,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(a,i){var o=pl(e,[rg],a);if(o){var s=a.getViewRoot();s&&(e.direction=Uy(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:$x,update:"none"},function(e,t,n){e=V({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=pl(e,[$x],i);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&jt("sunburstHighlight","highlight"),n.dispatchAction(V(e,{type:"highlight"}))}),r.registerAction({type:t6,update:"updateView"},function(e,t,n){e=V({},e),process.env.NODE_ENV!=="production"&&jt("sunburstUnhighlight","downplay"),n.dispatchAction(V(e,{type:"downplay"}))})}var r6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){var o=this;this.seriesModel=t,this.api=a,this.ecModel=n;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,c=t.get("renderLabelForZeroData"),h=[];u.eachNode(function(m){h.push(m)});var v=this._oldChildren||[];p(h,v),y(l,u),this._initEvents(),this._oldChildren=h;function p(m,_){if(m.length===0&&_.length===0)return;new Tn(_,m,S,S).add(b).update(b).remove(ot(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];d(T,C)}}function d(m,_){if(!c&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,n,a),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new Hx(m,t,n,a);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,t,n,a):(o.virtualPiece=new Hx(m,t,n,a),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)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(n){var a=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";Of(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:rg,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Vt);const n6=r6;var a6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,n){var a={name:t.name,children:t.data};oI(a);var i=this._levelModels=G(t.levels||[],function(l){return new kt(l,this,n)},this),o=Wy.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var c=o.getNodeByDataIndex(f),h=i[c.depth];return h&&(u.parentModel=h),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var n=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=nh(a,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var n=this.getRawData().tree.root;(!t||t!==n&&!n.contains(t))&&(this._viewRoot=n)},e.prototype.enableAriaDecal=function(){fL(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Gt);function oI(r){var e=0;D(r.children,function(n){oI(n);var a=n.value;z(a)&&(a=a[0]),e+=a});var t=r.value;z(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),z(r.value)?r.value[0]=t:r.value=t}const i6=a6;var Wx=Math.PI/180;function o6(r,e,t){e.eachSeriesByType(r,function(n){var a=n.get("center"),i=n.get("radius");z(i)||(i=[0,i]),z(a)||(a=[a,a]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=H(a[0],o),f=H(a[1],s),c=H(i[0],l/2),h=H(i[1],l/2),v=-n.get("startAngle")*Wx,p=n.get("minAngle")*Wx,d=n.getData().tree.root,g=n.getViewRoot(),y=g.depth,m=n.get("sort");m!=null&&sI(g,m);var _=0;D(g.children,function(N){!isNaN(N.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(h-c)/(w||1),C=n.get("clockwise"),A=n.get("stillShowZeroSum"),M=C?1:-1,L=function(N,k){if(!!N){var O=k;if(N!==d){var B=N.getValue(),F=S===0&&A?b:B*b;F<p&&(F=p),O=k+M*F;var $=N.depth-y-(x?-1:1),Z=c+T*$,Q=c+T*($+1),tt=n.getLevelModel(N);if(tt){var pt=tt.get("r0",!0),St=tt.get("r",!0),dt=tt.get("radius",!0);dt!=null&&(pt=dt[0],St=dt[1]),pt!=null&&(Z=H(pt,l/2)),St!=null&&(Q=H(St,l/2))}N.setLayout({angle:F,startAngle:k,endAngle:O,clockwise:C,cx:u,cy:f,r0:Z,r:Q})}if(N.children&&N.children.length){var rt=0;D(N.children,function(gt){rt+=L(gt,k+rt)})}return O-k}};if(x){var I=c,E=c+T,P=Math.PI*2;d.setLayout({angle:P,startAngle:v,endAngle:v+P,clockwise:C,cx:u,cy:f,r0:I,r:E})}L(g,v)})}function sI(r,e){var t=r.children||[];r.children=s6(t,e),t.length&&D(r.children,function(n){sI(n,e)})}function s6(r,e){if(j(e)){var t=G(r,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(a,i){return e(a.params,i.params)}),G(t,function(a){return r[a.index]})}else{var n=e==="asc";return r.sort(function(a,i){var o=(a.getValue()-i.getValue())*(n?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(n?-1:1):o})}}function l6(r){var e={};function t(n,a,i){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return n.depth>1&&W(s)&&(s=Yp(s,(n.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(n){var a=n.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,n,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");V(u,l)})})}function u6(r){r.registerChartView(n6),r.registerSeriesModel(i6),r.registerLayout(ot(o6,"sunburst")),r.registerProcessor(ot(Vl,"sunburst")),r.registerVisual(l6),e6(r)}var Ux={color:"fill",borderColor:"stroke"},f6={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},gn=Ct(),c6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,n){return Mn(null,this)},e.prototype.getDataParams=function(t,n,a){var i=r.prototype.getDataParams.call(this,t,n);return a&&(i.info=gn(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Gt);const h6=c6;function v6(r,e){return e=e||[0,0],G(["x","y"],function(t,n){var a=this.getAxis(t),i=e[n],o=r[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function p6(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(v6,r)}}}function d6(r,e){return e=e||[0,0],G([0,1],function(t){var n=e[t],a=r[t]/2,i=[],o=[];return i[t]=n-a,o[t]=n+a,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function g6(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Y(d6,r)}}}function y6(r,e){var t=this.getAxis(),n=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(n-a)-t.dataToCoord(n+a))}function m6(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Y(y6,r)}}}function _6(r,e){return e=e||[0,0],G(["Radius","Angle"],function(t,n){var a="get"+t+"Axis",i=this[a](),o=e[n],s=r[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function S6(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),n=e.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Y(_6,r)}}}function x6(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(n,a){return r.dataToPoint(n,a)}}}}var Yx={};function lI(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||U(r,"text")))}function uI(r,e,t){var n=r,a,i,o;if(e==="text")o=n;else{o={},U(n,"text")&&(o.text=n.text),U(n,"rich")&&(o.rich=n.rich),U(n,"textFill")&&(o.fill=n.textFill),U(n,"textStroke")&&(o.stroke=n.textStroke),U(n,"fontFamily")&&(o.fontFamily=n.fontFamily),U(n,"fontSize")&&(o.fontSize=n.fontSize),U(n,"fontStyle")&&(o.fontStyle=n.fontStyle),U(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=U(n,"textPosition");t?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),U(n,"textPosition")&&(a.position=n.textPosition),U(n,"textOffset")&&(a.offset=n.textOffset),U(n,"textRotation")&&(a.rotation=n.textRotation),U(n,"textDistance")&&(a.distance=n.textDistance)}return Zx(o,r),D(o.rich,function(l){Zx(l,l)}),{textConfig:a,textContent:i}}function Zx(r,e){!e||(e.font=e.textFont||e.font,U(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),U(e,"textAlign")&&(r.align=e.textAlign),U(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),U(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),U(e,"textWidth")&&(r.width=e.textWidth),U(e,"textHeight")&&(r.height=e.textHeight),U(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),U(e,"textPadding")&&(r.padding=e.textPadding),U(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),U(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),U(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),U(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),U(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),U(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),U(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Xx(r,e,t){var n=r;n.textPosition=n.textPosition||t.position||"inside",t.offset!=null&&(n.textOffset=t.offset),t.rotation!=null&&(n.textRotation=t.rotation),t.distance!=null&&(n.textDistance=t.distance);var a=n.textPosition.indexOf("inside")>=0,i=r.fill||"#000";qx(n,e);var o=n.textFill==null;return a?o&&(n.textFill=t.insideFill||"#fff",!n.textStroke&&t.insideStroke&&(n.textStroke=t.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=r.fill||t.outsideFill||"#000"),!n.textStroke&&t.outsideStroke&&(n.textStroke=t.outsideStroke)),n.text=e.text,n.rich=e.rich,D(e.rich,function(s){qx(s,s)}),n}function qx(r,e){!e||(U(e,"fill")&&(r.textFill=e.fill),U(e,"stroke")&&(r.textStroke=e.fill),U(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),U(e,"font")&&(r.font=e.font),U(e,"fontStyle")&&(r.fontStyle=e.fontStyle),U(e,"fontWeight")&&(r.fontWeight=e.fontWeight),U(e,"fontSize")&&(r.fontSize=e.fontSize),U(e,"fontFamily")&&(r.fontFamily=e.fontFamily),U(e,"align")&&(r.textAlign=e.align),U(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),U(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),U(e,"width")&&(r.textWidth=e.width),U(e,"height")&&(r.textHeight=e.height),U(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),U(e,"padding")&&(r.textPadding=e.padding),U(e,"borderColor")&&(r.textBorderColor=e.borderColor),U(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),U(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),U(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),U(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),U(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),U(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),U(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),U(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),U(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),U(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function jx(r,e){if(process.env.NODE_ENV!=="production"){var t=r+"^_^"+e;Yx[t]||(console.warn('[ECharts] DEPRECATED: "'+r+'" has been deprecated. '+e),Yx[t]=!0)}}var fI={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Kx=_t(fI),ac=qr(Kr,function(r,e){return r[e]=1,r},{}),Jx=Kr.join(", "),ic=["","style","shape","extra"],Do=Ct();function sm(r,e,t,n,a){var i=r+"Animation",o=No(r,n,a)||{},s=Do(e).userDuring;return o.duration>0&&(o.during=s?Y(D6,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),V(o,t[i]),o}function uf(r,e,t,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=Do(r),u=e.style;l.userDuring=e.during;var f={},c={};if(M6(r,e,c),tb("shape",e,c),tb("extra",e,c),!i&&s&&(A6(r,e,f),Qx("shape",r,e,f),Qx("extra",r,e,f),L6(r,e,u,f)),c.style=u,b6(r,c,o),T6(r,e),s)if(i){var h={};D(ic,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(h[p]=h[p]||{}),V(p?h[p]:h,d.enterFrom))});var v=sm("enter",r,e,t,a);v.duration>0&&r.animateFrom(h,v)}else w6(r,e,a||0,t,f);cI(r,e),u?r.dirty():r.markRedraw()}function cI(r,e){for(var t=Do(r).leaveToProps,n=0;n<ic.length;n++){var a=ic[n],i=a?e[a]:e;i&&i.leaveTo&&(t||(t=Do(r).leaveToProps={}),a&&(t[a]=t[a]||{}),V(a?t[a]:t,i.leaveTo))}}function oh(r,e,t,n){if(r){var a=r.parent,i=Do(r).leaveToProps;if(i){var o=sm("update",r,e,t,0);o.done=function(){a.remove(r),n&&n()},r.animateTo(i,o)}else a.remove(r),n&&n()}}function hi(r){return r==="all"}function b6(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var a=r.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function w6(r,e,t,n,a){if(a){var i=sm("update",r,e,n,t);i.duration>0&&r.animateFrom(a,i)}}function T6(r,e){U(e,"silent")&&(r.silent=e.silent),U(e,"ignore")&&(r.ignore=e.ignore),r instanceof hr&&U(e,"invisible")&&(r.invisible=e.invisible),r instanceof mt&&U(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var zr={},C6={setTransform:function(r,e){return process.env.NODE_ENV!=="production"&&J(U(ac,r),"Only "+Jx+" available in `setTransform`."),zr.el[r]=e,this},getTransform:function(r){return process.env.NODE_ENV!=="production"&&J(U(ac,r),"Only "+Jx+" available in `getTransform`."),zr.el[r]},setShape:function(r,e){process.env.NODE_ENV!=="production"&&Ki(r);var t=zr.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){process.env.NODE_ENV!=="production"&&Ki(r);var e=zr.el.shape;if(e)return e[r]},setStyle:function(r,e){process.env.NODE_ENV!=="production"&&Ki(r);var t=zr.el,n=t.style;return n&&(process.env.NODE_ENV!=="production"&&vi(e)&&Ft("style."+r+" must not be assigned with NaN."),n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){process.env.NODE_ENV!=="production"&&Ki(r);var e=zr.el.style;if(e)return e[r]},setExtra:function(r,e){process.env.NODE_ENV!=="production"&&Ki(r);var t=zr.el.extra||(zr.el.extra={});return t[r]=e,this},getExtra:function(r){process.env.NODE_ENV!=="production"&&Ki(r);var e=zr.el.extra;if(e)return e[r]}};function Ki(r){if(process.env.NODE_ENV!=="production"&&(r==="transition"||r==="enterFrom"||r==="leaveTo"))throw new Error('key must not be "'+r+'"')}function D6(){var r=this,e=r.el;if(!!e){var t=Do(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}zr.el=e,n(C6)}}function Qx(r,e,t,n){var a=t[r];if(!!a){var i=e[r],o;if(i){var s=t.transition,l=a.transition;if(l)if(!o&&(o=n[r]={}),hi(l))V(o,i);else for(var u=Pt(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(hi(s)||vt(s,r)>=0){!o&&(o=n[r]={});for(var v=_t(i),f=0;f<v.length;f++){var c=v[f],h=i[c];I6(a[c],h)&&(o[c]=h)}}}}}function tb(r,e,t){var n=e[r];if(!!n)for(var a=t[r]={},i=_t(n),o=0;o<i.length;o++){var s=i[o];a[s]=Vs(n[s])}}function A6(r,e,t){for(var n=e.transition,a=hi(n)?Kr:Pt(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];process.env.NODE_ENV!=="production"&&hI(o,"el.transition"),t[o]=s}}}function M6(r,e,t){for(var n=0;n<Kx.length;n++){var a=Kx[n],i=fI[a],o=e[a];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var n=0;n<Kr.length;n++){var s=Kr[n];e[s]!=null&&(t[s]=e[s])}}function L6(r,e,t,n){if(!!t){var a=r.style,i;if(a){var o=t.transition,s=e.transition;if(o&&!hi(o)){var l=Pt(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var f=l[u],c=a[f];i[f]=c}}else if(r.getAnimationStyleProps&&(hi(s)||hi(o)||vt(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=n.style={});for(var p=_t(t),u=0;u<p.length;u++){var f=p[u];if(v[f]){var c=a[f];i[f]=c}}}}}}}function I6(r,e){return Se(r)?r!==e:r!=null&&isFinite(r)}var hI;process.env.NODE_ENV!=="production"&&(hI=function(r,e){U(ac,r)||Ft("Prop `"+r+"` is not a permitted in `"+e+"`. Only `"+_t(ac).join("`, `")+"` are permitted.")});var vI=Ct(),E6=["percent","easing","shape","style","extra"];function pI(r){r.stopAnimation("keyframe"),r.attr(vI(r))}function oc(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(z(e)){D(e,function(s){oc(r,s,t)});return}var n=e.keyframes,a=e.duration;if(t&&a==null){var i=No("enter",t,0);a=i&&i.duration}if(!(!n||!a)){var o=vI(r);D(ic,function(s){if(!(s&&!r[s])){var l,u=!1;n.sort(function(f,c){return f.percent-c.percent}),D(n,function(f){var c=r.animators,h=s?f[s]:f;if(process.env.NODE_ENV!=="production"&&f.percent>=1&&(u=!0),!!h){var v=_t(h);if(s||(v=Et(v,function(g){return vt(E6,g)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var p=0;p<c.length;p++)c[p]!==l&&c[p].targetName===l.targetName&&c[p].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;D(v,function(g){d[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(a*f.percent,h,v,f.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Ft("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(a).start(e.easing))}})}}}var yn="emphasis",Kn="normal",lm="blur",um="select",fa=[Kn,yn,lm,um],fp={normal:["itemStyle"],emphasis:[yn,"itemStyle"],blur:[lm,"itemStyle"],select:[um,"itemStyle"]},cp={normal:["label"],emphasis:[yn,"label"],blur:[lm,"label"],select:[um,"label"]},P6=["x","y"],N6="e\0\0",Ke={normal:{},emphasis:{},blur:{},select:{}},eb={cartesian2d:p6,geo:g6,single:m6,polar:S6,calendar:x6};function sc(r){return r instanceof mt}function ng(r){return r instanceof hr}function R6(r,e){e.copyTransform(r),ng(e)&&ng(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,sc(e)&&sc(r)&&e.setShape(r.shape))}var O6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=rb(t,s,n,a);o||l.removeAll(),s.diff(o).add(function(c){hp(a,null,c,u(c,i),t,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&oh(h,gn(h).option,t)}).update(function(c,h){var v=o.getItemGraphicEl(h);hp(a,v,c,u(c,i),t,l,s)}).execute();var f=t.get("clip",!0)?th(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,n,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,n,a,i,o){var s=n.getData(),l=rb(n,s,a,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=t.start;c<t.end;c++){var h=hp(null,null,c,l(c,o),n,this.group,s);h&&(h.traverse(f),u.push(h))}},e.prototype.eachRendered=function(t){ha(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(Vt);const k6=O6;function fm(r){var e=r.type,t;if(e==="path"){var n=r.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=yI(n);t=kc(i,null,a,n.layout||"center"),gn(t).customPathData=i}else if(e==="image")t=new de({}),gn(t).customImagePath=r.style.image;else if(e==="text")t=new Dt({});else if(e==="group")t=new at;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Qg(e);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),Lt(s)}t=new o}return gn(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function cm(r,e,t,n,a,i,o){pI(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),n&&n.transition==null&&(n.transition=P6);var l=n&&n.style;if(l){if(e.type==="text"){var u=l;U(u,"textFill")&&(u.fill=u.textFill),U(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=sc(e)?l.decal:null;r&&c&&(c.dirty=!0,f=xo(c,r)),l.__decalPattern=f}if(ng(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}uf(e,n,i,{dataIndex:t,isInit:o,clearStyle:!0}),oc(e,n.keyframeAnimation,i)}function dI(r,e,t,n,a){var i=e.isGroup?null:e,o=a&&a[r].cfg;if(i){var s=i.ensureState(r);if(n===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),yi(i)}}function V6(r,e,t){if(!r.isGroup){var n=r,a=t.currentZ,i=t.currentZLevel;n.z=a,n.zlevel=i;var o=e.z2;o!=null&&(n.z2=o||0);for(var s=0;s<fa.length;s++)B6(n,e,fa[s])}}function B6(r,e,t){var n=t===Kn,a=n?e:lc(e,t),i=a?a.z2:null,o;i!=null&&(o=n?r:r.ensureState(t),o.z2=i||0)}function rb(r,e,t,n){var a=r.get("renderItem"),i=r.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(J(a,"series.render is required."),J(i.prepareCustoms||eb[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):eb[i.type](i));for(var s=et({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:x,ordinalRawValue:b,styleEmphasis:w,visual:A,barLayout:M,currentSeriesIndices:L,font:I},o.api||{}),l={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:z6(r.getData())},u,f,c={},h={},v={},p={},d=0;d<fa.length;d++){var g=fa[d];v[g]=r.getModel(fp[g]),p[g]=r.getModel(cp[g])}function y(E){return E===u?f||(f=e.getItemModel(E)):e.getItemModel(E)}function m(E,P){return e.hasItemOption?E===u?c[P]||(c[P]=y(E).getModel(fp[P])):y(E).getModel(fp[P]):v[P]}function _(E,P){return e.hasItemOption?E===u?h[P]||(h[P]=y(E).getModel(cp[P])):y(E).getModel(cp[P]):p[P]}return function(E,P){return u=E,f=null,c={},h={},a&&a(et({dataIndexInside:E,dataIndex:e.getRawIndex(E),actionType:P?P.type:null},l),s)};function S(E,P){return P==null&&(P=u),e.getStore().get(e.getDimensionIndex(E||0),P)}function b(E,P){P==null&&(P=u),E=E||0;var N=e.getDimensionInfo(E);if(!N){var k=e.getDimensionIndex(E);return k>=0?e.getStore().get(k,P):void 0}var O=e.get(N.name,P),B=N&&N.ordinalMeta;return B?B.categories[O]:O}function x(E,P){process.env.NODE_ENV!=="production"&&jx("api.style","Please write literal style directly instead."),P==null&&(P=u);var N=e.getItemVisual(P,"style"),k=N&&N.fill,O=N&&N.opacity,B=m(P,Kn).getItemStyle();k!=null&&(B.fill=k),O!=null&&(B.opacity=O);var F={inheritColor:W(k)?k:"#000"},$=_(P,Kn),Z=Ot($,null,F,!1,!0);Z.text=$.getShallow("show")?ft(r.getFormattedLabel(P,Kn),wo(e,P)):null;var Q=Nf($,F,!1);return C(E,B),B=Xx(B,Z,Q),E&&T(B,E),B.legacy=!0,B}function w(E,P){process.env.NODE_ENV!=="production"&&jx("api.styleEmphasis","Please write literal style directly instead."),P==null&&(P=u);var N=m(P,yn).getItemStyle(),k=_(P,yn),O=Ot(k,null,null,!0,!0);O.text=k.getShallow("show")?ur(r.getFormattedLabel(P,yn),r.getFormattedLabel(P,Kn),wo(e,P)):null;var B=Nf(k,null,!0);return C(E,N),N=Xx(N,O,B),E&&T(N,E),N.legacy=!0,N}function T(E,P){for(var N in P)U(P,N)&&(E[N]=P[N])}function C(E,P){E&&(E.textFill&&(P.textFill=E.textFill),E.textPosition&&(P.textPosition=E.textPosition))}function A(E,P){if(P==null&&(P=u),U(Ux,E)){var N=e.getItemVisual(P,"style");return N?N[Ux[E]]:null}if(U(f6,E))return e.getItemVisual(P,E)}function M(E){if(i.type==="cartesian2d"){var P=i.getBaseAxis();return HB(et({axis:P},E))}}function L(){return t.getCurrentSeriesIndices()}function I(E){return jC(E,t)}}function z6(r){var e={};return D(r.dimensions,function(t){var n=r.getDimensionInfo(t);if(!n.isExtraCoord){var a=n.coordDim,i=e[a]=e[a]||[];i[n.coordDimIndex]=r.getDimensionIndex(t)}}),e}function hp(r,e,t,n,a,i,o){if(!n){i.remove(e);return}var s=hm(r,e,t,n,a,i);return s&&o.setItemGraphicEl(t,s),s&&$t(s,n.focus,n.blurScope,n.emphasisDisabled),s}function hm(r,e,t,n,a,i){process.env.NODE_ENV!=="production"&&J(n,"should not have an null/undefined element setting");var o=-1,s=e;e&&gI(e,n,a)&&(o=vt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=fm(n),s&&R6(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ke.normal.cfg=Ke.normal.conOpt=Ke.emphasis.cfg=Ke.emphasis.conOpt=Ke.blur.cfg=Ke.blur.conOpt=Ke.select.cfg=Ke.select.conOpt=null,Ke.isLegacy=!1,F6(u,t,n,a,l,Ke),G6(u,t,n,a,l),cm(r,u,t,n,Ke,a,l),U(n,"info")&&(gn(u).info=n.info);for(var f=0;f<fa.length;f++){var c=fa[f];if(c!==Kn){var h=lc(n,c),v=vm(n,h,c);dI(c,u,h,v,Ke)}}return V6(u,n,a),n.type==="group"&&H6(r,u,t,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function gI(r,e,t){var n=gn(r),a=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Y6(i)&&yI(i)!==n.customPathData||a==="image"&&U(o,"image")&&o.image!==n.customImagePath}function G6(r,e,t,n,a){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&gI(o,i,n)&&(o=null),o||(o=fm(i),process.env.NODE_ENV!=="production"&&J(sc(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),r.setClipPath(o)),cm(null,o,e,i,null,n,a)}}function F6(r,e,t,n,a,i){if(!r.isGroup){nb(t,null,i),nb(t,yn,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=fm(o),r.setTextContent(f)),cm(null,f,e,o,null,n,a);for(var c=o&&o.style,h=0;h<fa.length;h++){var v=fa[h];if(v!==Kn){var p=i[v].conOpt;dI(v,f,p,vm(o,p,v),null)}}c?f.dirty():f.markRedraw()}}}}function nb(r,e,t){var n=e?lc(r,e):r,a=e?vm(r,n,yn):r.style,i=r.type,o=n?n.textConfig:null,s=r.textContent,l=s?e?lc(s,e):s:null;if(a&&(t.isLegacy||lI(a,i,!!o,!!l))){t.isLegacy=!0;var u=uI(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text"),process.env.NODE_ENV!=="production"&&J(f.type==="text",'textContent.type must be "text"')}var c=e?t[e]:t.normal;c.cfg=o,c.conOpt=l}function lc(r,e){return e?r?r[e]:null:r}function vm(r,e,t){var n=e&&e.style;return n==null&&t===yn&&r&&(n=r.styleEmphasis),n}function H6(r,e,t,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){W6({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var c=i[f],h=e.childAt(f);c?(c.ignore==null&&(c.ignore=!1),hm(r,h,t,c,a,e)):(process.env.NODE_ENV!=="production"&&J(h,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),h.ignore=!0)}for(var v=e.childCount()-1;v>=f;v--){var p=e.childAt(v);$6(e,p,a)}}}function $6(r,e,t){e&&oh(e,gn(r).option,t)}function W6(r){new Tn(r.oldChildren,r.newChildren,ab,ab,r).add(ib).update(ib).remove(U6).execute()}function ab(r,e){var t=r&&r.name;return t!=null?t:N6+e}function ib(r,e){var t=this.context,n=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;hm(t.api,a,t.dataIndex,n,t.seriesModel,t.group)}function U6(r){var e=this.context,t=e.oldChildren[r];t&&oh(t,gn(t).option,e.seriesModel)}function yI(r){return r&&(r.pathData||r.d)}function Y6(r){return r&&(U(r,"pathData")||U(r,"d"))}function Z6(r){r.registerChartView(k6),r.registerSeriesModel(h6)}var Za=Ct(),ob=nt,vp=Y,X6=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,a){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!a&&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,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new at,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var h=ot(sb,t,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,t)}ub(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),a=e.axis,i=a.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=Vy(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,a,i){},r.prototype.createPointerEl=function(e,t,n,a){var i=t.pointer;if(i){var o=Za(e).pointerEl=new Ll[i.type](ob(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,a){if(t.label){var i=Za(e).labelEl=new Dt(ob(t.label));e.add(i),lb(i,a)}},r.prototype.updatePointerEl=function(e,t,n){var a=Za(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),n(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,a){var i=Za(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),lb(i,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Ml(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){_n(u.event)},onmousedown:vp(this._onHandleDragMove,this,0,0),drift:vp(this._onHandleDragMove,this),ondragend:vp(this._onHandleDragEnd,this)}),n.add(a)),ub(a,t,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,$o(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){sb(this._axisPointerModel,!t&&this._moveAnimation,this._handle,pp(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(!!n){this._dragging=!0;var a=this.updateHandleTransform(pp(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(pp(a)),Za(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(!!e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(!!e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,a=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),sl(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function sb(r,e,t,n){mI(Za(t).lastProp,n)||(Za(t).lastProp=n,e?Mt(t,n,r):(t.stopAnimation(),t.attr(n)))}function mI(r,e){if(K(r)&&K(e)){var t=!0;return D(e,function(n,a){t=t&&mI(r[a],n)}),!!t}else return r===e}function lb(r,e){r[e.get(["label","show"])?"show":"hide"]()}function pp(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function ub(r,e,t){var n=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=t)})}const pm=X6;function dm(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function _I(r,e,t,n,a){var i=t.get("value"),o=SI(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Vo(s.get("padding")||0),u=s.getFont(),f=wl(o,u),c=a.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=a.align;p==="right"&&(c[0]-=h),p==="center"&&(c[0]-=h/2);var d=a.verticalAlign;d==="bottom"&&(c[1]-=v),d==="middle"&&(c[1]-=v/2),q6(c,h,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Ot(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function q6(r,e,t,n){var a=n.getWidth(),i=n.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function SI(r,e,t,n,a){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:My(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};D(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),W(o)?i=o.replace("{value}",i):j(o)&&(i=o(s))}return i}function gm(r,e,t){var n=cr();return Ci(n,n,t.rotation),jr(n,n,t.position),Ar([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function xI(r,e,t,n,a,i){var o=Cn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),_I(e,n,a,i,{position:gm(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ym(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function bI(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function fb(r,e,t,n,a,i){return{cx:r,cy:e,r0:t,r:n,startAngle:a,endAngle:i,clockwise:!0}}var j6=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),f=cb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var h=dm(i),v=K6[u](s,c,f);v.style=h,t.graphicKey=v.type,t.pointer=v}var p=Gd(l.model,a);xI(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=Gd(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=gm(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=cb(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[t.x,t.y];c[f]+=n[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:v,tooltipOption:p[f]}},e}(pm);function cb(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var K6={line:function(r,e,t){var n=ym([e,t[0]],[e,t[1]],hb(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),a=t[1]-t[0];return{type:"Rect",shape:bI([e-n/2,t[0]],[n,a],hb(r))}}};function hb(r){return r.dim==="x"?0:1}const J6=j6;var Q6=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(xt);const t8=Q6;var cn=Ct(),e8=D;function wI(r,e,t){if(!wt.node){var n=e.getZr();cn(n).records||(cn(n).records={}),r8(n,e);var a=cn(n).records[r]||(cn(n).records[r]={});a.handler=t}}function r8(r,e){if(cn(r).initialized)return;cn(r).initialized=!0,t("click",ot(vb,"click")),t("mousemove",ot(vb,"mousemove")),t("globalout",a8);function t(n,a){r.on(n,function(i){var o=i8(e);e8(cn(r).records,function(s){s&&a(s,i,o.dispatchAction)}),n8(o.pendings,e)})}}function n8(r,e){var t=r.showTip.length,n=r.hideTip.length,a;t?a=r.showTip[t-1]:n&&(a=r.hideTip[n-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function a8(r,e,t){r.handler("leave",null,t)}function vb(r,e,t,n){e.handler(r,t,n)}function i8(r){var e={showTip:[],hideTip:[]},t=function(n){var a=e[n.type];a?a.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function ag(r,e){if(!wt.node){var t=e.getZr(),n=(cn(t).records||{})[r];n&&(cn(t).records[r]=null)}}var o8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=n.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";wI("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,n){ag("axisPointer",n)},e.prototype.dispose=function(t,n){ag("axisPointer",n)},e.type="axisPointer",e}(Wt);const s8=o8;function TI(r,e){var t=[],n=r.seriesIndex,a;if(n==null||!(a=e.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=di(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,p=i.mapDimension(h),d=[];d[v]=i.get(p,o),d[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(i.getValues(G(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var pb=Ct();function l8(r,e,t){var n=r.currTrigger,a=[r.x,r.y],i=r,o=r.dispatchAction||Y(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ff(a)&&(a=TI({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=ff(a),u=i.axesInfo,f=s.axesInfo,c=n==="leave"||ff(a),h={},v={},p={list:[],map:{}},d={showPointer:ot(f8,v),showTooltip:ot(c8,p)};D(s.coordSysMap,function(y,m){var _=l||y.containPoint(a);D(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=d8(u,S);if(!c&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(a)),T!=null&&db(S,T,d,!1,h)}})});var g={};return D(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&D(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,gb(S),gb(y)))),g[y.key]=w}})}),D(g,function(y,m){db(f[m],y,d,!0,h)}),h8(v,f,h),v8(p,a,r,o),p8(f,o,t),h}}function db(r,e,t,n,a){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=u8(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&V(a,s[0]),!n&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function u8(r,e){var t=e.axis,n=t.dim,a=r,i=[],o=Number.MAX_VALUE,s=-1;return D(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);h=v.dataIndices,c=v.nestestValue}else{if(h=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var p=r-c,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,a=c,i.length=0),D(h,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function f8(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function c8(r,e,t,n){var a=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=vl(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:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function h8(r,e,t){var n=t.axesInfo=[];D(e,function(a,i){var o=a.axisPointerModel.option,s=r[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function v8(r,e,t,n){if(ff(e)||!r.list.length){n({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function p8(r,e,t){var n=t.getZr(),a="axisPointerLastHighlights",i=pb(n)[a]||{},o=pb(n)[a]={};D(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&D(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];D(i,function(u,f){!o[f]&&l.push(u)}),D(o,function(u,f){!i[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function d8(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function gb(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function ff(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Fl(r){Ii.registerAxisPointerClass("CartesianAxisPointer",J6),r.registerComponentModel(t8),r.registerComponentView(s8),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=nF(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},l8)}function g8(r){yt(qM),yt(Fl)}var y8=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),c=s.dataToCoord(n),h=i.get("type");if(h&&h!=="none"){var v=dm(i),p=_8[h](s,l,c,f);p.style=v,t.graphicKey=p.type,t.pointer=p}var d=i.get(["label","margin"]),g=m8(n,a,i,l,d);_I(t,a,i,o,g)},e}(pm);function m8(r,e,t,n,a){var i=e.axis,o=i.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,c;if(i.dim==="radius"){var h=cr();Ci(h,h,s),jr(h,h,[n.cx,n.cy]),u=Ar([o,-a],h);var v=e.getModel("axisLabel").get("rotate")||0,p=Cn.innerTextLayout(s,v*Math.PI/180,-1);f=p.textAlign,c=p.textVerticalAlign}else{var d=l[1];u=n.coordToPoint([d+a,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",c=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:c}}var _8={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:ym(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var a=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:fb(e.cx,e.cy,n[0],n[1],(-t-a/2)*i,(-t+a/2)*i)}:{type:"Sector",shape:fb(e.cx,e.cy,t-a/2,t+a/2,0,Math.PI*2)}}};const S8=y8;var x8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var n,a=this.ecModel;return a.eachComponent(t,function(i){i.getCoordSysModel()===this&&(n=i)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(xt);const b8=x8;var mm=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Jt).models[0]},e.type="polarAxis",e}(xt);te(mm,Nl);var w8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(mm),T8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(mm),_m=function(r){R(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(Nr);_m.prototype.dataToRadius=Nr.prototype.dataToCoord;_m.prototype.radiusToData=Nr.prototype.coordToData;const C8=_m;var D8=Ct(),Sm=function(r){R(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=wl(s==null?"":s+"",n.getFont(),"center","top"),c=Math.max(f.height,7),h=c/u;isNaN(h)&&(h=1/0);var v=Math.max(0,Math.floor(h)),p=D8(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},e}(Nr);Sm.prototype.dataToAngle=Nr.prototype.dataToCoord;Sm.prototype.angleToData=Nr.prototype.coordToData;const A8=Sm;var CI=["radius","angle"],M8=function(){function r(e){this.dimensions=CI,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new C8,this._angleAxis=new A8,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,a=this._radiusAxis;return n.scale.type===e&&t.push(n),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,a=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[a,i]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,f=l*l+u*u-1e-4,c=this.r,h=this.r0;return f<=c*c&&f>=h*h}}},r.prototype.convertToPixel=function(e,t,n){var a=yb(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=yb(t);return a===this?this.pointToData(n):null},r}();function yb(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const L8=M8;function I8(r,e,t){var n=e.get("center"),a=t.getWidth(),i=t.getHeight();r.cx=H(n[0],a),r.cy=H(n[1],i);var o=r.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function E8(r,e){var t=this,n=t.getAngleAxis(),a=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();D(Yf(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),D(Yf(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bo(n.scale,n.model),bo(a.scale,a.model),n.type==="category"&&!n.onBand){var i=n.getExtent(),o=360/n.scale.count();n.inverse?i[1]+=o:i[1]-=o,n.setExtent(i[0],i[1])}}function P8(r){return r.mainType==="angleAxis"}function mb(r,e){if(r.type=e.get("type"),r.scale=Jc(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),P8(e)){r.inverse=r.inverse!==e.get("clockwise");var t=e.get("startAngle");r.setExtent(t,t+(r.inverse?-360:360))}e.axis=r,r.model=e}var N8={dimensions:CI,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,a){var i=new L8(a+"");i.update=E8;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");mb(o,l),mb(s,u),I8(i,n,e),t.push(i),n.coordinateSystem=i,i.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var a=n.getReferringComponents("polar",Jt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error('Polar "'+Kt(n.get("polarIndex"),n.get("polarId"),0)+'" not found');n.coordinateSystem=a.coordinateSystem}}),t}};const R8=N8;var O8=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ku(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function Vu(r){var e=r.getRadiusAxis();return e.inverse?0:1}function _b(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var k8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=G(a.getViewLabels(),function(f){f=nt(f);var c=a.scale,h=c.type==="ordinal"?c.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=a.dataToCoord(h),f});_b(u),_b(s),D(O8,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&V8[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Ii),V8={axisLine:function(r,e,t,n,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=Vu(t),l=s?0:1,u;i[l]===0?u=new tn({shape:{cx:t.cx,cy:t.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Rc({shape:{cx:t.cx,cy:t.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,r.add(u)},axisTick:function(r,e,t,n,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[Vu(t)],u=G(n,function(f){return new le({shape:ku(t,[l,l+s],f.coord)})});r.add(ir(u,{style:et(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,a,i){if(!!a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[Vu(t)],f=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)f.push(new le({shape:ku(t,[u,u+l],a[c][h].coord)}));r.add(ir(f,{style:et(s.getModel("lineStyle").getLineStyle(),et(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");D(o,function(c,h){var v=l,p=c.tickValue,d=i[Vu(t)],g=t.coordToPoint([d+u,c.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];K(b)&&b.textStyle&&(v=new kt(b.textStyle,l,l.ecModel))}var x=new Dt({silent:Cn.isLabelSilent(e),style:Ot(v,{x:g[0],y:g[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=Cn.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=c.rawLabel,it(x).eventData=w}},this)},splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<n.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new le({shape:ku(t,i,n[c].coord)}))}for(var c=0;c<f.length;c++)r.add(ir(f[c],{style:et({stroke:l[c%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,a,i){if(!!a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new le({shape:ku(t,i,a[u][f].coord)}));r.add(ir(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,a,i){if(!!n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=Math.PI/180,h=-n[0].coord*c,v=Math.min(i[0],i[1]),p=Math.max(i[0],i[1]),d=e.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new ze({shape:{cx:t.cx,cy:t.cy,r0:v,r:p,startAngle:h,endAngle:-m*c,clockwise:d},silent:!0})),h=-m*c}for(var g=0;g<f.length;g++)r.add(ir(f[g],{style:et({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const B8=k8;var z8=["axisLine","axisTickLabel","axisName"],G8=["splitLine","splitArea","minorSplitLine"],F8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,n){if(this.group.removeAll(),!!t.get("show")){var a=this._axisGroup,i=this._axisGroup=new at;this.group.add(i);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),c=l.getExtent()[0],h=o.getExtent(),v=$8(s,t,c),p=new Cn(t,v);D(z8,p.add,p),i.add(p.getGroup()),Al(a,i,t),D(G8,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&H8[d](this.group,t,s,c,h,u,f)},this)}},e.type="radiusAxis",e}(Ii),H8={splitLine:function(r,e,t,n,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=0;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new tn({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[c].coord,0)}}))}for(var c=0;c<f.length;c++)r.add(ir(f[c],{style:et({stroke:l[c%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,a,i,o){if(!!o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var c=0;c<o[f].length;c++)u.push(new tn({shape:{cx:t.cx,cy:t.cy,r:o[f][c].coord}}));r.add(ir(u,{style:et({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,a,i){if(!!i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],c=i[0].coord,h=1;h<i.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new ze({shape:{cx:t.cx,cy:t.cy,r0:c,r:i[h].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),c=i[h].coord}for(var h=0;h<f.length;h++)r.add(ir(f[h],{style:et({fill:l[h%l.length]},s.getAreaStyle()),silent:!0}))}}};function $8(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const W8=F8;function DI(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function AI(r,e){return e.dim+r.model.componentIndex}function U8(r,e,t){var n={},a=Y8(Et(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=AI(s,l),f=DI(i),c=a[u][f],h=c.offset,v=c.width,p=s.getOtherAxis(l),d=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),b=sa(o,_),x=l.dim!=="radius"||!i.get("roundCap",!0),w=p.dataToCoord(0),T=0,C=o.count();T<C;T++){var A=o.get(_,T),M=o.get(S,T),L=A>=0?"p":"n",I=w;b&&(n[f][M]||(n[f][M]={p:w,n:w}),I=n[f][M][L]);var E=void 0,P=void 0,N=void 0,k=void 0;if(p.dim==="radius"){var O=p.dataToCoord(A)-w,B=l.dataToCoord(M);Math.abs(O)<y&&(O=(O<0?-1:1)*y),E=I,P=I+O,N=B-h,k=N-v,b&&(n[f][M][L]=P)}else{var F=p.dataToCoord(A,x)-w,$=l.dataToCoord(M);Math.abs(F)<m&&(F=(F<0?-1:1)*m),E=$+h,P=E+v,N=I,k=I+F,b&&(n[f][M][L]=k)}o.setItemLayout(T,{cx:d,cy:g,r0:E,r:P,startAngle:-N*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:N>=k})}}})}function Y8(r){var e={};D(r,function(n,a){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=AI(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),c=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=c.stacks;e[l]=c;var v=DI(n);h[v]||c.autoWidthCount++,h[v]=h[v]||{width:0,maxWidth:0};var p=H(n.get("barWidth"),f),d=H(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!h[v].width&&(p=Math.min(c.remainedWidth,p),h[v].width=p,c.remainedWidth-=p),d&&(h[v].maxWidth=d),g!=null&&(c.gap=g),y!=null&&(c.categoryGap=y)});var t={};return D(e,function(n,a){t[a]={};var i=n.stacks,o=n.bandWidth,s=H(n.categoryGap,o),l=H(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,c=(u-s)/(f+(f-1)*l);c=Math.max(c,0),D(i,function(d,g){var y=d.maxWidth;y&&y<c&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),c=(u-s)/(f+(f-1)*l),c=Math.max(c,0);var h=0,v;D(i,function(d,g){d.width||(d.width=c),v=d,h+=d.width*(1+l)}),v&&(h-=v.width*l);var p=-h/2;D(i,function(d,g){t[a][g]=t[a][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var Z8={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},X8={splitNumber:5},q8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Wt);function j8(r){yt(Fl),Ii.registerAxisPointerClass("PolarAxisPointer",S8),r.registerCoordinateSystem("polar",R8),r.registerComponentModel(b8),r.registerComponentView(q8),To(r,"angle",w8,Z8),To(r,"radius",T8,X8),r.registerComponentView(B8),r.registerComponentView(W8),r.registerLayout(ot(U8,"bar"))}function ig(r,e){e=e||{};var t=r.coordinateSystem,n=r.axis,a={},i=n.position,o=n.orient,s=t.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]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var c={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=c[i],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Kt(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var h=e.rotate;return h==null&&(h=r.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-h:h,a.z2=1,a}var K8=["axisLine","axisTickLabel","axisName"],J8=["splitArea","splitLine"],Q8=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,n,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new at;var l=ig(t),u=new Cn(t,l);D(K8,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),D(J8,function(f){t.get([f,"show"])&&tY[f](this,this.group,this._axisGroup,t)},this),Al(s,this._axisGroup,t),r.prototype.render.call(this,t,n,a,i)},e.prototype.remove=function(){YM(this)},e.type="singleAxis",e}(Ii),tY={splitLine:function(r,e,t,n){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),f=a.isHorizontal(),c=[],h=0,v=a.getTicksCoords({tickModel:i}),p=[],d=[],g=0;g<v.length;++g){var y=a.toGlobalCoord(v[g].coord);f?(p[0]=y,p[1]=u.y,d[0]=y,d[1]=u.y+u.height):(p[0]=u.x,p[1]=y,d[0]=u.x+u.width,d[1]=y);var m=new le({shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},silent:!0});_o(m.shape,l);var _=h++%s.length;c[_]=c[_]||[],c[_].push(m)}for(var S=o.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(ir(c[g],{style:et({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(r,e,t,n){UM(r,t,n,n)}};const eY=Q8;var MI=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(xt);te(MI,Nl.prototype);const dp=MI;var rY=function(r){R(e,r);function e(t,n,a,i,o){var s=r.call(this,t,n,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,n){return this.coordinateSystem.pointToData(t)[0]},e}(Nr);const nY=rY;var LI=["single"],aY=function(){function r(e,t,n){this.type="single",this.dimension="single",this.dimensions=LI,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var a=this.dimension,i=new nY(a,Jc(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(n){if(n.coordinateSystem===this){var a=n.getData();D(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),bo(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){this._rect=re({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),a=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(a[i],a[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),a=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis(),a=n.orient;return a==="horizontal"?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},r.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),a=[],i=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=t.toGlobalCoord(t.dataToCoord(+e)),a[1-i]=i===0?n.y+n.height/2:n.x+n.width/2,a},r.prototype.convertToPixel=function(e,t,n){var a=Sb(t);return a===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=Sb(t);return a===this?this.pointToData(n):null},r}();function Sb(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function iY(r,e){var t=[];return r.eachComponent("singleAxis",function(n,a){var i=new aY(n,r,e);i.name="single_"+a,i.resize(n,e),n.coordinateSystem=i,t.push(i)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var a=n.getReferringComponents("singleAxis",Jt).models[0];n.coordinateSystem=a&&a.coordinateSystem}}),t}var oY={create:iY,dimensions:LI};const sY=oY;var xb=["x","y"],lY=["width","height"],uY=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,a,i,o){var s=a.axis,l=s.coordinateSystem,u=gp(l,1-uc(s)),f=l.dataToPoint(n)[0],c=i.get("type");if(c&&c!=="none"){var h=dm(i),v=fY[c](s,f,u);v.style=h,t.graphicKey=v.type,t.pointer=v}var p=ig(a);xI(n,t,p,a,i,o)},e.prototype.getHandleTransform=function(t,n,a){var i=ig(n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=gm(n.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,a,i){var o=a.axis,s=o.coordinateSystem,l=uc(o),u=gp(s,l),f=[t.x,t.y];f[l]+=n[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var c=gp(s,1-l),h=(c[1]+c[0])/2,v=[h,h];return v[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e}(pm),fY={line:function(r,e,t){var n=ym([e,t[0]],[e,t[1]],uc(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=r.getBandWidth(),a=t[1]-t[0];return{type:"Rect",shape:bI([e-n/2,t[0]],[n,a],uc(r))}}};function uc(r){return r.isHorizontal()?0:1}function gp(r,e){var t=r.getRect();return[t[xb[e]],t[xb[e]]+t[lY[e]]]}const cY=uY;var hY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Wt);function vY(r){yt(Fl),Ii.registerAxisPointerClass("SingleAxisPointer",cY),r.registerComponentView(hY),r.registerComponentView(eY),r.registerComponentModel(dp),To(r,"single",dp,dp.defaultOption),r.registerCoordinateSystem("single",sY)}var pY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n,a){var i=Bo(t);r.prototype.init.apply(this,arguments),bb(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),bb(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(xt);function bb(r,e){var t=r.cellSize,n;z(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var a=G([0,1],function(i){return SO(e,i)&&(n[i]="auto"),n[i]!=null&&n[i]!=="auto"});oa(r,e,{type:"box",ignoreSize:a})}const dY=pY;var gY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,n,a){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=n.start.time;u<=n.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToRect([u],!1).tl,c=new Tt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(c)}},e.prototype._renderLines=function(t,n,a,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=n.start,h=0;c.time<=n.end.time;h++){p(c.formatedDate),h===0&&(c=s.getDateInfo(n.start.y+"-"+n.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,a);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,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,i)},e.prototype._getEdgesPoints=function(t,n,a){var i=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-n/2,i[1][o]=i[1][o]+n/2,i},e.prototype._drawSplitline=function(t,n,a){var i=new Fe({z2:20,shape:{points:t},style:n});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,n,a){for(var i=t.coordinateSystem,o=i.getDateInfo(n),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return W(t)&&t?yO(t,n):j(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,a,i,o){var s=n[0],l=n[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]}}},e.prototype._renderYearText=function(t,n,a,i){var o=t.getModel("yearLabel");if(!!o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=a==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var d=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new Dt({z2:30,style:Ot(o,{text:y})});m.attr(this._yearTextPositionControl(m,v[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,n,a,i,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,n&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,a,i){var o=t.getModel("monthLabel");if(!!o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||W(s))&&(s&&(n=dd(s)||n),s=n.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=0;d<c[h].length-1;d++){var g=c[h][d].slice(),y=this._firstDayOfMonth[d];if(p){var m=this._firstDayPoints[d];g[v]=(m[v]+c[0][d+1][v])/2}var _=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},x=this._formatterLabel(_,b),w=new Dt({z2:30,style:V(Ot(o,{text:x}),this._monthTextPositionControl(g,p,a,u,l))});i.add(w)}}},e.prototype._weekTextPositionControl=function(t,n,a,i,o){var s="center",l="middle",u=t[0],f=t[1],c=a==="start";return n==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,a,i,o){var s=t.getModel("dayLabel");if(!!s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||W(f)){f&&(n=dd(f)||n);var v=n.get(["time","dayOfWeekShort"]);f=v||G(n.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var p=l.getNextNDay(a.end.time,7-a.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];c=H(c,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(a.start.time,-(7+a.fweek)).time,c=-c);for(var g=0;g<7;g++){var y=l.getNextNDay(p,g),m=l.dataToRect([y.time],!1).center,_=g;_=Math.abs((g+h)%7);var S=new Dt({z2:30,style:V(Ot(s,{text:f[_]}),this._weekTextPositionControl(m,i,u,c,d))});o.add(S)}}},e.type="calendar",e}(Wt);const yY=gY;var yp=864e5,mY=function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=Jr(e);var t=e.getFullYear(),n=e.getMonth()+1,a=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];D([0,1],function(c){f(i,c)&&(o[a[c]]=i[c]*s[c])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=re(o,l);D([0,1],function(c){f(i,c)||(i[c]=u[a[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t){z(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),a=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=a.start.time&&n.time<a.end.time+yp))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,a):this._getDateByWeeksAndDay(t,n-1,a)},r.prototype.convertToPixel=function(e,t,n){var a=wb(t);return a===this?a.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var a=wb(t);return a===this?a.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(z(e)&&e.length===1&&(e=e[0]),z(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var a=this.getDateInfo(n),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return process.env.NODE_ENV!=="production"&&Cr("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var a=Math.floor(t[1].time/yp)-Math.floor(t[0].time/yp)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)a-=u,i.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),c=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:c,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var a=this._getRangeInfo(n);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var i=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(a){var i=new r(a);n.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=n[a.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function wb(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}const _Y=mY;function SY(r){r.registerComponentModel(dY),r.registerComponentView(yY),r.registerCoordinateSystem("calendar",_Y)}function xY(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function Tb(r,e){var t;return D(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function bY(r,e,t){var n=V({},t),a=r[e],i=t.$action||"merge";if(i==="merge")if(a){if(process.env.NODE_ENV!=="production"){var o=t.type;J(!o||a.type===o,'Please set $action: "replace" to change `type`')}ct(a,n,!0),oa(a,n,{ignoreSize:!0}),dD(t,a),Bu(t,a),Bu(t,a,"shape"),Bu(t,a,"style"),Bu(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=n;else i==="replace"?r[e]=n:i==="remove"&&a&&(r[e]=null)}var II=["transition","enterFrom","leaveTo"],wY=II.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Bu(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?II:wY,a=0;a<n.length;a++){var i=n[a];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function TY(r,e){if(!!r&&(r.hv=e.hv=[Tb(e,["left","right"]),Tb(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var CY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,n){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=a},e.prototype.optionUpdated=function(t,n){var a=this.option,i=(n?a:t).elements,o=a.elements=n?[]:a.elements,s=[];this._flatten(i,s,null);var l=jT(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];D(l,function(f,c){var h=f.newOption;process.env.NODE_ENV!=="production"&&J(K(h)||f.existing,"Empty graphic option definition"),h&&(u.push(h),xY(f,h),bY(o,c,h),TY(o[c],h))},this),a.elements=Et(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,n,a){D(t,function(i){if(!!i){a&&(i.parentOption=a),n.push(i);var o=i.children;o&&o.length&&this._flatten(o,n,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(xt),Cb={path:null,compoundPath:null,group:at,image:de,text:Dt},rr=Ct(),DY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=X()},e.prototype.render=function(t,n,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(!!n){var a=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");D(n,function(l){var u=ee(l.id,null),f=u!=null?a.get(u):null,c=ee(l.parentId,null),h=c!=null?a.get(c):i,v=l.type,p=l.style;v==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&lI(p,v,!!g,!!d)){var y=uI(p,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=AY(l);process.env.NODE_ENV!=="production"&&f&&J(h===f.parent,"Changing parent is not supported.");var _=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=Db(u,h,l.type,a):(w&&(rr(w).isNew=!1),pI(w)),w&&(uf(w,m,t,{isInit:x}),Ab(w,l,o,s))}else if(b){cf(f,l,a,t);var T=Db(u,h,l.type,a);T&&(uf(T,m,t,{isInit:!0}),Ab(T,l,o,s))}else _==="remove"&&(cI(f,l),cf(f,l,a,t));var C=a.get(u);if(C&&d)if(S){var A=C.getTextContent();A?A.attr(d):C.setTextContent(new Dt(d))}else b&&C.setTextContent(new Dt(d));if(C){var M=l.clipPath;if(M){var L=M.type,I=void 0,x=!1;if(S){var E=C.getClipPath();x=!E||rr(E).type!==L,I=x?og(L):E}else b&&(x=!0,I=og(L));C.setClipPath(I),uf(I,M,t,{isInit:x}),oc(I,M.keyframeAnimation,t)}var P=rr(C);C.setTextConfig(g),P.option=l,MY(C,t,l),Ro({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),oc(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var a=t.option.elements,i=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<a.length;f++){var c=a[f],h=ee(c.id,null),v=h!=null?o.get(h):null;if(!(!v||!v.isGroup)){var p=v.parent,d=p===i,g=rr(v),y=rr(p);g.width=H(g.option.width,d?s:y.width)||0,g.height=H(g.option.height,d?l:y.height)||0}}for(var f=a.length-1;f>=0;f--){var c=a[f],h=ee(c.id,null),v=h!=null?o.get(h):null;if(!!v){var p=v.parent,y=rr(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Wc(v,c,m,null,{hv:c.hv,boundingMode:c.bounding},_);if(!rr(v).isNew&&S){for(var b=c.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(hi(b)||vt(b,T)>=0)?x[T]=C:v[T]=C}Mt(v,x,t,0)}else v.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(a){cf(a,rr(a).option,n,t._lastGraphicModel)}),this._elMap=X()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Wt);function og(r){process.env.NODE_ENV!=="production"&&J(r,"graphic type MUST be set");var e=U(Cb,r)?Cb[r]:Qg(r);process.env.NODE_ENV!=="production"&&J(e,"graphic type "+r+" can not be found");var t=new e({});return rr(t).type=r,t}function Db(r,e,t,n){var a=og(t);return e.add(a),n.set(r,a),rr(a).id=r,rr(a).isNew=!0,a}function cf(r,e,t,n){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(i){cf(i,e,t,n)}),oh(r,e,n),t.removeKey(rr(r).id))}function Ab(r,e,t,n){r.isGroup||D([["cursor",hr.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(a){var i=a[0];U(e,i)?r[i]=ft(e[i],a[1]):r[i]==null&&(r[i]=a[1])}),D(_t(e),function(a){if(a.indexOf("on")===0){var i=e[a];r[a]=j(i)?i:null}}),U(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function AY(r){return r=V({},r),D(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(pD),function(e){delete r[e]}),r}function MY(r,e,t){var n=it(r).eventData;!r.silent&&!r.ignore&&!n&&(n=it(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function LY(r){r.registerComponentModel(CY),r.registerComponentView(DY),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var Mb=["x","y","radius","angle","single"],IY=["cartesian2d","polar","singleAxis"];function EY(r){var e=r.get("coordinateSystem");return vt(IY,e)>=0}function Jn(r){return process.env.NODE_ENV!=="production"&&J(r),r+"Axis"}function PY(r,e){var t=X(),n=[],a=X();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!a.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){a.set(f.uid,!0),n.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var p=t.get(h);p&&p[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(t.get(c)||t.set(c,[]))[h]=!0})}return n}function EI(r){var e=r.ecModel,t={infoList:[],infoMap:X()};return r.eachTargetAxis(function(n,a){var i=e.getComponent(Jn(n),a);if(!!i){var o=i.getCoordSysModel();if(!!o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var mp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),NY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,n,a){var i=Lb(t);this.settledOption=i,this.mergeDefaultAndTheme(t,a),this._doInit(i)},e.prototype.mergeOption=function(t){var n=Lb(t);ct(this.option,t,!0),ct(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=X(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return D(Mb,function(a){var i=this.getReferringComponents(Jn(a),KP);if(!!i.specified){n=!0;var o=new mp;D(i.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var c=u[0];if(!!c){var h=new mp;if(h.add(c.componentIndex),t.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Jt).models[0];v&&D(u,function(p){c.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",Jt).models[0]&&h.add(p.componentIndex)})}}}i&&D(Mb,function(u){if(!!i){var f=a.findComponents({mainType:Jn(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new mp;c.add(f[0].componentIndex),t.set(u,c),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,a=this.get("rangeMode");D([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,a){t==null&&(t=this.ecModel.getComponent(Jn(n),a))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(a,i){D(a.indexList,function(o){t.call(n,i,o)})})},e.prototype.getAxisProxy=function(t,n){var a=this.getAxisModel(t,n);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){process.env.NODE_ENV!=="production"&&J(t&&n!=null);var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[n])return this.ecModel.getComponent(Jn(t),n)},e.prototype.setRawRange=function(t){var n=this.option,a=this.settledOption;D([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(n[i[0]]=a[i[0]]=t[i[0]],n[i[1]]=a[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;D(["start","startValue","end","endValue"],function(a){n[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[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;n||(n=u)}return n},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&J(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(xt);function Lb(r){var e={};return D(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const _l=NY;var RY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(_l);const OY=RY;var kY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a,i){this.dataZoomModel=t,this.ecModel=n,this.api=a},e.type="dataZoom",e}(Wt);const xm=kY;var VY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(xm);const BY=VY;var io=D,Ib=sr,zY=function(){function r(e,t,n,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(EY(t)){var n=Jn(this._dimName),a=t.getReferringComponents(n,Jt).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},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(e){var t=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;io(["start","end"],function(h,v){var p=e[h],d=e[h+"Value"];i[v]==="percent"?(p==null&&(p=o[v]),d=a.parse(It(p,o,t))):(u=!0,d=d==null?t[v]:a.parse(d),p=It(d,t,o)),l[v]=d==null||isNaN(d)?t[v]:d,s[v]=p==null||isNaN(p)?o[v]:p}),Ib(l),Ib(s);var f=this._minMaxSpan;u?c(l,s,t,o,!1):c(s,l,o,t,!0);function c(h,v,p,d,g){var y=g?"Span":"ValueSpan";Ei(0,h,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=It(h[m],p,d,!0),g&&(v[m]=a.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=GY(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;io(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(!!f.length){if(i==="weakFilter"){var c=u.getStore(),h=G(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var p,d,g,y=0;y<f.length;y++){var m=c.get(h[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else io(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});io(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;io(["min","max"],function(a){var i=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=It(n[0]+o,n,[0,100],!0):i!=null&&(o=It(i,[0,100],n,!0)-n[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(!!t){var a=$T(n,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),t[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},r}();function GY(r,e,t){var n=[1/0,-1/0];io(t,function(o){cz(n,o.getData(),e)});var a=r.getAxisModel(),i=ZA(a.axis.scale,a,n).calculate();return[i.min,i.max]}const FY=zY;var HY={getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Jn(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new FY(a,i,s,r),t.push(o.__dzAxisProxy))});var n=X();return D(t,function(a){D(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).reset(t)}),t.eachTargetAxis(function(n,a){t.getAxisProxy(n,a).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();t.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const $Y=HY;function WY(r){r.registerAction("dataZoom",function(e,t){var n=PY(t,e);D(n,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var Eb=!1;function bm(r){Eb||(Eb=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,$Y),WY(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function UY(r){r.registerComponentModel(OY),r.registerComponentView(BY),bm(r)}var ar=function(){function r(){}return r}(),PI={};function oo(r,e){PI[r]=e}function NI(r){return PI[r]}var YY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;D(this.option.feature,function(n,a){var i=NI(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),ct(n,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(xt);const ZY=YY;function XY(r,e,t){var n=e.getBoxLayoutParams(),a=e.get("padding"),i={width:t.getWidth(),height:t.getHeight()},o=re(n,i,a);ui(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Wc(r,n,i,a)}function RI(r,e){var t=Vo(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new Tt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var qY=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),c=[];D(u,function(p,d){c.push(d)}),new Tn(this._featureNames||[],c).add(h).update(h).remove(ot(h,null)).execute(),this._featureNames=c;function h(p,d){var g=c[p],y=c[d],m=u[g],_=new kt(m,t,t.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(jY(g))S={onclick:_.option.onclick,featureName:g};else{var b=NI(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=ko("toolbox-feature"),S.model=_,S.ecModel=n,S.api=a;var x=S instanceof ar;if(!g&&y){x&&S.dispose&&S.dispose(n,a);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,a);return}v(_,S,g),_.setIconStatus=function(w,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,A[w]&&(T==="emphasis"?xn:bn)(A[w])},S instanceof ar&&S.render&&S.render(_,n,a,i)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof ar&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;W(_)?(b={},b[g]=_):b=_,W(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};D(b,function(T,C){var A=Ml(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var M=A.ensureState("emphasis");M.style=m.getItemStyle();var L=new Dt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});A.setTextContent(L),Ro({el:A,componentModel:t,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var I=m.getItemStyle(),E=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||I.fill||I.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||E}),L.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",C])!=="emphasis"&&a.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",C])==="emphasis"?xn:bn)(A),o.add(A),A.on("click",Y(d.onclick,d,n,a,C)),w[C]=A})}XY(o,t,a),o.add(RI(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!j(_)&&d){var S=_.style||(_.style={}),b=wl(d,Dt.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,T=!1;w+b.height>a.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>a.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},e.prototype.updateView=function(t,n,a,i){D(this._features,function(o){o instanceof ar&&o.updateView&&o.updateView(o.model,n,a,i)})},e.prototype.remove=function(t,n){D(this._features,function(a){a instanceof ar&&a.remove&&a.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){D(this._features,function(a){a instanceof ar&&a.dispose&&a.dispose(t,n)})},e.type="toolbox",e}(Wt);function jY(r){return r.indexOf("my")===0}const KY=qY;var JY=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var a=this.model,i=a.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=wt.browser;if(j(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||o){var h=l.split(","),v=h[0].indexOf("base64")>-1,p=o?decodeURIComponent(h[1]):h[1];v&&(p=window.atob(p));var d=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(ar);const QY=JY;var Pb="__ec_magicType_stack__",t7=[["line","bar"],["stack"]],e7=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),a={};return D(t.get("type"),function(i){n[i]&&(a[i]=n[i])}),a},e.getDefaultOption=function(t){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},e.prototype.onclick=function(t,n,a){var i=this.model,o=i.get(["seriesIndex",a]);if(!!Nb[a]){var s={series:[]},l=function(c){var h=c.subType,v=c.id,p=Nb[a](h,v,c,i);p&&(et(p,c.option),s.series.push(p));var d=c.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=c.getReferringComponents(m,Jt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=a==="bar"}}};D(t7,function(c){vt(c,a)>=0&&D(c,function(h){i.setIconStatus(h,"normal")})}),i.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=ct({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(ar),Nb={line:function(r,e,t,n){if(r==="bar")return ct({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return ct({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var a=t.get("stack")===Pb;if(r==="line"||r==="bar")return n.setIconStatus("stack",a?"normal":"emphasis"),ct({id:e,stack:a?"":Pb},n.get(["option","stack"])||{},!0)}};rn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const r7=e7;var sh=new Array(60).join("-"),Ao=" ";function n7(r){var e={},t=[],n=[];return r.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function a7(r){var e=[];return D(r,function(t,n){var a=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(G(t.series,function(v){return v.name})),l=[a.model.getCategories()];D(t.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(Ao)],f=0;f<l[0].length;f++){for(var c=[],h=0;h<l.length;h++)c.push(l[h][f]);u.push(c.join(Ao))}e.push(u.join(`
50
50
  `))}),e.join(`
51
51
 
52
52
  `+sh+`
53
53
 
54
- `)}function iY(r){return G(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Ao:"")+a.join(Ao))}),n.join(`
54
+ `)}function i7(r){return G(r,function(e){var t=e.getRawData(),n=[e.name],a=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];n.push((s?s+Ao:"")+a.join(Ao))}),n.join(`
55
55
  `)}).join(`
56
56
 
57
57
  `+sh+`
58
58
 
59
- `)}function oY(r){var e=nY(r);return{value:Et([aY(e.seriesGroupByCategoryAxis),iY(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
59
+ `)}function o7(r){var e=n7(r);return{value:Et([a7(e.seriesGroupByCategoryAxis),i7(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
60
60
 
61
61
  `+sh+`
62
62
 
63
- `),meta:e.meta}}function fc(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function sY(r){var e=r.slice(0,r.indexOf(`
64
- `));if(e.indexOf(Ao)>=0)return!0}var sg=new RegExp("["+Ao+"]+","g");function lY(r){for(var e=r.split(/\n+/g),t=fc(e.shift()).split(sg),n=[],a=G(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=fc(e[i]).split(sg);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function uY(r){for(var e=r.split(/\n+/g),t=fc(e.shift()),n=[],a=0;a<e.length;a++){var i=fc(e[a]);if(!!i){var o=i.split(sg),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function fY(r,e){var t=r.split(new RegExp(`
63
+ `),meta:e.meta}}function fc(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s7(r){var e=r.slice(0,r.indexOf(`
64
+ `));if(e.indexOf(Ao)>=0)return!0}var sg=new RegExp("["+Ao+"]+","g");function l7(r){for(var e=r.split(/\n+/g),t=fc(e.shift()).split(sg),n=[],a=G(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=fc(e[i]).split(sg);n.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:n}}function u7(r){for(var e=r.split(/\n+/g),t=fc(e.shift()),n=[],a=0;a<e.length;a++){var i=fc(e[a]);if(!!i){var o=i.split(sg),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[a]={name:s,value:[]},l=n[a].value):l=n[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[a].value=l[0]:n[a]=l[0])}}return{name:t,data:n}}function f7(r,e){var t=r.split(new RegExp(`
65
65
  *`+sh+`
66
- *`,"g")),n={series:[]};return D(t,function(a,i){if(sY(a)){var o=lY(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=uY(a);n.series.push(o)}}),n}var cY=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.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")||"#fff";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 c=i.get("optionToContent"),h=i.get("contentToOption"),v=oY(t);if(j(c)){var p=c(n.getOption());W(p)?u.innerHTML=p:yo(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.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 b=this;function x(){a.removeChild(o),b._dom=null}Fp(_,"click",x),Fp(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){process.env.NODE_ENV!=="production"&&Ft("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),x();return}var w;try{j(h)?w=h(u,n.getOption()):w=fY(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.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=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(ar);function hY(r,e){return G(r,function(t,n){var a=e&&e[n];if(K(a)&&!z(a)){var i=K(t)&&!z(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=et(t,a),o&&delete t.name,t}else return t})}rn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];D(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(V({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:hY(n.data,i)})}}),e.mergeOption(et({series:t},r.newOption))});const vY=cY;var OI=D,kI=Ct();function pY(r,e){var t=wm(r);OI(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function dY(r){var e=wm(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return OI(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function gY(r){kI(r).snapshots=null}function yY(r){return wm(r).length}function wm(r){var e=kI(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var mY=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){gY(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(ar);rn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const _Y=mY;var SY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],xY=function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=Rb(t,e);D(bY,function(o,s){(!n||!n.include||vt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=_p[n.brushType](0,i,a);n.__rangeOffset={offset:Bb[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){D(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&D(i.coordSyses,function(o){var s=_p[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){D(e,function(n){var a=this.findTargetInfo(n,t);if(process.env.NODE_ENV!=="production"&&(J(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),J(!a||a!==!0||n.range,"range must be specified in global brush.")),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=_p[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Bb[n.brushType](i.values,o.offset,wY(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:HL(a),isTargetByCursor:WL(a,e,n.coordSysModel),getLinearBrushOtherExtent:$L(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&vt(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=Rb(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Ob.length;l++)if(Ob[l](a,o))return o}return!0},r}();function lg(r){return r[0]>r[1]&&r.reverse(),r}function Rb(r,e){return zs(r,e,{includeMainTypes:SY})}var bY={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=X(),o={},s={};!t&&!n&&!a||(D(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,h){(vt(t,c.getAxis("x").model)>=0||vt(n,c.getAxis("y").model)>=0)&&f.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:kb.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){D(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:kb.geo})})}},Ob=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],kb={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(li(r)),e}},_p={lineX:ot(Vb,0),lineY:ot(Vb,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[lg([a[0],i[0]]),lg([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=G(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Vb(r,e,t,n){process.env.NODE_ENV!=="production"&&J(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=t.getAxis(["x","y"][r]),i=lg(G([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Bb={lineX:ot(zb,0),lineY:ot(zb,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function zb(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function wY(r,e){var t=Gb(r),n=Gb(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Gb(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const Tm=xY;var ug=D,TY=YP("toolbox-dataZoom_"),CY=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new am(a.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),MY(t,n,this,i,a),AY(t,n)},e.prototype.onclick=function(t,n,a){DY[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Tm(Cm(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),pY(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,p=l(u,v,i),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=Ei(0,c.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,f.componentIndex);p&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var n=[];ug(t,function(a,i){n.push(nt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(ar),DY={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(dY(this.ecModel))}};function Cm(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function AY(r,e){r.setIconStatus("back",yY(e)>1?"emphasis":"normal")}function MY(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Tm(Cm(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}DO("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=Cm(n),o=zs(r,i);ug(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ug(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:TY+u+c};h[f]=c,a.push(h)}return a});const LY=CY;function IY(r){r.registerComponentModel(Z7),r.registerComponentView(K7),oo("saveAsImage",Q7),oo("magicType",rY),oo("dataView",vY),oo("dataZoom",LY),oo("restore",_Y),yt(U7)}var EY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(xt);const PY=EY;function VI(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function BI(r){if(!!wt.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var zI=BI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),NY=BI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function GI(r,e){if(!r)return e;e=hD(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function RY(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var OY=GI(NY,"transition"),Dm=GI(zI,"transform"),kY="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(wt.transform3dSupported?"will-change:transform;":"");function VY(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function BY(r,e,t){if(!W(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=mi(e);var i=VY(t),o=Math.max(Math.round(a)*1.5,6),s="",l=Dm+":",u;vt(["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,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var p=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+d.join("")+'"></div>'}function zY(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,a="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,a+=wt.transformSupported?","+Dm+n:",left"+n+",top"+n),OY+":"+a}function Fb(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!wt.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=wt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+Dm+":"+o+";":[["top",0],["left",0],[zI,o]]}function GY(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),D(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function FY(r,e,t){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=ZD(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&a&&n.push(zY(a,t)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(v){var p="border-"+v,d=hD(p),g=r.get(d);g!=null&&n.push(p+":"+g+(v==="color"?"":"px"))}),n.push(GY(f)),c!=null&&n.push("padding:"+Vo(c).join("px ")+"px"),n.join(";")+";"}function Hb(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&d2(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var HY=function(){function r(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,wt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;Hb(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;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=i.handler,f=i.painter.getViewportRoot();Qe(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(e){var t=this._container,n=RY(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=kY+FY(e,!this._firstShow,this._longHide)+Fb(i[0],i[1],!0)+("border-color:"+mi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(W(i)&&n.get("trigger")==="item"&&!VI(n)&&(s=BY(n,a,i)),W(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)yo(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var n=this._styleCoord;if(Hb(n,this._zr,this._appendToBody,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=Fb(n[0],n[1]);D(i,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",wt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const $Y=HY;var WY=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Wb(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;K(e)&&Lt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Dt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ZD(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=$b(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;Wb(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=Fn(i.borderWidth||0),s=$b(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Fn(r){return Math.max(0,r)}function $b(r){var e=Fn(r.shadowBlur||0),t=Fn(r.shadowOffsetX||0),n=Fn(r.shadowOffsetY||0);return{left:Fn(e-t),right:Fn(e+t),top:Fn(e-n),bottom:Fn(e+n)}}function Wb(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const UY=WY;var YY=new Tt({shape:{x:-1,y:-1,width:2,height:2}}),ZY=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(wt.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=QP(a.get("renderMode"));this._tooltipContent=i==="richText"?new UY(n):new $Y(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(t,n,a){if(!(wt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?$o(this,"_updatePosition",50,"fixRate"):sl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");wI("itemTooltip",this._api,Y(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||wt.node||!a.getDom())){var o=Ub(i,a);this._ticket="";var s=i.dataByCoordSys,l=KY(i,n,a);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=YY;f.x=i.x,f.y=i.y,f.update(),it(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(t,n,a,i))return;var c=TI(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,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(Ub(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=ys([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(!!i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;Qa(a,function(u){if(it(u).dataIndex!=null)return s=u,!0;if(it(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,n):l?this._showComponentItemTooltip(t,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=Y(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ys([n.tooltipOption],i),l=this._renderMode,u=[],f=oe("section",{blocks:[],noHeader:!0}),c=[],h=new nv;D(t,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=SI(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=oe("section",{header:x,noHeader:!br(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=My(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",mi(M.color),l);var L=D_(C.formatTooltip(A,!0,null)),I=L.frag;if(I){var E=ys([C],i).get("valueFormatter");w.blocks.push(E?V({valueFormatter:E},I):I)}L.text&&c.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,p=s.get("order"),d=P_(f,h,l,p,a.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var g=l==="richText"?`
66
+ *`,"g")),n={series:[]};return D(t,function(a,i){if(s7(a)){var o=l7(a),s=e[i],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=u7(a);n.series.push(o)}}),n}var c7=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var a=n.getDom(),i=this.model;this._dom&&a.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")||"#fff";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 c=i.get("optionToContent"),h=i.get("contentToOption"),v=o7(t);if(j(c)){var p=c(n.getOption());W(p)?u.innerHTML=p:yo(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.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 b=this;function x(){a.removeChild(o),b._dom=null}Fp(_,"click",x),Fp(S,"click",function(){if(h==null&&c!=null||h!=null&&c==null){process.env.NODE_ENV!=="production"&&Ft("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),x();return}var w;try{j(h)?w=h(u,n.getOption()):w=f7(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.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=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(ar);function h7(r,e){return G(r,function(t,n){var a=e&&e[n];if(K(a)&&!z(a)){var i=K(t)&&!z(t);i||(t={value:t});var o=a.name!=null&&t.name==null;return t=et(t,a),o&&delete t.name,t}else return t})}rn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];D(r.newOption.series,function(n){var a=e.getSeriesByName(n.name)[0];if(!a)t.push(V({type:"scatter"},n));else{var i=a.get("data");t.push({name:n.name,data:h7(n.data,i)})}}),e.mergeOption(et({series:t},r.newOption))});const v7=c7;var OI=D,kI=Ct();function p7(r,e){var t=wm(r);OI(e,function(n,a){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[a])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function d7(r){var e=wm(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return OI(t,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){n[i]=a;break}}),n}function g7(r){kI(r).snapshots=null}function y7(r){return wm(r).length}function wm(r){var e=kI(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var m7=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){g7(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return n},e}(ar);rn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const _7=m7;var S7=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],x7=function(){function r(e,t,n){var a=this;this._targetInfoList=[];var i=Rb(t,e);D(b7,function(o,s){(!n||!n.include||vt(n.include,s)>=0)&&o(i,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,a,i){if((n.coordRanges||(n.coordRanges=[])).push(a),!n.coordRange){n.coordRange=a;var o=_p[n.brushType](0,i,a);n.__rangeOffset={offset:Bb[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){D(e,function(a){var i=this.findTargetInfo(a,t);i&&i!==!0&&D(i.coordSyses,function(o){var s=_p[a.brushType](1,o,a.range,!0);n(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){D(e,function(n){var a=this.findTargetInfo(n,t);if(process.env.NODE_ENV!=="production"&&(J(!a||a===!0||n.coordRange,"coordRange must be specified when coord index specified."),J(!a||a!==!0||n.range,"range must be specified in global brush.")),n.range=n.range||[],a&&a!==!0){n.panelId=a.panelId;var i=_p[n.brushType](0,a.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Bb[n.brushType](i.values,o.offset,w7(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(n){var a=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:HL(a),isTargetByCursor:WL(a,e,n.coordSysModel),getLinearBrushOtherExtent:$L(a)}})},r.prototype.controlSeries=function(e,t,n){var a=this.findTargetInfo(e,n);return a===!0||a&&vt(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,a=Rb(t,e),i=0;i<n.length;i++){var o=n[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Ob.length;l++)if(Ob[l](a,o))return o}return!0},r}();function lg(r){return r[0]>r[1]&&r.reverse(),r}function Rb(r,e){return zs(r,e,{includeMainTypes:S7})}var b7={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,a=r.gridModels,i=X(),o={},s={};!t&&!n&&!a||(D(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),D(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),D(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];D(u.getCartesians(),function(c,h){(vt(t,c.getAxis("x").model)>=0||vt(n,c.getAxis("y").model)>=0)&&f.push(c)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:kb.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){D(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:kb.geo})})}},Ob=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],kb={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(li(r)),e}},_p={lineX:ot(Vb,0),lineY:ot(Vb,1),rect:function(r,e,t,n){var a=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),i=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[lg([a[0],i[0]]),lg([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var a=[[1/0,-1/0],[1/0,-1/0]],i=G(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function Vb(r,e,t,n){process.env.NODE_ENV!=="production"&&J(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var a=t.getAxis(["x","y"][r]),i=lg(G([0,1],function(s){return e?a.coordToData(a.toLocalCoord(n[s]),!0):a.toGlobalCoord(a.dataToCoord(n[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var Bb={lineX:ot(zb,0),lineY:ot(zb,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return G(r,function(n,a){return[n[0]-t[0]*e[a][0],n[1]-t[1]*e[a][1]]})}};function zb(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function w7(r,e){var t=Gb(r),n=Gb(e),a=[t[0]/n[0],t[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function Gb(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const Tm=x7;var ug=D,T7=YP("toolbox-dataZoom_"),C7=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a,i){this._brushController||(this._brushController=new am(a.getZr()),this._brushController.on("brush",Y(this._onBrush,this)).mount()),M7(t,n,this,i,a),A7(t,n)},e.prototype.onclick=function(t,n,a){D7[a].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new Tm(Cm(this.model),i,{include:["grid"]});o.matchOutputRanges(n,i,function(u,f,c){if(c.type==="cartesian2d"){var h=u.brushType;h==="rect"?(s("x",c,f[0]),s("y",c,f[1])):s({lineX:"x",lineY:"y"}[h],c,f)}}),p7(i,a),this._dispatchZoomAction(a);function s(u,f,c){var h=f.getAxis(u),v=h.model,p=l(u,v,i),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(c=Ei(0,c.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:c[0],endValue:c[1]})}function l(u,f,c){var h;return c.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,f.componentIndex);p&&(h=v)}),h}},e.prototype._dispatchZoomAction=function(t){var n=[];ug(t,function(a,i){n.push(nt(a))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},e}(ar),D7={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(d7(this.ecModel))}};function Cm(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function A7(r,e){r.setIconStatus("back",y7(e)>1?"emphasis":"normal")}function M7(r,e,t,n,a){var i=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(i=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new Tm(Cm(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}DO("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),a=[],i=Cm(n),o=zs(r,i);ug(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),ug(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var c=l.componentIndex,h={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:T7+u+c};h[f]=c,a.push(h)}return a});const L7=C7;function I7(r){r.registerComponentModel(ZY),r.registerComponentView(KY),oo("saveAsImage",QY),oo("magicType",r7),oo("dataView",v7),oo("dataZoom",L7),oo("restore",_7),yt(UY)}var E7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(xt);const P7=E7;function VI(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function BI(r){if(!!wt.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var zI=BI(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),N7=BI(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function GI(r,e){if(!r)return e;e=hD(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function R7(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var O7=GI(N7,"transition"),Dm=GI(zI,"transform"),k7="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(wt.transform3dSupported?"will-change:transform;":"");function V7(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function B7(r,e,t){if(!W(t)||t==="inside")return"";var n=r.get("backgroundColor"),a=r.get("borderWidth");e=mi(e);var i=V7(t),o=Math.max(Math.round(a)*1.5,6),s="",l=Dm+":",u;vt(["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,c=o+a,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*a)/2+Math.SQRT2*a-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var p=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+d.join("")+'"></div>'}function z7(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,a="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,a+=wt.transformSupported?","+Dm+n:",left"+n+",top"+n),O7+":"+a}function Fb(r,e,t){var n=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!wt.transformSupported)return t?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=wt.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return t?"top:0;left:0;"+Dm+":"+o+";":[["top",0],["left",0],[zI,o]]}function G7(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var a=r.get("textShadowColor"),i=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),D(["decoration","align"],function(l){var u=r.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function F7(r,e,t){var n=[],a=r.get("transitionDuration"),i=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),c=ZD(r,"html"),h=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+h),e&&a&&n.push(z7(a,t)),i&&n.push("background-color:"+i),D(["width","color","radius"],function(v){var p="border-"+v,d=hD(p),g=r.get(d);g!=null&&n.push(p+":"+g+(v==="color"?"":"px"))}),n.push(G7(f)),c!=null&&n.push("padding:"+Vo(c).join("px ")+"px"),n.join(";")+";"}function Hb(r,e,t,n,a){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&d2(r,o,document.body,n,a)}else{r[0]=n,r[1]=a;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var H7=function(){function r(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,wt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;Hb(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;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=i.handler,f=i.painter.getViewportRoot();Qe(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(e){var t=this._container,n=R7(t,"position"),a=t.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=k7+F7(e,!this._firstShow,this._longHide)+Fb(i[0],i[1],!0)+("border-color:"+mi(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(W(i)&&n.get("trigger")==="item"&&!VI(n)&&(s=B7(n,a,i)),W(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)yo(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},r.prototype.moveTo=function(e,t){var n=this._styleCoord;if(Hb(n,this._zr,this._appendToBody,e,t),n[0]!=null&&n[1]!=null){var a=this.el.style,i=Fb(n[0],n[1]);D(i,function(o){a[o[0]]=o[1]})}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",wt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},r}();const $7=H7;var W7=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Wb(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,n,a,i){var o=this;K(e)&&Lt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Dt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ZD(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),D(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),D(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=$b(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var a=this._styleCoord;Wb(a,this._zr,e,t),e=a[0],t=a[1];var i=n.style,o=Fn(i.borderWidth||0),s=$b(i);n.x=e+o+s.left,n.y=t+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Y(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Fn(r){return Math.max(0,r)}function $b(r){var e=Fn(r.shadowBlur||0),t=Fn(r.shadowOffsetX||0),n=Fn(r.shadowOffsetY||0);return{left:Fn(e-t),right:Fn(e+t),top:Fn(e-n),bottom:Fn(e+n)}}function Wb(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const U7=W7;var Y7=new Tt({shape:{x:-1,y:-1,width:2,height:2}}),Z7=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){if(!(wt.node||!n.getDom())){var a=t.getComponent("tooltip"),i=this._renderMode=QP(a.get("renderMode"));this._tooltipContent=i==="richText"?new U7(n):new $7(n.getDom(),n,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(t,n,a){if(!(wt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?$o(this,"_updatePosition",50,"fixRate"):sl(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");wI("itemTooltip",this._api,Y(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,a=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,a,i){if(!(i.from===this.uid||wt.node||!a.getDom())){var o=Ub(i,a);this._ticket="";var s=i.dataByCoordSys,l=K7(i,n,a);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=Y7;f.x=i.x,f.y=i.y,f.update(),it(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(t,n,a,i))return;var c=TI(i,n),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,a,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(Ub(i,a))},e.prototype._manuallyAxisShowTip=function(t,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(!!u){var f=u.getData(),c=ys([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,n){var a=t.target,i=this._tooltipModel;if(!!i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){this._lastDataByCoordSys=null;var s,l;Qa(a,function(u){if(it(u).dataIndex!=null)return s=u,!0;if(it(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,n):l?this._showComponentItemTooltip(t,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var a=t.get("showDelay");n=Y(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},e.prototype._showAxisTooltip=function(t,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ys([n.tooltipOption],i),l=this._renderMode,u=[],f=oe("section",{blocks:[],noHeader:!0}),c=[],h=new nv;D(t,function(m){D(m.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=SI(b,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=oe("section",{header:x,noHeader:!br(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),D(_.seriesDataIndices,function(T){var C=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=C.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=My(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",mi(M.color),l);var L=D_(C.formatTooltip(A,!0,null)),I=L.frag;if(I){var E=ys([C],i).get("valueFormatter");w.blocks.push(E?V({valueFormatter:E},I):I)}L.text&&c.push(L.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=n.position,p=s.get("order"),d=P_(f,h,l,p,a.get("useUTC"),s.get("textStyle"));d&&c.unshift(d);var g=l==="richText"?`
67
67
 
68
- `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=it(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,p=t.positionDefault,d=ys([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new nv;y.marker=m.makeTooltipMarker("item",mi(y.color),v);var _=D_(u.formatTooltip(f,!1,c)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?P_(b?V({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=it(n),o=i.tooltipConfig,s=o.option||{};if(W(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=t.positionDefault,h=ys(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),p=Math.random()+"",d=new nv;this._showOrMove(h,function(){var g=nt(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,p,t.offsetX,t.offsetY,t.position,n,d)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),d=p.color;if(h)if(W(h)){var g=t.ecModel.get("useUTC"),y=z(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=zc(y.axisValue,v,g)),v=vD(v,a,!0)}else if(j(h)){var _=Y(function(S,b){S===this._ticket&&(c.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,t,d,l),c.show(t,d),this._updatePosition(t,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i){if(a==="axis"||z(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),j(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,f],contentSize:c.slice()})),z(n))a=H(n[0],u),i=H(n[1],f);else if(K(n)){var d=n;d.width=c[0],d.height=c[1];var g=re(d,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(W(n)&&l){var y=jY(n,p,c,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=XY(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=Yb(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=Yb(v)?c[1]/2:v==="bottom"?c[1]:0),VI(t)){var y=qY(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(h,v){var p=c[v]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){wt.node||!n.getDom()||(sl(this,"_updatePosition"),this._tooltipContent.dispose(),ag("itemTooltip",n))},e.type="tooltip",e}(Wt);function ys(r,e,t){var n=e.ecModel,a;t?(a=new kt(t,n,n),a=new kt(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof kt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(a=new kt(o,a,n)))}return a}function Ub(r,e){return r.dispatchAction||Y(e.dispatchAction,e)}function XY(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function qY(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function jY(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function Yb(r){return r==="center"||r==="middle"}function KY(r,e,t){var n=Gg(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Tl(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const JY=ZY;function QY(r){yt(Fl),r.registerComponentModel(PY),r.registerComponentView(JY),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var t9=["rect","polygon","keep","clear"];function e9(r,e){var t=Pt(r?r.brush:[]);if(!!t.length){var n=[];D(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;z(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),r9(s),e&&!s.length&&s.push.apply(s,t9)}}function r9(r){var e={};D(r,function(t){e[t]=1}),r.length=0,D(e,function(t,n){r.push(n)})}var Zb=D;function Xb(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function fg(r,e,t){var n={};return Zb(e,function(i){var o=n[i]=a();Zb(r[i],function(s,l){if(!!ce.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new ce(u),l==="opacity"&&(u=nt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ce(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function FI(r,e,t){var n;D(t,function(a){e.hasOwnProperty(a)&&Xb(e[a])&&(n=!0)}),n&&D(t,function(a){e.hasOwnProperty(a)&&Xb(e[a])?r[a]=nt(e[a]):delete r[a]})}function n9(r,e,t,n,a,i){var o={};D(r,function(c){var h=ce.prepareVisualTypes(e[c]);o[c]=h});var s;function l(c){return yy(t,s,c)}function u(c,h){nA(t,s,c,h)}i==null?t.each(f):t.each([i],f);function f(c,h){s=i==null?c:h;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=n.call(a,c),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(c,l,u)}}}function a9(r,e,t,n){var a={};return D(r,function(i){var o=ce.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return yy(s,c,b)}function f(b,x){nA(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var p=n!=null?h.get(l,c):c,d=t(p),g=e[d],y=a[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}function i9(r){var e=r.brushType,t={point:function(n){return qb[e].point(n,t,r)},rect:function(n){return qb[e].rect(n,t,r)}};return t}var qb={lineX:jb(0),lineY:jb(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Ua(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Ua(n,a,i)||Ua(n,a+o,i)||Ua(n,a,i+s)||Ua(n,a+o,i+s)||ht.create(r).contain(l[0],l[1])||As(a,i,a+o,i,n)||As(a,i,a,i+s,n)||As(a+o,i,a+o,i+s,n)||As(a,i+s,a+o,i+s,n))return!0}}};function jb(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return ms(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),ms(s[0],o)||ms(s[1],o)||ms(o[0],s)||ms(o[1],s)}}}}function ms(r,e){return e[0]<=r&&r<=e[1]}var Kb=["inBrush","outOfBrush"],Sp="__ecBrushSelect",cg="__ecInBrushSelectEvent";function HI(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Tm(e.option,r);t.setInputRanges(e.areas,r)})}function o9(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),HI(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:nt(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var d=G(o.areas,function(b){var x=f9[b.brushType],w=et({boundingRect:x?x(b):void 0},b);return w.selectors=i9(w),w}),g=fg(o.option,Kb,function(b){b.mappingMethod="fixed"});z(f)&&D(f,function(b){c[b]=1});function y(b){return f==="all"||!!c[b]}function m(b){return!!b.length}r.eachSeries(function(b,x){var w=v[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;p=p||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(h[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||u9(o,x))&&(D(d,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),p=p||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){Jb(b,w,T,C)&&(h[C]=1)})}}r.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=v[x],C=b.getData(),A=y(x)?function(M){return h[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return Jb(b,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?p:m(T))&&n9(Kb,g,C,A)})}),s9(e,a,i,n,t)}function s9(r,e,t,n,a){if(!!a){var i=r.getZr();if(!i[cg]){i[Sp]||(i[Sp]=l9);var o=$o(i,Sp,t,e);o(r,n)}}}function l9(r,e){if(!r.isDisposed()){var t=r.getZr();t[cg]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[cg]=!1}}function Jb(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function u9(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(z(t)?vt(t,e)<0:e!==t)}var f9={rect:function(r){return Qb(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&Qb(e)}};function Qb(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var c9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new am(n.getZr())).on("brush",Y(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){HI(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:nt(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:nt(a),$from:n})},e.type="brush",e}(Wt);const h9=c9;var v9="#ddd",p9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&FI(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:v9},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(J(z(t)),D(t,function(n){J(n.brushType,"Illegal areas")})),t&&(this.areas=G(t,function(n){return tw(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=tw(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(xt);function tw(r,e){return ct({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new kt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const d9=p9;var g9=["rect","polygon","lineX","lineY","keep","clear"],y9=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return D(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:g9.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(ar);const m9=y9;function _9(r){r.registerComponentView(h9),r.registerComponentModel(d9),r.registerPreprocessor(e9),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,o9),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xt),oo("brush",m9)}var S9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(xt),x9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ft(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Dt({style:Ot(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new Dt({style:Ot(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Of(p,"_"+t.get("target"))}),d&&v.on("click",function(){Of(d,"_"+t.get("subtarget"))}),it(f).eventData=it(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=re(m,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new Tt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Wt);function b9(r){r.registerComponentModel(S9),r.registerComponentView(x9)}var w9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=ee(Eo(u),""),h;K(u)?(h=nt(u),h.value=f):h=f,o.push(h),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Me([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(xt);const ew=w9;var $I=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=va(ew.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(ew);te($I,hy.prototype);const T9=$I;var C9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Wt);const D9=C9;var A9=function(r){R(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Nr);const M9=A9;var xp=Math.PI,rw=Ct(),L9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return oe("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=E9(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":W(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:xp/2},c=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),v=h.get("show",!0),p=v?h.get("itemSize"):0,d=v?h.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*xp/180;var m,_,S,b=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,A=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[A-p,0],A-=g)):(x&&(m=[A-p,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-p,0],A-=g));var M=[C,A];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=cr(),l=o.x,u=o.y+o.height;jr(s,s,[-l,-u]),Ci(s,s,-xp/2),jr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),h=m(i.getBoundingRect()),v=[a.x,a.y],p=[i.x,i.y];p[0]=v[0]=f[0][0];var d=t.labelPosOpt;if(d==null||W(d)){var g=d==="+"?0:1;_(v,c,f,1,g),_(p,h,f,1,1-g)}else{var g=d>=0?0:1;_(v,c,f,1,g),p[1]=v[1]+d}a.setPosition(v),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),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,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=I9(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new M9("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new at;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(!!i.get(["lineStyle","show"])){var s=new le({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new le({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:et({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:Y(o._changeTimeline,o,u.value)},g=nw(c,h,n,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),si(g);var y=it(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new Dt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(o._changeTimeline,o,c),silent:!1,style:Ot(v,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ot(p),y.ensureState("progress").style=Ot(d),n.add(y),si(y),rw(y).dataIndex=c,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);h(t.nextBtnPosition,"next",Y(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,f?"stop":"play",Y(this._handlePlayClick,this,!f),!0);function h(v,p,d,g){if(!!v){var y=Mr(ft(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=P9(i,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,n.add(_),si(_)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=Y(u._handlePointerDrag,u),c.ondragend=Y(u._handlePointerDragend,u),aw(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){aw(c,u._progressLine,s,a,i)}};this._currentPointer=nw(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=sr(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return Ar(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",rw(a[i]).dataIndex<=t)},e.type="timeline.slider",e}(D9);function I9(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Ty({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new UA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new la}}function E9(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function P9(r,e,t,n){var a=n.style,i=Ml(r.get(["controlStyle",e]),n||{},new ht(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function nw(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=Qt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=ct({rectHover:!0,z2:100},n,!0);var u=Wo(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Ai(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function aw(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const N9=L9;function R9(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),et({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function O9(r){var e=r&&r.timeline;z(e)||(e=e?[e]:[]),D(e,function(t){!t||k9(t)})}function k9(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),iw(r),Xa(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});Xa(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!Xa(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}D(r.data||[],function(a){K(a)&&!z(a)&&(!Xa(a,"value")&&Xa(a,"name")&&(a.value=a.name),iw(a))})}function iw(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!Xa(a,s)&&(a[s]=o)}),t.label&&!Xa(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function Xa(r,e){return r.hasOwnProperty(e)}function V9(r){r.registerComponentModel(T9),r.registerComponentView(N9),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),R9(r),r.registerPreprocessor(O9)}function Am(r,e){if(!r)return!1;for(var t=z(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function zu(r){pi(r,"label",["show"])}var Gu=Ct(),WI=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(wt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Gu(s)[o];if(!l||!l.data){Gu(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&zu(l),D(l.data,function(f){f instanceof Array?(zu(f[0]),zu(f[1])):zu(f)}),u=this.createMarkerModelFromSeries(l,this,n),V(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Gu(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return oe("section",{header:this.name,blocks:[oe("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,n){return Gu(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(xt);te(WI,hy.prototype);const ca=WI;var B9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(ca);const z9=B9;function hg(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function G9(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Fu(r,e,t,n,a,i){var o=[],s=sa(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=Mm(e,l,r),f=e.indicesOfNearest(l,u)[0];o[a]=e.get(t,f),o[i]=e.get(l,f);var c=e.get(n,f),h=Wr(e.get(n,f));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var bp={min:ot(Fu,"min"),max:ot(Fu,"max"),average:ot(Fu,"average"),median:ot(Fu,"median")};function Sl(r,e){if(!!e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!G9(e)&&!z(e.coord)&&z(a)){var i=UI(e,t,n,r);if(e=nt(e),e.type&&bp[e.type]&&i.baseAxis&&i.valueAxis){var o=vt(a,i.baseAxis.dim),s=vt(a,i.valueAxis.dim),l=bp[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(a))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)bp[u[f]]&&(u[f]=Mm(t,t.mapDimension(a[f]),u[f]));return e}}function UI(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(F9(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function F9(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function xl(r,e){return r&&r.containData&&e.coord&&!hg(e)?r.containData(e.coord):!0}function H9(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!hg(e)&&!hg(t)?r.containZone(e.coord,t.coord):!0}function YI(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return ta(o,e[i])}:function(t,n,a,i){return ta(t.value,e[i])}}function Mm(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var wp=Ct(),$9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=X()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){wp(s).keep=!1}),n.eachSeries(function(s){var l=ca.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!wp(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){wp(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;D(t,function(i){var o=ca.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?SC(l):Yg(l))})}})},e.type="marker",e}(Wt);const Lm=$9;function ow(r,e,t){var n=e.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),f=r.get(n.dimensions[1],a);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var W9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=ca.getMarkerModelFromSeries(i,"markPoint");o&&(ow(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Ol),c=U9(o,t,n);n.setData(c),ow(n.getData(),t,i),c.each(function(h){var v=c.getItemModel(h),p=v.getShallow("symbol"),d=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(j(p)||j(d)||j(g)||j(y)){var _=n.getRawValue(h),S=n.getDataParams(h);j(p)&&(p=p(_,S)),j(d)&&(d=d(_,S)),j(g)&&(g=g(_,S)),j(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=Il(l,"color");b.fill||(b.fill=x),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){it(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(Lm);function U9(r,e,t){var n;r?n=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return V(V({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Me(n,t),i=G(t.get("data"),ot(Sl,e));r&&(i=Et(i,ot(xl,r)));var o=YI(!!r,n);return a.initData(i,null,o),a}const Y9=W9;function Z9(r){r.registerComponentModel(z9),r.registerComponentView(Y9),r.registerPreprocessor(function(e){Am(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var X9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ca);const q9=X9;var Hu=Ct(),j9=function(r,e,t,n){var a=r.getData(),i;if(z(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=Kt(n.yAxis,n.xAxis);else{var u=UI(n,a,e,r);s=u.valueAxis;var f=EA(a,u.valueDataDim);l=Mm(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=nt(n),p={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,p.coord[h]=1/0;var d=t.get("precision");d>=0&&At(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[c]=p.coord[c]=l,i=[v,p,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Cr("Invalid markLine data."),i=[]}var g=[Sl(r,i[0]),Sl(r,i[1]),V({},i[2])];return g[2].type=g[2].type||null,ct(g[2],g[0]),ct(g[2],g[1]),g};function cc(r){return!isNaN(r)&&!isFinite(r)}function sw(r,e,t,n){var a=1-r,i=n.dimensions[r];return cc(e[a])&&cc(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function K9(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(sw(1,t,n,r)||sw(0,t,n,r)))return!0}return xl(r,e[0])&&xl(r,e[1])}function Tp(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),a.getWidth()),u=H(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,c=r.get(f[0],e),h=r.get(f[1],e);s=i.dataToPoint([c,h])}if(Li(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;cc(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):cc(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var J9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=ca.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Hu(o).from,u=Hu(o).to;l.each(function(f){Tp(l,f,!0,i,a),Tp(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Jy);this.group.add(f.group);var c=Q9(o,t,n),h=c.from,v=c.to,p=c.line;Hu(n).from=h,Hu(n).to=v,n.setData(p);var d=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),c.line.eachItemGraphicEl(function(S){it(S).dataModel=n,S.traverse(function(b){it(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);Tp(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Il(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ft(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ft(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ft(w.get("symbolSize"),g[x?0:1]),symbol:ft(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(Lm);function Q9(r,e,t){var n;r?n=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return V(V({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Me(n,t),i=new Me(n,t),o=new Me([],t),s=G(t.get("data"),ot(j9,e,r,t));r&&(s=Et(s,ot(K9,r)));var l=YI(!!r,n);return a.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const tZ=J9;function eZ(r){r.registerComponentModel(q9),r.registerComponentView(tZ),r.registerPreprocessor(function(e){Am(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var rZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ca);const nZ=rZ;var $u=Ct(),aZ=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Sl(r,a),s=Sl(r,i),l=o.coord,u=s.coord;l[0]=Kt(l[0],-1/0),l[1]=Kt(l[1],-1/0),u[0]=Kt(u[0],1/0),u[1]=Kt(u[1],1/0);var f=Mg([{},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 hc(r){return!isNaN(r)&&!isFinite(r)}function lw(r,e,t,n){var a=1-r;return hc(e[a])&&hc(t[a])}function iZ(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Li(r,"cartesian2d")?t&&n&&(lw(1,t,n)||lw(0,t,n))?!0:H9(r,a,i):xl(r,a)||xl(r,i)}function uw(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),a.getWidth()),u=H(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],e),c=r.getValues(["x1","y1"],e),h=i.clampData(f),v=i.clampData(c),p=[];t[0]==="x0"?p[0]=h[0]>v[0]?c[0]:f[0]:p[0]=h[0]>v[0]?f[0]:c[0],t[1]==="y0"?p[1]=h[1]>v[1]?c[1]:f[1]:p[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(p,t,!0)}else{var d=r.get(t[0],e),g=r.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Li(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);hc(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):hc(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var fw=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],oZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=ca.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(fw,function(c){return uw(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var c=sZ(o,t,n);n.setData(c),c.each(function(h){var v=G(fw,function(T){return uw(c,h,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],_=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];sr(m),sr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;c.setItemLayout(h,{points:v,allClipped:b});var x=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Il(l,"color");x.fill||(x.fill=w,W(x.fill)&&(x.fill=bf(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff($u(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var p=new Ge({shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var p=$u(f).data.getItemGraphicEl(v),d=c.getItemLayout(h);d.allClipped?p&&f.group.remove(p):(p?Mt(p,{shape:{points:d.points}},n,h):p=new Ge({shape:{points:d.points}}),c.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=$u(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var p=c.getItemModel(v),d=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),pe(h,ie(p),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:W(d.fill)?bf(d.fill,1):"#000"}),ve(h,p),$t(h,null,null,p.get(["emphasis","disabled"])),it(h).dataModel=n}),$u(f).data=c,f.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e}(Lm);function sZ(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return V(V({},c),{name:u,ordinalMeta:null})});a=G(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new Me(a,t)}else a=[{name:"value",type:"float"}],n=new Me(a,t);var s=G(t.get("data"),ot(aZ,e,r,t));r&&(s=Et(s,ot(iZ,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return ta(v,a[h])}:function(u,f,c,h){return ta(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const lZ=oZ;function uZ(r){r.registerComponentModel(nZ),r.registerComponentView(lZ),r.registerPreprocessor(function(e){Am(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var fZ=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},cZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),z(n)&&D(n,function(i,o){W(i)&&(i={type:i}),n[o]=ct(i,fZ(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&zg(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=X(),s=G(i,function(l){return(W(l)||At(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new kt(l,this,this.ecModel))},this);this._data=Et(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;D(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;D(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&vt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(xt);const vg=cZ;var Ji=ot,pg=D,Wu=at,hZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Wu),this.group.add(this._selectorGroup=new Wu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var f=t.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=t.get("padding"),v=re(f,c,h),p=this.layoutInner(t,o,v,i,l,u),d=re(et({width:p.width,height:p.height},f),c,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=RI(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),f=X(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),pg(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===`
68
+ `:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,h)})},e.prototype._showSeriesItemTooltip=function(t,n,a){var i=this._ecModel,o=it(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,p=t.positionDefault,d=ys([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new nv;y.marker=m.makeTooltipMarker("item",mi(y.color),v);var _=D_(u.formatTooltip(f,!1,c)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?P_(b?V({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),a({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,a){var i=it(n),o=i.tooltipConfig,s=o.option||{};if(W(s)){var l=s;s={content:l,formatter:l}}var u=[s],f=this._ecModel.getComponent(i.componentMainType,i.componentIndex);f&&u.push(f),u.push({formatter:s.content});var c=t.positionDefault,h=ys(u,this._tooltipModel,c?{position:c}:null),v=h.get("content"),p=Math.random()+"",d=new nv;this._showOrMove(h,function(){var g=nt(h.get("formatterParams")||{});this._showTooltipContent(h,v,g,p,t.offsetX,t.offsetY,t.position,n,d)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,a,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var c=this._tooltipContent;c.setEnterable(t.get("enterable"));var h=t.get("formatter");l=l||t.get("position");var v=n,p=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor")),d=p.color;if(h)if(W(h)){var g=t.ecModel.get("useUTC"),y=z(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=h,m&&(v=zc(y.axisValue,v,g)),v=vD(v,a,!0)}else if(j(h)){var _=Y(function(S,b){S===this._ticket&&(c.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,c,a,u))},this);this._ticket=i,v=h(a,i,_)}else v=h;c.setContent(v,f,t,d,l),c.show(t,d),this._updatePosition(t,l,o,s,c,a,u)}},e.prototype._getNearestPoint=function(t,n,a,i){if(a==="axis"||z(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!z(n))return{color:i||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,a,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var c=o.getSize(),h=t.get("align"),v=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),j(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,f],contentSize:c.slice()})),z(n))a=H(n[0],u),i=H(n[1],f);else if(K(n)){var d=n;d.width=c[0],d.height=c[1];var g=re(d,{width:u,height:f});a=g.x,i=g.y,h=null,v=null}else if(W(n)&&l){var y=j7(n,p,c,t.get("borderWidth"));a=y[0],i=y[1]}else{var y=X7(a,i,o,u,f,h?null:20,v?null:20);a=y[0],i=y[1]}if(h&&(a-=Yb(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=Yb(v)?c[1]/2:v==="bottom"?c[1]:0),VI(t)){var y=q7(a,i,o,u,f);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===t.length;return o&&D(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(h,v){var p=c[v]||{},d=h.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&h.value===p.value&&h.axisType===p.axisType&&h.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(h.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){wt.node||!n.getDom()||(sl(this,"_updatePosition"),this._tooltipContent.dispose(),ag("itemTooltip",n))},e.type="tooltip",e}(Wt);function ys(r,e,t){var n=e.ecModel,a;t?(a=new kt(t,n,n),a=new kt(e.option,a,n)):a=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof kt&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(a=new kt(o,a,n)))}return a}function Ub(r,e){return r.dispatchAction||Y(e.dispatchAction,e)}function X7(r,e,t,n,a,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>n?r-=l+i:r+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function q7(r,e,t,n,a){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function j7(r,e,t,n){var a=t[0],i=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function Yb(r){return r==="center"||r==="middle"}function K7(r,e,t){var n=Gg(r).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Tl(e,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(!!o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=it(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const J7=Z7;function Q7(r){yt(Fl),r.registerComponentModel(P7),r.registerComponentView(J7),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var t9=["rect","polygon","keep","clear"];function e9(r,e){var t=Pt(r?r.brush:[]);if(!!t.length){var n=[];D(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var a=r&&r.toolbox;z(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),r9(s),e&&!s.length&&s.push.apply(s,t9)}}function r9(r){var e={};D(r,function(t){e[t]=1}),r.length=0,D(e,function(t,n){r.push(n)})}var Zb=D;function Xb(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function fg(r,e,t){var n={};return Zb(e,function(i){var o=n[i]=a();Zb(r[i],function(s,l){if(!!ce.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new ce(u),l==="opacity"&&(u=nt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ce(u))}})}),n;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function FI(r,e,t){var n;D(t,function(a){e.hasOwnProperty(a)&&Xb(e[a])&&(n=!0)}),n&&D(t,function(a){e.hasOwnProperty(a)&&Xb(e[a])?r[a]=nt(e[a]):delete r[a]})}function n9(r,e,t,n,a,i){var o={};D(r,function(c){var h=ce.prepareVisualTypes(e[c]);o[c]=h});var s;function l(c){return yy(t,s,c)}function u(c,h){nA(t,s,c,h)}i==null?t.each(f):t.each([i],f);function f(c,h){s=i==null?c:h;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=n.call(a,c),d=e[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(c,l,u)}}}function a9(r,e,t,n){var a={};return D(r,function(i){var o=ce.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(b){return yy(s,c,b)}function f(b,x){nA(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var p=n!=null?h.get(l,c):c,d=t(p),g=e[d],y=a[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}function i9(r){var e=r.brushType,t={point:function(n){return qb[e].point(n,t,r)},rect:function(n){return qb[e].rect(n,t,r)}};return t}var qb={lineX:jb(0),lineY:jb(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Ua(t.range,r[0],r[1])},rect:function(r,e,t){var n=t.range;if(!r||n.length<=1)return!1;var a=r.x,i=r.y,o=r.width,s=r.height,l=n[0];if(Ua(n,a,i)||Ua(n,a+o,i)||Ua(n,a,i+s)||Ua(n,a+o,i+s)||ht.create(r).contain(l[0],l[1])||As(a,i,a+o,i,n)||As(a,i,a,i+s,n)||As(a+o,i,a+o,i+s,n)||As(a,i+s,a+o,i+s,n))return!0}}};function jb(r){var e=["x","y"],t=["width","height"];return{point:function(n,a,i){if(n){var o=i.range,s=n[r];return ms(s,o)}},rect:function(n,a,i){if(n){var o=i.range,s=[n[e[r]],n[e[r]]+n[t[r]]];return s[1]<s[0]&&s.reverse(),ms(s[0],o)||ms(s[1],o)||ms(o[0],s)||ms(o[1],s)}}}}function ms(r,e){return e[0]<=r&&r<=e[1]}var Kb=["inBrush","outOfBrush"],Sp="__ecBrushSelect",cg="__ecInBrushSelectEvent";function HI(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Tm(e.option,r);t.setInputRanges(e.areas,r)})}function o9(r,e,t){var n=[],a,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),HI(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:nt(o.areas),selected:[]};n.push(l);var u=o.option,f=u.brushLink,c=[],h=[],v=[],p=!1;s||(a=u.throttleType,i=u.throttleDelay);var d=G(o.areas,function(b){var x=f9[b.brushType],w=et({boundingRect:x?x(b):void 0},b);return w.selectors=i9(w),w}),g=fg(o.option,Kb,function(b){b.mappingMethod="fixed"});z(f)&&D(f,function(b){c[b]=1});function y(b){return f==="all"||!!c[b]}function m(b){return!!b.length}r.eachSeries(function(b,x){var w=v[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;p=p||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(h[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||u9(o,x))&&(D(d,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),p=p||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){Jb(b,w,T,C)&&(h[C]=1)})}}r.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=v[x],C=b.getData(),A=y(x)?function(M){return h[M]?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return Jb(b,T,C,M)?(w.dataIndex.push(C.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(x)?p:m(T))&&n9(Kb,g,C,A)})}),s9(e,a,i,n,t)}function s9(r,e,t,n,a){if(!!a){var i=r.getZr();if(!i[cg]){i[Sp]||(i[Sp]=l9);var o=$o(i,Sp,t,e);o(r,n)}}}function l9(r,e){if(!r.isDisposed()){var t=r.getZr();t[cg]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[cg]=!1}}function Jb(r,e,t,n){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(r.brushSelector(n,t,o.selectors,o))return!0}}function u9(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(z(t)?vt(t,e)<0:e!==t)}var f9={rect:function(r){return Qb(r.range)},polygon:function(r){for(var e,t=r.range,n=0,a=t.length;n<a;n++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[n];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&Qb(e)}};function Qb(r){return new ht(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var c9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n,this.model,(this._brushController=new am(n.getZr())).on("brush",Y(this._onBrush,this)).mount()},e.prototype.render=function(t,n,a,i){this.model=t,this._updateController(t,n,a,i)},e.prototype.updateTransform=function(t,n,a,i){HI(n),this._updateController(t,n,a,i)},e.prototype.updateVisual=function(t,n,a,i){this.updateTransform(t,n,a,i)},e.prototype.updateView=function(t,n,a,i){this._updateController(t,n,a,i)},e.prototype._updateController=function(t,n,a,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var n=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:nt(a),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:nt(a),$from:n})},e.type="brush",e}(Wt);const h9=c9;var v9="#ddd",p9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&FI(a,t,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:v9},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(J(z(t)),D(t,function(n){J(n.brushType,"Illegal areas")})),t&&(this.areas=G(t,function(n){return tw(this.option,n)},this))},e.prototype.setBrushOption=function(t){this.brushOption=tw(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(xt);function tw(r,e){return ct({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new kt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const d9=p9;var g9=["rect","polygon","lineX","lineY","keep","clear"],y9=function(r){R(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,a){var i,o,s;n.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,D(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,n,a){this.render(t,n,a)},e.prototype.getIcons=function(){var t=this.model,n=t.get("icon",!0),a={};return D(t.get("type",!0),function(i){n[i]&&(a[i]=n[i])}),a},e.prototype.onclick=function(t,n,a){var i=this._brushType,o=this._brushMode;a==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var n={show:!0,type:g9.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return n},e}(ar);const m9=y9;function _9(r){r.registerComponentView(h9),r.registerComponentModel(d9),r.registerPreprocessor(e9),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,o9),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(n){n.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xt),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xt),oo("brush",m9)}var S9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(xt),x9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,n,a){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ft(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Dt({style:Ot(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=t.get("subtext"),v=new Dt({style:Ot(s,{text:h,fill:s.getTextColor(),y:c.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Of(p,"_"+t.get("target"))}),d&&v.on("click",function(){Of(d,"_"+t.get("subtarget"))}),it(f).eventData=it(v).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),h&&i.add(v);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=re(m,{width:a.getWidth(),height:a.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=i.getBoundingRect();var b=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new Tt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(Wt);function b9(r){r.registerComponentModel(S9),r.registerComponentView(x9)}var w9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,n=t.data||[],a=t.axisType,i=this._names=[],o;a==="category"?(o=[],D(n,function(u,f){var c=ee(Eo(u),""),h;K(u)?(h=nt(u),h.value=f):h=f,o.push(h),i.push(c)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Me([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(xt);const ew=w9;var $I=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=va(ew.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(ew);te($I,hy.prototype);const T9=$I;var C9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Wt);const D9=C9;var A9=function(r){R(e,r);function e(t,n,a,i){var o=r.call(this,t,n,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(Nr);const M9=A9;var xp=Math.PI,rw=Ct(),L9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,n){this.api=n},e.prototype.render=function(t,n,a){if(this.model=t,this.api=a,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return oe("nameValue",{noName:!0,value:f})},D(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,n){var a=t.get(["label","position"]),i=t.get("orient"),o=E9(t,n),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":W(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:xp/2},c=i==="vertical"?o.height:o.width,h=t.getModel("controlStyle"),v=h.get("show",!0),p=v?h.get("itemSize"):0,d=v?h.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*xp/180;var m,_,S,b=h.get("position",!0),x=v&&h.get("showPlayBtn",!0),w=v&&h.get("showPrevBtn",!0),T=v&&h.get("showNextBtn",!0),C=0,A=c;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[A-p,0],A-=g)):(x&&(m=[A-p,0],A-=g),w&&(_=[0,0],C+=g),T&&(S=[A-p,0],A-=g));var M=[C,A];return t.get("inverse")&&M.reverse(),{viewRect:o,mainLength:c,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:M,controlSize:p,controlGap:d}},e.prototype._position=function(t,n){var a=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=cr(),l=o.x,u=o.y+o.height;jr(s,s,[-l,-u]),Ci(s,s,-xp/2),jr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),c=m(a.getBoundingRect()),h=m(i.getBoundingRect()),v=[a.x,a.y],p=[i.x,i.y];p[0]=v[0]=f[0][0];var d=t.labelPosOpt;if(d==null||W(d)){var g=d==="+"?0:1;_(v,c,f,1,g),_(p,h,f,1,1-g)}else{var g=d>=0?0:1;_(v,c,f,1,g),p[1]=v[1]+d}a.setPosition(v),i.setPosition(p),a.rotation=i.rotation=t.rotation,y(a),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,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,n){var a=n.getData(),i=n.get("axisType"),o=I9(n,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new M9("value",o,t.axisExtent,i);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new at;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,a,i){var o=a.getExtent();if(!!i.get(["lineStyle","show"])){var s=new le({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new le({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:et({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],D(l,function(u){var f=a.dataToCoord(u.value),c=s.getItemModel(u.value),h=c.getModel("itemStyle"),v=c.getModel(["emphasis","itemStyle"]),p=c.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:Y(o._changeTimeline,o,u.value)},g=nw(c,h,n,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),si(g);var y=it(g);c.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,a,i){var o=this,s=a.getLabelModel();if(!!s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],D(u,function(f){var c=f.tickValue,h=l.getItemModel(c),v=h.getModel("label"),p=h.getModel(["emphasis","label"]),d=h.getModel(["progress","label"]),g=a.dataToCoord(f.tickValue),y=new Dt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Y(o._changeTimeline,o,c),silent:!1,style:Ot(v,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ot(p),y.ensureState("progress").style=Ot(d),n.add(y),si(y),rw(y).dataIndex=c,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,n,a,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),c=i.get("inverse",!0);h(t.nextBtnPosition,"next",Y(this._changeTimeline,this,c?"-":"+")),h(t.prevBtnPosition,"prev",Y(this._changeTimeline,this,c?"+":"-")),h(t.playPosition,f?"stop":"play",Y(this._handlePlayClick,this,!f),!0);function h(v,p,d,g){if(!!v){var y=Mr(ft(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=P9(i,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,n.add(_),si(_)}}},e.prototype._renderCurrentPointer=function(t,n,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(c){c.draggable=!0,c.drift=Y(u._handlePointerDrag,u),c.ondragend=Y(u._handlePointerDragend,u),aw(c,u._progressLine,s,a,i,!0)},onUpdate:function(c){aw(c,u._progressLine,s,a,i)}};this._currentPointer=nw(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,n,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var a=this._toAxisCoord(t)[0],i=this._axis,o=sr(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return Ar(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),a=1/0,i,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,a=this._tickLabels;if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",i<t);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",rw(a[i]).dataIndex<=t)},e.type="timeline.slider",e}(D9);function I9(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new Ty({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new UA({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new la}}function E9(r,e){return re(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function P9(r,e,t,n){var a=n.style,i=Ml(r.get(["controlStyle",e]),n||{},new ht(t[0],t[1],t[2],t[3]));return a&&i.setStyle(a),i}function nw(r,e,t,n,a,i){var o=e.get("color");if(a)a.setColor(o),t.add(a),i&&i.onUpdate(a);else{var s=r.get("symbol");a=Qt(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),n=ct({rectHover:!0,z2:100},n,!0);var u=Wo(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Ai(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var c=r.get("symbolRotate");return n.rotation=(c||0)*Math.PI/180||0,a.attr(n),a.updateTransform(),a}function aw(r,e,t,n,a,i){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=n.dataToCoord(a.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const N9=L9;function R9(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),et({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function O9(r){var e=r&&r.timeline;z(e)||(e=e?[e]:[]),D(e,function(t){!t||k9(t)})}function k9(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),iw(r),Xa(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});Xa(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!Xa(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}D(r.data||[],function(a){K(a)&&!z(a)&&(!Xa(a,"value")&&Xa(a,"name")&&(a.value=a.name),iw(a))})}function iw(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},a=n.normal||(n.normal={}),i={normal:1,emphasis:1};D(n,function(o,s){!i[s]&&!Xa(a,s)&&(a[s]=o)}),t.label&&!Xa(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function Xa(r,e){return r.hasOwnProperty(e)}function V9(r){r.registerComponentModel(T9),r.registerComponentView(N9),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),R9(r),r.registerPreprocessor(O9)}function Am(r,e){if(!r)return!1;for(var t=z(r)?r:[r],n=0;n<t.length;n++)if(t[n]&&t[n][e])return!0;return!1}function zu(r){pi(r,"label",["show"])}var Gu=Ct(),WI=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(wt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,n){this._mergeOption(t,n,!1,!1)},e.prototype._mergeOption=function(t,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Gu(s)[o];if(!l||!l.data){Gu(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&zu(l),D(l.data,function(f){f instanceof Array?(zu(f[0]),zu(f[1])):zu(f)}),u=this.createMarkerModelFromSeries(l,this,n),V(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Gu(s)[o]=u},this)},e.prototype.formatTooltip=function(t,n,a){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return oe("section",{header:this.name,blocks:[oe("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,n){return Gu(t)[n]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(xt);te(WI,hy.prototype);const ca=WI;var B9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(ca);const z9=B9;function hg(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function G9(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function Fu(r,e,t,n,a,i){var o=[],s=sa(e,n),l=s?e.getCalculationInfo("stackResultDimension"):n,u=Mm(e,l,r),f=e.indicesOfNearest(l,u)[0];o[a]=e.get(t,f),o[i]=e.get(l,f);var c=e.get(n,f),h=Wr(e.get(n,f));return h=Math.min(h,20),h>=0&&(o[i]=+o[i].toFixed(h)),[o,c]}var bp={min:ot(Fu,"min"),max:ot(Fu,"max"),average:ot(Fu,"average"),median:ot(Fu,"median")};function Sl(r,e){if(!!e){var t=r.getData(),n=r.coordinateSystem,a=n&&n.dimensions;if(!G9(e)&&!z(e.coord)&&z(a)){var i=UI(e,t,n,r);if(e=nt(e),e.type&&bp[e.type]&&i.baseAxis&&i.valueAxis){var o=vt(a,i.baseAxis.dim),s=vt(a,i.valueAxis.dim),l=bp[e.type](t,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!z(a))e.coord=[];else for(var u=e.coord,f=0;f<2;f++)bp[u[f]]&&(u[f]=Mm(t,t.mapDimension(a[f]),u[f]));return e}}function UI(r,e,t,n){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(F9(n,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function F9(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function xl(r,e){return r&&r.containData&&e.coord&&!hg(e)?r.containData(e.coord):!0}function H9(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!hg(e)&&!hg(t)?r.containZone(e.coord,t.coord):!0}function YI(r,e){return r?function(t,n,a,i){var o=i<2?t.coord&&t.coord[i]:t.value;return ta(o,e[i])}:function(t,n,a,i){return ta(t.value,e[i])}}function Mm(r,e,t){if(t==="average"){var n=0,a=0;return r.each(e,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var wp=Ct(),$9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=X()},e.prototype.render=function(t,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){wp(s).keep=!1}),n.eachSeries(function(s){var l=ca.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!wp(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(t){wp(t).keep=!0},e.prototype.toggleBlurSeries=function(t,n){var a=this;D(t,function(i){var o=ca.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?SC(l):Yg(l))})}})},e.type="marker",e}(Wt);const Lm=$9;function ow(r,e,t){var n=e.coordinateSystem;r.each(function(a){var i=r.getItemModel(a),o,s=H(i.get("x"),t.getWidth()),l=H(i.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(r.getValues(r.dimensions,a));else if(n){var u=r.get(n.dimensions[0],a),f=r.get(n.dimensions[1],a);o=n.dataToPoint([u,f])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),r.setItemLayout(a,o)})}var W9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=ca.getMarkerModelFromSeries(i,"markPoint");o&&(ow(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Ol),c=U9(o,t,n);n.setData(c),ow(n.getData(),t,i),c.each(function(h){var v=c.getItemModel(h),p=v.getShallow("symbol"),d=v.getShallow("symbolSize"),g=v.getShallow("symbolRotate"),y=v.getShallow("symbolOffset"),m=v.getShallow("symbolKeepAspect");if(j(p)||j(d)||j(g)||j(y)){var _=n.getRawValue(h),S=n.getDataParams(h);j(p)&&(p=p(_,S)),j(d)&&(d=d(_,S)),j(g)&&(g=g(_,S)),j(y)&&(y=y(_,S))}var b=v.getModel("itemStyle").getItemStyle(),x=Il(l,"color");b.fill||(b.fill=x),c.setItemVisual(h,{symbol:p,symbolSize:d,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(c),this.group.add(f.group),c.eachItemGraphicEl(function(h){h.traverse(function(v){it(v).dataModel=n})}),this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markPoint",e}(Lm);function U9(r,e,t){var n;r?n=G(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return V(V({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Me(n,t),i=G(t.get("data"),ot(Sl,e));r&&(i=Et(i,ot(xl,r)));var o=YI(!!r,n);return a.initData(i,null,o),a}const Y9=W9;function Z9(r){r.registerComponentModel(z9),r.registerComponentView(Y9),r.registerPreprocessor(function(e){Am(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var X9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(ca);const q9=X9;var Hu=Ct(),j9=function(r,e,t,n){var a=r.getData(),i;if(z(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=e.getAxis(n.yAxis!=null?"y":"x"),l=Kt(n.yAxis,n.xAxis);else{var u=UI(n,a,e,r);s=u.valueAxis;var f=EA(a,u.valueDataDim);l=Mm(a,f,o)}var c=s.dim==="x"?0:1,h=1-c,v=nt(n),p={coord:[]};v.type=null,v.coord=[],v.coord[h]=-1/0,p.coord[h]=1/0;var d=t.get("precision");d>=0&&At(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[c]=p.coord[c]=l,i=[v,p,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Cr("Invalid markLine data."),i=[]}var g=[Sl(r,i[0]),Sl(r,i[1]),V({},i[2])];return g[2].type=g[2].type||null,ct(g[2],g[0]),ct(g[2],g[1]),g};function cc(r){return!isNaN(r)&&!isFinite(r)}function sw(r,e,t,n){var a=1-r,i=n.dimensions[r];return cc(e[a])&&cc(t[a])&&e[r]===t[r]&&n.getAxis(i).containData(e[r])}function K9(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,n=e[1].coord;if(t&&n&&(sw(1,t,n,r)||sw(0,t,n,r)))return!0}return xl(r,e[0])&&xl(r,e[1])}function Tp(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get("x"),a.getWidth()),u=H(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,c=r.get(f[0],e),h=r.get(f[1],e);s=i.dataToPoint([c,h])}if(Li(i,"cartesian2d")){var v=i.getAxis("x"),p=i.getAxis("y"),f=i.dimensions;cc(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):cc(r.get(f[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var J9=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=ca.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Hu(o).from,u=Hu(o).to;l.each(function(f){Tp(l,f,!0,i,a),Tp(u,f,!1,i,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Jy);this.group.add(f.group);var c=Q9(o,t,n),h=c.from,v=c.to,p=c.line;Hu(n).from=h,Hu(n).to=v,n.setData(p);var d=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),m=n.get("symbolOffset");z(d)||(d=[d,d]),z(g)||(g=[g,g]),z(y)||(y=[y,y]),z(m)||(m=[m,m]),c.from.each(function(S){_(h,S,!0),_(v,S,!1)}),p.each(function(S){var b=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[h.getItemLayout(S),v.getItemLayout(S)]),b.stroke==null&&(b.stroke=h.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(S,"symbolOffset"),fromSymbolRotate:h.getItemVisual(S,"symbolRotate"),fromSymbolSize:h.getItemVisual(S,"symbolSize"),fromSymbol:h.getItemVisual(S,"symbol"),toSymbolKeepAspect:v.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(S,"symbolOffset"),toSymbolRotate:v.getItemVisual(S,"symbolRotate"),toSymbolSize:v.getItemVisual(S,"symbolSize"),toSymbol:v.getItemVisual(S,"symbol"),style:b})}),f.updateData(p),c.line.eachItemGraphicEl(function(S){it(S).dataModel=n,S.traverse(function(b){it(b).dataModel=n})});function _(S,b,x){var w=S.getItemModel(b);Tp(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Il(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:ft(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:ft(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:ft(w.get("symbolSize"),g[x?0:1]),symbol:ft(w.get("symbol",!0),d[x?0:1]),style:T})}this.markKeep(f),f.group.silent=n.get("silent")||t.get("silent")},e.type="markLine",e}(Lm);function Q9(r,e,t){var n;r?n=G(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return V(V({},f),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Me(n,t),i=new Me(n,t),o=new Me([],t),s=G(t.get("data"),ot(j9,e,r,t));r&&(s=Et(s,ot(K9,r)));var l=YI(!!r,n);return a.initData(G(s,function(u){return u[0]}),null,l),i.initData(G(s,function(u){return u[1]}),null,l),o.initData(G(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const tZ=J9;function eZ(r){r.registerComponentModel(q9),r.registerComponentView(tZ),r.registerPreprocessor(function(e){Am(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var rZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,n,a){return new e(t,n,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(ca);const nZ=rZ;var $u=Ct(),aZ=function(r,e,t,n){var a=n[0],i=n[1];if(!(!a||!i)){var o=Sl(r,a),s=Sl(r,i),l=o.coord,u=s.coord;l[0]=Kt(l[0],-1/0),l[1]=Kt(l[1],-1/0),u[0]=Kt(u[0],1/0),u[1]=Kt(u[1],1/0);var f=Mg([{},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 hc(r){return!isNaN(r)&&!isFinite(r)}function lw(r,e,t,n){var a=1-r;return hc(e[a])&&hc(t[a])}function iZ(r,e){var t=e.coord[0],n=e.coord[1],a={coord:t,x:e.x0,y:e.y0},i={coord:n,x:e.x1,y:e.y1};return Li(r,"cartesian2d")?t&&n&&(lw(1,t,n)||lw(0,t,n))?!0:H9(r,a,i):xl(r,a)||xl(r,i)}function uw(r,e,t,n,a){var i=n.coordinateSystem,o=r.getItemModel(e),s,l=H(o.get(t[0]),a.getWidth()),u=H(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var f=r.getValues(["x0","y0"],e),c=r.getValues(["x1","y1"],e),h=i.clampData(f),v=i.clampData(c),p=[];t[0]==="x0"?p[0]=h[0]>v[0]?c[0]:f[0]:p[0]=h[0]>v[0]?f[0]:c[0],t[1]==="y0"?p[1]=h[1]>v[1]?c[1]:f[1]:p[1]=h[1]>v[1]?f[1]:c[1],s=n.getMarkerPosition(p,t,!0)}else{var d=r.get(t[0],e),g=r.get(t[1],e),y=[d,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(Li(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),d=r.get(t[0],e),g=r.get(t[1],e);hc(d)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):hc(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var fw=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],oZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,n,a){n.eachSeries(function(i){var o=ca.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=G(fw,function(c){return uw(s,l,c,i,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,n,a,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new at});this.group.add(f.group),this.markKeep(f);var c=sZ(o,t,n);n.setData(c),c.each(function(h){var v=G(fw,function(T){return uw(c,h,T,t,i)}),p=o.getAxis("x").scale,d=o.getAxis("y").scale,g=p.getExtent(),y=d.getExtent(),m=[p.parse(c.get("x0",h)),p.parse(c.get("x1",h))],_=[d.parse(c.get("y0",h)),d.parse(c.get("y1",h))];sr(m),sr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;c.setItemLayout(h,{points:v,allClipped:b});var x=c.getItemModel(h).getModel("itemStyle").getItemStyle(),w=Il(l,"color");x.fill||(x.fill=w,W(x.fill)&&(x.fill=bf(x.fill,.4))),x.stroke||(x.stroke=w),c.setItemVisual(h,"style",x)}),c.diff($u(f).data).add(function(h){var v=c.getItemLayout(h);if(!v.allClipped){var p=new Ge({shape:{points:v.points}});c.setItemGraphicEl(h,p),f.group.add(p)}}).update(function(h,v){var p=$u(f).data.getItemGraphicEl(v),d=c.getItemLayout(h);d.allClipped?p&&f.group.remove(p):(p?Mt(p,{shape:{points:d.points}},n,h):p=new Ge({shape:{points:d.points}}),c.setItemGraphicEl(h,p),f.group.add(p))}).remove(function(h){var v=$u(f).data.getItemGraphicEl(h);f.group.remove(v)}).execute(),c.eachItemGraphicEl(function(h,v){var p=c.getItemModel(v),d=c.getItemVisual(v,"style");h.useStyle(c.getItemVisual(v,"style")),pe(h,ie(p),{labelFetcher:n,labelDataIndex:v,defaultText:c.getName(v)||"",inheritColor:W(d.fill)?bf(d.fill,1):"#000"}),ve(h,p),$t(h,null,null,p.get(["emphasis","disabled"])),it(h).dataModel=n}),$u(f).data=c,f.group.silent=n.get("silent")||t.get("silent")},e.type="markArea",e}(Lm);function sZ(r,e,t){var n,a,i=["x0","y0","x1","y1"];if(r){var o=G(r&&r.dimensions,function(u){var f=e.getData(),c=f.getDimensionInfo(f.mapDimension(u))||{};return V(V({},c),{name:u,ordinalMeta:null})});a=G(i,function(u,f){return{name:u,type:o[f%2].type}}),n=new Me(a,t)}else a=[{name:"value",type:"float"}],n=new Me(a,t);var s=G(t.get("data"),ot(aZ,e,r,t));r&&(s=Et(s,ot(iZ,r)));var l=r?function(u,f,c,h){var v=u.coord[Math.floor(h/2)][h%2];return ta(v,a[h])}:function(u,f,c,h){return ta(u.value,a[h])};return n.initData(s,null,l),n.hasItemOption=!0,n}const lZ=oZ;function uZ(r){r.registerComponentModel(nZ),r.registerComponentView(lZ),r.registerPreprocessor(function(e){Am(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var fZ=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},cZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,a=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),z(n)&&D(n,function(i,o){W(i)&&(i={type:i}),n[o]=ct(i,fZ(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<t.length;a++){var i=t[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(h)),h.length?n=n.concat(h):f=!0}else f=!0;f&&zg(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=X(),s=G(i,function(l){return(W(l)||At(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new kt(l,this,this.ecModel))},this);this._data=Et(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;D(i,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;D(t,function(a){n[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;D(t,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&vt(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(xt);const vg=cZ;var Ji=ot,pg=D,Wu=at,hZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Wu),this.group.add(this._selectorGroup=new Wu),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,n,a,l,s,u);var f=t.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},h=t.get("padding"),v=re(f,c,h),p=this.layoutInner(t,o,v,i,l,u),d=re(et({width:p.width,height:p.height},f),c,h);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=RI(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this.getContentGroup(),f=X(),c=n.get("selectedMode"),h=[];a.eachRawSeries(function(v){!v.get("legendHoverLink")&&h.push(v.id)}),pg(n.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===`
69
69
  `)){var g=new Wu;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(d)[0];if(!f.get(d)){if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,v,n,t,_,b,S,c,i);x.on("click",Ji(cw,d,null,i,h)).on("mouseover",Ji(dg,y.name,null,i,h)).on("mouseout",Ji(gg,y.name,null,i,h)),f.set(d,!0)}else a.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var C=T.indexOfName(d),A=T.getItemVisual(C,"style"),M=T.getItemVisual(C,"legendIcon"),L=Ue(A.fill);L&&L[3]===0&&(L[3]=.2,A=V(V({},A),{fill:pn(L,"rgba")}));var I=this._createItem(w,d,p,v,n,t,{},A,M,c,i);I.on("click",Ji(cw,null,d,i,h)).on("mouseover",Ji(dg,null,d,i,h)).on("mouseout",Ji(gg,null,d,i,h)),f.set(d,!0)}},this);process.env.NODE_ENV!=="production"&&(f.get(d)||console.warn(d+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,l)},e.prototype._createSelector=function(t,n,a,i,o){var s=this.getSelectorGroup();pg(t,function(u){var f=u.type,c=new Dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);pe(c,{normal:h,emphasis:v},{defaultText:u.title}),si(c)})},e.prototype._createItem=function(t,n,a,i,o,s,l,u,f,c,h){var v=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=vZ(f,i,l,u,v,g,h),b=new Wu,x=i.getModel("textStyle");if(j(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(pZ({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,C=s,A=o.get("formatter"),M=n;W(A)&&A?M=A.replace("{name}",n!=null?n:""):j(A)&&(M=A(n));var L=g?x.getTextColor():i.get("inactiveColor");b.add(new Dt({style:Ot(x,{text:M,x:T,y:d/2,fill:L,align:C,verticalAlign:"middle"},{inheritColor:L})}));var I=new Tt({shape:b.getBoundingRect(),invisible:!0}),E=i.getModel("tooltip");return E.get("show")&&Ro({el:I,componentModel:o,itemName:n,itemTooltipOption:E.option}),b.add(I),b.eachChild(function(P){P.silent=!0}),I.silent=!c,this.getContentGroup().add(b),si(b),b.__legendDataIndex=a,b},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ui(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ui("horizontal",u,t.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?v[d]+=f[g]+p:c[d]+=h[g]+p,v[1-d]+=f[y]/2-h[y]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+p+h[g],_[y]=Math.max(f[y],h[y]),_[m]=Math.min(0,h[m]+v[1-d]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Wt);function vZ(r,e,t,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),pg(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:xo(c,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:t).opacity),s(u,n);var h=e.getModel("lineStyle"),v=h.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!i){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?n.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function pZ(r){var e=r.icon||"roundRect",t=Qt(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function cw(r,e,t,n){gg(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),dg(r,e,t,n)}function ZI(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,a=e.length;n<a&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function dg(r,e,t,n){ZI(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function gg(r,e,t,n){ZI(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}const XI=hZ;function dZ(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function _s(r,e,t){var n={},a=r==="toggleSelected",i;return t.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](e.name):r==="allSelect"||r==="inverseSelect"?o[r]():(o[r](e.name),i=o.isSelected(e.name));var s=o.getData();D(s,function(l){var u=l.get("name");if(!(u===`
70
70
  `||u==="")){var f=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&f:n[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:n}:{name:e.name,selected:n}}function gZ(r){r.registerAction("legendToggleSelect","legendselectchanged",ot(_s,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ot(_s,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ot(_s,"inverseSelect")),r.registerAction("legendSelect","legendselected",ot(_s,"select")),r.registerAction("legendUnSelect","legendunselected",ot(_s,"unSelect"))}function qI(r){r.registerComponentModel(vg),r.registerComponentView(XI),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,dZ),r.registerSubTypeDefaulter("legend",function(){return"plain"}),gZ(r)}var yZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,n,a){var i=Bo(t);r.prototype.init.call(this,t,n,a),hw(this,t,i)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),hw(this,this.option,t)},e.type="legend.scroll",e.defaultOption=va(vg.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(vg);function hw(r,e,t){var n=r.getOrient(),a=[1,1];a[n.index]=0,oa(e,t,{type:"box",ignoreSize:!!a})}const mZ=yZ;var vw=at,Cp=["width","height"],Dp=["x","y"],_Z=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new vw),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vw)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,a,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,a,i,o,s,l);var f=this._controllerGroup,c=n.get("pageIconSize",!0),h=z(c)?c:[c,c];p("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Dt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=Ml(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:Y(u._pageGo,u,y,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,n,a,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Cp[u],c=Dp[u],h=Cp[1-u],v=Dp[1-u];o&&ui("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=nt(a);o&&(y[f]=a[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,h,v,c);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[c]-=_}m[f]+=d[f]+p,g[1-u]+=m[v]+m[h]/2-d[h]/2,m[h]=Math.max(m[h],d[h]),m[v]=Math.min(m[v],d[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,n,a,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;ui(t.get("orient"),f,t.get("itemGap"),i?a.width:null,i?null:a.height),ui("horizontal",h,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=h.getBoundingRect(),d=this._showController=v[o]>a[o],g=[-v.x,-v.y];n||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=ft(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=v[s]/2-p[s]/2,f.setPosition(g),c.setPosition(y),h.setPosition(m);var b={x:0,y:0};if(b[o]=d?a[o]:v[o],b[s]=Math.max(v[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),c.__rectSize=a[o],d){var x={x:0,y:0};x[o]=Math.max(a[o]-p[o]-_,0),x[s]=b[s],c.setClipPath(new Tt({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Mt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,n,a){var i=this._getPageInfo(n)[t];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var a=this._controllerGroup;D(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=n[c]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",h?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=a.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",W(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=Cp[o],l=Dp[o],u=this._findTargetItemIndex(n),f=a.children(),c=f[u],h=f.length,v=h?1:0,p={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return p;var d=S(c);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=h;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(n=s)}),n!=null?n:i},e.type="legend.scroll",e}(XI);const SZ=_Z;function xZ(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(n)})})}function bZ(r){yt(qI),r.registerComponentModel(mZ),r.registerComponentView(SZ),xZ(r)}function wZ(r){yt(qI),yt(bZ)}var TZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=va(_l.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(_l);const CZ=TZ;var Im=Ct();function DZ(r,e,t){Im(r).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function AZ(r,e){for(var t=Im(r).coordSysRecordMap,n=t.keys(),a=0;a<n.length;a++){var i=n[a],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||jI(t,o))}}}function jI(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function MZ(r,e){var t={model:e,containsPoint:ot(IZ,e),dispatchAction:ot(LZ,r),dataZoomInfoMap:null,controller:null},n=t.controller=new zl(r.getZr());return D(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(!!i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function LZ(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function IZ(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function EZ(r){var e,t="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return r.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[t+s]>n[t+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function PZ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Im(t),a=n.coordSysRecordMap||(n.coordSysRecordMap=X());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=EI(i);D(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,MZ(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=X());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.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){jI(a,i);return}var f=EZ(l);o.enable(f.controlType,f.opt),o.setPointerChecker(i.containsPoint),$o(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var NZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,n,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),DZ(a,t,{pan:Y(Ap.pan,this),zoom:Y(Ap.zoom,this),scrollMove:Y(Ap.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){AZ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(xm),Ap={zoom:function(r,e,t,n){var a=this.range,i=a.slice(),o=r.axisModels[0];if(!!o){var s=Mp[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ei(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:pw(function(r,e,t,n,a,i){var o=Mp[n]([i.oldX,i.oldY],[i.newX,i.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:pw(function(r,e,t,n,a,i){var o=Mp[n]([0,0],[i.scrollDelta,i.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function pw(r){return function(e,t,n,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(!!s){var l=r(o,s,e,t,n,a);if(Ei(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Mp={grid:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,n,a){var i=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,n,a){var i=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const RZ=NZ;function KI(r){bm(r),r.registerComponentModel(CZ),r.registerComponentView(RZ),PZ(r)}var OZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=va(_l.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(_l);const kZ=OZ;var Ss=Tt,dw=7,VZ=1,Lp=30,BZ=7,xs="horizontal",gw="vertical",zZ=5,GZ=["line","bar","candlestick","scatter"],FZ={easing:"cubicOut",duration:100,delay:0},HZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,n){this.api=n,this._onBrush=Y(this._onBrush,this),this._onBrushEnd=Y(this._onBrushEnd,this)},e.prototype.render=function(t,n,a,i){if(r.prototype.render.apply(this,arguments),$o(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){sl(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new at;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,a=t.get("brushSelect"),i=a?BZ:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===xs?{right:s.width-o.x-o.width,top:s.height-Lp-dw-i,width:o.width,height:Lp}:{right:dw,top:o.y,width:Lp,height:o.height},u=Bo(t.option);D(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var f=re(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===gw&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===xs&&!o?{scaleY:l?1:-1,scaleX:1}:a===xs&&o?{scaleY:l?1:-1,scaleX:-1}:a===gw&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=t.get("brushSelect");a.add(new Ss({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ss({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Y(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)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,a=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var v=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(C,A){if(_>0&&A%_){m+=y;return}var M=C==null||isNaN(C)||C==="",L=M?0:It(C,c,v,!0);M&&!S&&A?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,S=M}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var b=this.dataZoomModel;function x(C){var A=b.getModel(C?"selectedDataBackground":"dataBackground"),M=new at,L=new Ge({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new Fe({shape:{points:f},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(L),M.add(I),M}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();D(l,function(u){if(!a&&!(n!==!0&&vt(GZ,u.get("type"))<0)){var f=i.getComponent(Jn(o),s).axis,c=$Z(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c),a={thisAxis:f,series:u,thisDim:o,otherDim:c,otherAxisInverse:h}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=n.filler=new Ss({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new Ss({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:VZ,fill:"rgba(0,0,0,0)"}})),D([0,1],function(_){var S=l.get("handleIcon");!zf[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&Lr("handleIcon now needs 'path://' prefix when using a path string"));var b=Qt(S,-1,0,2,2,null,!0);b.attr({cursor:yw(this._orient),draggable:!0,drift:Y(this._onDragMove,this,_),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=H(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),si(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(a[_]=b);var C=l.getModel("textStyle");t.add(i[_]=new Dt({silent:!0,invisible:!0,style:Ot(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=h;if(c){var p=H(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new Tt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=Qt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=n.moveZone=new Tt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:yw(this._orient),drift:Y(this._onDragMove,this,"all"),ondragstart:Y(this._showDataInfo,this,!0),ondragend:Y(this._onDragEnd,this),onmouseover:Y(this._showDataInfo,this,!0),onmouseout:Y(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[It(t[0],[0,100],n,!0),It(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ei(n,i,o,a.get("zoomLock")?"all":t,s.minSpan!=null?It(s.minSpan,l,o,!0):null,s.maxSpan!=null?It(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=sr([It(i[0],o,l,!0),It(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,a=this._handleEnds,i=sr(a.slice()),o=this._size;D([0,1],function(v){var p=n.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/2})},this),n.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]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new Tt,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=sr(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var d=li(a.handles[p].parent,this.group),g=Vc(p===0?"right":"left",d),y=this._handleWidth/2+zZ,m=Ar([h[p]+(p===0?-y:y),this._size[1]/2],d);i[p].setStyle({x:m[0],y:m[1],verticalAlign:o===xs?"middle":g,align:o===xs?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return j(i)?i(t,s):W(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!t),a[1].attr("invisible",!t),n.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},e.prototype._onDragMove=function(t,n,a,i){this._dragging=!0,_n(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ar([n,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,a=t.offsetY;this._brushStart=new ut(n,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(!!this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=sr([It(a.x,o,s,!0),It(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(_n(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Ss({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?FZ:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=EI(this.dataZoomModel).infoList;if(!t&&n.length){var a=n[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(xm);function $Z(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function yw(r){return r==="vertical"?"ns-resize":"ew-resize"}const WZ=HZ;function JI(r){r.registerComponentModel(kZ),r.registerComponentView(WZ),bm(r)}function UZ(r){yt(KI),yt(JI)}var YZ={get:function(r,e,t){var n=nt((ZZ[r]||{})[e]);return t&&z(n)?n[n.length-1]:n}},ZZ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const QI=YZ;var mw=ce.mapVisual,XZ=ce.eachVisual,qZ=z,_w=D,jZ=sr,KZ=It,JZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,n,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,n){var a=this.option;!n&&FI(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=Y(t,this),this.controllerVisuals=fg(this.option.controller,n,t),this.targetVisuals=fg(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(a,i){n.push(i)}):n=Pt(t),n},e.prototype.eachTargetSeries=function(t,n){D(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&t.call(n,i)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(a){a===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=n?t:u?[c(t[0]),c(t[1])]:c(t);if(W(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(j(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=jZ([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var a=t.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,a={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={});ct(i,a),ct(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){qZ(n.color)&&!c.inRange&&(c.inRange={color:n.color.slice().reverse()}),c.inRange=c.inRange||{color:t.get("gradientColor")}}function u(c,h,v){var p=c[h],d=c[v];p&&!d&&(d=c[v]={},_w(p,function(g,y){if(!!ce.isValidType(y)){var m=QI.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";_w(this.stateList,function(y){var m=this.itemSize,_=c[y];_||(_=c[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=h&&nt(h)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&nt(v)||(s?m[0]:[m[0],m[0]])),_.symbol=mw(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;XZ(S,function(x){x>b&&(b=x)}),_.symbolSize=mw(S,function(x){return KZ(x,[0,b],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(xt);const vc=JZ;var Sw=[20,140],QZ=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=Sw[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=Sw[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):z(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),D(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=sr((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,a=this.getExtent();return(n[0]<=a[0]||n[0]<=t)&&(n[1]>=a[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),n.push({seriesId:a.id,dataIndex:i})},this),n},e.prototype.getVisualMeta=function(t){var n=xw(this,"outOfRange",this.getExtent()),a=xw(this,"inRange",this.option.range.slice()),i=[];function o(v,p){i.push({value:v,color:t(v,p)})}for(var s=0,l=0,u=a.length,f=n.length;l<f&&(!a.length||n[l]<=a[0]);l++)n[l]<a[s]&&o(n[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var c=1;l<f;l++)(!a.length||a[a.length-1]<n[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(n[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=va(vc.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:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(vc);function xw(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,a=(t[1]-t[0])/n,i=t[0],o=[],s=0;s<=n&&i<t[1];s++)o.push(i),i+=a;return o.push(t[1]),o}const tX=QZ;var eX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,a,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,a,i)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,a=Vo(n.get("padding")||0),i=t.getBoundingRect();t.add(new Tt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,p){s[v]=p}var c=o.controllerVisuals[i||o.getValueState(t)],h=ce.prepareVisualTypes(c);return D(h,function(v){var p=c[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=c.__alphaForOpacity),ce.dependsOn(v,n)&&p&&p.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,a=this.api;Wc(t,n.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(t,n,a,i){},e.type="visualMap",e}(Wt);const tE=eX;var bw=[["left","right","width"],["top","bottom","height"]];function eE(r,e,t){var n=r.option,a=n.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=bw[o],l=[0,null,10],u={},f=0;f<3;f++)u[bw[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var c=[["x","width",3],["y","height",0]][o],h=re(u,i,n.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function hf(r,e){return D(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Gr=It,rX=D,ww=Math.min,Ip=Math.max,nX=12,aX=6,iX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,n,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var a=t.get("text");this._renderEndsText(n,a,0),this._renderEndsText(n,a,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,a){if(!!n){var i=n[1-a];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,a===0?-s:l[1]+s],u),c=this._applyTransform(a===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new Dt({style:Ot(v,{x:f[0],y:f[1],verticalAlign:h==="horizontal"?"middle":c,align:h==="horizontal"?c:"center",text:i})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,a=this._shapes,i=n.itemSize,o=this._orient,s=this._useHandle,l=eE(n,this.api,i),u=a.mainGroup=this._createBarGroup(l),f=new at;u.add(f),f.add(a.outOfRange=Tw()),f.add(a.inRange=Tw(null,s?Dw(this._orient):null,Y(this._dragHandle,this,"all",!1),Y(this._dragHandle,this,"all",!0))),f.setClipPath(new Tt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=n.textStyleModel.getTextRect("\u56FD"),h=Ip(c.width,c.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(n,u,0,i,h,o),this._createHandle(n,u,1,i,h,o)),this._createIndicator(n,u,i,h,o),t.add(u)},e.prototype._createHandle=function(t,n,a,i,o,s){var l=Y(this._dragHandle,this,a,!1),u=Y(this._dragHandle,this,a,!0),f=Mr(t.get("handleSize"),i[0]),c=Qt(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=Dw(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){_n(y.event)}}),c.x=i[0]/2,c.useStyle(t.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Ka(c,!0),n.add(c);var v=this.visualMapModel.textStyleModel,p=new Dt({cursor:h,draggable:!0,drift:l,onmousemove:function(y){_n(y.event)},ondragend:u,style:Ot(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[a]=c,g.handleLabelPoints[a]=d,g.handleLabels[a]=p},e.prototype._createIndicator=function(t,n,a,i,o){var s=Mr(t.get("indicatorSize"),a[0]),l=Qt(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof de){var f=l.style;l.useStyle(V({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var c=this.visualMapModel.textStyleModel,h=new Dt({silent:!0,invisible:!0,style:Ot(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:aX)+a[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=h,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,a,i){if(!!this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():Cw(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),a=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Gr(n[0],a,i,!0),Gr(n[1],a,i,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Ei(n,i,o,t,0);var s=a.getExtent();this._dataInterval=[Gr(i[0],o,s,!0),Gr(i[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,a=n.getExtent(),i=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Dl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var a=100,i=[],o=(t[1]-t[0])/a;i.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",n),offset:s/a})}return i.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),i},e.prototype._createBarPoints=function(t,n){var a=this.visualMapModel.itemSize;return[[a[0]-n[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,a=this.visualMapModel.get("inverse");return new at(n==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(!!this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();rX([0,1],function(f){var c=o[f];c.setStyle("fill",n.handlesColor[f]),c.y=t[f];var h=Gr(t[f],[0,l[1]],u,!0),v=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=v/l[0],c.x=l[0]-v/2;var p=Ar(a.handleLabelPoints[f],li(c,this.group));s[f].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(!!c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",h),p=this.getControllerVisual(t,"symbolSize"),d=Gr(t,s,u,!0),g=l[0]-p/2,y={x:c.x,y:c.y};c.y=d,c.x=g;var m=Ar(f.indicatorLabelPoint,li(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(w,C),_.animateTo(T,C)}else c.attr(w),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this._api.enterBlur(A[M])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,i=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);i[1]=ww(Ip(0,i[1]),a[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,n){var a=this.visualMapModel,i=a.itemSize;if(!!a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();t=ww(Ip(o[0],t),o[1]);var l=oX(a,s,o),u=[t-l,t+l],f=Gr(t,o,s,!0),c=[Gr(u[0],o,s,!0),Gr(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),n&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var h=this._hoverLinkDataIndices,v=[];(n||Cw(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(c));var p=qP(h,v);this._dispatchHighDown("downplay",hf(p[0],a)),this._dispatchHighDown("highlight",hf(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(Qa(t.target,function(l){var u=it(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var a=this.ecModel.getSeriesByIndex(n.seriesIndex),i=this.visualMapModel;if(!!i.isTargetSeries(a)){var o=a.getData(n.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var a=0;a<n.length;a++)this._api.leaveBlur(n[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",hf(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,n,a,i){var o=li(n,i?null:this.group);return z(t)?Ar(t,o,a):Vc(t,o,a)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(tE);function Tw(r,e,t,n){return new Ge({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){_n(a.event)},ondragend:n})}function oX(r,e,t){var n=nX/2,a=r.get("hoverLinkDataSize");return a&&(n=Gr(a,e,t,!0)/2),n}function Cw(r){var e=r.get("hoverLinkOnHandle");return!!(e==null?r.get("realtime"):e)}function Dw(r){return r==="vertical"?"ns-resize":"ew-resize"}const sX=iX;var lX={type:"selectDataRange",event:"dataRangeSelected",update:"update"},uX=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},fX=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var a=r.pipelineContext;!n.isTargetSeries(r)||a&&a.large||t.push(a9(n.stateList,n.targetVisuals,Y(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var i=a.getVisualMeta(Y(cX,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(i.dimension=o,n.push(i))}}),r.getData().setVisual("visualMeta",n)}}];function cX(r,e,t,n){for(var a=e.targetVisuals[n],i=ce.prepareVisualTypes(a),o={color:Il(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,c,h)}return o.color;function c(v){return o[v]}function h(v,p){o[v]=p}}var Aw=D;function hX(r){var e=r&&r.visualMap;z(e)||(e=e?[e]:[]),Aw(e,function(t){if(!!t){Qi(t,"splitList")&&!Qi(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&z(n)&&Aw(n,function(a){K(a)&&(Qi(a,"start")&&!Qi(a,"min")&&(a.min=a.start),Qi(a,"end")&&!Qi(a,"max")&&(a.max=a.end))})}})}function Qi(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var Mw=!1;function rE(r){Mw||(Mw=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(lX,uX),D(fX,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(hX))}function nE(r){r.registerComponentModel(tX),r.registerComponentView(sX),rE(r)}var vX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],pX[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=nt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=G(this._pieceList,function(l){return l=nt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},a=ce.listVisualTypes(),i=this.isCategory();D(t.pieces,function(s){D(a,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),D(n,function(s,l){var u=!1;D(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&D(this.stateList,function(f){(t[f]||(t[f]={}))[l]=QI.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)},e.prototype._resetSelected=function(t,n){var a=this.option,i=this._pieceList,o=(n?a:t).selected||{};if(a.selected=o,D(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;D(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=nt(t)},e.prototype.getValueState=function(t){var n=ce.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ce.findPieceIndex(l,a);f===t&&o.push(u)},this),n.push({seriesId:i.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var a=t.interval||[];n=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],a=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=t(h,c);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:n.push({value:f[0],color:v},{value:f[1],color:v})}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 D(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:n,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=va(vc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(vc),pX={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(n[1]-n[0])/a;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<a;s+=i,o++){var l=o===a-1?n[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),v0(r),D(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;D(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),Lw(e,r)},pieces:function(r){var e=this.option;D(e.pieces,function(t,n){K(t)||(t={value:t});var a={text:"",index:n};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var i=a.value=t.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=t[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+n+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=ce.retrieveVisuals(t),r.push(a)},this),Lw(e,r),v0(r),D(r,function(t){var n=t.close,a=[["<","\u2264"][n[1]],[">","\u2265"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function Lw(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const dX=vX;var gX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var n=this.visualMapModel,a=n.get("textGap"),i=n.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),c=f.endsText,h=Kt(n.get("showLabel",!0),!c);c&&this._renderEndsText(t,c[0],u,h,l),D(f.viewPieceList,function(v){var p=v.piece,d=new at;d.onclick=Y(this._onItemClick,this,p),this._enableHoverLink(d,v.indexInModelPieceList);var g=n.getRepresentValue(p);if(this._createItemSymbol(d,g,[0,0,u[0],u[1]]),h){var y=this.visualMapModel.getValueState(g);d.add(new Dt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(d)},this),c&&this._renderEndsText(t,c[1],u,h,l),ui(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var a=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:hf(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return eE(t,this.api,t.itemSize);var a=n.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,n,a,i,o){if(!!n){var s=new at,l=this.visualMapModel.textStyleModel;s.add(new Dt({style:Ot(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?n.reverse():a&&(a=a.slice().reverse()),{viewPieceList:n,endsText:a}},e.prototype._createItemSymbol=function(t,n,a){t.add(Qt(this.getControllerVisual(n,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(n,"color")))},e.prototype._onItemClick=function(t){var n=this.visualMapModel,a=n.option,i=a.selectedMode;if(!!i){var o=nt(a.selected),s=n.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,D(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(tE);const yX=gX;function aE(r){r.registerComponentModel(dX),r.registerComponentView(yX),rE(r)}function mX(r){yt(nE),yt(aE)}var _X={label:{enabled:!0},decal:{show:!1}},Iw=Ct(),SX={};function xX(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=nt(_X);ct(n.label,r.getLocaleModel().get("aria"),!1),ct(t.option,n,!1),a(),i();function a(){var u=t.getModel("decal"),f=u.get("show");if(f){var c=X();r.eachSeries(function(h){if(!h.isColorBySeries()){var v=c.get(h.type);v||(v={},c.set(h.type,v)),Iw(h).scope=v}}),r.eachRawSeries(function(h){if(r.isSeriesFiltered(h))return;if(j(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var m=_d(h.ecModel,h.name,SX,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=h.getRawData(),d={},g=Iw(h).scope;v.each(function(b){var x=v.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",T=_d(h.ecModel,w,g,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?V(V({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=r.getLocaleModel().get("aria"),f=t.getModel("label");if(f.option=et(f.option,u),!!f.get("enabled")){var c=e.getZr().dom;if(f.get("description")){c.setAttribute("aria-label",f.get("description"));return}var h=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,p=f.get(["series","maxCount"])||10,d=Math.min(h,p),g;if(!(h<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);g=o(m,{title:y})}else g=f.get(["general","withoutTitle"]);var _=[],S=h>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);g+=o(S,{seriesCount:h}),r.eachSeries(function(T,C){if(C<d){var A=void 0,M=T.get("name"),L=M?"withName":"withoutName";A=h>1?f.get(["series","multiple",L]):f.get(["series","single",L]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var I=T.getData();if(I.count()>v){var E=f.get(["data","partialData"]);A+=o(E,{displayCnt:v})}else A+=f.get(["data","allData"]);for(var P=f.get(["data","separator","middle"]),N=f.get(["data","separator","end"]),k=[],O=0;O<I.count();O++)if(O<v){var B=I.getName(O),F=I.getValues(O),$=f.get(["data",B?"withName":"withoutName"]);k.push(o($,{name:B,value:F.join(P)}))}A+=k.join(P)+N,_.push(A)}});var b=f.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,c.setAttribute("aria-label",g)}}}function o(u,f){if(!W(u))return u;var c=u;return D(f,function(h,v){c=c.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),h)}),c}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return r.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function bX(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},D(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function wX(r){r.registerPreprocessor(bX),r.registerVisual(r.PRIORITY.VISUAL.ARIA,xX)}var Ew={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},TX=function(){function r(e){var t=this._condVal=W(e)?new RegExp(e):uT(e)?e:null;if(t==null){var n="";process.env.NODE_ENV!=="production"&&(n=Le("Illegal regexp",e,"in")),Lt(n)}}return r.prototype.evaluate=function(e){var t=typeof e;return W(t)?this._condVal.test(e):At(t)?this._condVal.test(e+""):!1},r}(),CX=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),DX=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),AX=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),MX=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),LX=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,n=t(this.valueGetterParam),a=e?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:n))return!1;return!0},r}();function Em(r,e){if(r===!0||r===!1){var t=new CX;return t.value=r,t}var n="";return iE(r)||(process.env.NODE_ENV!=="production"&&(n=Le("Illegal config. Expect a plain object but actually",r)),Lt(n)),r.and?Pw("and",r,e):r.or?Pw("or",r,e):r.not?IX(r,e):EX(r,e)}function Pw(r,e,t){var n=e[r],a="";process.env.NODE_ENV!=="production"&&(a=Le('"and"/"or" condition should only be `'+r+": [...]` and must not be empty array.","Illegal condition:",e)),z(n)||Lt(a),n.length||Lt(a);var i=r==="and"?new DX:new AX;return i.children=G(n,function(o){return Em(o,t)}),i.children.length||Lt(a),i}function IX(r,e){var t=r.not,n="";process.env.NODE_ENV!=="production"&&(n=Le('"not" condition should only be `not: {}`.',"Illegal condition:",r)),iE(t)||Lt(n);var a=new MX;return a.child=Em(t,e),a.child||Lt(n),a}function EX(r,e){for(var t="",n=e.prepareGetValue(r),a=[],i=_t(r),o=r.parser,s=o?RD(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=U(Ew,u)?Ew[u]:u,c=r[u],h=s?s(c):c,v=hk(f,h)||f==="reg"&&new TX(h);v||(process.env.NODE_ENV!=="production"&&(t=Le('Illegal relational operation: "'+u+'" in condition:',r)),Lt(t)),a.push(v)}}a.length||(process.env.NODE_ENV!=="production"&&(t=Le("Relational condition must have at least one operator.","Illegal condition:",r)),Lt(t));var p=new LX;return p.valueGetterParam=n,p.valueParser=s,p.getValue=e.getValue,p.subCondList=a,p}function iE(r){return K(r)&&!Se(r)}var PX=function(){function r(e,t){this._cond=Em(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function NX(r,e){return new PX(r,e)}var RX={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,n=NX(r.config,{valueGetterAttrMap:X({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;U(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=Le('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),Lt(l));var f=e.getDimensionInfo(u);return f||(process.env.NODE_ENV!=="production"&&(l=Le("Can not find dimension info via: "+u+`.
71
71
  `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
@@ -75,6 +75,6 @@ echarts.use([`+L+"]);":"Unknown series "+M))}return}if(c==="tooltip"){if(_){proc
75
75
  `,"Illegal config:",f,`.
76
76
  `)),Lt(n));var m=v?RD(v):null;v&&!m&&(process.env.NODE_ENV!=="production"&&(n=Le("Invalid parser name "+v+`.
77
77
  `,"Illegal config:",f,`.
78
- `)),Lt(n)),i.push({dimIdx:y.index,parser:m,comparator:new kD(h,p)})});var o=e.sourceFormat;o!==xe&&o!==gr&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),Lt(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<i.length;h++){var v=i[h],p=e.retrieveValueFromItem(f,v.dimIdx),d=e.retrieveValueFromItem(c,v.dimIdx);v.parser&&(p=v.parser(p),d=v.parser(d));var g=v.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function kX(r){r.registerTransform(RX),r.registerTransform(OX)}var VX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new GD(this),I_(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),I_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Xr},e}(xt),BX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Wt);function zX(r){r.registerComponentModel(VX),r.registerComponentView(BX)}var Br=Qr.CMD;function fo(r,e){return Math.abs(r-e)<1e-5}function mg(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,E){a&&a.length>2&&n.push(a),a=[I,E]}function f(I,E,P,N){fo(I,P)&&fo(E,N)||a.push(I,E,P,N,P,N)}function c(I,E,P,N,k,O){var B=Math.abs(E-I),F=Math.tan(B/4)*4/3,$=E<I?-1:1,Z=Math.cos(I),Q=Math.sin(I),tt=Math.cos(E),pt=Math.sin(E),St=Z*k+P,dt=Q*O+N,rt=tt*k+P,gt=pt*O+N,st=k*F*$,q=O*F*$;a.push(St-st*Q,dt+q*Z,rt+st*pt,gt-q*tt,rt,gt)}for(var h,v,p,d,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===Br.L||y===Br.C||y===Br.Q)&&(a=[s,l])),y){case Br.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case Br.L:h=e[g++],v=e[g++],f(i,o,h,v),i=h,o=v;break;case Br.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case Br.Q:h=e[g++],v=e[g++],p=e[g++],d=e[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),p+2/3*(h-p),d+2/3*(v-d),p,d),i=p,o=d;break;case Br.A:var _=e[g++],S=e[g++],b=e[g++],x=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];h=Math.cos(w)*b+_,v=Math.sin(w)*x+S,m?(s=h,l=v,u(s,l)):f(i,o,h,v),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=A){var L=C?Math.max(M+A,T):Math.min(M+A,T);c(M,L,_,S,b,x)}break;case Br.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case Br.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function _g(r,e,t,n,a,i,o,s,l,u){if(fo(r,t)&&fo(e,n)&&fo(a,o)&&fo(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-e,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=t-r,g=n-e,y=a-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var b=h*d+v*g,x=-h*y-v*m,w=_-b*b,T=S-x*x;if(w<c&&b>=0&&T<c&&x>=0){l.push(o,s);return}var C=[],A=[];na(r,t,a,o,.5,C),na(e,n,i,s,.5,A),_g(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),_g(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function GX(r,e){var t=mg(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],h=i[u++],v=i[u++],p=i[u++],d=i[u++];_g(s,l,f,c,h,v,p,d,o,e),s=p,l=d}n.push(o)}return n}function oE(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=t-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function Nw(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=oE([l,u],f?0:1,e),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var p=(f?u:s)/c[v],d=0;d<c[v];d++){var g={};f?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+p*d,g.r=n+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function FX(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=oE([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*c,d[f]=p*v,d[s]=c,d[l]=v,d.x+=r.x,d.y+=r.y,t.push(d)}}function Rw(r,e,t,n){return r*n-t*e}function HX(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,c=s-i,h=Rw(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=r-a,p=e-i,d=Rw(v,p,f,c)/h;return d<0||d>1?null:new ut(d*l+r,d*u+e)}function $X(r,e,t){var n=new ut;ut.sub(n,t,e),n.normalize();var a=new ut;ut.sub(a,r,e);var i=a.dot(n);return i}function to(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function WX(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=HX(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:$X(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],p=[h],d=[v],i=u.idx+1;i<=f.idx;i++)to(p,r[i].slice());to(p,v),to(p,h);for(var i=f.idx+1;i<=u.idx+n;i++)to(d,r[i%n].slice());return to(d,h),to(d,v),[{points:p},{points:d}]}function Ow(r){var e=r.points,t=[],n=[];Ec(e,t,n);var a=new ht(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new ut,f=new ut;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),WX(e,u,f)}function pc(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);pc(r,i[0],a,n),pc(r,i[1],t-a,n)}return n}function UX(r,e){for(var t=[],n=0;n<e;n++)t.push(Xg(r));return t}function YX(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function ZX(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function XX(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":FX(n,e,t),a=Tt;break;case"sector":Nw(n,e,t),a=ze;break;case"circle":Nw({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=ze;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=G(GX(r.getUpdatedPathProxy(),o),function(y){return ZX(y)}),l=s.length;if(l===0)pc(Ow,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,c=G(s,function(y){var m=[],_=[];Ec(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var h=e,u=0;u<l;u++){var v=c[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(v.area/f*e);p<0||(pc(Ow,{points:v.poly},p,t),h-=p)}}a=Ge;break}if(!a)return UX(r,e);for(var d=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),YX(r,g),d.push(g)}return d}function qX(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var p=o[v-2],d=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],b=o[v++];if(h<=0){c.push(g,y,m,_,S,b);continue}for(var x=Math.min(h,f-1)+1,w=1;w<=x;w++){var T=w/x;na(p,g,m,S,T,a),na(d,y,_,b,T,i),p=a[3],d=i[3],c.push(a[1],i[1],a[2],i[2],p,d),g=a[5],y=i[5],m=a[6],_=i[6]}h-=x-1}return o===r?[c,e]:[r,c]}function kw(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function jX(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,c=void 0;l?u?(t=qX(l,u),f=t[0],c=t[1],n=f,a=c):(c=kw(a||l,l),f=l):(f=kw(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function Vw(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],c=s*f-u*l;e+=c,t+=(s+u)*c,n+=(l+f)*c}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function KX(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,p=r[v]-t[0],d=r[v+1]-t[1],g=e[h]-n[0],y=e[h+1]-n[1],m=g-p,_=y-d;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function JX(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function QX(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=Vw(s),f=Vw(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],h=[],v=0,p=1/0,d=[],g=s.length;i&&(s=JX(s));for(var y=KX(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],t>0)for(var b=n/t,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=c[_],M=c[_+1],L=l[_]-f[0],I=l[_+1]-f[1],E=L*T-I*w,P=L*w+I*T;d[_]=E,d[_+1]=P;var N=E-A,k=P-M;C+=N*N+k*k}if(C<p){p=C,v=x;for(var O=0;O<d.length;O++)h[O]=d[O]}}else for(var B=0;B<g;B+=2)h[B]=l[B]-f[0],h[B+1]=l[B+1]-f[1];a.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return a}function dc(r){return r.__isCombineMorphing}var sE="__mOriginal_";function gc(r,e,t){var n=sE+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function js(r,e){var t=sE+e;r[t]&&(r[e]=r[t],r[t]=null)}function Bw(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function lE(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=jX(mg(t),mg(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Bw(i,s),l&&Bw(o,l),gc(e,"updateTransform",{replace:u}),e.transform=null;var f=QX(i,o,10,Math.PI),c=[];gc(e,"buildPath",{replace:function(h){for(var v=e.__morphT,p=1-v,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);Xu(d,b,x,v);for(var C=0;C<m.length;C+=2){var A=m[C],M=m[C+1],L=_[C],I=_[C+1],E=A*p+L*v,P=M*p+I*v;c[C]=E*T-P*w+d[0],c[C+1]=E*w+P*T+d[1]}var N=c[0],k=c[1];h.moveTo(N,k);for(var C=2;C<m.length;){var L=c[C++],I=c[C++],O=c[C++],B=c[C++],F=c[C++],$=c[C++];N===L&&k===I&&O===F&&B===$?h.lineTo(F,$):h.bezierCurveTo(L,I,O,B,F,$),N=F,k=$}}}})}function Pm(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;lE(r,e),e.__morphT=0;function i(){js(e,"buildPath"),js(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},et({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function tq(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(e&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function yc(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(c,t),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=G(i,function(s,l){return{cp:s,z:tq(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function uE(r){return XX(r.path,r.count)}function Sg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function eq(r,e,t){var n=[];function a(b){for(var x=0;x<b.length;x++){var w=b[x];dc(w)?a(w.childrenRef()):w instanceof mt&&n.push(w)}}a(r);var i=n.length;if(!i)return Sg();var o=t.dividePath||uE,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Sg();n=yc(n),s=yc(s);for(var l=t.done,u=t.during,f=t.individualDelay,c=new fn,h=0;h<i;h++){var v=n[h],p=s[h];p.parent=e,p.copyTransform(c),f||lE(v,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}gc(e,"addSelfToZr",{after:function(b){d(b)}}),gc(e,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,js(e,"addSelfToZr"),js(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var S=f?et({delay:(t.delay||0)+f(h,y,n[h],s[h]),done:_},t):t;Pm(n[h],s[h],S)}else e.__morphT=0,e.animateTo({__morphT:1},et({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)js(r[b],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function rq(r,e,t){var n=e.length,a=[],i=t.dividePath||uE;function o(v){for(var p=0;p<v.length;p++){var d=v[p];dc(d)?o(d.childrenRef()):d instanceof mt&&a.push(d)}}if(dc(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Xg(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Sg()}a=yc(a),e=yc(e);for(var c=t.individualDelay,u=0;u<n;u++){var h=c?et({delay:(t.delay||0)+c(u,n,a[u],e[u])},t):t;Pm(a[u],e[u],h)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function zw(r){return z(r[0])}function Gw(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var nq={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Xg(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function Ep(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=No("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;zw(r)&&(u=r,f=e),zw(e)&&(u=e,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(dc(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?et({delay:s(_,S)},l):l;Pm(T,C,A),i(T,C,T,C,A)}}else for(var M=et({dividePath:nq[t],individualDelay:s&&function(k,O,B,F){return s(k+_,S)}},l),L=m?eq(x,w,M):rq(w,x,M),I=L.fromIndividuals,E=L.toIndividuals,P=I.length,N=0;N<P;N++){var A=s?et({delay:s(N,P)},l):l;i(I[N],E[N],m?x[N]:y.one,m?y.one:x[N],A)}}for(var h=u?u===r:r.length>e.length,v=u?Gw(f,u):Gw(h?e:r,[h?r:e]),p=0,d=0;d<v.length;d++)p+=v[d].many.length;for(var g=0,d=0;d<v.length;d++)c(v[d],h,g,p),g+=v[d].many.length}function Wa(r){if(!r)return[];if(z(r)){for(var e=[],t=0;t<r.length;t++)e.push(Wa(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof mt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var fE=1e4,aq=Ct();function iq(r){for(var e=r.dimensions,t=0;t<e.length;t++){var n=r.getDimensionInfo(e[t]);if(n&&n.otherDims.itemGroupId===0)return e[t]}}function Fw(r){var e=[];return D(r,function(t){var n=t.data;if(n.count()>fE){process.env.NODE_ENV!=="production"&&Ft("Universal transition is disabled on large data > 10k.");return}for(var a=n.getIndices(),i=iq(n),o=0;o<a.length;o++)e.push({dataGroupId:t.dataGroupId,data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})}),e}function Pp(r,e,t){r.traverse(function(n){n instanceof mt&&Bt(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Np(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function eo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function oq(r,e,t){var n=No("update",t,e);n&&r.traverse(function(a){if(a instanceof hr){var i=$R(a);i&&a.animateFrom({style:i},n)}})}function sq(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function cE(r,e,t){var n=Fw(r),a=Fw(e);function i(y,m,_,S,b){(_||y)&&m.animateFrom({style:_&&_!==y?V(V({},_.style),y.style):y.style},b)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),l=o(a),u=!1;function f(y,m){return function(_){var S=_.data,b=_.dataIndex;if(m)return S.getId(b);var x=_.dataGroupId,w=y?s||l:l||s,T=w&&S.getDimensionInfo(w),C=T&&T.ordinalMeta;if(T){var A=S.get(T.name,b);return C&&C.categories[A]||A+""}var M=S.getRawDataItem(b);return M&&M.groupId?M.groupId+"":x||S.getId(b)}}var c=sq(n,a),h={};if(!c)for(var v=0;v<a.length;v++){var p=a[v],d=p.data.getItemGraphicEl(p.dataIndex);d&&(h[d.id]=!0)}function g(y,m){var _=n[m],S=a[y],b=S.data.hostModel,x=_.data.getItemGraphicEl(_.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(x===w){w&&oq(w,S.dataIndex,b);return}x&&h[x.id]||w&&(eo(w),x?(eo(x),Np(x),u=!0,Ep(Wa(x),Wa(w),S.divide,b,y,i)):Pp(w,b,y))}new Tn(n,a,f(!0,c),f(!1,c),null,"multiple").update(g).updateManyToOne(function(y,m){var _=a[y],S=_.data,b=S.hostModel,x=S.getItemGraphicEl(_.dataIndex),w=Et(G(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==x&&!h[T.id]});x&&(eo(x),w.length?(D(w,function(T){eo(T),Np(T)}),u=!0,Ep(Wa(w),Wa(x),_.divide,b,y,i)):Pp(x,b,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&h[S.id])){var b=Et(G(y,function(w){return a[w].data.getItemGraphicEl(a[w].dataIndex)}),function(w){return w&&w!==S}),x=a[y[0]].data.hostModel;b.length&&(D(b,function(w){return eo(w)}),S?(eo(S),Np(S),u=!0,Ep(Wa(S),Wa(b),_.divide,x,y[0],i)):D(b,function(w){return Pp(w,x,y[0])}))}}).updateManyToMany(function(y,m){new Tn(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,S){g(y[_],m[S])}).execute()}).execute(),u&&D(e,function(y){var m=y.data,_=m.hostModel,S=_&&t.getViewOfSeriesModel(_),b=No("update",_,0);S&&_.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(x){x instanceof mt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Hw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function $w(r){return z(r)?r.sort().join(","):r}function $n(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function lq(r,e){var t=X(),n=X(),a=X();D(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=Hw(o),c=$w(f);n.set(c,{dataGroupId:l,data:u}),z(f)&&D(f,function(h){a.set(h,{key:c,dataGroupId:l,data:u})})});function i(o){t.get(o)&&Ft("Duplicated seriesKey in universalTransition "+o)}return D(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=Hw(o),f=$w(u),c=n.get(f);if(c)process.env.NODE_ENV!=="production"&&i(f),t.set(f,{oldSeries:[{dataGroupId:c.dataGroupId,divide:$n(c.data),data:c.data}],newSeries:[{dataGroupId:s,divide:$n(l),data:l}]});else if(z(u)){process.env.NODE_ENV!=="production"&&i(f);var h=[];D(u,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:$n(g.data),data:g.data})}),h.length&&t.set(f,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:$n(l)}]})}else{var v=a.get(u);if(v){var p=t.get(v.key);p||(p={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:$n(v.data)}],newSeries:[]},t.set(v.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:$n(l)})}}}}),t}function Ww(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function uq(r,e,t,n){var a=[],i=[];D(Pt(r.from),function(o){var s=Ww(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:$n(e.oldData[s]),dim:o.dimension})}),D(Pt(r.to),function(o){var s=Ww(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:$n(l),dim:o.dimension})}}),a.length>0&&i.length>0&&cE(a,i,n)}function fq(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){D(Pt(n.seriesTransition),function(a){D(Pt(a.to),function(i){for(var o=n.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][of]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=aq(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(Pt(i),function(v){uq(v,a,n,t)});else{var o=lq(a,n);D(o.keys(),function(v){var p=o.get(v);cE(p.oldSeries,p.newSeries,t)})}D(n.updatedSeries,function(v){v[of]&&(v[of]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<fE&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}yt([M5]);yt([x5]);yt([J5,gG,LG,gF,NF,A3,aH,WH,m$,A$,B$,H4,dW,MW,XW,eU,_U,LU,HU,jU,u6,Z6]);yt(g8);yt(j8);yt(iL);yt(v7);yt(UL);yt(S7);yt(L7);yt(IY);yt(QY);yt(Fl);yt(_9);yt(b9);yt(V9);yt(Z9);yt(eZ);yt(uZ);yt(wZ);yt(UZ);yt(KI);yt(JI);yt(mX);yt(nE);yt(aE);yt(wX);yt(kX);yt(zX);yt(fq);yt(Fz);function cq(r,e){let t=new Map;return r.forEach((a,i)=>{t.set(a.id,hq(a.operation.list))}),{rich:Object.fromEntries(t),formatter:a=>vq(a,r,e)}}function hq(r){let e={};return r.forEach(t=>{t.rules==="1"?Object.assign(e,{color:t.val?t.val:"#333"}):t.rules==="2"?Object.assign(e,{fontSize:t.val+"px"}):t.rules==="3"&&Object.assign(e,{fontWeight:t.val})}),e}function vq(r,e,t){const n=t.formatter?t.formatter:"";let a="";for(let o=0;o<e.length;o++){let s=[];e[o].condition.list.forEach(u=>{const f=hE(u.val),c=t.bei===0?0:t.bei===100?f.l-2:f.l-3,h=vf(Number(u.val)*t.bei,c);let v=pq({data:Object.assign({...u},{val:h}),val:r.data});s.push(v)}),dq(s,e[o])&&a===""&&(a=e[o].id)}return a!==""?`{${a}|${r.data} ${n}}`:`${r.data} ${n}`}function pq(r){switch(r.data.rules){case"1":return Uw(r);case"2":return Uw(r);case"7":return Uu(r);case"8":return Uu(r);case"9":return Uu(r);case"10":return Uu(r)}}function Uw({data:r,val:e}){if(e===""||e===void 0)return!1;let t=Number(e),n=Number(r.val);return r.rules==="1"?t===n:t!==n}function Uu({data:r,val:e}){if(e===""||e===void 0)return!1;let t=Yw("inputnumber",{val:e}),n=Yw("inputnumber",r);if(r.rules==="7")return t>n;if(r.rules==="8")return t>=n;if(r.rules==="9")return t<n;if(r.rules==="10")return t<=n}function Yw(r="inputnumber",e){let t=0;return r==="inputnumber"?t=Number(e.val):t=new Date(String(e.val)).getTime(),t}function dq(r,e){let t=e.condition.list.length;if(t===0)return!0;let n=t===0?"1":e.condition.list[t-1].type,a=gq(r,n);return n==="2"&&!a?!0:!!(n!=="2"&&a)}function gq(r,e){return e==="2"?r.every((t,n,a)=>!t):r.every((t,n,a)=>!!t)}function hE(r){const e=String(r),t=e.substr(e.lastIndexOf(".")+1).toLowerCase();let n=1;for(let a=0;a<t.length;a++)n*=10;return{n,l:t.length}}function vf(r,e){const t=10**e;return Math.round(r*t)/t}const yq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=[],t=[],n=[],a=[];const i=r.series.filter(v=>v.type==="bar")[0];r.columns.forEach(v=>{e.push({type:"category",data:v.data,axisPointer:{type:i===void 0?"line":"shadow"},axisTick:{alignWithLabel:!1},axisLine:{onZero:!1,lineStyle:{color:this.options.labelLineColor}},axisLabel:{interval:0,rotate:v.rotate!==void 0?v.rotate:this.options.labelRotate,fontSize:v.fontSize!==void 0?v.fontSize:this.options.labelFontSize,color:v.color!==void 0?v.color:this.options.xAxisLabelColor},offset:v.offset,position:v.position})}),r.data.forEach((v,p)=>{this.$i18nt(v.item.transKey,v.item.name);let d={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:v.formatter?`{value} ${v.formatter}`:"{value}",color:this.options.labelFontColor}};v.max!==void 0&&Object.assign(d,{max:v.max}),v.min!==void 0&&Object.assign(d,{min:v.min}),r.data.length!==1&&Object.assign(d,{position:p===0?"left":"right",alignTicks:!0,show:p<2,axisLabel:{formatter:v.formatter?`{value} ${v.formatter}`:"{value}"}}),t.push(d)});const s=r.series.filter(v=>{const p=v.item.columnName?v.item.columnName:"",d=r.series[0].columnName?r.series[0].columnName:"";return p===d}).length===r.series.length;r.series.forEach((v,p)=>{let d=this.$i18nt(v.item.transKey,v.item.name);v.item.transkeyDict&&(d+=` (${this.$i18nt(v.item.transkeyDict,v.item.transkeyName)})`);let g={label:{show:v.tooltip?this.options.labelShow:v.tooltip,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}},color:_=>r.type===1?this.color[_.dataIndex]:this.color[p]};this.ruleList.length>0&&(g=this.getNormal(g,v)),(r.data.length!==1||r.type===2)&&v.item.name&&a.push(d);let y={type:v.type,name:d,emphasis:{focus:this.options.emphasisFocus},data:v.data.map(_=>{if(v.bei===1)return vf(_,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const S=hE(_),b=v.bei===100?S.l-2:S.l-3,x=vf(Number(_)*v.bei,b);return vf(x,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),tooltip:{show:v.tooltip,valueFormatter:_=>v.formatter?`${_} ${v.formatter}`:_},itemStyle:r.data.length===1?{normal:g}:{normal:Object.assign({...g},{color:this.color[p]})}};const m=this.options.overlayStack?{stack:v.stack?v.stack:"Total"}:{};r.type===1&&Object.assign(y,{yAxisIndex:s||m.stack!==void 0?0:p}),v.type==="line"&&Object.assign(y,{smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth}}),n.push(Object.assign(y,m))});let l={containLabel:!0};this.options.gridPosition.forEach((v,p)=>{v!==""&&p===0?Object.assign(l,{top:v}):v!==""&&p===1?Object.assign(l,{right:v}):v!==""&&p===2?Object.assign(l,{bottom:v}):v!==""&&p===3&&Object.assign(l,{left:v})});let u={data:a,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};this.options.legendPosition.forEach((v,p)=>{v!==""&&p===0?Object.assign(u,{top:v}):v!==""&&p===1?Object.assign(u,{right:v}):v!==""&&p===2?Object.assign(u,{bottom:v}):v!==""&&p===3&&Object.assign(u,{left:v})}),i===void 0&&this.options.areaStyleStack&&(e.forEach((v,p)=>{e[p]=Object.assign(v,{boundaryGap:!1})}),n.forEach((v,p)=>{n[p]=Object.assign(v,{areaStyle:{}})}));const f=Math.ceil(n.length/this.color.length);let c=[];for(let v=0;v<f;v++)c=c.concat(this.color);return{color:c,tooltip:{trigger:"axis",axisPointer:{type:i===void 0?"cross":"shadow"}},grid:l,legend:u,xAxis:e,yAxis:t,series:n}},getNormal(r,e){const t=`${e.columnName}&${e.mode}`,n=this.ruleList.filter(i=>`${i.columnName}&${i.mode}`===t)[0];if(!n)return r;let a=cq(n.ruleSequence,e);return Object.assign({...r},{label:Object.assign({...r.label},a)})}}};var mq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},_q=[],Sq=wi(yq,mq,_q,!1,null,"73cd21cf",null,null);const Zw=Sq.exports;const xq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=0,t=r.data[0].dataName;t.forEach((i,o)=>{e+=Number(i.value),t[o].order=i.value}),t=[...gf(t)];let n={data:r.columns[0].data,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((i,o)=>{i!==""&&o===0?Object.assign(n,{top:i}):i!==""&&o===1?Object.assign(n,{right:i}):i!==""&&o===2?Object.assign(n,{bottom:i}):i!==""&&o===3&&Object.assign(n,{left:i})}),{tooltip:{trigger:"item",formatter:function(i){return i.data.name+":\r"+i.data.values}},color:this.color,legend:n,series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:this.options.labelShow,fontSize:this.options.textFontSize,formatter:function(i){return i.data.name+":\r"+i.data.values+`
79
- `+i.data.percentage+"%"}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:t.map((i,o)=>{const s=i.value;return Object.assign({...i},{values:_c(s,this.options.numericalPrecision).toFixed(this.options.numericalPrecision),percentage:e===0?"0":(Number(s)/e*1e4).toFixed(0)/100,value:(1/t.length*(o+1)*100).toFixed(0)})})}]}}}};var bq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},wq=[],Tq=wi(xq,bq,wq,!1,null,"63cd9b05",null,null);const Cq=Tq.exports;const Dq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=[],t=[],n=[],a=[];const i=this.options.areaStyleStack?{boundaryGap:!1}:{};r.columns.forEach(u=>{e.push(Object.assign({type:"category",data:u.data,axisPointer:{type:"line"},axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:this.options.labelRotate,fontSize:this.options.labelFontSize,color:this.options.xAxisLabelColor}},i))}),this.options.labelShow,this.options.labelTextPosition,this.options.textFontSize,this.options.textFontColor,r.data.forEach((u,f)=>{let c={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:"{value}",color:this.options.labelFontColor}},h=this.$i18nt(u.item.transKey,u.item.name);u.item.transkeyDict&&(h+=` (${this.$i18nt(u.item.transkeyDict,u.item.transkeyName)})`),r.data.length!==1&&(a.push(h),Object.assign(c,{name:h,position:f===0?"left":"right",alignTicks:!0,show:f<2})),t.push(c);let v=this.options.overlayStack?{stack:"Total"}:{};this.options.areaStyleStack&&Object.assign(v,{areaStyle:{}}),n.push(Object.assign({emphasis:{focus:this.options.emphasisFocus},type:u.type,name:h,data:u.data.map(p=>_c(p,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)),smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth},normal:{label:{show:this.options.labelShow,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}}}},v))});let o={containLabel:!0};this.options.gridPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(o,{top:u}):u!==""&&f===1?Object.assign(o,{right:u}):u!==""&&f===2?Object.assign(o,{bottom:u}):u!==""&&f===3&&Object.assign(o,{left:u})});let s={data:a,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(s,{top:u}):u!==""&&f===1?Object.assign(s,{right:u}):u!==""&&f===2?Object.assign(s,{bottom:u}):u!==""&&f===3&&Object.assign(s,{left:u})}),{color:this.color,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:o,legend:s,xAxis:e,yAxis:t,series:n}}}};var Aq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Mq=[],Lq=wi(Dq,Aq,Mq,!1,null,"f7c52275",null,null);const Iq=Lq.exports;const Eq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=[];r.data.forEach(a=>{e.push({type:"pie",radius:["30%","58%"],center:["50%","50%"],data:a.dataName.map(i=>Object.assign({...i},{value:_c(i.value,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)})),label:{show:this.options.labelShow,position:this.options.labelTextPosition==="inside"?"inside":"outside",textStyle:{fontWeight:500,color:this.options.textFontColor,fontSize:this.options.textFontSize,lineHeight:20},formatter:`{b}:\r\r{c}\r
80
- ({d}%)`},itemStyle:{borderRadius:2}})});let t={type:"scroll",data:r.columns[0].data,textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((a,i)=>{a!==""&&i===0?Object.assign(t,{top:a}):a!==""&&i===1?Object.assign(t,{right:a}):a!==""&&i===2?Object.assign(t,{bottom:a}):a!==""&&i===3&&Object.assign(t,{left:a})}),{color:this.color,tooltip:{trigger:"item"},legend:t,series:e}}}};var Pq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Nq=[],Rq=wi(Eq,Pq,Nq,!1,null,"087827ea",null,null);const Oq=Rq.exports;const kq={props:{color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},componentItem:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]},bjstyle:{type:String,default:""}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(r){this.visible=!0,this.record={...r},this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record),this.spinning=!1},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record)},0)})},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()},closed(){this.fullscreen=!1,this.visible=!1}}};var Vq=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){e.visible=n},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form",style:e.bjstyle},[e.visible?t(e.componentItem,{ref:"componentItem",tag:"component",attrs:{color:e.color,options:e.options,ruleList:e.ruleList}}):e._e()],1)],1)},Bq=[],zq=wi(kq,Vq,Bq,!1,null,"5d31287c",null,null);const Gq=zq.exports;const Fq={name:"GdChartBi",props:{develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10},bjstyle:{type:String,default:""}},data(){return{record:{},optionData:{},spinning:!0,type:"none",empty:!1,offsetCaudex:0}},components:{AmplifyEchart:Gq},computed:{echartsMode(){return this.getDictionary("table_echarts_mode")},ruleList(){return(this.record.config&&this.record.config.series?this.record.config.series:[]).filter(e=>e.ruleOpen)},options(){let r=this.record.options||{};return Object.assign({...r},{labelTextPosition:r.labelTextPosition?r.labelTextPosition:"top",legendPosition:r.legendPosition?r.legendPosition:["","","",""],gridPosition:r.gridPosition?r.gridPosition:["60","4%","3%","3%"],overlayStack:r.overlayStack!==void 0?r.overlayStack:!1,areaStyleStack:r.areaStyleStack!==void 0?r.areaStyleStack:!1,legendShow:r.legendShow!==void 0?r.legendShow:!0,labelFontColor:r.labelFontColor?r.labelFontColor:"#333",textFontColor:r.textFontColor?r.textFontColor:"#333",textFontSize:r.textFontSize?r.textFontSize:14,legendOrient:r.legendOrient?r.legendOrient:"horizontal",legendTextColor:r.legendTextColor?r.legendTextColor:"#333",xAxisLabelColor:r.xAxisLabelColor?r.xAxisLabelColor:"#333",labelLineColor:r.labelLineColor?r.labelLineColor:"#333",emphasisFocus:r.emphasisFocus?r.emphasisFocus:"series",lineStyleWidth:r.lineStyleWidth!==void 0?r.lineStyleWidth:1,numericalPrecision:r.numericalPrecision!==void 0?r.numericalPrecision:2})},componentItem(){const e=[{type:"bar",data:Zw},{type:"pie",data:Oq},{type:"funnel",data:Cq},{type:"line",data:Iq}].filter(t=>t.type===this.type)[0];return e?e.data:Zw},getColor(){let r=[];return(this.color.length===0?this.echartsColor:this.color).forEach(t=>{r.push(t==="0"?this.primaryColor:t)}),r},...tT(["echartsColor","primaryColor","language"])},methods:{amplify(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.amplifyEchart.open(this.optionData)},0)})},setType(){this.type="none"},change(r){this.$emit("change",{params:r,option:this.optionData,record:this.record})},assembly(){const r=this.optionData.data.filter(e=>e.type==="bar")[0];this.type=r?r.type:this.optionData.data[0].type,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.optionData),this.spinning=!1},0)})},handleUniaxial({config:r,data:e,categorydata:t}){const n=r.series?r.series:[],a=r.categories?r.categories:[],i=r.stackList?r.stackList:[];if(n.length===0||a.length===0)return;const o=i[0]?i[0].uuid:"",s=o!==""?o:a[0].uuid,l=n.filter(d=>d.type==="1")[0];l?l.type:n[0].type;const u=i.filter(d=>d.dictTypeCode)[0],f=a.filter(d=>d.dictTypeCode)[0],c=o!==""?u:f,h=c?this.getDictionary(c.dictTypeCode):[];let v=[],p=[];if(n.forEach((d,g)=>{let y=[],m=[],_=[];e.forEach(T=>{const C=T[s],A=T[d.uuid],M=this.getVal({item:o!==""?i[0]:a[0],ite:C,data:e,dict:h});y.push(A),m.push({value:A,name:M}),g===0&&_.push(M||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),_.length>0&&v.push({data:_});let S={},b="";d.ruleOpen&&d.ruleFormatter.formatter!=="none"&&(b=d.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(S,{formatter:b}));const x=this.getBei(S.formatter);d.ruleOpen&&d.ruleFormatter.min!==void 0&&d.ruleFormatter.min!==""&&Object.assign(S,{min:d.ruleFormatter.min*x}),d.ruleOpen&&d.ruleFormatter.max!==void 0&&d.ruleFormatter.max!==""&&Object.assign(S,{max:d.ruleFormatter.max*x});const w=this.echartsMode.filter(T=>T.code==d.mode)[0];p.push(Object.assign({data:y,dataName:m,type:this.getChartType(d.type),item:Object.assign({...d},{transKey:`Dynamics.${d.transKey}`,transkeyDict:w?w.transkey:null,transkeyName:w?w.name:""}),bei:x,tooltip:!0,columnName:d.columnName,mode:d.mode},S))}),o!==""){let d=[];t[a[0].uuid].forEach(g=>{const y=f?this.getDictionary(f.dictTypeCode):[],m=this.getVal({item:a[0],ite:g,data:e,dict:y});d.push(m||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),v[0]=Object.assign({...v[0]},{rotate:i[0].labelRotate,fontSize:i[0].labelFontSize,color:i[0].xAxisLabelColor,offset:i[0].offset,position:i[0].position}),v.push({data:d,offset:i[0].offsetCaudex,position:"bottom"})}this.optionData={columns:v,data:p,series:p,type:1},this.assembly()},handleMultiaxis({config:r,data:e,categorydata:t}){const n=r.series?r.series:[],a=r.categories?r.categories:[],i=r.stackList?r.stackList:[];if(n.length===0||a.length===0)return;let o=[],s=[],l=[],u=[],f={item:{transKey:n[0].transKey,name:n[0].name}};const c=this.ruleList[0];let h="";c&&c.ruleOpen&&c.ruleFormatter.formatter!=="none"&&(h=c.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(f,{formatter:h}));let v={};const p=this.getBei(f.formatter);c&&c.ruleOpen&&c.ruleFormatter.min!==void 0&&c.ruleFormatter.min!==""&&Object.assign(v,{min:c.ruleFormatter.min*p}),c&&c.ruleOpen&&c.ruleFormatter.max!==void 0&&c.ruleFormatter.max!==""&&Object.assign(v,{max:c.ruleFormatter.max*p});const d=[Object.assign(f,v,{type:"bar"})];a.forEach((w,T)=>{const C=t[w.uuid]?t[w.uuid]:[],A=C.map(M=>{const L=w.dictTypeCode?this.getDictionary(w.dictTypeCode):[];return M?this.getVal({item:w,ite:M,data:e,dict:L}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")});A.length>0&&l.push({data:C,mode:w.mode,effectType:w.effectType,dictTypeCode:w.dictTypeCode,uuid:w.uuid}),T===0&&o.push({data:A,offset:0,position:"bottom"})}),i.forEach((w,T)=>{const C=t[w.uuid]?t[w.uuid]:[];C.map(A=>{const M=w.dictTypeCode?this.getDictionary(w.dictTypeCode):[];return A?this.getVal({item:w,ite:A,data:e,dict:M}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")}),u.push({data:C,mode:w.mode,effectType:w.effectType,dictTypeCode:w.dictTypeCode,uuid:w.uuid,offset:w.offset,offsetCaudex:w.offsetCaudex,labelRotate:w.labelRotate,labelFontSize:w.labelFontSize,xAxisLabelColor:w.xAxisLabelColor,position:w.position})});let g=[];const y=n[0].uuid,m=this.getChartType(n[0].type);e.forEach(w=>{const T=this.getDataName(w,a.concat(i),y);g.push(T)});for(let w=0;w<l[1].data.length;w++){let T=[],C=[];for(let M=0;M<l[0].data.length;M++){const L=l[0].data[M]+""+l[1].data[w],I=g.filter(E=>E.name===L)[0];C.push(L),T.push(I?I.val:0)}let A=l[1].data[w]===null||l[1].data[w]===""?{transKey:"gd.echarts.none",name:"\u7A7A\u767D"}:{transKey:null,name:l[1].data[w]+""};if(l[1].dictTypeCode){const L=this.getDictionary(l[1].dictTypeCode).filter(I=>I.code==l[1].data[w])[0];Object.assign(A,L?{transKey:L.transkey,name:L.name}:{})}else if(l[1].effectType==="datepicker"){const M=this.getVal({item:l[1],ite:l[1].data[w],data:e,dict:[]});Object.assign(A,M?{transKey:null,name:M}:{})}else if(["fk","user","about"].includes(l[1].effectType)){const M=this.getVal({item:l[1],ite:l[1].data[w],data:e,dict:[]});Object.assign(A,M?{transKey:null,name:M}:{})}s.push({data:T,dataName:[],type:m,item:A,tooltip:!0,ruleOpen:!0,columnName:n[0].columnName,mode:n[0].mode,bei:p,formatter:h,combination:C})}if(this.options.overlayStack&&u.length>0){const w=this.multiaxisStack(s,g,u,e);s=w.columnsData,o[0].offset=w.offset,o.push(w.xAxis),o.reverse()}const _=s.filter(w=>w.item.transKey!=="gd.echarts.none"),S=s.filter(w=>w.item.transKey==="gd.echarts.none"),b=_.concat(S),x=this.options.overlayLineChart&&m==="bar"?b.map(w=>Object.assign({...w},{type:m==="bar"?"line":"bar",tooltip:!1,ruleOpen:!1,columnName:"",formatter:""})):[];this.optionData={columns:o,data:d,series:b.concat(x),type:2},this.assembly()},multiaxisStack(r,e,t,n){const a=t[0].data,i=t[0].dictTypeCode,o=i?this.getDictionary(i):[],s=t[0];let l=[],u=[];a.forEach(v=>{const p=this.getVal({item:t[0],ite:v,data:n,dict:o});l.push({name:p,id:v}),u.push(p)});let f=[];for(let v=0;v<r[0].data.length;v++)f=f.concat(u);let c=[];const h=aT(8);for(let v=0;v<r.length;v++){let p=[],d=[];for(let g=0;g<r[v].combination.length;g++)for(let y=0;y<a.length;y++){d.push(r[v].combination[g]+a[y]);const m=r[v].combination[g]+a[y],_=e.filter(S=>S.name===m)[0];p.push(_?_.val:0)}c.push(Object.assign({...r[v]},{stack:h,data:p}))}return{columnsData:c,stackName:l,offset:s.offsetCaudex,xAxis:{data:f,rotate:s.labelRotate,fontSize:s.labelFontSize,color:s.xAxisLabelColor,offset:s.offset,position:s.position}}},init(r){if(this.record=r,r.data.length===0)return this.empty=!0,this.spinning=!1,!1;this.empty=!1,(r.config&&r.config.categories?r.config.categories:[]).length<=1?this.handleUniaxial(r):this.handleMultiaxis(r)},getBei(r){return r===void 0?1:r==="%"?100:1e3},getVal({item:r,ite:e,data:t,dict:n}){let a=e;const i=n.filter(o=>o.code==e)[0];if(r.dictTypeCode&&i)a=this.$i18nt(`Dynamics.${i.transkey}`,i.name);else if(r.effectType==="datepicker")a=this.getFormatTime(r.mode,e);else if(["fk","user","about"].includes(r.effectType)){const o=t.filter(s=>s[r.uuid]==e)[0];a=o&&o[`${r.uuid}_name`]?o[`${r.uuid}_name`]:a}return a},getDataName(r,e,t){let n="";return e.forEach(a=>{n+=String(r[a.uuid])}),{val:r[t],name:n}},getChartType(r){switch(r){case"1":return"bar";case"2":return"pie";case"3":return"funnel";case"4":return"line";default:return"bar"}},getDictionary(r){return this.$options.filters.dictData(r)},getFormatTime(r,e){if(["1","3","5"].includes(r)){const t=r==="5"?"yyyy":r==="3"?"yyyy-MM":"yyyy-MM-dd";return this.$options.filters.formatTime(e,t)}else if(r==="2"){const t=e.split("-"),n={year:t[0],week:t[1]},a=this.$i18nt("gd.echarts.yearWeek"),i=this.$i18nt("gd.echarts.weekMode");return this.language==="zh_CN"?`${n.year}${a}${n.week}${i}`:`${i} ${n.week} ${a} ${n.year}`}else if(r==="4"){const t=e.split("-"),n={year:t[0],quarter:t[1]},a=this.$i18nt("gd.echarts.yearQuarter"),i=this.$i18nt("gd.echarts.quarterMode");return this.language==="zh_CN"?`${n.year}${a}${n.quarter}${i}`:`${i}${n.quarter} ${a} ${n.year}`}}}};var Hq=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.spinning,expression:"spinning"}],staticClass:"gd-echart"},[e.type==="none"||e.empty?t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):t(e.componentItem,{ref:"componentItem",tag:"component",attrs:{develop:e.develop,color:e.getColor,options:e.options,ruleList:e.ruleList},on:{change:e.change}}),t("AmplifyEchart",{ref:"amplifyEchart",attrs:{color:e.getColor,options:e.options,ruleList:e.ruleList,componentItem:e.componentItem,bjstyle:e.bjstyle}})],1)},$q=[],Wq=wi(Fq,Hq,$q,!1,null,"7f38aca1",null,null);const pf=Wq.exports;pf.install=function(r){r.component(pf.name,pf)};exports.GDpackage=pf;exports.camelCases=LE;exports.clipboardContent=zE;exports.convertCurrency=NE;exports.copyTextToClipboard=BE;exports.formatting=EE;exports.getCurrentTime=GE;exports.getEchartColumnName=PE;exports.getFileAccept=FE;exports.getFileSize=HE;exports.getMultiple=RE;exports.init=wn;exports.isJson=OE;exports.mapActions=AE;exports.mapGetters=tT;exports.menuEscapes=ME;exports.normalizeComponent=wi;exports.roundNumber=_c;exports.sort=gf;exports.transKeyCodeName=kE;exports.translateLanguageName=VE;exports.treeToArray=IE;exports.uuid=aT;
78
+ `)),Lt(n)),i.push({dimIdx:y.index,parser:m,comparator:new kD(h,p)})});var o=e.sourceFormat;o!==xe&&o!==gr&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),Lt(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,c){for(var h=0;h<i.length;h++){var v=i[h],p=e.retrieveValueFromItem(f,v.dimIdx),d=e.retrieveValueFromItem(c,v.dimIdx);v.parser&&(p=v.parser(p),d=v.parser(d));var g=v.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function kX(r){r.registerTransform(RX),r.registerTransform(OX)}var VX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new GD(this),I_(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),I_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Xr},e}(xt),BX=function(r){R(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Wt);function zX(r){r.registerComponentModel(VX),r.registerComponentView(BX)}var Br=Qr.CMD;function fo(r,e){return Math.abs(r-e)<1e-5}function mg(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,E){a&&a.length>2&&n.push(a),a=[I,E]}function f(I,E,P,N){fo(I,P)&&fo(E,N)||a.push(I,E,P,N,P,N)}function c(I,E,P,N,k,O){var B=Math.abs(E-I),F=Math.tan(B/4)*4/3,$=E<I?-1:1,Z=Math.cos(I),Q=Math.sin(I),tt=Math.cos(E),pt=Math.sin(E),St=Z*k+P,dt=Q*O+N,rt=tt*k+P,gt=pt*O+N,st=k*F*$,q=O*F*$;a.push(St-st*Q,dt+q*Z,rt+st*pt,gt-q*tt,rt,gt)}for(var h,v,p,d,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===Br.L||y===Br.C||y===Br.Q)&&(a=[s,l])),y){case Br.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case Br.L:h=e[g++],v=e[g++],f(i,o,h,v),i=h,o=v;break;case Br.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case Br.Q:h=e[g++],v=e[g++],p=e[g++],d=e[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),p+2/3*(h-p),d+2/3*(v-d),p,d),i=p,o=d;break;case Br.A:var _=e[g++],S=e[g++],b=e[g++],x=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];h=Math.cos(w)*b+_,v=Math.sin(w)*x+S,m?(s=h,l=v,u(s,l)):f(i,o,h,v),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,M=w;C?M>T:M<T;M+=A){var L=C?Math.max(M+A,T):Math.min(M+A,T);c(M,L,_,S,b,x)}break;case Br.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),f(h,l,h,v),f(h,v,s,v),f(s,v,s,l),f(s,l,h,l);break;case Br.Z:a&&f(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function _g(r,e,t,n,a,i,o,s,l,u){if(fo(r,t)&&fo(e,n)&&fo(a,o)&&fo(i,s)){l.push(o,s);return}var f=2/u,c=f*f,h=o-r,v=s-e,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=t-r,g=n-e,y=a-o,m=i-s,_=d*d+g*g,S=y*y+m*m;if(_<c&&S<c){l.push(o,s);return}var b=h*d+v*g,x=-h*y-v*m,w=_-b*b,T=S-x*x;if(w<c&&b>=0&&T<c&&x>=0){l.push(o,s);return}var C=[],A=[];na(r,t,a,o,.5,C),na(e,n,i,s,.5,A),_g(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],l,u),_g(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],l,u)}function GX(r,e){var t=mg(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],c=i[u++],h=i[u++],v=i[u++],p=i[u++],d=i[u++];_g(s,l,f,c,h,v,p,d,o,e),s=p,l=d}n.push(o)}return n}function oE(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,c=t-f;if(c>0)for(var u=0;u<c;u++)l[u%o]+=1;return l}function Nw(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,f=l>Math.abs(u),c=oE([l,u],f?0:1,e),h=(f?s:u)/c.length,v=0;v<c.length;v++)for(var p=(f?u:s)/c[v],d=0;d<c[v];d++){var g={};f?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+p*d,g.r=n+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function FX(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=oE([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",c=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*c,d[f]=p*v,d[s]=c,d[l]=v,d.x+=r.x,d.y+=r.y,t.push(d)}}function Rw(r,e,t,n){return r*n-t*e}function HX(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,f=o-a,c=s-i,h=Rw(f,c,l,u);if(Math.abs(h)<1e-6)return null;var v=r-a,p=e-i,d=Rw(v,p,f,c)/h;return d<0||d>1?null:new ut(d*l+r,d*u+e)}function $X(r,e,t){var n=new ut;ut.sub(n,t,e),n.normalize();var a=new ut;ut.sub(a,r,e);var i=a.dot(n);return i}function to(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function WX(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=HX(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:$X(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var c=u;u=f,f=c}for(var h=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],p=[h],d=[v],i=u.idx+1;i<=f.idx;i++)to(p,r[i].slice());to(p,v),to(p,h);for(var i=f.idx+1;i<=u.idx+n;i++)to(d,r[i%n].slice());return to(d,h),to(d,v),[{points:p},{points:d}]}function Ow(r){var e=r.points,t=[],n=[];Ec(e,t,n);var a=new ht(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new ut,f=new ut;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),WX(e,u,f)}function pc(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);pc(r,i[0],a,n),pc(r,i[1],t-a,n)}return n}function UX(r,e){for(var t=[],n=0;n<e;n++)t.push(Xg(r));return t}function YX(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function ZX(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function XX(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":FX(n,e,t),a=Tt;break;case"sector":Nw(n,e,t),a=ze;break;case"circle":Nw({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=ze;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=G(GX(r.getUpdatedPathProxy(),o),function(y){return ZX(y)}),l=s.length;if(l===0)pc(Ow,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,c=G(s,function(y){var m=[],_=[];Ec(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});c.sort(function(y,m){return m.area-y.area});for(var h=e,u=0;u<l;u++){var v=c[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(v.area/f*e);p<0||(pc(Ow,{points:v.poly},p,t),h-=p)}}a=Ge;break}if(!a)return UX(r,e);for(var d=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),YX(r,g),d.push(g)}return d}function qX(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,c=[o[0],o[1]],h=l,v=2;v<s;){var p=o[v-2],d=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],b=o[v++];if(h<=0){c.push(g,y,m,_,S,b);continue}for(var x=Math.min(h,f-1)+1,w=1;w<=x;w++){var T=w/x;na(p,g,m,S,T,a),na(d,y,_,b,T,i),p=a[3],d=i[3],c.push(a[1],i[1],a[2],i[2],p,d),g=a[5],y=i[5],m=a[6],_=i[6]}h-=x-1}return o===r?[c,e]:[r,c]}function kw(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function jX(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,c=void 0;l?u?(t=qX(l,u),f=t[0],c=t[1],n=f,a=c):(c=kw(a||l,l),f=l):(f=kw(n||u,u),c=u),i.push(f),o.push(c)}return[i,o]}function Vw(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],c=s*f-u*l;e+=c,t+=(s+u)*c,n+=(l+f)*c}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function KX(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,c=0,h=0;h<s;h+=2){var v=h===0?f:(f+h-2)%l+2,p=r[v]-t[0],d=r[v+1]-t[1],g=e[h]-n[0],y=e[h+1]-n[1],m=g-p,_=y-d;c+=m*m+_*_}c<i&&(i=c,o=u)}return o}function JX(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function QX(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=Vw(s),f=Vw(l);i==null&&(i=u[2]<0!=f[2]<0);var c=[],h=[],v=0,p=1/0,d=[],g=s.length;i&&(s=JX(s));for(var y=KX(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;c[_+2]=s[S]-u[0],c[_+3]=s[S+1]-u[1]}if(c[0]=s[y]-u[0],c[1]=s[y+1]-u[1],t>0)for(var b=n/t,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=c[_],M=c[_+1],L=l[_]-f[0],I=l[_+1]-f[1],E=L*T-I*w,P=L*w+I*T;d[_]=E,d[_+1]=P;var N=E-A,k=P-M;C+=N*N+k*k}if(C<p){p=C,v=x;for(var O=0;O<d.length;O++)h[O]=d[O]}}else for(var B=0;B<g;B+=2)h[B]=l[B]-f[0],h[B+1]=l[B+1]-f[1];a.push({from:c,to:h,fromCp:u,toCp:f,rotation:-v})}return a}function dc(r){return r.__isCombineMorphing}var sE="__mOriginal_";function gc(r,e,t){var n=sE+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function js(r,e){var t=sE+e;r[t]&&(r[e]=r[t],r[t]=null)}function Bw(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function lE(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=jX(mg(t),mg(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Bw(i,s),l&&Bw(o,l),gc(e,"updateTransform",{replace:u}),e.transform=null;var f=QX(i,o,10,Math.PI),c=[];gc(e,"buildPath",{replace:function(h){for(var v=e.__morphT,p=1-v,d=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);Xu(d,b,x,v);for(var C=0;C<m.length;C+=2){var A=m[C],M=m[C+1],L=_[C],I=_[C+1],E=A*p+L*v,P=M*p+I*v;c[C]=E*T-P*w+d[0],c[C+1]=E*w+P*T+d[1]}var N=c[0],k=c[1];h.moveTo(N,k);for(var C=2;C<m.length;){var L=c[C++],I=c[C++],O=c[C++],B=c[C++],F=c[C++],$=c[C++];N===L&&k===I&&O===F&&B===$?h.lineTo(F,$):h.bezierCurveTo(L,I,O,B,F,$),N=F,k=$}}}})}function Pm(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;lE(r,e),e.__morphT=0;function i(){js(e,"buildPath"),js(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},et({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function tq(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,c=0;(r&u)>0&&(f=1),(e&u)>0&&(c=1),s+=u*u*(3*f^c),c===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function yc(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),c=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(c,t),n=Math.max(f,n),a=Math.max(c,a),[f,c]}),o=G(i,function(s,l){return{cp:s,z:tq(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function uE(r){return XX(r.path,r.count)}function Sg(){return{fromIndividuals:[],toIndividuals:[],count:0}}function eq(r,e,t){var n=[];function a(b){for(var x=0;x<b.length;x++){var w=b[x];dc(w)?a(w.childrenRef()):w instanceof mt&&n.push(w)}}a(r);var i=n.length;if(!i)return Sg();var o=t.dividePath||uE,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),Sg();n=yc(n),s=yc(s);for(var l=t.done,u=t.during,f=t.individualDelay,c=new fn,h=0;h<i;h++){var v=n[h],p=s[h];p.parent=e,p.copyTransform(c),f||lE(v,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}gc(e,"addSelfToZr",{after:function(b){d(b)}}),gc(e,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,js(e,"addSelfToZr"),js(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var S=f?et({delay:(t.delay||0)+f(h,y,n[h],s[h]),done:_},t):t;Pm(n[h],s[h],S)}else e.__morphT=0,e.animateTo({__morphT:1},et({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)js(r[b],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function rq(r,e,t){var n=e.length,a=[],i=t.dividePath||uE;function o(v){for(var p=0;p<v.length;p++){var d=v[p];dc(d)?o(d.childrenRef()):d instanceof mt&&a.push(d)}}if(dc(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Xg(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),Sg()}a=yc(a),e=yc(e);for(var c=t.individualDelay,u=0;u<n;u++){var h=c?et({delay:(t.delay||0)+c(u,n,a[u],e[u])},t):t;Pm(a[u],e[u],h)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function zw(r){return z(r[0])}function Gw(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var nq={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Xg(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function Ep(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=No("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;zw(r)&&(u=r,f=e),zw(e)&&(u=e,f=r);function c(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(dc(T))c({many:[T],one:C},!0,_,S,!0);else{var A=s?et({delay:s(_,S)},l):l;Pm(T,C,A),i(T,C,T,C,A)}}else for(var M=et({dividePath:nq[t],individualDelay:s&&function(k,O,B,F){return s(k+_,S)}},l),L=m?eq(x,w,M):rq(w,x,M),I=L.fromIndividuals,E=L.toIndividuals,P=I.length,N=0;N<P;N++){var A=s?et({delay:s(N,P)},l):l;i(I[N],E[N],m?x[N]:y.one,m?y.one:x[N],A)}}for(var h=u?u===r:r.length>e.length,v=u?Gw(f,u):Gw(h?e:r,[h?r:e]),p=0,d=0;d<v.length;d++)p+=v[d].many.length;for(var g=0,d=0;d<v.length;d++)c(v[d],h,g,p),g+=v[d].many.length}function Wa(r){if(!r)return[];if(z(r)){for(var e=[],t=0;t<r.length;t++)e.push(Wa(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof mt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var fE=1e4,aq=Ct();function iq(r){for(var e=r.dimensions,t=0;t<e.length;t++){var n=r.getDimensionInfo(e[t]);if(n&&n.otherDims.itemGroupId===0)return e[t]}}function Fw(r){var e=[];return D(r,function(t){var n=t.data;if(n.count()>fE){process.env.NODE_ENV!=="production"&&Ft("Universal transition is disabled on large data > 10k.");return}for(var a=n.getIndices(),i=iq(n),o=0;o<a.length;o++)e.push({dataGroupId:t.dataGroupId,data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})}),e}function Pp(r,e,t){r.traverse(function(n){n instanceof mt&&Bt(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function Np(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function eo(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function oq(r,e,t){var n=No("update",t,e);n&&r.traverse(function(a){if(a instanceof hr){var i=$R(a);i&&a.animateFrom({style:i},n)}})}function sq(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function cE(r,e,t){var n=Fw(r),a=Fw(e);function i(y,m,_,S,b){(_||y)&&m.animateFrom({style:_&&_!==y?V(V({},_.style),y.style):y.style},b)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(n),l=o(a),u=!1;function f(y,m){return function(_){var S=_.data,b=_.dataIndex;if(m)return S.getId(b);var x=_.dataGroupId,w=y?s||l:l||s,T=w&&S.getDimensionInfo(w),C=T&&T.ordinalMeta;if(T){var A=S.get(T.name,b);return C&&C.categories[A]||A+""}var M=S.getRawDataItem(b);return M&&M.groupId?M.groupId+"":x||S.getId(b)}}var c=sq(n,a),h={};if(!c)for(var v=0;v<a.length;v++){var p=a[v],d=p.data.getItemGraphicEl(p.dataIndex);d&&(h[d.id]=!0)}function g(y,m){var _=n[m],S=a[y],b=S.data.hostModel,x=_.data.getItemGraphicEl(_.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(x===w){w&&oq(w,S.dataIndex,b);return}x&&h[x.id]||w&&(eo(w),x?(eo(x),Np(x),u=!0,Ep(Wa(x),Wa(w),S.divide,b,y,i)):Pp(w,b,y))}new Tn(n,a,f(!0,c),f(!1,c),null,"multiple").update(g).updateManyToOne(function(y,m){var _=a[y],S=_.data,b=S.hostModel,x=S.getItemGraphicEl(_.dataIndex),w=Et(G(m,function(T){return n[T].data.getItemGraphicEl(n[T].dataIndex)}),function(T){return T&&T!==x&&!h[T.id]});x&&(eo(x),w.length?(D(w,function(T){eo(T),Np(T)}),u=!0,Ep(Wa(w),Wa(x),_.divide,b,y,i)):Pp(x,b,_.dataIndex))}).updateOneToMany(function(y,m){var _=n[m],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&h[S.id])){var b=Et(G(y,function(w){return a[w].data.getItemGraphicEl(a[w].dataIndex)}),function(w){return w&&w!==S}),x=a[y[0]].data.hostModel;b.length&&(D(b,function(w){return eo(w)}),S?(eo(S),Np(S),u=!0,Ep(Wa(S),Wa(b),_.divide,x,y[0],i)):D(b,function(w){return Pp(w,x,y[0])}))}}).updateManyToMany(function(y,m){new Tn(m,y,function(_){return n[_].data.getId(n[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,S){g(y[_],m[S])}).execute()}).execute(),u&&D(e,function(y){var m=y.data,_=m.hostModel,S=_&&t.getViewOfSeriesModel(_),b=No("update",_,0);S&&_.isAnimationEnabled()&&b&&b.duration>0&&S.group.traverse(function(x){x instanceof mt&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Hw(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function $w(r){return z(r)?r.sort().join(","):r}function $n(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function lq(r,e){var t=X(),n=X(),a=X();D(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=Hw(o),c=$w(f);n.set(c,{dataGroupId:l,data:u}),z(f)&&D(f,function(h){a.set(h,{key:c,dataGroupId:l,data:u})})});function i(o){t.get(o)&&Ft("Duplicated seriesKey in universalTransition "+o)}return D(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=Hw(o),f=$w(u),c=n.get(f);if(c)process.env.NODE_ENV!=="production"&&i(f),t.set(f,{oldSeries:[{dataGroupId:c.dataGroupId,divide:$n(c.data),data:c.data}],newSeries:[{dataGroupId:s,divide:$n(l),data:l}]});else if(z(u)){process.env.NODE_ENV!=="production"&&i(f);var h=[];D(u,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:$n(g.data),data:g.data})}),h.length&&t.set(f,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:$n(l)}]})}else{var v=a.get(u);if(v){var p=t.get(v.key);p||(p={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:$n(v.data)}],newSeries:[]},t.set(v.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:$n(l)})}}}}),t}function Ww(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function uq(r,e,t,n){var a=[],i=[];D(Pt(r.from),function(o){var s=Ww(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:$n(e.oldData[s]),dim:o.dimension})}),D(Pt(r.to),function(o){var s=Ww(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:$n(l),dim:o.dimension})}}),a.length>0&&i.length>0&&cE(a,i,n)}function fq(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){D(Pt(n.seriesTransition),function(a){D(Pt(a.to),function(i){for(var o=n.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][of]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=aq(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)D(Pt(i),function(v){uq(v,a,n,t)});else{var o=lq(a,n);D(o.keys(),function(v){var p=o.get(v);cE(p.oldSeries,p.newSeries,t)})}D(n.updatedSeries,function(v){v[of]&&(v[of]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],c=0;c<s.length;c++){var h=s[c].getData();h.count()<fE&&(l.push(s[c]),u.push(s[c].get("dataGroupId")),f.push(h))}})}yt([M5]);yt([x5]);yt([J5,gG,LG,gF,NF,A3,aH,WH,m$,A$,B$,H4,dW,MW,XW,eU,_U,LU,HU,jU,u6,Z6]);yt(g8);yt(j8);yt(iL);yt(vY);yt(UL);yt(SY);yt(LY);yt(I7);yt(Q7);yt(Fl);yt(_9);yt(b9);yt(V9);yt(Z9);yt(eZ);yt(uZ);yt(wZ);yt(UZ);yt(KI);yt(JI);yt(mX);yt(nE);yt(aE);yt(wX);yt(kX);yt(zX);yt(fq);yt(Fz);function cq(r,e){let t=new Map;return r.forEach((a,i)=>{t.set(a.id,hq(a.operation.list))}),{rich:Object.fromEntries(t),formatter:a=>vq(a,r,e)}}function hq(r){let e={};return r.forEach(t=>{t.rules==="1"?Object.assign(e,{color:t.val?t.val:"#333"}):t.rules==="2"?Object.assign(e,{fontSize:t.val+"px"}):t.rules==="3"&&Object.assign(e,{fontWeight:t.val})}),e}function vq(r,e,t){const n=t.formatter?t.formatter:"";let a="";for(let o=0;o<e.length;o++){let s=[];e[o].condition.list.forEach(u=>{const f=hE(u.val),c=t.bei===0?0:t.bei===100?f.l-2:f.l-3,h=vf(Number(u.val)*t.bei,c);let v=pq({data:Object.assign({...u},{val:h}),val:r.data});s.push(v)}),dq(s,e[o])&&a===""&&(a=e[o].id)}return a!==""?`{${a}|${r.data} ${n}}`:`${r.data} ${n}`}function pq(r){switch(r.data.rules){case"1":return Uw(r);case"2":return Uw(r);case"7":return Uu(r);case"8":return Uu(r);case"9":return Uu(r);case"10":return Uu(r)}}function Uw({data:r,val:e}){if(e===""||e===void 0)return!1;let t=Number(e),n=Number(r.val);return r.rules==="1"?t===n:t!==n}function Uu({data:r,val:e}){if(e===""||e===void 0)return!1;let t=Yw("inputnumber",{val:e}),n=Yw("inputnumber",r);if(r.rules==="7")return t>n;if(r.rules==="8")return t>=n;if(r.rules==="9")return t<n;if(r.rules==="10")return t<=n}function Yw(r="inputnumber",e){let t=0;return r==="inputnumber"?t=Number(e.val):t=new Date(String(e.val)).getTime(),t}function dq(r,e){let t=e.condition.list.length;if(t===0)return!0;let n=t===0?"1":e.condition.list[t-1].type,a=gq(r,n);return n==="2"&&!a?!0:!!(n!=="2"&&a)}function gq(r,e){return e==="2"?r.every((t,n,a)=>!t):r.every((t,n,a)=>!!t)}function hE(r){const e=String(r),t=e.substr(e.lastIndexOf(".")+1).toLowerCase();let n=1;for(let a=0;a<t.length;a++)n*=10;return{n,l:t.length}}function vf(r,e){const t=10**e;return Math.round(r*t)/t}const yq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=[],t=[],n=[],a=[];const i=r.series.filter(v=>v.type==="bar")[0];r.columns.forEach(v=>{e.push({type:"category",data:v.data,axisPointer:{type:i===void 0?"line":"shadow"},axisTick:{alignWithLabel:!1},axisLine:{onZero:!1,lineStyle:{color:this.options.labelLineColor}},axisLabel:{interval:0,rotate:v.rotate!==void 0?v.rotate:this.options.labelRotate,fontSize:v.fontSize!==void 0?v.fontSize:this.options.labelFontSize,color:v.color!==void 0?v.color:this.options.xAxisLabelColor},offset:v.offset,position:v.position})}),r.data.forEach((v,p)=>{this.$i18nt(v.item.transKey,v.item.name);let d={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:v.formatter?`{value} ${v.formatter}`:"{value}",color:this.options.labelFontColor}};v.max!==void 0&&Object.assign(d,{max:v.max}),v.min!==void 0&&Object.assign(d,{min:v.min}),r.data.length!==1&&Object.assign(d,{position:p===0?"left":"right",alignTicks:!0,show:p<2,axisLabel:{formatter:v.formatter?`{value} ${v.formatter}`:"{value}"}}),t.push(d)});const s=r.series.filter(v=>{const p=v.item.columnName?v.item.columnName:"",d=r.series[0].columnName?r.series[0].columnName:"";return p===d}).length===r.series.length;r.series.forEach((v,p)=>{let d=this.$i18nt(v.item.transKey,v.item.name);v.item.transkeyDict&&(d+=` (${this.$i18nt(v.item.transkeyDict,v.item.transkeyName)})`);let g={label:{show:v.tooltip?this.options.labelShow:v.tooltip,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}},color:_=>r.type===1?this.color[_.dataIndex]:this.color[p]};this.ruleList.length>0&&(g=this.getNormal(g,v)),(r.data.length!==1||r.type===2)&&v.item.name&&a.push(d);let y={type:v.type,name:d,emphasis:{focus:this.options.emphasisFocus},data:v.data.map(_=>{if(v.bei===1)return vf(_,this.options.numericalPrecision).toFixed(this.options.numericalPrecision);const S=hE(_),b=v.bei===100?S.l-2:S.l-3,x=vf(Number(_)*v.bei,b);return vf(x,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)}),tooltip:{show:v.tooltip,valueFormatter:_=>v.formatter?`${_} ${v.formatter}`:_},itemStyle:r.data.length===1?{normal:g}:{normal:Object.assign({...g},{color:this.color[p]})}};const m=this.options.overlayStack?{stack:v.stack?v.stack:"Total"}:{};r.type===1&&Object.assign(y,{yAxisIndex:s||m.stack!==void 0?0:p}),v.type==="line"&&Object.assign(y,{smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth}}),n.push(Object.assign(y,m))});let l={containLabel:!0};this.options.gridPosition.forEach((v,p)=>{v!==""&&p===0?Object.assign(l,{top:v}):v!==""&&p===1?Object.assign(l,{right:v}):v!==""&&p===2?Object.assign(l,{bottom:v}):v!==""&&p===3&&Object.assign(l,{left:v})});let u={data:a,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};this.options.legendPosition.forEach((v,p)=>{v!==""&&p===0?Object.assign(u,{top:v}):v!==""&&p===1?Object.assign(u,{right:v}):v!==""&&p===2?Object.assign(u,{bottom:v}):v!==""&&p===3&&Object.assign(u,{left:v})}),i===void 0&&this.options.areaStyleStack&&(e.forEach((v,p)=>{e[p]=Object.assign(v,{boundaryGap:!1})}),n.forEach((v,p)=>{n[p]=Object.assign(v,{areaStyle:{}})}));const f=Math.ceil(n.length/this.color.length);let c=[];for(let v=0;v<f;v++)c=c.concat(this.color);return{color:c,tooltip:{trigger:"axis",axisPointer:{type:i===void 0?"cross":"shadow"}},grid:l,legend:u,xAxis:e,yAxis:t,series:n}},getNormal(r,e){const t=`${e.columnName}&${e.mode}`,n=this.ruleList.filter(i=>`${i.columnName}&${i.mode}`===t)[0];if(!n)return r;let a=cq(n.ruleSequence,e);return Object.assign({...r},{label:Object.assign({...r.label},a)})}}};var mq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},_q=[],Sq=wi(yq,mq,_q,!1,null,"2203f480",null,null);const Zw=Sq.exports;const xq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=0,t=r.data[0].dataName;t.forEach((i,o)=>{e+=Number(i.value),t[o].order=i.value}),t=[...gf(t)];let n={data:r.columns[0].data,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((i,o)=>{i!==""&&o===0?Object.assign(n,{top:i}):i!==""&&o===1?Object.assign(n,{right:i}):i!==""&&o===2?Object.assign(n,{bottom:i}):i!==""&&o===3&&Object.assign(n,{left:i})}),{tooltip:{trigger:"item",formatter:function(i){return i.data.name+":\r"+i.data.values}},color:this.color,legend:n,series:[{type:"funnel",left:"10%",top:50,bottom:50,width:"76%",min:0,max:100,minSize:"10%",maxSize:"90%",sort:"descending",gap:1,label:{show:this.options.labelShow,fontSize:this.options.textFontSize,formatter:function(i){return i.data.name+":\r"+i.data.values+`
79
+ `+i.data.percentage+"%"}},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{fontSize:15}},data:t.map((i,o)=>{const s=i.value;return Object.assign({...i},{values:_c(s,this.options.numericalPrecision).toFixed(this.options.numericalPrecision),percentage:e===0?"0":(Number(s)/e*1e4).toFixed(0)/100,value:(1/t.length*(o+1)*100).toFixed(0)})})}]}}}};var bq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},wq=[],Tq=wi(xq,bq,wq,!1,null,"eae05112",null,null);const Cq=Tq.exports;const Dq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=[],t=[],n=[],a=[];const i=this.options.areaStyleStack?{boundaryGap:!1}:{};r.columns.forEach(u=>{e.push(Object.assign({type:"category",data:u.data,axisPointer:{type:"line"},axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:this.options.labelRotate,fontSize:this.options.labelFontSize,color:this.options.xAxisLabelColor}},i))}),this.options.labelShow,this.options.labelTextPosition,this.options.textFontSize,this.options.textFontColor,r.data.forEach((u,f)=>{let c={type:"value",axisLine:{show:!0,lineStyle:{color:this.options.labelLineColor}},axisLabel:{formatter:"{value}",color:this.options.labelFontColor}},h=this.$i18nt(u.item.transKey,u.item.name);u.item.transkeyDict&&(h+=` (${this.$i18nt(u.item.transkeyDict,u.item.transkeyName)})`),r.data.length!==1&&(a.push(h),Object.assign(c,{name:h,position:f===0?"left":"right",alignTicks:!0,show:f<2})),t.push(c);let v=this.options.overlayStack?{stack:"Total"}:{};this.options.areaStyleStack&&Object.assign(v,{areaStyle:{}}),n.push(Object.assign({emphasis:{focus:this.options.emphasisFocus},type:u.type,name:h,data:u.data.map(p=>_c(p,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)),smooth:this.options.smooth,showSymbol:this.options.showSymbol,lineStyle:{width:this.options.lineStyleWidth},normal:{label:{show:this.options.labelShow,position:this.options.labelTextPosition,textStyle:{fontSize:this.options.textFontSize,color:this.options.textFontColor}}}},v))});let o={containLabel:!0};this.options.gridPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(o,{top:u}):u!==""&&f===1?Object.assign(o,{right:u}):u!==""&&f===2?Object.assign(o,{bottom:u}):u!==""&&f===3&&Object.assign(o,{left:u})});let s={data:a,type:"scroll",textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((u,f)=>{u!==""&&f===0?Object.assign(s,{top:u}):u!==""&&f===1?Object.assign(s,{right:u}):u!==""&&f===2?Object.assign(s,{bottom:u}):u!==""&&f===3&&Object.assign(s,{left:u})}),{color:this.color,tooltip:{trigger:"axis",axisPointer:{type:"cross"}},grid:o,legend:s,xAxis:e,yAxis:t,series:n}}}};var Aq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Mq=[],Lq=wi(Dq,Aq,Mq,!1,null,"8d5d623f",null,null);const Iq=Lq.exports;const Eq={props:{develop:{type:[Number,String],default:1},color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},data(){return{}},methods:{init(r){let e=wn(this.$refs.container),t=this.getOption(r);e.clear(),e.dispose(),e=wn(this.$refs.container),e.setOption(t),e.on("click",n=>{this.$emit("change",n)})},getOption(r){let e=[];r.data.forEach(a=>{e.push({type:"pie",radius:["30%","58%"],center:["50%","50%"],data:a.dataName.map(i=>Object.assign({...i},{value:_c(i.value,this.options.numericalPrecision).toFixed(this.options.numericalPrecision)})),label:{show:this.options.labelShow,position:this.options.labelTextPosition==="inside"?"inside":"outside",textStyle:{fontWeight:500,color:this.options.textFontColor,fontSize:this.options.textFontSize,lineHeight:20},formatter:`{b}:\r\r{c}\r
80
+ ({d}%)`},itemStyle:{borderRadius:2}})});let t={type:"scroll",data:r.columns[0].data,textStyle:{color:this.options.legendTextColor},orient:this.options.legendOrient};return this.options.legendPosition.forEach((a,i)=>{a!==""&&i===0?Object.assign(t,{top:a}):a!==""&&i===1?Object.assign(t,{right:a}):a!==""&&i===2?Object.assign(t,{bottom:a}):a!==""&&i===3&&Object.assign(t,{left:a})}),{color:this.color,tooltip:{trigger:"item"},legend:t,series:e}}}};var Pq=function(){var e=this,t=e._self._c;return t("div",{ref:"container",staticStyle:{height:"100%",width:"100%"},attrs:{id:"container"}})},Nq=[],Rq=wi(Eq,Pq,Nq,!1,null,"42870228",null,null);const Oq=Rq.exports;const kq={props:{color:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},componentItem:{type:Object,default:()=>({})},ruleList:{type:Array,default:()=>[]},bjstyle:{type:String,default:""}},data(){return{record:{},width:"80%",confirmLoading:!1,visible:!1,fullscreen:!1}},methods:{open(r){this.visible=!0,this.record={...r},this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record),this.spinning=!1},0)})},toggleFullscreen(){this.fullscreen=!this.fullscreen,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.record)},0)})},doEvent(r){let e=r.item.functionName;this[e]&&this[e]()},closed(){this.fullscreen=!1,this.visible=!1}}};var Vq=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(n){e.visible=n},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:"",fullscreen:e.fullscreen,buttons:[],confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent},slot:"title"}),t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"generator-form",style:e.bjstyle},[e.visible?t(e.componentItem,{ref:"componentItem",tag:"component",attrs:{color:e.color,options:e.options,ruleList:e.ruleList}}):e._e()],1)],1)},Bq=[],zq=wi(kq,Vq,Bq,!1,null,"3d1d14e7",null,null);const Gq=zq.exports;const Fq={name:"GdChartBi",props:{develop:{type:[Number,String],default:1},showTitle:{type:Boolean,default:!0},color:{type:Array,default:()=>[]},left:{type:[Number,String],default:10},bjstyle:{type:String,default:""}},data(){return{record:{},optionData:{},spinning:!0,type:"none",empty:!1,offsetCaudex:0}},components:{AmplifyEchart:Gq},computed:{echartsMode(){return this.getDictionary("table_echarts_mode")},ruleList(){return(this.record.config&&this.record.config.series?this.record.config.series:[]).filter(e=>e.ruleOpen)},options(){let r=this.record.options||{};return Object.assign({...r},{labelTextPosition:r.labelTextPosition?r.labelTextPosition:"top",legendPosition:r.legendPosition?r.legendPosition:["","","",""],gridPosition:r.gridPosition?r.gridPosition:["60","4%","3%","3%"],overlayStack:r.overlayStack!==void 0?r.overlayStack:!1,areaStyleStack:r.areaStyleStack!==void 0?r.areaStyleStack:!1,legendShow:r.legendShow!==void 0?r.legendShow:!0,labelFontColor:r.labelFontColor?r.labelFontColor:"#333",textFontColor:r.textFontColor?r.textFontColor:"#333",textFontSize:r.textFontSize?r.textFontSize:14,legendOrient:r.legendOrient?r.legendOrient:"horizontal",legendTextColor:r.legendTextColor?r.legendTextColor:"#333",xAxisLabelColor:r.xAxisLabelColor?r.xAxisLabelColor:"#333",labelLineColor:r.labelLineColor?r.labelLineColor:"#333",emphasisFocus:r.emphasisFocus?r.emphasisFocus:"series",lineStyleWidth:r.lineStyleWidth!==void 0?r.lineStyleWidth:1,numericalPrecision:r.numericalPrecision!==void 0?r.numericalPrecision:2})},componentItem(){const e=[{type:"bar",data:Zw},{type:"pie",data:Oq},{type:"funnel",data:Cq},{type:"line",data:Iq}].filter(t=>t.type===this.type)[0];return e?e.data:Zw},getColor(){let r=[];return(this.color.length===0?this.echartsColor:this.color).forEach(t=>{r.push(t==="0"?this.primaryColor:t)}),r},...tT(["echartsColor","primaryColor","language"])},methods:{amplify(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.amplifyEchart.open(this.optionData)},0)})},setType(){this.type="none"},change(r){this.$emit("change",{params:r,option:this.optionData,record:this.record})},assembly(){const r=this.optionData.data.filter(e=>e.type==="bar")[0];this.type=r?r.type:this.optionData.data[0].type,this.$nextTick(()=>{setTimeout(()=>{this.$refs.componentItem.init(this.optionData),this.spinning=!1},0)})},handleUniaxial({config:r,data:e,categorydata:t}){const n=r.series?r.series:[],a=r.categories?r.categories:[],i=r.stackList?r.stackList:[];if(n.length===0||a.length===0)return;const o=i[0]?i[0].uuid:"",s=o!==""?o:a[0].uuid,l=n.filter(d=>d.type==="1")[0];l?l.type:n[0].type;const u=i.filter(d=>d.dictTypeCode)[0],f=a.filter(d=>d.dictTypeCode)[0],c=o!==""?u:f,h=c?this.getDictionary(c.dictTypeCode):[];let v=[],p=[];if(n.forEach((d,g)=>{let y=[],m=[],_=[];e.forEach(T=>{const C=T[s],A=T[d.uuid],M=this.getVal({item:o!==""?i[0]:a[0],ite:C,data:e,dict:h});y.push(A),m.push({value:A,name:M}),g===0&&_.push(M||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),_.length>0&&v.push({data:_});let S={},b="";d.ruleOpen&&d.ruleFormatter.formatter!=="none"&&(b=d.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(S,{formatter:b}));const x=this.getBei(S.formatter);d.ruleOpen&&d.ruleFormatter.min!==void 0&&d.ruleFormatter.min!==""&&Object.assign(S,{min:d.ruleFormatter.min*x}),d.ruleOpen&&d.ruleFormatter.max!==void 0&&d.ruleFormatter.max!==""&&Object.assign(S,{max:d.ruleFormatter.max*x});const w=this.echartsMode.filter(T=>T.code==d.mode)[0];p.push(Object.assign({data:y,dataName:m,type:this.getChartType(d.type),item:Object.assign({...d},{transKey:`Dynamics.${d.transKey}`,transkeyDict:w?w.transkey:null,transkeyName:w?w.name:""}),bei:x,tooltip:!0,columnName:d.columnName,mode:d.mode},S))}),o!==""){let d=[];t[a[0].uuid].forEach(g=>{const y=f?this.getDictionary(f.dictTypeCode):[],m=this.getVal({item:a[0],ite:g,data:e,dict:y});d.push(m||this.$i18nt("gd.echarts.none","\u7A7A\u767D"))}),v[0]=Object.assign({...v[0]},{rotate:i[0].labelRotate,fontSize:i[0].labelFontSize,color:i[0].xAxisLabelColor,offset:i[0].offset,position:i[0].position}),v.push({data:d,offset:i[0].offsetCaudex,position:"bottom"})}this.optionData={columns:v,data:p,series:p,type:1},this.assembly()},handleMultiaxis({config:r,data:e,categorydata:t}){const n=r.series?r.series:[],a=r.categories?r.categories:[],i=r.stackList?r.stackList:[];if(n.length===0||a.length===0)return;let o=[],s=[],l=[],u=[],f={item:{transKey:n[0].transKey,name:n[0].name}};const c=this.ruleList[0];let h="";c&&c.ruleOpen&&c.ruleFormatter.formatter!=="none"&&(h=c.ruleFormatter.formatter==="percent"?"%":"\u2030",Object.assign(f,{formatter:h}));let v={};const p=this.getBei(f.formatter);c&&c.ruleOpen&&c.ruleFormatter.min!==void 0&&c.ruleFormatter.min!==""&&Object.assign(v,{min:c.ruleFormatter.min*p}),c&&c.ruleOpen&&c.ruleFormatter.max!==void 0&&c.ruleFormatter.max!==""&&Object.assign(v,{max:c.ruleFormatter.max*p});const d=[Object.assign(f,v,{type:"bar"})];a.forEach((w,T)=>{const C=t[w.uuid]?t[w.uuid]:[],A=C.map(M=>{const L=w.dictTypeCode?this.getDictionary(w.dictTypeCode):[];return M?this.getVal({item:w,ite:M,data:e,dict:L}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")});A.length>0&&l.push({data:C,mode:w.mode,effectType:w.effectType,dictTypeCode:w.dictTypeCode,uuid:w.uuid}),T===0&&o.push({data:A,offset:0,position:"bottom"})}),i.forEach((w,T)=>{const C=t[w.uuid]?t[w.uuid]:[];C.map(A=>{const M=w.dictTypeCode?this.getDictionary(w.dictTypeCode):[];return A?this.getVal({item:w,ite:A,data:e,dict:M}):this.$i18nt("gd.echarts.none","\u7A7A\u767D")}),u.push({data:C,mode:w.mode,effectType:w.effectType,dictTypeCode:w.dictTypeCode,uuid:w.uuid,offset:w.offset,offsetCaudex:w.offsetCaudex,labelRotate:w.labelRotate,labelFontSize:w.labelFontSize,xAxisLabelColor:w.xAxisLabelColor,position:w.position})});let g=[];const y=n[0].uuid,m=this.getChartType(n[0].type);e.forEach(w=>{const T=this.getDataName(w,a.concat(i),y);g.push(T)});for(let w=0;w<l[1].data.length;w++){let T=[],C=[];for(let M=0;M<l[0].data.length;M++){const L=l[0].data[M]+""+l[1].data[w],I=g.filter(E=>E.name===L)[0];C.push(L),T.push(I?I.val:0)}let A=l[1].data[w]===null||l[1].data[w]===""?{transKey:"gd.echarts.none",name:"\u7A7A\u767D"}:{transKey:null,name:l[1].data[w]+""};if(l[1].dictTypeCode){const L=this.getDictionary(l[1].dictTypeCode).filter(I=>I.code==l[1].data[w])[0];Object.assign(A,L?{transKey:L.transkey,name:L.name}:{})}else if(l[1].effectType==="datepicker"){const M=this.getVal({item:l[1],ite:l[1].data[w],data:e,dict:[]});Object.assign(A,M?{transKey:null,name:M}:{})}else if(["fk","user","about"].includes(l[1].effectType)){const M=this.getVal({item:l[1],ite:l[1].data[w],data:e,dict:[]});Object.assign(A,M?{transKey:null,name:M}:{})}s.push({data:T,dataName:[],type:m,item:A,tooltip:!0,ruleOpen:!0,columnName:n[0].columnName,mode:n[0].mode,bei:p,formatter:h,combination:C})}if(this.options.overlayStack&&u.length>0){const w=this.multiaxisStack(s,g,u,e);s=w.columnsData,o[0].offset=w.offset,o.push(w.xAxis),o.reverse()}const _=s.filter(w=>w.item.transKey!=="gd.echarts.none"),S=s.filter(w=>w.item.transKey==="gd.echarts.none"),b=_.concat(S),x=this.options.overlayLineChart&&m==="bar"?b.map(w=>Object.assign({...w},{type:m==="bar"?"line":"bar",tooltip:!1,ruleOpen:!1,columnName:"",formatter:""})):[];this.optionData={columns:o,data:d,series:b.concat(x),type:2},this.assembly()},multiaxisStack(r,e,t,n){const a=t[0].data,i=t[0].dictTypeCode,o=i?this.getDictionary(i):[],s=t[0];let l=[],u=[];a.forEach(v=>{const p=this.getVal({item:t[0],ite:v,data:n,dict:o});l.push({name:p,id:v}),u.push(p)});let f=[];for(let v=0;v<r[0].data.length;v++)f=f.concat(u);let c=[];const h=aT(8);for(let v=0;v<r.length;v++){let p=[],d=[];for(let g=0;g<r[v].combination.length;g++)for(let y=0;y<a.length;y++){d.push(r[v].combination[g]+a[y]);const m=r[v].combination[g]+a[y],_=e.filter(S=>S.name===m)[0];p.push(_?_.val:0)}c.push(Object.assign({...r[v]},{stack:h,data:p}))}return{columnsData:c,stackName:l,offset:s.offsetCaudex,xAxis:{data:f,rotate:s.labelRotate,fontSize:s.labelFontSize,color:s.xAxisLabelColor,offset:s.offset,position:s.position}}},init(r){if(this.record=r,r.data.length===0)return this.empty=!0,this.spinning=!1,!1;this.empty=!1,(r.config&&r.config.categories?r.config.categories:[]).length<=1?this.handleUniaxial(r):this.handleMultiaxis(r)},getBei(r){return r===void 0?1:r==="%"?100:1e3},getVal({item:r,ite:e,data:t,dict:n}){let a=e;const i=n.filter(o=>o.code==e)[0];if(r.dictTypeCode&&i)a=this.$i18nt(`Dynamics.${i.transkey}`,i.name);else if(r.effectType==="datepicker")a=this.getFormatTime(r.mode,e);else if(["fk","user","about"].includes(r.effectType)){const o=t.filter(s=>s[r.uuid]==e)[0];a=o&&o[`${r.uuid}_name`]?o[`${r.uuid}_name`]:a}return a},getDataName(r,e,t){let n="";return e.forEach(a=>{n+=String(r[a.uuid])}),{val:r[t],name:n}},getChartType(r){switch(r){case"1":return"bar";case"2":return"pie";case"3":return"funnel";case"4":return"line";default:return"bar"}},getDictionary(r){return this.$options.filters.dictData(r)},getFormatTime(r,e){if(["1","3","5"].includes(r)){const t=r==="5"?"yyyy":r==="3"?"yyyy-MM":"yyyy-MM-dd";return this.$options.filters.formatTime(e,t)}else if(r==="2"){const t=e.split("-"),n={year:t[0],week:t[1]},a=this.$i18nt("gd.echarts.yearWeek"),i=this.$i18nt("gd.echarts.weekMode");return this.language==="zh_CN"?`${n.year}${a}${n.week}${i}`:`${i} ${n.week} ${a} ${n.year}`}else if(r==="4"){const t=e.split("-"),n={year:t[0],quarter:t[1]},a=this.$i18nt("gd.echarts.yearQuarter"),i=this.$i18nt("gd.echarts.quarterMode");return this.language==="zh_CN"?`${n.year}${a}${n.quarter}${i}`:`${i}${n.quarter} ${a} ${n.year}`}}}};var Hq=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:e.spinning,expression:"spinning"}],staticClass:"gd-echart"},[e.type==="none"||e.empty?t("div",{staticClass:"empty"},[t("i",{staticClass:"el-icon-receiving"}),t("div",{staticClass:"empty-err"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])]):t(e.componentItem,{ref:"componentItem",tag:"component",attrs:{develop:e.develop,color:e.getColor,options:e.options,ruleList:e.ruleList},on:{change:e.change}}),t("AmplifyEchart",{ref:"amplifyEchart",attrs:{color:e.getColor,options:e.options,ruleList:e.ruleList,componentItem:e.componentItem,bjstyle:e.bjstyle}})],1)},$q=[],Wq=wi(Fq,Hq,$q,!1,null,"b875d18a",null,null);const pf=Wq.exports;pf.install=function(r){r.component(pf.name,pf)};exports.GDpackage=pf;exports.camelCases=LE;exports.clipboardContent=zE;exports.convertCurrency=NE;exports.copyTextToClipboard=BE;exports.formatting=EE;exports.getCurrentTime=GE;exports.getEchartColumnName=PE;exports.getFileAccept=FE;exports.getFileSize=HE;exports.getMultiple=RE;exports.init=wn;exports.isJson=OE;exports.mapActions=AE;exports.mapGetters=tT;exports.menuEscapes=ME;exports.normalizeComponent=wi;exports.roundNumber=_c;exports.sort=gf;exports.transKeyCodeName=kE;exports.translateLanguageName=VE;exports.treeToArray=IE;exports.uuid=aT;