diff --git a/.DS_Store b/.DS_Store index 63fe7c98..b193948e 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/assets/Result.9786211f.js b/assets/Result.071ac91f.js similarity index 99% rename from assets/Result.9786211f.js rename to assets/Result.071ac91f.js index ddd7aac8..6190dcdb 100644 --- a/assets/Result.9786211f.js +++ b/assets/Result.071ac91f.js @@ -1,4 +1,4 @@ -import{h as e,k as c,B as u,d as B,p as F,q as v,x as h,G as S,P as M,av as V,aw as b,ax as R,ay as I,az as L,I as d}from"./index.dfa30cb8.js";const $=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),e("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),e("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),e("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),e("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),e("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),E=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),e("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),e("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),D=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),e("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),e("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),e("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),e("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),e("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),P=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),e("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),T=c("result",` +import{h as e,k as c,B as u,d as B,p as F,q as v,x as h,G as S,P as M,av as V,aw as b,ax as R,ay as I,az as L,I as d}from"./index.907f0be6.js";const $=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),e("path",{fill:"#65471B",d:"M14.524 21.036c-.145-.116-.258-.274-.312-.464-.134-.46.13-.918.59-1.021 4.528-1.021 7.577 1.363 7.706 1.465.384.306.459.845.173 1.205-.286.358-.828.401-1.211.097-.11-.084-2.523-1.923-6.182-1.098-.274.061-.554-.016-.764-.184z"}),e("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),e("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),e("path",{fill:"#F19020",d:"M17.276 35.149s1.265-.411 1.429-1.352c.173-.972-.624-1.167-.624-1.167s1.041-.208 1.172-1.376c.123-1.101-.861-1.363-.861-1.363s.97-.4 1.016-1.539c.038-.959-.995-1.428-.995-1.428s5.038-1.221 5.556-1.341c.516-.12 1.32-.615 1.069-1.694-.249-1.08-1.204-1.118-1.697-1.003-.494.115-6.744 1.566-8.9 2.068l-1.439.334c-.54.127-.785-.11-.404-.512.508-.536.833-1.129.946-2.113.119-1.035-.232-2.313-.433-2.809-.374-.921-1.005-1.649-1.734-1.899-1.137-.39-1.945.321-1.542 1.561.604 1.854.208 3.375-.833 4.293-2.449 2.157-3.588 3.695-2.83 6.973.828 3.575 4.377 5.876 7.952 5.048l3.152-.681z"}),e("path",{fill:"#65471B",d:"M9.296 6.351c-.164-.088-.303-.224-.391-.399-.216-.428-.04-.927.393-1.112 4.266-1.831 7.699-.043 7.843.034.433.231.608.747.391 1.154-.216.405-.74.546-1.173.318-.123-.063-2.832-1.432-6.278.047-.257.109-.547.085-.785-.042zm12.135 3.75c-.156-.098-.286-.243-.362-.424-.187-.442.023-.927.468-1.084 4.381-1.536 7.685.48 7.823.567.415.26.555.787.312 1.178-.242.39-.776.495-1.191.238-.12-.072-2.727-1.621-6.267-.379-.266.091-.553.046-.783-.096z"})),E=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("path",{fill:"#FFCC4D",d:"M36 18c0 9.941-8.059 18-18 18-9.94 0-18-8.059-18-18C0 8.06 8.06 0 18 0c9.941 0 18 8.06 18 18"}),e("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),e("path",{fill:"#664500",d:"M5.999 11c-.208 0-.419-.065-.599-.2-.442-.331-.531-.958-.2-1.4C8.462 5.05 12.816 5 13 5c.552 0 1 .448 1 1 0 .551-.445.998-.996 1-.155.002-3.568.086-6.204 3.6-.196.262-.497.4-.801.4zm24.002 0c-.305 0-.604-.138-.801-.4-2.64-3.521-6.061-3.598-6.206-3.6-.55-.006-.994-.456-.991-1.005C22.006 5.444 22.45 5 23 5c.184 0 4.537.05 7.8 4.4.332.442.242 1.069-.2 1.4-.18.135-.39.2-.599.2zm-16.087 4.5l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L12.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L13.914 15.5zm11 0l1.793-1.793c.391-.391.391-1.023 0-1.414s-1.023-.391-1.414 0L23.5 14.086l-1.793-1.793c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l1.793 1.793-1.793 1.793c-.391.391-.391 1.023 0 1.414.195.195.451.293.707.293s.512-.098.707-.293l1.793-1.793 1.793 1.793c.195.195.451.293.707.293s.512-.098.707-.293c.391-.391.391-1.023 0-1.414L24.914 15.5z"})),D=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),e("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),e("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),e("path",{fill:"#77B255",d:"M35 12.056c0 5.216-7.611 9.444-17 9.444S1 17.271 1 12.056C1 6.84 8.611 3.611 18 3.611s17 3.229 17 8.445z"}),e("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),e("path",{d:"M21 17c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.739-1.109.9-2.246.478-3.377-.461-1.236-1.438-1.996-1.731-2.077-.553 0-.958-.443-.958-.996 0-.552.491-.995 1.043-.995.997 0 2.395 1.153 3.183 2.625 1.034 1.933.91 4.039-.351 5.929-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.196-.451.294-.707.294zm-6-2c-.256 0-.512-.098-.707-.293-2.337-2.337-2.376-4.885-.125-8.262.727-1.091.893-2.083.494-2.947-.444-.961-1.431-1.469-1.684-1.499-.552 0-.989-.447-.989-1 0-.552.458-1 1.011-1 .997 0 2.585.974 3.36 2.423.481.899 1.052 2.761-.528 5.131-1.961 2.942-1.531 4.332-.125 5.738.391.391.391 1.023 0 1.414-.195.197-.451.295-.707.295z",fill:"#5C913B"})),P=e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},e("path",{fill:"#EF9645",d:"M15.5 2.965c1.381 0 2.5 1.119 2.5 2.5v.005L20.5.465c1.381 0 2.5 1.119 2.5 2.5V4.25l2.5-1.535c1.381 0 2.5 1.119 2.5 2.5V8.75L29 18H15.458L15.5 2.965z"}),e("path",{fill:"#FFDC5D",d:"M4.625 16.219c1.381-.611 3.354.208 4.75 2.188.917 1.3 1.187 3.151 2.391 3.344.46.073 1.234-.313 1.234-1.397V4.5s0-2 2-2 2 2 2 2v11.633c0-.029 1-.064 1-.082V2s0-2 2-2 2 2 2 2v14.053c0 .017 1 .041 1 .069V4.25s0-2 2-2 2 2 2 2v12.638c0 .118 1 .251 1 .398V8.75s0-2 2-2 2 2 2 2V24c0 6.627-5.373 12-12 12-4.775 0-8.06-2.598-9.896-5.292C8.547 28.423 8.096 26.051 8 25.334c0 0-.123-1.479-1.156-2.865-1.469-1.969-2.5-3.156-3.125-3.866-.317-.359-.625-1.707.906-2.384z"})),T=c("result",` color: var(--n-text-color); line-height: var(--n-line-height); font-size: var(--n-font-size); diff --git a/assets/Result.071ac91f.js.gz b/assets/Result.071ac91f.js.gz new file mode 100644 index 00000000..b9f6cd26 Binary files /dev/null and b/assets/Result.071ac91f.js.gz differ diff --git a/assets/Result.9786211f.js.gz b/assets/Result.9786211f.js.gz deleted file mode 100644 index 522d8af9..00000000 Binary files a/assets/Result.9786211f.js.gz and /dev/null differ diff --git a/assets/index.5a9eb743.js b/assets/index.064d717e.js similarity index 58% rename from assets/index.5a9eb743.js rename to assets/index.064d717e.js index dac5f46e..9fff0f1f 100644 --- a/assets/index.5a9eb743.js +++ b/assets/index.064d717e.js @@ -1 +1 @@ -import{d as e,a7 as r,aE as n}from"./index.dfa30cb8.js";const a=e({name:"Rely",setup(){return{}},render(){return r(n,null,null)}});export{a as default}; +import{d as e,a7 as r,aE as n}from"./index.907f0be6.js";const a=e({name:"Rely",setup(){return{}},render(){return r(n,null,null)}});export{a as default}; diff --git a/assets/index.26ae7813.js b/assets/index.0a1ddcc5.js similarity index 99% rename from assets/index.26ae7813.js rename to assets/index.0a1ddcc5.js index 0270ec00..18e4d9ff 100644 --- a/assets/index.26ae7813.js +++ b/assets/index.0a1ddcc5.js @@ -1,4 +1,4 @@ -import{i as ce,g as Zt,w as we,o as Qt,a as en,d as Q,r as q,u as tn,c as nn,h as x,b as Qe,e as rn,f as Ae,j as an,k as P,l as _,m as j,n as Ke,p as Oe,q as le,s as Ee,t as St,v as et,x as z,y as ze,z as Pt,A as on,B as J,C as Z,D as tt,E as sn,F as ln,G as Je,T as dn,H as Ve,I as B,J as nt,K as fn,L as ye,M as cn,N as un,O as bn,P as gn,Q as mn,R as hn,S as pn,U as vn,V as rt,W as je,X as yn,Y as xn,Z as wn,_ as at,$ as Fe,a0 as We,a1 as Rn,a2 as Sn,a3 as Pn,a4 as kn,a5 as $n,a6 as kt,a7 as I,a8 as Cn,a9 as it,aa as Fn,ab as _n,ac as zn,ad as Tn,ae as An,af as En,ag as On,ah as Ln,ai as ot,aj as qn,ak as jn,al as Wn,am as In,an as Mn}from"./index.dfa30cb8.js";import{N as Bn}from"./Result.9786211f.js";import{R as Nn}from"./index.1e5b801c.js";function Vn(t,e,n){var r;const a=ce(t,null);if(a===null)return;const i=(r=Zt())===null||r===void 0?void 0:r.proxy;we(n,o),o(n.value),Qt(()=>{o(void 0,n.value)});function o(d,f){const c=a[e];f!==void 0&&s(c,f),d!==void 0&&l(c,d)}function s(d,f){d[f]||(d[f]=[]),d[f].splice(d[f].findIndex(c=>c===i),1)}function l(d,f){d[f]||(d[f]=[]),~d[f].findIndex(c=>c===i)||d[f].push(i)}}let st=!1;function Dn(){if(!!en&&!!window.CSS&&!st&&(st=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const Hn=Qe(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Qe("&::-webkit-scrollbar",{width:0,height:0})]),Un=Q({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const t=q(null);function e(a){!(a.currentTarget.offsetWidth=e||A<0||c&&L>=i}function g(){var R=Ie();if(v(R))return T(R);s=setTimeout(g,m(R))}function T(R){return s=void 0,h&&r?u(R):(r=a=void 0,o)}function y(){s!==void 0&&clearTimeout(s),d=0,r=l=a=s=void 0}function C(){return s===void 0?o:T(Ie())}function O(){var R=Ie(),A=v(R);if(r=arguments,a=this,l=R,A){if(s===void 0)return w(l);if(c)return clearTimeout(s),s=setTimeout(g,e),u(l)}return s===void 0&&(s=setTimeout(g,e)),o}return O.cancel=y,O.flush=C,O}var or="Expected a function";function Me(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(or);return Ae(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ir(t,e,{leading:r,maxWait:e,trailing:a})}const sr=Q({name:"Add",render(){return x("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),lr=P("form",[_("inline",` +import{i as ce,g as Zt,w as we,o as Qt,a as en,d as Q,r as q,u as tn,c as nn,h as x,b as Qe,e as rn,f as Ae,j as an,k as P,l as _,m as j,n as Ke,p as Oe,q as le,s as Ee,t as St,v as et,x as z,y as ze,z as Pt,A as on,B as J,C as Z,D as tt,E as sn,F as ln,G as Je,T as dn,H as Ve,I as B,J as nt,K as fn,L as ye,M as cn,N as un,O as bn,P as gn,Q as mn,R as hn,S as pn,U as vn,V as rt,W as je,X as yn,Y as xn,Z as wn,_ as at,$ as Fe,a0 as We,a1 as Rn,a2 as Sn,a3 as Pn,a4 as kn,a5 as $n,a6 as kt,a7 as I,a8 as Cn,a9 as it,aa as Fn,ab as _n,ac as zn,ad as Tn,ae as An,af as En,ag as On,ah as Ln,ai as ot,aj as qn,ak as jn,al as Wn,am as In,an as Mn}from"./index.907f0be6.js";import{N as Bn}from"./Result.071ac91f.js";import{R as Nn}from"./index.dedb2f12.js";function Vn(t,e,n){var r;const a=ce(t,null);if(a===null)return;const i=(r=Zt())===null||r===void 0?void 0:r.proxy;we(n,o),o(n.value),Qt(()=>{o(void 0,n.value)});function o(d,f){const c=a[e];f!==void 0&&s(c,f),d!==void 0&&l(c,d)}function s(d,f){d[f]||(d[f]=[]),d[f].splice(d[f].findIndex(c=>c===i),1)}function l(d,f){d[f]||(d[f]=[]),~d[f].findIndex(c=>c===i)||d[f].push(i)}}let st=!1;function Dn(){if(!!en&&!!window.CSS&&!st&&(st=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"",inherits:!1,initialValue:"#0000"})}catch{}}const Hn=Qe(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Qe("&::-webkit-scrollbar",{width:0,height:0})]),Un=Q({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const t=q(null);function e(a){!(a.currentTarget.offsetWidth=e||A<0||c&&L>=i}function g(){var R=Ie();if(v(R))return T(R);s=setTimeout(g,m(R))}function T(R){return s=void 0,h&&r?u(R):(r=a=void 0,o)}function y(){s!==void 0&&clearTimeout(s),d=0,r=l=a=s=void 0}function C(){return s===void 0?o:T(Ie())}function O(){var R=Ie(),A=v(R);if(r=arguments,a=this,l=R,A){if(s===void 0)return w(l);if(c)return clearTimeout(s),s=setTimeout(g,e),u(l)}return s===void 0&&(s=setTimeout(g,e)),o}return O.cancel=y,O.flush=C,O}var or="Expected a function";function Me(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(or);return Ae(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ir(t,e,{leading:r,maxWait:e,trailing:a})}const sr=Q({name:"Add",render(){return x("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),lr=P("form",[_("inline",` width: 100%; display: inline-flex; align-items: flex-start; diff --git a/assets/index.0a1ddcc5.js.gz b/assets/index.0a1ddcc5.js.gz new file mode 100644 index 00000000..06169e43 Binary files /dev/null and b/assets/index.0a1ddcc5.js.gz differ diff --git a/assets/index.1e5b801c.js.gz b/assets/index.1e5b801c.js.gz deleted file mode 100644 index 54ec49e9..00000000 Binary files a/assets/index.1e5b801c.js.gz and /dev/null differ diff --git a/assets/index.53066b8a.js b/assets/index.20b8de44.js similarity index 98% rename from assets/index.53066b8a.js rename to assets/index.20b8de44.js index 2bc7f5a2..34a346a1 100644 --- a/assets/index.53066b8a.js +++ b/assets/index.20b8de44.js @@ -1 +1 @@ -import{d as F,r as h,aF as k,a7 as u,am as s,ai as C,aA as p,aB as c,aD as x,ab as A}from"./index.dfa30cb8.js";function d(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!A(t)}const B=F({name:"RelyAbout",setup(){const{pkg:t}={pkg:{dependencies:{"@vueuse/core":"^9.1.0","amfe-flexible":"^2.2.1",axios:"^0.27.2","crypto-js":"^4.1.1",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.0",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^3.0.0","@vitejs/plugin-vue-jsx":"^2.0.0",autoprefixer:"^10.4.8",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",postcss:"^8.1.0","postcss-pxtorem":"^6.0.0",prettier:"^2.7.1","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^3.2.4","vite-plugin-compression":"^0.5.1","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.6.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"0.0.0"}},{dependencies:n,devDependencies:e,name:m,version:E}=t,y=[{title:"\u4F9D\u8D56\u540D\u79F0",key:"name"},{title:"\u4F9D\u8D56\u7248\u672C",key:"relyVersion"},{title:"\u4F9D\u8D56\u5730\u5740",key:"relyAddress"}],l=h([]),v=[{name:"\u9879\u76EE\u540D\u79F0",label:m},{name:"\u7248\u672C\u4FE1\u606F",label:E},{name:"\u9879\u76EE\u5730\u5740",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],g=()=>{const i=a=>Object.keys(a).reduce((r,o)=>(r.push({name:o,relyVersion:a[o],relyAddress:""}),r),[]),b=i(n),D=i(e);l.value=[...b,...D]},f=i=>{i.url&&window.open(i.url)};return k(()=>{g()}),{columns:y,relyData:l,templateOptions:v,handleTagClick:f}},render(){let t,n;return u("div",{class:"rely-about"},[u(s,{title:"\u5173\u4E8E\u9879\u76EE"},{default:()=>[C("ray template \u662F\u4E00\u4E2A\u57FA\u4E8E: tsx pinia vue3.x vite sass \u7684\u4E2D\u540E\u53F0\u89E3\u51B3\u65B9\u6848. \u9879\u76EE\u5E72\u51C0\u4E0E\u8F7B\u5DE7, \u5DF2\u7ECF\u96C6\u6210\u4E86\u5F88\u591A\u9879\u76EE\u4E2D\u53EF\u80FD\u9700\u8981\u7684\u642C\u7816\u5DE5\u5177\u53EF\u4EE5\u8BA9\u4F60\u5FEB\u901F\u8D77\u4E00\u4E2A\u76F8\u5173\u9879\u76EE, \u5E76\u4E14\u4E0D\u9700\u8981\u5254\u9664\u5927\u91CF\u65E0\u7528\u9875\u9762\u4E0E\u7EC4\u4EF6.")]}),u(s,{title:"\u9879\u76EE\u4FE1\u606F"},{default:()=>[u(p,{bordered:!0,labelPlacement:"left"},d(t=this.templateOptions.map(e=>u(c,{key:e.name,label:e.name},{default:()=>[u(x,{bordered:!1,type:"info",onClick:this.handleTagClick.bind(this,e),style:[e.url?"cursor: pointer":""]},{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),u(s,{title:"\u9879\u76EE\u4F9D\u8D56"},{default:()=>[u(p,{bordered:!0,labelPlacement:"left"},d(n=this.relyData.map(e=>u(c,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{B as default}; +import{d as F,r as h,aF as k,a7 as u,am as s,ai as C,aA as p,aB as c,aD as x,ab as A}from"./index.907f0be6.js";function d(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!A(t)}const B=F({name:"RelyAbout",setup(){const{pkg:t}={pkg:{dependencies:{"@vueuse/core":"^9.1.0","amfe-flexible":"^2.2.1",axios:"^0.27.2","crypto-js":"^4.1.1",echarts:"^5.4.0","lodash-es":"^4.17.21","naive-ui":"^2.34.0",pinia:"^2.0.17","pinia-plugin-persistedstate":"^2.4.0",sass:"^1.54.3",screenfull:"^6.0.2",vue:"^3.2.37","vue-i18n":"^9.2.2","vue-router":"^4.1.3"},devDependencies:{"@babel/core":"^7.20.2","@babel/eslint-parser":"^7.19.1","@intlify/unplugin-vue-i18n":"^0.5.0","@types/crypto-js":"^4.1.1","@types/scrollreveal":"^0.0.8","@typescript-eslint/eslint-plugin":"^5.42.1","@typescript-eslint/parser":"^5.42.1","@vitejs/plugin-vue":"^3.0.0","@vitejs/plugin-vue-jsx":"^2.0.0",autoprefixer:"^10.4.8",eslint:"^8.0.1","eslint-config-prettier":"^8.5.0","eslint-config-standard-with-typescript":"^23.0.0","eslint-plugin-import":"^2.25.2","eslint-plugin-n":"^15.0.0","eslint-plugin-prettier":"^4.2.1","eslint-plugin-promise":"^6.0.0","eslint-plugin-react":"^7.31.10","eslint-plugin-vue":"^9.7.0",postcss:"^8.1.0","postcss-pxtorem":"^6.0.0",prettier:"^2.7.1","svg-sprite-loader":"^6.0.11",typescript:"*","unplugin-auto-import":"^0.11.0","unplugin-vue-components":"^0.22.0",vite:"^3.2.4","vite-plugin-compression":"^0.5.1","vite-plugin-eslint":"^1.8.1","vite-plugin-imp":"^2.3.1","vite-plugin-inspect":"^0.6.0","vite-plugin-svg-icons":"^2.0.1","vite-svg-loader":"^3.4.0","vue-tsc":"^1.0.9"},name:"ray-template",version:"0.0.0"}},{dependencies:n,devDependencies:e,name:m,version:E}=t,y=[{title:"\u4F9D\u8D56\u540D\u79F0",key:"name"},{title:"\u4F9D\u8D56\u7248\u672C",key:"relyVersion"},{title:"\u4F9D\u8D56\u5730\u5740",key:"relyAddress"}],l=h([]),v=[{name:"\u9879\u76EE\u540D\u79F0",label:m},{name:"\u7248\u672C\u4FE1\u606F",label:E},{name:"\u9879\u76EE\u5730\u5740",label:"GitHub",url:"https://github.com/XiaoDaiGua-Ray/ray-template"}],g=()=>{const i=a=>Object.keys(a).reduce((r,o)=>(r.push({name:o,relyVersion:a[o],relyAddress:""}),r),[]),b=i(n),D=i(e);l.value=[...b,...D]},f=i=>{i.url&&window.open(i.url)};return k(()=>{g()}),{columns:y,relyData:l,templateOptions:v,handleTagClick:f}},render(){let t,n;return u("div",{class:"rely-about"},[u(s,{title:"\u5173\u4E8E\u9879\u76EE"},{default:()=>[C("ray template \u662F\u4E00\u4E2A\u57FA\u4E8E: tsx pinia vue3.x vite sass \u7684\u4E2D\u540E\u53F0\u89E3\u51B3\u65B9\u6848. \u9879\u76EE\u5E72\u51C0\u4E0E\u8F7B\u5DE7, \u5DF2\u7ECF\u96C6\u6210\u4E86\u5F88\u591A\u9879\u76EE\u4E2D\u53EF\u80FD\u9700\u8981\u7684\u642C\u7816\u5DE5\u5177\u53EF\u4EE5\u8BA9\u4F60\u5FEB\u901F\u8D77\u4E00\u4E2A\u76F8\u5173\u9879\u76EE, \u5E76\u4E14\u4E0D\u9700\u8981\u5254\u9664\u5927\u91CF\u65E0\u7528\u9875\u9762\u4E0E\u7EC4\u4EF6.")]}),u(s,{title:"\u9879\u76EE\u4FE1\u606F"},{default:()=>[u(p,{bordered:!0,labelPlacement:"left"},d(t=this.templateOptions.map(e=>u(c,{key:e.name,label:e.name},{default:()=>[u(x,{bordered:!1,type:"info",onClick:this.handleTagClick.bind(this,e),style:[e.url?"cursor: pointer":""]},{default:()=>[e.label]})]})))?t:{default:()=>[t]})]}),u(s,{title:"\u9879\u76EE\u4F9D\u8D56"},{default:()=>[u(p,{bordered:!0,labelPlacement:"left"},d(n=this.relyData.map(e=>u(c,{key:e.name,label:e.name},{default:()=>[e.relyVersion]})))?n:{default:()=>[n]})]})])}});export{B as default}; diff --git a/assets/index.20b8de44.js.gz b/assets/index.20b8de44.js.gz new file mode 100644 index 00000000..2251375d Binary files /dev/null and b/assets/index.20b8de44.js.gz differ diff --git a/assets/index.26ae7813.js.gz b/assets/index.26ae7813.js.gz deleted file mode 100644 index 65e7b888..00000000 Binary files a/assets/index.26ae7813.js.gz and /dev/null differ diff --git a/assets/index.1081a12d.js b/assets/index.38980f03.js similarity index 83% rename from assets/index.1081a12d.js rename to assets/index.38980f03.js index ee3fe1e8..79301c90 100644 --- a/assets/index.1081a12d.js +++ b/assets/index.38980f03.js @@ -1 +1 @@ -import{d as e,a7 as u,am as a,ai as l}from"./index.dfa30cb8.js";const o=e({name:"ScrollReveal",render(){return u("div",{class:"scroll-reveal"},[u(a,{title:"\u63D0\u793A"},{default:()=>[l("RayScrollReveal\u7EC4\u4EF6\u6709\u70B9\u95EE\u9898, \u6682\u65F6\u79FB\u9664. \u4E0D\u80FD\u6B63\u5E38\u7684\u5B9E\u73B0\u6EDA\u52A8\u52A8\u753B. \u5F88\u662F\u64CD\u86CB!!!")]})])}});export{o as default}; +import{d as e,a7 as u,am as a,ai as l}from"./index.907f0be6.js";const o=e({name:"ScrollReveal",render(){return u("div",{class:"scroll-reveal"},[u(a,{title:"\u63D0\u793A"},{default:()=>[l("RayScrollReveal\u7EC4\u4EF6\u6709\u70B9\u95EE\u9898, \u6682\u65F6\u79FB\u9664. \u4E0D\u80FD\u6B63\u5E38\u7684\u5B9E\u73B0\u6EDA\u52A8\u52A8\u753B. \u5F88\u662F\u64CD\u86CB!!!")]})])}});export{o as default}; diff --git a/assets/index.4278c5fb.js.gz b/assets/index.4278c5fb.js.gz deleted file mode 100644 index aef62b99..00000000 Binary files a/assets/index.4278c5fb.js.gz and /dev/null differ diff --git a/assets/index.53066b8a.js.gz b/assets/index.53066b8a.js.gz deleted file mode 100644 index c5f1b6ea..00000000 Binary files a/assets/index.53066b8a.js.gz and /dev/null differ diff --git a/assets/index.4278c5fb.js b/assets/index.6f5dbead.js similarity index 85% rename from assets/index.4278c5fb.js rename to assets/index.6f5dbead.js index 79560a37..ebfec56b 100644 --- a/assets/index.4278c5fb.js +++ b/assets/index.6f5dbead.js @@ -1,4 +1,4 @@ -import{aG as Js,aH as im,aI as Gh,aJ as am,aK as Gx,aL as Hx,aM as Wx,aN as $x,aO as om,aP as hc,aQ as Ux,aR as sm,aS as Hh,aT as _s,aU as um,f as Yx,aV as Xx,aW as Zx,aX as qx,aY as Kx,aZ as jx,a_ as Qx,a$ as Jx,b0 as tb,d as lm,af as eb,b1 as rb,r as va,x as nb,w as vc,aF as ib,F as ab,a0 as ob,o as sb,a7 as Pt,am as zn,ai as ub,b2 as cc}from"./index.dfa30cb8.js";function lb(r,t){for(var e=-1,n=r==null?0:r.length;++e"u"&&typeof self<"u"?yn.worker=!0:typeof navigator>"u"?(yn.node=!0,yn.svgSupported=!0):Iw(navigator.userAgent,yn);function Iw(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const nt=yn;var Wh=12,dm="sans-serif",Fr=Wh+"px "+dm,Lw=20,Pw=100,Rw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Ew(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var u=0;u"u"&&typeof self<"u"?mn.worker=!0:typeof navigator>"u"?(mn.node=!0,mn.svgSupported=!0):Iw(navigator.userAgent,mn);function Iw(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const nt=mn;var Wh=12,dm="sans-serif",Fr=Wh+"px "+dm,Lw=20,Pw=100,Rw="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Ew(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e=0)s=o*e.length;else for(var u=0;u>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function nT(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?xc(s,o):xc(o,s))}function xm(r){return r.nodeName.toUpperCase()==="CANVAS"}var iT=/([&<>"'])/g,aT={"&":"&","<":"<",">":">",'"':""","'":"'"};function se(r){return r==null?"":(r+"").replace(iT,function(t,e){return aT[e]})}var oT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gu=[],sT=nt.browser.firefox&&+nt.browser.version.split(".")[0]<39;function Tf(r,t,e,n){return e=e||{},n?wc(r,t,e):sT&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):wc(r,t,e),e}function wc(r,t,e){if(nt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(xm(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(wf(Gu,r,n,i)){e.zrX=Gu[0],e.zrY=Gu[1];return}}e.zrX=e.zrY=0}function Zh(r){return r||window.event}function pe(r,t,e){if(t=Zh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Tf(r,o,t,e)}else{Tf(r,t,t,e);var a=uT(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&oT.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function uT(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Cf(r,t,e,n){r.addEventListener(t,e,n)}function lT(r,t,e,n){r.removeEventListener(t,e,n)}var bm=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},fT=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Tc(n)/Tc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=hT(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function La(){return[1,0,0,1,0,0]}function qh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function vT(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function pi(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Mf(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Kh(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],u=t[5],l=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*l,r[1]=-n*l+o*f,r[2]=i*f+s*l,r[3]=-i*l+f*s,r[4]=f*a+l*u,r[5]=f*u-l*a,r}function cT(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function nu(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}var dT=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const X=dT;var fo=Math.min,ho=Math.max,Ur=new X,Yr=new X,Xr=new X,Zr=new X,ki=new X,Bi=new X,pT=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=fo(t.x,this.x),n=fo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ho(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ho(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=La();return Mf(a,a,[-e.x,-e.y]),cT(a,a,[n,i]),Mf(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,gd&&(d=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ur.x=Xr.x=e.x,Ur.y=Zr.y=e.y,Yr.x=Zr.x=e.x+e.width,Yr.y=Xr.y=e.y+e.height,Ur.transform(n),Zr.transform(n),Yr.transform(n),Xr.transform(n),t.x=fo(Ur.x,Yr.x,Xr.x,Zr.x),t.y=fo(Ur.y,Yr.y,Xr.y,Zr.y);var u=ho(Ur.x,Yr.x,Xr.x,Zr.x),l=ho(Ur.y,Yr.y,Xr.y,Zr.y);t.width=u-t.x,t.height=l-t.y},r}();const ot=pT;var wm="silent";function gT(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:yT}}function yT(){bm(this.event)}var mT=function(r){yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fe),Ni=function(){function r(t,e){this.x=t,this.y=e}return r}(),_T=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wu=new ot(0,0,0,0),Tm=function(r){yt(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Ni(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new mT,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Qw(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(_T,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Cm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Ni(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ni(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=gT(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Ni(e,n);if(Cc(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new ot(e-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Wu.copy(c.getBoundingRect()),c.transform&&Wu.applyTransform(c.transform),Wu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function ST(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?wm:!0}return!1}function Cc(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=ST(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==wm)){t.target=o;break}}}function Cm(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const xT=Tm;var Mm=32,Fi=7;function bT(r){for(var t=0;r>=Mm;)t|=r&1,r>>=1;return r+t}function Mc(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function wT(r,t,e){for(e--;t>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function $u(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function Uu(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function TT(r,t){var e=Fi,n,i,a=0;r.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]=Fi||w>=Fi);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--p===1){M=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--p===1){M=!0;break}if(C=p-$u(r[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,x=S+1,b=_+1,y=0;y=Fi||C>=Fi);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),p===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),y=0;ys&&(u=s),Ac(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ue=1,ia=2,ni=4,Dc=!1;function Yu(){Dc||(Dc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ic(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var CT=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ic}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Yu(),f.z=0),isNaN(f.z2)&&(Yu(),f.z2=0),isNaN(f.zlevel)&&(Yu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const MT=CT;var Am;Am=nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Af=Am;var is={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-is.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?is.bounceIn(r*2)*.5:is.bounceOut(r*2-1)*.5+.5}};const Dm=is;var vo=Math.pow,kr=Math.sqrt,bs=1e-8,Im=1e-4,Lc=kr(3),co=1/3,Ye=Li(),me=Li(),gi=Li();function Pr(r){return r>-bs&&rbs||r<-bs}function Ot(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Pc(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function ws(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Pr(f)&&Pr(h))if(Pr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Pr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=kr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-vo(-_,co):_=vo(_,co),S<0?S=-vo(-S,co):S=vo(S,co);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*kr(f*f*f)),x=Math.acos(b)/3,w=kr(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+Lc*Math.sin(x)))/(3*o),C=(-s+w*(T-Lc*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function Pm(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(Pr(o)){if(Lm(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Pr(f))i[0]=-a/(2*o);else if(f>0){var h=kr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Vr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Rm(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;Ye[0]=u,Ye[1]=l;for(var m=0;m<1;m+=.05)me[0]=Ot(r,e,i,o,m),me[1]=Ot(t,n,a,s,m),p=di(Ye,me),p=0&&p=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Pr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=kr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Em(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ts(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Om(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;Ye[0]=o,Ye[1]=s;for(var c=0;c<1;c+=.05){me[0]=$t(r,e,i,c),me[1]=$t(t,n,a,c);var v=di(Ye,me);v=0&&v=1?1:ws(0,n,a,1,u,s)&&Ot(0,i,o,1,s[0])}}}var PT=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Kt,this.ondestroy=t.ondestroy||Kt,this.onrestart=t.onrestart||Kt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:Dm[t]||jh(t)},r}();const RT=PT;var km=function(){function r(t){this.value=t}return r}(),ET=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new km(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),OT=function(){function r(t){this._list=new ET,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new km(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ka=OT;var Ec={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Br(r){return r=Math.round(r),r<0?0:r>255?255:r}function Df(r){return r<0?0:r>1?1:r}function Xu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Br(parseFloat(t)/100*255):Br(parseInt(t,10))}function pa(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Df(parseFloat(t)/100):Df(parseFloat(t))}function Zu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function po(r,t,e){return r+(t-r)*e}function de(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function If(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Bm=new Ka(20),go=null;function Gn(r,t){go&&If(go,t),go=Bm.put(r,go||t.slice())}function Qe(r,t){if(!!r){t=t||[];var e=Bm.get(r);if(e)return If(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Ec)return If(t,Ec[n]),Gn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){de(t,0,0,0,1);return}return de(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Gn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){de(t,0,0,0,1);return}return de(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Gn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?de(t,+l[0],+l[1],+l[2],1):de(t,0,0,0,1);f=pa(l.pop());case"rgb":if(l.length>=3)return de(t,Xu(l[0]),Xu(l[1]),Xu(l[2]),l.length===3?f:pa(l[3])),Gn(r,t),t;de(t,0,0,0,1);return;case"hsla":if(l.length!==4){de(t,0,0,0,1);return}return l[3]=pa(l[3]),Oc(l,t),Gn(r,t),t;case"hsl":if(l.length!==3){de(t,0,0,0,1);return}return Oc(l,t),Gn(r,t),t;default:return}}de(t,0,0,0,1)}}function Oc(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=pa(r[1]),i=pa(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],de(t,Br(Zu(o,a,e+1/3)*255),Br(Zu(o,a,e)*255),Br(Zu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function kc(r,t){var e=Qe(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return iu(e,e.length===4?"rgba":"rgb")}}function kT(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Qe(t[i]),s=Qe(t[a]),u=n-i,l=iu([Br(po(o[0],s[0],u)),Br(po(o[1],s[1],u)),Br(po(o[2],s[2],u)),Df(po(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function iu(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Cs(r,t){var e=Qe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Ms=Math.round;function xi(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Qe(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var Bc=1e-4;function Rr(r){return r-Bc}function yo(r){return Ms(r*1e3)/1e3}function Lf(r){return Ms(r*1e4)/1e4}function BT(r){return"matrix("+yo(r[0])+","+yo(r[1])+","+yo(r[2])+","+yo(r[3])+","+Lf(r[4])+","+Lf(r[5])+")"}var NT={left:"start",right:"end",center:"middle",middle:"middle"};function FT(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function zT(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function VT(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function Nm(r){return r&&!!r.image}function GT(r){return r&&!!r.svgElement}function HT(r){return Nm(r)||GT(r)}function Fm(r){return r.type==="linear"}function zm(r){return r.type==="radial"}function WT(r){return r&&(r.type==="linear"||r.type==="radial")}function au(r){return"url(#"+r+")"}function Vm(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function Gm(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*es,i=j(r.scaleX,1),a=j(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,u=[];return(t||e)&&u.push("translate("+t+"px,"+e+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+Ms(o*es)+"deg, "+Ms(s*es)+"deg)"),u.join(" ")}var $T=function(){return nt.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Pf=Array.prototype.slice;function lr(r,t,e){return(t-r)*e+r}function qu(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var u=a;u=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Fc,u=e;if(jt(e)){var l=ZT(e);s=l,(l===1&&!ht(e[0])||l===2&&!ht(e[0][0]))&&(o=!0)}else if(ht(e)&&!Ss(e))s=_o;else if(H(e))if(!isNaN(+e))s=_o;else{var f=Qe(e);f&&(u=f,s=aa)}else if(eu(e)){var h=B({},u);h.colorStops=N(e.colorStops,function(v){return{offset:v.offset,color:Qe(v.color)}}),Fm(e)?s=Rf:zm(e)&&(s=Ef),u=h}a===0?this.valType=s:(s!==this.valType||s===Fc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=q(n)?n:Dm[n]||jh(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=So(i),l=zc(i),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?zi:t[u];if((So(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(So(a))a===ss?qu(m,v[i],d[i],y):UT(m,v[i],d[i],y);else if(zc(a)){var _=v[i],S=d[i],b=a===Rf;t[u]={type:b?"linear":"radial",x:lr(_.x,S.x,y),y:lr(_.y,S.y,y),colorStops:N(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:lr(w.offset,C.offset,y),color:os(qu([],w.color,C.color,y))}}),global:S.global},b?(t[u].x2=lr(_.x2,S.x2,y),t[u].y2=lr(_.y2,S.y2,y)):t[u].r=lr(_.r,S.r,y)}else if(l)qu(m,v[i],d[i],y),n||(t[u]=os(m));else{var x=lr(v[i],d[i],y);n?this._additiveValue=x:t[u]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===_o?t[n]=t[n]+i:e===aa?(Qe(t[n],zi),mo(zi,zi,i,1),t[n]=os(zi)):e===ss?mo(t[n],t[n],i,1):e===Hm&&Nc(t[n],t[n],i,1)},r}(),KT=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Yh("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,ut(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,as(l),i),this._trackKeys.push(s)}u.addKeyframe(t,as(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Qh=KT;function li(){return new Date().getTime()}var jT=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=li()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Af(n),!e._paused&&e.update())}Af(n)},t.prototype.start=function(){this._running||(this._time=li(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=li(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=li()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Qh(e,n.loop);return this.addAnimator(i),i},t}(Fe);const QT=jT;var JT=300,Ku=nt.domSupported,ju=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=N(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Vc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Gc=!1;function Of(r){var t=r.pointerType;return t==="pen"||t==="touch"}function tC(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Qu(r){r&&(r.zrByTouch=!0)}function eC(r,t){return pe(r.dom,new rC(r,t),!0)}function Wm(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var rC=function(){function r(t,e){this.stopPropagation=Kt,this.stopImmediatePropagation=Kt,this.preventDefault=Kt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Re={mousedown:function(r){r=pe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pe(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=pe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pe(this.dom,r);var t=r.toElement||r.relatedTarget;Wm(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Gc=!0,r=pe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Gc||(r=pe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pe(this.dom,r),Qu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Re.mousemove.call(this,r),Re.mousedown.call(this,r)},touchmove:function(r){r=pe(this.dom,r),Qu(r),this.handler.processGesture(r,"change"),Re.mousemove.call(this,r)},touchend:function(r){r=pe(this.dom,r),Qu(r),this.handler.processGesture(r,"end"),Re.mouseup.call(this,r),+new Date-+this.__lastTouchMoment$c||r<-$c}var Kr=[],Hn=[],tl=La(),el=Math.abs,uC=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return qr(this.rotation)||qr(this.x)||qr(this.y)||qr(this.scaleX-1)||qr(this.scaleY-1)||qr(this.skewX)||qr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&Wc(n);return}n=n||La(),e?this.getLocalTransform(n):Wc(n),t&&(e?pi(n,t,n):vT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Kr);var n=Kr[0]<0?-1:1,i=Kr[1]<0?-1:1,a=((Kr[0]-n)*e+n)/Kr[0]||0,o=((Kr[1]-i)*e+i)/Kr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||La(),nu(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(pi(Hn,t.invTransform,e),e=Hn);var n=this.originX,i=this.originY;(n||i)&&(tl[4]=n,tl[5]=i,pi(Hn,e,tl),Hn[4]-=n,Hn[5]-=i,e=Hn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Se(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Se(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&el(t[0]-1)>1e-10&&el(t[3]-1)>1e-10?Math.sqrt(el(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Um(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&Kh(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Pa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Um(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Ds(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=Gr(n[0],e.width),l+=Gr(n[1],e.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var rl="__zr_normal__",nl=Pa.concat(["ignore"]),lC=zr(Pa,function(r,t){return r[t]=!0,r},{ignore:!1}),Wn={},fC=new ot(0,0,0,0),Jh=function(){function r(t){this.id=ym(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=fC;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wn,n,f):Ds(Wn,n,f),a.x=Wn.x,a.y=Wn.y,o=Wn.align,s=Wn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Gr(h[0],f.width),v=Gr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ue,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ff:Nf},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Qe(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,iu(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(U(t))for(var n=t,i=ut(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(rl,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===rl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(at(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Yh("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=at(i,t),o=at(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c0||i.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];C[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=g[S];M[y]=as(e[y]),vC(e,n,y)}}var b=new Qh(e,!1,!1,h?Lt(d,function(I){return I.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),c&&T&&b.whenWithKeys(0,T,g),M&&b.whenWithKeys(0,M,g),b.whenWithKeys(l==null?500:l,s?C:n,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}const Xm=Jh;var Zm=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=at(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=at(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function nT(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?xc(s,o):xc(o,s))}function xm(r){return r.nodeName.toUpperCase()==="CANVAS"}var iT=/([&<>"'])/g,aT={"&":"&","<":"<",">":">",'"':""","'":"'"};function se(r){return r==null?"":(r+"").replace(iT,function(t,e){return aT[e]})}var oT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gu=[],sT=nt.browser.firefox&&+nt.browser.version.split(".")[0]<39;function Tf(r,t,e,n){return e=e||{},n?wc(r,t,e):sT&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):wc(r,t,e),e}function wc(r,t,e){if(nt.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(xm(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(wf(Gu,r,n,i)){e.zrX=Gu[0],e.zrY=Gu[1];return}}e.zrX=e.zrY=0}function Zh(r){return r||window.event}function pe(r,t,e){if(t=Zh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Tf(r,o,t,e)}else{Tf(r,t,t,e);var a=uT(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&oT.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function uT(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function Cf(r,t,e,n){r.addEventListener(t,e,n)}function lT(r,t,e,n){r.removeEventListener(t,e,n)}var bm=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},fT=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(!!i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=Tc(n)/Tc(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=hT(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function La(){return[1,0,0,1,0,0]}function qh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function vT(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function gi(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Af(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Kh(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],u=t[5],l=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*l,r[1]=-n*l+o*f,r[2]=i*f+s*l,r[3]=-i*l+f*s,r[4]=f*a+l*u,r[5]=f*u-l*a,r}function cT(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function nu(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}var dT=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(!!t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const X=dT;var fo=Math.min,ho=Math.max,Yr=new X,Xr=new X,Zr=new X,qr=new X,Bi=new X,Ni=new X,pT=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=fo(t.x,this.x),n=fo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ho(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ho(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=La();return Af(a,a,[-e.x,-e.y]),cT(a,a,[n,i]),Af(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(ad&&(d=_,gd&&(d=S,y=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Yr.x=Zr.x=e.x,Yr.y=qr.y=e.y,Xr.x=qr.x=e.x+e.width,Xr.y=Zr.y=e.y+e.height,Yr.transform(n),qr.transform(n),Xr.transform(n),Zr.transform(n),t.x=fo(Yr.x,Xr.x,Zr.x,qr.x),t.y=fo(Yr.y,Xr.y,Zr.y,qr.y);var u=ho(Yr.x,Xr.x,Zr.x,qr.x),l=ho(Yr.y,Xr.y,Zr.y,qr.y);t.width=u-t.x,t.height=l-t.y},r}();const ot=pT;var wm="silent";function gT(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:yT}}function yT(){bm(this.event)}var mT=function(r){yt(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fe),Fi=function(){function r(t,e){this.x=t,this.y=e}return r}(),_T=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Wu=new ot(0,0,0,0),Tm=function(r){yt(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Fi(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new mT,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Qw(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(_T,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Cm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Fi(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Fi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=gT(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Fi(e,n);if(Cc(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new ot(e-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Wu.copy(c.getBoundingRect()),c.transform&&Wu.applyTransform(c.transform),Wu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function ST(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?wm:!0}return!1}function Cc(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=ST(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==wm)){t.target=o;break}}}function Cm(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const xT=Tm;var Am=32,zi=7;function bT(r){for(var t=0;r>=Am;)t|=r&1,r>>=1;return r+t}function Ac(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i=0;)i++;return i-t}function wT(r,t,e){for(e--;t>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function $u(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function Uu(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;us&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function TT(r,t){var e=zi,n,i,a=0;r.length;var o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]=zi||w>=zi);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var T=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--p===1){A=!0;break}while((T|C)=0;y--)r[x+y]=r[b+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--p===1){A=!0;break}if(C=p-$u(r[m],o,0,p,p-1,t),C!==0){for(S-=C,_-=C,p-=C,x=S+1,b=_+1,y=0;y=zi||C>=zi);if(A)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),p===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),y=0;ys&&(u=s),Mc(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ue=1,ia=2,ii=4,Dc=!1;function Yu(){Dc||(Dc=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ic(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var CT=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ic}return r.prototype.traverse=function(t,e){for(var n=0;n0&&(f.__clipPaths=[]),isNaN(f.z)&&(Yu(),f.z=0),isNaN(f.z2)&&(Yu(),f.z2=0),isNaN(f.zlevel)&&(Yu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const AT=CT;var Mm;Mm=nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const Mf=Mm;var is={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-is.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?is.bounceIn(r*2)*.5:is.bounceOut(r*2-1)*.5+.5}};const Dm=is;var vo=Math.pow,kr=Math.sqrt,bs=1e-8,Im=1e-4,Lc=kr(3),co=1/3,Ye=Pi(),me=Pi(),yi=Pi();function Pr(r){return r>-bs&&rbs||r<-bs}function Ot(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Pc(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function ws(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Pr(f)&&Pr(h))if(Pr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(Pr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=kr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-vo(-_,co):_=vo(_,co),S<0?S=-vo(-S,co):S=vo(S,co);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*kr(f*f*f)),x=Math.acos(b)/3,w=kr(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+Lc*Math.sin(x)))/(3*o),C=(-s+w*(T-Lc*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function Pm(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(Pr(o)){if(Lm(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Pr(f))i[0]=-a/(2*o);else if(f>0){var h=kr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Vr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function Rm(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,g,p,y;Ye[0]=u,Ye[1]=l;for(var m=0;m<1;m+=.05)me[0]=Ot(r,e,i,o,m),me[1]=Ot(t,n,a,s,m),p=pi(Ye,me),p=0&&p=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Pr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=kr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Em(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Ts(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function Om(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;Ye[0]=o,Ye[1]=s;for(var c=0;c<1;c+=.05){me[0]=$t(r,e,i,c),me[1]=$t(t,n,a,c);var v=pi(Ye,me);v=0&&v=1?1:ws(0,n,a,1,u,s)&&Ot(0,i,o,1,s[0])}}}var PT=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Kt,this.ondestroy=t.ondestroy||Kt,this.onrestart=t.onrestart||Kt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:Dm[t]||jh(t)},r}();const RT=PT;var km=function(){function r(t){this.value=t}return r}(),ET=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new km(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),OT=function(){function r(t){this._list=new ET,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new km(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const Ka=OT;var Ec={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Br(r){return r=Math.round(r),r<0?0:r>255?255:r}function Df(r){return r<0?0:r>1?1:r}function Xu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Br(parseFloat(t)/100*255):Br(parseInt(t,10))}function pa(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Df(parseFloat(t)/100):Df(parseFloat(t))}function Zu(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function po(r,t,e){return r+(t-r)*e}function de(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function If(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var Bm=new Ka(20),go=null;function Gn(r,t){go&&If(go,t),go=Bm.put(r,go||t.slice())}function Qe(r,t){if(!!r){t=t||[];var e=Bm.get(r);if(e)return If(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Ec)return If(t,Ec[n]),Gn(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){de(t,0,0,0,1);return}return de(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Gn(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){de(t,0,0,0,1);return}return de(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Gn(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?de(t,+l[0],+l[1],+l[2],1):de(t,0,0,0,1);f=pa(l.pop());case"rgb":if(l.length>=3)return de(t,Xu(l[0]),Xu(l[1]),Xu(l[2]),l.length===3?f:pa(l[3])),Gn(r,t),t;de(t,0,0,0,1);return;case"hsla":if(l.length!==4){de(t,0,0,0,1);return}return l[3]=pa(l[3]),Oc(l,t),Gn(r,t),t;case"hsl":if(l.length!==3){de(t,0,0,0,1);return}return Oc(l,t),Gn(r,t),t;default:return}}de(t,0,0,0,1)}}function Oc(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=pa(r[1]),i=pa(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],de(t,Br(Zu(o,a,e+1/3)*255),Br(Zu(o,a,e)*255),Br(Zu(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function kc(r,t){var e=Qe(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return iu(e,e.length===4?"rgba":"rgb")}}function kT(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Qe(t[i]),s=Qe(t[a]),u=n-i,l=iu([Br(po(o[0],s[0],u)),Br(po(o[1],s[1],u)),Br(po(o[2],s[2],u)),Df(po(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function iu(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Cs(r,t){var e=Qe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var As=Math.round;function bi(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Qe(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var Bc=1e-4;function Rr(r){return r-Bc}function yo(r){return As(r*1e3)/1e3}function Lf(r){return As(r*1e4)/1e4}function BT(r){return"matrix("+yo(r[0])+","+yo(r[1])+","+yo(r[2])+","+yo(r[3])+","+Lf(r[4])+","+Lf(r[5])+")"}var NT={left:"start",right:"end",center:"middle",middle:"middle"};function FT(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function zT(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function VT(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function Nm(r){return r&&!!r.image}function GT(r){return r&&!!r.svgElement}function HT(r){return Nm(r)||GT(r)}function Fm(r){return r.type==="linear"}function zm(r){return r.type==="radial"}function WT(r){return r&&(r.type==="linear"||r.type==="radial")}function au(r){return"url(#"+r+")"}function Vm(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function Gm(r){var t=r.x||0,e=r.y||0,n=(r.rotation||0)*es,i=j(r.scaleX,1),a=j(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,u=[];return(t||e)&&u.push("translate("+t+"px,"+e+"px)"),n&&u.push("rotate("+n+")"),(i!==1||a!==1)&&u.push("scale("+i+","+a+")"),(o||s)&&u.push("skew("+As(o*es)+"deg, "+As(s*es)+"deg)"),u.join(" ")}var $T=function(){return nt.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(r))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Pf=Array.prototype.slice;function lr(r,t,e){return(t-r)*e+r}function qu(r,t,e,n){for(var i=t.length,a=0;an?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var u=a;u=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Fc,u=e;if(jt(e)){var l=ZT(e);s=l,(l===1&&!ht(e[0])||l===2&&!ht(e[0][0]))&&(o=!0)}else if(ht(e)&&!Ss(e))s=_o;else if(H(e))if(!isNaN(+e))s=_o;else{var f=Qe(e);f&&(u=f,s=aa)}else if(eu(e)){var h=B({},u);h.colorStops=N(e.colorStops,function(v){return{offset:v.offset,color:Qe(v.color)}}),Fm(e)?s=Rf:zm(e)&&(s=Ef),u=h}a===0?this.valType=s:(s!==this.valType||s===Fc)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=q(n)?n:Dm[n]||jh(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=So(i),l=zc(i),f=0;f=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;fe);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(!!(v&&d)){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?Vi:t[u];if((So(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(So(a))a===ss?qu(m,v[i],d[i],y):UT(m,v[i],d[i],y);else if(zc(a)){var _=v[i],S=d[i],b=a===Rf;t[u]={type:b?"linear":"radial",x:lr(_.x,S.x,y),y:lr(_.y,S.y,y),colorStops:N(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:lr(w.offset,C.offset,y),color:os(qu([],w.color,C.color,y))}}),global:S.global},b?(t[u].x2=lr(_.x2,S.x2,y),t[u].y2=lr(_.y2,S.y2,y)):t[u].r=lr(_.r,S.r,y)}else if(l)qu(m,v[i],d[i],y),n||(t[u]=os(m));else{var x=lr(v[i],d[i],y);n?this._additiveValue=x:t[u]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===_o?t[n]=t[n]+i:e===aa?(Qe(t[n],Vi),mo(Vi,Vi,i,1),t[n]=os(Vi)):e===ss?mo(t[n],t[n],i,1):e===Hm&&Nc(t[n],t[n],i,1)},r}(),KT=function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){Yh("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,ut(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o0&&u.addKeyframe(0,as(l),i),this._trackKeys.push(s)}u.addKeyframe(t,as(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const Qh=KT;function fi(){return new Date().getTime()}var jT=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(!!e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=fi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(Mf(n),!e._paused&&e.update())}Mf(n)},t.prototype.start=function(){this._running||(this._time=fi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=fi(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=fi()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new Qh(e,n.loop);return this.addAnimator(i),i},t}(Fe);const QT=jT;var JT=300,Ku=nt.domSupported,ju=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=N(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}}(),Vc={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Gc=!1;function Of(r){var t=r.pointerType;return t==="pen"||t==="touch"}function tC(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Qu(r){r&&(r.zrByTouch=!0)}function eC(r,t){return pe(r.dom,new rC(r,t),!0)}function Wm(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var rC=function(){function r(t,e){this.stopPropagation=Kt,this.stopImmediatePropagation=Kt,this.preventDefault=Kt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Re={mousedown:function(r){r=pe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=pe(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=pe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=pe(this.dom,r);var t=r.toElement||r.relatedTarget;Wm(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Gc=!0,r=pe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Gc||(r=pe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=pe(this.dom,r),Qu(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Re.mousemove.call(this,r),Re.mousedown.call(this,r)},touchmove:function(r){r=pe(this.dom,r),Qu(r),this.handler.processGesture(r,"change"),Re.mousemove.call(this,r)},touchend:function(r){r=pe(this.dom,r),Qu(r),this.handler.processGesture(r,"end"),Re.mouseup.call(this,r),+new Date-+this.__lastTouchMoment$c||r<-$c}var jr=[],Hn=[],tl=La(),el=Math.abs,uC=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Kr(this.rotation)||Kr(this.x)||Kr(this.y)||Kr(this.scaleX-1)||Kr(this.scaleY-1)||Kr(this.skewX)||Kr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&Wc(n);return}n=n||La(),e?this.getLocalTransform(n):Wc(n),t&&(e?gi(n,t,n):vT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(jr);var n=jr[0]<0?-1:1,i=jr[1]<0?-1:1,a=((jr[0]-n)*e+n)/jr[0]||0,o=((jr[1]-i)*e+i)/jr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||La(),nu(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(!!t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(gi(Hn,t.invTransform,e),e=Hn);var n=this.originX,i=this.originY;(n||i)&&(tl[4]=n,tl[5]=i,gi(Hn,e,tl),Hn[4]-=n,Hn[5]-=i,e=Hn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&Se(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&Se(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&el(t[0]-1)>1e-10&&el(t[3]-1)>1e-10?Math.sqrt(el(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){Um(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,g=i+u;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&Kh(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Pa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Um(r,t){for(var e=0;e=0?parseFloat(r)/100*t:parseFloat(r):r}function Ds(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=Gr(n[0],e.width),l+=Gr(n[1],e.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var rl="__zr_normal__",nl=Pa.concat(["ignore"]),lC=zr(Pa,function(r,t){return r[t]=!0,r},{ignore:!1}),Wn={},fC=new ot(0,0,0,0),Jh=function(){function r(t){this.id=ym(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=fC;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wn,n,f):Ds(Wn,n,f),a.x=Wn.x,a.y=Wn.y,o=Wn.align,s=Wn.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Gr(h[0],f.width),v=Gr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(u=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ue,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ff:Nf},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&Qe(e);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,iu(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(U(t))for(var n=t,i=ut(n),a=0;a0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(rl,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===rl,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(at(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){Yh("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ue)}},r.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=at(i,t),o=at(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c0||i.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];C[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){A={};for(var S=0;S<_;S++){var y=g[S];A[y]=as(e[y]),vC(e,n,y)}}var b=new Qh(e,!1,!1,h?Pt(d,function(I){return I.targetName===t}):null);b.targetName=t,i.scope&&(b.scope=i.scope),c&&T&&b.whenWithKeys(0,T,g),A&&b.whenWithKeys(0,A,g),b.whenWithKeys(l==null?500:l,s?C:n,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}const Xm=Jh;var Zm=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=at(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=at(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/u*l+o}function pt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?_C(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Rt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Km),r=(+r).toFixed(t),e?r:+r}function SC(r){return r.sort(function(t,e){return t-e}),r}function fr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return xC(r)}function xC(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function jm(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function bC(r,t){var e=zr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=N(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=N(i,function(v){return Math.floor(v)}),s=zr(o,function(v,d){return v+d},0),u=N(i,function(v,d){return v-o[d]});sl&&(l=u[h],f=h);++o[f],u[f]=0,++s}return N(o,function(v){return v/n})}function wC(r,t){var e=Math.max(fr(r),fr(t)),n=r+t;return e>Km?n:Rt(n,e)}function Qm(r){var t=Math.PI*2;return(r%t+t)%t}function Is(r){return r>-Zc&&r=10&&t++,t}function Jm(r,t){var e=tv(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Hr(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function MC(r){return!isNaN(Hr(r))}function t0(){return Math.round(Math.random()*9)}function e0(r,t){return t===0?r:e0(t,r%t)}function qc(r,t){return r==null?t:t==null?r:r*t/e0(r,t)}function st(r){throw new Error(r)}function Kc(r,t,e){return(t-r)*e+r}var r0="series\0",n0="\0_ec_\0";function Mt(r){return r instanceof Array?r:r==null?[]:[r]}function zf(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n=0||a&&at(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var KC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jC=Ea(KC),QC=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return jC(this,t,e)},r}(),Vf=new Ka(50);function JC(r){if(typeof r=="string"){var t=Vf.get(r);return t&&t.image}else return r}function iv(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Vf.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!lu(t)&&a.pending.push(o)):(t=kn.loadImage(r,Qc,Qc),t.__zrImageSrc=r,Vf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Qc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},r.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},r.prototype.clearAnimation=function(){this.animation.clear()},r.prototype.getWidth=function(){return this.painter.getWidth()},r.prototype.getHeight=function(){return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this.handler.off(t,e)},r.prototype.trigger=function(t,e){this.handler.trigger(t,e)},r.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/u*l+o}function pt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return H(r)?_C(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Rt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Km),r=(+r).toFixed(t),e?r:+r}function SC(r){return r.sort(function(t,e){return t-e}),r}function fr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return xC(r)}function xC(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function jm(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function bC(r,t){var e=zr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=N(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=N(i,function(v){return Math.floor(v)}),s=zr(o,function(v,d){return v+d},0),u=N(i,function(v,d){return v-o[d]});sl&&(l=u[h],f=h);++o[f],u[f]=0,++s}return N(o,function(v){return v/n})}function wC(r,t){var e=Math.max(fr(r),fr(t)),n=r+t;return e>Km?n:Rt(n,e)}function Qm(r){var t=Math.PI*2;return(r%t+t)%t}function Is(r){return r>-Zc&&r=10&&t++,t}function Jm(r,t){var e=tv(r),n=Math.pow(10,e),i=r/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function Hr(r){var t=parseFloat(r);return t==r&&(t!==0||!H(r)||r.indexOf("x")<=0)?t:NaN}function AC(r){return!isNaN(Hr(r))}function t0(){return Math.round(Math.random()*9)}function e0(r,t){return t===0?r:e0(t,r%t)}function qc(r,t){return r==null?t:t==null?r:r*t/e0(r,t)}function st(r){throw new Error(r)}function Kc(r,t,e){return(t-r)*e+r}var r0="series\0",n0="\0_ec_\0";function Mt(r){return r instanceof Array?r:r==null?[]:[r]}function zf(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n=0||a&&at(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var KC=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],jC=Ea(KC),QC=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return jC(this,t,e)},r}(),Vf=new Ka(50);function JC(r){if(typeof r=="string"){var t=Vf.get(r);return t&&t.image}else return r}function iv(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Vf.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!lu(t)&&a.pending.push(o)):(t=Bn.loadImage(r,Qc,Qc),t.__zrImageSrc=r,Vf.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Qc(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;u++)s-=o;var l=fe(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function f0(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=fe(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?eM(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=fe(r,n)}return r===""&&(r=t.placeholder),r}function eM(r,t,e,n){for(var i=0,a=0,o=r.length;av&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=l0(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&sl(e,r.substring(s,l),t,o),sl(e,u[2],t,o,u[1]),s=ol.lastIndex}si){b>0?(m.tokens=m.tokens.slice(0,b),p(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=fe(x.text,M);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=JC(R),lu(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var E=d&&n!=null?n-S:null;E!=null&&E0&&d+n.accumWidth>n.width&&(f=t.split(` +`)}function l0(r,t,e,n){n=n||{};var i=B({},n);i.font=t,e=j(e,"..."),i.maxIterations=j(n.maxIterations,2);var a=i.minChar=j(n.minChar,0);i.cnCharWidth=fe("\u56FD",t);var o=i.ascCharWidth=fe("a",t);i.placeholder=j(n.placeholder,"");for(var s=r=Math.max(0,r-1),u=0;u=o;u++)s-=o;var l=fe(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function f0(r,t){var e=t.containerWidth,n=t.font,i=t.contentWidth;if(!e)return"";var a=fe(r,n);if(a<=e)return r;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?eA(r,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*i/a):0;r=r.substr(0,s),a=fe(r,n)}return r===""&&(r=t.placeholder),r}function eA(r,t,e,n){for(var i=0,a=0,o=r.length;av&&l){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=l0(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;ps&&sl(e,r.substring(s,l),t,o),sl(e,u[2],t,o,u[1]),s=ol.lastIndex}si){b>0?(m.tokens=m.tokens.slice(0,b),p(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var I=w.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")x.percentWidth=I,f.push(x),x.contentWidth=fe(x.text,A);else{if(L){var P=w.backgroundColor,R=P&&P.image;R&&(R=JC(R),lu(R)&&(x.width=Math.max(x.width,R.width*D/R.height)))}var E=d&&n!=null?n-S:null;E!=null&&E0&&d+n.accumWidth>n.width&&(f=t.split(` `),l=!0),n.accumWidth=d}else{var g=h0(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(` -`);for(var p=0;p=33&&t<=383}var sM=zr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function uM(r){return oM(r)?!!sM[r]:!0}function h0(r,t,e,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;he:i+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Gf="__zr_style_"+Math.round(Math.random()*10),Cn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cn[Gf]=!0;var td=["z","z2","invisible"],lM=["invisible"],fM=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=ut(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,u[0]=r+e,u[1]=t+n;return}if(xo[0]=hl(i)*e+r,xo[1]=fl(i)*n+t,bo[0]=hl(a)*e+r,bo[1]=fl(a)*n+t,l(s,xo,bo),f(u,xo,bo),i=i%Qr,i<0&&(i=i+Qr),a=a%Qr,a<0&&(a=a+Qr),i>a&&!o?a+=Qr:ii&&(wo[0]=hl(v)*e+r,wo[1]=fl(v)*n+t,l(s,wo,s),f(u,wo,u))}var ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Jr=[],tn=[],Ve=[],_r=[],Ge=[],He=[],vl=Math.min,cl=Math.max,en=Math.cos,rn=Math.sin,or=Math.abs,Hf=Math.PI,Ar=Hf*2,dl=typeof Float32Array<"u",Vi=[];function pl(r){var t=Math.round(r/Hf*1e8)/1e8;return t%2*Hf}function pM(r,t){var e=pl(r[0]);e<0&&(e+=Ar);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Ar?i=e+Ar:t&&e-i>=Ar?i=e-Ar:!t&&e>i?i=e+(Ar-pl(e-i)):t&&e0&&(this._ux=or(n/As/t)||0,this._uy=or(n/As/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ct.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=or(t-this._xi),i=or(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ct.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(ct.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(ct.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Vi[0]=i,Vi[1]=a,pM(Vi,o),i=Vi[0],a=Vi[1];var s=a-i;return this.addData(ct.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=en(a)*n+t,this._yi=rn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ct.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ct.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&dl&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ve[0]=Ve[1]=Ge[0]=Ge[1]=Number.MAX_VALUE,_r[0]=_r[1]=He[0]=He[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||or(_)>i||c===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case ct.C:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++],x=t[c++],w=t[c++];g=AT(a,o,S,b,p,y,x,w,10),a=x,o=w;break}case ct.Q:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++];g=IT(a,o,S,b,p,y,10),a=p,o=y;break}case ct.A:var T=t[c++],C=t[c++],M=t[c++],D=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,t[c++],d&&(s=en(I)*M+T,u=rn(I)*D+C),g=cl(M,D)*vl(Ar,Math.abs(L)),a=en(P)*M+T,o=rn(P)*D+C;break;case ct.R:{s=a=t[c++],u=o=t[c++];var R=t[c++],E=t[c++];g=R*2+E*2;break}case ct.Z:{var m=s-a,_=u-o;g=Math.sqrt(m*m+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,S,b;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m))return;t:for(var x=0;x0&&(t.lineTo(S,b),_=0),w){case ct.M:s=l=n[x++],u=f=n[x++],t.moveTo(l,f);break;case ct.L:{h=n[x++],c=n[x++];var C=or(h-l),M=or(c-f);if(C>i||M>a){if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}p+=D}t.lineTo(h,c),l=h,f=c,_=0}else{var L=C*C+M*M;L>_&&(S=h,b=c,_=L)}break}case ct.C:{var P=n[x++],R=n[x++],E=n[x++],V=n[x++],O=n[x++],k=n[x++];if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;Vr(l,P,E,O,I,Jr),Vr(f,R,V,k,I,tn),t.bezierCurveTo(Jr[1],tn[1],Jr[2],tn[2],Jr[3],tn[3]);break t}p+=D}t.bezierCurveTo(P,R,E,V,O,k),l=O,f=k;break}case ct.Q:{var P=n[x++],R=n[x++],E=n[x++],V=n[x++];if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;Ts(l,P,E,I,Jr),Ts(f,R,V,I,tn),t.quadraticCurveTo(Jr[1],tn[1],Jr[2],tn[2]);break t}p+=D}t.quadraticCurveTo(P,R,E,V),l=E,f=V;break}case ct.A:var z=n[x++],W=n[x++],$=n[x++],Z=n[x++],it=n[x++],wt=n[x++],vt=n[x++],Nt=!n[x++],Dt=$>Z?$:Z,xt=or($-Z)>.001,mt=it+wt,Y=!1;if(v){var D=d[y++];p+D>m&&(mt=it+wt*(m-p)/D,Y=!0),p+=D}if(xt&&t.ellipse?t.ellipse(z,W,$,Z,vt,it,mt,Nt):t.arc(z,W,Dt,it,mt,Nt),Y)break t;T&&(s=en(it)*$+z,u=rn(it)*Z+W),l=en(mt)*$+z,f=rn(mt)*Z+W;break;case ct.R:s=l=n[x],u=f=n[x+1],h=n[x++],c=n[x++];var rt=n[x++],Jt=n[x++];if(v){var D=d[y++];if(p+D>m){var Tt=m-p;t.moveTo(h,c),t.lineTo(h+vl(Tt,rt),c),Tt-=rt,Tt>0&&t.lineTo(h+rt,c+vl(Tt,Jt)),Tt-=Jt,Tt>0&&t.lineTo(h+cl(rt-Tt,0),c+Jt),Tt-=rt,Tt>0&&t.lineTo(h,c+cl(Jt-Tt,0));break t}p+=D}t.rect(h,c,rt,Jt);break;case ct.Z:if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}p+=D}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=ct,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const er=gM;function $n(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&l>e+h&&l>i+h&&l>o+h||lt+l&&u>n+l&&u>a+l||ur+l&&s>e+l&&s>i+l||se||f+li&&(i+=Gi);var c=Math.atan2(u,s);return c<0&&(c+=Gi),c>=n&&c<=i||c+Gi>=n&&c+Gi<=i}function nn(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var Sr=er.CMD,an=Math.PI*2,SM=1e-4;function xM(r,t){return Math.abs(r-t)t&&l>n&&l>a&&l>s||l1&&bM(),v=Ot(t,n,a,s,ye[0]),c>1&&(d=Ot(t,n,a,s,ye[1]))),c===2?pt&&s>n&&s>a||s=0&&l<=1){for(var f=0,h=$t(t,n,a,l),c=0;ce||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Xt[0]=-u,Xt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=an-1e-4){n=0,i=an;var f=a?1:-1;return o>=Xt[0]+r&&o<=Xt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=an,i+=an);for(var c=0,v=0;v<2;v++){var d=Xt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=an+g),(g>=n&&g<=i||g+an>=n&&g+an<=i)&&(g>Math.PI/2&&g1&&(e||(s+=nn(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),g){case Sr.M:f=a[d++],h=a[d++],u=f,l=h;break;case Sr.L:if(e){if($n(u,l,a[d],a[d+1],t,n,i))return!0}else s+=nn(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.C:if(e){if(yM(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=wM(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.Q:if(e){if(mM(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=TM(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],x=a[d++];d+=1;var w=!!(1-a[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,p?(f=c,h=v):s+=nn(u,l,c,v,n,i);var T=(n-y)*S/_+y;if(e){if(_M(y,m,S,b,b+x,w,t,T,i))return!0}else s+=CM(y,m,S,b,b+x,w,T,i);u=Math.cos(b+x)*_+y,l=Math.sin(b+x)*S+m;break;case Sr.R:f=u=a[d++],h=l=a[d++];var C=a[d++],M=a[d++];if(c=f+C,v=h+M,e){if($n(f,h,c,h,t,n,i)||$n(c,h,c,v,t,n,i)||$n(c,v,f,v,t,n,i)||$n(f,v,f,h,t,n,i))return!0}else s+=nn(c,h,c,v,n,i),s+=nn(f,v,f,h,n,i);break;case Sr.Z:if(e){if($n(u,l,f,h,t,n,i))return!0}else s+=nn(u,l,f,h,n,i);u=f,l=h;break}}return!e&&!xM(l,h)&&(s+=nn(u,l,f,h,n,i)||0),s!==0}function MM(r,t,e){return c0(r,0,!1,t,e)}function AM(r,t,e,n){return c0(r,t,!0,e,n)}var Ls=J({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cn),DM={style:J({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fu.style)},gl=Pa.concat(["invisible","culling","z","z2","zlevel","parent"]),IM=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){e.buildPath(u,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Nf:n>.2?sC:Ff}else if(e)return Ff}return Nf},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(H(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Cs(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ni)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),AM(s,u/l,e,n)))return!0}if(this.hasFill())return MM(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ni,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:B(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ni)},t.prototype.createStyle=function(e){return ru(Ls,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=B({},i.shape),B(l,n.shape)):(l=B({},a?this.shape:i.shape),B(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=B({},this.shape);for(var f={},h=ut(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return ru(LM,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=ou(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Pi);d0.prototype.type="tspan";const Ps=d0;var PM=J({x:0,y:0},Cn),RM={style:J({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fu.style)};function EM(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var p0=function(r){yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ru(PM,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=EM(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return RM},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Pi);p0.prototype.type="image";const pr=p0;function OM(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-u,n),u!==0&&r.arc(e+i-u,n+u,u,-Math.PI/2,0),r.lineTo(e+i,n+a-l),l!==0&&r.arc(e+i-l,n+a-l,l,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var fi=Math.round;function g0(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(fi(n*2)===fi(i*2)&&(r.x1=r.x2=bn(n,s,!0)),fi(a*2)===fi(o*2)&&(r.y1=r.y2=bn(a,s,!0))),r}}function y0(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=bn(n,s,!0),r.y=bn(i,s,!0),r.width=Math.max(bn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(bn(i+o,s,!1)-r.y,o===0?0:1)),r}}function bn(r,t,e){if(!t)return r;var n=fi(r*2);return(n+fi(t))%2===0?n/2:(n+(e?1:-1))/2}var kM=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),BM={},m0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kM},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=y0(BM,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?OM(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(et);m0.prototype.type="rect";const At=m0;var ad={fill:"#000"},od=2,NM={style:J({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},fu.style)},_0=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ad,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(a-(D-p)-(m-I)-C)/2;M<=L;)P=x[M],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,u){var l=n.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&yl(l);c&&this._renderBackground(l,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=vd(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ps),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=hd("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=fd("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=od,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Fr,p.opacity=ca(l.opacity,n.opacity,1),ud(p,l),b&&(p.lineWidth=ca(l.lineWidth,n.lineWidth,_),p.lineDash=j(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var w=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new ot(oa(p.x,w,p.textAlign),ii(p.y,T,p.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||l&&f){g=this._getOrCreateChild(At),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=u||null,m.fillOpacity=j(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(pr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=g.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=j(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=ca(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return x0(e)&&(n=[e.fontStyle,e.fontWeight,S0(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ze(n)||e.textFont||e.font},t}(Pi),FM={left:!0,right:1,center:1},zM={top:1,bottom:1,middle:1},sd=["fontStyle","fontWeight","fontSize","fontFamily"];function S0(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Wh+"px":r+"px"}function ud(r,t){for(var e=0;e=0,a=!1;if(r instanceof et){var o=b0(r),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Un(s)||Un(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=B({},n),l=B({},l),l.fill=s):!Un(l.fill)&&Un(s)?(a=!0,n=B({},n),l=B({},l),l.fill=yd(s)):!Un(l.stroke)&&Un(u)&&(a||(n=B({},n),l=B({},l)),l.stroke=yd(u)),n.style=l}}if(n&&n.z2==null){a||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:HM)}return n}function ZM(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:WM)}return e}function qM(r,t,e){var n=at(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:YM(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?i:a.opacity*.1},o),e.style=o),e}function ml(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return XM(this,r,t,e);if(r==="blur")return qM(this,r,e);if(r==="select")return ZM(this,r,e)}return e}function KM(r){r.stateProxy=ml;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=ml),e&&(e.stateProxy=ml)}function Sd(r,t){!I0(r,t)&&!r.__highByOuter&&gr(r,w0)}function xd(r,t){!I0(r,t)&&!r.__highByOuter&&gr(r,T0)}function bi(r,t){r.__highByOuter|=1<<(t||0),gr(r,w0)}function wi(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&gr(r,T0)}function jM(r){gr(r,sv)}function M0(r){gr(r,C0)}function A0(r){gr(r,$M)}function D0(r){gr(r,UM)}function I0(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function L0(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=av(a),s=i==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){C0(l)}),s&&e.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Wf(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Uf(r,t,e){P0(r,!0),gr(r,KM),iA(r,t,e)}function nA(r){P0(r,!1)}function Oa(r,t,e,n){n?nA(r):Uf(r,t,e)}function iA(r,t,e){var n=ft(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var wd=["emphasis","blur","select"],aA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ka(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=_l(d),s*=_l(d));var g=(i===a?-1:1)*_l((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+Co(h)*p-To(h)*y,_=(t+n)/2+To(h)*p+Co(h)*y,S=Ad([1,0],[(c-p)/o,(v-y)/s]),b=[(c-p)/o,(v-y)/s],x=[(-1*c-p)/o,(-1*v-y)/s],w=Ad(b,x);if(Zf(b,x)<=-1&&(w=Hi),Zf(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Hi*1e6)/1e6;w=Hi*2+T%2*Hi}f.addData(l,m,_,o,s,S,w,h,a)}var fA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function vA(r){var t=new er;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=er.CMD,u=r.match(fA);if(!u)return t;for(var l=0;lP*P+R*R&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/b-1),y1:C*(i/b-1)}}function SA(r){var t;if(F(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function xA(r,t){var e,n=sa(t.r,0),i=sa(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Id(l-u),d=v>Sl&&v%Sl;if(d>Pe&&(v=d),!(n>Pe))r.moveTo(f,h);else if(v>Sl-Pe)r.moveTo(f+n*Xn(u),h+n*on(u)),r.arc(f,h,n,u,l,!c),i>Pe&&(r.moveTo(f+i*Xn(l),h+i*on(l)),r.arc(f,h,i,l,u,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=n*Xn(u),E=n*on(u),V=i*Xn(l),O=i*on(l),k=v>Pe;if(k){var z=t.cornerRadius;z&&(e=SA(z),g=e[0],p=e[1],y=e[2],m=e[3]);var W=Id(n-i)/2;if(_=We(W,y),S=We(W,m),b=We(W,g),x=We(W,p),C=w=sa(_,S),M=T=sa(b,x),(w>Pe||T>Pe)&&(D=n*Xn(l),I=n*on(l),L=i*Xn(u),P=i*on(u),vPe){var xt=We(y,C),mt=We(m,C),Y=Mo(L,P,R,E,n,xt,c),rt=Mo(D,I,V,O,n,mt,c);r.moveTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),C0&&r.arc(f+Y.cx,h+Y.cy,xt,Ht(Y.y0,Y.x0),Ht(Y.y1,Y.x1),!c),r.arc(f,h,n,Ht(Y.cy+Y.y1,Y.cx+Y.x1),Ht(rt.cy+rt.y1,rt.cx+rt.x1),!c),mt>0&&r.arc(f+rt.cx,h+rt.cy,mt,Ht(rt.y1,rt.x1),Ht(rt.y0,rt.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,n,u,l,!c);if(!(i>Pe)||!k)r.lineTo(f+V,h+O);else if(M>Pe){var xt=We(g,M),mt=We(p,M),Y=Mo(V,O,D,I,i,-mt,c),rt=Mo(R,E,L,P,i,-xt,c);r.lineTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),M0&&r.arc(f+Y.cx,h+Y.cy,mt,Ht(Y.y0,Y.x0),Ht(Y.y1,Y.x1),!c),r.arc(f,h,i,Ht(Y.cy+Y.y1,Y.cx+Y.x1),Ht(rt.cy+rt.y1,rt.cx+rt.x1),c),xt>0&&r.arc(f+rt.cx,h+rt.cy,xt,Ht(rt.y1,rt.x1),Ht(rt.y0,rt.x0),!c))}else r.lineTo(f+V,h+O),r.arc(f,h,i,l,u,c)}r.closePath()}}}var bA=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),V0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new bA},t.prototype.buildPath=function(e,n){xA(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(et);V0.prototype.type="sector";const dr=V0;var wA=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),G0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new wA},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(et);G0.prototype.type="ring";const H0=G0;function TA(r,t,e,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(n){var a=TA(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sun[1]){if(s=!1,a)return s;var f=Math.abs(un[0]-sn[1]),h=Math.abs(sn[0]-un[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Bt(r,t,e,n,i,a){vv("update",r,t,e,n,i,a)}function Gt(r,t,e,n,i,a){vv("enter",r,t,e,n,i,a)}function yi(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Rd(r){return!r.isGroup}function XA(r){return r.shape!=null}function i_(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(u){Rd(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return XA(o)&&(s.shape=B({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Rd(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),Bt(o,u,e,ft(o).dataIndex)}}})}function a_(r,t){return N(r,function(e){var n=e[0];n=Bs(n,t.x),n=Ns(n,t.x+t.width);var i=e[1];return i=Bs(i,t.y),i=Ns(i,t.y+t.height),[n,i]})}function ZA(r,t){var e=Bs(r.x,t.x),n=Ns(r.x+r.width,t.x+t.width),i=Bs(r.y,t.y),a=Ns(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function yu(r,t,e){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),J(i,e),new pr(n)):cv(r.replace("path://",""),n,e,"center")}function qA(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=xl(v,d,f,h)/c;return!(p<0||p>1)}function xl(r,t,e,n){return r*n-e*t}function KA(r){return r<=1e-6&&r>=-1e-6}function mu(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=H(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&A(ut(u),function(f){vr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ft(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:J({content:n,formatterParams:s},i)}}function Ed(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function eo(r,t){if(r)if(F(r))for(var e=0;e=0&&s.push(u)}),s}}function f_(r,t){return tt(tt({},r,!0),t,!0)}const cD={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dD={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Fs="ZH",gv="EN",Na=gv,cs={},yv={},h_=nt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Fs)>-1?Fs:Na}():Na;function v_(r,t){r=r.toUpperCase(),yv[r]=new Vt(t),cs[r]=t}function pD(r){if(H(r)){var t=cs[r.toUpperCase()]||{};return r===Fs||r===gv?Q(t):tt(Q(t),Q(cs[Na]),!1)}else return tt(Q(r),Q(cs[Na]),!1)}function gD(r){return yv[r]}function yD(){return yv[Na]}v_(gv,cD);v_(Fs,dD);var mv=1e3,_v=mv*60,xa=_v*60,_e=xa*24,zd=_e*365,ua={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Io="{yyyy}-{MM}-{dd}",Vd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Io,hour:Io+" "+ua.hour,minute:Io+" "+ua.minute,second:Io+" "+ua.second,millisecond:ua.none},Tl=["year","month","day","hour","minute","second","millisecond"],c_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ln(r,t){return r+="","0000".substr(0,t-r.length)+r}function mi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function mD(r){return r===mi(r)}function _D(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Su(r,t,e,n){var i=cr(r),a=i[Sv(e)](),o=i[_i(e)]()+1,s=Math.floor((o-1)/3)+1,u=i[xu(e)](),l=i["get"+(e?"UTC":"")+"Day"](),f=i[Fa(e)](),h=(f-1)%12+1,c=i[bu(e)](),v=i[wu(e)](),d=i[Tu(e)](),g=n instanceof Vt?n:gD(n||h_)||yD(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,ln(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ln(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,ln(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ln(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ln(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ln(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ln(d,3)).replace(/{S}/g,d+"")}function SD(r,t,e,n,i){var a=null;if(H(e))a=e;else if(q(e))a=e(r.value,t,{level:r.level});else{var o=B({},ua);if(r.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Su(new Date(r.value),a,i,n)}function d_(r,t){var e=cr(r),n=e[_i(t)]()+1,i=e[xu(t)](),a=e[Fa(t)](),o=e[bu(t)](),s=e[wu(t)](),u=e[Tu(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Gd(r,t,e){var n=ht(r)?cr(r):r;switch(t=t||d_(r,e),t){case"year":return n[Sv(e)]();case"half-year":return n[_i(e)]()>=6?1:0;case"quarter":return Math.floor((n[_i(e)]()+1)/4);case"month":return n[_i(e)]();case"day":return n[xu(e)]();case"half-day":return n[Fa(e)]()/24;case"hour":return n[Fa(e)]();case"minute":return n[bu(e)]();case"second":return n[wu(e)]();case"millisecond":return n[Tu(e)]()}}function Sv(r){return r?"getUTCFullYear":"getFullYear"}function _i(r){return r?"getUTCMonth":"getMonth"}function xu(r){return r?"getUTCDate":"getDate"}function Fa(r){return r?"getUTCHours":"getHours"}function bu(r){return r?"getUTCMinutes":"getMinutes"}function wu(r){return r?"getUTCSeconds":"getSeconds"}function Tu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xD(r){return r?"setUTCFullYear":"setFullYear"}function p_(r){return r?"setUTCMonth":"setMonth"}function g_(r){return r?"setUTCDate":"setDate"}function y_(r){return r?"setUTCHours":"setHours"}function m_(r){return r?"setUTCMinutes":"setMinutes"}function __(r){return r?"setUTCSeconds":"setSeconds"}function S_(r){return r?"setUTCMilliseconds":"setMilliseconds"}function x_(r){if(!MC(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function b_(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Cu=mm;function jf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ze(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?cr(r):r;if(isNaN(+u)){if(s)return"-"}else return Su(u,n,e)}if(t==="ordinal")return mf(r)?i(r):ht(r)&&a(r)?r+"":"-";var l=Hr(r);return a(l)?x_(l):mf(r)?i(r):typeof r=="boolean"?r+"":"-"}var Hd=["a","b","c","d","e","f","g"],Cl=function(r,t){return"{"+r+(t==null?"":t)+"}"};function w_(r,t,e){F(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Pn(r,t){return t=t||"transparent",H(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Wd(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ds=A,wD=["left","right","top","bottom","width","height"],Lo=[["width","left","right"],["height","top","bottom"]];function xv(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Si=xv;lt(xv,"vertical");lt(xv,"horizontal");function $r(r,t,e){e=Cu(e||0);var n=t.width,i=t.height,a=pt(r.left,n),o=pt(r.top,i),s=pt(r.right,n),u=pt(r.bottom,i),l=pt(r.width,n),f=pt(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),r.left||r.right){case"center":a=n/2-l/2-e[3];break;case"right":a=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new ot(a+e[3],o+e[0],l,f);return d.margin=e,d}function TD(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var l;if(u==="raw")l=r.type==="group"?new ot(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=$r(J({width:l.width,height:l.height},t),e,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function za(r){var t=r.layoutMode||r.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function Ti(r,t,e){var n=e&&e.ignoreSize;!F(n)&&(n=[n,n]);var i=o(Lo[0],0),a=o(Lo[1],1);l(Lo[0],r,i),l(Lo[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(ds(f,function(_){d[_]=r[_]}),ds(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&g++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y=0;u--)s=tt(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Ja(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Vt);u0(Ei,Vt);uu(Ei);hD(Ei);vD(Ei,AD);function AD(r){var t=[];return A(Ei.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return qe(e).main}),r!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}const _t=Ei;var T_="";typeof navigator<"u"&&(T_=navigator.platform||"");var Zn="rgba(0, 0, 0, 0.2)";const DD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:T_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var C_=K(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ce="original",Qt="arrayRows",Me="objectRows",nr="keyedColumns",Nr="typedArray",M_="unknown",tr="column",Oi="row",zt={Must:1,Might:2,Not:3},A_=bt();function ID(r){A_(r).datasetMap=K()}function D_(r,t,e){var n={},i=bv(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,u=A_(s).datasetMap,l=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(g,p){var y=U(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});A(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;mt)return r[n];return r[e-1]}function P_(r,t,e,n,i,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?e:kD(n,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function BD(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Po,Wi,Yd,Xd="\0_ec_inner",ND=1,R_=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Vt(a),this._locale=new Vt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Kd(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Kd(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Yd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&A(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=K(),l=n&&n.replaceMergeMainTypeMap;ID(this),A(e,function(h,c){h!=null&&(_t.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?Q(h):tt(i[c],h,!0))}),l&&l.each(function(h,c){_t.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),_t.topologicalTravel(s,_t.getAllClassMainTypes(),f,this);function f(h){var c=ED(this,h,Mt(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=DC(v,c,d);BC(g,h,_t),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;A(g,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",C=_t.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=B({componentIndex:b},S.keyInfo);x=new C(w,this,this,M),B(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),y.push(x),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&Po(this)}this._seriesIndices||Po(this)},t.prototype.getOption=function(){var e=Q(this.option);return A(e,function(n,i){if(_t.hasClass(i)){for(var a=Mt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Ra(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Xd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function ZD(r,t){return r.join(",")===t.join(",")}const qD=$D;var Ie=A,Va=U,jd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Al(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=jd.length;e=0;p--){var y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=wC(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Au=function(){function r(t){this.data=t.data||(t.sourceFormat===nr?{}:[]),this.sourceFormat=t.sourceFormat||M_,this.seriesLayoutBy=t.seriesLayoutBy||tr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;ng&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};ip=(t={},t[Qt+"_"+tr]={pure:!0,appendData:a},t[Qt+"_"+Oi]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Me]={pure:!0,appendData:a},t[nr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Ce]={appendData:a},t[Nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Ci(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function up(r){var t,e;return U(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ba(r){return new cI(r)}var cI=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v1&&n>0?s:o}};return a;function o(){return t=r?null:ut},gte:function(r,t){return r>=t}},pI=function(){function r(t,e){if(!ht(e)){var n="";st(n)}this._opFn=$_[t],this._rvalFloat=Hr(e)}return r.prototype.evaluate=function(t){return ht(t)?this._opFn(t,this._rvalFloat):this._opFn(Hr(t),this._rvalFloat)},r}(),U_=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ht(t)?t:Hr(t),i=ht(e)?e:Hr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=H(t),u=H(e);s&&(n=u?t:0),u&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),gI=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Hr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Hr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function yI(r,t){return r==="eq"||r==="ne"?new gI(r==="eq",t):vr($_,r)?new pI(r,t):null}var mI=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ps(t,e)},r}();function _I(r,t){var e=new mI,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==tr&&st(o);var s=[],u={},l=r.dimensionsDefine;if(l)A(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";vr(u,y)&&st(_),u[y]=m}});else for(var f=0;f65535?AI:DI}function qn(){return[1/0,-1/0]}function II(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function hp(r,t,e,n,i){var a=Z_[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;lp[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=N(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&m<=c||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],b=t[i[1]][1],y=0;y=h&&m<=c||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=c||isNaN(m))&&(u[l++]=w)}else for(var y=0;yt[M][1])&&(T=!1)}T&&(u[l++]=e.getRawIndex(y))}return ly[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(Ui(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=S)}D>0&&Df-d&&(u=f-d,s.length=u);for(var g=0;gh[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();au&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ps(e[a],this._dimensions[a])}Ll={arrayRows:t,objectRows:function(e,n,i,a){return ps(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ps(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),q_=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(Ro(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=he(s)?Nr:Ce,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=j(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=j(h.sourceHeader,c.sourceHeader),g=j(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[Jf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Jf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&cp(a)}var o,s=[],u=[];return A(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&cp(h),s.push(f),u.push(l._getVersionSign())}),n?o=CI(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[aI(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e=33&&t<=383}var sA=zr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function uA(r){return oA(r)?!!sA[r]:!0}function h0(r,t,e,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;he:i+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var Gf="__zr_style_"+Math.round(Math.random()*10),An={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},fu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};An[Gf]=!0;var td=["z","z2","invisible"],lA=["invisible"],fA=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=ut(e),i=0;i1e-4){s[0]=r-e,s[1]=t-n,u[0]=r+e,u[1]=t+n;return}if(xo[0]=hl(i)*e+r,xo[1]=fl(i)*n+t,bo[0]=hl(a)*e+r,bo[1]=fl(a)*n+t,l(s,xo,bo),f(u,xo,bo),i=i%Jr,i<0&&(i=i+Jr),a=a%Jr,a<0&&(a=a+Jr),i>a&&!o?a+=Jr:ii&&(wo[0]=hl(v)*e+r,wo[1]=fl(v)*n+t,l(s,wo,s),f(u,wo,u))}var ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tn=[],en=[],Ve=[],_r=[],Ge=[],He=[],vl=Math.min,cl=Math.max,rn=Math.cos,nn=Math.sin,or=Math.abs,Hf=Math.PI,Mr=Hf*2,dl=typeof Float32Array<"u",Gi=[];function pl(r){var t=Math.round(r/Hf*1e8)/1e8;return t%2*Hf}function pA(r,t){var e=pl(r[0]);e<0&&(e+=Mr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=Mr?i=e+Mr:t&&e-i>=Mr?i=e-Mr:!t&&e>i?i=e+(Mr-pl(e-i)):t&&e0&&(this._ux=or(n/Ms/t)||0,this._uy=or(n/Ms/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ct.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=or(t-this._xi),i=or(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(ct.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(ct.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(ct.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),Gi[0]=i,Gi[1]=a,pA(Gi,o),i=Gi[0],a=Gi[1];var s=a-i;return this.addData(ct.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=rn(a)*n+t,this._yi=nn(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ct.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ct.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&dl&&(this.data=new Float32Array(e));for(var n=0;nf.length&&(this._expandData(),f=this.data);for(var h=0;h0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Ve[0]=Ve[1]=Ge[0]=Ge[1]=Number.MAX_VALUE,_r[0]=_r[1]=He[0]=He[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;on||or(_)>i||c===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case ct.C:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++],x=t[c++],w=t[c++];g=MT(a,o,S,b,p,y,x,w,10),a=x,o=w;break}case ct.Q:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++];g=IT(a,o,S,b,p,y,10),a=p,o=y;break}case ct.A:var T=t[c++],C=t[c++],A=t[c++],D=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,t[c++],d&&(s=rn(I)*A+T,u=nn(I)*D+C),g=cl(A,D)*vl(Mr,Math.abs(L)),a=rn(P)*A+T,o=nn(P)*D+C;break;case ct.R:{s=a=t[c++],u=o=t[c++];var R=t[c++],E=t[c++];g=R*2+E*2;break}case ct.Z:{var m=s-a,_=u-o;g=Math.sqrt(m*m+_*_),a=s,o=u;break}}g>=0&&(l[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,S,b;if(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m))return;t:for(var x=0;x0&&(t.lineTo(S,b),_=0),w){case ct.M:s=l=n[x++],u=f=n[x++],t.moveTo(l,f);break;case ct.L:{h=n[x++],c=n[x++];var C=or(h-l),A=or(c-f);if(C>i||A>a){if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}p+=D}t.lineTo(h,c),l=h,f=c,_=0}else{var L=C*C+A*A;L>_&&(S=h,b=c,_=L)}break}case ct.C:{var P=n[x++],R=n[x++],E=n[x++],V=n[x++],O=n[x++],k=n[x++];if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;Vr(l,P,E,O,I,tn),Vr(f,R,V,k,I,en),t.bezierCurveTo(tn[1],en[1],tn[2],en[2],tn[3],en[3]);break t}p+=D}t.bezierCurveTo(P,R,E,V,O,k),l=O,f=k;break}case ct.Q:{var P=n[x++],R=n[x++],E=n[x++],V=n[x++];if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;Ts(l,P,E,I,tn),Ts(f,R,V,I,en),t.quadraticCurveTo(tn[1],en[1],tn[2],en[2]);break t}p+=D}t.quadraticCurveTo(P,R,E,V),l=E,f=V;break}case ct.A:var z=n[x++],W=n[x++],$=n[x++],Z=n[x++],it=n[x++],wt=n[x++],vt=n[x++],Nt=!n[x++],It=$>Z?$:Z,xt=or($-Z)>.001,mt=it+wt,Y=!1;if(v){var D=d[y++];p+D>m&&(mt=it+wt*(m-p)/D,Y=!0),p+=D}if(xt&&t.ellipse?t.ellipse(z,W,$,Z,vt,it,mt,Nt):t.arc(z,W,It,it,mt,Nt),Y)break t;T&&(s=rn(it)*$+z,u=nn(it)*Z+W),l=rn(mt)*$+z,f=nn(mt)*Z+W;break;case ct.R:s=l=n[x],u=f=n[x+1],h=n[x++],c=n[x++];var rt=n[x++],Jt=n[x++];if(v){var D=d[y++];if(p+D>m){var Ct=m-p;t.moveTo(h,c),t.lineTo(h+vl(Ct,rt),c),Ct-=rt,Ct>0&&t.lineTo(h+rt,c+vl(Ct,Jt)),Ct-=Jt,Ct>0&&t.lineTo(h+cl(rt-Ct,0),c+Jt),Ct-=rt,Ct>0&&t.lineTo(h,c+cl(Jt-Ct,0));break t}p+=D}t.rect(h,c,rt,Jt);break;case ct.Z:if(v){var D=d[y++];if(p+D>m){var I=(m-p)/D;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}p+=D}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=ct,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();const er=gA;function $n(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=r;if(o>t+s&&o>n+s||or+s&&a>e+s||at+h&&f>n+h&&f>a+h&&f>s+h||fr+h&&l>e+h&&l>i+h&&l>o+h||lt+l&&u>n+l&&u>a+l||ur+l&&s>e+l&&s>i+l||se||f+li&&(i+=Hi);var c=Math.atan2(u,s);return c<0&&(c+=Hi),c>=n&&c<=i||c+Hi>=n&&c+Hi<=i}function an(r,t,e,n,i,a){if(a>t&&a>n||ai?s:0}var Sr=er.CMD,on=Math.PI*2,SA=1e-4;function xA(r,t){return Math.abs(r-t)t&&l>n&&l>a&&l>s||l1&&bA(),v=Ot(t,n,a,s,ye[0]),c>1&&(d=Ot(t,n,a,s,ye[1]))),c===2?pt&&s>n&&s>a||s=0&&l<=1){for(var f=0,h=$t(t,n,a,l),c=0;ce||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Xt[0]=-u,Xt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=on-1e-4){n=0,i=on;var f=a?1:-1;return o>=Xt[0]+r&&o<=Xt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=on,i+=on);for(var c=0,v=0;v<2;v++){var d=Xt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=on+g),(g>=n&&g<=i||g+on>=n&&g+on<=i)&&(g>Math.PI/2&&g1&&(e||(s+=an(u,l,f,h,n,i))),p&&(u=a[d],l=a[d+1],f=u,h=l),g){case Sr.M:f=a[d++],h=a[d++],u=f,l=h;break;case Sr.L:if(e){if($n(u,l,a[d],a[d+1],t,n,i))return!0}else s+=an(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.C:if(e){if(yA(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=wA(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.Q:if(e){if(mA(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=TA(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case Sr.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],x=a[d++];d+=1;var w=!!(1-a[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,p?(f=c,h=v):s+=an(u,l,c,v,n,i);var T=(n-y)*S/_+y;if(e){if(_A(y,m,S,b,b+x,w,t,T,i))return!0}else s+=CA(y,m,S,b,b+x,w,T,i);u=Math.cos(b+x)*_+y,l=Math.sin(b+x)*S+m;break;case Sr.R:f=u=a[d++],h=l=a[d++];var C=a[d++],A=a[d++];if(c=f+C,v=h+A,e){if($n(f,h,c,h,t,n,i)||$n(c,h,c,v,t,n,i)||$n(c,v,f,v,t,n,i)||$n(f,v,f,h,t,n,i))return!0}else s+=an(c,h,c,v,n,i),s+=an(f,v,f,h,n,i);break;case Sr.Z:if(e){if($n(u,l,f,h,t,n,i))return!0}else s+=an(u,l,f,h,n,i);u=f,l=h;break}}return!e&&!xA(l,h)&&(s+=an(u,l,f,h,n,i)||0),s!==0}function AA(r,t,e){return c0(r,0,!1,t,e)}function MA(r,t,e,n){return c0(r,t,!0,e,n)}var Ls=J({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},An),DA={style:J({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},fu.style)},gl=Pa.concat(["invisible","culling","z","z2","zlevel","parent"]),IA=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){e.buildPath(u,e.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Nf:n>.2?sC:Ff}else if(e)return Ff}return Nf},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(H(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Cs(e,0)0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ii)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f==null?4:f)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),MA(s,u/l,e,n)))return!0}if(this.hasFill())return AA(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ii,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:B(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ii)},t.prototype.createStyle=function(e){return ru(Ls,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=B({},i.shape),B(l,n.shape)):(l=B({},a?this.shape:i.shape),B(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=B({},this.shape);for(var f={},h=ut(l),c=0;c0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return ru(LA,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=ou(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Ri);d0.prototype.type="tspan";const Ps=d0;var PA=J({x:0,y:0},An),RA={style:J({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},fu.style)};function EA(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var p0=function(r){yt(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ru(PA,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=EA(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return RA},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ri);p0.prototype.type="image";const pr=p0;function OA(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-u,n),u!==0&&r.arc(e+i-u,n+u,u,-Math.PI/2,0),r.lineTo(e+i,n+a-l),l!==0&&r.arc(e+i-l,n+a-l,l,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var hi=Math.round;function g0(r,t,e){if(!!t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(hi(n*2)===hi(i*2)&&(r.x1=r.x2=wn(n,s,!0)),hi(a*2)===hi(o*2)&&(r.y1=r.y2=wn(a,s,!0))),r}}function y0(r,t,e){if(!!t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=wn(n,s,!0),r.y=wn(i,s,!0),r.width=Math.max(wn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(wn(i+o,s,!1)-r.y,o===0?0:1)),r}}function wn(r,t,e){if(!t)return r;var n=hi(r*2);return(n+hi(t))%2===0?n/2:(n+(e?1:-1))/2}var kA=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),BA={},m0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kA},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=y0(BA,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?OA(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(et);m0.prototype.type="rect";const Dt=m0;var ad={fill:"#000"},od=2,NA={style:J({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},fu.style)},_0=function(r){yt(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ad,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(a-(D-p)-(m-I)-C)/2;A<=L;)P=x[A],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,A++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,u){var l=n.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&yl(l);c&&this._renderBackground(l,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=vd(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Ps),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=!1,_=0,S=hd("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),b=fd("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=od,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,x&&(p.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,p.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||Fr,p.opacity=ca(l.opacity,n.opacity,1),ud(p,l),b&&(p.lineWidth=ca(l.lineWidth,n.lineWidth,_),p.lineDash=j(l.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var w=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new ot(oa(p.x,w,p.textAlign),ai(p.y,T,p.textBaseline),w,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||l&&f){g=this._getOrCreateChild(Dt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=u||null,m.fillOpacity=j(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(pr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=g.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=j(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=ca(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return x0(e)&&(n=[e.fontStyle,e.fontWeight,S0(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&Ze(n)||e.textFont||e.font},t}(Ri),FA={left:!0,right:1,center:1},zA={top:1,bottom:1,middle:1},sd=["fontStyle","fontWeight","fontSize","fontFamily"];function S0(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Wh+"px":r+"px"}function ud(r,t){for(var e=0;e=0,a=!1;if(r instanceof et){var o=b0(r),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Un(s)||Un(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=B({},n),l=B({},l),l.fill=s):!Un(l.fill)&&Un(s)?(a=!0,n=B({},n),l=B({},l),l.fill=yd(s)):!Un(l.stroke)&&Un(u)&&(a||(n=B({},n),l=B({},l)),l.stroke=yd(u)),n.style=l}}if(n&&n.z2==null){a||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:HA)}return n}function ZA(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n!=null?n:WA)}return e}function qA(r,t,e){var n=at(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:YA(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?i:a.opacity*.1},o),e.style=o),e}function ml(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return XA(this,r,t,e);if(r==="blur")return qA(this,r,e);if(r==="select")return ZA(this,r,e)}return e}function KA(r){r.stateProxy=ml;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=ml),e&&(e.stateProxy=ml)}function Sd(r,t){!I0(r,t)&&!r.__highByOuter&&gr(r,w0)}function xd(r,t){!I0(r,t)&&!r.__highByOuter&&gr(r,T0)}function wi(r,t){r.__highByOuter|=1<<(t||0),gr(r,w0)}function Ti(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&gr(r,T0)}function jA(r){gr(r,sv)}function A0(r){gr(r,C0)}function M0(r){gr(r,$A)}function D0(r){gr(r,UA)}function I0(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function L0(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=av(a),s=i==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){C0(l)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Wf(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Uf(r,t,e){P0(r,!0),gr(r,KA),iM(r,t,e)}function nM(r){P0(r,!1)}function Oa(r,t,e,n){n?nM(r):Uf(r,t,e)}function iM(r,t,e){var n=ft(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var wd=["emphasis","blur","select"],aM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ka(r,t,e,n){e=e||"itemStyle";for(var i=0;i1&&(o*=_l(d),s*=_l(d));var g=(i===a?-1:1)*_l((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+Co(h)*p-To(h)*y,_=(t+n)/2+To(h)*p+Co(h)*y,S=Md([1,0],[(c-p)/o,(v-y)/s]),b=[(c-p)/o,(v-y)/s],x=[(-1*c-p)/o,(-1*v-y)/s],w=Md(b,x);if(Zf(b,x)<=-1&&(w=Wi),Zf(b,x)>=1&&(w=0),w<0){var T=Math.round(w/Wi*1e6)/1e6;w=Wi*2+T%2*Wi}f.addData(l,m,_,o,s,S,w,h,a)}var fM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,hM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function vM(r){var t=new er;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=er.CMD,u=r.match(fM);if(!u)return t;for(var l=0;lP*P+R*R&&(T=A,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/b-1),y1:C*(i/b-1)}}function SM(r){var t;if(F(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function xM(r,t){var e,n=sa(t.r,0),i=sa(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Id(l-u),d=v>Sl&&v%Sl;if(d>Pe&&(v=d),!(n>Pe))r.moveTo(f,h);else if(v>Sl-Pe)r.moveTo(f+n*Xn(u),h+n*sn(u)),r.arc(f,h,n,u,l,!c),i>Pe&&(r.moveTo(f+i*Xn(l),h+i*sn(l)),r.arc(f,h,i,l,u,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,A=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=n*Xn(u),E=n*sn(u),V=i*Xn(l),O=i*sn(l),k=v>Pe;if(k){var z=t.cornerRadius;z&&(e=SM(z),g=e[0],p=e[1],y=e[2],m=e[3]);var W=Id(n-i)/2;if(_=We(W,y),S=We(W,m),b=We(W,g),x=We(W,p),C=w=sa(_,S),A=T=sa(b,x),(w>Pe||T>Pe)&&(D=n*Xn(l),I=n*sn(l),L=i*Xn(u),P=i*sn(u),vPe){var xt=We(y,C),mt=We(m,C),Y=Ao(L,P,R,E,n,xt,c),rt=Ao(D,I,V,O,n,mt,c);r.moveTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),C0&&r.arc(f+Y.cx,h+Y.cy,xt,Ht(Y.y0,Y.x0),Ht(Y.y1,Y.x1),!c),r.arc(f,h,n,Ht(Y.cy+Y.y1,Y.cx+Y.x1),Ht(rt.cy+rt.y1,rt.cx+rt.x1),!c),mt>0&&r.arc(f+rt.cx,h+rt.cy,mt,Ht(rt.y1,rt.x1),Ht(rt.y0,rt.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,n,u,l,!c);if(!(i>Pe)||!k)r.lineTo(f+V,h+O);else if(A>Pe){var xt=We(g,A),mt=We(p,A),Y=Ao(V,O,D,I,i,-mt,c),rt=Ao(R,E,L,P,i,-xt,c);r.lineTo(f+Y.cx+Y.x0,h+Y.cy+Y.y0),A0&&r.arc(f+Y.cx,h+Y.cy,mt,Ht(Y.y0,Y.x0),Ht(Y.y1,Y.x1),!c),r.arc(f,h,i,Ht(Y.cy+Y.y1,Y.cx+Y.x1),Ht(rt.cy+rt.y1,rt.cx+rt.x1),c),xt>0&&r.arc(f+rt.cx,h+rt.cy,xt,Ht(rt.y1,rt.x1),Ht(rt.y0,rt.x0),!c))}else r.lineTo(f+V,h+O),r.arc(f,h,i,l,u,c)}r.closePath()}}}var bM=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),V0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new bM},t.prototype.buildPath=function(e,n){xM(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(et);V0.prototype.type="sector";const dr=V0;var wM=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),G0=function(r){yt(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new wM},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t}(et);G0.prototype.type="ring";const H0=G0;function TM(r,t,e,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c=2){if(n){var a=TM(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;sln[1]){if(s=!1,a)return s;var f=Math.abs(ln[0]-un[1]),h=Math.abs(un[0]-ln[1]);Math.min(f,h)>i.len()&&(f0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Bt(r,t,e,n,i,a){vv("update",r,t,e,n,i,a)}function Gt(r,t,e,n,i,a){vv("enter",r,t,e,n,i,a)}function mi(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Rd(r){return!r.isGroup}function XM(r){return r.shape!=null}function i_(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(u){Rd(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return XM(o)&&(s.shape=B({},o.shape)),s}var a=n(r);t.traverse(function(o){if(Rd(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),Bt(o,u,e,ft(o).dataIndex)}}})}function a_(r,t){return N(r,function(e){var n=e[0];n=Bs(n,t.x),n=Ns(n,t.x+t.width);var i=e[1];return i=Bs(i,t.y),i=Ns(i,t.y+t.height),[n,i]})}function ZM(r,t){var e=Bs(r.x,t.x),n=Ns(r.x+r.width,t.x+t.width),i=Bs(r.y,t.y),a=Ns(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function yu(r,t,e){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),J(i,e),new pr(n)):cv(r.replace("path://",""),n,e,"center")}function qM(r,t,e,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var p=xl(v,d,f,h)/c;return!(p<0||p>1)}function xl(r,t,e,n){return r*n-e*t}function KM(r){return r<=1e-6&&r>=-1e-6}function mu(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=H(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&M(ut(u),function(f){vr(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=ft(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:J({content:n,formatterParams:s},i)}}function Ed(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function eo(r,t){if(r)if(F(r))for(var e=0;e=0&&s.push(u)}),s}}function f_(r,t){return tt(tt({},r,!0),t,!0)}const cD={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},dD={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Fs="ZH",gv="EN",Na=gv,cs={},yv={},h_=nt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return r.indexOf(Fs)>-1?Fs:Na}():Na;function v_(r,t){r=r.toUpperCase(),yv[r]=new Vt(t),cs[r]=t}function pD(r){if(H(r)){var t=cs[r.toUpperCase()]||{};return r===Fs||r===gv?Q(t):tt(Q(t),Q(cs[Na]),!1)}else return tt(Q(r),Q(cs[Na]),!1)}function gD(r){return yv[r]}function yD(){return yv[Na]}v_(gv,cD);v_(Fs,dD);var mv=1e3,_v=mv*60,xa=_v*60,_e=xa*24,zd=_e*365,ua={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Io="{yyyy}-{MM}-{dd}",Vd={year:"{yyyy}",month:"{yyyy}-{MM}",day:Io,hour:Io+" "+ua.hour,minute:Io+" "+ua.minute,second:Io+" "+ua.second,millisecond:ua.none},Tl=["year","month","day","hour","minute","second","millisecond"],c_=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function fn(r,t){return r+="","0000".substr(0,t-r.length)+r}function _i(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function mD(r){return r===_i(r)}function _D(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Su(r,t,e,n){var i=cr(r),a=i[Sv(e)](),o=i[Si(e)]()+1,s=Math.floor((o-1)/3)+1,u=i[xu(e)](),l=i["get"+(e?"UTC":"")+"Day"](),f=i[Fa(e)](),h=(f-1)%12+1,c=i[bu(e)](),v=i[wu(e)](),d=i[Tu(e)](),g=n instanceof Vt?n:gD(n||h_)||yD(),p=g.getModel("time"),y=p.get("month"),m=p.get("monthAbbr"),_=p.get("dayOfWeek"),S=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,fn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,fn(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,_[l]).replace(/{ee}/g,S[l]).replace(/{e}/g,l+"").replace(/{HH}/g,fn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,fn(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,fn(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,fn(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,fn(d,3)).replace(/{S}/g,d+"")}function SD(r,t,e,n,i){var a=null;if(H(e))a=e;else if(q(e))a=e(r.value,t,{level:r.level});else{var o=B({},ua);if(r.level>0)for(var s=0;s=0;--s)if(u[l]){a=u[l];break}a=a||o.none}if(F(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return Su(new Date(r.value),a,i,n)}function d_(r,t){var e=cr(r),n=e[Si(t)]()+1,i=e[xu(t)](),a=e[Fa(t)](),o=e[bu(t)](),s=e[wu(t)](),u=e[Tu(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Gd(r,t,e){var n=ht(r)?cr(r):r;switch(t=t||d_(r,e),t){case"year":return n[Sv(e)]();case"half-year":return n[Si(e)]()>=6?1:0;case"quarter":return Math.floor((n[Si(e)]()+1)/4);case"month":return n[Si(e)]();case"day":return n[xu(e)]();case"half-day":return n[Fa(e)]()/24;case"hour":return n[Fa(e)]();case"minute":return n[bu(e)]();case"second":return n[wu(e)]();case"millisecond":return n[Tu(e)]()}}function Sv(r){return r?"getUTCFullYear":"getFullYear"}function Si(r){return r?"getUTCMonth":"getMonth"}function xu(r){return r?"getUTCDate":"getDate"}function Fa(r){return r?"getUTCHours":"getHours"}function bu(r){return r?"getUTCMinutes":"getMinutes"}function wu(r){return r?"getUTCSeconds":"getSeconds"}function Tu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xD(r){return r?"setUTCFullYear":"setFullYear"}function p_(r){return r?"setUTCMonth":"setMonth"}function g_(r){return r?"setUTCDate":"setDate"}function y_(r){return r?"setUTCHours":"setHours"}function m_(r){return r?"setUTCMinutes":"setMinutes"}function __(r){return r?"setUTCSeconds":"setSeconds"}function S_(r){return r?"setUTCMilliseconds":"setMilliseconds"}function x_(r){if(!AC(r))return H(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function b_(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Cu=mm;function jf(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ze(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var u=o?cr(r):r;if(isNaN(+u)){if(s)return"-"}else return Su(u,n,e)}if(t==="ordinal")return mf(r)?i(r):ht(r)&&a(r)?r+"":"-";var l=Hr(r);return a(l)?x_(l):mf(r)?i(r):typeof r=="boolean"?r+"":"-"}var Hd=["a","b","c","d","e","f","g"],Cl=function(r,t){return"{"+r+(t==null?"":t)+"}"};function w_(r,t,e){F(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Rn(r,t){return t=t||"transparent",H(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Wd(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var ds=M,wD=["left","right","top","bottom","width","height"],Lo=[["width","left","right"],["height","top","bottom"]];function xv(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>n||u.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||u.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var xi=xv;lt(xv,"vertical");lt(xv,"horizontal");function $r(r,t,e){e=Cu(e||0);var n=t.width,i=t.height,a=pt(r.left,n),o=pt(r.top,i),s=pt(r.right,n),u=pt(r.bottom,i),l=pt(r.width,n),f=pt(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),r.left||r.right){case"center":a=n/2-l/2-e[3];break;case"right":a=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new ot(a+e[3],o+e[0],l,f);return d.margin=e,d}function TD(r,t,e,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var l;if(u==="raw")l=r.type==="group"?new ot(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(l=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();l=l.clone(),l.applyTransform(f)}var h=$r(J({width:l.width,height:l.height},t),e,n),c=o?h.x-l.x:0,v=s?h.y-l.y:0;return u==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function za(r){var t=r.layoutMode||r.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function Ci(r,t,e){var n=e&&e.ignoreSize;!F(n)&&(n=[n,n]);var i=o(Lo[0],0),a=o(Lo[1],1);l(Lo[0],r,i),l(Lo[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(ds(f,function(_){d[_]=r[_]}),ds(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&g++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y=0;u--)s=tt(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Ja(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Vt);u0(Oi,Vt);uu(Oi);hD(Oi);vD(Oi,MD);function MD(r){var t=[];return M(Oi.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return qe(e).main}),r!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}const _t=Oi;var T_="";typeof navigator<"u"&&(T_=navigator.platform||"");var Zn="rgba(0, 0, 0, 0.2)";const DD={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Zn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Zn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Zn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Zn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Zn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Zn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:T_.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var C_=K(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Ce="original",Qt="arrayRows",Ae="objectRows",nr="keyedColumns",Nr="typedArray",A_="unknown",tr="column",ki="row",zt={Must:1,Might:2,Not:3},M_=bt();function ID(r){M_(r).datasetMap=K()}function D_(r,t,e){var n={},i=bv(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,u=M_(s).datasetMap,l=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(g,p){var y=U(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;mt)return r[n];return r[e-1]}function P_(r,t,e,n,i,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?e:kD(n,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function BD(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Po,$i,Yd,Xd="\0_ec_inner",ND=1,R_=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Vt(a),this._locale=new Vt(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=Kd(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,Kd(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Yd(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&M(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=K(),l=n&&n.replaceMergeMainTypeMap;ID(this),M(e,function(h,c){h!=null&&(_t.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?Q(h):tt(i[c],h,!0))}),l&&l.each(function(h,c){_t.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),_t.topologicalTravel(s,_t.getAllClassMainTypes(),f,this);function f(h){var c=ED(this,h,Mt(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=DC(v,c,d);BC(g,h,_t),i[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;M(g,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",C=_t.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var A=B({componentIndex:b},S.keyInfo);x=new C(w,this,this,A),B(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),y.push(x),m++):(p.push(void 0),y.push(void 0))},this),i[h]=p,a.set(h,y),o.set(h,m),h==="series"&&Po(this)}this._seriesIndices||Po(this)},t.prototype.getOption=function(){var e=Q(this.option);return M(e,function(n,i){if(_t.hasClass(i)){for(var a=Mt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Ra(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Xd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function ZD(r,t){return r.join(",")===t.join(",")}const qD=$D;var Ie=M,Va=U,jd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ml(r){var t=r&&r.itemStyle;if(!!t)for(var e=0,n=jd.length;e=0;p--){var y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=wC(c,m),g=m;break}}}return n[0]=c,n[1]=g,n})})}var Mu=function(){function r(t){this.data=t.data||(t.sourceFormat===nr?{}:[]),this.sourceFormat=t.sourceFormat||A_,this.seriesLayoutBy=t.seriesLayoutBy||tr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;ng&&(g=_)}v[0]=d,v[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};ip=(t={},t[Qt+"_"+tr]={pure:!0,appendData:a},t[Qt+"_"+ki]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ae]={pure:!0,appendData:a},t[nr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[Ce]={appendData:a},t[Nr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return Ai(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function up(r){var t,e;return U(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ba(r){return new cI(r)}var cI=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=u,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v1&&n>0?s:o}};return a;function o(){return t=r?null:ut},gte:function(r,t){return r>=t}},pI=function(){function r(t,e){if(!ht(e)){var n="";st(n)}this._opFn=$_[t],this._rvalFloat=Hr(e)}return r.prototype.evaluate=function(t){return ht(t)?this._opFn(t,this._rvalFloat):this._opFn(Hr(t),this._rvalFloat)},r}(),U_=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ht(t)?t:Hr(t),i=ht(e)?e:Hr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=H(t),u=H(e);s&&(n=u?t:0),u&&(i=s?e:0)}return ni?-this._resultLT:0},r}(),gI=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Hr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=Hr(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function yI(r,t){return r==="eq"||r==="ne"?new gI(r==="eq",t):vr($_,r)?new pI(r,t):null}var mI=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return ps(t,e)},r}();function _I(r,t){var e=new mI,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==tr&&st(o);var s=[],u={},l=r.dimensionsDefine;if(l)M(l,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";vr(u,y)&&st(_),u[y]=m}});else for(var f=0;f65535?MI:DI}function qn(){return[1/0,-1/0]}function II(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function hp(r,t,e,n,i){var a=Z_[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;lp[1]&&(p[1]=g)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=N(o,function(m){return m.property}),f=0;fy[1]&&(y[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=h&&m<=c||isNaN(m))&&(u[l++]=g),g++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],S=t[i[1]][0],b=t[i[1]][1],y=0;y=h&&m<=c||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(u[l++]=g),g++}d=!0}}if(!d)if(a===1)for(var y=0;y=h&&m<=c||isNaN(m))&&(u[l++]=w)}else for(var y=0;yt[A][1])&&(T=!1)}T&&(u[l++]=e.getRawIndex(y))}return ly[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(Yi(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;df&&(f=h,c=S)}D>0&&Df-d&&(u=f-d,s.length=u);for(var g=0;gh[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(!!this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();au&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,n,i,a){return ps(e[a],this._dimensions[a])}Ll={arrayRows:t,objectRows:function(e,n,i,a){return ps(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return ps(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}}(),r}(),q_=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(Ro(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=he(s)?Nr:Ce,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=j(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=j(h.sourceHeader,c.sourceHeader),g=j(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;i=p?[Jf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[Jf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&cp(a)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&cp(h),s.push(f),u.push(l._getVersionSign())}),n?o=CI(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[aI(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e1||e>0&&!r.noHeader;return A(r.blocks,function(i){var a=J_(i);a>=t&&(t=a+ +(n&&(!a||eh(i)&&!i.noHeader)))}),t}return 0}function RI(r,t,e,n){var i=t.noHeader,a=OI(J_(t)),o=[],s=t.blocks||[];be(!s||F(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(vr(l,u)){var f=new U_(l[u],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}A(s,function(d,g){var p=t.valueFormatter,y=Q_(d)(p?B(B({},r),{valueFormatter:p}):r,d,g>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):rh(o.join(""),i?e:a.html);if(i)return h;var c=jf(t.header,"ordinal",r.useUTC),v=j_(n,r.renderMode).nameStyle;return r.renderMode==="richText"?t1(r,c,v)+a.richText+h:rh('
'+se(c)+"
"+h,e)}function EI(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],N(S,function(b,x){return jf(b,F(v)?v[x]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":jf(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value),g=!s||!a,p=!s&&a,y=j_(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":t1(r,c,m))+(o?"":NI(r,d,g,p,_)):rh((s?"":h)+(a?"":kI(c,!s,m))+(o?"":BI(d,g,p,_)),e)}}function dp(r,t,e,n,i,a){if(!!r){var o=Q_(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function OI(r){return{html:LI[r],richText:PI[r]}}function rh(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function kI(r,t,e){var n=t?"margin-left:2px":"";return''+se(r)+""}function BI(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=F(r)?r:[r],''+N(r,function(o){return se(o)}).join("  ")+""}function t1(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function NI(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function FI(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Pn(n)}function e1(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Pl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=t0()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=bD({color:e,type:t,renderMode:n,markerId:i});return H(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?A(e,function(a){return B(n,a)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function zI(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=F(s),l=FI(t,e),f,h,c,v;if(o>1||u&&!o){var d=VI(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=Ci(i,e,a[0]),h=g.type}else v=f=u?s[0]:s;var p=ev(t),y=p&&t.name||"",m=i.getName(e),_=n?y:m;return Ga("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[Ga("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ze(_),value:f,valueType:h})].concat(c||[])})}function VI(r,t,e,n,i){var a=t.getData(),o=zr(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?A(n,function(h){f(Ci(a,e,h),h)}):A(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(Ga("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var xr=bt();function Eo(r,t){return r.getName(t)||r.getId(t)}var gs="__universalTransitionEnabled",Iu=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ba({count:HI,reset:WI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=xr(this).sourceManager=new q_(this);a.prepareSource();var o=this.getInitialData(e,i);gp(o,this),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,pp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=za(this),a=i?Mu(e):{},o=this.subType;_t.hasClass(o)&&(o+="Series"),tt(e,n.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),zf(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ti(e,a,i)},t.prototype.mergeOption=function(e,n){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=za(this);i&&Ti(this.option,e,i);var a=xr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);gp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,pp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!he(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=wv.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Eo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[gs])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return _t.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(_t);Ne(Iu,vI);Ne(Iu,wv);u0(Iu,_t);function pp(r){var t=r.name;ev(r)||(r.name=GI(r)||t)}function GI(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return A(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function HI(r){return r.model.getRawData().count()}function WI(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),$I}function $I(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gp(r,t){A($w(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,lt(UI,t))})}function UI(r,t){var e=nh(r);return e&&e.setOutputEnd((t||this).count()),t}function nh(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const rr=Iu;var Iv=function(){function r(){this.group=new Et,this.uid=io("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();nv(Iv);uu(Iv);const Te=Iv;function ao(){var r=bt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var r1=bt(),YI=ao(),Lv=function(){function r(){this.group=new Et,this.uid=io("viewChart"),this.renderTask=ba({plan:XI,reset:ZI}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||mp(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||mp(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){eo(this.group,t)},r.markUpdateMethod=function(t,e){r1(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function yp(r,t,e){r&&Yf(r)&&(t==="emphasis"?bi:wi)(r,e)}function mp(r,t,e){var n=In(r,t),i=t&&t.highlightKey!=null?oA(t.highlightKey):null;n!=null?A(Mt(n),function(a){yp(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){yp(a,e,i)})}nv(Lv);uu(Lv);function XI(r){return YI(r.model)}function ZI(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&r1(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,n,i),qI[u]}var qI={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const xe=Lv;var zs="\0__throttleOriginMethod",_p="\0__throttleRate",Sp="\0__throttleType";function Pv(r,t,e){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function n1(r,t,e,n){var i=r[t];if(!!i){var a=i[zs]||i,o=i[Sp],s=i[_p];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Pv(a,e,n==="debounce"),i[zs]=a,i[Sp]=n,i[_p]=e}return i}}function ih(r,t){var e=r[t];e&&e[zs]&&(e.clear&&e.clear(),r[t]=e[zs])}var xp=bt(),bp={itemStyle:Ea(l_,!0),lineStyle:Ea(u_,!0)},KI={lineStyle:"stroke",itemStyle:"fill"};function i1(r,t){var e=r.visualStyleMapper||bp[t];return e||(console.warn("Unkown style type '"+t+"'."),bp.itemStyle)}function a1(r,t){var e=r.visualDrawType||KI[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var jI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=i1(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=a1(r,n),l=o[u],f=q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=B({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},Yi=new Vt,QI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=i1(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Yi.option=u[n];var l=i(Yi),f=o.ensureUniqueItemVisual(s,"style");B(f,l),Yi.option.decal&&(o.setItemVisual(s,"decal",Yi.option.decal),Yi.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},JI={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),xp(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=xp(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=a1(e,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},Oo=Math.PI;function tL(r,t){t=t||{},J(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Et,n=new At({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new At({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new hv({shape:{startAngle:-Oo/2,endAngle:-Oo/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Oo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Oo*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var eL=function(){function r(t,e,n,i){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=K();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";be(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;A(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!u.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ba({plan:oL,reset:sL,count:lL}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||ba({reset:rL});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=K(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";be(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(c=!0,ba({reset:nL,onDirty:aL})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:fL(t)}),t.uid=io("stageHandler"),e&&(t.visualType=e),t},r}();function rL(r){r.overallReset(r.ecModel,r.api,r.payload)}function nL(r){return r.overallProgress&&iL}function iL(){this.agent.dirty(),this.getDownstream().dirty()}function aL(){this.agent&&this.agent.dirty()}function oL(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function sL(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?N(t,function(e,n){return o1(n)}):uL}var uL=o1(0);function o1(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ah=["symbol","symbolSize","symbolRotate","symbolOffset"],Mp=ah.concat(["symbolKeepAspect"]),dL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&wn(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function sh(r,t,e){for(var n=t.type==="radial"?OL(r,t,e):EL(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ht(r)?[r]:F(r)?r:null}function Rv(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&BL(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=N(e,function(a){return a/i}),n/=i)}return[e,n]}var NL=new er(!0);function Gs(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Ap(r){return typeof r=="string"&&r!=="none"}function Hs(r){var t=r.fill;return t!=null&&t!=="none"}function Dp(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Ip(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function uh(r,t,e){var n=iv(t.image,t.__image,e);if(lu(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*es),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function FL(r,t,e,n){var i,a=Gs(e),o=Hs(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||NL,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||g)&&(x=t.getBoundingRect()),d&&(m=h?sh(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?sh(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?uh(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?uh(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(i=Rv(t),T=i[0],C=i[1]);var M=!0;(l||h&ni)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,u?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(a&&Ip(r,e),o&&Dp(r,e)):(o&&Dp(r,e),a&&Ip(r,e))),T&&r.setLineDash([])}function zL(r,t,e){var n=t.__image=iv(e.image,t.__image,t,t.onload);if(!(!n||!lu(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(n,l,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(n,l,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function VL(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Fr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=Rv(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Gs(e)&&r.strokeText(i,e.x,e.y),Hs(e)&&r.fillText(i,e.x,e.y)):(Hs(e)&&r.fillText(i,e.x,e.y),Gs(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Lp=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function v1(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){ae(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?Cn.opacity:o}(n||t.blend!==e.blend)&&(a||(ae(r,i),a=!0),r.globalCompositeOperation=t.blend||Cn.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Wt]){if(this._disposed){this.id;return}var a,o,s;if(U(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wt]=!0,!this._model||n){var u=new qD(this._api),l=this._theme,f=this._model=new E_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},hh);var h={seriesTransition:s,optionChanged:!0};if(i)this[re]={silent:a,updateParams:h},this[Wt]=!1,this.getZr().wakeUp();else{try{jn(this),br.update.call(this,null,h)}catch(c){throw this[re]=null,this[Wt]=!1,c}this._ssr||this._zr.flush(),this[re]=null,this[Wt]=!1,Xi.call(this,a),Zi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||QL&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!nt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;A(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Yp[i]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();A(Ta,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(e)),x=_.getDom().getBoundingClientRect();u=a(x.left,u),l=a(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:b,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=kn.createCanvas(),y=Xc(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return A(c,function(_){var S=_.left-u,b=_.top-l;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new At({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new pr({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Bl(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Bl(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=ya(i,e);return A(o,function(s,u){u.indexOf("Models")>=0&&A(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=ya(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?gL(s,u,n):yL(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;A(c2,function(n){var i=function(a){var o=e.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&fa(s,function(d){var g=ft(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType)||{},!0}else if(g.eventData)return u=B({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),A(wa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),A(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),_L(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&a0(this.getDom(),kv,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ta[n.id]},t.prototype.resize=function(e){if(!this[Wt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[re]&&(a==null&&(a=this[re].silent),i=!0,this[re]=null),this[Wt]=!0;try{i&&jn(this),br.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Wt]=!1,o}this[Wt]=!1,Xi.call(this,a),Zi.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(U(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!vh[e]){var i=vh[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=wa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(U(n)||(n={silent:!!n}),!!Ws[e.type]&&!!this._model){if(this[Wt]){this._pendingActions.push(e);return}var i=n.silent;Fl.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&nt.browser.weChat&&this._throttledZrFlush(),Xi.call(this,i),Zi.call(this,i)}},t.prototype.updateLabelLayout=function(){Ee.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){jn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),kl(h,!0),kl(h,!1),c.plan()},kl=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!nt.node&&!nt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return u(g,v,d,-1/0),!0})}}function u(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(yi(y))return;if(y instanceof et&&sA(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&i(y)}})}$p=function(h){return new(function(c){G(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){bi(d,g),ve(h)},v.prototype.leaveEmphasis=function(d,g){wi(d,g),ve(h)},v.prototype.enterBlur=function(d){jM(d),ve(h)},v.prototype.leaveBlur=function(d){M0(d),ve(h)},v.prototype.enterSelect=function(d){A0(d),ve(h)},v.prototype.leaveSelect=function(d){D0(d),ve(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(O_))(h)},A1=function(h){function c(v,d){for(var g=0;g=0)){Xp.push(e);var a=l1.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function E1(r,t){vh[r]=t}function x2(r,t,e){var n=jL("registerMap");n&&n(r,t,e)}var b2=TI;Nn(Ev,jI);Nn(Lu,QI);Nn(Lu,JI);Nn(Ev,dL);Nn(Lu,pL);Nn(x1,ZL);P1(B_);R1(e2,nI);E1("default",tL);ir({type:Mn,event:Mn,update:Mn},Kt);ir({type:fs,event:fs,update:fs},Kt);ir({type:ma,event:ma,update:ma},Kt);ir({type:hs,event:hs,update:hs},Kt);ir({type:_a,event:_a,update:_a},Kt);L1("light",hL);L1("dark",vL);function qi(r){return r==null?0:r.length||1}function Zp(r){return r}var w2=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Zp,this._newKeyGetter=i||Zp,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var Ki=U,wr=N,L2=typeof Int32Array>"u"?Array:Int32Array,P2="e\0\0",qp=-1,R2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E2=["_approximateExtent"],Kp,zo,ji,Qi,Gl,Vo,Hl,O2=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;k1(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===Ce;if(u&&!i.pure)for(var l=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():Ki(a)&&(a=B({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ki(e)?B(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ki(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;GM(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:wr(this.dimensions,this._getDimInfo,this),this.hostModel)),Gl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!q(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Xh(arguments)))})},r.internalField=function(){Kp=function(t){var e=t._invertedIndicesMap;A(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new L2(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),i[e]=u}}}(),r}();const z1=O2;function V1(r,t){Cv(r)||(r=Mv(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=K(),a=[],o=B2(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&F1(o),u=n===r.dimensionsDefine,l=u?N1(r):B1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=K(f),c=new X_(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function B2(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return A(t,function(a){var o;U(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function N2(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var i=0;n.hasOwnProperty(r+i);)i++;r+=i}return t.set(r,!0),r}var F2=function(){function r(t){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=t}return r}();function z2(r){var t=r.get("coordinateSystem"),e=new F2(t),n=V2[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var V2={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",qt).models[0],a=r.getReferringComponents("yAxis",qt).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Qn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Qn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",qt).models[0];t.coordSysDims=["single"],e.set("single",i),Qn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",qt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Qn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Qn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Qn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Qn(r){return r.get("type")==="category"}function G2(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;H2(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(A(a,function(m,_){H(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;A(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function H2(r){return!k1(r.schema)}function Mi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function W2(r,t){return Mi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function $2(r,t){var e=r.get("coordinateSystem"),n=Tv.get(e),i;return t&&t.coordSysDims&&(i=N(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=ch(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function U2(r,t,e){var n,i;return e&&A(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Pu(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Mv(r)):(i=n.getSource(),a=i.sourceFormat===Ce);var o=z2(t),s=$2(t,o),u=e.useEncodeDefaulter,l=q(u)?u:u?lt(D_,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=V1(i,f),c=U2(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=G2(t,{schema:h,store:v}),g=new z1(h,t);g.setCalculationInfo(d);var p=c!=null&&Y2(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function Y2(r){if(r.sourceFormat===Ce){var t=X2(r.data||[]);return!F(Qa(t))}}function X2(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();uu(G1);const yr=G1;var Z2=0,q2=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Z2}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&N(n,K2);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!H(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function K2(r){return U(r)&&r.value!=null?r.value:r+""}const dh=q2;function ph(r){return r.type==="interval"||r.type==="log"}function j2(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=Jm(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=H1(o),u=i.niceTickExtent=[Rt(Math.ceil(r[0]/o)*o,s),Rt(Math.floor(r[1]/o)*o,s)];return Q2(u,r),i}function Wl(r){var t=Math.pow(10,tv(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Rt(e*t)}function H1(r){return fr(r)+2}function jp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Q2(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),jp(r,0,t),jp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ru(r,t){return r>=t[0]&&r<=t[1]}function Eu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ou(r,t){return r*(t[1]-t[0])+t[0]}var W1=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new dh({})),F(i)&&(i=new dh({categories:N(i,function(a){return U(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ru(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Eu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ou(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(yr);yr.registerClass(W1);const $1=W1;var cn=Rt,U1=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ru(e,this._extent)},t.prototype.normalize=function(e){return Eu(e,this._extent)},t.prototype.scale=function(e){return Ou(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=H1(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:cn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function Z1(r){var t=eP(r),e=[];return A(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=pt(n.get("barWidth"),s),g=pt(n.get("barMaxWidth"),s),p=pt(n.get("barMinWidth")||(K1(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:zv(a),stackId:Fv(n)})}),rP(e)}function rP(r){var t={};A(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=ut(a).length;s=Math.max(35-u*4,15)+"%"}var l=pt(s,o),f=pt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),A(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&mS&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;A(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function nP(r,t,e){if(r&&t){var n=r[zv(t)];return n!=null&&e!=null?n[Fv(e)]:n}}function iP(r,t){var e=X1(r,t),n=Z1(e);A(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=Fv(i),l=n[zv(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function aP(r){return{seriesType:r,plan:ao(),reset:function(t){if(!!q1(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),l=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Mi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=oP(i,a),d=K1(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Ke(b*3),w=d&&u&&Ke(b*3),T=d&&Ke(b),C=n.master.getRect(),M=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(h?p:o,D),R=I.get(s,D),E=v,V=void 0;h&&(V=+P-I.get(o,D));var O=void 0,k=void 0,z=void 0,W=void 0;if(c){var $=n.dataToPoint([P,R]);if(h){var Z=n.dataToPoint([V,R]);E=Z[0]}O=E,k=$[1]+m,z=$[0]-E,W=y,Math.abs(z)>>1;r[i][1]i&&(this._approxInterval=i);var s=Go.length,u=Math.min(sP(Go,this._approxInterval,0,s),s-1);this._interval=Go[u][1],this._minLevelUnit=Go[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return ht(e)?e:+cr(e)},t.prototype.contain=function(e){return Ru(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Eu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ou(e,this._extent)},t.type="time",t}(oo),Go=[["second",mv],["minute",_v],["hour",xa],["quarter-day",xa*6],["half-day",xa*12],["day",_e*1.2],["half-week",_e*3.5],["week",_e*7],["month",_e*31],["quarter",_e*95],["half-year",zd/2],["year",zd]];function uP(r,t,e,n){var i=cr(t),a=cr(e),o=function(d){return Gd(i,d,n)===Gd(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function lP(r,t){return r/=_e,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fP(r){var t=30*_e;return r/=t,r>6?6:r>3?3:r>2?2:1}function hP(r){return r/=xa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Qp(r,t){return r/=t?_v:mv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vP(r){return Jm(r,!0)}function cP(r,t,e){var n=new Date(r);switch(mi(t)){case"year":case"month":n[p_(e)](0);case"day":n[g_(e)](1);case"hour":n[y_(e)](0);case"minute":n[m_(e)](0);case"second":n[__(e)](0),n[S_(e)](0)}return n.getTime()}function dP(r,t,e,n){var i=1e4,a=c_,o=0;function s(M,D,I,L,P,R,E){for(var V=new Date(D),O=D,k=V[L]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||r===a[v]))break}f=[]}}}for(var S=Lt(N(l,function(M){return Lt(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v0;)a*=10;var s=[Rt(mP(n[0]/a)*a),Rt(yP(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ca.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Le(e)/Le(this.base),Ru(e,this._extent)},t.prototype.normalize=function(e){return e=Le(e)/Le(this.base),Eu(e,this._extent)},t.prototype.scale=function(e){return e=Ou(e,this._extent),Ho(this.base,e)},t.type="log",t}(yr),Q1=Vv.prototype;Q1.getMinorTicks=Ca.getMinorTicks;Q1.getLabel=Ca.getLabel;function Wo(r,t){return gP(r,fr(t))}yr.registerClass(Vv);const _P=Vv;var SP=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[bP[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=xP[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),xP={min:"_determinedMin",max:"_determinedMax"},bP={min:"_dataMin",max:"_dataMax"};function J1(r,t,e){var n=r.rawExtentInfo;return n||(n=new SP(r,t,e),r.rawExtentInfo=n,n)}function $o(r,t){return t==null?null:Ss(t)?NaN:r.parse(t)}function tS(r,t){var e=r.type,n=J1(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=X1("bar",o),u=!1;if(A(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=Z1(s),f=wP(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function wP(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=nP(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;A(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function tg(r,t){var e=t,n=tS(r,e),i=n.extent,a=e.get("splitNumber");r instanceof _P&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function TP(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new $1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new pP({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(yr.getClass(t)||oo)}}function CP(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function so(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):H(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):q(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Gv(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Gv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function MP(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof $1?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=so(r),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var IP=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),eg=[],LP={registerPreprocessor:P1,registerProcessor:R1,registerPostInit:y2,registerPostUpdate:m2,registerUpdateLifecycle:Bv,registerAction:ir,registerCoordinateSystem:_2,registerLayout:S2,registerVisual:Nn,registerTransform:b2,registerLoading:E1,registerMap:x2,registerImpl:KL,PRIORITY:f2,ComponentModel:_t,ComponentView:Te,SeriesModel:rr,ChartView:xe,registerComponentModel:function(r){_t.registerClass(r)},registerComponentView:function(r){Te.registerClass(r)},registerSeriesModel:function(r){rr.registerClass(r)},registerChartView:function(r){xe.registerClass(r)},registerSubTypeDefaulter:function(r,t){_t.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){mC(r,t)}};function le(r){if(F(r)){A(r,function(t){le(t)});return}at(eg,r)>=0||(eg.push(r),q(r)&&(r={install:r}),r.install(LP))}var Ua=bt();function PP(r){return r.type==="category"?EP(r):kP(r)}function RP(r,t){return r.type==="category"?OP(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function EP(r){var t=r.getLabelModel(),e=nS(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function nS(r,t){var e=iS(r,"labels"),n=Hv(t),i=aS(e,n);if(i)return i;var a,o;return q(n)?a=uS(r,n):(o=n==="auto"?BP(r):n,a=sS(r,o)),oS(e,n,{labels:a,labelCategoryInterval:o})}function OP(r,t){var e=iS(r,"ticks"),n=Hv(t),i=aS(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),q(n))a=uS(r,n,!0);else if(n==="auto"){var s=nS(r,r.getLabelModel());o=s.labelCategoryInterval,a=N(s.labels,function(u){return u.tickValue})}else o=n,a=sS(r,o,!0);return oS(e,n,{ticks:a,tickCategoryInterval:o})}function kP(r){var t=r.scale.getTicks(),e=so(r);return{labels:N(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function iS(r,t){return Ua(r)[t]||(Ua(r)[t]=[])}function aS(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,g=0,p=ou(e({value:u}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Ua(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function FP(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function sS(r,t,e){var n=so(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=eS(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function uS(r,t,e){var n=r.scale,i=so(r),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var rg=[0,1],zP=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return jm(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),ng(n,i.count())),Lr(t,rg,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),ng(n,i.count()));var a=Lr(t,n,rg,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=RP(this,e),i=n.ticks,a=N(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return VP(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=N(n,function(a){return N(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return PP(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return NP(this)},r}();function ng(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function VP(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;A(t,function(v){v.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Rt(v),d=Rt(d),h?v>d:vi&&(i+=Ji);var v=Math.atan2(s,o);if(v<0&&(v+=Ji),v>=n&&v<=i||v+Ji>=n&&v+Ji<=i)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(n)+r,g=e*Math.sin(n)+t,p=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function Us(r,t,e,n,i,a,o,s){var u=i-r,l=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function lS(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,u=t+n,l=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Oe=[];function UP(r,t,e){var n=lS(t.x,t.y,t.width,t.height,r.x,r.y,Oe);return e.set(Oe[0],Oe[1]),n}function YP(r,t,e){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,c=r.y,v=0;v0){t=t/180*Math.PI,Be.fromArray(r[0]),dt.fromArray(r[1]),Ct.fromArray(r[2]),X.sub(je,Be,dt),X.sub(Xe,Ct,dt);var e=je.len(),n=Xe.len();if(!(e<.001||n<.001)){je.scale(1/e),Xe.scale(1/n);var i=je.dot(Xe),a=Math.cos(t);if(a1&&X.copy(Zt,Ct),Zt.toArray(r[1])}}}}function XP(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Be.fromArray(r[0]),dt.fromArray(r[1]),Ct.fromArray(r[2]),X.sub(je,dt,Be),X.sub(Xe,Ct,dt);var n=je.len(),i=Xe.len();if(!(n<.001||i<.001)){je.scale(1/n),Xe.scale(1/i);var a=je.dot(t),o=Math.cos(e);if(a=u)X.copy(Zt,Ct);else{Zt.scaleAndAdd(Xe,s/Math.tan(Math.PI/2-f));var h=Ct.x!==dt.x?(Zt.x-dt.x)/(Ct.x-dt.x):(Zt.y-dt.y)/(Ct.y-dt.y);if(isNaN(h))return;h<0?X.copy(Zt,dt):h>1&&X.copy(Zt,Ct)}Zt.toArray(r[1])}}}}function ag(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function ZP(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=xf(n[0],n[1]),a=xf(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=rs([],n[1],n[0],o/i),u=rs([],n[1],n[2],o/a),l=rs([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&b(-f/o,0,o);var g=r[0],p=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=g.rect[t]-n,m=i-p.rect[t]-p.rect[e]}function S(T,C,M){if(T<0){var D=Math.min(C,-T);if(D>0){b(D*M,0,o);var I=D+T;I<0&&x(-I*M,1)}else x(-T*M,1)}}function b(T,C,M){T!==0&&(l=!0);for(var D=C;D0)for(var I=0;I0;I--){var E=M[I-1]*R;b(-E,I,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),D=0;D0?b(M,0,D+1):b(-M,o-D-1,o),T-=M,T<=0)return}return l}function qP(r,t,e,n){return dS(r,"x","width",t,e,n)}function pS(r,t,e,n){return dS(r,"y","height",t,e,n)}function gS(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ot(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),at(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Bt(n,l,e,u)}else if(n.attr(l),!Ri(n).valueAnimation){var h=j(n.style.opacity,1);n.style.opacity=0,Gt(n,{style:{opacity:h}},e,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};Uo(v,l,Yo),Uo(v,n.states.select,Yo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Uo(d,l,Yo),Uo(d,n.states.emphasis,Yo)}rD(n,u,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=QP(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Bt(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,Gt(i,{style:{strokePercent:1}},e)),a.oldLayout=g}},r}();const tR=JP;var Ul=bt();function eR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Ul(e).labelManager;i||(i=Ul(e).labelManager=new tR),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Ul(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var rR=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(_t);const nR=rR;var gh=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",qt).models[0]},t.type="cartesian2dAxis",t}(_t);Ne(gh,IP);var yS={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)"]}}},iR=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},yS),Wv=tt({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}}},yS),aR=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Wv),oR=J({logBase:10},Wv);const sR={category:iR,value:Wv,time:aR,log:oR};var uR={value:1,category:1,time:1,log:1};function sg(r,t,e,n){A(uR,function(i,a){var o=tt(tt({},sR[a],!0),n,!0),s=function(u){G(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=za(this),v=c?Mu(f):{},d=h.getTheme();tt(f,d.get(a+"Axis")),tt(f,this.getDefaultOption()),f.type=ug(f),c&&Ti(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=dh.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",ug)}function ug(r){return r.type||(r.data?"category":"value")}var lR=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return N(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Lt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const fR=lR;var yh=["x","y"];function lg(r){return r.type==="interval"||r.type==="time"}var hR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=yh,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!lg(e)||!lg(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=nu([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ot(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Se(i,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(e[0]),l=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return Se(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new ot(i,a,o,s)},t}(fR),vR=function(r){G(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(GP);const cR=vR;function mh(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ia(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function fg(r){return r.get("coordinateSystem")==="cartesian2d"}function hg(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,qt).models[0];t[n]=a}),t}var Yl=Math.log;function dR(r,t,e){var n=oo.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),u=tS(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var c=Yl(r.base);l=[Yl(l[0])/c,Yl(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(r),g=l[0],p=l[1];if(f&&h)d=(p-g)/o;else if(f)for(p=l[0]+d*o;pl[0]&&isFinite(g)&&isFinite(l[0]);)d=Wl(d),g=l[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Wl(d));var m=d*o;p=Math.ceil(l[1]/d)*d,g=Rt(p-m),g<0&&l[0]>=0?(g=0,p=Rt(m)):p>0&&l[1]<=0&&(p=0,g=-Rt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,g+d*_,p+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,g+d,p-d)}var pR=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yh,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=ut(o),l=u.length;if(!!l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;ph(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(tg(g,d),ph(g)&&(s=v))}f.length&&(s||(s=f.pop(),tg(s.scale,s.model)),A(f,function(p){dR(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){vg(n,"y",o,a)}),A(n.y,function(o){vg(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=$r(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(A(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=MP(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),A(this._coordsList,function(l){l.calcAffineTransform()});function u(){A(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),gR(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}U(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Is(i-Or)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),dg={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(Se(s,s,o),Se(u,u,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Ln({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ba(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);H(c)&&(c=[c,c]),(H(v)||ht(v))&&(v=[v,v]);var d=h1(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];A([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=Rn(c[m],-g/2,-p/2,g,p,f.stroke,!0),S=y.r+y.offset,b=l?u: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}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=SR(e,n,t,r),a=bR(e,n,t,r);if(_R(t,a,i),xR(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=cS(N(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));gS(o)}},axisName:function(r,t,e,n){var i=Ia(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,gg(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*Or/180);var d;gg(a)?c=An.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=mR(r.rotation,a,v||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=Ia(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Ft({x:h[0],y:h[1],rotation:c.rotation,silent:An.isLabelSilent(t),style:Wr(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(mu({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=An.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ft(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function mR(r,t,e,n){var i=Qm(e-r),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Is(i-Or/2)?(o=u?"bottom":"top",a="center"):Is(i-Or*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",iOr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _R(r,t,e){if(!eS(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(ce(a),ce(l)):pg(a,o)&&(n?(ce(o),ce(f)):(ce(a),ce(l))),i===!1?(ce(s),ce(h)):pg(u,s)&&(i?(ce(u),ce(c)):(ce(s),ce(h)))}}function ce(r){r&&(r.ignore=!0)}function pg(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=qh([]);return Kh(i,i,-r.rotation),e.applyTransform(pi([],i,r.getLocalTransform())),n.applyTransform(pi([],i,t.getLocalTransform())),e.intersect(n)}}function gg(r){return r==="middle"||r==="center"}function mS(r,t,e,n,i){for(var a=[],o=[],s=[],u=0;u=0||r===t}function DR(r){var t=$v(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=_h(e);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),os)return!0;if(o){var u=$v(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=Sn(t).pointerEl=new jA[a.type](_g(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=Sn(t).labelEl=new Ft(_g(e.label));t.add(a),xg(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=Sn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=Sn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),xg(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=yu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){bm(l.event)},onmousedown:ql(this._onHandleDragMove,this,0,0),drift:ql(this._onHandleDragMove,this),ondragend:ql(this._onHandleDragEnd,this)}),n.add(i)),bg(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");F(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,n1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Sg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Kl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Kl(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Kl(i)),Sn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ih(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function Sg(r,t,e,n){TS(Sn(e).lastProp,n)||(Sn(e).lastProp=n,t?Bt(e,n,r):(e.stopAnimation(),e.attr(n)))}function TS(r,t){if(U(r)&&U(t)){var e=!0;return A(t,function(n,i){e=e&&TS(r[i],n)}),!!e}else return r===t}function xg(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Kl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function bg(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const zR=FR;function VR(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function GR(r,t,e,n,i){var a=e.get("value"),o=CS(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Cu(s.get("padding")||0),l=s.getFont(),f=ou(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),HR(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Wr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function HR(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function CS(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Gv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(n,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),H(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function MS(r,t,e){var n=La();return Kh(n,n,e.rotation),Mf(n,n,e.position),pv([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function WR(r,t,e,n,i,a){var o=_S.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),GR(t,n,i,a,{position:MS(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function $R(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function UR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var YR=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=wg(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=VR(a),v=XR[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=mh(u.model,i);WR(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=mh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=MS(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=wg(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(zR);function wg(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var XR={line:function(r,t,e){var n=$R([t,e[0]],[t,e[1]],Tg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:UR([t-n/2,e[0]],[n,i],Tg(r))}}};function Tg(r){return r.dim==="x"?0:1}const ZR=YR;var qR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(_t);const KR=qR;var hr=bt(),jR=A;function AS(r,t,e){if(!nt.node){var n=t.getZr();hr(n).records||(hr(n).records={}),QR(n,t);var i=hr(n).records[r]||(hr(n).records[r]={});i.handler=e}}function QR(r,t){if(hr(r).initialized)return;hr(r).initialized=!0,e("click",lt(Cg,"click")),e("mousemove",lt(Cg,"mousemove")),e("globalout",tE);function e(n,i){r.on(n,function(a){var o=eE(t);jR(hr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),JR(o.pendings,t)})}}function JR(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function tE(r,t,e){r.handler("leave",null,e)}function Cg(r,t,e,n){t.handler(r,e,n)}function eE(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function xh(r,t){if(!nt.node){var e=t.getZr(),n=(hr(e).records||{})[r];n&&(hr(e).records[r]=null)}}var rE=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";AS("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,n){xh("axisPointer",n)},t.prototype.dispose=function(e,n){xh("axisPointer",n)},t.type="axisPointer",t}(Te);const nE=rE;function DS(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=In(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(g)||[]}else e=u.dataToPoint(a.getValues(N(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var Mg=bt();function iE(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||gt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ms(i)&&(i=DS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=ms(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||ms(i),c={},v={},d={list:[],map:{}},g={showPointer:lt(oE,v),showTooltip:lt(sE,d)};A(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=hE(l,S);if(!h&&_&&(!l||w)){var T=w&&w.value;T==null&&!u&&(T=x.pointToData(i)),T!=null&&Ag(S,T,g,!1,c)}})});var p={};return A(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&A(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Dg(S),Dg(y)))),p[y.key]=w}})}),A(p,function(y,m){Ag(f[m],y,g,!0,c)}),uE(v,f,c),lE(d,i,r,o),fE(f,o,e),c}}function Ag(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=aE(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function aE(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=h,a.length=0),A(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function oE(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function sE(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Ya(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function uE(r,t,e){var n=e.axesInfo=[];A(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function lE(r,t,e,n){if(ms(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function fE(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Mg(n)[i]||{},o=Mg(n)[i]={};A(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];A(a,function(l,f){!o[f]&&u.push(l)}),A(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function hE(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Dg(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function ms(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function IS(r){SS.registerAxisPointerClass("CartesianAxisPointer",ZR),r.registerComponentModel(KR),r.registerComponentView(nE),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=wR(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iE)}function vE(r){le(wS),le(IS)}var Ig="\0_ec_interaction_mutex";function cE(r,t,e){var n=LS(r);n[t]=e}function dE(r,t,e){var n=LS(r),i=n[t];i===e&&(n[t]=null)}function LS(r){return r[Ig]||(r[Ig]={})}ir({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Kt);var pE={axisPointer:1,tooltip:1,brush:1};function gE(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!pE.hasOwnProperty(n.mainType)&&i&&i.model!==e}function PS(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=Jn(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Jn(s,[0,o]),i=a=Jn(s,[i,a]),n=0}t[0]=Jn(t[0],e),t[1]=Jn(t[1],e);var u=jl(t,n);t[n]+=r;var l=i||0,f=e.slice();u.sign<0?f[0]+=l:f[1]-=l,t[n]=Jn(t[n],f);var h;return h=jl(t,n),i!=null&&(h.sign!==u.sign||h.spana&&(t[1-n]=t[n]+h.sign*a),t}function jl(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Jn(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var En=!0,Xa=Math.min,Ai=Math.max,yE=Math.pow,mE=1e4,_E=6,SE=6,Lg="globalPan",xE={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bE={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Pg={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},wE=0,TE=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Et,n._uid="brushController_"+wE++,A(PE,function(i,a){this._handlers[a]=gt(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||cE(n,Lg,this._uid),A(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=tt(Q(Pg),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;dE(e,Lg,this._uid),A(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};A(e,function(i){n[i.panelId]=Q(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=N(e,function(c){return tt(Q(Pg),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new $a(i,e,l,u).add(f).update(f).remove(h).execute(),this;function u(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function l(c,v){return u(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var g=a[c]=v!=null?(i[v].__brushOption=d,i[v]):ES(o,RS(o,d));Uv(o,g)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),bh(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Fe);function RS(r,t){var e=ku[t.brushType].createCover(r,t);return e.__brushOption=t,kS(e,t),r.group.add(e),e}function ES(r,t){var e=Yv(t);return e.endCreating&&(e.endCreating(r,t),kS(t,t.__brushOption)),t}function OS(r,t){var e=t.__brushOption;Yv(t).updateCoverShape(r,t,e.range,e)}function kS(r,t){var e=t.z;e==null&&(e=mE),r.traverse(function(n){n.z=e,n.z2=e})}function Uv(r,t){Yv(t).updateCommon(r,t),OS(r,t)}function Yv(r){return ku[r.__brushOption.brushType]}function Xv(r,t,e){var n=r._panels;if(!n)return En;var i,a=r._transform;return A(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function BS(r,t){var e=r._panels;if(!e)return En;var n=t.__brushOption.panelId;return n!=null?e[n]:En}function bh(r){var t=r._covers,e=t.length;return A(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function On(r,t){var e=N(r._covers,function(n){var i=n.__brushOption,a=Q(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function CE(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=yE(i*i+a*a,.5);return o>_E}function NS(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function FS(r,t,e,n){var i=new Et;return i.add(new At({name:"main",style:Zv(e),silent:!0,draggable:!0,cursor:"move",drift:lt(Rg,r,t,i,["n","s","w","e"]),ondragend:lt(On,t,{isEnd:!0})})),A(n,function(a){i.add(new At({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:lt(Rg,r,t,i,a),ondragend:lt(On,t,{isEnd:!0})}))}),i}function zS(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Ai(i,SE),o=e[0][0],s=e[1][0],u=o-i/2,l=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,g=h-s,p=d+i,y=g+i;ur(r,t,"main",o,s,d,g),n.transformable&&(ur(r,t,"w",u,l,a,y),ur(r,t,"e",c,l,a,y),ur(r,t,"n",u,l,p,a),ur(r,t,"s",u,v,p,a),ur(r,t,"nw",u,l,a,a),ur(r,t,"ne",c,l,a,a),ur(r,t,"sw",u,v,a,a),ur(r,t,"se",c,v,a,a))}function wh(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Zv(e)),i.attr({silent:!n,cursor:n?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Th(r,a[0]):AE(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?bE[s]+"-resize":null})})}function ur(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(IE(qv(r,t,[[n,i],[n+a,i+o]])))}function Zv(r){return J({strokeNoScale:!0},r.brushStyle)}function VS(r,t,e,n){var i=[Xa(r,e),Xa(t,n)],a=[Ai(r,e),Ai(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function ME(r){return dv(r.group)}function Th(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=n_(e[t],ME(r));return n[i]}function AE(r,t){var e=[Th(r,t[0]),Th(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Rg(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),u=GS(t,i,a);A(n,function(l){var f=xE[l];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(VS(s[0][0],s[1][0],s[0][1],s[1][1])),Uv(t,e),On(t,{isEnd:!1})}function DE(r,t,e,n){var i=t.__brushOption.range,a=GS(r,e,n);A(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Uv(r,t),On(r,{isEnd:!1})}function GS(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qv(r,t,e){var n=BS(r,t);return n&&n!==En?n.clipPath(e,r._transform):Q(e)}function IE(r){var t=Xa(r[0][0],r[1][0]),e=Xa(r[0][1],r[1][1]),n=Ai(r[0][0],r[1][0]),i=Ai(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function LE(r,t,e){if(!(!r._brushType||RE(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=Xv(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ku={lineX:kg(0),lineY:kg(1),rect:{createCover:function(r,t){function e(n){return n}return FS({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=NS(r);return VS(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){zS(r,t,e,n)},updateCommon:wh,contain:Mh},polygon:{createCover:function(r,t){var e=new Et;return e.add(new to({name:"main",style:Zv(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new du({name:"main",draggable:!0,drift:lt(DE,r,t),ondragend:lt(On,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:qv(r,t,e)})},updateCommon:wh,contain:Mh}};function kg(r){return{createCover:function(t,e){return FS({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=NS(t),n=Xa(e[0][r],e[1][r]),i=Ai(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=BS(t,e);if(o!==En&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,a];r&&u.reverse(),zS(t,e,u,i)},updateCommon:wh,contain:Mh}}const EE=TE;function OE(r){return r=Kv(r),function(t){return a_(t,r)}}function kE(r,t){return r=Kv(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function BE(r,t,e){var n=Kv(r);return function(i,a){return n.contain(a[0],a[1])&&!gE(i,t,e)}}function Kv(r){return ot.create(r)}var Bg=["x","y","radius","angle","single"],NE=["cartesian2d","polar","singleAxis"];function FE(r){var t=r.get("coordinateSystem");return at(NE,t)>=0}function vi(r){return r+"Axis"}function zE(r,t){var e=K(),n=[],i=K();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&u(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),l(f)}function u(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function l(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}var Ql=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),VE=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Ng(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Ng(e);tt(this.option,e,!0),tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=K(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return A(Bg,function(i){var a=this.getReferringComponents(vi(i),zC);if(!!a.specified){n=!0;var o=new Ql;A(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});u(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(l,f){var h=l[0];if(!!h){var c=new Ql;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",qt).models[0];v&&A(l,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",qt).models[0]&&c.add(d.componentIndex)})}}}a&&A(Bg,function(l){if(!!a){var f=i.findComponents({mainType:vi(l),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Ql;h.add(f[0].componentIndex),e.set(l,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,u=e[a[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(vi(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){A(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(vi(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;A([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;A(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!b)return!0;_&&(p=!0),S&&(d=!0),b&&(g=!0)}return p&&d&&g})}else ai(f,function(v){if(a==="empty")u.setData(l=l.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,l.selectRange(d)}});ai(f,function(v){l.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;ai(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Lr(n[0]+o,n,[0,100],!0):a!=null&&(o=Lr(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var i=jm(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function qE(r,t,e){var n=[1/0,-1/0];ai(e,function(o){DP(n,o.getData(),t)});var i=r.getAxisModel(),a=J1(i.axis.scale,i,n).calculate();return[a.min,a.max]}const KE=ZE;var jE={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var u=r.getComponent(vi(o),s);i(o,s,u,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new KE(i,a,s,r),e.push(o.__dzAxisProxy))});var n=K();return A(e,function(i){A(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const QE=jE;function JE(r){r.registerAction("dataZoom",function(t,e){var n=zE(e,t);A(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var zg=!1;function tO(r){zg||(zg=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,QE),JE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function eO(r){r.registerComponentModel(WE),r.registerComponentView(XE),tO(r)}var ke=function(){function r(){}return r}(),WS={};function ta(r,t){WS[r]=t}function $S(r){return WS[r]}var rO=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(n,i){var a=$S(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),tt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#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"}},t}(_t);const nO=rO;function iO(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=$r(n,a,i);Si(t.get("orient"),r,t.get("itemGap"),o.width,o.height),TD(r,n,a,i)}function US(r,t){var e=Cu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new At({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var aO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),u=e.get("orient")==="vertical",l=e.get("feature")||{},f=this._features||(this._features={}),h=[];A(l,function(d,g){h.push(g)}),new $a(this._featureNames||[],h).add(c).update(c).remove(lt(c,null)).execute(),this._featureNames=h;function c(d,g){var p=h[d],y=h[g],m=l[p],_=new Vt(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===p&&(m.title=a.newTitle),p&&!y){if(oO(p))S={onclick:_.option.onclick,featureName:p};else{var b=$S(p);if(!b)return;S=new b}f[p]=S}else if(S=f[y],!S)return;S.uid=io("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof ke;if(!p&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}v(_,S,p),_.setIconStatus=function(w,T){var C=this.option,M=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,M[w]&&(T==="emphasis"?bi:wi)(M[w])},S instanceof ke&&S.render&&S.render(_,n,i,a)}function v(d,g,p){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=g instanceof ke&&g.getIcons?g.getIcons():d.get("icon"),S=d.get("title")||{},b,x;H(_)?(b={},b[p]=_):b=_,H(S)?(x={},x[p]=S):x=S;var w=d.iconPaths={};A(b,function(T,C){var M=yu(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var I=new Ft({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),mu({el:M,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),M.__title=x[C],M.on("mouseover",function(){var L=m.getItemStyle(),P=u?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?bi:wi)(M),o.add(M),M.on("click",gt(g.onclick,g,n,i,C)),w[C]=M})}iO(o,e,i),o.add(US(o.getBoundingRect(),e)),u||o.eachChild(function(d){var g=d.__title,p=d.ensureState("emphasis"),y=p.textConfig||(p.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!q(_)&&g){var S=_.style||(_.style={}),b=ou(g,Ft.makeFont(S)),x=d.x+o.x,w=d.y+o.y+s,T=!1;w+b.height>i.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){A(this._features,function(o){o instanceof ke&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){A(this._features,function(i){i instanceof ke&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){A(this._features,function(i){i instanceof ke&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(Te);function oO(r){return r.indexOf("my")===0}const sO=aO;var uO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=nt.browser;if(q(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=u;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=u.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=d.length,y=new Uint8Array(p);p--;)y[p]=d.charCodeAt(p);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=i.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=a}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ke);const lO=uO;var Vg="__ec_magicType_stack__",fO=[["line","bar"],["stack"]],hO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return A(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(!!Gg[i]){var s={series:[]},u=function(h){var c=h.subType,v=h.id,d=Gg[i](c,v,h,a);d&&(J(d,h.option),s.series.push(d));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var y=p.dim,m=y+"Axis",_=h.getReferringComponents(m,qt).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=i==="bar"}}};A(fO,function(h){at(h,i)>=0&&A(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var l,f=i;i==="stack"&&(l=tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:l,featureName:"magicType"})}},t}(ke),Gg={line:function(r,t,e,n){if(r==="bar")return tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===Vg;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":Vg},n.get(["option","stack"])||{},!0)}};ir({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const vO=hO;var Bu=new Array(60).join("-"),Di=" ";function cO(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function dO(r){var t=[];return A(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(N(e.series,function(v){return v.name})),u=[i.model.getCategories()];A(e.series,function(v){var d=v.getRawData();u.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var l=[s.join(Di)],f=0;f1||e>0&&!r.noHeader;return M(r.blocks,function(i){var a=J_(i);a>=t&&(t=a+ +(n&&(!a||eh(i)&&!i.noHeader)))}),t}return 0}function RI(r,t,e,n){var i=t.noHeader,a=OI(J_(t)),o=[],s=t.blocks||[];be(!s||F(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(vr(l,u)){var f=new U_(l[u],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(d,g){var p=t.valueFormatter,y=Q_(d)(p?B(B({},r),{valueFormatter:p}):r,d,g>0?a.html:0,n);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):rh(o.join(""),i?e:a.html);if(i)return h;var c=jf(t.header,"ordinal",r.useUTC),v=j_(n,r.renderMode).nameStyle;return r.renderMode==="richText"?t1(r,c,v)+a.richText+h:rh('
'+se(c)+"
"+h,e)}function EI(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],N(S,function(b,x){return jf(b,F(v)?v[x]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":jf(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value),g=!s||!a,p=!s&&a,y=j_(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":t1(r,c,m))+(o?"":NI(r,d,g,p,_)):rh((s?"":h)+(a?"":kI(c,!s,m))+(o?"":BI(d,g,p,_)),e)}}function dp(r,t,e,n,i,a){if(!!r){var o=Q_(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function OI(r){return{html:LI[r],richText:PI[r]}}function rh(r,t){var e='
',n="margin: "+t+"px 0 0";return'
'+r+e+"
"}function kI(r,t,e){var n=t?"margin-left:2px":"";return''+se(r)+""}function BI(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=F(r)?r:[r],''+N(r,function(o){return se(o)}).join("  ")+""}function t1(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function NI(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function FI(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Rn(n)}function e1(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Pl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=t0()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=bD({color:e,type:t,renderMode:n,markerId:i});return H(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?M(e,function(a){return B(n,a)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r}();function zI(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=F(s),l=FI(t,e),f,h,c,v;if(o>1||u&&!o){var d=VI(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);v=f=Ai(i,e,a[0]),h=g.type}else v=f=u?s[0]:s;var p=ev(t),y=p&&t.name||"",m=i.getName(e),_=n?y:m;return Ga("section",{header:y,noHeader:n||!p,sortParam:v,blocks:[Ga("nameValue",{markerType:"item",markerColor:l,name:_,noName:!Ze(_),value:f,valueType:h})].concat(c||[])})}function VI(r,t,e,n,i){var a=t.getData(),o=zr(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?M(n,function(h){f(Ai(a,e,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(Ga("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var xr=bt();function Eo(r,t){return r.getName(t)||r.getId(t)}var gs="__universalTransitionEnabled",Iu=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ba({count:HI,reset:WI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=xr(this).sourceManager=new q_(this);a.prepareSource();var o=this.getInitialData(e,i);gp(o,this),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,pp(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=za(this),a=i?Au(e):{},o=this.subType;_t.hasClass(o)&&(o+="Series"),tt(e,n.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),zf(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&Ci(e,a,i)},t.prototype.mergeOption=function(e,n){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=za(this);i&&Ci(this.option,e,i);var a=xr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);gp(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,xr(this).dataBeforeProcessed=o,pp(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!he(e))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=wv.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,n){var i=this.option.selectedMap;if(!!i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Eo(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[gs])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f0&&this._innerSelect(e,n)}},t.registerClass=function(e){return _t.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(_t);Ne(Iu,vI);Ne(Iu,wv);u0(Iu,_t);function pp(r){var t=r.name;ev(r)||(r.name=GI(r)||t)}function GI(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function HI(r){return r.model.getRawData().count()}function WI(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),$I}function $I(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function gp(r,t){M($w(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,lt(UI,t))})}function UI(r,t){var e=nh(r);return e&&e.setOutputEnd((t||this).count()),t}function nh(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const rr=Iu;var Iv=function(){function r(){this.group=new Et,this.uid=io("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();nv(Iv);uu(Iv);const Te=Iv;function ao(){var r=bt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var r1=bt(),YI=ao(),Lv=function(){function r(){this.group=new Et,this.uid=io("viewChart"),this.renderTask=ba({plan:XI,reset:ZI}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||mp(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);!a||mp(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){eo(this.group,t)},r.markUpdateMethod=function(t,e){r1(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function yp(r,t,e){r&&Yf(r)&&(t==="emphasis"?wi:Ti)(r,e)}function mp(r,t,e){var n=Ln(r,t),i=t&&t.highlightKey!=null?oM(t.highlightKey):null;n!=null?M(Mt(n),function(a){yp(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){yp(a,e,i)})}nv(Lv);uu(Lv);function XI(r){return YI(r.model)}function ZI(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&r1(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,n,i),qI[u]}var qI={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const xe=Lv;var zs="\0__throttleOriginMethod",_p="\0__throttleRate",Sp="\0__throttleType";function Pv(r,t,e){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function n1(r,t,e,n){var i=r[t];if(!!i){var a=i[zs]||i,o=i[Sp],s=i[_p];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Pv(a,e,n==="debounce"),i[zs]=a,i[Sp]=n,i[_p]=e}return i}}function ih(r,t){var e=r[t];e&&e[zs]&&(e.clear&&e.clear(),r[t]=e[zs])}var xp=bt(),bp={itemStyle:Ea(l_,!0),lineStyle:Ea(u_,!0)},KI={lineStyle:"stroke",itemStyle:"fill"};function i1(r,t){var e=r.visualStyleMapper||bp[t];return e||(console.warn("Unkown style type '"+t+"'."),bp.itemStyle)}function a1(r,t){var e=r.visualDrawType||KI[t];return e||(console.warn("Unkown style type '"+t+"'."),"fill")}var jI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=i1(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=a1(r,n),l=o[u],f=q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var g=r.getDataParams(d),p=B({},o);p[u]=f(g),v.setItemVisual(d,"style",p)}}}},Xi=new Vt,QI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=i1(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Xi.option=u[n];var l=i(Xi),f=o.ensureUniqueItemVisual(s,"style");B(f,l),Xi.option.decal&&(o.setItemVisual(s,"decal",Xi.option.decal),Xi.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},JI={performRawSeries:!0,overallReset:function(r){var t=K();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),xp(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=xp(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=a1(e,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},Oo=Math.PI;function tL(r,t){t=t||{},J(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Et,n=new Dt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Ft({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Dt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new hv({shape:{startAngle:-Oo/2,endAngle:-Oo/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Oo*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Oo*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var eL=function(){function r(t,e,n,i){this._stageTaskMap=K(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(!!t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=K();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";be(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;M(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var g=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=!0)}else h&&h.each(function(p,y){s(i,p)&&p.dirty();var m=o.getPerformArgs(p,i.block);m.skip=!u.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=K(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ba({plan:oL,reset:sL,count:lL}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||ba({reset:rL});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=K(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";be(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,M(n.getSeries(),d));function d(g){var p=g.uid,y=u.set(p,s&&s.get(p)||(c=!0,ba({reset:nL,onDirty:aL})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:fL(t)}),t.uid=io("stageHandler"),e&&(t.visualType=e),t},r}();function rL(r){r.overallReset(r.ecModel,r.api,r.payload)}function nL(r){return r.overallProgress&&iL}function iL(){this.agent.dirty(),this.getDownstream().dirty()}function aL(){this.agent&&this.agent.dirty()}function oL(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function sL(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?N(t,function(e,n){return o1(n)}):uL}var uL=o1(0);function o1(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),ah=["symbol","symbolSize","symbolRotate","symbolOffset"],Ap=ah.concat(["symbolKeepAspect"]),dL={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&Tn(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function sh(r,t,e){for(var n=t.type==="radial"?OL(r,t,e):EL(r,t,e),i=t.colorStops,a=0;a0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:ht(r)?[r]:F(r)?r:null}function Rv(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&BL(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=N(e,function(a){return a/i}),n/=i)}return[e,n]}var NL=new er(!0);function Gs(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Mp(r){return typeof r=="string"&&r!=="none"}function Hs(r){var t=r.fill;return t!=null&&t!=="none"}function Dp(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Ip(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function uh(r,t,e){var n=iv(t.image,t.__image,e);if(lu(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*es),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function FL(r,t,e,n){var i,a=Gs(e),o=Hs(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||NL,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||g)&&(x=t.getBoundingRect()),d&&(m=h?sh(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?sh(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?uh(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?uh(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=!1),g?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(i=Rv(t),T=i[0],C=i[1]);var A=!0;(l||h&ii)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,u?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(a&&Ip(r,e),o&&Dp(r,e)):(o&&Dp(r,e),a&&Ip(r,e))),T&&r.setLineDash([])}function zL(r,t,e){var n=t.__image=iv(e.image,t.__image,t,t.onload);if(!(!n||!lu(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(n,l,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(n,l,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function VL(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||Fr,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=Rv(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Gs(e)&&r.strokeText(i,e.x,e.y),Hs(e)&&r.fillText(i,e.x,e.y)):(Hs(e)&&r.fillText(i,e.x,e.y),Gs(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var Lp=["shadowBlur","shadowOffsetX","shadowOffsetY"],Pp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function v1(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){ae(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?An.opacity:o}(n||t.blend!==e.blend)&&(a||(ae(r,i),a=!0),r.globalCompositeOperation=t.blend||An.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Wt]){if(this._disposed){this.id;return}var a,o,s;if(U(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Wt]=!0,!this._model||n){var u=new qD(this._api),l=this._theme,f=this._model=new E_;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},hh);var h={seriesTransition:s,optionChanged:!0};if(i)this[re]={silent:a,updateParams:h},this[Wt]=!1,this.getZr().wakeUp();else{try{jn(this),br.update.call(this,null,h)}catch(c){throw this[re]=null,this[Wt]=!1,c}this._ssr||this._zr.flush(),this[re]=null,this[Wt]=!1,Zi.call(this,a),qi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||QL&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(!!nt.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;M(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Yp[i]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(Ta,function(_,S){if(_.group===i){var b=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Q(e)),x=_.getDom().getBoundingClientRect();u=a(x.left,u),l=a(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:b,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,g=h-l,p=Bn.createCanvas(),y=Xc(p,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:g}),n){var m="";return M(c,function(_){var S=_.left-u,b=_.top-l;m+=''+_.dom+""}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new Dt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),M(c,function(_){var S=new pr({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return Bl(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return Bl(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=ya(i,e);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=ya(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?gL(s,u,n):yL(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(c2,function(n){var i=function(a){var o=e.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&fa(s,function(d){var g=ft(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return u=p&&p.getDataParams(g.dataIndex,g.dataType)||{},!0}else if(g.eventData)return u=B({},g.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),M(wa,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),_L(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&a0(this.getDom(),kv,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ta[n.id]},t.prototype.resize=function(e){if(!this[Wt]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[re]&&(a==null&&(a=this[re].silent),i=!0,this[re]=null),this[Wt]=!0;try{i&&jn(this),br.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Wt]=!1,o}this[Wt]=!1,Zi.call(this,a),qi.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(U(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!vh[e]){var i=vh[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=wa[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(U(n)||(n={silent:!!n}),!!Ws[e.type]&&!!this._model){if(this[Wt]){this._pendingActions.push(e);return}var i=n.silent;Fl.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&nt.browser.weChat&&this._throttledZrFlush(),Zi.call(this,i),qi.call(this,i)}},t.prototype.updateLabelLayout=function(){Ee.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){jn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),kl(h,!0),kl(h,!1),c.plan()},kl=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_c.get("hoverLayerThreshold")&&!nt.node&&!nt.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return u(g,v,d,-1/0),!0})}}function u(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(mi(y))return;if(y instanceof et&&sM(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&i(y)}})}$p=function(h){return new(function(c){G(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){wi(d,g),ve(h)},v.prototype.leaveEmphasis=function(d,g){Ti(d,g),ve(h)},v.prototype.enterBlur=function(d){jA(d),ve(h)},v.prototype.leaveBlur=function(d){A0(d),ve(h)},v.prototype.enterSelect=function(d){M0(d),ve(h)},v.prototype.leaveSelect=function(d){D0(d),ve(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(O_))(h)},M1=function(h){function c(v,d){for(var g=0;g=0)){Xp.push(e);var a=l1.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function E1(r,t){vh[r]=t}function x2(r,t,e){var n=jL("registerMap");n&&n(r,t,e)}var b2=TI;Fn(Ev,jI);Fn(Lu,QI);Fn(Lu,JI);Fn(Ev,dL);Fn(Lu,pL);Fn(x1,ZL);P1(B_);R1(e2,nI);E1("default",tL);ir({type:Mn,event:Mn,update:Mn},Kt);ir({type:fs,event:fs,update:fs},Kt);ir({type:ma,event:ma,update:ma},Kt);ir({type:hs,event:hs,update:hs},Kt);ir({type:_a,event:_a,update:_a},Kt);L1("light",hL);L1("dark",vL);function Ki(r){return r==null?0:r.length||1}function Zp(r){return r}var w2=function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||Zp,this._newKeyGetter=i||Zp,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v1)for(var s=0;s30}var ji=U,wr=N,L2=typeof Int32Array>"u"?Array:Int32Array,P2="e\0\0",qp=-1,R2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E2=["_approximateExtent"],Kp,zo,Qi,Ji,Gl,Vo,Hl,O2=function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;k1(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===Ce;if(u&&!i.pure)for(var l=[],f=t;f0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),F(a)?a=a.slice():ji(a)&&(a=B({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ji(e)?B(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){ji(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;GA(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:wr(this.dimensions,this._getDimInfo,this),this.hostModel)),Gl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];!q(n)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Xh(arguments)))})},r.internalField=function(){Kp=function(t){var e=t._invertedIndicesMap;M(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new L2(o.categories.length);for(var u=0;u1&&(u+="__ec__"+f),i[e]=u}}}(),r}();const z1=O2;function V1(r,t){Cv(r)||(r=Av(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=K(),a=[],o=B2(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&F1(o),u=n===r.dimensionsDefine,l=u?N1(r):B1(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=K(f),c=new X_(o),v=0;v0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function B2(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(a){var o;U(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function N2(r,t,e){var n=t.data;if(e||n.hasOwnProperty(r)){for(var i=0;n.hasOwnProperty(r+i);)i++;r+=i}return t.set(r,!0),r}var F2=function(){function r(t){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=t}return r}();function z2(r){var t=r.get("coordinateSystem"),e=new F2(t),n=V2[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var V2={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",qt).models[0],a=r.getReferringComponents("yAxis",qt).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Qn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Qn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",qt).models[0];t.coordSysDims=["single"],e.set("single",i),Qn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",qt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Qn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Qn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Qn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Qn(r){return r.get("type")==="category"}function G2(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;H2(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(M(a,function(m,_){H(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,g=0;M(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function H2(r){return!k1(r.schema)}function Mi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function W2(r,t){return Mi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function $2(r,t){var e=r.get("coordinateSystem"),n=Tv.get(e),i;return t&&t.coordSysDims&&(i=N(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=ch(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function U2(r,t,e){var n,i;return e&&M(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Pu(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Av(r)):(i=n.getSource(),a=i.sourceFormat===Ce);var o=z2(t),s=$2(t,o),u=e.useEncodeDefaulter,l=q(u)?u:u?lt(D_,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=V1(i,f),c=U2(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=G2(t,{schema:h,store:v}),g=new z1(h,t);g.setCalculationInfo(d);var p=c!=null&&Y2(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function Y2(r){if(r.sourceFormat===Ce){var t=X2(r.data||[]);return!F(Qa(t))}}function X2(r){for(var t=0;te[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();uu(G1);const yr=G1;var Z2=0,q2=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Z2}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&N(n,K2);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!H(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=K(this.categories))},r}();function K2(r){return U(r)&&r.value!=null?r.value:r+""}const dh=q2;function ph(r){return r.type==="interval"||r.type==="log"}function j2(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=Jm(a/t,!0);e!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=H1(o),u=i.niceTickExtent=[Rt(Math.ceil(r[0]/o)*o,s),Rt(Math.floor(r[1]/o)*o,s)];return Q2(u,r),i}function Wl(r){var t=Math.pow(10,tv(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Rt(e*t)}function H1(r){return fr(r)+2}function jp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Q2(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),jp(r,0,t),jp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ru(r,t){return r>=t[0]&&r<=t[1]}function Eu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Ou(r,t){return r*(t[1]-t[0])+t[0]}var W1=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new dh({})),F(i)&&(i=new dh({categories:N(i,function(a){return U(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:H(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ru(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Eu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Ou(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(yr);yr.registerClass(W1);const $1=W1;var dn=Rt,U1=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ru(e,this._extent)},t.prototype.normalize=function(e){return Eu(e,this._extent)},t.prototype.scale=function(e){return Ou(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=H1(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:dn(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&v0&&(a=a===null?s:Math.min(a,s))}e[n]=a}}return e}function Z1(r){var t=eP(r),e=[];return M(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=pt(n.get("barWidth"),s),g=pt(n.get("barMaxWidth"),s),p=pt(n.get("barMinWidth")||(K1(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:zv(a),stackId:Fv(n)})}),rP(e)}function rP(r){var t={};M(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=ut(a).length;s=Math.max(35-u*4,15)+"%"}var l=pt(s,o),f=pt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&mS&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;M(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;M(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function nP(r,t,e){if(r&&t){var n=r[zv(t)];return n!=null&&e!=null?n[Fv(e)]:n}}function iP(r,t){var e=X1(r,t),n=Z1(e);M(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=Fv(i),l=n[zv(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function aP(r){return{seriesType:r,plan:ao(),reset:function(t){if(!!q1(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),l=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Mi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=oP(i,a),d=K1(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Ke(b*3),w=d&&u&&Ke(b*3),T=d&&Ke(b),C=n.master.getRect(),A=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(h?p:o,D),R=I.get(s,D),E=v,V=void 0;h&&(V=+P-I.get(o,D));var O=void 0,k=void 0,z=void 0,W=void 0;if(c){var $=n.dataToPoint([P,R]);if(h){var Z=n.dataToPoint([V,R]);E=Z[0]}O=E,k=$[1]+m,z=$[0]-E,W=y,Math.abs(z)>>1;r[i][1]i&&(this._approxInterval=i);var s=Go.length,u=Math.min(sP(Go,this._approxInterval,0,s),s-1);this._interval=Go[u][1],this._minLevelUnit=Go[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return ht(e)?e:+cr(e)},t.prototype.contain=function(e){return Ru(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Eu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Ou(e,this._extent)},t.type="time",t}(oo),Go=[["second",mv],["minute",_v],["hour",xa],["quarter-day",xa*6],["half-day",xa*12],["day",_e*1.2],["half-week",_e*3.5],["week",_e*7],["month",_e*31],["quarter",_e*95],["half-year",zd/2],["year",zd]];function uP(r,t,e,n){var i=cr(t),a=cr(e),o=function(d){return Gd(i,d,n)===Gd(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function lP(r,t){return r/=_e,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fP(r){var t=30*_e;return r/=t,r>6?6:r>3?3:r>2?2:1}function hP(r){return r/=xa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Qp(r,t){return r/=t?_v:mv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function vP(r){return Jm(r,!0)}function cP(r,t,e){var n=new Date(r);switch(_i(t)){case"year":case"month":n[p_(e)](0);case"day":n[g_(e)](1);case"hour":n[y_(e)](0);case"minute":n[m_(e)](0);case"second":n[__(e)](0),n[S_(e)](0)}return n.getTime()}function dP(r,t,e,n){var i=1e4,a=c_,o=0;function s(A,D,I,L,P,R,E){for(var V=new Date(D),O=D,k=V[L]();O1&&R===0&&I.unshift({value:I[0].value-O})}}for(var R=0;R=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/t;if(h>_*1.5&&c>_/1.5||(l.push(p),h>_||r===a[v]))break}f=[]}}}for(var S=Pt(N(l,function(A){return Pt(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),b=[],x=S.length-1,v=0;v0;)a*=10;var s=[Rt(mP(n[0]/a)*a),Rt(yP(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Ca.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=Le(e)/Le(this.base),Ru(e,this._extent)},t.prototype.normalize=function(e){return e=Le(e)/Le(this.base),Eu(e,this._extent)},t.prototype.scale=function(e){return e=Ou(e,this._extent),Ho(this.base,e)},t.type="log",t}(yr),Q1=Vv.prototype;Q1.getMinorTicks=Ca.getMinorTicks;Q1.getLabel=Ca.getLabel;function Wo(r,t){return gP(r,fr(t))}yr.registerClass(Vv);const _P=Vv;var SP=function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[bP[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=xP[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),xP={min:"_determinedMin",max:"_determinedMax"},bP={min:"_dataMin",max:"_dataMax"};function J1(r,t,e){var n=r.rawExtentInfo;return n||(n=new SP(r,t,e),r.rawExtentInfo=n,n)}function $o(r,t){return t==null?null:Ss(t)?NaN:r.parse(t)}function tS(r,t){var e=r.type,n=J1(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=X1("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=Z1(s),f=wP(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function wP(r,t,e,n){var i=e.axis.getExtent(),a=i[1]-i[0],o=nP(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function tg(r,t){var e=t,n=tS(r,e),i=n.extent,a=e.get("splitNumber");r instanceof _P&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function TP(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new $1({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new pP({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(yr.getClass(t)||oo)}}function CP(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function so(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(t):H(t)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(t):q(t)?function(n){return function(i,a){return e!=null&&(a=i.value-e),n(Gv(r,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return r.scale.getLabel(n)}}function Gv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function AP(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof $1?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=so(r),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;fr[1]&&(r[1]=i[1])})}var IP=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),eg=[],LP={registerPreprocessor:P1,registerProcessor:R1,registerPostInit:y2,registerPostUpdate:m2,registerUpdateLifecycle:Bv,registerAction:ir,registerCoordinateSystem:_2,registerLayout:S2,registerVisual:Fn,registerTransform:b2,registerLoading:E1,registerMap:x2,registerImpl:KL,PRIORITY:f2,ComponentModel:_t,ComponentView:Te,SeriesModel:rr,ChartView:xe,registerComponentModel:function(r){_t.registerClass(r)},registerComponentView:function(r){Te.registerClass(r)},registerSeriesModel:function(r){rr.registerClass(r)},registerChartView:function(r){xe.registerClass(r)},registerSubTypeDefaulter:function(r,t){_t.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){mC(r,t)}};function le(r){if(F(r)){M(r,function(t){le(t)});return}at(eg,r)>=0||(eg.push(r),q(r)&&(r={install:r}),r.install(LP))}var Ua=bt();function PP(r){return r.type==="category"?EP(r):kP(r)}function RP(r,t){return r.type==="category"?OP(r,t):{ticks:N(r.scale.getTicks(),function(e){return e.value})}}function EP(r){var t=r.getLabelModel(),e=nS(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function nS(r,t){var e=iS(r,"labels"),n=Hv(t),i=aS(e,n);if(i)return i;var a,o;return q(n)?a=uS(r,n):(o=n==="auto"?BP(r):n,a=sS(r,o)),oS(e,n,{labels:a,labelCategoryInterval:o})}function OP(r,t){var e=iS(r,"ticks"),n=Hv(t),i=aS(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),q(n))a=uS(r,n,!0);else if(n==="auto"){var s=nS(r,r.getLabelModel());o=s.labelCategoryInterval,a=N(s.labels,function(u){return u.tickValue})}else o=n,a=sS(r,o,!0);return oS(e,n,{ticks:a,tickCategoryInterval:o})}function kP(r){var t=r.scale.getTicks(),e=so(r);return{labels:N(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function iS(r,t){return Ua(r)[t]||(Ua(r)[t]=[])}function aS(r,t){for(var e=0;e40&&(s=Math.max(1,Math.floor(o/40)));for(var u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,g=0,p=ou(e({value:u}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Ua(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function FP(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function sS(r,t,e){var n=so(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=eS(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&g(a[0]);for(var d=l;d<=a[1];d+=u)g(d);v&&d-u!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:p})}return s}function uS(r,t,e){var n=r.scale,i=so(r),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var rg=[0,1],zP=function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return jm(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),ng(n,i.count())),Lr(t,rg,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),ng(n,i.count()));var a=Lr(t,n,rg,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=RP(this,e),i=n.ticks,a=N(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return VP(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=N(n,function(a){return N(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return PP(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return NP(this)},r}();function ng(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function VP(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;M(t,function(v){v.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Rt(v),d=Rt(d),h?v>d:vi&&(i+=ta);var v=Math.atan2(s,o);if(v<0&&(v+=ta),v>=n&&v<=i||v+ta>=n&&v+ta<=i)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(n)+r,g=e*Math.sin(n)+t,p=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(g-s)*(g-s),_=(p-o)*(p-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=g,Math.sqrt(m)):(u[0]=p,u[1]=y,Math.sqrt(_))}function Us(r,t,e,n,i,a,o,s){var u=i-r,l=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-i)*(g-i)+(p-a)*(p-a))}function lS(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,u=t+n,l=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Oe=[];function UP(r,t,e){var n=lS(t.x,t.y,t.width,t.height,r.x,r.y,Oe);return e.set(Oe[0],Oe[1]),n}function YP(r,t,e){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,c=r.y,v=0;v0){t=t/180*Math.PI,Be.fromArray(r[0]),dt.fromArray(r[1]),At.fromArray(r[2]),X.sub(je,Be,dt),X.sub(Xe,At,dt);var e=je.len(),n=Xe.len();if(!(e<.001||n<.001)){je.scale(1/e),Xe.scale(1/n);var i=je.dot(Xe),a=Math.cos(t);if(a1&&X.copy(Zt,At),Zt.toArray(r[1])}}}}function XP(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Be.fromArray(r[0]),dt.fromArray(r[1]),At.fromArray(r[2]),X.sub(je,dt,Be),X.sub(Xe,At,dt);var n=je.len(),i=Xe.len();if(!(n<.001||i<.001)){je.scale(1/n),Xe.scale(1/i);var a=je.dot(t),o=Math.cos(e);if(a=u)X.copy(Zt,At);else{Zt.scaleAndAdd(Xe,s/Math.tan(Math.PI/2-f));var h=At.x!==dt.x?(Zt.x-dt.x)/(At.x-dt.x):(Zt.y-dt.y)/(At.y-dt.y);if(isNaN(h))return;h<0?X.copy(Zt,dt):h>1&&X.copy(Zt,At)}Zt.toArray(r[1])}}}}function ag(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function ZP(r,t){var e=t.smooth,n=t.points;if(!!n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=xf(n[0],n[1]),a=xf(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*e,s=rs([],n[1],n[0],o/i),u=rs([],n[1],n[2],o/a),l=rs([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[1],n[2][0],n[2][1])}else for(var f=1;f0&&a&&b(-f/o,0,o);var g=r[0],p=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&w(-y),m<0&&w(m);function _(){y=g.rect[t]-n,m=i-p.rect[t]-p.rect[e]}function S(T,C,A){if(T<0){var D=Math.min(C,-T);if(D>0){b(D*A,0,o);var I=D+T;I<0&&x(-I*A,1)}else x(-T*A,1)}}function b(T,C,A){T!==0&&(l=!0);for(var D=C;D0)for(var I=0;I0;I--){var E=A[I-1]*R;b(-E,I,o)}}}function w(T){var C=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),D=0;D0?b(A,0,D+1):b(-A,o-D-1,o),T-=A,T<=0)return}return l}function qP(r,t,e,n){return dS(r,"x","width",t,e,n)}function pS(r,t,e,n){return dS(r,"y","height",t,e,n)}function gS(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ot(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),at(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Bt(n,l,e,u)}else if(n.attr(l),!Ei(n).valueAnimation){var h=j(n.style.opacity,1);n.style.opacity=0,Gt(n,{style:{opacity:h}},e,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};Uo(v,l,Yo),Uo(v,n.states.select,Yo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Uo(d,l,Yo),Uo(d,n.states.emphasis,Yo)}rD(n,u,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=QP(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Bt(i,{shape:g},e)):(i.setShape(g),i.style.strokePercent=0,Gt(i,{style:{strokePercent:1}},e)),a.oldLayout=g}},r}();const tR=JP;var Ul=bt();function eR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Ul(e).labelManager;i||(i=Ul(e).labelManager=new tR),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Ul(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var rR=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(_t);const nR=rR;var gh=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",qt).models[0]},t.type="cartesian2dAxis",t}(_t);Ne(gh,IP);var yS={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)"]}}},iR=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},yS),Wv=tt({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}}},yS),aR=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Wv),oR=J({logBase:10},Wv);const sR={category:iR,value:Wv,time:aR,log:oR};var uR={value:1,category:1,time:1,log:1};function sg(r,t,e,n){M(uR,function(i,a){var o=tt(tt({},sR[a],!0),n,!0),s=function(u){G(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=za(this),v=c?Au(f):{},d=h.getTheme();tt(f,d.get(a+"Axis")),tt(f,this.getDefaultOption()),f.type=ug(f),c&&Ci(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=dh.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",ug)}function ug(r){return r.type||(r.data?"category":"value")}var lR=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return N(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Pt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}();const fR=lR;var yh=["x","y"];function lg(r){return r.type==="interval"||r.type==="time"}var hR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=yh,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!lg(e)||!lg(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=nu([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new ot(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Se(i,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(e[0]),l=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return Se(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),a=Math.min(n[0],n[1]),o=Math.max(e[0],e[1])-i,s=Math.max(n[0],n[1])-a;return new ot(i,a,o,s)},t}(fR),vR=function(r){G(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(GP);const cR=vR;function mh(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Ia(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function fg(r){return r.get("coordinateSystem")==="cartesian2d"}function hg(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,qt).models[0];t[n]=a}),t}var Yl=Math.log;function dR(r,t,e){var n=oo.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),u=tS(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var c=Yl(r.base);l=[Yl(l[0])/c,Yl(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(r),g=l[0],p=l[1];if(f&&h)d=(p-g)/o;else if(f)for(p=l[0]+d*o;pl[0]&&isFinite(g)&&isFinite(l[0]);)d=Wl(d),g=l[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=Wl(d));var m=d*o;p=Math.ceil(l[1]/d)*d,g=Rt(p-m),g<0&&l[0]>=0?(g=0,p=Rt(m)):p>0&&l[1]<=0&&(p=0,g=-Rt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,g+d*_,p+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,g+d,p-d)}var pR=function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=yh,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=ut(o),l=u.length;if(!!l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,g=v.scale;ph(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(tg(g,d),ph(g)&&(s=v))}f.length&&(s||(s=f.pop(),tg(s.scale,s.model)),M(f,function(p){dR(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){vg(n,"y",o,a)}),M(n.y,function(o){vg(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=$r(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(M(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=AP(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),M(this._coordsList,function(l){l.calcAffineTransform()});function u(){M(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),gR(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}U(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):Is(i-Or)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),dg={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(Se(s,s,o),Se(u,u,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Pn({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ba(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);H(c)&&(c=[c,c]),(H(v)||ht(v))&&(v=[v,v]);var d=h1(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=En(c[m],-g/2,-p/2,g,p,f.stroke,!0),S=y.r+y.offset,b=l?u: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}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=SR(e,n,t,r),a=bR(e,n,t,r);if(_R(t,a,i),xR(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=cS(N(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));gS(o)}},axisName:function(r,t,e,n){var i=Ia(r.axisName,t.get("name"));if(!!i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,gg(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*Or/180);var d;gg(a)?c=Dn.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=mR(r.rotation,a,v||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},y=p.ellipsis,m=Ia(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Ft({x:h[0],y:h[1],rotation:c.rotation,silent:Dn.isLabelSilent(t),style:Wr(s,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(mu({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=Dn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,ft(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function mR(r,t,e,n){var i=Qm(e-r),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return Is(i-Or/2)?(o=u?"bottom":"top",a="center"):Is(i-Or*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",iOr/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function _R(r,t,e){if(!eS(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(ce(a),ce(l)):pg(a,o)&&(n?(ce(o),ce(f)):(ce(a),ce(l))),i===!1?(ce(s),ce(h)):pg(u,s)&&(i?(ce(u),ce(c)):(ce(s),ce(h)))}}function ce(r){r&&(r.ignore=!0)}function pg(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=qh([]);return Kh(i,i,-r.rotation),e.applyTransform(gi([],i,r.getLocalTransform())),n.applyTransform(gi([],i,t.getLocalTransform())),e.intersect(n)}}function gg(r){return r==="middle"||r==="center"}function mS(r,t,e,n,i){for(var a=[],o=[],s=[],u=0;u=0||r===t}function DR(r){var t=$v(r);if(!!t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=_h(e);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),os)return!0;if(o){var u=$v(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=xn(t).pointerEl=new jM[a.type](_g(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=xn(t).labelEl=new Ft(_g(e.label));t.add(a),xg(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=xn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=xn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),xg(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=yu(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){bm(l.event)},onmousedown:ql(this._onHandleDragMove,this,0,0),drift:ql(this._onHandleDragMove,this),ondragend:ql(this._onHandleDragEnd,this)}),n.add(i)),bg(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");F(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,n1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Sg(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Kl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(!!n){this._dragging=!0;var i=this.updateHandleTransform(Kl(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Kl(i)),xn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(!!t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(!!t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),ih(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r}();function Sg(r,t,e,n){TS(xn(e).lastProp,n)||(xn(e).lastProp=n,t?Bt(e,n,r):(e.stopAnimation(),e.attr(n)))}function TS(r,t){if(U(r)&&U(t)){var e=!0;return M(t,function(n,i){e=e&&TS(r[i],n)}),!!e}else return r===t}function xg(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Kl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function bg(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}const zR=FR;function VR(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function GR(r,t,e,n,i){var a=e.get("value"),o=CS(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=Cu(s.get("padding")||0),l=s.getFont(),f=ou(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=i.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),HR(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Wr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:p}),z2:10}}function HR(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function CS(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Gv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),H(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function AS(r,t,e){var n=La();return Kh(n,n,e.rotation),Af(n,n,e.position),pv([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function WR(r,t,e,n,i,a){var o=_S.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),GR(t,n,i,a,{position:AS(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function $R(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function UR(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var YR=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=wg(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=VR(a),v=XR[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=mh(u.model,i);WR(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=mh(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=AS(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=wg(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(zR);function wg(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var XR={line:function(r,t,e){var n=$R([t,e[0]],[t,e[1]],Tg(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:UR([t-n/2,e[0]],[n,i],Tg(r))}}};function Tg(r){return r.dim==="x"?0:1}const ZR=YR;var qR=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(_t);const KR=qR;var hr=bt(),jR=M;function MS(r,t,e){if(!nt.node){var n=t.getZr();hr(n).records||(hr(n).records={}),QR(n,t);var i=hr(n).records[r]||(hr(n).records[r]={});i.handler=e}}function QR(r,t){if(hr(r).initialized)return;hr(r).initialized=!0,e("click",lt(Cg,"click")),e("mousemove",lt(Cg,"mousemove")),e("globalout",tE);function e(n,i){r.on(n,function(a){var o=eE(t);jR(hr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),JR(o.pendings,t)})}}function JR(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function tE(r,t,e){r.handler("leave",null,e)}function Cg(r,t,e,n){t.handler(r,e,n)}function eE(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function xh(r,t){if(!nt.node){var e=t.getZr(),n=(hr(e).records||{})[r];n&&(hr(e).records[r]=null)}}var rE=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";MS("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,n){xh("axisPointer",n)},t.prototype.dispose=function(e,n){xh("axisPointer",n)},t.type="axisPointer",t}(Te);const nE=rE;function DS(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Ln(a,r);if(o==null||o<0||F(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(g)||[]}else e=u.dataToPoint(a.getValues(N(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var Ag=bt();function iE(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||gt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(!!s){ms(i)&&(i=DS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=ms(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||ms(i),c={},v={},d={list:[],map:{}},g={showPointer:lt(oE,v),showTooltip:lt(sE,d)};M(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);M(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=hE(l,S);if(!h&&_&&(!l||w)){var T=w&&w.value;T==null&&!u&&(T=x.pointToData(i)),T!=null&&Mg(S,T,g,!1,c)}})});var p={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Dg(S),Dg(y)))),p[y.key]=w}})}),M(p,function(y,m){Mg(f[m],y,g,!0,c)}),uE(v,f,c),lE(d,i,r,o),fE(f,o,e),c}}function Mg(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=aE(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function aE(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g=0&&s<0)&&(o=g,s=d,i=h,a.length=0),M(c,function(p){a.push({seriesIndex:u.seriesIndex,dataIndexInside:p,dataIndex:u.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function oE(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function sE(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Ya(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function uE(r,t,e){var n=e.axesInfo=[];M(t,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function lE(r,t,e,n){if(ms(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function fE(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=Ag(n)[i]||{},o=Ag(n)[i]={};M(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(a,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function hE(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Dg(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function ms(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function IS(r){SS.registerAxisPointerClass("CartesianAxisPointer",ZR),r.registerComponentModel(KR),r.registerComponentView(nE),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!F(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=wR(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},iE)}function vE(r){le(wS),le(IS)}var Ig="\0_ec_interaction_mutex";function cE(r,t,e){var n=LS(r);n[t]=e}function dE(r,t,e){var n=LS(r),i=n[t];i===e&&(n[t]=null)}function LS(r){return r[Ig]||(r[Ig]={})}ir({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Kt);var pE={axisPointer:1,tooltip:1,brush:1};function gE(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!pE.hasOwnProperty(n.mainType)&&i&&i.model!==e}function PS(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=Jn(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Jn(s,[0,o]),i=a=Jn(s,[i,a]),n=0}t[0]=Jn(t[0],e),t[1]=Jn(t[1],e);var u=jl(t,n);t[n]+=r;var l=i||0,f=e.slice();u.sign<0?f[0]+=l:f[1]-=l,t[n]=Jn(t[n],f);var h;return h=jl(t,n),i!=null&&(h.sign!==u.sign||h.spana&&(t[1-n]=t[n]+h.sign*a),t}function jl(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Jn(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var On=!0,Xa=Math.min,Di=Math.max,yE=Math.pow,mE=1e4,_E=6,SE=6,Lg="globalPan",xE={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},bE={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Pg={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},wE=0,TE=function(r){G(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Et,n._uid="brushController_"+wE++,M(PE,function(i,a){this._handlers[a]=gt(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||cE(n,Lg,this._uid),M(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=tt(Q(Pg),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;dE(e,Lg,this._uid),M(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(i){n[i.panelId]=Q(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=N(e,function(c){return tt(Q(Pg),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new $a(i,e,l,u).add(f).update(f).remove(h).execute(),this;function u(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function l(c,v){return u(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var g=a[c]=v!=null?(i[v].__brushOption=d,i[v]):ES(o,RS(o,d));Uv(o,g)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),bh(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Fe);function RS(r,t){var e=ku[t.brushType].createCover(r,t);return e.__brushOption=t,kS(e,t),r.group.add(e),e}function ES(r,t){var e=Yv(t);return e.endCreating&&(e.endCreating(r,t),kS(t,t.__brushOption)),t}function OS(r,t){var e=t.__brushOption;Yv(t).updateCoverShape(r,t,e.range,e)}function kS(r,t){var e=t.z;e==null&&(e=mE),r.traverse(function(n){n.z=e,n.z2=e})}function Uv(r,t){Yv(t).updateCommon(r,t),OS(r,t)}function Yv(r){return ku[r.__brushOption.brushType]}function Xv(r,t,e){var n=r._panels;if(!n)return On;var i,a=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function BS(r,t){var e=r._panels;if(!e)return On;var n=t.__brushOption.panelId;return n!=null?e[n]:On}function bh(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function kn(r,t){var e=N(r._covers,function(n){var i=n.__brushOption,a=Q(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function CE(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=yE(i*i+a*a,.5);return o>_E}function NS(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function FS(r,t,e,n){var i=new Et;return i.add(new Dt({name:"main",style:Zv(e),silent:!0,draggable:!0,cursor:"move",drift:lt(Rg,r,t,i,["n","s","w","e"]),ondragend:lt(kn,t,{isEnd:!0})})),M(n,function(a){i.add(new Dt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:lt(Rg,r,t,i,a),ondragend:lt(kn,t,{isEnd:!0})}))}),i}function zS(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=Di(i,SE),o=e[0][0],s=e[1][0],u=o-i/2,l=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,g=h-s,p=d+i,y=g+i;ur(r,t,"main",o,s,d,g),n.transformable&&(ur(r,t,"w",u,l,a,y),ur(r,t,"e",c,l,a,y),ur(r,t,"n",u,l,p,a),ur(r,t,"s",u,v,p,a),ur(r,t,"nw",u,l,a,a),ur(r,t,"ne",c,l,a,a),ur(r,t,"sw",u,v,a,a),ur(r,t,"se",c,v,a,a))}function wh(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(Zv(e)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Th(r,a[0]):ME(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?bE[s]+"-resize":null})})}function ur(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(IE(qv(r,t,[[n,i],[n+a,i+o]])))}function Zv(r){return J({strokeNoScale:!0},r.brushStyle)}function VS(r,t,e,n){var i=[Xa(r,e),Xa(t,n)],a=[Di(r,e),Di(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function AE(r){return dv(r.group)}function Th(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=n_(e[t],AE(r));return n[i]}function ME(r,t){var e=[Th(r,t[0]),Th(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Rg(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),u=GS(t,i,a);M(n,function(l){var f=xE[l];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(VS(s[0][0],s[1][0],s[0][1],s[1][1])),Uv(t,e),kn(t,{isEnd:!1})}function DE(r,t,e,n){var i=t.__brushOption.range,a=GS(r,e,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Uv(r,t),kn(r,{isEnd:!1})}function GS(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function qv(r,t,e){var n=BS(r,t);return n&&n!==On?n.clipPath(e,r._transform):Q(e)}function IE(r){var t=Xa(r[0][0],r[1][0]),e=Xa(r[0][1],r[1][1]),n=Di(r[0][0],r[1][0]),i=Di(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function LE(r,t,e){if(!(!r._brushType||RE(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=Xv(r,t,e);if(!r._dragging)for(var o=0;on.getWidth()||e<0||e>n.getHeight()}var ku={lineX:kg(0),lineY:kg(1),rect:{createCover:function(r,t){function e(n){return n}return FS({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=NS(r);return VS(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){zS(r,t,e,n)},updateCommon:wh,contain:Ah},polygon:{createCover:function(r,t){var e=new Et;return e.add(new to({name:"main",style:Zv(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new du({name:"main",draggable:!0,drift:lt(DE,r,t),ondragend:lt(kn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:qv(r,t,e)})},updateCommon:wh,contain:Ah}};function kg(r){return{createCover:function(t,e){return FS({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=NS(t),n=Xa(e[0][r],e[1][r]),i=Di(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=BS(t,e);if(o!==On&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,a];r&&u.reverse(),zS(t,e,u,i)},updateCommon:wh,contain:Ah}}const EE=TE;function OE(r){return r=Kv(r),function(t){return a_(t,r)}}function kE(r,t){return r=Kv(r),function(e){var n=t!=null?t:e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function BE(r,t,e){var n=Kv(r);return function(i,a){return n.contain(a[0],a[1])&&!gE(i,t,e)}}function Kv(r){return ot.create(r)}var Bg=["x","y","radius","angle","single"],NE=["cartesian2d","polar","singleAxis"];function FE(r){var t=r.get("coordinateSystem");return at(NE,t)>=0}function ci(r){return r+"Axis"}function zE(r,t){var e=K(),n=[],i=K();r.eachComponent({mainType:"dataZoom",query:t},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&u(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),l(f)}function u(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function l(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}var Ql=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),VE=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Ng(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Ng(e);tt(this.option,e,!0),tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=K(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(Bg,function(i){var a=this.getReferringComponents(ci(i),zC);if(!!a.specified){n=!0;var o=new Ql;M(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});u(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(l,f){var h=l[0];if(!!h){var c=new Ql;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",qt).models[0];v&&M(l,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",qt).models[0]&&c.add(d.componentIndex)})}}}a&&M(Bg,function(l){if(!!a){var f=i.findComponents({mainType:ci(l),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Ql;h.add(f[0].componentIndex),e.set(l,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,u=e[a[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(ci(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(ci(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(_&&!S&&!b)return!0;_&&(p=!0),S&&(d=!0),b&&(g=!0)}return p&&d&&g})}else oi(f,function(v){if(a==="empty")u.setData(l=l.map(v,function(g){return s(g)?g:NaN}));else{var d={};d[v]=o,l.selectRange(d)}});oi(f,function(v){l.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;oi(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Lr(n[0]+o,n,[0,100],!0):a!=null&&(o=Lr(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(!!e){var i=jm(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function qE(r,t,e){var n=[1/0,-1/0];oi(e,function(o){DP(n,o.getData(),t)});var i=r.getAxisModel(),a=J1(i.axis.scale,i,n).calculate();return[a.min,a.max]}const KE=ZE;var jE={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var u=r.getComponent(ci(o),s);i(o,s,u,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new KE(i,a,s,r),e.push(o.__dzAxisProxy))});var n=K();return M(e,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const QE=jE;function JE(r){r.registerAction("dataZoom",function(t,e){var n=zE(e,t);M(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var zg=!1;function tO(r){zg||(zg=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,QE),JE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function eO(r){r.registerComponentModel(WE),r.registerComponentView(XE),tO(r)}var ke=function(){function r(){}return r}(),WS={};function ea(r,t){WS[r]=t}function $S(r){return WS[r]}var rO=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;M(this.option.feature,function(n,i){var a=$S(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),tt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#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"}},t}(_t);const nO=rO;function iO(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=$r(n,a,i);xi(t.get("orient"),r,t.get("itemGap"),o.width,o.height),TD(r,n,a,i)}function US(r,t){var e=Cu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new Dt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var aO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),u=e.get("orient")==="vertical",l=e.get("feature")||{},f=this._features||(this._features={}),h=[];M(l,function(d,g){h.push(g)}),new $a(this._featureNames||[],h).add(c).update(c).remove(lt(c,null)).execute(),this._featureNames=h;function c(d,g){var p=h[d],y=h[g],m=l[p],_=new Vt(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===p&&(m.title=a.newTitle),p&&!y){if(oO(p))S={onclick:_.option.onclick,featureName:p};else{var b=$S(p);if(!b)return;S=new b}f[p]=S}else if(S=f[y],!S)return;S.uid=io("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof ke;if(!p&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}v(_,S,p),_.setIconStatus=function(w,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[w]=T,A[w]&&(T==="emphasis"?wi:Ti)(A[w])},S instanceof ke&&S.render&&S.render(_,n,i,a)}function v(d,g,p){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=g instanceof ke&&g.getIcons?g.getIcons():d.get("icon"),S=d.get("title")||{},b,x;H(_)?(b={},b[p]=_):b=_,H(S)?(x={},x[p]=S):x=S;var w=d.iconPaths={};M(b,function(T,C){var A=yu(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var D=A.ensureState("emphasis");D.style=m.getItemStyle();var I=new Ft({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});A.setTextContent(I),mu({el:A,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var L=m.getItemStyle(),P=u?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?wi:Ti)(A),o.add(A),A.on("click",gt(g.onclick,g,n,i,C)),w[C]=A})}iO(o,e,i),o.add(US(o.getBoundingRect(),e)),u||o.eachChild(function(d){var g=d.__title,p=d.ensureState("emphasis"),y=p.textConfig||(p.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!q(_)&&g){var S=_.style||(_.style={}),b=ou(g,Ft.makeFont(S)),x=d.x+o.x,w=d.y+o.y+s,T=!1;w+b.height>i.getHeight()&&(y.position="top",T=!0);var C=T?-5-b.height:s+10;x+b.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):x-b.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){M(this._features,function(o){o instanceof ke&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){M(this._features,function(i){i instanceof ke&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(i){i instanceof ke&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t}(Te);function oO(r){return r.indexOf("my")===0}const sO=aO;var uO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=nt.browser;if(q(MouseEvent)&&(l.newEdge||!l.ie&&!l.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=u;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=u.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var p=d.length,y=new Uint8Array(p);p--;)y[p]=d.charCodeAt(p);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(_)}}else{var x=i.get("lang"),w='',T=window.open();T.document.write(w),T.document.title=a}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(ke);const lO=uO;var Vg="__ec_magicType_stack__",fO=[["line","bar"],["stack"]],hO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return M(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(!!Gg[i]){var s={series:[]},u=function(h){var c=h.subType,v=h.id,d=Gg[i](c,v,h,a);d&&(J(d,h.option),s.series.push(d));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var p=g.getAxesByScale("ordinal")[0];if(p){var y=p.dim,m=y+"Axis",_=h.getReferringComponents(m,qt).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=i==="bar"}}};M(fO,function(h){at(h,i)>=0&&M(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var l,f=i;i==="stack"&&(l=tt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:l,featureName:"magicType"})}},t}(ke),Gg={line:function(r,t,e,n){if(r==="bar")return tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===Vg;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":Vg},n.get(["option","stack"])||{},!0)}};ir({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});const vO=hO;var Bu=new Array(60).join("-"),Ii=" ";function cO(r){var t={},e=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function dO(r){var t=[];return M(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(N(e.series,function(v){return v.name})),u=[i.model.getCategories()];M(e.series,function(v){var d=v.getRawData();u.push(v.getRawData().mapArray(d.mapDimension(o),function(g){return g}))});for(var l=[s.join(Ii)],f=0;f=0)return!0}var Ah=new RegExp("["+Di+"]+","g");function mO(r){for(var t=r.split(/\n+/g),e=Xs(t.shift()).split(Ah),n=[],i=N(e,function(u){return{name:u,data:[]}}),a=0;a=0)return!0}var Mh=new RegExp("["+Ii+"]+","g");function mO(r){for(var t=r.split(/\n+/g),e=Xs(t.shift()).split(Mh),n=[],i=N(e,function(u){return{name:u,data:[]}}),a=0;a=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var u=s.getPercentRange();e[0][i]={dataZoomId:i,start:u[0],end:u[1]}}}}),e.push(t)}function CO(r){var t=jv(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return YS(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function MO(r){XS(r).snapshots=null}function AO(r){return jv(r).length}function jv(r){var t=XS(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var DO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){MO(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ke);ir({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const IO=DO;var LO=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],PO=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=Hg(e,t);A(RO,function(o,s){(!n||!n.include||at(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Jl[n.brushType](0,a,i);n.__rangeOffset={offset:Yg[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){A(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&A(a.coordSyses,function(o){var s=Jl[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){A(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Jl[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Yg[n.brushType](a.values,o.offset,EO(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return N(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:OE(i),isTargetByCursor:BE(i,t,n.coordSysModel),getLinearBrushOtherExtent:kE(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&at(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Hg(e,t),a=0;ar[1]&&r.reverse(),r}function Hg(r,t){return ya(r,t,{includeMainTypes:LO})}var RO={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=K(),o={},s={};!e&&!n&&!i||(A(e,function(u){var l=u.axis.grid.model;a.set(l.id,l),o[l.id]=!0}),A(n,function(u){var l=u.axis.grid.model;a.set(l.id,l),s[l.id]=!0}),A(i,function(u){a.set(u.id,u),o[u.id]=!0,s[u.id]=!0}),a.each(function(u){var l=u.coordinateSystem,f=[];A(l.getCartesians(),function(h,c){(at(e,h.getAxis("x").model)>=0||at(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+u.id,gridModel:u,coordSysModel:u,coordSys:f[0],coordSyses:f,getPanelRect:$g.grid,xAxisDeclared:o[u.id],yAxisDeclared:s[u.id]})}))},geo:function(r,t){A(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:$g.geo})})}},Wg=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],$g={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(dv(r)),t}},Jl={lineX:lt(Ug,0),lineY:lt(Ug,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Dh([i[0],a[0]]),Dh([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=N(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function Ug(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=Dh(N([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Yg={lineX:lt(Xg,0),lineY:lt(Xg,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return N(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function Xg(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function EO(r,t){var e=Zg(r),n=Zg(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Zg(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const ZS=PO;var Ih=A,OO=kC("toolbox-dataZoom_"),kO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new EE(i.getZr()),this._brushController.on("brush",gt(this._onBrush,this)).mount()),FO(e,n,this,a,i),NO(e,n)},t.prototype.onclick=function(e,n,i){BO[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new ZS(Qv(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(l,f,h){if(h.type==="cartesian2d"){var c=l.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),TO(a,i),this._dispatchZoomAction(i);function s(l,f,h){var c=f.getAxis(l),v=c.model,d=u(l,v,a),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=PS(0,h.slice(),c.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function u(l,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(l,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Ih(e,function(i,a){n.push(Q(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(ke),BO={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(CO(this.ecModel))}};function Qv(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function NO(r,t){r.setIconStatus("back",AO(t)>1?"emphasis":"normal")}function FO(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new ZS(Qv(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(u){return u.xAxisDeclared&&!u.yAxisDeclared?"lineX":!u.xAxisDeclared&&u.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}RD("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=Qv(n),o=ya(r,a);Ih(o.xAxisModels,function(u){return s(u,"xAxis","xAxisIndex")}),Ih(o.yAxisModels,function(u){return s(u,"yAxis","yAxisIndex")});function s(u,l,f){var h=u.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:OO+l+h};c[f]=h,i.push(c)}return i});const zO=kO;function VO(r){r.registerComponentModel(nO),r.registerComponentView(sO),ta("saveAsImage",lO),ta("magicType",vO),ta("dataView",wO),ta("dataZoom",zO),ta("restore",IO),le(eO)}var GO=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(_t);const HO=GO;function qS(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function KS(r){if(!!nt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function qO(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=nt.transformSupported?","+Jv+n:",left"+n+",top"+n),UO+":"+i}function qg(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!nt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=nt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Jv+":"+o+";":[["top",0],["left",0],[jS,o]]}function KO(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),A(["decoration","align"],function(u){var l=r.get(u);l&&t.push("text-"+u+":"+l)}),t.join(";")}function jO(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=e1(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(qO(i,e)),a&&n.push("background-color:"+a),A(["width","color","radius"],function(v){var d="border-"+v,g=b_(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(KO(f)),h!=null&&n.push("padding:"+Cu(h).join("px ")+"px"),n.join(";")+";"}function Kg(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&eT(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var QO=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,nt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Kg(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=a.handler,f=a.painter.getViewportRoot();pe(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=$O(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=YO+jO(t,!this._firstShow,this._longHide)+qg(a[0],a[1],!0)+("border-color:"+Pn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(a)&&n.get("trigger")==="item"&&!qS(n)&&(s=ZO(n,i,a)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var u=0;u=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||nt.node||!i.getDom())){var o=Jg(a,i);this._ticket="";var s=a.dataByCoordSys,u=sk(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=rk;f.x=a.x,f.y=a.y,f.update(),ft(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=DS(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Jg(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(!!l){var f=l.getData(),h=ea([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,u;fa(i,function(l){if(ft(l).dataIndex!=null)return s=l,!0;if(ft(l).tooltipConfig!=null)return u=l,!0},!0),s?this._showSeriesItemTooltip(e,s,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=gt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ea([n.tooltipOption],a),u=this._renderMode,l=[],f=Ga("section",{blocks:[],noHeader:!0}),h=[],c=new Pl;A(e,function(m){A(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=CS(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ga("section",{header:x,noHeader:!Ze(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Gv(S.axis,{value:b}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",Pn(D.color),u);var I=up(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=ea([C],a).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&h.push(I.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=dp(f,c,u,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?` +*`,"g")),n={series:[]};return M(e,function(i,a){if(yO(i)){var o=mO(i),s=t[a],u=s.axisDim+"Axis";s&&(n[u]=n[u]||[],n[u][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=_O(i);n.series.push(o)}}),n}var xO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.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=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),u=a.get("lang")||[];s.innerHTML=u[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var l=document.createElement("div"),f=document.createElement("textarea");l.style.cssText="overflow:auto";var h=a.get("optionToContent"),c=a.get("contentToOption"),v=gO(e);if(q(h)){var d=h(n.getOption());H(d)?l.innerHTML=d:Da(d)&&l.appendChild(d)}else{f.readOnly=a.get("readOnly");var g=f.style;g.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",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),f.value=v.value,l.appendChild(f)}var p=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:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var b=this;function x(){i.removeChild(o),b._dom=null}Cf(_,"click",x),Cf(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){x();return}var w;try{q(c)?w=c(l,n.getOption()):w=SO(f.value,p)}catch(T){throw x(),new Error("Data view format error "+T)}w&&n.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=u[1],S.innerHTML=u[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(l),o.appendChild(y),l.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(ke);function bO(r,t){return N(r,function(e,n){var i=t&&t[n];if(U(i)&&!F(i)){var a=U(e)&&!F(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=J(e,i),o&&delete e.name,e}else return e})}ir({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];M(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(B({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:bO(n.data,a)})}}),t.mergeOption(J({series:e},r.newOption))});const wO=xO;var YS=M,XS=bt();function TO(r,t){var e=jv(r);YS(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var u=s.getPercentRange();e[0][i]={dataZoomId:i,start:u[0],end:u[1]}}}}),e.push(t)}function CO(r){var t=jv(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return YS(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function AO(r){XS(r).snapshots=null}function MO(r){return jv(r).length}function jv(r){var t=XS(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var DO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){AO(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(ke);ir({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});const IO=DO;var LO=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],PO=function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=Hg(e,t);M(RO,function(o,s){(!n||!n.include||at(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Jl[n.brushType](0,a,i);n.__rangeOffset={offset:Yg[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&M(a.coordSyses,function(o){var s=Jl[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Jl[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Yg[n.brushType](a.values,o.offset,EO(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return N(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:OE(i),isTargetByCursor:BE(i,t,n.coordSysModel),getLinearBrushOtherExtent:kE(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&at(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Hg(e,t),a=0;ar[1]&&r.reverse(),r}function Hg(r,t){return ya(r,t,{includeMainTypes:LO})}var RO={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=K(),o={},s={};!e&&!n&&!i||(M(e,function(u){var l=u.axis.grid.model;a.set(l.id,l),o[l.id]=!0}),M(n,function(u){var l=u.axis.grid.model;a.set(l.id,l),s[l.id]=!0}),M(i,function(u){a.set(u.id,u),o[u.id]=!0,s[u.id]=!0}),a.each(function(u){var l=u.coordinateSystem,f=[];M(l.getCartesians(),function(h,c){(at(e,h.getAxis("x").model)>=0||at(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+u.id,gridModel:u,coordSysModel:u,coordSys:f[0],coordSyses:f,getPanelRect:$g.grid,xAxisDeclared:o[u.id],yAxisDeclared:s[u.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:$g.geo})})}},Wg=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],$g={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(dv(r)),t}},Jl={lineX:lt(Ug,0),lineY:lt(Ug,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Dh([i[0],a[0]]),Dh([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=N(e,function(o){var s=r?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function Ug(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=Dh(N([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Yg={lineX:lt(Xg,0),lineY:lt(Xg,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return N(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function Xg(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function EO(r,t){var e=Zg(r),n=Zg(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Zg(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const ZS=PO;var Ih=M,OO=kC("toolbox-dataZoom_"),kO=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new EE(i.getZr()),this._brushController.on("brush",gt(this._onBrush,this)).mount()),FO(e,n,this,a,i),NO(e,n)},t.prototype.onclick=function(e,n,i){BO[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new ZS(Qv(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(l,f,h){if(h.type==="cartesian2d"){var c=l.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),TO(a,i),this._dispatchZoomAction(i);function s(l,f,h){var c=f.getAxis(l),v=c.model,d=u(l,v,a),g=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=PS(0,h.slice(),c.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function u(l,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(l,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Ih(e,function(i,a){n.push(Q(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(ke),BO={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(CO(this.ecModel))}};function Qv(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function NO(r,t){r.setIconStatus("back",MO(t)>1?"emphasis":"normal")}function FO(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new ZS(Qv(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(u){return u.xAxisDeclared&&!u.yAxisDeclared?"lineX":!u.xAxisDeclared&&u.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}RD("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=Qv(n),o=ya(r,a);Ih(o.xAxisModels,function(u){return s(u,"xAxis","xAxisIndex")}),Ih(o.yAxisModels,function(u){return s(u,"yAxis","yAxisIndex")});function s(u,l,f){var h=u.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:OO+l+h};c[f]=h,i.push(c)}return i});const zO=kO;function VO(r){r.registerComponentModel(nO),r.registerComponentView(sO),ea("saveAsImage",lO),ea("magicType",vO),ea("dataView",wO),ea("dataZoom",zO),ea("restore",IO),le(eO)}var GO=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(_t);const HO=GO;function qS(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function KS(r){if(!!nt.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'
'}function qO(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=nt.transformSupported?","+Jv+n:",left"+n+",top"+n),UO+":"+i}function qg(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!nt.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=nt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+Jv+":"+o+";":[["top",0],["left",0],[jS,o]]}function KO(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont()),e&&t.push("line-height:"+Math.round(e*3/2)+"px");var i=r.get("textShadowColor"),a=r.get("textShadowBlur")||0,o=r.get("textShadowOffsetX")||0,s=r.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),M(["decoration","align"],function(u){var l=r.get(u);l&&t.push("text-"+u+":"+l)}),t.join(";")}function jO(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=e1(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(qO(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,g=b_(d),p=r.get(g);p!=null&&n.push(d+":"+p+(v==="color"?"":"px"))}),n.push(KO(f)),h!=null&&n.push("padding:"+Cu(h).join("px ")+"px"),n.join(";")+";"}function Kg(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&eT(r,o,document.body,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var QO=function(){function r(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,nt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;Kg(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=a.handler,f=a.painter.getViewportRoot();pe(f,u,!0),l.dispatch("mousemove",u)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){var e=this._container,n=$O(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=YO+jO(t,!this._firstShow,this._longHide)+qg(a[0],a[1],!0)+("border-color:"+Rn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(H(a)&&n.get("trigger")==="item"&&!qS(n)&&(s=ZO(n,i,a)),H(t))o.innerHTML=t+s;else if(t){o.innerHTML="",F(t)||(t=[t]);for(var u=0;u=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||nt.node||!i.getDom())){var o=Jg(a,i);this._ticket="";var s=a.dataByCoordSys,u=sk(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=rk;f.x=a.x,f.y=a.y,f.update(),ft(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=DS(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Jg(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(!!l){var f=l.getData(),h=ra([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(!!a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){this._lastDataByCoordSys=null;var s,u;fa(i,function(l){if(ft(l).dataIndex!=null)return s=l,!0;if(ft(l).tooltipConfig!=null)return u=l,!0},!0),s?this._showSeriesItemTooltip(e,s,n):u?this._showComponentItemTooltip(e,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=gt(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ra([n.tooltipOption],a),u=this._renderMode,l=[],f=Ga("section",{blocks:[],noHeader:!0}),h=[],c=new Pl;M(e,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=CS(b,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Ga("section",{header:x,noHeader:!Ze(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),M(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,D=C.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Gv(S.axis,{value:b}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",Rn(D.color),u);var I=up(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=ra([C],a).get("valueFormatter");w.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&h.push(I.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),g=dp(f,c,u,d,i.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=u==="richText"?` -`:"
",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ft(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,g=ea([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new Pl;y.marker=m.makeTooltipMarker("item",Pn(y.color),v);var _=up(l.formatTooltip(f,!1,h)),S=g.get("order"),b=g.get("valueFormatter"),x=_.frag,w=x?dp(b?B({valueFormatter:b},x):x,m,v,S,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ft(n),o=a.tooltipConfig,s=o.option||{};if(H(s)){var u=s;s={content:u,formatter:u}}var l=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&l.push(f),l.push({formatter:s.content});var h=e.positionDefault,c=ea(l,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new Pl;this._showOrMove(c,function(){var p=Q(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(H(c)){var p=e.ecModel.get("useUTC"),y=F(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Su(y.axisValue,v,p)),v=w_(v,i,!0)}else if(q(c)){var _=gt(function(S,b){S===this._ticket&&(h.setContent(b,f,e,g,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,u),h.show(e,g),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||F(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),q(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),F(n))i=pt(n[0],l),a=pt(n[1],f);else if(U(n)){var g=n;g.width=h[0],g.height=h[1];var p=$r(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(H(n)&&u){var y=ok(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=ik(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=ty(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=ty(v)?h[1]/2:v==="bottom"?h[1]:0),qS(e)){var y=ak(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&A(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&A(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&A(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){nt.node||!n.getDom()||(ih(this,"_updatePosition"),this._tooltipContent.dispose(),xh("itemTooltip",n))},t.type="tooltip",t}(Te);function ea(r,t,e){var n=t.ecModel,i;e?(i=new Vt(e,n,n),i=new Vt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(i=new Vt(o,i,n)))}return i}function Jg(r,t){return r.dispatchAction||gt(t.dispatchAction,t)}function ik(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function ak(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ok(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function ty(r){return r==="center"||r==="middle"}function sk(r,t,e){var n=rv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ja(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ft(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}const uk=nk;function lk(r){le(IS),r.registerComponentModel(HO),r.registerComponentView(uk),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Kt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Kt)}var fk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left: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"}},t}(_t),hk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=j(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ft({style:Wr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Ft({style:Wr(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Wd(d,"_"+e.get("target"))}),g&&v.on("click",function(){Wd(g,"_"+e.get("subtarget"))}),ft(f).eventData=ft(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=$r(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new At({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Te);function vk(r){r.registerComponentModel(fk),r.registerComponentView(hk)}function tc(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ci(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var ck=function(r){G(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=Rn(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=dk,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){bi(this.childAt(0))},t.prototype.downplay=function(){wi(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,n),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,u,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?c.attr(v):Bt(c,v,s,n),gu(c)}if(this._updateCommon(e,n,u,i,a),l){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Gt(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,g,p,y;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=no(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=h1(e.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),w=x.fill;if(s instanceof pr){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;ro(s,g,{labelFetcher:u,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):tc(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Oa(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ft(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&Os(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Os(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return RL(e.getItemVisual(n,"symbolSize"))},t}(Et);function dk(r,t){this.parent.drift(r,t)}const ec=ck;function tf(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function ey(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function ry(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:no(t),cursorStyle:t.get("cursor")}}var pk=function(){function r(t){this.group=new Et,this._SymbolCtor=t||ec}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ey(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=ry(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(tf(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!tf(t,d,h,e)){n.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var y={x:d[0],y:d[1]};s?v.attr(y):Bt(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ry(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=ey(n);function i(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}},t}(_t);const Lh=yk;var ti=lt,Ph=A,Xo=Et,mk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Xo),this.group.add(this._selectorGroup=new Xo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=$r(f,h,c),d=this.layoutInner(e,o,v,a,u,l),g=$r(J({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=US(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=K(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Ph(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` -`)){var p=new Xo;p.newline=!0,l.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,g,d,v,n,e,_,b,S,h,a);x.on("click",ti(ny,g,null,a,c)).on("mouseover",ti(Rh,y.name,null,a,c)).on("mouseout",ti(Eh,y.name,null,a,c)),f.set(g,!0)}else i.eachRawSeries(function(w){if(!f.get(g)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(g))return;var C=T.indexOfName(g),M=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),I=Qe(M.fill);I&&I[3]===0&&(I[3]=.2,M=B(B({},M),{fill:iu(I,"rgba")}));var L=this._createItem(w,g,d,v,n,e,{},M,D,h,a);L.on("click",ti(ny,null,g,a,c)).on("mouseover",ti(Rh,null,g,a,c)).on("mouseout",ti(Eh,null,g,a,c)),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Ph(e,function(l){var f=l.type,h=new Ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);ro(h,{normal:c,emphasis:v},{defaultText:l.title}),Uf(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=_k(f,a,u,l,v,p,c),b=new Xo,x=a.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(Sk({itemWidth:d,itemHeight:g,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=n;H(M)&&M?D=M.replace("{name}",n!=null?n:""):q(M)&&(D=M(n));var I=a.get("inactiveColor");b.add(new Ft({style:Wr(x,{text:D,x:T,y:g/2,fill:p?x.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new At({shape:b.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&mu({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),Uf(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Si(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Si("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Te);function _k(r,t,e,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),Ph(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:lh(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:e).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function Sk(r){var t=r.icon||"roundRect",e=Rn(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function ny(r,t,e,n){Eh(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Rh(r,t,e,n)}function ex(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=j(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=g?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=b[s],h.setClipPath(new At({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Bt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",H(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ef[o],u=rf[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+a||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=l-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(rx);const Mk=Ck;function Ak(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Dk(r){le(nx),r.registerComponentModel(Tk),r.registerComponentView(Mk),Ak(r)}function Ik(r){le(nx),le(Dk)}var Lk={label:{enabled:!0},decal:{show:!1}},oy=bt(),Pk={};function Rk(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Q(Lk);tt(n.label,r.getLocaleModel().get("aria"),!1),tt(e.option,n,!1),i(),a();function i(){var l=e.getModel("decal"),f=l.get("show");if(f){var h=K();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),oy(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(q(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=Ud(c.ecModel,c.name,Pk,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=c.getRawData(),g={},p=oy(c).scope;v.each(function(b){var x=v.getRawIndex(b);g[x]=b});var y=d.count();d.each(function(b){var x=g[b],w=d.getName(b)||b+"",T=Ud(c.ecModel,w,p,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?B(B({},x),b):x;return w.dirty=!0,w}})}}function a(){var l=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=J(f.option,l),!!f.get("enabled")){var h=t.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,g=Math.min(c,d),p;if(!(c<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);p=o(m,{title:y})}else p=f.get(["general","withoutTitle"]);var _=[],S=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=o(S,{seriesCount:c}),r.eachSeries(function(T,C){if(C1?f.get(["series","multiple",I]):f.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var L=T.getData();if(L.count()>v){var P=f.get(["data","partialData"]);M+=o(P,{displayCnt:v})}else M+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),V=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kk=function(){function r(t){var e=this._condVal=H(t)?new RegExp(t):Hw(t)?t:null;if(e==null){var n="";st(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):ht(e)?this._condVal.test(t+""):!1},r}(),Bk=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Nk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(rr);const Qk=jk;function ax(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=Jk(i,e),o=n.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=N(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return Mi(t,h[0])&&(c=!0,h[0]=v),Mi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Jk(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:ht(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function ox(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function tB(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function eB(r,t,e,n,i,a,o,s){for(var u=tB(r,t),l=[],f=[],h=[],c=[],v=[],d=[],g=[],p=ax(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||g<0)break;if(Dn(y,m)){if(u){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-l,S=m-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var b=g+a,x=t[b*2],w=t[b*2+1];x===y&&w===m&&p=n||Dn(x,w))v=y,d=m;else{M=x-l,D=w-f;var P=y-l,R=x-y,E=m-f,V=w-m,O=void 0,k=void 0;if(s==="x"){O=Math.abs(P),k=Math.abs(R);var z=M>0?1:-1;v=y-z*O*o,d=m,I=y+z*k*o,L=m}else if(s==="y"){O=Math.abs(E),k=Math.abs(V);var W=D>0?1:-1;v=y,d=m-W*O*o,I=y,L=m+W*k*o}else O=Math.sqrt(P*P+E*E),k=Math.sqrt(R*R+V*V),C=k/(k+O),v=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=Tr(I,Cr(x,y)),L=Tr(L,Cr(w,m)),I=Cr(I,Tr(x,y)),L=Cr(L,Tr(w,m)),M=I-y,D=L-m,v=y-M*O/k,d=m-D*O/k,v=Tr(v,Cr(l,y)),d=Tr(d,Cr(f,m)),v=Cr(v,Tr(l,y)),d=Cr(d,Tr(f,m)),M=y-v,D=m-d,I=y+M*k/O,L=m+D*k/O}r.bezierCurveTo(h,c,v,d,y,m),h=I,c=L}else r.lineTo(y,m)}l=y,f=m,g+=a}return p}var sx=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),rB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sx},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&Dn(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var b=l?ws(s,v,g,y,e,f):ws(u,d,p,m,e,f);if(b>0)for(var x=0;x=0){var S=l?Ot(u,d,p,m,w):Ot(s,v,g,y,w);return l?[e,S]:[S,e]}}s=y,u=m;break}}},t}(et),nB=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(sx),iB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new nB},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Dn(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),a=u}return e}function sB(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var u=t.getAxis(i),l=N(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=oB(l,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,y=p-g;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-g)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new Q0(0,0,0,0,c,!0);return m[i]=g,m[i+"2"]=p,m}}}function uB(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&lB(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function lB(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function fB(r,t){return isNaN(r)||isNaN(t)}function hB(r){for(var t=r.length/2;t>0&&fB(r[t*2-2],r[t*2-1]);t--);return t-1}function cy(r,t){return[r[t*2],r[t*2+1]]}function vB(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,u=-1,l=0;l=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function hx(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=g.getState("emphasis").style;z.lineWidth=+g.style.lineWidth+1}ft(g).seriesIndex=e.seriesIndex,Oa(g,V,O,k);var W=vy(e.get("smooth")),$=e.get("smoothMonotone");if(g.setShape({smooth:W,smoothMonotone:$,connectNulls:T}),p){var Z=u.getCalculationInfo("stackedOnSeries"),it=0;p.useStyle(J(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),Z&&(it=vy(Z.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:it,smoothMonotone:$,connectNulls:T}),ka(p,e,"areaStyle"),ft(p).seriesIndex=e.seriesIndex,Oa(p,V,O,k)}var wt=function(vt){a._changePolyState(vt)};u.eachItemGraphicEl(function(vt){vt&&(vt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=u,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ft(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=In(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;l=new ec(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else xe.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=In(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else xe.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;_d(this._polyline,e),n&&_d(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new rB({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new iB({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");q(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=q(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(p);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=i;a?(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);u&&(w=1-w);var T=q(h)?h(d):f*w+c,C=g.getSymbolPath(),M=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(hx(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Ft({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hB(u);f>=0&&(ro(s,no(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?JS(o,v):tc(o,h)},enableTextSetter:!0},cB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=u.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?g:0)*(m?-1:1),x=(y?0:-g)*(m?-1:1),w=y?"x":"y",T=vB(h,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!v){var I=cy(h,C[0]);l.attr({x:I[0]+b,y:I[1]+x}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&l.attr({x:I[0]+b,y:I[1]+x});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=o0(i,d,L,P,T.t))}a.lastFrameIndex=C[0]}else{var R=e===1||a.lastFrameIndex>0?C[0]:0,I=cy(h,R);o&&(D=c.getRawValue(R)),l.attr({x:I[0]+b,y:I[1]+x})}o&&Ri(l).setLabelText(D)}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=eB(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=Mr(c.current,i,o,u),d=Mr(c.stackedOnCurrent,i,o,u),g=Mr(c.next,i,o,u),p=Mr(c.stackedOnNext,i,o,u)),hy(v,g)>3e3||f&&hy(d,p)>3e3){l.stopAnimation(),l.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=v;var y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),l.stopAnimation(),Bt(l,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Bt(f,{shape:{stackedOnPoints:p}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var w=l.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v));var d=void 0;H(a)?d=gB[a]:q(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,yB))}}}}}function mB(r){r.registerChartView(pB),r.registerSeriesModel(Qk),r.registerLayout(ic("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vx("line"))}var cx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Pu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var n=this.coordinateSystem;if(n&&n.clampData){var i=n.dataToPoint(n.clampData(e)),a=this.getData(),o=a.getLayout("offset"),s=a.getLayout("size"),u=n.getBaseAxis().isHorizontal()?0:1;return i[u]+=o+s/2,i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(rr);rr.registerClass(cx);const dy=cx;var _B=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Pu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=f_(dy.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}),t}(dy);const SB=_B;var xB=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}(),bB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new xB},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(!!this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ks(a,e,ft(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(xe),gy={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=af(t.x,r.x),s=of(t.x+t.width,i),u=af(t.y,r.y),l=of(t.y+t.height,a),f=si?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=of(t.r,r.r),a=af(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},yy={cartesian2d:function(r,t,e,n,i,a,o,s,u){var l=new At({shape:B({},n),z2:1});if(l.__dataIndex=e,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(r,t,e,n,i,a,o,s,u){var l=!i&&u?py:dr,f=new l({shape:n,z2:1});f.name="item";var h=dx(i);if(f.calculateTextPosition=wB(h,{isRoundCap:l===py}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?0:n.startAngle,d[v]=n[v],(s?Bt:Gt)(f,{shape:d},a)}return f}};function AB(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function my(r,t,e,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?Bt:Gt)(e,{shape:u},t,i,null);var f=t?r.baseAxis.model:null;(o?Bt:Gt)(e,{shape:l},f,i)}function _y(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function LB(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function dx(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function xy(r,t,e,n,i,a,o,s){var u=t.getItemVisual(e,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(u);var l=n.getShallow("cursor");l&&r.attr("cursor",l);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=no(n);ro(r,h,{labelFetcher:a,labelDataIndex:e,defaultText:tc(a.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var c=r.getTextContent();if(s&&c){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,TB(r,v==="outside"?f:v,dx(o),n.get(["label","rotate"]))}eD(c,h,a.getRawValue(e),function(g){return JS(t,g)});var d=n.getModel(["emphasis"]);Oa(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),ka(r,n),LB(i)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(g){g.style&&(g.style.fill=g.style.stroke="none")}))}function PB(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var RB=function(){function r(){}return r}(),by=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new RB},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f=0?e:null},30,!1);function EB(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],u=[],l=r.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+u[0]&&e>=s[1]&&e<=s[1]+u[1])return o[f]}return-1}function px(r,t,e){if(rc(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function OB(r,t,e){var n=r.type==="polar"?dr:At;return new n({shape:px(t,e,r),silent:!0,z2:0})}const kB=MB;function BB(r){r.registerChartView(kB),r.registerSeriesModel(SB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,lt(iP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vx("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var jo=Math.PI*2,Cy=Math.PI/180;function gx(r,t){return $r(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yx(r,t){var e=gx(r,t),n=r.get("center"),i=r.get("radius");F(i)||(i=[0,i]),F(n)||(n=[n,n]);var a=pt(e.width,t.getWidth()),o=pt(e.height,t.getHeight()),s=Math.min(a,o),u=pt(i[0],s/2),l=pt(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else f=pt(n[0],a)+e.x,h=pt(n[1],o)+e.y;return{cx:f,cy:h,r0:u,r:l}}function NB(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=gx(n,e),s=yx(n,e),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Cy,v=n.get("minAngle")*Cy,d=0;i.each(a,function(M){!isNaN(M)&&d++});var g=i.getSum(a),p=Math.PI/(g||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var b=jo,x=0,w=c,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(M,D){var I;if(isNaN(M)){i.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:u,cy:l,r0:h,r:m?NaN:f});return}m!=="area"?I=g===0&&_?p:M*p:I=jo/d,Ie?y:p,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*i,w=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function sf(r){return r.position==="center"}function GB(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*zB,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=pt(I.get("edgeDistance"),l),V=I.get("bleedMargin"),O=D.getModel("labelLine"),k=O.get("length");k=pt(k,l);var z=O.get("length2");if(z=pt(z,l),Math.abs(T.endAngle-T.startAngle)0?"right":"left":$>0?"left":"right"}var Ae=Math.PI,te=0,ar=I.get("rotate");if(ht(ar))te=ar*(Ae/180);else if(L==="center")te=0;else if(ar==="radial"||ar===!0){var Fn=$<0?-W+Ae:-W;te=Fn}else if(ar==="tangential"&&L!=="outside"&&L!=="outer"){var De=Math.atan2($,Z);De<0&&(De=Ae*2+De);var uo=Z>0;uo&&(De=Ae+De),te=De-Ae}if(a=!!te,C.x=it,C.y=wt,C.rotation=te,C.setStyle({verticalAlign:"middle"}),Dt){C.setStyle({align:Nt});var Fu=C.states.select;Fu&&(Fu.x+=C.x,Fu.y+=C.y)}else{var mr=C.getBoundingRect().clone();mr.applyTransform(C.getComputedTransform());var fc=(C.style.margin||0)+2.1;mr.y-=fc/2,mr.height+=fc,e.push({label:C,labelLine:M,position:L,len:k,len2:z,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new X($,Z),linePoints:vt,textAlign:Nt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:V,rect:mr,unconstrainedWidth:mr.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:Dt})}}),!a&&r.get("avoidLabelOverlap")&&VB(e,n,i,u,l,c,f,h);for(var g=0;g0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=a.r0}},t.type="pie",t}(xe);const $B=WB;function _x(r,t,e){t=F(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=V1(n,t).dimensions,a=new z1(i,r);return a.initData(n,e),a}var UB=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const YB=UB;var XB=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new YB(gt(this.getData,this),gt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=_x(this,{coordDimensions:["value"],encodeDefaulter:lt(LD,this)}),n=[];return e.each(e.mapDimension("value"),function(i){n.push(i)}),this.seats=bC(n,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){zf(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t}(rr);const ZB=XB;function qB(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ht(o)&&!isNaN(o)&&o<0)})}}}function KB(r){r.registerChartView($B),r.registerSeriesModel(ZB),mL("pie",r.registerAction),r.registerLayout(lt(NB,"pie")),r.registerProcessor(FB("pie")),r.registerProcessor(qB("pie"))}var jB=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Pu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(rr);const QB=jB;var Sx=4,JB=function(){function r(){}return r}(),tN=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new JB},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,u=e.getContext?e.getContext():e,l=u&&a[0]=0;l--){var f=l*2,h=a[f]-s/2,c=a[f+1]-u/2;if(e>=h&&n>=c&&e<=h+s&&n<=c+u)return l}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],u=1/0,l=1/0,f=-1/0,h=-1/0,c=0;c=0&&(l.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const rN=eN;var nN=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=ic("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,i=n&&n.getArea&&n.getArea();return e.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new rN:new tx,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(xe);const iN=nN;function aN(r){le(wS),r.registerSeriesModel(QB),r.registerChartView(iN),r.registerLayout(ic("scatter"))}var oN=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),u;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),u=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),u=!0):t.layout=t.layout||"horizontal";var l=["x","y"],f=t.layout==="horizontal"?0:1,h=this._baseAxisDim=l[f],c=l[1-f],v=[i,a],d=v[f].get("type"),g=v[1-f].get("type"),p=t.data;if(p&&u){var y=[];A(p,function(S,b){var x;F(S)?(x=S.slice(),S.unshift(b)):F(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:ch(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ch(g),dimsDef:m.slice()}];return _x(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:lt(D_,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),sN=["color","borderColor"],uN=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){eo(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),u=e.coordinateSystem,l=u.getArea&&u.getArea();this._data||a.removeAll(),n.diff(i).add(function(f){if(n.hasValue(f)){var h=n.getItemLayout(f);if(s&&Ay(l,h))return;var c=uf(h,f,!0);Gt(c,{shape:{points:h.ends}},e,f),lf(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}}).update(function(f,h){var c=i.getItemGraphicEl(h);if(!n.hasValue(f)){a.remove(c);return}var v=n.getItemLayout(f);if(s&&Ay(l,v)){a.remove(c);return}c?(Bt(c,{shape:{points:v.ends}},e,f),gu(c)):c=uf(v),lf(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&a.remove(h)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Iy(e,this.group);var n=e.get("clip",!0)?fx(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),u=uf(s);lf(u,i,o,a),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,n){Iy(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(xe),lN=function(){function r(){}return r}(),fN=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new lN},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(et);function uf(r,t,e){var n=r.ends;return new fN({shape:{points:e?hN(n,r):n},z2:100})}function Ay(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]),a=e.getModel("itemStyle").getItemStyle(sN);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const cN=uN;var xx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,i){var a=n.getItemLayout(e);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",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},t}(rr);Ne(xx,oN,!0);const dN=xx;function pN(r){!r||!F(r.series)||A(r.series,function(t){U(t)&&t.type==="k"&&(t.type="candlestick")})}var gN=["itemStyle","borderColor"],yN=["itemStyle","borderColor0"],mN=["itemStyle","color"],_N=["itemStyle","color0"],SN={seriesType:"candlestick",plan:ao(),performRawSeries:!0,reset:function(r,t){function e(a,o){return o.get(a>0?mN:_N)}function n(a,o){return o.get(a>0?gN:yN)}if(!t.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var u=o.getItemModel(s),l=o.getItemLayout(s).sign,f=u.getItemStyle();f.fill=e(l,u),f.stroke=n(l,u)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}};const xN=SN;var bN={seriesType:"candlestick",plan:ao(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=wN(r,e),i=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),u=N(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),l=u[0],f=u[1],h=u[2],c=u[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||u.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(g,p){for(var y,m=p.getStore();(y=g.next())!=null;){var _=m.get(s,y),S=m.get(l,y),b=m.get(f,y),x=m.get(h,y),w=m.get(c,y),T=Math.min(S,b),C=Math.max(S,b),M=R(T,_),D=R(C,_),I=R(x,_),L=R(w,_),P=[];E(P,D,0),E(P,M,1),P.push(O(L),O(D),O(I),O(M)),p.setItemLayout(y,{sign:Py(m,y,S,b,f),initBaseline:S>b?D[a]:M[a],ends:P,brushRect:V(x,w,_)})}function R(k,z){var W=[];return W[i]=z,W[a]=k,isNaN(z)||isNaN(k)?[NaN,NaN]:t.dataToPoint(W)}function E(k,z,W){var $=z.slice(),Z=z.slice();$[i]=vs($[i]+n/2,1,!1),Z[i]=vs(Z[i]-n/2,1,!0),W?k.push($,Z):k.push(Z,$)}function V(k,z,W){var $=R(k,W),Z=R(z,W);return $[i]-=n/2,Z[i]-=n/2,{x:$[0],y:$[1],width:n,height:Z[1]-$[1]}}function O(k){return k[i]=vs(k[i],1),k}}function d(g,p){for(var y=Ke(g.count*4),m=0,_,S=[],b=[],x,w=p.getStore();(x=g.next())!=null;){var T=w.get(s,x),C=w.get(l,x),M=w.get(f,x),D=w.get(h,x),I=w.get(c,x);if(isNaN(T)||isNaN(D)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=Py(w,x,C,M,f),S[i]=T,S[a]=D,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[a]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}p.setLayout("largePoints",y)}}};function Py(r,t,e,n,i){var a;return e>n?a=-1:e0?r.get(i,t-1)<=n?1:-1:1,a}function wN(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=pt(j(r.get("barMaxWidth"),i),i),o=pt(j(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?pt(s,i):Math.max(Math.min(i/2,a),o)}const TN=bN;function CN(r){r.registerChartView(cN),r.registerSeriesModel(dN),r.registerPreprocessor(pN),r.registerVisual(xN),r.registerLayout(TN)}var $e=er.CMD;function ci(r,t){return Math.abs(r-t)<1e-5}function kh(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,u=0;function l(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,R,E){ci(L,R)&&ci(P,E)||i.push(L,P,R,E,R,E)}function h(L,P,R,E,V,O){var k=Math.abs(P-L),z=Math.tan(k/4)*4/3,W=PT:D2&&n.push(i),n}function Bh(r,t,e,n,i,a,o,s,u,l){if(ci(r,e)&&ci(t,n)&&ci(i,o)&&ci(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=e-r,p=n-t,y=i-o,m=a-s,_=g*g+p*p,S=y*y+m*m;if(_=0&&T=0){u.push(o,s);return}var C=[],M=[];Vr(r,e,i,o,.5,C),Vr(t,n,a,s,.5,M),Bh(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],u,l),Bh(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],u,l)}function MN(r,t){var e=kh(r),n=[];t=t||1;for(var i=0;i0)for(var l=0;lMath.abs(l),h=bx([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;vi,o=bx([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c1?null:new X(g*u+r,g*l+t)}function IN(r,t,e){var n=new X;X.sub(n,e,t),n.normalize();var i=new X;X.sub(i,r,t);var a=i.dot(n);return a}function ei(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function LN(r,t,e){for(var n=r.length,i=[],a=0;ao?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),LN(t,l,f)}function Zs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Zs(r,a[0],i,n),Zs(r,a[1],e-i,n)}return n}function PN(r,t){for(var e=[],n=0;n0)for(var b=n/e,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function js(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=N(r,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=N(a,function(s,u){return{cp:s,z:VN(s[0],s[1],t,e,n,i),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function Mx(r){return ON(r.path,r.count)}function Nh(){return{fromIndividuals:[],toIndividuals:[],count:0}}function GN(r,t,e){var n=[];function i(b){for(var x=0;x=0;i--)if(!e[i].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[i].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var WN={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Fy(r)&&(l=r,f=t),Fy(t)&&(l=t,f=r);function h(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(qs(T))h({many:[T],one:C},!0,_,S,!0);else{var M=s?J({delay:s(_,S)},u):u;ac(T,C,M),a(T,C,T,C,M)}}else for(var D=J({dividePath:WN[e],individualDelay:s&&function(V,O,k,z){return s(V+_,S)}},u),I=m?GN(x,w,D):HN(w,x,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;Et.length,v=l?zy(f,l):zy(c?t:r,[c?r:t]),d=0,g=0;gAx))for(var i=n.getIndices(),a=UN(n),o=0;o0&&S.group.traverse(function(x){x instanceof et&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Gy(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Hy(r){return F(r)?r.sort().join(","):r}function Ir(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ZN(r,t){var e=K(),n=K(),i=K();return A(r.oldSeries,function(a,o){var s=r.oldData[o],u=Gy(a),l=Hy(u);n.set(l,s),F(u)&&A(u,function(f){i.set(f,{data:s,key:l})})}),A(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.getData(),s=Gy(a),u=Hy(s),l=n.get(u);if(l)e.set(u,{oldSeries:[{divide:Ir(l),data:l}],newSeries:[{divide:Ir(o),data:o}]});else if(F(s)){var f=[];A(s,function(v){var d=n.get(v);d&&f.push({divide:Ir(d),data:d})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{data:o,divide:Ir(o)}]})}else{var h=i.get(s);if(h){var c=e.get(h.key);c||(c={oldSeries:[{data:h.data,divide:Ir(h.data)}],newSeries:[]},e.set(h.key,c)),c.newSeries.push({data:o,divide:Ir(o)})}}}}),e}function Wy(r,t){for(var e=0;e=0&&i.push({data:t.oldData[s],divide:Ir(t.oldData[s]),dim:o.dimension})}),A(Mt(r.to),function(o){var s=Wy(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({data:u,divide:Ir(u),dim:o.dimension})}}),i.length>0&&a.length>0&&Dx(i,a,n)}function KN(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){A(Mt(n.seriesTransition),function(i){A(Mt(i.to),function(a){for(var o=n.updatedSeries,s=0;s=pn:-l>=pn),v=l>0?l%pn:l%pn+pn,d=!1;c?d=!0:Rr(h)?d=!1:d=v>=Ix==!!f;var g=t+n*df(o),p=e+i*cf(o);this._start&&this._add("M",g,p);var y=Math.round(a*jN);if(c){var m=1/this._p,_=(f?1:-1)*(pn-m);this._add("A",n,i,y,1,+f,t+n*df(o+_),e+i*cf(o+_)),m>.01&&this._add("A",n,i,y,0,+f,g,p)}else{var S=t+n*df(s),b=e+i*cf(s);this._add("A",n,i,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,u,l){for(var f=[],h=this._p,c=1;c"}function s5(r){return""}function oc(r,t){t=t||{};var e=t.newline?` +`:"
",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=ft(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,g=ra([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new Pl;y.marker=m.makeTooltipMarker("item",Rn(y.color),v);var _=up(l.formatTooltip(f,!1,h)),S=g.get("order"),b=g.get("valueFormatter"),x=_.frag,w=x?dp(b?B({valueFormatter:b},x):x,m,v,S,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,w,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=ft(n),o=a.tooltipConfig,s=o.option||{};if(H(s)){var u=s;s={content:u,formatter:u}}var l=[s],f=this._ecModel.getComponent(a.componentMainType,a.componentIndex);f&&l.push(f),l.push({formatter:s.content});var h=e.positionDefault,c=ra(l,this._tooltipModel,h?{position:h}:null),v=c.get("content"),d=Math.random()+"",g=new Pl;this._showOrMove(c,function(){var p=Q(c.get("formatterParams")||{});this._showTooltipContent(c,v,p,d,e.offsetX,e.offsetY,e.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(H(c)){var p=e.ecModel.get("useUTC"),y=F(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Su(y.axisValue,v,p)),v=w_(v,i,!0)}else if(q(c)){var _=gt(function(S,b){S===this._ticket&&(h.setContent(b,f,e,g,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,u),h.show(e,g),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||F(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),q(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),F(n))i=pt(n[0],l),a=pt(n[1],f);else if(U(n)){var g=n;g.width=h[0],g.height=h[1];var p=$r(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(H(n)&&u){var y=ok(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=ik(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=ty(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=ty(v)?h[1]/2:v==="bottom"?h[1]:0),qS(e)){var y=ak(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&M(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){nt.node||!n.getDom()||(ih(this,"_updatePosition"),this._tooltipContent.dispose(),xh("itemTooltip",n))},t.type="tooltip",t}(Te);function ra(r,t,e){var n=t.ecModel,i;e?(i=new Vt(e,n,n),i=new Vt(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Vt&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(i=new Vt(o,i,n)))}return i}function Jg(r,t){return r.dispatchAction||gt(t.dispatchAction,t)}function ik(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function ak(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function ok(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function ty(r){return r==="center"||r==="middle"}function sk(r,t,e){var n=rv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ja(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(!!o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=ft(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}const uk=nk;function lk(r){le(IS),r.registerComponentModel(HO),r.registerComponentView(uk),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Kt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Kt)}var fk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left: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"}},t}(_t),hk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=j(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Ft({style:Wr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Ft({style:Wr(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Wd(d,"_"+e.get("target"))}),g&&v.on("click",function(){Wd(g,"_"+e.get("subtarget"))}),ft(f).eventData=ft(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=$r(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new Dt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Te);function vk(r){r.registerComponentModel(fk),r.registerComponentView(hk)}function tc(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=Ai(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var ck=function(r){G(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=En(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=dk,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){wi(this.childAt(0))},t.prototype.downplay=function(){Ti(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,n),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,u,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?c.attr(v):Bt(c,v,s,n),gu(c)}if(this._updateCommon(e,n,u,i,a),l){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Gt(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,g,p,y;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=no(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=h1(e.getItemVisual(n,"symbolOffset"),i);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),w=x.fill;if(s instanceof pr){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.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 D=o&&o.useNameLabel;ro(s,g,{labelFetcher:u,labelDataIndex:n,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):tc(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),Oa(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=ft(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&Os(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Os(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return RL(e.getItemVisual(n,"symbolSize"))},t}(Et);function dk(r,t){this.parent.drift(r,t)}const ec=ck;function tf(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function ey(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function ry(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:no(t),cursorStyle:t.get("cursor")}}var pk=function(){function r(t){this.group=new Et,this._SymbolCtor=t||ec}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=ey(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=ry(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(tf(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!tf(t,d,h,e)){n.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)n.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var y={x:d[0],y:d[1]};s?v.attr(y):Bt(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ry(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=ey(n);function i(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",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}},t}(_t);const Lh=yk;var ti=lt,Ph=M,Xo=Et,mk=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Xo),this.group.add(this._selectorGroup=new Xo),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=$r(f,h,c),d=this.layoutInner(e,o,v,a,u,l),g=$r(J({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=US(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=K(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Ph(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===` +`)){var p=new Xo;p.newline=!0,l.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,g,d,v,n,e,_,b,S,h,a);x.on("click",ti(ny,g,null,a,c)).on("mouseover",ti(Rh,y.name,null,a,c)).on("mouseout",ti(Eh,y.name,null,a,c)),f.set(g,!0)}else i.eachRawSeries(function(w){if(!f.get(g)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(g))return;var C=T.indexOfName(g),A=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),I=Qe(A.fill);I&&I[3]===0&&(I[3]=.2,A=B(B({},A),{fill:iu(I,"rgba")}));var L=this._createItem(w,g,d,v,n,e,{},A,D,h,a);L.on("click",ti(ny,null,g,a,c)).on("mouseover",ti(Rh,null,g,a,c)).on("mouseout",ti(Eh,null,g,a,c)),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Ph(e,function(l){var f=l.type,h=new Ft({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);ro(h,{normal:c,emphasis:v},{defaultText:l.title}),Uf(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=_k(f,a,u,l,v,p,c),b=new Xo,x=a.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(Sk({itemWidth:d,itemHeight:g,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),D=n;H(A)&&A?D=A.replace("{name}",n!=null?n:""):q(A)&&(D=A(n));var I=a.get("inactiveColor");b.add(new Ft({style:Wr(x,{text:D,x:T,y:g/2,fill:p?x.getTextColor():I,align:C,verticalAlign:"middle"})}));var L=new Dt({shape:b.getBoundingRect(),invisible:!0}),P=a.getModel("tooltip");return P.get("show")&&mu({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),Uf(b),b.__legendDataIndex=i,b},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();xi(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){xi("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Te);function _k(r,t,e,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),Ph(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:lh(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:e).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function Sk(r){var t=r.icon||"roundRect",e=En(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function ny(r,t,e,n){Eh(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),Rh(r,t,e,n)}function ex(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;ni[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=j(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=g?i[o]:v[o],b[s]=Math.max(v[s],d[s]),b[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],g){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=b[s],h.setClipPath(new Dt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Bt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",H(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=ef[o],u=rf[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+a||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=l-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!b(m,_.s))&&y.i=w&&x.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n!=null?n:a},t.type="legend.scroll",t}(rx);const Ak=Ck;function Mk(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Dk(r){le(nx),r.registerComponentModel(Tk),r.registerComponentView(Ak),Mk(r)}function Ik(r){le(nx),le(Dk)}var Lk={label:{enabled:!0},decal:{show:!1}},oy=bt(),Pk={};function Rk(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=Q(Lk);tt(n.label,r.getLocaleModel().get("aria"),!1),tt(e.option,n,!1),i(),a();function i(){var l=e.getModel("decal"),f=l.get("show");if(f){var h=K();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),oy(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(q(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=Ud(c.ecModel,c.name,Pk,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var d=c.getRawData(),g={},p=oy(c).scope;v.each(function(b){var x=v.getRawIndex(b);g[x]=b});var y=d.count();d.each(function(b){var x=g[b],w=d.getName(b)||b+"",T=Ud(c.ecModel,w,p,y),C=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?B(B({},x),b):x;return w.dirty=!0,w}})}}function a(){var l=r.getLocaleModel().get("aria"),f=e.getModel("label");if(f.option=J(f.option,l),!!f.get("enabled")){var h=t.getZr().dom;if(f.get("description")){h.setAttribute("aria-label",f.get("description"));return}var c=r.getSeriesCount(),v=f.get(["data","maxCount"])||10,d=f.get(["series","maxCount"])||10,g=Math.min(c,d),p;if(!(c<1)){var y=s();if(y){var m=f.get(["general","withTitle"]);p=o(m,{title:y})}else p=f.get(["general","withoutTitle"]);var _=[],S=c>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);p+=o(S,{seriesCount:c}),r.eachSeries(function(T,C){if(C1?f.get(["series","multiple",I]):f.get(["series","single",I]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:u(T.subType)});var L=T.getData();if(L.count()>v){var P=f.get(["data","partialData"]);A+=o(P,{displayCnt:v})}else A+=f.get(["data","allData"]);for(var R=f.get(["data","separator","middle"]),E=f.get(["data","separator","end"]),V=[],O=0;O":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},kk=function(){function r(t){var e=this._condVal=H(t)?new RegExp(t):Hw(t)?t:null;if(e==null){var n="";st(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return H(e)?this._condVal.test(t):ht(e)?this._condVal.test(t+""):!1},r}(),Bk=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),Nk=function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(rr);const Qk=jk;function ax(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=Jk(i,e),o=n.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=N(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return Mi(t,h[0])&&(c=!0,h[0]=v),Mi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Jk(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:ht(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function ox(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function tB(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function eB(r,t,e,n,i,a,o,s){for(var u=tB(r,t),l=[],f=[],h=[],c=[],v=[],d=[],g=[],p=ax(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_=i||g<0)break;if(In(y,m)){if(u){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-l,S=m-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var b=g+a,x=t[b*2],w=t[b*2+1];x===y&&w===m&&p=n||In(x,w))v=y,d=m;else{A=x-l,D=w-f;var P=y-l,R=x-y,E=m-f,V=w-m,O=void 0,k=void 0;if(s==="x"){O=Math.abs(P),k=Math.abs(R);var z=A>0?1:-1;v=y-z*O*o,d=m,I=y+z*k*o,L=m}else if(s==="y"){O=Math.abs(E),k=Math.abs(V);var W=D>0?1:-1;v=y,d=m-W*O*o,I=y,L=m+W*k*o}else O=Math.sqrt(P*P+E*E),k=Math.sqrt(R*R+V*V),C=k/(k+O),v=y-A*o*(1-C),d=m-D*o*(1-C),I=y+A*o*C,L=m+D*o*C,I=Tr(I,Cr(x,y)),L=Tr(L,Cr(w,m)),I=Cr(I,Tr(x,y)),L=Cr(L,Tr(w,m)),A=I-y,D=L-m,v=y-A*O/k,d=m-D*O/k,v=Tr(v,Cr(l,y)),d=Tr(d,Cr(f,m)),v=Cr(v,Tr(l,y)),d=Cr(d,Tr(f,m)),A=y-v,D=m-d,I=y+A*k/O,L=m+D*k/O}r.bezierCurveTo(h,c,v,d,y,m),h=I,c=L}else r.lineTo(y,m)}l=y,f=m,g+=a}return p}var sx=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),rB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new sx},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&In(i[o*2-2],i[o*2-1]);o--);for(;a=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var b=l?ws(s,v,g,y,e,f):ws(u,d,p,m,e,f);if(b>0)for(var x=0;x=0){var S=l?Ot(u,d,p,m,w):Ot(s,v,g,y,w);return l?[e,S]:[S,e]}}s=y,u=m;break}}},t}(et),nB=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(sx),iB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new nB},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&In(i[s*2-2],i[s*2-1]);s--);for(;ot){a?e.push(o(a,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),a=u}return e}function sB(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!!a){var u=t.getAxis(i),l=N(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=oB(l,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,y=p-g;if(y<.001)return"transparent";M(c,function(_){_.offset=(_.coord-g)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new Q0(0,0,0,0,c,!0);return m[i]=g,m[i+"2"]=p,m}}}function uB(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(!!a&&!(i&&lB(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function lB(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function fB(r,t){return isNaN(r)||isNaN(t)}function hB(r){for(var t=r.length/2;t>0&&fB(r[t*2-2],r[t*2-1]);t--);return t-1}function cy(r,t){return[r[t*2],r[t*2+1]]}function vB(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,u=-1,l=0;l=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function hx(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var z=g.getState("emphasis").style;z.lineWidth=+g.style.lineWidth+1}ft(g).seriesIndex=e.seriesIndex,Oa(g,V,O,k);var W=vy(e.get("smooth")),$=e.get("smoothMonotone");if(g.setShape({smooth:W,smoothMonotone:$,connectNulls:T}),p){var Z=u.getCalculationInfo("stackedOnSeries"),it=0;p.useStyle(J(f.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:u.getVisual("style").decal})),Z&&(it=vy(Z.get("smooth"))),p.setShape({smooth:W,stackedOnSmooth:it,smoothMonotone:$,connectNulls:T}),ka(p,e,"areaStyle"),ft(p).seriesIndex=e.seriesIndex,Oa(p,V,O,k)}var wt=function(vt){a._changePolyState(vt)};u.eachItemGraphicEl(function(vt){vt&&(vt.onHoverStateChange=wt)}),this._polyline.onHoverStateChange=wt,this._data=u,this._coordSys=o,this._stackedOnPoints=x,this._points=h,this._step=D,this._valueOrigin=S,e.get("triggerLineEvent")&&(this.packEventData(e,g),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){ft(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=Ln(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;l=new ec(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else xe.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=Ln(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else xe.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;_d(this._polyline,e),n&&_d(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new rB({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new iB({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");q(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=q(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,b=n.pointToCoord(p);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=i;a?(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);u&&(w=1-w);var T=q(h)?h(d):f*w+c,C=g.getSymbolPath(),A=C.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(hx(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Ft({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=hB(u);f>=0&&(ro(s,no(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?JS(o,v):tc(o,h)},enableTextSetter:!0},cB(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=u.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?g:0)*(m?-1:1),x=(y?0:-g)*(m?-1:1),w=y?"x":"y",T=vB(h,S,w),C=T.range,A=C[1]-C[0],D=void 0;if(A>=1){if(A>1&&!v){var I=cy(h,C[0]);l.attr({x:I[0]+b,y:I[1]+x}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&l.attr({x:I[0]+b,y:I[1]+x});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=o0(i,d,L,P,T.t))}a.lastFrameIndex=C[0]}else{var R=e===1||a.lastFrameIndex>0?C[0]:0,I=cy(h,R);o&&(D=c.getRawValue(R)),l.attr({x:I[0]+b,y:I[1]+x})}o&&Ei(l).setLabelText(D)}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=eB(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(v=Ar(c.current,i,o,u),d=Ar(c.stackedOnCurrent,i,o,u),g=Ar(c.next,i,o,u),p=Ar(c.stackedOnNext,i,o,u)),hy(v,g)>3e3||f&&hy(d,p)>3e3){l.stopAnimation(),l.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}l.shape.__points=c.current,l.shape.points=v;var y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),l.stopAnimation(),Bt(l,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Bt(f,{shape:{stackedOnPoints:p}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var w=l.shape.__points,T=0;Tt&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v));var d=void 0;H(a)?d=gB[a]:q(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,yB))}}}}}function mB(r){r.registerChartView(pB),r.registerSeriesModel(Qk),r.registerLayout(ic("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vx("line"))}var cx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Pu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var n=this.coordinateSystem;if(n&&n.clampData){var i=n.dataToPoint(n.clampData(e)),a=this.getData(),o=a.getLayout("offset"),s=a.getLayout("size"),u=n.getBaseAxis().isHorizontal()?0:1;return i[u]+=o+s/2,i}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(rr);rr.registerClass(cx);const dy=cx;var _B=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Pu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=f_(dy.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}),t}(dy);const SB=_B;var xB=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}(),bB=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new xB},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-fMath.PI/2&&fs)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(!!this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ks(a,e,ft(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(xe),gy={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=af(t.x,r.x),s=of(t.x+t.width,i),u=af(t.y,r.y),l=of(t.y+t.height,a),f=si?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=of(t.r,r.r),a=af(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},yy={cartesian2d:function(r,t,e,n,i,a,o,s,u){var l=new Dt({shape:B({},n),z2:1});if(l.__dataIndex=e,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(r,t,e,n,i,a,o,s,u){var l=!i&&u?py:dr,f=new l({shape:n,z2:1});f.name="item";var h=dx(i);if(f.calculateTextPosition=wB(h,{isRoundCap:l===py}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?0:n.startAngle,d[v]=n[v],(s?Bt:Gt)(f,{shape:d},a)}return f}};function MB(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function my(r,t,e,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?Bt:Gt)(e,{shape:u},t,i,null);var f=t?r.baseAxis.model:null;(o?Bt:Gt)(e,{shape:l},f,i)}function _y(r,t){for(var e=0;e0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function LB(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function dx(r){return function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}}(r)}function xy(r,t,e,n,i,a,o,s){var u=t.getItemVisual(e,"style");s||r.setShape("r",n.get(["itemStyle","borderRadius"])||0),r.useStyle(u);var l=n.getShallow("cursor");l&&r.attr("cursor",l);var f=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=no(n);ro(r,h,{labelFetcher:a,labelDataIndex:e,defaultText:tc(a.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:f});var c=r.getTextContent();if(s&&c){var v=n.get(["label","position"]);r.textConfig.inside=v==="middle"?!0:null,TB(r,v==="outside"?f:v,dx(o),n.get(["label","rotate"]))}eD(c,h,a.getRawValue(e),function(g){return JS(t,g)});var d=n.getModel(["emphasis"]);Oa(r,d.get("focus"),d.get("blurScope"),d.get("disabled")),ka(r,n),LB(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(g){g.style&&(g.style.fill=g.style.stroke="none")}))}function PB(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var RB=function(){function r(){}return r}(),by=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new RB},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f=0?e:null},30,!1);function EB(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],u=[],l=r.barWidth,f=0,h=a.length/3;f=s[0]&&t<=s[0]+u[0]&&e>=s[1]&&e<=s[1]+u[1])return o[f]}return-1}function px(r,t,e){if(rc(e,"cartesian2d")){var n=t,i=e.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=e.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function OB(r,t,e){var n=r.type==="polar"?dr:Dt;return new n({shape:px(t,e,r),silent:!0,z2:0})}const kB=AB;function BB(r){r.registerChartView(kB),r.registerSeriesModel(SB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,lt(iP,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,aP("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,vx("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var jo=Math.PI*2,Cy=Math.PI/180;function gx(r,t){return $r(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function yx(r,t){var e=gx(r,t),n=r.get("center"),i=r.get("radius");F(i)||(i=[0,i]),F(n)||(n=[n,n]);var a=pt(e.width,t.getWidth()),o=pt(e.height,t.getHeight()),s=Math.min(a,o),u=pt(i[0],s/2),l=pt(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else f=pt(n[0],a)+e.x,h=pt(n[1],o)+e.y;return{cx:f,cy:h,r0:u,r:l}}function NB(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=gx(n,e),s=yx(n,e),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*Cy,v=n.get("minAngle")*Cy,d=0;i.each(a,function(A){!isNaN(A)&&d++});var g=i.getSum(a),p=Math.PI/(g||d)*2,y=n.get("clockwise"),m=n.get("roseType"),_=n.get("stillShowZeroSum"),S=i.getDataExtent(a);S[0]=0;var b=jo,x=0,w=c,T=y?1:-1;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(A,D){var I;if(isNaN(A)){i.setItemLayout(D,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:u,cy:l,r0:h,r:m?NaN:f});return}m!=="area"?I=g===0&&_?p:A*p:I=jo/d,Ie?y:p,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*i,w=n+_.len,T=Math.abs(x)r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var g=n.getBoundingRect();a.width=g.width;var p=(n.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function sf(r){return r.position==="center"}function GB(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*zB,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),A=w.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=pt(I.get("edgeDistance"),l),V=I.get("bleedMargin"),O=D.getModel("labelLine"),k=O.get("length");k=pt(k,l);var z=O.get("length2");if(z=pt(z,l),Math.abs(T.endAngle-T.startAngle)0?"right":"left":$>0?"left":"right"}var Me=Math.PI,te=0,ar=I.get("rotate");if(ht(ar))te=ar*(Me/180);else if(L==="center")te=0;else if(ar==="radial"||ar===!0){var zn=$<0?-W+Me:-W;te=zn}else if(ar==="tangential"&&L!=="outside"&&L!=="outer"){var De=Math.atan2($,Z);De<0&&(De=Me*2+De);var uo=Z>0;uo&&(De=Me+De),te=De-Me}if(a=!!te,C.x=it,C.y=wt,C.rotation=te,C.setStyle({verticalAlign:"middle"}),It){C.setStyle({align:Nt});var Fu=C.states.select;Fu&&(Fu.x+=C.x,Fu.y+=C.y)}else{var mr=C.getBoundingRect().clone();mr.applyTransform(C.getComputedTransform());var fc=(C.style.margin||0)+2.1;mr.y-=fc/2,mr.height+=fc,e.push({label:C,labelLine:A,position:L,len:k,len2:z,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new X($,Z),linePoints:vt,textAlign:Nt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:V,rect:mr,unconstrainedWidth:mr.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:It})}}),!a&&r.get("avoidLabelOverlap")&&VB(e,n,i,u,l,c,f,h);for(var g=0;g0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h=a.r0}},t.type="pie",t}(xe);const $B=WB;function _x(r,t,e){t=F(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=V1(n,t).dimensions,a=new z1(i,r);return a.initData(n,e),a}var UB=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r}();const YB=UB;var XB=function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new YB(gt(this.getData,this),gt(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=_x(this,{coordDimensions:["value"],encodeDefaulter:lt(LD,this)}),n=[];return e.each(e.mapDimension("value"),function(i){n.push(i)}),this.seats=bC(n,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(e){var n=r.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){zf(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.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"},t}(rr);const ZB=XB;function qB(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(ht(o)&&!isNaN(o)&&o<0)})}}}function KB(r){r.registerChartView($B),r.registerSeriesModel(ZB),mL("pie",r.registerAction),r.registerLayout(lt(NB,"pie")),r.registerProcessor(FB("pie")),r.registerProcessor(qB("pie"))}var jB=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,n){return Pu(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,n,i){return i.point(n.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(rr);const QB=jB;var Sx=4,JB=function(){function r(){}return r}(),tN=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new JB},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,u=e.getContext?e.getContext():e,l=u&&a[0]=0;l--){var f=l*2,h=a[f]-s/2,c=a[f+1]-u/2;if(e>=h&&n>=c&&e<=h+s&&n<=c+u)return l}return-1},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();if(e=i[0],n=i[1],a.contain(e,n)){var o=this.hoverDataIdx=this.findDataIndex(e,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],u=1/0,l=1/0,f=-1/0,h=-1/0,c=0;c=0&&(l.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const rN=eN;var nN=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,n,i){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,n,i){this._symbolDraw.incrementalUpdate(e,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=e.end===n.getData().count()},t.prototype.updateTransform=function(e,n,i){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=ic("").reset(e,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var n=e.coordinateSystem,i=n&&n.getArea&&n.getArea();return e.get("clip",!0)?i:null},t.prototype._updateSymbolDraw=function(e,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new rN:new tx,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(e,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(xe);const iN=nN;function aN(r){le(wS),r.registerSeriesModel(QB),r.registerChartView(iN),r.registerLayout(ic("scatter"))}var oN=function(){function r(){}return r.prototype.getInitialData=function(t,e){var n,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),u;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),u=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),u=!0):t.layout=t.layout||"horizontal";var l=["x","y"],f=t.layout==="horizontal"?0:1,h=this._baseAxisDim=l[f],c=l[1-f],v=[i,a],d=v[f].get("type"),g=v[1-f].get("type"),p=t.data;if(p&&u){var y=[];M(p,function(S,b){var x;F(S)?(x=S.slice(),S.unshift(b)):F(S.value)?(x=B({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),t.data=y}var m=this.defaultValueDimensions,_=[{name:h,type:ch(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ch(g),dimsDef:m.slice()}];return _x(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:lt(D_,_,this)})},r.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},r}(),sN=["color","borderColor"],uN=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,n,i){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,n):this._incrementalRenderNormal(e,n)},t.prototype.eachRendered=function(e){eo(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e){var n=e.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=e.get("clip",!0),u=e.coordinateSystem,l=u.getArea&&u.getArea();this._data||a.removeAll(),n.diff(i).add(function(f){if(n.hasValue(f)){var h=n.getItemLayout(f);if(s&&My(l,h))return;var c=uf(h,f,!0);Gt(c,{shape:{points:h.ends}},e,f),lf(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}}).update(function(f,h){var c=i.getItemGraphicEl(h);if(!n.hasValue(f)){a.remove(c);return}var v=n.getItemLayout(f);if(s&&My(l,v)){a.remove(c);return}c?(Bt(c,{shape:{points:v.ends}},e,f),gu(c)):c=uf(v),lf(c,n,f,o),a.add(c),n.setItemGraphicEl(f,c)}).remove(function(f){var h=i.getItemGraphicEl(f);h&&a.remove(h)}).execute(),this._data=n},t.prototype._renderLarge=function(e){this._clear(),Iy(e,this.group);var n=e.get("clip",!0)?fx(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=e.next())!=null;){var s=i.getItemLayout(o),u=uf(s);lf(u,i,o,a),u.incremental=!0,this.group.add(u),this._progressiveEls.push(u)}},t.prototype._incrementalRenderLarge=function(e,n){Iy(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(xe),lN=function(){function r(){}return r}(),fN=function(r){G(t,r);function t(e){var n=r.call(this,e)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new lN},t.prototype.buildPath=function(e,n){var i=n.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))},t}(et);function uf(r,t,e){var n=r.ends;return new fN({shape:{points:e?hN(n,r):n},z2:100})}function My(r,t){for(var e=!0,n=0;n0?"borderColor":"borderColor0"])||e.get(["itemStyle",r>0?"color":"color0"]),a=e.getModel("itemStyle").getItemStyle(sN);t.useStyle(a),t.style.fill=null,t.style.stroke=i}const cN=uN;var xx=function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,n,i){var a=n.getItemLayout(e);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",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},t}(rr);Ne(xx,oN,!0);const dN=xx;function pN(r){!r||!F(r.series)||M(r.series,function(t){U(t)&&t.type==="k"&&(t.type="candlestick")})}var gN=["itemStyle","borderColor"],yN=["itemStyle","borderColor0"],mN=["itemStyle","color"],_N=["itemStyle","color0"],SN={seriesType:"candlestick",plan:ao(),performRawSeries:!0,reset:function(r,t){function e(a,o){return o.get(a>0?mN:_N)}function n(a,o){return o.get(a>0?gN:yN)}if(!t.isSeriesFiltered(r)){var i=r.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var u=o.getItemModel(s),l=o.getItemLayout(s).sign,f=u.getItemStyle();f.fill=e(l,u),f.stroke=n(l,u)||f.fill;var h=o.ensureUniqueItemVisual(s,"style");B(h,f)}}}}}};const xN=SN;var bN={seriesType:"candlestick",plan:ao(),reset:function(r){var t=r.coordinateSystem,e=r.getData(),n=wN(r,e),i=0,a=1,o=["x","y"],s=e.getDimensionIndex(e.mapDimension(o[i])),u=N(e.mapDimensionsAll(o[a]),e.getDimensionIndex,e),l=u[0],f=u[1],h=u[2],c=u[3];if(e.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||u.length<4)return;return{progress:r.pipelineContext.large?d:v};function v(g,p){for(var y,m=p.getStore();(y=g.next())!=null;){var _=m.get(s,y),S=m.get(l,y),b=m.get(f,y),x=m.get(h,y),w=m.get(c,y),T=Math.min(S,b),C=Math.max(S,b),A=R(T,_),D=R(C,_),I=R(x,_),L=R(w,_),P=[];E(P,D,0),E(P,A,1),P.push(O(L),O(D),O(I),O(A)),p.setItemLayout(y,{sign:Py(m,y,S,b,f),initBaseline:S>b?D[a]:A[a],ends:P,brushRect:V(x,w,_)})}function R(k,z){var W=[];return W[i]=z,W[a]=k,isNaN(z)||isNaN(k)?[NaN,NaN]:t.dataToPoint(W)}function E(k,z,W){var $=z.slice(),Z=z.slice();$[i]=vs($[i]+n/2,1,!1),Z[i]=vs(Z[i]-n/2,1,!0),W?k.push($,Z):k.push(Z,$)}function V(k,z,W){var $=R(k,W),Z=R(z,W);return $[i]-=n/2,Z[i]-=n/2,{x:$[0],y:$[1],width:n,height:Z[1]-$[1]}}function O(k){return k[i]=vs(k[i],1),k}}function d(g,p){for(var y=Ke(g.count*4),m=0,_,S=[],b=[],x,w=p.getStore();(x=g.next())!=null;){var T=w.get(s,x),C=w.get(l,x),A=w.get(f,x),D=w.get(h,x),I=w.get(c,x);if(isNaN(T)||isNaN(D)||isNaN(I)){y[m++]=NaN,m+=3;continue}y[m++]=Py(w,x,C,A,f),S[i]=T,S[a]=D,_=t.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[a]=I,_=t.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}p.setLayout("largePoints",y)}}};function Py(r,t,e,n,i){var a;return e>n?a=-1:e0?r.get(i,t-1)<=n?1:-1:1,a}function wN(r,t){var e=r.getBaseAxis(),n,i=e.type==="category"?e.getBandWidth():(n=e.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=pt(j(r.get("barMaxWidth"),i),i),o=pt(j(r.get("barMinWidth"),1),i),s=r.get("barWidth");return s!=null?pt(s,i):Math.max(Math.min(i/2,a),o)}const TN=bN;function CN(r){r.registerChartView(cN),r.registerSeriesModel(dN),r.registerPreprocessor(pN),r.registerVisual(xN),r.registerLayout(TN)}var $e=er.CMD;function di(r,t){return Math.abs(r-t)<1e-5}function kh(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,u=0;function l(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,R,E){di(L,R)&&di(P,E)||i.push(L,P,R,E,R,E)}function h(L,P,R,E,V,O){var k=Math.abs(P-L),z=Math.tan(k/4)*4/3,W=PT:D2&&n.push(i),n}function Bh(r,t,e,n,i,a,o,s,u,l){if(di(r,e)&&di(t,n)&&di(i,o)&&di(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var g=e-r,p=n-t,y=i-o,m=a-s,_=g*g+p*p,S=y*y+m*m;if(_=0&&T=0){u.push(o,s);return}var C=[],A=[];Vr(r,e,i,o,.5,C),Vr(t,n,a,s,.5,A),Bh(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],u,l),Bh(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],u,l)}function AN(r,t){var e=kh(r),n=[];t=t||1;for(var i=0;i0)for(var l=0;lMath.abs(l),h=bx([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;vi,o=bx([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c1?null:new X(g*u+r,g*l+t)}function IN(r,t,e){var n=new X;X.sub(n,e,t),n.normalize();var i=new X;X.sub(i,r,t);var a=i.dot(n);return a}function ei(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function LN(r,t,e){for(var n=r.length,i=[],a=0;ao?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),LN(t,l,f)}function Zs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);Zs(r,a[0],i,n),Zs(r,a[1],e-i,n)}return n}function PN(r,t){for(var e=[],n=0;n0)for(var b=n/e,x=-n/2;x<=n/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function js(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=N(r,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=N(a,function(s,u){return{cp:s,z:VN(s[0],s[1],t,e,n,i),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function Ax(r){return ON(r.path,r.count)}function Nh(){return{fromIndividuals:[],toIndividuals:[],count:0}}function GN(r,t,e){var n=[];function i(b){for(var x=0;x=0;i--)if(!e[i].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[i].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var WN={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Fy(r)&&(l=r,f=t),Fy(t)&&(l=t,f=r);function h(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(qs(T))h({many:[T],one:C},!0,_,S,!0);else{var A=s?J({delay:s(_,S)},u):u;ac(T,C,A),a(T,C,T,C,A)}}else for(var D=J({dividePath:WN[e],individualDelay:s&&function(V,O,k,z){return s(V+_,S)}},u),I=m?GN(x,w,D):HN(w,x,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;Et.length,v=l?zy(f,l):zy(c?t:r,[c?r:t]),d=0,g=0;gMx))for(var i=n.getIndices(),a=UN(n),o=0;o0&&S.group.traverse(function(x){x instanceof et&&!x.animators.length&&x.animateFrom({style:{opacity:0}},b)})})}function Gy(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Hy(r){return F(r)?r.sort().join(","):r}function Ir(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ZN(r,t){var e=K(),n=K(),i=K();return M(r.oldSeries,function(a,o){var s=r.oldData[o],u=Gy(a),l=Hy(u);n.set(l,s),F(u)&&M(u,function(f){i.set(f,{data:s,key:l})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.getData(),s=Gy(a),u=Hy(s),l=n.get(u);if(l)e.set(u,{oldSeries:[{divide:Ir(l),data:l}],newSeries:[{divide:Ir(o),data:o}]});else if(F(s)){var f=[];M(s,function(v){var d=n.get(v);d&&f.push({divide:Ir(d),data:d})}),f.length&&e.set(u,{oldSeries:f,newSeries:[{data:o,divide:Ir(o)}]})}else{var h=i.get(s);if(h){var c=e.get(h.key);c||(c={oldSeries:[{data:h.data,divide:Ir(h.data)}],newSeries:[]},e.set(h.key,c)),c.newSeries.push({data:o,divide:Ir(o)})}}}}),e}function Wy(r,t){for(var e=0;e=0&&i.push({data:t.oldData[s],divide:Ir(t.oldData[s]),dim:o.dimension})}),M(Mt(r.to),function(o){var s=Wy(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({data:u,divide:Ir(u),dim:o.dimension})}}),i.length>0&&a.length>0&&Dx(i,a,n)}function KN(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(Mt(n.seriesTransition),function(i){M(Mt(i.to),function(a){for(var o=n.updatedSeries,s=0;s=gn:-l>=gn),v=l>0?l%gn:l%gn+gn,d=!1;c?d=!0:Rr(h)?d=!1:d=v>=Ix==!!f;var g=t+n*df(o),p=e+i*cf(o);this._start&&this._add("M",g,p);var y=Math.round(a*jN);if(c){var m=1/this._p,_=(f?1:-1)*(gn-m);this._add("A",n,i,y,1,+f,t+n*df(o+_),e+i*cf(o+_)),m>.01&&this._add("A",n,i,y,0,+f,g,p)}else{var S=t+n*df(s),b=e+i*cf(s);this._add("A",n,i,y,+d,+f,S,b)}},r.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,n,i,a,o,s,u,l){for(var f=[],h=this._p,c=1;c"}function s5(r){return""}function oc(r,t){t=t||{};var e=t.newline?` `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs;return o5(o,s)+se(i.text)+(a?""+e+N(a,function(u){return n(u)}).join(e)+e:"")+s5(o)}return n(r)}function u5(r,t,e){e=e||{};var n=e.newline?` -`:"",i=" {"+n,a=n+"}",o=N(ut(r),function(u){return u+i+N(ut(r[u]),function(l){return l+":"+r[u][l]+";"}).join(n)+a}).join(n),s=N(ut(t),function(u){return"@keyframes "+u+i+N(ut(t[u]),function(l){return l+i+N(ut(t[u][l]),function(f){var h=t[u][l][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function zh(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $y(r,t,e,n){return kt("svg","root",{width:r,height:t,xmlns:Px,"xmlns:xlink":Rx,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var Uy={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"},_n="transform-origin";function l5(r,t,e){var n=B({},r.shape);B(n,t),r.buildPath(e,n);var i=new Lx;return i.reset(Vm(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function f5(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[_n]=e+"px "+n+"px")}var h5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ox(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function v5(r,t,e){var n=r.shape.paths,i={},a,o;if(A(n,function(u){var l=zh(e.zrId);l.animation=!0,Nu(u,{},l,!0);var f=l.cssAnims,h=l.cssNodes,c=ut(f),v=c.length;if(!!v){o=c[v-1];var d=f[o];for(var g in d){var p=d[g];i[g]=i[g]||{d:""},i[g].d+=p.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=Ox(i,e);return a.replace(o,s)}}function Yy(r){return H(r)?Uy[r]?"cubic-bezier("+Uy[r]+")":jh(r)?r:"":""}function Nu(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof K0){var s=v5(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l0}).length){var Nt=Ox(w,e);return Nt+" "+m[0]+" both"}}for(var p in u){var s=g(u[p]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}var Za=Math.round;function kx(r){return r&&H(r.src)}function Bx(r){return r&&q(r.toDataURL)}function sc(r,t,e,n){n5(function(i,a){var o=i==="fill"||i==="stroke";o&&WT(a)?S5(t,r,i,n):o&&HT(a)?x5(e,r,i,n):r[i]=a},t,e,!1),_5(e,r,n)}function Xy(r){return Rr(r[0]-1)&&Rr(r[1])&&Rr(r[2])&&Rr(r[3]-1)}function c5(r){return Rr(r[4])&&Rr(r[5])}function uc(r,t,e){if(t&&!(c5(t)&&Xy(t))){var n=e?10:1e4;r.transform=Xy(t)?"translate("+Za(t[4]*n)/n+" "+Za(t[5]*n)/n+")":BT(t)}}function Zy(r,t,e){for(var n=r.points,i=[],a=0;a"u"){var h="Image width/height must been given explictly in svg-ssr renderer.";be(s,h),be(u,h)}else if(s==null||u==null){var c=function(m,_){if(m){var S=m.elm,b=m.attrs.width=s||_.width,x=m.attrs.height=u||_.height;S&&(S.setAttribute("width",b),S.setAttribute("height",x))}},v=iv(l,null,r,function(m){c(d,m),c(o,m)});v&&v.width&&v.height&&(s=s||v.width,u=u||v.height)}o=kt("image","img",{href:l,width:s,height:u}),a.width=s,a.height=u}else i.svgElement&&(o=Q(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(!!o){a.patternTransform=Gm(i);var d=kt("pattern","",a,[o]),g=oc(d),p=n.patternCache,y=p[g];y||(y=n.zrId+"-p"+n.patternIdx++,p[g]=y,a.id=y,d=n.defs[y]=kt("pattern",y,a,[o])),t[e]=au(y)}}function b5(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=kt("clipPath",a,o,[Nx(r,e)])}t["clip-path"]=au(a)}function jy(r){return document.createTextNode(r)}function xn(r,t,e){r.insertBefore(t,e)}function Qy(r,t){r.removeChild(t)}function Jy(r,t){r.appendChild(t)}function Fx(r){return r.parentNode}function zx(r){return r.nextSibling}function pf(r,t){r.textContent=t}var tm=58,w5=120,T5=kt("","");function Vh(r){return r===void 0}function Ue(r){return r!==void 0}function C5(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function ha(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function qa(r){var t,e=r.children,n=r.tag;if(Ue(n)){var i=r.elm=Ex(n);if(lc(T5,r),F(e))for(t=0;ta?(d=e[u+1]==null?null:e[u+1].elm,Vx(r,d,e,i,u)):Qs(r,t,n,a))}function oi(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(lc(r,t),Vh(t.text)?Ue(n)&&Ue(i)?n!==i&&M5(e,n,i):Ue(i)?(Ue(r.text)&&pf(e,""),Vx(e,null,i,0,i.length-1)):Ue(n)?Qs(e,n,0,n.length-1):Ue(r.text)&&pf(e,""):r.text!==t.text&&(Ue(n)&&Qs(e,n,0,n.length-1),pf(e,t.text)))}function A5(r,t){if(ha(r,t))oi(r,t);else{var e=r.elm,n=Fx(e);qa(t),n!==null&&(xn(n,t.elm,zx(e)),Qs(n,[r],0,0))}return t}var D5=0,I5=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=em(),this.configLayer=em(),this.storage=e,this._opts=n=B({},n),this.root=t,this._id="zr"+D5++,this._oldVNode=$y(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Ex("svg");lc(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",A5(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Ky(t,zh(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,a=this._height,o=zh(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var s=[];if(n&&n!=="none"){var u=xi(n),l=u.color,f=u.opacity;this._bgVNode=kt("rect","bg",{width:i,height:a,x:"0",y:"0",id:"0",fill:l,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=kt("g","main",{},[]);this._paintList(e,o,h?h.children:s),h&&s.push(h);var c=N(ut(o.defs),function(g){return o.defs[g]});if(c.length&&s.push(kt("defs","defs",{},c)),t.animation){var v=u5(o.cssNodes,o.cssAnims,{newline:!0});if(v){var d=kt("style","stl",{},[],v);s.push(d)}}return $y(i,a,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},oc(this.renderToVNode({animation:j(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:j(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=xi(t),i=n.color,a=n.opacity;e.elm.setAttribute("fill",i),a<1&&e.elm.setAttribute("fill-opacity",a)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var i=t.length,a=[],o=0,s,u,l=0,f=0;f=0&&!(c&&u&&c[g]===u[g]);g--);for(var p=d-1;p>g;p--)o--,s=a[o-1];for(var y=g+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var M=v.dpr,D=0;D0&&t>i[0]){for(u=0;ut);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Jo:0),this._needsManuallyCompositing),f.__builtin__||Yh("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&ue&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tt(n[t],e,!0):n[t]=e;for(var i=0;i{r&&t&&e&&r.addEventListener(t,e,n)},V5=(r,t,e,n=!1)=>{r&&t&&e&&r.removeEventListener(t,e,n)},na=lm({name:"RayChart",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},canvasRender:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},renderSuccess:{type:Function,default:()=>({})},theme:{type:[String,Object],default:""},autoChangeTheme:{type:Boolean,default:!1}},setup(r){const t=eb(),{themeValue:e}=rb(t),n=va(),i=va();let a;const o=nb(()=>({"--ray-chart-width":r.width,"--ray-chart-height":r.height})),s=async()=>{le([vk,lk,vE,Kk,Xk,Ik,VO,Ok]),le([BB,mB,KB,CN,aN]),le([eR,KN]),le([r.canvasRender?F5:P5])},u=()=>{let v=Mw(r.options);const d=g=>Object.assign(v,g);return r.showAria&&(v=d({aria:{enabled:!0,decal:{show:!0}}})),v},l=v=>{const d=n.value,g=u();a=p2(d,v),i.value=a,g&&a.setOption(g)},f=v=>{if(r.autoChangeTheme){l(v?"dark":"");return}r.theme||l("")},h=()=>{a&&(a.clear(),a.dispose())},c=()=>{a&&a.resize()};return vc(()=>e.value,v=>{r.autoChangeTheme&&(h(),f(v))}),vc(()=>r.showAria,()=>{h(),f()}),ib(async()=>{await s()}),ab(()=>{ob(()=>{r.autoChangeTheme?f(e.value):r.theme?l("dark"):l(""),r.autoResize&&z5(window,"resize",c)})}),sb(()=>{h(),V5(window,"resize",c)}),{rayChartRef:n,cssVarsRef:o,echartInstance:i}},render(){return Pt("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartRef"},null)}}),H5=lm({name:"Echart",setup(){const r=va(),t=va(!1),e=va(!1);return{baseOptions:{legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"\u65E5\u671F",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},baseChartRef:r,chartLoading:t,handleLoadingShow:o=>{if(r.value){const{echartInstance:s}=r.value;o?s.showLoading():s.hideLoading()}},chartAria:e,handleAriaShow:o=>{e.value=o}}},render(){return Pt("div",{class:"echart"},[Pt(zn,{title:"RayChart\u7EC4\u4EF6\u4F7F\u7528"},{default:()=>[ub("\u5728\u4F7F\u7528\u8BE5\u7EC4\u4EF6\u65F6, \u4E00\u5B9A\u8981\u6CE8\u610F\u6839\u7EC4\u4EF6\u7684\u9AD8\u5EA6\u521D\u59CB\u5316\u95EE\u9898, \u5982\u679C\u9700\u8981\u4F7F\u7528\u5176\u4F59\u7684\u56FE\u5229, \u9700\u8981\u81EA\u5DF1\u624B\u52A8\u53BB\u6CE8\u518C. \u8BE5\u7EC4\u4EF6\u5B9E\u73B0\u4E86\u81EA\u52A8\u8DDF\u968F\u6A21\u677F\u4E3B\u9898\u5207\u6362\u529F\u80FD, \u4F46\u662F\u52A8\u6001\u5207\u6362\u635F\u8017\u8F83\u5927, \u6240\u4EE5\u9ED8\u8BA4\u4E0D\u542F\u7528")]}),Pt(zn,{title:"\u57FA\u7840\u4F7F\u7528"},{default:()=>[Pt("div",{class:"chart--container"},[Pt(na,{options:this.baseOptions},null)])]}),Pt(zn,{title:"\u80FD\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u53EF\u89C6\u5316\u56FE"},{default:()=>[Pt("div",{class:"chart--container"},[Pt(na,{autoChangeTheme:!0,options:this.baseOptions},null)])]}),Pt(zn,{title:"\u4E0D\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u6697\u8272\u4E3B\u9898\u53EF\u89C6\u5316\u56FE"},{default:()=>[Pt("div",{class:"chart--container"},[Pt(na,{theme:"dark",options:this.baseOptions},null)])]}),Pt(zn,{title:"\u52A0\u8F7D\u52A8\u753B"},{default:()=>[Pt(cc,{value:this.chartLoading,"onUpdate:value":r=>this.chartLoading=r,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u52A0\u8F7D\u52A8\u753B",unchecked:()=>"\u663E\u793A\u52A0\u8F7D\u52A8\u753B"}),Pt("div",{class:"chart--container"},[Pt(na,{ref:"baseChartRef",options:this.baseOptions},null)])]}),Pt(zn,{title:"\u8D34\u753B\u53EF\u89C6\u5316\u56FE"},{default:()=>[Pt(cc,{value:this.chartAria,"onUpdate:value":r=>this.chartAria=r,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u8D34\u82B1",unchecked:()=>"\u663E\u793A\u8D34\u82B1"}),Pt("div",{class:"chart--container"},[Pt(na,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{H5 as default}; +`:"",i=" {"+n,a=n+"}",o=N(ut(r),function(u){return u+i+N(ut(r[u]),function(l){return l+":"+r[u][l]+";"}).join(n)+a}).join(n),s=N(ut(t),function(u){return"@keyframes "+u+i+N(ut(t[u]),function(l){return l+i+N(ut(t[u][l]),function(f){var h=t[u][l][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function zh(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $y(r,t,e,n){return kt("svg","root",{width:r,height:t,xmlns:Px,"xmlns:xlink":Rx,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+t:!1},e)}var Uy={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"},Sn="transform-origin";function l5(r,t,e){var n=B({},r.shape);B(n,t),r.buildPath(e,n);var i=new Lx;return i.reset(Vm(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function f5(r,t){var e=t.originX,n=t.originY;(e||n)&&(r[Sn]=e+"px "+n+"px")}var h5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Ox(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function v5(r,t,e){var n=r.shape.paths,i={},a,o;if(M(n,function(u){var l=zh(e.zrId);l.animation=!0,Nu(u,{},l,!0);var f=l.cssAnims,h=l.cssNodes,c=ut(f),v=c.length;if(!!v){o=c[v-1];var d=f[o];for(var g in d){var p=d[g];i[g]=i[g]||{d:""},i[g].d+=p.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=Ox(i,e);return a.replace(o,s)}}function Yy(r){return H(r)?Uy[r]?"cubic-bezier("+Uy[r]+")":jh(r)?r:"":""}function Nu(r,t,e,n){var i=r.animators,a=i.length,o=[];if(r instanceof K0){var s=v5(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var u={},l=0;l0}).length){var Nt=Ox(w,e);return Nt+" "+m[0]+" both"}}for(var p in u){var s=g(u[p]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}var Za=Math.round;function kx(r){return r&&H(r.src)}function Bx(r){return r&&q(r.toDataURL)}function sc(r,t,e,n){n5(function(i,a){var o=i==="fill"||i==="stroke";o&&WT(a)?S5(t,r,i,n):o&&HT(a)?x5(e,r,i,n):r[i]=a},t,e,!1),_5(e,r,n)}function Xy(r){return Rr(r[0]-1)&&Rr(r[1])&&Rr(r[2])&&Rr(r[3]-1)}function c5(r){return Rr(r[4])&&Rr(r[5])}function uc(r,t,e){if(t&&!(c5(t)&&Xy(t))){var n=e?10:1e4;r.transform=Xy(t)?"translate("+Za(t[4]*n)/n+" "+Za(t[5]*n)/n+")":BT(t)}}function Zy(r,t,e){for(var n=r.points,i=[],a=0;a"u"){var h="Image width/height must been given explictly in svg-ssr renderer.";be(s,h),be(u,h)}else if(s==null||u==null){var c=function(m,_){if(m){var S=m.elm,b=m.attrs.width=s||_.width,x=m.attrs.height=u||_.height;S&&(S.setAttribute("width",b),S.setAttribute("height",x))}},v=iv(l,null,r,function(m){c(d,m),c(o,m)});v&&v.width&&v.height&&(s=s||v.width,u=u||v.height)}o=kt("image","img",{href:l,width:s,height:u}),a.width=s,a.height=u}else i.svgElement&&(o=Q(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(!!o){a.patternTransform=Gm(i);var d=kt("pattern","",a,[o]),g=oc(d),p=n.patternCache,y=p[g];y||(y=n.zrId+"-p"+n.patternIdx++,p[g]=y,a.id=y,d=n.defs[y]=kt("pattern",y,a,[o])),t[e]=au(y)}}function b5(r,t,e){var n=e.clipPathCache,i=e.defs,a=n[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=kt("clipPath",a,o,[Nx(r,e)])}t["clip-path"]=au(a)}function jy(r){return document.createTextNode(r)}function bn(r,t,e){r.insertBefore(t,e)}function Qy(r,t){r.removeChild(t)}function Jy(r,t){r.appendChild(t)}function Fx(r){return r.parentNode}function zx(r){return r.nextSibling}function pf(r,t){r.textContent=t}var tm=58,w5=120,T5=kt("","");function Vh(r){return r===void 0}function Ue(r){return r!==void 0}function C5(r,t,e){for(var n={},i=t;i<=e;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function ha(r,t){var e=r.key===t.key,n=r.tag===t.tag;return n&&e}function qa(r){var t,e=r.children,n=r.tag;if(Ue(n)){var i=r.elm=Ex(n);if(lc(T5,r),F(e))for(t=0;ta?(d=e[u+1]==null?null:e[u+1].elm,Vx(r,d,e,i,u)):Qs(r,t,n,a))}function si(r,t){var e=t.elm=r.elm,n=r.children,i=t.children;r!==t&&(lc(r,t),Vh(t.text)?Ue(n)&&Ue(i)?n!==i&&A5(e,n,i):Ue(i)?(Ue(r.text)&&pf(e,""),Vx(e,null,i,0,i.length-1)):Ue(n)?Qs(e,n,0,n.length-1):Ue(r.text)&&pf(e,""):r.text!==t.text&&(Ue(n)&&Qs(e,n,0,n.length-1),pf(e,t.text)))}function M5(r,t){if(ha(r,t))si(r,t);else{var e=r.elm,n=Fx(e);qa(t),n!==null&&(bn(n,t.elm,zx(e)),Qs(n,[r],0,0))}return t}var D5=0,I5=function(){function r(t,e,n){if(this.type="svg",this.refreshHover=em(),this.configLayer=em(),this.storage=e,this._opts=n=B({},n),this.root=t,this._id="zr"+D5++,this._oldVNode=$y(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Ex("svg");lc(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}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 t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",M5(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Ky(t,zh(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,a=this._height,o=zh(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var s=[];if(n&&n!=="none"){var u=bi(n),l=u.color,f=u.opacity;this._bgVNode=kt("rect","bg",{width:i,height:a,x:"0",y:"0",id:"0",fill:l,"fill-opacity":f}),s.push(this._bgVNode)}else this._bgVNode=null;var h=t.compress?null:this._mainVNode=kt("g","main",{},[]);this._paintList(e,o,h?h.children:s),h&&s.push(h);var c=N(ut(o.defs),function(g){return o.defs[g]});if(c.length&&s.push(kt("defs","defs",{},c)),t.animation){var v=u5(o.cssNodes,o.cssAnims,{newline:!0});if(v){var d=kt("style","stl",{},[],v);s.push(d)}}return $y(i,a,s,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},oc(this.renderToVNode({animation:j(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:j(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=bi(t),i=n.color,a=n.opacity;e.elm.setAttribute("fill",i),a<1&&e.elm.setAttribute("fill-opacity",a)}},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,n){for(var i=t.length,a=[],o=0,s,u,l=0,f=0;f=0&&!(c&&u&&c[g]===u[g]);g--);for(var p=d-1;p>g;p--)o--,s=a[o-1];for(var y=g+1;y=s)}}for(var h=this.__startIndex;h15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var A=v.dpr,D=0;D0&&t>i[0]){for(u=0;ut);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?Jo:0),this._needsManuallyCompositing),f.__builtin__||Yh("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&ue&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tt(n[t],e,!0):n[t]=e;for(var i=0;i{r&&t&&e&&r.addEventListener(t,e,n)},V5=(r,t,e,n=!1)=>{r&&t&&e&&r.removeEventListener(t,e,n)},ni=lm({name:"RayChart",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"},autoResize:{type:[Boolean,Object],default:!0},canvasRender:{type:Boolean,default:!0},showAria:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},success:{type:Function,default:()=>({})},error:{type:Function,default:()=>({})},theme:{type:[String,Object],default:""},autoChangeTheme:{type:Boolean,default:!1}},setup(r){const t=eb(),{themeValue:e}=rb(t),n=va(),i=va();let a;const o=nb(()=>({"--ray-chart-width":r.width,"--ray-chart-height":r.height})),s=async()=>{le([vk,lk,vE,Kk,Xk,Ik,VO,Ok]),le([BB,mB,KB,CN,aN]),le([eR,KN]),le([r.canvasRender?F5:P5])},u=()=>{let v=Aw(r.options);const d=g=>Object.assign(v,g);return r.showAria&&(v=d({aria:{enabled:!0,decal:{show:!0}}})),v},l=v=>{var p,y;const d=n.value,g=u();try{a=p2(d,v),i.value=a,g&&a.setOption(g),(p=r.success)==null||p.call(r,a)}catch{(y=r.error)==null||y.call(r)}},f=v=>{if(r.autoChangeTheme){l(v?"dark":"");return}r.theme||l("")},h=()=>{a&&(a.clear(),a.dispose())},c=()=>{a&&a.resize()};return vc(()=>[e.value],([v])=>{r.autoChangeTheme&&(h(),f(v))}),vc(()=>r.showAria,()=>{h(),r.autoChangeTheme||r.theme?l("dark"):l("")}),ib(async()=>{await s()}),ab(()=>{ob(()=>{r.autoChangeTheme?f(e.value):r.theme?l("dark"):l(""),r.autoResize&&z5(window,"resize",c)})}),sb(()=>{h(),V5(window,"resize",c)}),{rayChartRef:n,cssVarsRef:o,echartInstance:i}},render(){return Tt("div",{class:"ray-chart",style:[this.cssVarsRef],ref:"rayChartRef"},null)}}),H5=lm({name:"Echart",setup(){const r=va(),t=va(!1),e=va(!1);return{baseOptions:{legend:{},tooltip:{},xAxis:{type:"category",data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{name:"\u65E5\u671F",data:[120,200,150,80,70,110,130],type:"bar",showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)"}}]},baseChartRef:r,chartLoading:t,handleLoadingShow:l=>{if(r.value){const{echartInstance:f}=r.value;l?f.showLoading():f.hideLoading()}},chartAria:e,handleAriaShow:l=>{e.value=l},handleChartRenderSuccess:l=>{window.$notification.info({title:"\u53EF\u89C6\u5316\u56FE\u6E32\u67D3\u6210\u529F\u56DE\u8C03\u51FD\u6570",content:"\u53EF\u89C6\u5316\u56FE\u6E32\u67D3\u6210\u529F, \u5E76\u4E14\u8FD4\u56DE\u4E86\u5F53\u524D\u53EF\u89C6\u5316\u56FE\u5B9E\u4F8B",duration:5*1e3}),console.log(l)},basePieOptions:{title:{text:"Referer of a Website",subtext:"Fake Data",left:"center"},tooltip:{trigger:"item"},legend:{orient:"vertical",left:"left"},series:[{name:"Access From",type:"pie",radius:"50%",data:[{value:1048,name:"Search Engine"},{value:735,name:"Direct"},{value:580,name:"Email"},{value:484,name:"Union Ads"},{value:300,name:"Video Ads"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},baseLineOptions:{title:{text:"Stacked Area Chart"},tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{data:["Email","Union Ads","Video Ads","Direct","Search Engine"]},toolbox:{feature:{saveAsImage:{}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}],yAxis:[{type:"value"}],series:[{name:"Email",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[120,132,101,134,90,230,210]},{name:"Union Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[220,182,191,234,290,330,310]},{name:"Video Ads",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[150,232,201,154,190,330,410]},{name:"Direct",type:"line",stack:"Total",areaStyle:{},emphasis:{focus:"series"},data:[320,332,301,334,390,330,320]},{name:"Search Engine",type:"line",stack:"Total",label:{show:!0,position:"top"},areaStyle:{},emphasis:{focus:"series"},data:[820,932,901,934,1290,1330,1320]}]}}},render(){return Tt("div",{class:"echart"},[Tt(Ur,{title:"RayChart\u7EC4\u4EF6\u4F7F\u7528"},{default:()=>[ub("\u5728\u4F7F\u7528\u8BE5\u7EC4\u4EF6\u65F6, \u4E00\u5B9A\u8981\u6CE8\u610F\u6839\u7EC4\u4EF6\u7684\u9AD8\u5EA6\u521D\u59CB\u5316\u95EE\u9898, \u5982\u679C\u9700\u8981\u4F7F\u7528\u5176\u4F59\u7684\u56FE\u5229, \u9700\u8981\u81EA\u5DF1\u624B\u52A8\u53BB\u6CE8\u518C. \u8BE5\u7EC4\u4EF6\u5B9E\u73B0\u4E86\u81EA\u52A8\u8DDF\u968F\u6A21\u677F\u4E3B\u9898\u5207\u6362\u529F\u80FD, \u4F46\u662F\u52A8\u6001\u5207\u6362\u635F\u8017\u8F83\u5927, \u6240\u4EE5\u9ED8\u8BA4\u4E0D\u542F\u7528")]}),Tt(Ur,{title:"\u57FA\u7840\u4F7F\u7528"},{default:()=>[Tt("div",{class:"chart--container"},[Tt(ni,{options:this.baseOptions},null)])]}),Tt(Ur,{title:"\u6E32\u67D3\u6210\u529F\u540E\u8FD0\u884C\u56DE\u8C03\u51FD\u6570"},{default:()=>[Tt("div",{class:"chart--container"},[Tt(ni,{options:this.basePieOptions,success:this.handleChartRenderSuccess.bind(this)},null)])]}),Tt(Ur,{title:"\u80FD\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u53EF\u89C6\u5316\u56FE"},{default:()=>[Tt("div",{class:"chart--container"},[Tt(ni,{autoChangeTheme:!0,options:this.baseLineOptions,showAria:this.chartAria},null)])]}),Tt(Ur,{title:"\u4E0D\u8DDF\u968F\u4E3B\u9898\u5207\u6362\u7684\u6697\u8272\u4E3B\u9898\u53EF\u89C6\u5316\u56FE"},{default:()=>[Tt("div",{class:"chart--container"},[Tt(ni,{theme:"dark",options:this.baseOptions},null)])]}),Tt(Ur,{title:"\u52A0\u8F7D\u52A8\u753B"},{default:()=>[Tt(cc,{value:this.chartLoading,"onUpdate:value":r=>this.chartLoading=r,onUpdateValue:this.handleLoadingShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u52A0\u8F7D\u52A8\u753B",unchecked:()=>"\u663E\u793A\u52A0\u8F7D\u52A8\u753B"}),Tt("div",{class:"chart--container"},[Tt(ni,{ref:"baseChartRef",options:this.baseOptions},null)])]}),Tt(Ur,{title:"\u8D34\u753B\u53EF\u89C6\u5316\u56FE"},{default:()=>[Tt(cc,{value:this.chartAria,"onUpdate:value":r=>this.chartAria=r,onUpdateValue:this.handleAriaShow.bind(this),style:["padding: 18px 0"]},{checked:()=>"\u9690\u85CF\u8D34\u82B1",unchecked:()=>"\u663E\u793A\u8D34\u82B1"}),Tt("div",{class:"chart--container"},[Tt(ni,{options:this.baseOptions,showAria:this.chartAria},null)])]})])}});export{H5 as default}; diff --git a/assets/index.6f5dbead.js.gz b/assets/index.6f5dbead.js.gz new file mode 100644 index 00000000..22d613b4 Binary files /dev/null and b/assets/index.6f5dbead.js.gz differ diff --git a/assets/index.87c6b1fe.js.gz b/assets/index.87c6b1fe.js.gz deleted file mode 100644 index 383e6eba..00000000 Binary files a/assets/index.87c6b1fe.js.gz and /dev/null differ diff --git a/assets/index.dfa30cb8.js b/assets/index.907f0be6.js similarity index 99% rename from assets/index.dfa30cb8.js rename to assets/index.907f0be6.js index 96a476d1..635088bb 100644 --- a/assets/index.dfa30cb8.js +++ b/assets/index.907f0be6.js @@ -2343,4 +2343,4 @@ ${t} * vue-router v4.1.3 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const yn=typeof window<"u";function LI(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const et=Object.assign;function rs(e,t){const o={};for(const r in t){const n=t[r];o[r]=mo(n)?n.map(e):e(n)}return o}const yi=()=>{},mo=Array.isArray,DI=/\/$/,FI=e=>e.replace(DI,"");function ns(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return a=0&&(s=-1),s>-1&&(r=t.slice(0,s),i=t.slice(s+1,a>-1?a:t.length),n=e(i)),a>-1&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=WI(r!=null?r:t,o),{fullPath:r+(i&&"?")+i+l,path:r,query:n,hash:l}}function HI(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function kh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function NI(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Mn(t.matched[r],o.matched[n])&&xb(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!jI(e[o],t[o]))return!1;return!0}function jI(e,t){return mo(e)?Eh(e,t):mo(t)?Eh(t,e):e===t}function Eh(e,t){return mo(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function WI(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/");let n=o.length-1,i,l;for(i=0;i1&&n--;else break;return o.slice(0,n).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Wi;(function(e){e.pop="pop",e.push="push"})(Wi||(Wi={}));var wi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(wi||(wi={}));function VI(e){if(!e)if(yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),FI(e)}const UI=/^[^#]+#/;function KI(e,t){return e.replace(UI,"#")+t}function GI(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const za=()=>({left:window.pageXOffset,top:window.pageYOffset});function qI(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=GI(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ih(e,t){return(history.state?history.state.position-t:-1)+e}const ac=new Map;function YI(e,t){ac.set(e,t)}function XI(e){const t=ac.get(e);return ac.delete(e),t}let ZI=()=>location.protocol+"//"+location.host;function Cb(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let a=n.includes(e.slice(i))?e.slice(i).length:1,s=n.slice(a);return s[0]!=="/"&&(s="/"+s),kh(s,"")}return kh(o,e)+r+n}function JI(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const p=Cb(e,location),h=o.value,b=t.value;let v=0;if(f){if(o.value=p,t.value=f,l&&l===h){l=null;return}v=b?f.position-b.position:0}else r(p);n.forEach(g=>{g(o.value,h,{delta:v,type:Wi.pop,direction:v?v>0?wi.forward:wi.back:wi.unknown})})};function s(){l=o.value}function c(f){n.push(f);const p=()=>{const h=n.indexOf(f);h>-1&&n.splice(h,1)};return i.push(p),p}function d(){const{history:f}=window;!f.state||f.replaceState(et({},f.state,{scroll:za()}),"")}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:s,listen:c,destroy:u}}function Rh(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?za():null}}function QI(e){const{history:t,location:o}=window,r={value:Cb(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:ZI()+e+s;try{t[d?"replaceState":"pushState"](c,"",f),n.value=c}catch(p){console.error(p),o[d?"replace":"assign"](f)}}function l(s,c){const d=et({},t.state,Rh(n.value.back,s,n.value.forward,!0),c,{position:n.value.position});i(s,d,!0),r.value=s}function a(s,c){const d=et({},n.value,t.state,{forward:s,scroll:za()});i(d.current,d,!0);const u=et({},Rh(r.value,s,null),{position:d.position+1},c);i(s,u,!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function eR(e){e=VI(e);const t=QI(e),o=JI(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=et({location:"",base:e,go:r,createHref:KI.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function tR(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),eR(e)}function oR(e){return typeof e=="string"||e&&typeof e=="object"}function yb(e){return typeof e=="string"||typeof e=="symbol"}const or={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},wb=Symbol("");var Oh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Oh||(Oh={}));function Bn(e,t){return et(new Error,{type:e,[wb]:!0},t)}function Ao(e,t){return e instanceof Error&&wb in e&&(t==null||!!(e.type&t))}const Ah="[^/]+?",rR={sensitive:!1,strict:!1,start:!0,end:!0},nR=/[.+*?^${}()[\]/\\]/g;function iR(e,t){const o=et({},rR,t),r=[];let n=o.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];o.strict&&!c.length&&(n+="/");for(let u=0;ut.length?t.length===1&&t[0]===40+40?1:-1:0}function aR(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const sR={type:0,value:""},cR=/[a-zA-Z0-9_]/;function dR(e){if(!e)return[[]];if(e==="/")return[[sR]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${o})/"${c}": ${p}`)}let o=0,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,c="",d="";function u(){!c||(o===0?i.push({type:0,value:c}):o===1||o===2||o===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;a{l(S)}:yi}function l(d){if(yb(d)){const u=r.get(d);u&&(r.delete(d),o.splice(o.indexOf(u),1),u.children.forEach(l),u.alias.forEach(l))}else{const u=o.indexOf(d);u>-1&&(o.splice(u,1),d.record.name&&r.delete(d.record.name),d.children.forEach(l),d.alias.forEach(l))}}function a(){return o}function s(d){let u=0;for(;u=0&&(d.record.path!==o[u].record.path||!Sb(d,o[u]));)u++;o.splice(u,0,d),d.record.name&&!Bh(d)&&r.set(d.record.name,d)}function c(d,u){let f,p={},h,b;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw Bn(1,{location:d});b=f.record.name,p=et(hR(u.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),d.params),h=f.stringify(p)}else if("path"in d)h=d.path,f=o.find(S=>S.re.test(h)),f&&(p=f.parse(h),b=f.record.name);else{if(f=u.name?r.get(u.name):o.find(S=>S.re.test(u.path)),!f)throw Bn(1,{location:d,currentLocation:u});b=f.record.name,p=et({},u.params,d.params),h=f.stringify(p)}const v=[];let g=f;for(;g;)v.unshift(g.record),g=g.parent;return{name:b,path:h,params:p,matched:v,meta:gR(v)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:c,removeRoute:l,getRoutes:a,getRecordMatcher:n}}function hR(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function pR(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mR(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="boolean"?o:o[r];return t}function Bh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gR(e){return e.reduce((t,o)=>et(t,o.meta),{})}function Lh(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}function Sb(e,t){return t.children.some(o=>o===e||Sb(e,o))}const $b=/#/g,vR=/&/g,bR=/\//g,xR=/=/g,CR=/\?/g,_b=/\+/g,yR=/%5B/g,wR=/%5D/g,Pb=/%5E/g,SR=/%60/g,zb=/%7B/g,$R=/%7C/g,Tb=/%7D/g,_R=/%20/g;function jd(e){return encodeURI(""+e).replace($R,"|").replace(yR,"[").replace(wR,"]")}function PR(e){return jd(e).replace(zb,"{").replace(Tb,"}").replace(Pb,"^")}function sc(e){return jd(e).replace(_b,"%2B").replace(_R,"+").replace($b,"%23").replace(vR,"%26").replace(SR,"`").replace(zb,"{").replace(Tb,"}").replace(Pb,"^")}function zR(e){return sc(e).replace(xR,"%3D")}function TR(e){return jd(e).replace($b,"%23").replace(CR,"%3F")}function kR(e){return e==null?"":TR(e).replace(bR,"%2F")}function ql(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ER(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;ni&&sc(i)):[r&&sc(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function IR(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=mo(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const RR=Symbol(""),Fh=Symbol(""),Ta=Symbol(""),Wd=Symbol(""),cc=Symbol("");function ii(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e,reset:o}}function lr(e,t,o,r,n){const i=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((l,a)=>{const s=u=>{u===!1?a(Bn(4,{from:o,to:t})):u instanceof Error?a(u):oR(u)?a(Bn(2,{from:t,to:u})):(i&&r.enterCallbacks[n]===i&&typeof u=="function"&&i.push(u),l())},c=e.call(r&&r.instances[n],t,o,s);let d=Promise.resolve(c);e.length<3&&(d=d.then(s)),d.catch(u=>a(u))})}function is(e,t,o,r){const n=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(OR(a)){const c=(a.__vccOpts||a)[t];c&&n.push(lr(c,o,r,i,l))}else{let s=a();n.push(()=>s.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const d=LI(c)?c.default:c;i.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&lr(f,o,r,i,l)()}))}}return n}function OR(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hh(e){const t=ge(Ta),o=ge(Wd),r=M(()=>t.resolve(Fo(e.to))),n=M(()=>{const{matched:s}=r.value,{length:c}=s,d=s[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(Mn.bind(null,d));if(f>-1)return f;const p=Nh(s[c-2]);return c>1&&Nh(d)===p&&u[u.length-1].path!==p?u.findIndex(Mn.bind(null,s[c-2])):f}),i=M(()=>n.value>-1&&LR(o.params,r.value.params)),l=M(()=>n.value>-1&&n.value===o.matched.length-1&&xb(o.params,r.value.params));function a(s={}){return BR(s)?t[Fo(e.replace)?"replace":"push"](Fo(e.to)).catch(yi):Promise.resolve()}return{route:r,href:M(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}const AR=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hh,setup(e,{slots:t}){const o=io(Hh(e)),{options:r}=ge(Ta),n=M(()=>({[jh(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[jh(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:m("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),MR=AR;function BR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function LR(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!mo(n)||n.length!==r.length||r.some((i,l)=>i!==n[l]))return!1}return!0}function Nh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const jh=(e,t,o)=>e!=null?e:t!=null?t:o,DR=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=ge(cc),n=M(()=>e.route||r.value),i=ge(Fh,0),l=M(()=>{let c=Fo(i);const{matched:d}=n.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=M(()=>n.value.matched[l.value]);Re(Fh,M(()=>l.value+1)),Re(RR,a),Re(cc,n);const s=U();return Ke(()=>[s.value,a.value,e.name],([c,d,u],[f,p,h])=>{d&&(d.instances[u]=c,p&&p!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!Mn(d,p)||!f)&&(d.enterCallbacks[u]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=n.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Wh(o.default,{Component:f,route:c});const p=u.props[d],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=m(f,et({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return Wh(o.default,{Component:v,route:c})||v}}});function Wh(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const kb=DR;function FR(e){const t=fR(e.routes,e),o=e.parseQuery||ER,r=e.stringifyQuery||Dh,n=e.history,i=ii(),l=ii(),a=ii(),s=p1(or);let c=or;yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=rs.bind(null,Y=>""+Y),u=rs.bind(null,kR),f=rs.bind(null,ql);function p(Y,Q){let Z,ue;return yb(Y)?(Z=t.getRecordMatcher(Y),ue=Q):ue=Y,t.addRoute(ue,Z)}function h(Y){const Q=t.getRecordMatcher(Y);Q&&t.removeRoute(Q)}function b(){return t.getRoutes().map(Y=>Y.record)}function v(Y){return!!t.getRecordMatcher(Y)}function g(Y,Q){if(Q=et({},Q||s.value),typeof Y=="string"){const ye=ns(o,Y,Q.path),_=t.resolve({path:ye.path},Q),A=n.createHref(ye.fullPath);return et(ye,_,{params:f(_.params),hash:ql(ye.hash),redirectedFrom:void 0,href:A})}let Z;if("path"in Y)Z=et({},Y,{path:ns(o,Y.path,Q.path).path});else{const ye=et({},Y.params);for(const _ in ye)ye[_]==null&&delete ye[_];Z=et({},Y,{params:u(Y.params)}),Q.params=u(Q.params)}const ue=t.resolve(Z,Q),pe=Y.hash||"";ue.params=d(f(ue.params));const Ae=HI(r,et({},Y,{hash:PR(pe),path:ue.path})),ze=n.createHref(Ae);return et({fullPath:Ae,hash:pe,query:r===Dh?IR(Y.query):Y.query||{}},ue,{redirectedFrom:void 0,href:ze})}function S(Y){return typeof Y=="string"?ns(o,Y,s.value.path):et({},Y)}function I(Y,Q){if(c!==Y)return Bn(8,{from:Q,to:Y})}function w(Y){return x(Y)}function C(Y){return w(et(S(Y),{replace:!0}))}function P(Y){const Q=Y.matched[Y.matched.length-1];if(Q&&Q.redirect){const{redirect:Z}=Q;let ue=typeof Z=="function"?Z(Y):Z;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=S(ue):{path:ue},ue.params={}),et({query:Y.query,hash:Y.hash,params:"path"in ue?{}:Y.params},ue)}}function x(Y,Q){const Z=c=g(Y),ue=s.value,pe=Y.state,Ae=Y.force,ze=Y.replace===!0,ye=P(Z);if(ye)return x(et(S(ye),{state:pe,force:Ae,replace:ze}),Q||Z);const _=Z;_.redirectedFrom=Q;let A;return!Ae&&NI(r,ue,Z)&&(A=Bn(16,{to:_,from:ue}),we(ue,ue,!0,!1)),(A?Promise.resolve(A):T(_,ue)).catch(W=>Ao(W)?Ao(W,2)?W:me(W):K(W,_,ue)).then(W=>{if(W){if(Ao(W,2))return x(et({replace:ze},S(W.to),{state:pe,force:Ae}),Q||_)}else W=B(_,ue,!0,ze,pe);return $(_,ue,W),W})}function y(Y,Q){const Z=I(Y,Q);return Z?Promise.reject(Z):Promise.resolve()}function T(Y,Q){let Z;const[ue,pe,Ae]=HR(Y,Q);Z=is(ue.reverse(),"beforeRouteLeave",Y,Q);for(const ye of ue)ye.leaveGuards.forEach(_=>{Z.push(lr(_,Y,Q))});const ze=y.bind(null,Y,Q);return Z.push(ze),bn(Z).then(()=>{Z=[];for(const ye of i.list())Z.push(lr(ye,Y,Q));return Z.push(ze),bn(Z)}).then(()=>{Z=is(pe,"beforeRouteUpdate",Y,Q);for(const ye of pe)ye.updateGuards.forEach(_=>{Z.push(lr(_,Y,Q))});return Z.push(ze),bn(Z)}).then(()=>{Z=[];for(const ye of Y.matched)if(ye.beforeEnter&&!Q.matched.includes(ye))if(mo(ye.beforeEnter))for(const _ of ye.beforeEnter)Z.push(lr(_,Y,Q));else Z.push(lr(ye.beforeEnter,Y,Q));return Z.push(ze),bn(Z)}).then(()=>(Y.matched.forEach(ye=>ye.enterCallbacks={}),Z=is(Ae,"beforeRouteEnter",Y,Q),Z.push(ze),bn(Z))).then(()=>{Z=[];for(const ye of l.list())Z.push(lr(ye,Y,Q));return Z.push(ze),bn(Z)}).catch(ye=>Ao(ye,8)?ye:Promise.reject(ye))}function $(Y,Q,Z){for(const ue of a.list())ue(Y,Q,Z)}function B(Y,Q,Z,ue,pe){const Ae=I(Y,Q);if(Ae)return Ae;const ze=Q===or,ye=yn?history.state:{};Z&&(ue||ze?n.replace(Y.fullPath,et({scroll:ze&&ye&&ye.scroll},pe)):n.push(Y.fullPath,pe)),s.value=Y,we(Y,Q,Z,ze),me()}let O;function X(){O||(O=n.listen((Y,Q,Z)=>{if(!Xe.listening)return;const ue=g(Y),pe=P(ue);if(pe){x(et(pe,{replace:!0}),ue).catch(yi);return}c=ue;const Ae=s.value;yn&&YI(Ih(Ae.fullPath,Z.delta),za()),T(ue,Ae).catch(ze=>Ao(ze,12)?ze:Ao(ze,2)?(x(ze.to,ue).then(ye=>{Ao(ye,20)&&!Z.delta&&Z.type===Wi.pop&&n.go(-1,!1)}).catch(yi),Promise.reject()):(Z.delta&&n.go(-Z.delta,!1),K(ze,ue,Ae))).then(ze=>{ze=ze||B(ue,Ae,!1),ze&&(Z.delta&&!Ao(ze,8)?n.go(-Z.delta,!1):Z.type===Wi.pop&&Ao(ze,20)&&n.go(-1,!1)),$(ue,Ae,ze)}).catch(yi)}))}let j=ii(),G=ii(),L;function K(Y,Q,Z){me(Y);const ue=G.list();return ue.length?ue.forEach(pe=>pe(Y,Q,Z)):console.error(Y),Promise.reject(Y)}function re(){return L&&s.value!==or?Promise.resolve():new Promise((Y,Q)=>{j.add([Y,Q])})}function me(Y){return L||(L=!Y,X(),j.list().forEach(([Q,Z])=>Y?Z(Y):Q()),j.reset()),Y}function we(Y,Q,Z,ue){const{scrollBehavior:pe}=e;if(!yn||!pe)return Promise.resolve();const Ae=!Z&&XI(Ih(Y.fullPath,0))||(ue||!Z)&&history.state&&history.state.scroll||null;return zt().then(()=>pe(Y,Q,Ae)).then(ze=>ze&&qI(ze)).catch(ze=>K(ze,Y,Q))}const Se=Y=>n.go(Y);let Ee;const De=new Set,Xe={currentRoute:s,listening:!0,addRoute:p,removeRoute:h,hasRoute:v,getRoutes:b,resolve:g,options:e,push:w,replace:C,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:G.add,isReady:re,install(Y){const Q=this;Y.component("RouterLink",MR),Y.component("RouterView",kb),Y.config.globalProperties.$router=Q,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Fo(s)}),yn&&!Ee&&s.value===or&&(Ee=!0,w(n.location).catch(pe=>{}));const Z={};for(const pe in or)Z[pe]=M(()=>s.value[pe]);Y.provide(Ta,Q),Y.provide(Wd,io(Z)),Y.provide(cc,s);const ue=Y.unmount;De.add(Y),Y.unmount=function(){De.delete(Y),De.size<1&&(c=or,O&&O(),O=null,s.value=or,Ee=!1,L=!1),ue()}}};return Xe}function bn(e){return e.reduce((t,o)=>t.then(()=>o()),Promise.resolve())}function HR(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lMn(c,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>Mn(c,s))||n.push(s))}return[o,r,n]}function NR(){return ge(Ta)}function jR(){return ge(Wd)}const WR=(e,t,o="sessionStorage")=>{const r=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(e,r):window.sessionStorage.setItem(e,r)},Ln=(e,t="sessionStorage")=>{const o=t==="localStorage"?window.localStorage.getItem(e):window.sessionStorage.getItem(e);return Object.is(o,null)?"no":JSON.parse(o)},VR=(e,t="sessionStorage")=>{e==="all"?(window.window.localStorage.clear(),window.sessionStorage.clear()):e==="all-sessionStorage"?window.sessionStorage.clear():e==="all-localStorage"?window.localStorage.clear():t==="localStorage"?window.localStorage.removeItem(e):window.sessionStorage.removeItem(e)},Vi=le({name:"RayIcon",props:{color:{type:String,default:""},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:""}},setup(e){const t=M(()=>e.color),o=M(()=>`#${e.prefix}-${e.name}`);return{modelColor:t,symbolId:o}},render(){return ve("svg",{ariaHidden:!0,class:`ray-icon ${this.customClassName}`,style:{width:`${this.width?this.width:this.size}px`,height:`${this.height?this.height:this.size}px`}},[ve("use",{"xlink:href":this.symbolId,fill:this.modelColor},null)])}}),Eb=Xv("menu",()=>{const e=NR(),t=jR(),{t:o}=dn(),r=Ln("menuKey")==="no"?"/dashboard":Ln("menuKey"),n=io({menuKey:r,options:[],collapsed:!1,menuTagOptions:[]}),i=u=>{u.path!==n.menuKey&&(n.menuTagOptions.find(p=>p.path===u.path)||n.menuTagOptions.push(u))},l=(u,f)=>{i(f),n.menuKey=u,e.push(`${f.path}`),WR("menuKey",u)},a=u=>{const f=p=>{var h;for(const b of p)if((h=b==null?void 0:b.children)!=null&&h.length&&f(b.children),u===b.path){l(b.path,b);break}};f(n.options)},s=()=>{const u=e.getRoutes().find(p=>p.name==="layout"),f=(p,h)=>p.map(b=>{var I,w;(I=b.children)!=null&&I.length&&(b.children=f(b.children));const v={...b,key:b.path,label:()=>m(b_,null,{default:()=>o(`GlobalMenuOptions.${b.meta.i18nKey}`)})},g={icon:()=>{var C;return m(Vi,{name:(C=b==null?void 0:b.meta)==null?void 0:C.icon,size:20},{})}},S=(w=b.meta)!=null&&w.icon?Object.assign(v,g):v;return b.path===r&&n.menuTagOptions.push(S),S});n.options=f(u==null?void 0:u.children)},c=u=>n.collapsed=u,d=u=>n.menuTagOptions.splice(u,1);return Ke(()=>t.fullPath,u=>{a(u)}),{...zc(n),menuModelValueChange:l,setupAppRoutes:s,collapsedMenu:c,spliceMenTagOptions:d}}),Vh=pE(),Ib=e=>{e.use(Vh),Vh.use(_E)},UR=le({name:"GlobalProvider",setup(){const e=Pa(),t=M(()=>e.primaryColorOverride),o=M(()=>e.themeValue?fE:null),{message:r,notification:n,dialog:i,loadingBar:l}=sE(["message","dialog","notification","loadingBar"],{configProviderProps:M(()=>({theme:o.value}))});return window.$dialog=i,window.$message=r,window.$loadingBar=l,window.$notification=n,{modelPrimaryColorOverride:t,modelThemeValue:o}},render(){return ve(Wg,{themeOverrides:this.modelPrimaryColorOverride,theme:this.modelThemeValue},{default:()=>[ve(Av,null,{default:()=>[ve(Wv,null,{default:()=>[ve(mv,null,{default:()=>[ve(Uv,null,{default:()=>{var e,t;return[ve(cz,null,null),(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})]})]})]})]})}}),Rb=le({name:"App",render(){return ve(UR,null,{default:()=>[ve(kb,null,null)]})}}),KR="modulepreload",GR=function(e){return"/"+e},Uh={},xr=function(t,o,r){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(i=>{if(i=GR(i),i in Uh)return;Uh[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let d=n.length-1;d>=0;d--){const u=n[d];if(u.href===i&&(!l||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":KR,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((d,u)=>{c.addEventListener("load",d),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var Kh;const tl=typeof window<"u",qR=e=>typeof e=="string",ls=()=>{};tl&&((Kh=window==null?void 0:window.navigator)==null?void 0:Kh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function YR(e){return typeof e=="function"?e():Fo(e)}function XR(e){return e}function ZR(e){return H0()?(N0(e),!0):!1}function JR(e,t=!0){lo()?Bt(e):t?e():zt(e)}function QR(e){var t;const o=YR(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Ob=tl?window:void 0;tl&&window.document;tl&&window.navigator;tl&&window.location;function Gh(...e){let t,o,r,n;if(qR(e[0])?([o,r,n]=e,t=Ob):[t,o,r,n]=e,!t)return ls;let i=ls;const l=Ke(()=>QR(t),s=>{i(),s&&(s.addEventListener(o,r,n),i=()=>{s.removeEventListener(o,r,n),i=ls})},{immediate:!0,flush:"post"}),a=()=>{l(),i()};return ZR(a),a}const dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},uc="__vueuse_ssr_handlers__";dc[uc]=dc[uc]||{};dc[uc];var qh;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(qh||(qh={}));var e9=Object.defineProperty,Yh=Object.getOwnPropertySymbols,t9=Object.prototype.hasOwnProperty,o9=Object.prototype.propertyIsEnumerable,Xh=(e,t,o)=>t in e?e9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r9=(e,t)=>{for(var o in t||(t={}))t9.call(t,o)&&Xh(e,o,t[o]);if(Yh)for(var o of Yh(t))o9.call(t,o)&&Xh(e,o,t[o]);return e};const n9={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};r9({linear:XR},n9);function i9(e={}){const{window:t=Ob,initialWidth:o=1/0,initialHeight:r=1/0,listenOrientation:n=!0}=e,i=U(o),l=U(r),a=()=>{t&&(i.value=t.innerWidth,l.value=t.innerHeight)};return a(),JR(a),Gh("resize",a,{passive:!0}),n&&Gh("orientationchange",a,{passive:!0}),{width:i,height:l}}const l9=le({__name:"index",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){return(t,o)=>{const r=H1("router-view");return ws(),Ss(r,null,{default:ms(({Component:n,route:i})=>[ve(Ot,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:ms(()=>[(ws(),Ss(N1(n),{key:i.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}}),a9=le({name:"LayoutMenu",setup(){const e=Eb(),{menuModelValueChange:t,setupAppRoutes:o,collapsedMenu:r}=e,n=M({get:()=>e.menuKey,set:()=>{}}),i=M(()=>e.options),l=M(()=>e.collapsed);return o(),{modelMenuKey:n,menuModelValueChange:t,modelMenuOptions:i,modelCollapsed:l,collapsedMenu:r}},render(){return ve(bk,{bordered:!0,showTrigger:!0,collapseMode:"width",collapsedWidth:64,onUpdateCollapsed:this.collapsedMenu.bind(this)},{default:()=>[ve(Bk,{value:this.modelMenuKey,"onUpdate:value":e=>this.modelMenuKey=e,options:this.modelMenuOptions,indent:24,collapsed:this.modelCollapsed,collapsedIconSize:22,collapsedWidth:64,onUpdateValue:this.menuModelValueChange.bind(this)},null)]})}});const s9={"en-US":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["Home"])},Rely:e=>{const{normalize:t}=e;return t(["Rely"])},RelyAbout:e=>{const{normalize:t}=e;return t(["Rely About"])},Error:e=>{const{normalize:t}=e;return t(["Error Page"])},Echart:e=>{const{normalize:t}=e;return t(["Chart"])},scrollReveal:e=>{const{normalize:t}=e;return t(["Scroll Reveal"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["Reload Current Page"])},Lock:e=>{const{normalize:t}=e;return t(["Lock"])},Setting:e=>{const{normalize:t}=e;return t(["Setting"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["Full Screen"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["Cancel Full Screen"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["Configuration"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["Theme"])},Dark:e=>{const{normalize:t}=e;return t(["Dark"])},Light:e=>{const{normalize:t}=e;return t(["Light"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["Primary Color"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["Register"])},Signin:e=>{const{normalize:t}=e;return t(["Signin"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["please enter user name"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["please enter password"])},Login:e=>{const{normalize:t}=e;return t(["Login"])},Name:e=>{const{normalize:t}=e;return t(["User Name"])},Password:e=>{const{normalize:t}=e;return t(["User Password"])}}},"zh-CN":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["\u9996\u9875"])},Rely:e=>{const{normalize:t}=e;return t(["\u4F9D\u8D56\u9879"])},RelyAbout:e=>{const{normalize:t}=e;return t(["\u5173\u4E8E"])},Error:e=>{const{normalize:t}=e;return t(["\u9519\u8BEF\u9875"])},Echart:e=>{const{normalize:t}=e;return t(["\u53EF\u89C6\u5316"])},scrollReveal:e=>{const{normalize:t}=e;return t(["\u6EDA\u52A8\u52A8\u753B"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["\u5237\u65B0\u5F53\u524D\u9875\u9762"])},Lock:e=>{const{normalize:t}=e;return t(["\u9501\u5C4F"])},Setting:e=>{const{normalize:t}=e;return t(["\u8BBE\u7F6E"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["\u5168\u5C4F"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["\u9000\u51FA\u5168\u5C4F"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["\u9879\u76EE\u914D\u7F6E"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898"])},Dark:e=>{const{normalize:t}=e;return t(["\u6697\u8272"])},Light:e=>{const{normalize:t}=e;return t(["\u660E\u4EAE"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898\u8272"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["\u6CE8\u518C"])},Signin:e=>{const{normalize:t}=e;return t(["\u767B\u9646"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u7528\u6237\u540D"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u5BC6\u7801"])},Login:e=>{const{normalize:t}=e;return t(["\u767B \u9646"])},Name:e=>{const{normalize:t}=e;return t(["\u7528\u6237\u540D"])},Password:e=>{const{normalize:t}=e;return t(["\u5BC6\u7801"])}}}},Ab=e=>{const t=Ln("localeLanguage","localStorage")!=="no"?Ln("localeLanguage","localStorage"):"zh-CN",o=zI({locale:t,allowComposition:!0,messages:s9});e.use(o)},c9=()=>[{key:"zh-CN",label:"\u4E2D\u6587(\u7B80\u4F53)"},{key:"en-US",label:"English(US)"}];const d9=()=>["#FFFFFF","#18A058","#2080F0","#F0A020","rgba(208, 48, 80, 1)"];function Zh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const u9=le({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{t:o}=dn(),r=Pa(),{changePrimaryColor:n,changeSwitcher:i}=r,{themeValue:l,primaryColorOverride:a,menuTagLog:s}=Zv(r);return{modelShow:M({get:()=>e.show,set:u=>{t("update:show",u)}}),ray:o,handleRailStyle:()=>({backgroundColor:"#000000"}),changePrimaryColor:n,themeValue:l,primaryColorOverride:a,menuTagLog:s,changeSwitcher:i}},render(){let e,t;return ve(WP,{show:this.modelShow,"onUpdate:show":o=>this.modelShow=o,placement:this.placement,width:this.width},{default:()=>[ve(UP,{title:this.ray("LayoutHeaderSettingOptions.Title")},{default:()=>[ve(In,{class:"setting-drawer__space",vertical:!0},{default:()=>[ve(Qa,{titlePlacement:"center"},Zh(e=this.ray("LayoutHeaderSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),ve(In,{justify:"center"},{default:()=>[ve(Ni,null,{trigger:()=>ve(qf,{value:this.themeValue,"onUpdate:value":o=>this.themeValue=o,railStyle:this.handleRailStyle.bind(this),onUpdateValue:o=>this.changeSwitcher(o,"themeValue")},{"checked-icon":()=>m(Vi,{name:"dark"},{}),"unchecked-icon":()=>m(Vi,{name:"light"},{})}),default:()=>this.themeValue?this.ray("LayoutHeaderSettingOptions.ThemeOptions.Dark"):this.ray("LayoutHeaderSettingOptions.ThemeOptions.Light")})]}),ve(Qa,{titlePlacement:"center"},Zh(t=this.ray("LayoutHeaderSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),ve(S8,{swatches:d9(),value:this.primaryColorOverride.common.primaryColor,"onUpdate:value":o=>this.primaryColorOverride.common.primaryColor=o,onUpdateValue:this.changePrimaryColor.bind(this)},null),ve(Qa,{titlePlacement:"center"},{default:()=>[Zr("\u754C\u9762\u663E\u793A")]}),ve(X_,{labelPlacement:"left",column:1},{default:()=>[ve(J_,{label:"\u663E\u793A\u591A\u6807\u7B7E"},{default:()=>[ve(qf,{value:this.menuTagLog,"onUpdate:value":o=>this.menuTagLog=o,onUpdateValue:o=>this.changeSwitcher(o,"menuTagLog")},null)]})]})]})]})]})}}),f9=()=>[{key:"person",label:"\u4E2A\u4EBA\u4FE1\u606F"},{type:"divider",key:"d1"},{key:"logout",label:"\u9000\u51FA\u767B\u9646"}],Jh=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],jo=(()=>{if(typeof document>"u")return!1;const e=Jh[0],t={};for(const o of Jh)if((o==null?void 0:o[1])in document){for(const[n,i]of o.entries())t[e[n]]=i;return t}return!1})(),Qh={change:jo.fullscreenchange,error:jo.fullscreenerror};let Ut={request(e=document.documentElement,t){return new Promise((o,r)=>{const n=()=>{Ut.off("change",n),o()};Ut.on("change",n);const i=e[jo.requestFullscreen](t);i instanceof Promise&&i.then(n).catch(r)})},exit(){return new Promise((e,t)=>{if(!Ut.isFullscreen){e();return}const o=()=>{Ut.off("change",o),e()};Ut.on("change",o);const r=document[jo.exitFullscreen]();r instanceof Promise&&r.then(o).catch(t)})},toggle(e,t){return Ut.isFullscreen?Ut.exit():Ut.request(e,t)},onchange(e){Ut.on("change",e)},onerror(e){Ut.on("error",e)},on(e,t){const o=Qh[e];o&&document.addEventListener(o,t,!1)},off(e,t){const o=Qh[e];o&&document.removeEventListener(o,t,!1)},raw:jo};Object.defineProperties(Ut,{isFullscreen:{get:()=>Boolean(document[jo.fullscreenElement])},element:{enumerable:!0,get:()=>{var e;return(e=document[jo.fullscreenElement])!=null?e:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[jo.fullscreenEnabled])}});jo||(Ut={isEnabled:!1});const ep=Ut;function as(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const h9=le({name:"SiderBar",setup(){const e=Pa(),{t}=dn(),{updateLocale:o,changeSwitcher:r}=e,n=U(e.drawerPlacement),i=U(!1),l=[{name:"reload",size:18,tooltip:"LayoutHeaderTooltipOptions.Reload"}],a=[{name:"fullscreen",size:18,tooltip:"",eventKey:"screen"},{name:"language",size:18,tooltip:"",dropdown:{eventKey:"handleSelect",switch:!0,options:c9(),handleSelect:f=>o(String(f))}},{name:"github",size:18,tooltip:"LayoutHeaderTooltipOptions.Github",eventKey:"github"},{name:"setting",size:18,tooltip:"LayoutHeaderTooltipOptions.Setting",eventKey:"setting"},{name:"ray",size:22,tooltip:"",dropdown:{eventKey:"handleSelect",switch:!0,options:f9(),handleSelect:f=>{f==="logout"?window.$dialog.warning({title:"\u63D0\u793A",content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{window.$message.info("\u8D26\u53F7\u9000\u51FA\u4E2D..."),VR("all-sessionStorage"),setTimeout(()=>window.location.reload(),2*1e3)}}):window.$message.info("\u8FD9\u4E2A\u4EBA\u5F88\u61D2, \u6CA1\u505A\u8FD9\u4E2A\u529F\u80FD~")}}}],s={reload:()=>{r(!1,"reloadRouteLog"),setTimeout(()=>r(!0,"reloadRouteLog"))},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},screen:()=>{ep.isEnabled?ep.toggle():window.$message.warning("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F~")}},c=f=>{var p;(p=s[f])==null||p.call(s)},d=f=>{var p;return ve(Vi,{customClassName:"layout-header__method--icon",name:f.name,size:f.size,onClick:c.bind(this,(p=f.eventKey)!=null?p:"")},null)};return{leftIconOptions:l,rightIconOptions:a,t,handleIconClick:c,modelDrawerPlacement:n,showSettings:i,TooltipIcon:f=>f.tooltip?ve(Ni,null,{trigger:()=>d(f),default:()=>{var p;return t((p=f.tooltip)!=null?p:"")}}):d(f),Icon:d}},render(){let e,t;return ve(hk,{class:"layout-header",bordered:!0},{default:()=>[ve(In,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[ve(In,{align:"center"},as(e=this.leftIconOptions.map(o=>ve(Ni,null,{trigger:()=>ve(Vi,{customClassName:"layout-header__method--icon",name:o.name,size:o.size,onClick:this.handleIconClick.bind(this,o.name)},null),default:()=>this.t(o.tooltip)})))?e:{default:()=>[e]}),ve(In,{align:"center"},as(t=this.rightIconOptions.map(o=>{var n,i;let r;return(n=o.dropdown)!=null&&n.switch?ve(rv,{options:o.dropdown.options,onSelect:o.dropdown[(i=o.dropdown.eventKey)!=null?i:"handleSelect"]},as(r=this.Icon(o))?r:{default:()=>[r]}):this.TooltipIcon(o)}))?t:{default:()=>[t]})]}),ve(u9,{show:this.showSettings,"onUpdate:show":o=>this.showSettings=o,placement:this.modelDrawerPlacement},null)]})}});function p9(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const m9=le({name:"MenuTag",setup(){const e=Eb(),{menuTagOptions:t,menuKey:o}=Zv(e),{menuModelValueChange:r,spliceMenTagOptions:n}=e;return{menuTagOptions:t,menuModelValueChange:r,handleCloseTag:a=>{if(n(a),o.value!=="/dashboard"){const s=t.value,c=s.length,d=s[c-1];r(d.key,d)}},menuKey:o,handleTagClick:a=>{r(a.key,a)}}},render(){let e;return ve(tE,{class:"menu-tag",xScrollable:!0},{default:()=>[ve(In,{class:"menu-tag-sapce",wrap:!1,align:"center"},p9(e=this.menuTagOptions.map((t,o)=>ve(K6,{closable:t.key!=="/dashboard"&&this.menuTagOptions.length>1,onClose:()=>this.handleCloseTag(o),type:t.key===this.menuKey?"success":"default",onClick:this.handleTagClick.bind(this,t)},{default:()=>[typeof t.label=="function"?t.label():t.label]})))?e:{default:()=>[e]})]})}}),g9=le({name:"Layout",props:{},setup(){const e=Pa(),{height:t}=i9(),o=M(()=>e.reloadRouteLog),r=M(()=>e.menuTagLog),n=M(()=>{let i={};return e.menuTagLog?i={"--layout-content-height":"calc(100% - 110px)"}:i={"--layout-content-height":"calc(100% - 64px)"},i});return{windowHeight:t,modelReloadRoute:o,modelMenuTagLog:r,cssVarsRef:n}},render(){return ve("div",{class:"layout",style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[ve(Uf,{class:"layout-full",hasSider:!0},{default:()=>[ve(a9,null,null),ve(Uf,null,{default:()=>[ve(h9,null,null),this.modelMenuTagLog?ve(m9,null,null):"",ve(dk,{class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[this.modelReloadRoute?ve(l9,null,null):""]})]})]})])}}),v9={path:"/dashboard",name:"dashboard",component:()=>xr(()=>import("./index.87c6b1fe.js"),["assets/index.87c6b1fe.js","assets/index.1e5b801c.js","assets/index.dc50c796.css"]),meta:{i18nKey:"Dashboard",icon:"dashboard"}},b9={path:"/rely",name:"rely",component:()=>xr(()=>import("./index.5a9eb743.js"),[]),meta:{i18nKey:"Rely",icon:"rely"},children:[{path:"/rely-about",name:"rely-about",component:()=>xr(()=>import("./index.53066b8a.js"),["assets/index.53066b8a.js","assets/index.184de73a.css"]),meta:{i18nKey:"RelyAbout"}}]},x9={path:"/error",name:"error",component:()=>xr(()=>import("./index.d49023d8.js"),["assets/index.d49023d8.js","assets/Result.9786211f.js","assets/index.fa813b60.css"]),meta:{i18nKey:"Error",icon:"error"}},C9={path:"/echart",name:"echart",component:()=>xr(()=>import("./index.4278c5fb.js"),["assets/index.4278c5fb.js","assets/index.3f9db04e.css"]),meta:{i18nKey:"Echart",icon:"echart"}},y9={path:"/scroll-reveal",name:"scroll-reveal",component:()=>xr(()=>import("./index.1081a12d.js"),["assets/index.1081a12d.js","assets/index.0d9096a4.css"]),meta:{i18nKey:"scrollReveal",icon:"scroll_reveal"}},w9=[v9,C9,y9,x9,b9],S9=[{path:"/",name:"login",component:()=>xr(()=>import("./index.26ae7813.js"),["assets/index.26ae7813.js","assets/Result.9786211f.js","assets/index.1e5b801c.js","assets/index.6a9d9035.css"])},{path:"/",name:"layout",redirect:"/dashboard",component:g9,children:w9},{path:"/:catchAll(.*)",name:"error-page",component:()=>xr(()=>import("./index.d49023d8.js"),["assets/index.d49023d8.js","assets/Result.9786211f.js","assets/index.fa813b60.css"])}],Si=FR({history:tR(),routes:S9,scrollBehavior:()=>({left:0,top:0})}),Mb=e=>{e.use(Si)},Bb=()=>{Si.beforeEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.start()}),Si.afterEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.finish()}),Si.onError(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.error()})},Lb=()=>{Si.beforeEach((e,t,o)=>{const r=Ln("token"),n=Ln("menuKey");r!=="no"?e.path==="/"||t.path==="/login"?o(n):o():e.path==="/"||t.path==="/login"?o():o("/")})},$9=()=>{const e=Mc(Rb);Ib(e),Mb(e),Bb(),Lb(),Ab(e),e.mount("#app")},_9=()=>{let e;window.__WUJIE_MOUNT=()=>{e=Mc(Rb),Ib(e),Mb(e),Bb(),Lb(),Ab(e),e.mount("#app")},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?_9():$9();export{$e as $,ao as A,k as B,Be as C,ca as D,af as E,Bt as F,ut as G,ot as H,ce as I,gr as J,qe as K,ae as L,Nn as M,qo as N,Ze as O,ko as P,st as Q,Un as R,Nc as S,Ot as T,Je as U,Uc as V,Ri as W,po as X,HC as Y,Nt as Z,Ds as _,tn as a,Sf as a$,zt as a0,oo as a1,Kx as a2,zo as a3,I9 as a4,On as a5,dn as a6,ve as a7,WR as a8,g$ as a9,X_ as aA,J_ as aB,Uf as aC,K6 as aD,kb as aE,Go as aF,D2 as aG,cd as aH,Um as aI,b3 as aJ,p3 as aK,SS as aL,Ym as aM,x3 as aN,E3 as aO,vr as aP,I3 as aQ,br as aR,kf as aS,vf as aT,_w as aU,ro as aV,w2 as aW,jl as aX,f3 as aY,R3 as aZ,$o as a_,Sn as aa,pr as ab,NR as ac,io as ad,i9 as ae,Pa as af,zc as ag,In as ah,Zr as ai,rv as aj,c9 as ak,Vi as al,E8 as am,Qa as an,jc as ao,hm as ap,U6 as aq,qr as ar,T9 as as,Fl as at,Ni as au,Ul as av,pd as aw,md as ax,hd as ay,E9 as az,pl as b,L2 as b0,Zv as b1,qf as b2,cy as c,le as d,td as e,Cr as f,lo as g,m as h,ge as i,Ro as j,R as k,N as l,E as m,P9 as n,$t as o,Ye as p,Pe as q,U as r,Re as s,k9 as t,Yi as u,en as v,Ke as w,M as x,No as y,wS as z}; + */const yn=typeof window<"u";function LI(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const et=Object.assign;function rs(e,t){const o={};for(const r in t){const n=t[r];o[r]=mo(n)?n.map(e):e(n)}return o}const yi=()=>{},mo=Array.isArray,DI=/\/$/,FI=e=>e.replace(DI,"");function ns(e,t,o="/"){let r,n={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return a=0&&(s=-1),s>-1&&(r=t.slice(0,s),i=t.slice(s+1,a>-1?a:t.length),n=e(i)),a>-1&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=WI(r!=null?r:t,o),{fullPath:r+(i&&"?")+i+l,path:r,query:n,hash:l}}function HI(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function kh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function NI(e,t,o){const r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&Mn(t.matched[r],o.matched[n])&&xb(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function Mn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function xb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const o in e)if(!jI(e[o],t[o]))return!1;return!0}function jI(e,t){return mo(e)?Eh(e,t):mo(t)?Eh(t,e):e===t}function Eh(e,t){return mo(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function WI(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),r=e.split("/");let n=o.length-1,i,l;for(i=0;i1&&n--;else break;return o.slice(0,n).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Wi;(function(e){e.pop="pop",e.push="push"})(Wi||(Wi={}));var wi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(wi||(wi={}));function VI(e){if(!e)if(yn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),FI(e)}const UI=/^[^#]+#/;function KI(e,t){return e.replace(UI,"#")+t}function GI(e,t){const o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}const za=()=>({left:window.pageXOffset,top:window.pageYOffset});function qI(e){let t;if("el"in e){const o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=GI(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Ih(e,t){return(history.state?history.state.position-t:-1)+e}const ac=new Map;function YI(e,t){ac.set(e,t)}function XI(e){const t=ac.get(e);return ac.delete(e),t}let ZI=()=>location.protocol+"//"+location.host;function Cb(e,t){const{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let a=n.includes(e.slice(i))?e.slice(i).length:1,s=n.slice(a);return s[0]!=="/"&&(s="/"+s),kh(s,"")}return kh(o,e)+r+n}function JI(e,t,o,r){let n=[],i=[],l=null;const a=({state:f})=>{const p=Cb(e,location),h=o.value,b=t.value;let v=0;if(f){if(o.value=p,t.value=f,l&&l===h){l=null;return}v=b?f.position-b.position:0}else r(p);n.forEach(g=>{g(o.value,h,{delta:v,type:Wi.pop,direction:v?v>0?wi.forward:wi.back:wi.unknown})})};function s(){l=o.value}function c(f){n.push(f);const p=()=>{const h=n.indexOf(f);h>-1&&n.splice(h,1)};return i.push(p),p}function d(){const{history:f}=window;!f.state||f.replaceState(et({},f.state,{scroll:za()}),"")}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:s,listen:c,destroy:u}}function Rh(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?za():null}}function QI(e){const{history:t,location:o}=window,r={value:Cb(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:ZI()+e+s;try{t[d?"replaceState":"pushState"](c,"",f),n.value=c}catch(p){console.error(p),o[d?"replace":"assign"](f)}}function l(s,c){const d=et({},t.state,Rh(n.value.back,s,n.value.forward,!0),c,{position:n.value.position});i(s,d,!0),r.value=s}function a(s,c){const d=et({},n.value,t.state,{forward:s,scroll:za()});i(d.current,d,!0);const u=et({},Rh(r.value,s,null),{position:d.position+1},c);i(s,u,!1),r.value=s}return{location:r,state:n,push:a,replace:l}}function eR(e){e=VI(e);const t=QI(e),o=JI(e,t.state,t.location,t.replace);function r(i,l=!0){l||o.pauseListeners(),history.go(i)}const n=et({location:"",base:e,go:r,createHref:KI.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}function tR(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),eR(e)}function oR(e){return typeof e=="string"||e&&typeof e=="object"}function yb(e){return typeof e=="string"||typeof e=="symbol"}const or={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},wb=Symbol("");var Oh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Oh||(Oh={}));function Bn(e,t){return et(new Error,{type:e,[wb]:!0},t)}function Ao(e,t){return e instanceof Error&&wb in e&&(t==null||!!(e.type&t))}const Ah="[^/]+?",rR={sensitive:!1,strict:!1,start:!0,end:!0},nR=/[.+*?^${}()[\]/\\]/g;function iR(e,t){const o=et({},rR,t),r=[];let n=o.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[90];o.strict&&!c.length&&(n+="/");for(let u=0;ut.length?t.length===1&&t[0]===40+40?1:-1:0}function aR(e,t){let o=0;const r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}const sR={type:0,value:""},cR=/[a-zA-Z0-9_]/;function dR(e){if(!e)return[[]];if(e==="/")return[[sR]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${o})/"${c}": ${p}`)}let o=0,r=o;const n=[];let i;function l(){i&&n.push(i),i=[]}let a=0,s,c="",d="";function u(){!c||(o===0?i.push({type:0,value:c}):o===1||o===2||o===3?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;a{l(S)}:yi}function l(d){if(yb(d)){const u=r.get(d);u&&(r.delete(d),o.splice(o.indexOf(u),1),u.children.forEach(l),u.alias.forEach(l))}else{const u=o.indexOf(d);u>-1&&(o.splice(u,1),d.record.name&&r.delete(d.record.name),d.children.forEach(l),d.alias.forEach(l))}}function a(){return o}function s(d){let u=0;for(;u=0&&(d.record.path!==o[u].record.path||!Sb(d,o[u]));)u++;o.splice(u,0,d),d.record.name&&!Bh(d)&&r.set(d.record.name,d)}function c(d,u){let f,p={},h,b;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw Bn(1,{location:d});b=f.record.name,p=et(hR(u.params,f.keys.filter(S=>!S.optional).map(S=>S.name)),d.params),h=f.stringify(p)}else if("path"in d)h=d.path,f=o.find(S=>S.re.test(h)),f&&(p=f.parse(h),b=f.record.name);else{if(f=u.name?r.get(u.name):o.find(S=>S.re.test(u.path)),!f)throw Bn(1,{location:d,currentLocation:u});b=f.record.name,p=et({},u.params,d.params),h=f.stringify(p)}const v=[];let g=f;for(;g;)v.unshift(g.record),g=g.parent;return{name:b,path:h,params:p,matched:v,meta:gR(v)}}return e.forEach(d=>i(d)),{addRoute:i,resolve:c,removeRoute:l,getRoutes:a,getRecordMatcher:n}}function hR(e,t){const o={};for(const r of t)r in e&&(o[r]=e[r]);return o}function pR(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mR(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const r in e.components)t[r]=typeof o=="boolean"?o:o[r];return t}function Bh(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gR(e){return e.reduce((t,o)=>et(t,o.meta),{})}function Lh(e,t){const o={};for(const r in e)o[r]=r in t?t[r]:e[r];return o}function Sb(e,t){return t.children.some(o=>o===e||Sb(e,o))}const $b=/#/g,vR=/&/g,bR=/\//g,xR=/=/g,CR=/\?/g,_b=/\+/g,yR=/%5B/g,wR=/%5D/g,Pb=/%5E/g,SR=/%60/g,zb=/%7B/g,$R=/%7C/g,Tb=/%7D/g,_R=/%20/g;function jd(e){return encodeURI(""+e).replace($R,"|").replace(yR,"[").replace(wR,"]")}function PR(e){return jd(e).replace(zb,"{").replace(Tb,"}").replace(Pb,"^")}function sc(e){return jd(e).replace(_b,"%2B").replace(_R,"+").replace($b,"%23").replace(vR,"%26").replace(SR,"`").replace(zb,"{").replace(Tb,"}").replace(Pb,"^")}function zR(e){return sc(e).replace(xR,"%3D")}function TR(e){return jd(e).replace($b,"%23").replace(CR,"%3F")}function kR(e){return e==null?"":TR(e).replace(bR,"%2F")}function ql(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function ER(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;ni&&sc(i)):[r&&sc(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+o,i!=null&&(t+="="+i))})}return t}function IR(e){const t={};for(const o in e){const r=e[o];r!==void 0&&(t[o]=mo(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}const RR=Symbol(""),Fh=Symbol(""),Ta=Symbol(""),Wd=Symbol(""),cc=Symbol("");function ii(){let e=[];function t(r){return e.push(r),()=>{const n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e,reset:o}}function lr(e,t,o,r,n){const i=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((l,a)=>{const s=u=>{u===!1?a(Bn(4,{from:o,to:t})):u instanceof Error?a(u):oR(u)?a(Bn(2,{from:t,to:u})):(i&&r.enterCallbacks[n]===i&&typeof u=="function"&&i.push(u),l())},c=e.call(r&&r.instances[n],t,o,s);let d=Promise.resolve(c);e.length<3&&(d=d.then(s)),d.catch(u=>a(u))})}function is(e,t,o,r){const n=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(OR(a)){const c=(a.__vccOpts||a)[t];c&&n.push(lr(c,o,r,i,l))}else{let s=a();n.push(()=>s.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const d=LI(c)?c.default:c;i.components[l]=d;const f=(d.__vccOpts||d)[t];return f&&lr(f,o,r,i,l)()}))}}return n}function OR(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hh(e){const t=ge(Ta),o=ge(Wd),r=M(()=>t.resolve(Fo(e.to))),n=M(()=>{const{matched:s}=r.value,{length:c}=s,d=s[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(Mn.bind(null,d));if(f>-1)return f;const p=Nh(s[c-2]);return c>1&&Nh(d)===p&&u[u.length-1].path!==p?u.findIndex(Mn.bind(null,s[c-2])):f}),i=M(()=>n.value>-1&&LR(o.params,r.value.params)),l=M(()=>n.value>-1&&n.value===o.matched.length-1&&xb(o.params,r.value.params));function a(s={}){return BR(s)?t[Fo(e.replace)?"replace":"push"](Fo(e.to)).catch(yi):Promise.resolve()}return{route:r,href:M(()=>r.value.href),isActive:i,isExactActive:l,navigate:a}}const AR=le({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hh,setup(e,{slots:t}){const o=io(Hh(e)),{options:r}=ge(Ta),n=M(()=>({[jh(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[jh(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&t.default(o);return e.custom?i:m("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),MR=AR;function BR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function LR(e,t){for(const o in t){const r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!mo(n)||n.length!==r.length||r.some((i,l)=>i!==n[l]))return!1}return!0}function Nh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const jh=(e,t,o)=>e!=null?e:t!=null?t:o,DR=le({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const r=ge(cc),n=M(()=>e.route||r.value),i=ge(Fh,0),l=M(()=>{let c=Fo(i);const{matched:d}=n.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=M(()=>n.value.matched[l.value]);Re(Fh,M(()=>l.value+1)),Re(RR,a),Re(cc,n);const s=U();return Ke(()=>[s.value,a.value,e.name],([c,d,u],[f,p,h])=>{d&&(d.instances[u]=c,p&&p!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!Mn(d,p)||!f)&&(d.enterCallbacks[u]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=n.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Wh(o.default,{Component:f,route:c});const p=u.props[d],h=p?p===!0?c.params:typeof p=="function"?p(c):p:null,v=m(f,et({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return Wh(o.default,{Component:v,route:c})||v}}});function Wh(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const kb=DR;function FR(e){const t=fR(e.routes,e),o=e.parseQuery||ER,r=e.stringifyQuery||Dh,n=e.history,i=ii(),l=ii(),a=ii(),s=p1(or);let c=or;yn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=rs.bind(null,Y=>""+Y),u=rs.bind(null,kR),f=rs.bind(null,ql);function p(Y,Q){let Z,ue;return yb(Y)?(Z=t.getRecordMatcher(Y),ue=Q):ue=Y,t.addRoute(ue,Z)}function h(Y){const Q=t.getRecordMatcher(Y);Q&&t.removeRoute(Q)}function b(){return t.getRoutes().map(Y=>Y.record)}function v(Y){return!!t.getRecordMatcher(Y)}function g(Y,Q){if(Q=et({},Q||s.value),typeof Y=="string"){const ye=ns(o,Y,Q.path),_=t.resolve({path:ye.path},Q),A=n.createHref(ye.fullPath);return et(ye,_,{params:f(_.params),hash:ql(ye.hash),redirectedFrom:void 0,href:A})}let Z;if("path"in Y)Z=et({},Y,{path:ns(o,Y.path,Q.path).path});else{const ye=et({},Y.params);for(const _ in ye)ye[_]==null&&delete ye[_];Z=et({},Y,{params:u(Y.params)}),Q.params=u(Q.params)}const ue=t.resolve(Z,Q),pe=Y.hash||"";ue.params=d(f(ue.params));const Ae=HI(r,et({},Y,{hash:PR(pe),path:ue.path})),ze=n.createHref(Ae);return et({fullPath:Ae,hash:pe,query:r===Dh?IR(Y.query):Y.query||{}},ue,{redirectedFrom:void 0,href:ze})}function S(Y){return typeof Y=="string"?ns(o,Y,s.value.path):et({},Y)}function I(Y,Q){if(c!==Y)return Bn(8,{from:Q,to:Y})}function w(Y){return x(Y)}function C(Y){return w(et(S(Y),{replace:!0}))}function P(Y){const Q=Y.matched[Y.matched.length-1];if(Q&&Q.redirect){const{redirect:Z}=Q;let ue=typeof Z=="function"?Z(Y):Z;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=S(ue):{path:ue},ue.params={}),et({query:Y.query,hash:Y.hash,params:"path"in ue?{}:Y.params},ue)}}function x(Y,Q){const Z=c=g(Y),ue=s.value,pe=Y.state,Ae=Y.force,ze=Y.replace===!0,ye=P(Z);if(ye)return x(et(S(ye),{state:pe,force:Ae,replace:ze}),Q||Z);const _=Z;_.redirectedFrom=Q;let A;return!Ae&&NI(r,ue,Z)&&(A=Bn(16,{to:_,from:ue}),we(ue,ue,!0,!1)),(A?Promise.resolve(A):T(_,ue)).catch(W=>Ao(W)?Ao(W,2)?W:me(W):K(W,_,ue)).then(W=>{if(W){if(Ao(W,2))return x(et({replace:ze},S(W.to),{state:pe,force:Ae}),Q||_)}else W=B(_,ue,!0,ze,pe);return $(_,ue,W),W})}function y(Y,Q){const Z=I(Y,Q);return Z?Promise.reject(Z):Promise.resolve()}function T(Y,Q){let Z;const[ue,pe,Ae]=HR(Y,Q);Z=is(ue.reverse(),"beforeRouteLeave",Y,Q);for(const ye of ue)ye.leaveGuards.forEach(_=>{Z.push(lr(_,Y,Q))});const ze=y.bind(null,Y,Q);return Z.push(ze),bn(Z).then(()=>{Z=[];for(const ye of i.list())Z.push(lr(ye,Y,Q));return Z.push(ze),bn(Z)}).then(()=>{Z=is(pe,"beforeRouteUpdate",Y,Q);for(const ye of pe)ye.updateGuards.forEach(_=>{Z.push(lr(_,Y,Q))});return Z.push(ze),bn(Z)}).then(()=>{Z=[];for(const ye of Y.matched)if(ye.beforeEnter&&!Q.matched.includes(ye))if(mo(ye.beforeEnter))for(const _ of ye.beforeEnter)Z.push(lr(_,Y,Q));else Z.push(lr(ye.beforeEnter,Y,Q));return Z.push(ze),bn(Z)}).then(()=>(Y.matched.forEach(ye=>ye.enterCallbacks={}),Z=is(Ae,"beforeRouteEnter",Y,Q),Z.push(ze),bn(Z))).then(()=>{Z=[];for(const ye of l.list())Z.push(lr(ye,Y,Q));return Z.push(ze),bn(Z)}).catch(ye=>Ao(ye,8)?ye:Promise.reject(ye))}function $(Y,Q,Z){for(const ue of a.list())ue(Y,Q,Z)}function B(Y,Q,Z,ue,pe){const Ae=I(Y,Q);if(Ae)return Ae;const ze=Q===or,ye=yn?history.state:{};Z&&(ue||ze?n.replace(Y.fullPath,et({scroll:ze&&ye&&ye.scroll},pe)):n.push(Y.fullPath,pe)),s.value=Y,we(Y,Q,Z,ze),me()}let O;function X(){O||(O=n.listen((Y,Q,Z)=>{if(!Xe.listening)return;const ue=g(Y),pe=P(ue);if(pe){x(et(pe,{replace:!0}),ue).catch(yi);return}c=ue;const Ae=s.value;yn&&YI(Ih(Ae.fullPath,Z.delta),za()),T(ue,Ae).catch(ze=>Ao(ze,12)?ze:Ao(ze,2)?(x(ze.to,ue).then(ye=>{Ao(ye,20)&&!Z.delta&&Z.type===Wi.pop&&n.go(-1,!1)}).catch(yi),Promise.reject()):(Z.delta&&n.go(-Z.delta,!1),K(ze,ue,Ae))).then(ze=>{ze=ze||B(ue,Ae,!1),ze&&(Z.delta&&!Ao(ze,8)?n.go(-Z.delta,!1):Z.type===Wi.pop&&Ao(ze,20)&&n.go(-1,!1)),$(ue,Ae,ze)}).catch(yi)}))}let j=ii(),G=ii(),L;function K(Y,Q,Z){me(Y);const ue=G.list();return ue.length?ue.forEach(pe=>pe(Y,Q,Z)):console.error(Y),Promise.reject(Y)}function re(){return L&&s.value!==or?Promise.resolve():new Promise((Y,Q)=>{j.add([Y,Q])})}function me(Y){return L||(L=!Y,X(),j.list().forEach(([Q,Z])=>Y?Z(Y):Q()),j.reset()),Y}function we(Y,Q,Z,ue){const{scrollBehavior:pe}=e;if(!yn||!pe)return Promise.resolve();const Ae=!Z&&XI(Ih(Y.fullPath,0))||(ue||!Z)&&history.state&&history.state.scroll||null;return zt().then(()=>pe(Y,Q,Ae)).then(ze=>ze&&qI(ze)).catch(ze=>K(ze,Y,Q))}const Se=Y=>n.go(Y);let Ee;const De=new Set,Xe={currentRoute:s,listening:!0,addRoute:p,removeRoute:h,hasRoute:v,getRoutes:b,resolve:g,options:e,push:w,replace:C,go:Se,back:()=>Se(-1),forward:()=>Se(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:G.add,isReady:re,install(Y){const Q=this;Y.component("RouterLink",MR),Y.component("RouterView",kb),Y.config.globalProperties.$router=Q,Object.defineProperty(Y.config.globalProperties,"$route",{enumerable:!0,get:()=>Fo(s)}),yn&&!Ee&&s.value===or&&(Ee=!0,w(n.location).catch(pe=>{}));const Z={};for(const pe in or)Z[pe]=M(()=>s.value[pe]);Y.provide(Ta,Q),Y.provide(Wd,io(Z)),Y.provide(cc,s);const ue=Y.unmount;De.add(Y),Y.unmount=function(){De.delete(Y),De.size<1&&(c=or,O&&O(),O=null,s.value=or,Ee=!1,L=!1),ue()}}};return Xe}function bn(e){return e.reduce((t,o)=>t.then(()=>o()),Promise.resolve())}function HR(e,t){const o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lMn(c,a))?r.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>Mn(c,s))||n.push(s))}return[o,r,n]}function NR(){return ge(Ta)}function jR(){return ge(Wd)}const WR=(e,t,o="sessionStorage")=>{const r=JSON.stringify(t);o==="localStorage"?window.localStorage.setItem(e,r):window.sessionStorage.setItem(e,r)},Ln=(e,t="sessionStorage")=>{const o=t==="localStorage"?window.localStorage.getItem(e):window.sessionStorage.getItem(e);return Object.is(o,null)?"no":JSON.parse(o)},VR=(e,t="sessionStorage")=>{e==="all"?(window.window.localStorage.clear(),window.sessionStorage.clear()):e==="all-sessionStorage"?window.sessionStorage.clear():e==="all-localStorage"?window.localStorage.clear():t==="localStorage"?window.localStorage.removeItem(e):window.sessionStorage.removeItem(e)},Vi=le({name:"RayIcon",props:{color:{type:String,default:""},prefix:{type:String,default:"icon"},name:{type:String,required:!0},size:{type:[Number,String],default:14},width:{type:[Number,String],default:0},height:{type:[Number,String],default:0},customClassName:{type:String,default:""}},setup(e){const t=M(()=>e.color),o=M(()=>`#${e.prefix}-${e.name}`);return{modelColor:t,symbolId:o}},render(){return ve("svg",{ariaHidden:!0,class:`ray-icon ${this.customClassName}`,style:{width:`${this.width?this.width:this.size}px`,height:`${this.height?this.height:this.size}px`}},[ve("use",{"xlink:href":this.symbolId,fill:this.modelColor},null)])}}),Eb=Xv("menu",()=>{const e=NR(),t=jR(),{t:o}=dn(),r=Ln("menuKey")==="no"?"/dashboard":Ln("menuKey"),n=io({menuKey:r,options:[],collapsed:!1,menuTagOptions:[]}),i=u=>{u.path!==n.menuKey&&(n.menuTagOptions.find(p=>p.path===u.path)||n.menuTagOptions.push(u))},l=(u,f)=>{i(f),n.menuKey=u,e.push(`${f.path}`),WR("menuKey",u)},a=u=>{const f=p=>{var h;for(const b of p)if((h=b==null?void 0:b.children)!=null&&h.length&&f(b.children),u===b.path){l(b.path,b);break}};f(n.options)},s=()=>{const u=e.getRoutes().find(p=>p.name==="layout"),f=(p,h)=>p.map(b=>{var I,w;(I=b.children)!=null&&I.length&&(b.children=f(b.children));const v={...b,key:b.path,label:()=>m(b_,null,{default:()=>o(`GlobalMenuOptions.${b.meta.i18nKey}`)})},g={icon:()=>{var C;return m(Vi,{name:(C=b==null?void 0:b.meta)==null?void 0:C.icon,size:20},{})}},S=(w=b.meta)!=null&&w.icon?Object.assign(v,g):v;return b.path===r&&n.menuTagOptions.push(S),S});n.options=f(u==null?void 0:u.children)},c=u=>n.collapsed=u,d=u=>n.menuTagOptions.splice(u,1);return Ke(()=>t.fullPath,u=>{a(u)}),{...zc(n),menuModelValueChange:l,setupAppRoutes:s,collapsedMenu:c,spliceMenTagOptions:d}}),Vh=pE(),Ib=e=>{e.use(Vh),Vh.use(_E)},UR=le({name:"GlobalProvider",setup(){const e=Pa(),t=M(()=>e.primaryColorOverride),o=M(()=>e.themeValue?fE:null),{message:r,notification:n,dialog:i,loadingBar:l}=sE(["message","dialog","notification","loadingBar"],{configProviderProps:M(()=>({theme:o.value}))});return window.$dialog=i,window.$message=r,window.$loadingBar=l,window.$notification=n,{modelPrimaryColorOverride:t,modelThemeValue:o}},render(){return ve(Wg,{themeOverrides:this.modelPrimaryColorOverride,theme:this.modelThemeValue},{default:()=>[ve(Av,null,{default:()=>[ve(Wv,null,{default:()=>[ve(mv,null,{default:()=>[ve(Uv,null,{default:()=>{var e,t;return[ve(cz,null,null),(t=(e=this.$slots).default)==null?void 0:t.call(e)]}})]})]})]})]})}}),Rb=le({name:"App",render(){return ve(UR,null,{default:()=>[ve(kb,null,null)]})}}),KR="modulepreload",GR=function(e){return"/"+e},Uh={},xr=function(t,o,r){if(!o||o.length===0)return t();const n=document.getElementsByTagName("link");return Promise.all(o.map(i=>{if(i=GR(i),i in Uh)return;Uh[i]=!0;const l=i.endsWith(".css"),a=l?'[rel="stylesheet"]':"";if(!!r)for(let d=n.length-1;d>=0;d--){const u=n[d];if(u.href===i&&(!l||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=l?"stylesheet":KR,l||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),l)return new Promise((d,u)=>{c.addEventListener("load",d),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var Kh;const tl=typeof window<"u",qR=e=>typeof e=="string",ls=()=>{};tl&&((Kh=window==null?void 0:window.navigator)==null?void 0:Kh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function YR(e){return typeof e=="function"?e():Fo(e)}function XR(e){return e}function ZR(e){return H0()?(N0(e),!0):!1}function JR(e,t=!0){lo()?Bt(e):t?e():zt(e)}function QR(e){var t;const o=YR(e);return(t=o==null?void 0:o.$el)!=null?t:o}const Ob=tl?window:void 0;tl&&window.document;tl&&window.navigator;tl&&window.location;function Gh(...e){let t,o,r,n;if(qR(e[0])?([o,r,n]=e,t=Ob):[t,o,r,n]=e,!t)return ls;let i=ls;const l=Ke(()=>QR(t),s=>{i(),s&&(s.addEventListener(o,r,n),i=()=>{s.removeEventListener(o,r,n),i=ls})},{immediate:!0,flush:"post"}),a=()=>{l(),i()};return ZR(a),a}const dc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},uc="__vueuse_ssr_handlers__";dc[uc]=dc[uc]||{};dc[uc];var qh;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(qh||(qh={}));var e9=Object.defineProperty,Yh=Object.getOwnPropertySymbols,t9=Object.prototype.hasOwnProperty,o9=Object.prototype.propertyIsEnumerable,Xh=(e,t,o)=>t in e?e9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,r9=(e,t)=>{for(var o in t||(t={}))t9.call(t,o)&&Xh(e,o,t[o]);if(Yh)for(var o of Yh(t))o9.call(t,o)&&Xh(e,o,t[o]);return e};const n9={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};r9({linear:XR},n9);function i9(e={}){const{window:t=Ob,initialWidth:o=1/0,initialHeight:r=1/0,listenOrientation:n=!0}=e,i=U(o),l=U(r),a=()=>{t&&(i.value=t.innerWidth,l.value=t.innerHeight)};return a(),JR(a),Gh("resize",a,{passive:!0}),n&&Gh("orientationchange",a,{passive:!0}),{width:i,height:l}}const l9=le({__name:"index",props:{transitionPropName:{type:String,default:"fade"},transitionMode:{type:String,default:"out-in"},transitionAppear:{type:Boolean,default:!0}},setup(e){return(t,o)=>{const r=H1("router-view");return ws(),Ss(r,null,{default:ms(({Component:n,route:i})=>[ve(Ot,{name:e.transitionPropName,mode:e.transitionMode,appear:e.transitionAppear},{default:ms(()=>[(ws(),Ss(N1(n),{key:i.fullPath}))]),_:2},1032,["name","mode","appear"])]),_:1})}}}),a9=le({name:"LayoutMenu",setup(){const e=Eb(),{menuModelValueChange:t,setupAppRoutes:o,collapsedMenu:r}=e,n=M({get:()=>e.menuKey,set:()=>{}}),i=M(()=>e.options),l=M(()=>e.collapsed);return o(),{modelMenuKey:n,menuModelValueChange:t,modelMenuOptions:i,modelCollapsed:l,collapsedMenu:r}},render(){return ve(bk,{bordered:!0,showTrigger:!0,collapseMode:"width",collapsedWidth:64,onUpdateCollapsed:this.collapsedMenu.bind(this)},{default:()=>[ve(Bk,{value:this.modelMenuKey,"onUpdate:value":e=>this.modelMenuKey=e,options:this.modelMenuOptions,indent:24,collapsed:this.modelCollapsed,collapsedIconSize:22,collapsedWidth:64,onUpdateValue:this.menuModelValueChange.bind(this)},null)]})}});const s9={"en-US":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["Home"])},Rely:e=>{const{normalize:t}=e;return t(["Rely"])},RelyAbout:e=>{const{normalize:t}=e;return t(["Rely About"])},Error:e=>{const{normalize:t}=e;return t(["Error Page"])},Echart:e=>{const{normalize:t}=e;return t(["Chart"])},scrollReveal:e=>{const{normalize:t}=e;return t(["Scroll Reveal"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["Reload Current Page"])},Lock:e=>{const{normalize:t}=e;return t(["Lock"])},Setting:e=>{const{normalize:t}=e;return t(["Setting"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["Full Screen"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["Cancel Full Screen"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["Configuration"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["Theme"])},Dark:e=>{const{normalize:t}=e;return t(["Dark"])},Light:e=>{const{normalize:t}=e;return t(["Light"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["Primary Color"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["Register"])},Signin:e=>{const{normalize:t}=e;return t(["Signin"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["please enter user name"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["please enter password"])},Login:e=>{const{normalize:t}=e;return t(["Login"])},Name:e=>{const{normalize:t}=e;return t(["User Name"])},Password:e=>{const{normalize:t}=e;return t(["User Password"])}}},"zh-CN":{GlobalMenuOptions:{Dashboard:e=>{const{normalize:t}=e;return t(["\u9996\u9875"])},Rely:e=>{const{normalize:t}=e;return t(["\u4F9D\u8D56\u9879"])},RelyAbout:e=>{const{normalize:t}=e;return t(["\u5173\u4E8E"])},Error:e=>{const{normalize:t}=e;return t(["\u9519\u8BEF\u9875"])},Echart:e=>{const{normalize:t}=e;return t(["\u53EF\u89C6\u5316"])},scrollReveal:e=>{const{normalize:t}=e;return t(["\u6EDA\u52A8\u52A8\u753B"])}},LayoutHeaderTooltipOptions:{Reload:e=>{const{normalize:t}=e;return t(["\u5237\u65B0\u5F53\u524D\u9875\u9762"])},Lock:e=>{const{normalize:t}=e;return t(["\u9501\u5C4F"])},Setting:e=>{const{normalize:t}=e;return t(["\u8BBE\u7F6E"])},Github:e=>{const{normalize:t}=e;return t(["Github"])},FullScreen:e=>{const{normalize:t}=e;return t(["\u5168\u5C4F"])},CancelFullScreen:e=>{const{normalize:t}=e;return t(["\u9000\u51FA\u5168\u5C4F"])}},LayoutHeaderSettingOptions:{Title:e=>{const{normalize:t}=e;return t(["\u9879\u76EE\u914D\u7F6E"])},ThemeOptions:{Title:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898"])},Dark:e=>{const{normalize:t}=e;return t(["\u6697\u8272"])},Light:e=>{const{normalize:t}=e;return t(["\u660E\u4EAE"])},PrimaryColorConfig:e=>{const{normalize:t}=e;return t(["\u4E3B\u9898\u8272"])}}},LoginModule:{Register:e=>{const{normalize:t}=e;return t(["\u6CE8\u518C"])},Signin:e=>{const{normalize:t}=e;return t(["\u767B\u9646"])},NamePlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u7528\u6237\u540D"])},PasswordPlaceholder:e=>{const{normalize:t}=e;return t(["\u8BF7\u8F93\u5165\u5BC6\u7801"])},Login:e=>{const{normalize:t}=e;return t(["\u767B \u9646"])},Name:e=>{const{normalize:t}=e;return t(["\u7528\u6237\u540D"])},Password:e=>{const{normalize:t}=e;return t(["\u5BC6\u7801"])}}}},Ab=e=>{const t=Ln("localeLanguage","localStorage")!=="no"?Ln("localeLanguage","localStorage"):"zh-CN",o=zI({locale:t,allowComposition:!0,messages:s9});e.use(o)},c9=()=>[{key:"zh-CN",label:"\u4E2D\u6587(\u7B80\u4F53)"},{key:"en-US",label:"English(US)"}];const d9=()=>["#FFFFFF","#18A058","#2080F0","#F0A020","rgba(208, 48, 80, 1)"];function Zh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const u9=le({name:"SettingDrawer",props:{show:{type:Boolean,default:!1},placement:{type:String,default:"right"},width:{type:Number,default:280}},emits:["update:show"],setup(e,{emit:t}){const{t:o}=dn(),r=Pa(),{changePrimaryColor:n,changeSwitcher:i}=r,{themeValue:l,primaryColorOverride:a,menuTagLog:s}=Zv(r);return{modelShow:M({get:()=>e.show,set:u=>{t("update:show",u)}}),ray:o,handleRailStyle:()=>({backgroundColor:"#000000"}),changePrimaryColor:n,themeValue:l,primaryColorOverride:a,menuTagLog:s,changeSwitcher:i}},render(){let e,t;return ve(WP,{show:this.modelShow,"onUpdate:show":o=>this.modelShow=o,placement:this.placement,width:this.width},{default:()=>[ve(UP,{title:this.ray("LayoutHeaderSettingOptions.Title")},{default:()=>[ve(In,{class:"setting-drawer__space",vertical:!0},{default:()=>[ve(Qa,{titlePlacement:"center"},Zh(e=this.ray("LayoutHeaderSettingOptions.ThemeOptions.Title"))?e:{default:()=>[e]}),ve(In,{justify:"center"},{default:()=>[ve(Ni,null,{trigger:()=>ve(qf,{value:this.themeValue,"onUpdate:value":o=>this.themeValue=o,railStyle:this.handleRailStyle.bind(this),onUpdateValue:o=>this.changeSwitcher(o,"themeValue")},{"checked-icon":()=>m(Vi,{name:"dark"},{}),"unchecked-icon":()=>m(Vi,{name:"light"},{})}),default:()=>this.themeValue?this.ray("LayoutHeaderSettingOptions.ThemeOptions.Dark"):this.ray("LayoutHeaderSettingOptions.ThemeOptions.Light")})]}),ve(Qa,{titlePlacement:"center"},Zh(t=this.ray("LayoutHeaderSettingOptions.ThemeOptions.PrimaryColorConfig"))?t:{default:()=>[t]}),ve(S8,{swatches:d9(),value:this.primaryColorOverride.common.primaryColor,"onUpdate:value":o=>this.primaryColorOverride.common.primaryColor=o,onUpdateValue:this.changePrimaryColor.bind(this)},null),ve(Qa,{titlePlacement:"center"},{default:()=>[Zr("\u754C\u9762\u663E\u793A")]}),ve(X_,{labelPlacement:"left",column:1},{default:()=>[ve(J_,{label:"\u663E\u793A\u591A\u6807\u7B7E"},{default:()=>[ve(qf,{value:this.menuTagLog,"onUpdate:value":o=>this.menuTagLog=o,onUpdateValue:o=>this.changeSwitcher(o,"menuTagLog")},null)]})]})]})]})]})}}),f9=()=>[{key:"person",label:"\u4E2A\u4EBA\u4FE1\u606F"},{type:"divider",key:"d1"},{key:"logout",label:"\u9000\u51FA\u767B\u9646"}],Jh=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],jo=(()=>{if(typeof document>"u")return!1;const e=Jh[0],t={};for(const o of Jh)if((o==null?void 0:o[1])in document){for(const[n,i]of o.entries())t[e[n]]=i;return t}return!1})(),Qh={change:jo.fullscreenchange,error:jo.fullscreenerror};let Ut={request(e=document.documentElement,t){return new Promise((o,r)=>{const n=()=>{Ut.off("change",n),o()};Ut.on("change",n);const i=e[jo.requestFullscreen](t);i instanceof Promise&&i.then(n).catch(r)})},exit(){return new Promise((e,t)=>{if(!Ut.isFullscreen){e();return}const o=()=>{Ut.off("change",o),e()};Ut.on("change",o);const r=document[jo.exitFullscreen]();r instanceof Promise&&r.then(o).catch(t)})},toggle(e,t){return Ut.isFullscreen?Ut.exit():Ut.request(e,t)},onchange(e){Ut.on("change",e)},onerror(e){Ut.on("error",e)},on(e,t){const o=Qh[e];o&&document.addEventListener(o,t,!1)},off(e,t){const o=Qh[e];o&&document.removeEventListener(o,t,!1)},raw:jo};Object.defineProperties(Ut,{isFullscreen:{get:()=>Boolean(document[jo.fullscreenElement])},element:{enumerable:!0,get:()=>{var e;return(e=document[jo.fullscreenElement])!=null?e:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[jo.fullscreenEnabled])}});jo||(Ut={isEnabled:!1});const ep=Ut;function as(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const h9=le({name:"SiderBar",setup(){const e=Pa(),{t}=dn(),{updateLocale:o,changeSwitcher:r}=e,n=U(e.drawerPlacement),i=U(!1),l=[{name:"reload",size:18,tooltip:"LayoutHeaderTooltipOptions.Reload"}],a=[{name:"fullscreen",size:18,tooltip:"",eventKey:"screen"},{name:"language",size:18,tooltip:"",dropdown:{eventKey:"handleSelect",switch:!0,options:c9(),handleSelect:f=>o(String(f))}},{name:"github",size:18,tooltip:"LayoutHeaderTooltipOptions.Github",eventKey:"github"},{name:"setting",size:18,tooltip:"LayoutHeaderTooltipOptions.Setting",eventKey:"setting"},{name:"ray",size:22,tooltip:"",dropdown:{eventKey:"handleSelect",switch:!0,options:f9(),handleSelect:f=>{f==="logout"?window.$dialog.warning({title:"\u63D0\u793A",content:"\u60A8\u786E\u5B9A\u8981\u9000\u51FA\u767B\u5F55\u5417",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{window.$message.info("\u8D26\u53F7\u9000\u51FA\u4E2D..."),VR("all-sessionStorage"),setTimeout(()=>window.location.reload(),2*1e3)}}):window.$message.info("\u8FD9\u4E2A\u4EBA\u5F88\u61D2, \u6CA1\u505A\u8FD9\u4E2A\u529F\u80FD~")}}}],s={reload:()=>{r(!1,"reloadRouteLog"),setTimeout(()=>r(!0,"reloadRouteLog"))},setting:()=>{i.value=!0},github:()=>{window.open("https://github.com/XiaoDaiGua-Ray/ray-template")},screen:()=>{ep.isEnabled?ep.toggle():window.$message.warning("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F~")}},c=f=>{var p;(p=s[f])==null||p.call(s)},d=f=>{var p;return ve(Vi,{customClassName:"layout-header__method--icon",name:f.name,size:f.size,onClick:c.bind(this,(p=f.eventKey)!=null?p:"")},null)};return{leftIconOptions:l,rightIconOptions:a,t,handleIconClick:c,modelDrawerPlacement:n,showSettings:i,TooltipIcon:f=>f.tooltip?ve(Ni,null,{trigger:()=>d(f),default:()=>{var p;return t((p=f.tooltip)!=null?p:"")}}):d(f),Icon:d}},render(){let e,t;return ve(hk,{class:"layout-header",bordered:!0},{default:()=>[ve(In,{class:"layout-header__method",align:"center",justify:"space-between"},{default:()=>[ve(In,{align:"center"},as(e=this.leftIconOptions.map(o=>ve(Ni,null,{trigger:()=>ve(Vi,{customClassName:"layout-header__method--icon",name:o.name,size:o.size,onClick:this.handleIconClick.bind(this,o.name)},null),default:()=>this.t(o.tooltip)})))?e:{default:()=>[e]}),ve(In,{align:"center"},as(t=this.rightIconOptions.map(o=>{var n,i;let r;return(n=o.dropdown)!=null&&n.switch?ve(rv,{options:o.dropdown.options,onSelect:o.dropdown[(i=o.dropdown.eventKey)!=null?i:"handleSelect"]},as(r=this.Icon(o))?r:{default:()=>[r]}):this.TooltipIcon(o)}))?t:{default:()=>[t]})]}),ve(u9,{show:this.showSettings,"onUpdate:show":o=>this.showSettings=o,placement:this.modelDrawerPlacement},null)]})}});function p9(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pr(e)}const m9=le({name:"MenuTag",setup(){const e=Eb(),{menuTagOptions:t,menuKey:o}=Zv(e),{menuModelValueChange:r,spliceMenTagOptions:n}=e;return{menuTagOptions:t,menuModelValueChange:r,handleCloseTag:a=>{if(n(a),o.value!=="/dashboard"){const s=t.value,c=s.length,d=s[c-1];r(d.key,d)}},menuKey:o,handleTagClick:a=>{r(a.key,a)}}},render(){let e;return ve(tE,{class:"menu-tag",xScrollable:!0},{default:()=>[ve(In,{class:"menu-tag-sapce",wrap:!1,align:"center"},p9(e=this.menuTagOptions.map((t,o)=>ve(K6,{closable:t.key!=="/dashboard"&&this.menuTagOptions.length>1,onClose:()=>this.handleCloseTag(o),type:t.key===this.menuKey?"success":"default",onClick:this.handleTagClick.bind(this,t)},{default:()=>[typeof t.label=="function"?t.label():t.label]})))?e:{default:()=>[e]})]})}}),g9=le({name:"Layout",props:{},setup(){const e=Pa(),{height:t}=i9(),o=M(()=>e.reloadRouteLog),r=M(()=>e.menuTagLog),n=M(()=>{let i={};return e.menuTagLog?i={"--layout-content-height":"calc(100% - 110px)"}:i={"--layout-content-height":"calc(100% - 64px)"},i});return{windowHeight:t,modelReloadRoute:o,modelMenuTagLog:r,cssVarsRef:n}},render(){return ve("div",{class:"layout",style:[`height: ${this.windowHeight}px`,this.cssVarsRef]},[ve(Uf,{class:"layout-full",hasSider:!0},{default:()=>[ve(a9,null,null),ve(Uf,null,{default:()=>[ve(h9,null,null),this.modelMenuTagLog?ve(m9,null,null):"",ve(dk,{class:"layout-content__router-view",nativeScrollbar:!1},{default:()=>[this.modelReloadRoute?ve(l9,null,null):""]})]})]})])}}),v9={path:"/dashboard",name:"dashboard",component:()=>xr(()=>import("./index.f6d5964c.js"),["assets/index.f6d5964c.js","assets/index.dedb2f12.js","assets/index.dc50c796.css"]),meta:{i18nKey:"Dashboard",icon:"dashboard"}},b9={path:"/rely",name:"rely",component:()=>xr(()=>import("./index.064d717e.js"),[]),meta:{i18nKey:"Rely",icon:"rely"},children:[{path:"/rely-about",name:"rely-about",component:()=>xr(()=>import("./index.20b8de44.js"),["assets/index.20b8de44.js","assets/index.184de73a.css"]),meta:{i18nKey:"RelyAbout"}}]},x9={path:"/error",name:"error",component:()=>xr(()=>import("./index.b25f3588.js"),["assets/index.b25f3588.js","assets/Result.071ac91f.js","assets/index.fa813b60.css"]),meta:{i18nKey:"Error",icon:"error"}},C9={path:"/echart",name:"echart",component:()=>xr(()=>import("./index.6f5dbead.js"),["assets/index.6f5dbead.js","assets/index.3f9db04e.css"]),meta:{i18nKey:"Echart",icon:"echart"}},y9={path:"/scroll-reveal",name:"scroll-reveal",component:()=>xr(()=>import("./index.38980f03.js"),["assets/index.38980f03.js","assets/index.0d9096a4.css"]),meta:{i18nKey:"scrollReveal",icon:"scroll_reveal"}},w9=[v9,C9,y9,x9,b9],S9=[{path:"/",name:"login",component:()=>xr(()=>import("./index.0a1ddcc5.js"),["assets/index.0a1ddcc5.js","assets/Result.071ac91f.js","assets/index.dedb2f12.js","assets/index.6a9d9035.css"])},{path:"/",name:"layout",redirect:"/dashboard",component:g9,children:w9},{path:"/:catchAll(.*)",name:"error-page",component:()=>xr(()=>import("./index.b25f3588.js"),["assets/index.b25f3588.js","assets/Result.071ac91f.js","assets/index.fa813b60.css"])}],Si=FR({history:tR(),routes:S9,scrollBehavior:()=>({left:0,top:0})}),Mb=e=>{e.use(Si)},Bb=()=>{Si.beforeEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.start()}),Si.afterEach(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.finish()}),Si.onError(()=>{var e;(e=window==null?void 0:window.$loadingBar)==null||e.error()})},Lb=()=>{Si.beforeEach((e,t,o)=>{const r=Ln("token"),n=Ln("menuKey");r!=="no"?e.path==="/"||t.path==="/login"?o(n):o():e.path==="/"||t.path==="/login"?o():o("/")})},$9=()=>{const e=Mc(Rb);Ib(e),Mb(e),Bb(),Lb(),Ab(e),e.mount("#app")},_9=()=>{let e;window.__WUJIE_MOUNT=()=>{e=Mc(Rb),Ib(e),Mb(e),Bb(),Lb(),Ab(e),e.mount("#app")},window.__WUJIE_UNMOUNT=()=>{e.unmount()},window.__WUJIE.mount()};window.__POWERED_BY_WUJIE__?_9():$9();export{$e as $,ao as A,k as B,Be as C,ca as D,af as E,Bt as F,ut as G,ot as H,ce as I,gr as J,qe as K,ae as L,Nn as M,qo as N,Ze as O,ko as P,st as Q,Un as R,Nc as S,Ot as T,Je as U,Uc as V,Ri as W,po as X,HC as Y,Nt as Z,Ds as _,tn as a,Sf as a$,zt as a0,oo as a1,Kx as a2,zo as a3,I9 as a4,On as a5,dn as a6,ve as a7,WR as a8,g$ as a9,X_ as aA,J_ as aB,Uf as aC,K6 as aD,kb as aE,Go as aF,D2 as aG,cd as aH,Um as aI,b3 as aJ,p3 as aK,SS as aL,Ym as aM,x3 as aN,E3 as aO,vr as aP,I3 as aQ,br as aR,kf as aS,vf as aT,_w as aU,ro as aV,w2 as aW,jl as aX,f3 as aY,R3 as aZ,$o as a_,Sn as aa,pr as ab,NR as ac,io as ad,i9 as ae,Pa as af,zc as ag,In as ah,Zr as ai,rv as aj,c9 as ak,Vi as al,E8 as am,Qa as an,jc as ao,hm as ap,U6 as aq,qr as ar,T9 as as,Fl as at,Ni as au,Ul as av,pd as aw,md as ax,hd as ay,E9 as az,pl as b,L2 as b0,Zv as b1,qf as b2,cy as c,le as d,td as e,Cr as f,lo as g,m as h,ge as i,Ro as j,R as k,N as l,E as m,P9 as n,$t as o,Ye as p,Pe as q,U as r,Re as s,k9 as t,Yi as u,en as v,Ke as w,M as x,No as y,wS as z}; diff --git a/assets/index.dfa30cb8.js.gz b/assets/index.907f0be6.js.gz similarity index 99% rename from assets/index.dfa30cb8.js.gz rename to assets/index.907f0be6.js.gz index 6a18a0c9..80d9d429 100644 Binary files a/assets/index.dfa30cb8.js.gz and b/assets/index.907f0be6.js.gz differ diff --git a/assets/index.d49023d8.js b/assets/index.b25f3588.js similarity index 72% rename from assets/index.d49023d8.js rename to assets/index.b25f3588.js index 5f0cbf1d..bfc9fc90 100644 --- a/assets/index.d49023d8.js +++ b/assets/index.b25f3588.js @@ -1 +1 @@ -import{d as t,a7 as e,aa as r,ai as o,ac as s}from"./index.dfa30cb8.js";import{N as n}from"./Result.9786211f.js";const i=t({name:"ErrorPage",setup(){const a=s();return{handleBack:()=>{a.push("/dashboard")}}},render(){return e("div",{class:"error-page"},[e(n,{status:"500",title:"\u5C0F\u8C03\u76AE\u4F60\u8D70\u9519\u5730\u65B9\u4E86"},{footer:()=>e(r,{onClick:this.handleBack.bind(this)},{default:()=>[o("\u8FD4\u56DE\u9996\u9875")]})})])}});export{i as default}; +import{d as t,a7 as e,aa as r,ai as o,ac as s}from"./index.907f0be6.js";import{N as n}from"./Result.071ac91f.js";const i=t({name:"ErrorPage",setup(){const a=s();return{handleBack:()=>{a.push("/dashboard")}}},render(){return e("div",{class:"error-page"},[e(n,{status:"500",title:"\u5C0F\u8C03\u76AE\u4F60\u8D70\u9519\u5730\u65B9\u4E86"},{footer:()=>e(r,{onClick:this.handleBack.bind(this)},{default:()=>[o("\u8FD4\u56DE\u9996\u9875")]})})])}});export{i as default}; diff --git a/assets/index.1e5b801c.js b/assets/index.dedb2f12.js similarity index 99% rename from assets/index.1e5b801c.js rename to assets/index.dedb2f12.js index 19167ffe..5607c35e 100644 --- a/assets/index.1e5b801c.js +++ b/assets/index.dedb2f12.js @@ -1,4 +1,4 @@ -import{n as K,k as M,ao as G,m as E,ap as q,B as T,d as W,p as Q,r as k,i as I,x as j,q as $,aq as D,w as U,G as X,F as Y,Z,o as J,ar as ee,H as te,h as O,_ as oe,as as re,I as ne,at as ae,a7 as F,au as se,ah as ie,ab as le}from"./index.dfa30cb8.js";const de=!1,ce=(e={})=>{var n;const{root:i=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(n=e.threshold)!==null&&n!==void 0?n:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof i=="string"?document.querySelector(i):i)||document.documentElement})}},C=new WeakMap,P=new WeakMap,_=new WeakMap,ue=(e,n,i)=>{if(!e)return()=>{};const s=ce(n),{root:c}=s.options;let l;const u=C.get(c);u?l=u:(l=new Map,C.set(c,l));let h,a;l.has(s.hash)?(a=l.get(s.hash),a[1].has(e)||(h=a[0],a[1].add(e),h.observe(e))):(h=new IntersectionObserver(b=>{b.forEach(f=>{if(f.isIntersecting){const p=P.get(f.target),g=_.get(f.target);p&&p(),g&&(g.value=!0)}})},s.options),h.observe(e),a=[h,new Set([e])],l.set(s.hash,a));let m=!1;const y=()=>{m||(P.delete(e),_.delete(e),m=!0,a[1].has(e)&&(a[0].unobserve(e),a[1].delete(e)),a[1].size<=0&&l.delete(s.hash),l.size||C.delete(c))};return P.set(e,y),_.set(e,i),y},fe=K("n-avatar-group"),ve=M("avatar",` +import{n as K,k as M,ao as G,m as E,ap as q,B as T,d as W,p as Q,r as k,i as I,x as j,q as $,aq as D,w as U,G as X,F as Y,Z,o as J,ar as ee,H as te,h as O,_ as oe,as as re,I as ne,at as ae,a7 as F,au as se,ah as ie,ab as le}from"./index.907f0be6.js";const de=!1,ce=(e={})=>{var n;const{root:i=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(n=e.threshold)!==null&&n!==void 0?n:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof i=="string"?document.querySelector(i):i)||document.documentElement})}},C=new WeakMap,P=new WeakMap,_=new WeakMap,ue=(e,n,i)=>{if(!e)return()=>{};const s=ce(n),{root:c}=s.options;let l;const u=C.get(c);u?l=u:(l=new Map,C.set(c,l));let h,a;l.has(s.hash)?(a=l.get(s.hash),a[1].has(e)||(h=a[0],a[1].add(e),h.observe(e))):(h=new IntersectionObserver(b=>{b.forEach(f=>{if(f.isIntersecting){const p=P.get(f.target),g=_.get(f.target);p&&p(),g&&(g.value=!0)}})},s.options),h.observe(e),a=[h,new Set([e])],l.set(s.hash,a));let m=!1;const y=()=>{m||(P.delete(e),_.delete(e),m=!0,a[1].has(e)&&(a[0].unobserve(e),a[1].delete(e)),a[1].size<=0&&l.delete(s.hash),l.size||C.delete(c))};return P.set(e,y),_.set(e,i),y},fe=K("n-avatar-group"),ve=M("avatar",` width: var(--n-merged-size); height: var(--n-merged-size); color: #FFF; diff --git a/assets/index.dedb2f12.js.gz b/assets/index.dedb2f12.js.gz new file mode 100644 index 00000000..09e7c123 Binary files /dev/null and b/assets/index.dedb2f12.js.gz differ diff --git a/assets/index.87c6b1fe.js b/assets/index.f6d5964c.js similarity index 93% rename from assets/index.87c6b1fe.js rename to assets/index.f6d5964c.js index 303a6a01..c611bdc4 100644 --- a/assets/index.87c6b1fe.js +++ b/assets/index.f6d5964c.js @@ -1 +1 @@ -import{d as r,a7 as e,am as n,h as f,al as d,aA as p,aB as c,aC as b,ab as E,aD as o,ai as t,ah as l}from"./index.dfa30cb8.js";import{R as m}from"./index.1e5b801c.js";function i(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!E(a)}const h=r({name:"Dashboard",setup(){return{coverLetterOptions:[{label:"\u638C\u63E1\u642C\u7816\u6846\u67B6",des:()=>e(l,null,{default:()=>[e(o,{type:"success"},{default:()=>[t("Vue3.x")]}),e(o,{type:"info"},{default:()=>[t("React")]})]})},{label:"\u4ECE\u4E8B\u642C\u7816\u65F6\u957F",des:()=>e(l,null,{default:()=>[e(o,{type:"success"},{default:()=>[t("\u7EC3\u4E60\u65F6\u957F\u4E24\u5E74\u534A\u7684\u5C0F\u767D\u524D\u7AEF\u642C\u7816\u5E08")]})]})},{label:"\u4E2A\u4EBA",des:()=>e(l,{align:"center"},{default:()=>[e(d,{name:"ray",size:"22"},null),t("\u52AA\u529B\u642C\u7816\u3001\u52AA\u529B\u6478\u9C7C, \u5EFA\u8BBE\u7F8E\u4E3D\u5BB6\u56ED")]}),span:2},{label:"\u8865\u5145\u8BF4\u660E",des:()=>e(l,{align:"center"},{default:()=>[t("\u5982\u679C\u6709\u5E0C\u671B\u8865\u5145\u7684\u529F\u80FD\u53EF\u4EE5\u5728"),e("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[t("GitHub")]),t("\u63D0\u4E00\u4E2A Issues")]}),span:2}]}},render(){let a;return e(b,{class:"dashboard-layout layout-full"},{default:()=>[e(n,null,{header:()=>f(d,{name:"ray",size:"64"},{}),default:()=>"\u5F53\u4F60\u770B\u89C1\u8FD9\u4E2A\u9875\u9762\u540E, \u5C31\u8BF4\u660E\u9879\u76EE\u5DF2\u7ECF\u542F\u52A8\u6210\u529F\u4E86~"}),e(n,{title:"\u4E2A\u4EBA\u4ECB\u7ECD"},{default:()=>[e(p,{bordered:!0,labelPlacement:"left",column:2},i(a=this.coverLetterOptions.map(u=>{let s;return e(c,{key:u.label,label:u.label,span:u==null?void 0:u.span},i(s=u.des())?s:{default:()=>[s]})}))?a:{default:()=>[a]})]}),e(n,{title:"\u53CB\u60C5\u94FE\u63A5"},{default:()=>[e(m,null,null)]})]})}});export{h as default}; +import{d as r,a7 as e,am as n,h as f,al as d,aA as p,aB as c,aC as b,ab as E,aD as o,ai as t,ah as l}from"./index.907f0be6.js";import{R as m}from"./index.dedb2f12.js";function i(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!E(a)}const h=r({name:"Dashboard",setup(){return{coverLetterOptions:[{label:"\u638C\u63E1\u642C\u7816\u6846\u67B6",des:()=>e(l,null,{default:()=>[e(o,{type:"success"},{default:()=>[t("Vue3.x")]}),e(o,{type:"info"},{default:()=>[t("React")]})]})},{label:"\u4ECE\u4E8B\u642C\u7816\u65F6\u957F",des:()=>e(l,null,{default:()=>[e(o,{type:"success"},{default:()=>[t("\u7EC3\u4E60\u65F6\u957F\u4E24\u5E74\u534A\u7684\u5C0F\u767D\u524D\u7AEF\u642C\u7816\u5E08")]})]})},{label:"\u4E2A\u4EBA",des:()=>e(l,{align:"center"},{default:()=>[e(d,{name:"ray",size:"22"},null),t("\u52AA\u529B\u642C\u7816\u3001\u52AA\u529B\u6478\u9C7C, \u5EFA\u8BBE\u7F8E\u4E3D\u5BB6\u56ED")]}),span:2},{label:"\u8865\u5145\u8BF4\u660E",des:()=>e(l,{align:"center"},{default:()=>[t("\u5982\u679C\u6709\u5E0C\u671B\u8865\u5145\u7684\u529F\u80FD\u53EF\u4EE5\u5728"),e("a",{class:"dashboard-link",href:"https://github.com/XiaoDaiGua-Ray/ray-template"},[t("GitHub")]),t("\u63D0\u4E00\u4E2A Issues")]}),span:2}]}},render(){let a;return e(b,{class:"dashboard-layout layout-full"},{default:()=>[e(n,null,{header:()=>f(d,{name:"ray",size:"64"},{}),default:()=>"\u5F53\u4F60\u770B\u89C1\u8FD9\u4E2A\u9875\u9762\u540E, \u5C31\u8BF4\u660E\u9879\u76EE\u5DF2\u7ECF\u542F\u52A8\u6210\u529F\u4E86~"}),e(n,{title:"\u4E2A\u4EBA\u4ECB\u7ECD"},{default:()=>[e(p,{bordered:!0,labelPlacement:"left",column:2},i(a=this.coverLetterOptions.map(u=>{let s;return e(c,{key:u.label,label:u.label,span:u==null?void 0:u.span},i(s=u.des())?s:{default:()=>[s]})}))?a:{default:()=>[a]})]}),e(n,{title:"\u53CB\u60C5\u94FE\u63A5"},{default:()=>[e(m,null,null)]})]})}});export{h as default}; diff --git a/assets/index.f6d5964c.js.gz b/assets/index.f6d5964c.js.gz new file mode 100644 index 00000000..709f7fd0 Binary files /dev/null and b/assets/index.f6d5964c.js.gz differ diff --git a/index.html b/index.html index 16e225ea..245ff020 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ ray template - +